﻿#satisiOlmayanlarPage {
    padding: 14px;
    box-sizing: border-box;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.08), transparent 26%),
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 22%),
        linear-gradient(180deg, #f4f9ff 0%, #eef6f7 52%, #f8fbff 100%);
}

body.so-modal-open {
    overflow: hidden;
}

.so-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    color: #0f172a;
    font-family: Calibri, "Segoe UI", Arial, sans-serif;
    --so-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
    --so-shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.14);
    --so-border-soft: rgba(148, 163, 184, 0.24);
    --so-panel-bg: rgba(255, 255, 255, 0.88);
    --so-hero-bg:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(237, 247, 255, 0.94)),
        linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(16, 185, 129, 0.08));
}

.so-hero {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 14px;
    margin-bottom: 16px;
}

.so-hero-left,
.so-hero-right,
.so-panel,
.so-mini-card,
.so-summary-card {
    background: var(--so-panel-bg);
    border: 1px solid var(--so-border-soft);
    border-radius: 20px;
    box-shadow: var(--so-shadow-soft);
    backdrop-filter: blur(12px);
}

.so-hero-left {
    position: relative;
    overflow: hidden;
    padding: 22px 22px 20px;
    background: var(--so-hero-bg);
}

.so-hero-left::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -30px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.14), rgba(37, 99, 235, 0));
    pointer-events: none;
}

.so-kicker {
    display: inline-flex;
    padding: 5px 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.18));
    color: #1e40af;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.so-hero-left h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 1;
}

.so-hero-left p {
    margin: 0;
    color: #475569;
    line-height: 1.55;
    font-size: 14px;
    max-width: 760px;
    position: relative;
    z-index: 1;
}

.so-hero-right {
    padding: 0;
    display: flex;
    align-items: stretch;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 250, 255, 0.92));
}

.so-mini-card {
    width: 100%;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 35%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 252, 249, 0.95));
}

.so-mini-card-tools {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.so-icon-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff, #ecfdf5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .18s ease;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.so-icon-btn:hover {
    border-color: rgba(16, 185, 129, 0.35);
    background: linear-gradient(135deg, #ffffff, #dffaf0);
    transform: translateY(-1px);
}

.so-icon-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.so-icon-btn svg {
    width: 18px;
    height: 18px;
    stroke: #047857;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.so-mini-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 10px;
}

.so-mini-value {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.so-updated-at {
    font-size: 11px;
    color: #4b5563;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    font-weight: 600;
}

.so-panel {
    padding: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.96));
}

.so-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.so-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.so-anbar-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.so-anbar-pick-btn {
    min-height: 34px;
    border: 1px solid rgba(99, 102, 241, 0.24);
    border-radius: 10px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
    color: #eef2ff;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)) padding-box,
        linear-gradient(135deg, #4338ca 0%, #4f46e5 55%, #6366f1 100%) border-box;
    box-shadow:
        0 6px 14px rgba(79, 70, 229, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
    white-space: nowrap;
}

.so-anbar-pick-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        0 9px 18px rgba(79, 70, 229, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    filter: saturate(1.04);
}

.so-anbar-pick-btn:active {
    transform: translateY(0);
}

.so-anbar-pick-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.so-field label,
.so-field-label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.so-field input,
.so-modal-input,
.so-select {
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(148, 163, 184, 0.42);
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.so-field input:focus,
.so-modal-input:focus,
.so-select:focus {
    border-color: rgba(37, 99, 235, 0.6);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
    background: #ffffff;
}

.so-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.so-btn,
.so-mini-btn {
    color: #0f172a;
    background: linear-gradient(180deg, #ffffff, #f3f4f6);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
    font-family: Calibri, "Segoe UI", Arial, sans-serif;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.so-btn {
    min-height: 42px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .01em;
}

.so-mini-btn {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

.so-btn:hover,
.so-mini-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(100, 116, 139, 0.45);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.10);
}

.so-btn:disabled,
.so-mini-btn:disabled {
    opacity: .72;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.so-btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    border-color: rgba(37, 99, 235, 0.35);
}

.so-btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #0284c7);
}

.so-btn-secondary {
    color: #ffffff;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-color: rgba(99, 102, 241, 0.34);
}

.so-btn-secondary:hover {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.so-btn-dark {
    color: #f8fafc;
    background: linear-gradient(135deg, #0f172a, #334155);
    border-color: rgba(15, 23, 42, 0.42);
}

.so-btn-dark:hover {
    background: linear-gradient(135deg, #020617, #1e293b);
}

.so-btn-excel {
    color: #ffffff;
    background: linear-gradient(135deg, #059669, #10b981);
    border-color: rgba(5, 150, 105, 0.34);
}

.so-btn-excel:hover {
    background: linear-gradient(135deg, #047857, #0f9f6e);
}

.so-btn-light {
    color: #1e293b;
    background: linear-gradient(180deg, #ffffff, #eef4fb);
    border-color: rgba(148, 163, 184, 0.36);
}

.so-btn-light:hover {
    background: linear-gradient(180deg, #ffffff, #e2ebf6);
}

.so-status {
    margin-top: 14px;
    min-height: 24px;
    font-size: 14px;
    color: #334155;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px dashed rgba(148, 163, 184, 0.36);
}

.so-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
    margin-bottom: 14px;
}

.so-summary-card {
    position: relative;
    overflow: hidden;
    padding: 16px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.92));
}

.so-summary-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 700;
    margin-bottom: 8px;
}

.so-summary-value {
    font-size: 24px;
    line-height: 1.1;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.so-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.so-tab {
    min-height: 40px;
    border-radius: 999px;
    padding: 8px 16px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.84);
    color: #1e293b;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.so-tab:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

.so-tab.active {
    background: linear-gradient(135deg, #e0f2fe, #dcfce7);
    border-color: rgba(14, 165, 233, 0.26);
    color: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 14px 28px rgba(14, 165, 233, 0.16);
}

.so-result {
    width: 100%;
}

.so-empty {
    padding: 28px 18px;
    text-align: center;
    color: #64748b;
    border: 1px dashed rgba(148, 163, 184, 0.44);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(241, 245, 249, 0.92));
}

.so-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.10);
    -webkit-overflow-scrolling: touch;
}

#soTable.so-excel-table {
    width: 100%;
    min-width: 1300px;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
    background: #ffffff;
}

#soTable thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, #eff6ff, #dbeafe);
    color: #0f172a;
    text-align: center;
    font-weight: 700;
    border: 1px solid rgba(147, 197, 253, 0.45);
    padding: 0;
    white-space: nowrap;
    height: 34px;
    box-shadow: inset 0 -1px 0 rgba(191, 219, 254, 0.9);
}

.so-th-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 7px 8px;
    min-height: 34px;
}

.so-th-filter-btn {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 1px solid rgba(96, 165, 250, 0.4);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.92);
    color: #1d4ed8;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.10);
}

#soTable tbody td {
    border: 1px solid rgba(226, 232, 240, 0.95);
    padding: 6px 8px;
    vertical-align: middle;
    background: #fff;
    height: 34px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
}

#soTable tbody tr:nth-child(even) td {
    background: #f8fbff;
}

#soTable tbody tr:hover td {
    background: #eaf6ff;
}

.so-center { text-align: center; }
.so-right { text-align: right; }
.so-left { text-align: left; }

.so-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 1px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #eef2ff, #dbeafe);
    color: #3730a3;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid rgba(129, 140, 248, 0.16);
}

.so-product-name {
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.so-barcode {
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.so-muted {
    color: #94a3b8;
}

.so-sit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.so-sit-red {
    background: #fee2e2;
    color: #991b1b;
}

.so-sit-orange {
    background: #ffedd5;
    color: #9a3412;
}

.so-sit-yellow {
    background: #fef9c3;
    color: #854d0e;
}

.so-sit-green {
    background: #dcfce7;
    color: #166534;
}

.so-modal {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(14, 165, 233, 0.16), transparent 30%),
        rgba(15, 23, 42, 0.42);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 99999;
    backdrop-filter: blur(10px);
}

.so-modal:not([hidden]) {
    display: flex;
}

.so-modal-card {
    width: min(640px, 96vw);
    max-height: 92vh;
    overflow: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.96));
    border: 1px solid rgba(191, 219, 254, 0.36);
    border-radius: 24px;
    box-shadow: var(--so-shadow-strong);
    padding: 18px;
}

.so-filter-modal-card {
    width: min(420px, 96vw);
}

.so-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.so-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.so-modal-x {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.84);
    cursor: pointer;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.so-modal-x:hover {
    transform: translateY(-1px);
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.26);
}

.so-filter-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.so-filter-box {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.so-number-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.so-filter-values {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    max-height: 260px;
    overflow: auto;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
}

.so-filter-value-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    column-gap: 8px;
    min-height: 30px;
    padding: 4px 6px;
    font-size: 13px;
    color: #111827;
    border-radius: 10px;
    cursor: pointer;
    box-sizing: border-box;
    transition: background .16s ease, transform .16s ease;
}

.so-filter-value-item:hover {
    background: #eff6ff;
    transform: translateX(2px);
}

.so-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.so-export-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.so-export-info {
    font-size: 13px;
    color: #475569;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(240, 253, 250, 0.9);
    border: 1px solid rgba(110, 231, 183, 0.34);
}

.so-export-ready-list {
    display: grid;
    gap: 8px;
}

.so-export-ready-item {
    border: 1px solid rgba(191, 219, 254, 0.34);
    border-radius: 16px;
    padding: 12px;
    background:
        linear-gradient(135deg, rgba(239, 246, 255, 0.9), rgba(236, 253, 245, 0.95));
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.06);
}

.so-export-ready-item a {
    color: #0f766e;
    text-decoration: none;
    font-weight: 700;
}

.so-export-sheet {
    background: #fff;
    padding: 14px;
    font-family: Calibri, "Segoe UI", Arial, sans-serif;
}

.so-export-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.so-export-table {
    border-collapse: collapse;
    table-layout: fixed;
    width: auto;
    min-width: 1300px;
    font-size: 14px;
}

.so-export-table th,
.so-export-table td {
    border: 1px solid #9da3aa;
    padding: 4px 6px;
    height: 24px;
    vertical-align: middle;
    background: #fff;
}

.so-export-table th {
    background: #f3f3f3;
    font-weight: 700;
    text-align: center;
}

.so-filter-check-col {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
}

.so-filter-check-col input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
    cursor: pointer;
}

.so-filter-text-col {
    display: block;
    text-align: left;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
    .so-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .so-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .so-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    #satisiOlmayanlarPage {
        padding: 10px;
    }

    .so-form-grid {
        grid-template-columns: 1fr;
    }

    .so-anbar-row {
        grid-template-columns: 1fr;
    }

    .so-summary {
        grid-template-columns: 1fr;
    }

    .so-actions {
        flex-direction: column;
    }

    .so-table-wrap {
        overflow: visible;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    #soTable.so-excel-table {
        width: 100%;
        min-width: 0;
        table-layout: auto;
        border-collapse: separate;
        border-spacing: 0 12px;
        background: transparent;
    }

    #soTable thead {
        display: none;
    }

    #soTable tbody,
    #soTable tbody tr,
    #soTable tbody td {
        display: block;
        width: 100%;
    }

    #soTable tbody tr {
        margin-bottom: 12px;
        border: 1px solid rgba(148, 163, 184, 0.24);
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
        box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
        overflow: hidden;
    }

    #soTable tbody tr:nth-child(even),
    #soTable tbody tr:hover {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96));
    }

    #soTable tbody td {
        display: grid;
        grid-template-columns: minmax(92px, 112px) minmax(0, 1fr);
        gap: 10px;
        align-items: center;
        min-height: 44px;
        height: auto;
        padding: 10px 12px;
        border-width: 0 0 1px;
        border-color: rgba(226, 232, 240, 0.9);
        background: transparent !important;
        text-align: left;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    #soTable tbody td:last-child {
        border-bottom: 0;
    }

    #soTable tbody td::before {
        content: attr(data-label);
        color: #64748b;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    #soTable tbody td.so-center,
    #soTable tbody td.so-right,
    #soTable tbody td.so-left {
        text-align: left;
    }

    #soTable tbody td .so-pill,
    #soTable tbody td .so-barcode,
    #soTable tbody td .so-sit-badge {
        justify-self: start;
    }

    .so-btn,
    .so-mini-btn {
        width: 100%;
    }

    .so-modal {
        padding: 12px;
    }

    .so-modal-actions {
        flex-direction: column;
    }
}
