/* ============================================================
   ADMIN NEON COMMAND CENTER - PHASE 1
   Sidebar yapisini bozmadan ust komuta barina donusturur.
   ============================================================ */
body:not(.portal-body) {
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 32rem),
        radial-gradient(circle at top right, rgba(168, 85, 247, 0.18), transparent 34rem),
        linear-gradient(135deg, #050816 0%, #0b1020 42%, #111827 100%) !important;
    color: #e5eefb;
}

body:not(.portal-body)::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

body:not(.portal-body) #mainPanel.dashboard-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto;
    overflow: visible;
    background: transparent;
}

body:not(.portal-body) #mainPanel .sidebar {
    position: sticky;
    top: 0;
    z-index: 800;
    width: 100%;
    min-height: 68px;
    height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 10px 18px;
    background: rgba(7, 12, 26, 0.78);
    border-bottom: 1px solid rgba(34, 211, 238, 0.22);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #e2e8f0;
}

body:not(.portal-body) #mainPanel .sidebar .brand,
body:not(.portal-body) #mainPanel .brand {
    flex-shrink: 0;
    padding: 0 10px 0 0;
    border-bottom: none;
    color: #f8fafc;
    font-size: clamp(18px, 1.45vw, 22px);
    line-height: 1;
    letter-spacing: 0;
    text-transform: lowercase;
    text-shadow: 0 0 22px rgba(34, 211, 238, 0.32);
}

body:not(.portal-body) #mainPanel .brand span {
    color: #22d3ee;
    text-shadow: 0 0 18px rgba(34, 211, 238, 0.72);
}

body:not(.portal-body) #mainPanel .user-info {
    order: 2;
    flex-shrink: 0;
    margin-left: auto;
    padding: 7px 11px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.66);
    color: #bae6fd;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

body:not(.portal-body) #mainPanel .sidebar nav {
    order: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 100%;
    flex: 1 1 100%;
    overflow: visible;
    scrollbar-width: none;
}

body:not(.portal-body) #mainPanel .nav-btn {
    width: auto;
    flex-shrink: 0;
    min-height: 34px;
    margin: 0;
    padding: 0 11px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.54);
    color: #94a3b8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    white-space: nowrap;
    font-size: clamp(11px, 0.78vw, 13px);
}

body:not(.portal-body) #mainPanel .nav-btn i {
    width: auto;
    margin-right: 6px;
    color: #38bdf8;
    font-size: 0.95em;
}

body:not(.portal-body) #mainPanel .nav-btn:hover {
    border-color: rgba(34, 211, 238, 0.44);
    background: rgba(8, 47, 73, 0.55);
    color: #f8fafc;
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.12);
}

body:not(.portal-body) #mainPanel .nav-btn.active {
    border-color: rgba(34, 211, 238, 0.72);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.26), rgba(124, 58, 237, 0.24));
    color: #f8fafc;
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.12), 0 0 26px rgba(34, 211, 238, 0.22);
}

body:not(.portal-body) #mainPanel .nav-btn.logout {
    order: 4;
    margin-left: 2px;
    margin-bottom: 0;
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.26);
}

body:not(.portal-body) #mainPanel .nav-btn.logout i {
    color: #f87171;
}

body:not(.portal-body) #mainPanel .content {
    flex: 1;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 34px 28px 54px;
    overflow: visible;
    background: transparent;
}

body:not(.portal-body) #mainPanel h1,
body:not(.portal-body) #mainPanel h2,
body:not(.portal-body) #mainPanel h3,
body:not(.portal-body) #mainPanel h4 {
    color: #f8fafc;
    letter-spacing: 0;
}

body:not(.portal-body) #mainPanel h2 {
    font-size: 1.55rem;
    margin-bottom: 22px;
}

body:not(.portal-body) #mainPanel .card,
body:not(.portal-body) #mainPanel .stat-card,
body:not(.portal-body) #mainPanel .sticky-card,
body:not(.portal-body) #mainPanel .setting-group,
body:not(.portal-body) #mainPanel .dash-panel,
body:not(.portal-body) #mainPanel .order-summary-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.58)) !important;
    border: 1px solid rgba(34, 211, 238, 0.18) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body:not(.portal-body) #mainPanel .stat-card {
    border-radius: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body:not(.portal-body) #mainPanel .stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 211, 238, 0.46) !important;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34), 0 0 30px rgba(34, 211, 238, 0.12) !important;
}

/* Koyu tema metin renkleri — yalnız koyu temada geçerli.
   Aydınlık temada uygulanınca bileşenlerin kendi renklerini (ör. iade
   kartlarındaki .rt-stat strong) özgüllükle eziyordu; bu yüzden kapsam
   :not(.admin-light-theme) ile daraltıldı. */
body:not(.portal-body):not(.admin-light-theme) #mainPanel .stat-info h3,
body:not(.portal-body):not(.admin-light-theme) #mainPanel small,
body:not(.portal-body):not(.admin-light-theme) #mainPanel label,
body:not(.portal-body):not(.admin-light-theme) #mainPanel p {
    color: #94a3b8;
}

body:not(.portal-body):not(.admin-light-theme) #mainPanel .stat-info p,
body:not(.portal-body):not(.admin-light-theme) #mainPanel strong {
    color: #f8fafc;
}

body:not(.portal-body) #mainPanel .stat-icon {
    background: rgba(8, 47, 73, 0.82) !important;
    color: #22d3ee !important;
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.18), 0 0 24px rgba(34, 211, 238, 0.12);
}

body:not(.portal-body) #mainPanel .warning-active {
    border-color: rgba(248, 113, 113, 0.75) !important;
    background: linear-gradient(180deg, rgba(127, 29, 29, 0.52), rgba(15, 23, 42, 0.62)) !important;
}

body:not(.portal-body) #mainPanel input,
body:not(.portal-body) #mainPanel select,
body:not(.portal-body) #mainPanel textarea {
    background: rgba(2, 6, 23, 0.62) !important;
    border-color: rgba(148, 163, 184, 0.24) !important;
    color: #e2e8f0 !important;
    box-shadow: none;
}

body:not(.portal-body) #mainPanel input::placeholder,
body:not(.portal-body) #mainPanel textarea::placeholder {
    color: #64748b;
}

body:not(.portal-body) #mainPanel input:focus,
body:not(.portal-body) #mainPanel select:focus,
body:not(.portal-body) #mainPanel textarea:focus {
    border-color: rgba(34, 211, 238, 0.82) !important;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12), 0 0 24px rgba(34, 211, 238, 0.1) !important;
}

body:not(.portal-body) #mainPanel .btn-primary {
    background: linear-gradient(135deg, #06b6d4, #7c3aed) !important;
    border: 1px solid rgba(34, 211, 238, 0.45) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.22);
}

body:not(.portal-body) #mainPanel .btn-primary:hover {
    background: linear-gradient(135deg, #22d3ee, #8b5cf6) !important;
    box-shadow: 0 18px 38px rgba(6, 182, 212, 0.28);
}

body:not(.portal-body) #page-inventory .xml-manual-upload {
    border-color: rgba(34, 211, 238, 0.28);
    background: linear-gradient(135deg, rgba(8, 47, 73, 0.58), rgba(30, 41, 59, 0.62));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body:not(.portal-body) #page-inventory .xml-manual-upload__icon {
    color: #67e8f9;
    background: rgba(6, 182, 212, 0.14);
}

body:not(.portal-body) #page-inventory .xml-manual-upload__content h4 { color: #f8fafc; }
body:not(.portal-body) #page-inventory .xml-manual-upload__content p { color: #94a3b8; }

body:not(.portal-body) #mainPanel .btn-secondary {
    background: rgba(15, 23, 42, 0.74) !important;
    border-color: rgba(34, 211, 238, 0.22) !important;
    color: #c4d9f2 !important;
}

body:not(.portal-body) #mainPanel .btn-secondary:hover {
    background: rgba(8, 47, 73, 0.7) !important;
    border-color: rgba(34, 211, 238, 0.5) !important;
    color: #ffffff !important;
}

body:not(.portal-body) #mainPanel .tab-container {
    background: rgba(2, 6, 23, 0.55) !important;
    border: 1px solid rgba(34, 211, 238, 0.16);
    border-radius: 999px;
    padding: 5px;
}

body:not(.portal-body) #mainPanel .tab-btn {
    border-radius: 999px;
    color: #94a3b8;
}

body:not(.portal-body) #mainPanel .tab-btn.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.34), rgba(124, 58, 237, 0.3)) !important;
    color: #f8fafc !important;
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.16);
}

body:not(.portal-body) #mainPanel .table-responsive,
body:not(.portal-body) #mainPanel .table-container {
    background: rgba(2, 6, 23, 0.22) !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
}

body:not(.portal-body) #mainPanel table {
    color: #dbeafe;
}

body:not(.portal-body) #mainPanel th,
body:not(.portal-body) #mainPanel .modern-floating-table thead th,
body:not(.portal-body) #mainPanel .simple-table th {
    background: rgba(15, 23, 42, 0.34) !important;
    border-color: rgba(148, 163, 184, 0.12) !important;
    color: #94a3b8 !important;
    font-weight: 700;
}

body:not(.portal-body) #mainPanel td,
body:not(.portal-body) #mainPanel .modern-floating-table tbody td,
body:not(.portal-body) #mainPanel .simple-table td {
    background: rgba(15, 23, 42, 0.46) !important;
    border-color: rgba(148, 163, 184, 0.1) !important;
    color: #cbd5e1 !important;
}

body:not(.portal-body) #mainPanel tr:hover td,
body:not(.portal-body) #mainPanel .modern-floating-table tbody tr:hover td {
    background: rgba(30, 41, 59, 0.7) !important;
    color: #f8fafc !important;
}

body:not(.portal-body) #mainPanel .modern-floating-table tbody tr {
    background: transparent !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

body:not(.portal-body) #mainPanel .modern-floating-table tbody td:first-child {
    border-left: 1px solid rgba(34, 211, 238, 0.14) !important;
}

body:not(.portal-body) #mainPanel .modern-floating-table tbody td:last-child {
    border-right: 1px solid rgba(148, 163, 184, 0.1) !important;
}

body:not(.portal-body) #mainPanel .modern-floating-table {
    border-spacing: 0 9px;
}

body:not(.portal-body) #mainPanel .modern-floating-table tbody td {
    background: rgba(15, 23, 42, 0.72) !important;
    border-top: 1px solid rgba(148, 163, 184, 0.1) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1) !important;
    color: #cbd5e1 !important;
}

body:not(.portal-body) #mainPanel .modern-floating-table tbody td:first-child {
    border-left: 1px solid rgba(148, 163, 184, 0.12) !important;
}

body:not(.portal-body) #mainPanel .modern-floating-table tbody td:last-child {
    border-right: 1px solid rgba(148, 163, 184, 0.12) !important;
}

body:not(.portal-body) #mainPanel .modern-floating-table tbody tr:hover td {
    background: rgba(30, 41, 59, 0.84) !important;
    border-color: rgba(34, 211, 238, 0.24) !important;
}

body:not(.portal-body) #mainPanel .modern-floating-table .btn-sm,
body:not(.portal-body) #mainPanel .modern-floating-table button {
    background: rgba(15, 23, 42, 0.58) !important;
    border: 1px solid rgba(125, 211, 252, 0.24) !important;
    color: #dbeafe !important;
    box-shadow: none !important;
}

body:not(.portal-body) #mainPanel .modern-floating-table .btn-sm:hover,
body:not(.portal-body) #mainPanel .modern-floating-table button:hover {
    background: rgba(8, 47, 73, 0.72) !important;
    border-color: rgba(34, 211, 238, 0.44) !important;
    color: #ffffff !important;
}

body:not(.portal-body) #mainPanel .data-badge,
body:not(.portal-body) #mainPanel .badge,
body:not(.portal-body) #mainPanel .status-badge,
body:not(.portal-body) #mainPanel .notification-badge {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(30, 41, 59, 0.72) !important;
    color: #e2e8f0 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body:not(.portal-body) #mainPanel .modern-floating-table small,
body:not(.portal-body) #mainPanel table small {
    color: #94a3b8 !important;
}

body:not(.portal-body) #mainPanel .modern-floating-table strong,
body:not(.portal-body) #mainPanel table strong {
    color: #f1f5f9 !important;
}

body:not(.portal-body) #mainPanel [style*="background:#f8fafc"],
body:not(.portal-body) #mainPanel [style*="background: #f8fafc"],
body:not(.portal-body) #mainPanel [style*="background-color:#f8fafc"],
body:not(.portal-body) #mainPanel [style*="background-color: #f8fafc"] {
    background: rgba(15, 23, 42, 0.58) !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
}

body:not(.portal-body) #page-dashboard .card > div[style*="background:#f8fafc"] {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(30, 41, 59, 0.46)) !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body:not(.portal-body) #mainPanel table span[style*="color:green"],
body:not(.portal-body) #mainPanel table span[style*="color: green"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 4px 9px;
    border: 1px solid rgba(52, 211, 153, 0.28) !important;
    border-radius: 999px;
    background: rgba(6, 78, 59, 0.32) !important;
    color: #6ee7b7 !important;
    font-weight: 700;
}

body:not(.portal-body) #mainPanel table span[style*="color:red"],
body:not(.portal-body) #mainPanel table span[style*="color: red"],
body:not(.portal-body) #mainPanel table span[style*="color:#DC2626"],
body:not(.portal-body) #mainPanel table span[style*="color: #DC2626"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 4px 9px;
    border: 1px solid rgba(251, 113, 133, 0.3) !important;
    border-radius: 999px;
    background: rgba(127, 29, 29, 0.32) !important;
    color: #fda4af !important;
    font-weight: 700;
}

body:not(.portal-body) #mainPanel table span[style*="color:#EA580C"],
body:not(.portal-body) #mainPanel table span[style*="color: #EA580C"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border: 1px solid rgba(251, 191, 36, 0.28) !important;
    border-radius: 999px;
    background: rgba(120, 53, 15, 0.32) !important;
    color: #fcd34d !important;
    font-weight: 700;
}

body:not(.portal-body) #inventoryTableBody .badge,
body:not(.portal-body) #xmlTableBody .badge,
body:not(.portal-body) #returnsTableBody .badge,
body:not(.portal-body) #siparislerTableBody .badge,
body:not(.portal-body) #wsPendingTableBody .badge,
body:not(.portal-body) #wsApprovedTableBody .badge {
    border-color: rgba(148, 163, 184, 0.22) !important;
    background: rgba(30, 41, 59, 0.78) !important;
    color: #dbeafe !important;
}

body:not(.portal-body) #inventoryTableBody .data-badge,
body:not(.portal-body) #xmlTableBody .data-badge,
body:not(.portal-body) #returnsTableBody .data-badge,
body:not(.portal-body) #siparislerTableBody .data-badge {
    border-color: rgba(34, 211, 238, 0.18) !important;
    background: rgba(15, 23, 42, 0.7) !important;
    color: #e2e8f0 !important;
}

body:not(.portal-body) #returnsTableBody .badge-type {
    background: rgba(15, 23, 42, 0.72) !important;
    border-color: rgba(148, 163, 184, 0.24) !important;
    color: #dbeafe !important;
}

body:not(.portal-body) #returnsTableBody .badge-type-iade {
    border-color: rgba(251, 113, 133, 0.32) !important;
    color: #fda4af !important;
}

body:not(.portal-body) #returnsTableBody .badge-type-degisim {
    border-color: rgba(34, 211, 238, 0.34) !important;
    color: #67e8f9 !important;
}

body:not(.portal-body) #returnsTableBody .badge-type-iptal {
    border-color: rgba(203, 213, 225, 0.26) !important;
    color: #cbd5e1 !important;
}

body:not(.portal-body) #page-desi .stats-grid {
    gap: 14px;
}

body:not(.portal-body) #page-desi .toolbar-container > div {
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    padding: 10px;
}

body:not(.portal-body) #desiTableBody .ft-day,
body:not(.portal-body) #desiTableBody .ft-val-num {
    color: #f1f5f9 !important;
}

body:not(.portal-body) #desiTableBody .ft-time,
body:not(.portal-body) #desiTableBody .ft-val-label {
    color: #94a3b8 !important;
}

body:not(.portal-body) #desiTableBody .ft-customer {
    color: #dbeafe !important;
}

body:not(.portal-body) #desiTableBody .ft-customer-icon {
    background: rgba(8, 47, 73, 0.62) !important;
    color: #67e8f9 !important;
    border: 1px solid rgba(34, 211, 238, 0.2);
}

body:not(.portal-body) #desiTableBody .ft-val-box {
    color: #dbeafe;
}

body:not(.portal-body) #desiTableBody .ft-dims-badge {
    background: rgba(15, 23, 42, 0.74) !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
    color: #cbd5e1 !important;
    box-shadow: none !important;
}

body:not(.portal-body) #desiTableBody .ft-diff-badge {
    border-radius: 999px;
    box-shadow: none !important;
}

body:not(.portal-body) #desiTableBody .diff-pos {
    background: rgba(127, 29, 29, 0.32) !important;
    border-color: rgba(251, 113, 133, 0.32) !important;
    color: #fda4af !important;
}

body:not(.portal-body) #desiTableBody .diff-neg {
    background: rgba(6, 78, 59, 0.32) !important;
    border-color: rgba(52, 211, 153, 0.28) !important;
    color: #6ee7b7 !important;
}

body:not(.portal-body) #desiTableBody .diff-zero {
    background: rgba(30, 41, 59, 0.72) !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
    color: #cbd5e1 !important;
}

body:not(.portal-body) #desiTableBody td[style*="text-align: right"] {
    color: #94a3b8 !important;
}

body:not(.portal-body) #page-reports .header-section h1 {
    color: #f8fafc !important;
    margin-bottom: 18px;
}

body:not(.portal-body) #page-reports [style*="background: white"],
body:not(.portal-body) #page-reports [style*="background:white"],
body:not(.portal-body) #page-reports [style*="background: #FFF"],
body:not(.portal-body) #page-reports [style*="background:#FFF"],
body:not(.portal-body) #page-reports [style*="background: #fff"],
body:not(.portal-body) #page-reports [style*="background:#fff"] {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.54)) !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
    color: #dbeafe !important;
}

body:not(.portal-body) #page-reports [style*="background: #f8fafc"],
body:not(.portal-body) #page-reports [style*="background:#f8fafc"],
body:not(.portal-body) #page-reports [style*="background-color: #f8fafc"],
body:not(.portal-body) #page-reports [style*="background-color:#f8fafc"],
body:not(.portal-body) #page-reports [style*="background: #f1f5f9"],
body:not(.portal-body) #page-reports [style*="background:#f1f5f9"] {
    background: rgba(15, 23, 42, 0.56) !important;
    border-color: rgba(148, 163, 184, 0.12) !important;
}

body:not(.portal-body) #page-reports h1,
body:not(.portal-body) #page-reports h2,
body:not(.portal-body) #page-reports h3,
body:not(.portal-body) #page-reports h4,
body:not(.portal-body) #page-reports small,
body:not(.portal-body) #page-reports label,
body:not(.portal-body) #page-reports p,
body:not(.portal-body) #page-reports span,
body:not(.portal-body) #page-reports div {
    border-color: rgba(148, 163, 184, 0.14);
}

body:not(.portal-body) #page-reports h2,
body:not(.portal-body) #page-reports h3,
body:not(.portal-body) #page-reports h4,
body:not(.portal-body) #page-reports [style*="color: #334155"],
body:not(.portal-body) #page-reports [style*="color:#334155"],
body:not(.portal-body) #page-reports [style*="color: #1e293b"],
body:not(.portal-body) #page-reports [style*="color:#1e293b"],
body:not(.portal-body) #page-reports [style*="color: #0F172A"],
body:not(.portal-body) #page-reports [style*="color:#0F172A"] {
    color: #f8fafc !important;
}

body:not(.portal-body) #page-reports p,
body:not(.portal-body) #page-reports small,
body:not(.portal-body) #page-reports label,
body:not(.portal-body) #page-reports [style*="color: #64748b"],
body:not(.portal-body) #page-reports [style*="color:#64748b"],
body:not(.portal-body) #page-reports [style*="color: #475569"],
body:not(.portal-body) #page-reports [style*="color:#475569"],
body:not(.portal-body) #page-reports [style*="color: #94a3b8"],
body:not(.portal-body) #page-reports [style*="color:#94a3b8"] {
    color: #94a3b8 !important;
}

body:not(.portal-body) #page-reports .card {
    border-radius: 16px;
}

body:not(.portal-body) #page-reports input {
    background: rgba(2, 6, 23, 0.58) !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
    color: #e2e8f0 !important;
}

body:not(.portal-body) #page-reports input:focus {
    border-color: rgba(34, 211, 238, 0.78) !important;
    background: rgba(2, 6, 23, 0.72) !important;
}

body:not(.portal-body) #page-reports .stat-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.74), rgba(15, 23, 42, 0.54)) !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
}

body:not(.portal-body) #page-reports .stat-card:first-child {
    border-color: rgba(34, 211, 238, 0.28) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24), 0 0 28px rgba(34, 211, 238, 0.08) !important;
}

body:not(.portal-body) #page-reports .stat-card p {
    color: #f8fafc !important;
}

body:not(.portal-body) #page-reports .stat-icon {
    background: rgba(8, 47, 73, 0.6) !important;
    color: #67e8f9 !important;
}

body:not(.portal-body) #page-reports .table-container {
    background: rgba(2, 6, 23, 0.18) !important;
}

body:not(.portal-body) #page-reports table thead,
body:not(.portal-body) #page-reports table thead[style*="background"] {
    background: rgba(15, 23, 42, 0.9) !important;
}

body:not(.portal-body) #page-reports table th {
    background: rgba(15, 23, 42, 0.8) !important;
    color: #94a3b8 !important;
}

body:not(.portal-body) #page-reports table td {
    background: rgba(15, 23, 42, 0.58) !important;
    color: #cbd5e1 !important;
}

body:not(.portal-body) #page-reports table tr:hover td {
    background: rgba(30, 41, 59, 0.78) !important;
    color: #f8fafc !important;
}

body:not(.portal-body) #page-reports table span[style*="background:#DC2626"],
body:not(.portal-body) #page-reports table span[style*="background: #DC2626"] {
    background: rgba(127, 29, 29, 0.38) !important;
    border: 1px solid rgba(251, 113, 133, 0.3) !important;
    color: #fda4af !important;
}

body:not(.portal-body) #page-reports table span[style*="background:#EA580C"],
body:not(.portal-body) #page-reports table span[style*="background: #EA580C"] {
    background: rgba(120, 53, 15, 0.38) !important;
    border: 1px solid rgba(251, 191, 36, 0.28) !important;
    color: #fcd34d !important;
}

body:not(.portal-body) #page-reports table span[style*="background:#F1F5F9"],
body:not(.portal-body) #page-reports table span[style*="background: #F1F5F9"] {
    background: rgba(30, 41, 59, 0.72) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    color: #cbd5e1 !important;
}

body:not(.portal-body) #page-reports #reportSearchInput,
body:not(.portal-body) #page-reports #reportStartDate,
body:not(.portal-body) #page-reports #reportEndDate,
body:not(.portal-body) #page-reports #customerSearchInput,
body:not(.portal-body) #page-reports #custStartDate,
body:not(.portal-body) #page-reports #custEndDate {
    background-color: rgba(2, 6, 23, 0.72) !important;
    background: rgba(2, 6, 23, 0.72) !important;
    border: 1px solid rgba(125, 211, 252, 0.22) !important;
    color: #e2e8f0 !important;
    color-scheme: dark;
}

body:not(.portal-body) #page-reports #reportSearchInput:focus,
body:not(.portal-body) #page-reports #reportStartDate:focus,
body:not(.portal-body) #page-reports #reportEndDate:focus,
body:not(.portal-body) #page-reports #customerSearchInput:focus,
body:not(.portal-body) #page-reports #custStartDate:focus,
body:not(.portal-body) #page-reports #custEndDate:focus {
    background-color: rgba(2, 6, 23, 0.82) !important;
    background: rgba(2, 6, 23, 0.82) !important;
    border-color: rgba(34, 211, 238, 0.78) !important;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12), 0 0 24px rgba(34, 211, 238, 0.1) !important;
}

body:not(.portal-body) #page-reports #reportSearchInput:-webkit-autofill,
body:not(.portal-body) #page-reports #reportSearchInput:-webkit-autofill:hover,
body:not(.portal-body) #page-reports #reportSearchInput:-webkit-autofill:focus {
    -webkit-text-fill-color: #e2e8f0 !important;
    box-shadow: 0 0 0 1000px #020617 inset !important;
    transition: background-color 9999s ease-out;
}

body:not(.portal-body) #page-reports #stockStatusPanel {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.74), rgba(15, 23, 42, 0.52)) !important;
    border: 1px solid rgba(34, 211, 238, 0.18) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body:not(.portal-body) #page-reports #stockStatusPanel > div {
    border-color: rgba(148, 163, 184, 0.2) !important;
}

body:not(.portal-body) #page-reports #stockStatusPanel > div > div:first-child {
    background: rgba(8, 47, 73, 0.62) !important;
    border: 1px solid rgba(34, 211, 238, 0.22);
    color: #67e8f9 !important;
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.08);
}

body:not(.portal-body) #page-reports #resStockLocation,
body:not(.portal-body) #page-reports #resStockStatus,
body:not(.portal-body) #page-reports #resLastEntry,
body:not(.portal-body) #page-reports #resProductSku {
    color: #f8fafc !important;
}

body:not(.portal-body) #page-reports #resProductName,
body:not(.portal-body) #page-reports #resLastEntryDate {
    color: #94a3b8 !important;
}

body:not(.portal-body) #mainPanel .setting-header,
body:not(.portal-body) #mainPanel .setting-content,
body:not(.portal-body) #mainPanel .backup-row,
body:not(.portal-body) #mainPanel .log-history-container,
body:not(.portal-body) #mainPanel .log-input-area,
body:not(.portal-body) #mainPanel .action-card,
body:not(.portal-body) #mainPanel .modal-info-header,
body:not(.portal-body) #mainPanel .type-segment-container,
body:not(.portal-body) #mainPanel .product-select-list {
    background: rgba(15, 23, 42, 0.72) !important;
    border-color: rgba(34, 211, 238, 0.16) !important;
    color: #dbeafe;
}

body:not(.portal-body) .modal {
    background: rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body:not(.portal-body) .modal-content {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96)) !important;
    border: 1px solid rgba(34, 211, 238, 0.24) !important;
    color: #dbeafe;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5), 0 0 42px rgba(34, 211, 238, 0.12) !important;
}

body:not(.portal-body) .modal-content h3,
body:not(.portal-body) .modal-content h4 {
    color: #f8fafc !important;
}

body:not(.portal-body) .close,
body:not(.portal-body) .close-btn {
    color: #7dd3fc !important;
}

body:not(.portal-body) .modal-content.large-modal,
body:not(.portal-body) #modalReturnContent {
    width: min(1180px, calc(100vw - 44px)) !important;
}

body:not(.portal-body) #modalReturn .modal-content,
body:not(.portal-body) #modalUpdateInventory .modal-content,
body:not(.portal-body) #modalWsDetail .modal-content,
body:not(.portal-body) #modalReportDetail .modal-content,
body:not(.portal-body) #modalDiscountManager .modal-content,
body:not(.portal-body) #modalDesiEntry .modal-content,
body:not(.portal-body) #modalFilterOrders .modal-content,
body:not(.portal-body) #modalAddInventory .modal-content,
body:not(.portal-body) #modalReturnLogs .modal-content,
body:not(.portal-body) #modalStock .modal-content,
body:not(.portal-body) #modalSyncReport .modal-content,
body:not(.portal-body) #modalBarcodeScanner .modal-content,
body:not(.portal-body) #customAlert .modal-content,
body:not(.portal-body) #customConfirm .modal-content,
body:not(.portal-body) #modalDuplicateWarning .modal-content {
    border-radius: 18px !important;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 22rem),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.97)) !important;
    border: 1px solid rgba(34, 211, 238, 0.24) !important;
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.58), 0 0 46px rgba(34, 211, 238, 0.1) !important;
}

body:not(.portal-body) .modal-content [style*="background:#fff"],
body:not(.portal-body) .modal-content [style*="background: #fff"],
body:not(.portal-body) .modal-content [style*="background:white"],
body:not(.portal-body) .modal-content [style*="background: white"],
body:not(.portal-body) .modal-content [style*="background:#F8FAFC"],
body:not(.portal-body) .modal-content [style*="background: #F8FAFC"],
body:not(.portal-body) .modal-content [style*="background:#f8fafc"],
body:not(.portal-body) .modal-content [style*="background: #f8fafc"] {
    background: rgba(15, 23, 42, 0.64) !important;
    border-color: rgba(148, 163, 184, 0.15) !important;
}

body:not(.portal-body) .modal-content [style*="color:#334155"],
body:not(.portal-body) .modal-content [style*="color: #334155"],
body:not(.portal-body) .modal-content [style*="color:#1e293b"],
body:not(.portal-body) .modal-content [style*="color: #1e293b"],
body:not(.portal-body) .modal-content [style*="color:#0f172a"],
body:not(.portal-body) .modal-content [style*="color: #0f172a"],
body:not(.portal-body) .modal-content [style*="color:#333"],
body:not(.portal-body) .modal-content [style*="color: #333"] {
    color: #f8fafc !important;
}

body:not(.portal-body) .modal-content [style*="color:#64748b"],
body:not(.portal-body) .modal-content [style*="color: #64748b"],
body:not(.portal-body) .modal-content [style*="color:#475569"],
body:not(.portal-body) .modal-content [style*="color: #475569"],
body:not(.portal-body) .modal-content [style*="color:#666"],
body:not(.portal-body) .modal-content [style*="color: #666"],
body:not(.portal-body) .modal-content [style*="color:#555"],
body:not(.portal-body) .modal-content [style*="color: #555"] {
    color: #94a3b8 !important;
}

body:not(.portal-body) .modal-content [style*="border-bottom"],
body:not(.portal-body) .modal-content [style*="border-top"],
body:not(.portal-body) .modal-content [style*="border:1px"],
body:not(.portal-body) .modal-content [style*="border: 1px"] {
    border-color: rgba(148, 163, 184, 0.16) !important;
}

body:not(.portal-body) .modal-info-header,
body:not(.portal-body) .modal-left-panel,
body:not(.portal-body) .modal-right-panel,
body:not(.portal-body) .action-card,
body:not(.portal-body) .log-input-area,
body:not(.portal-body) .log-history-container,
body:not(.portal-body) .product-select-list,
body:not(.portal-body) .type-segment-container {
    background: rgba(15, 23, 42, 0.62) !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
}

body:not(.portal-body) .action-card {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 28px rgba(0, 0, 0, 0.16);
}

body:not(.portal-body) .action-card-header {
    color: #e2e8f0 !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
}

body:not(.portal-body) .type-btn {
    color: #94a3b8 !important;
}

body:not(.portal-body) .type-btn:hover {
    background: rgba(30, 41, 59, 0.72) !important;
    color: #f8fafc !important;
}

body:not(.portal-body) .type-btn.active {
    background: rgba(8, 47, 73, 0.8) !important;
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.16), 0 0 20px rgba(34, 211, 238, 0.1) !important;
}

body:not(.portal-body) .dispatch-table th,
body:not(.portal-body) .dispatch-table td,
body:not(.portal-body) .invoice-table-modern th,
body:not(.portal-body) .invoice-table-modern td {
    background: rgba(15, 23, 42, 0.54) !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
    color: #cbd5e1 !important;
}

body:not(.portal-body) .invoice-card,
body:not(.portal-body) .invoice-head,
body:not(.portal-body) .invoice-footer-section {
    background: rgba(15, 23, 42, 0.58) !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
    color: #dbeafe !important;
}

body:not(.portal-body) .summary-line,
body:not(.portal-body) .info-group p {
    color: #cbd5e1 !important;
}

body:not(.portal-body) .summary-line.grand-total,
body:not(.portal-body) .info-highlight {
    color: #f8fafc !important;
}

body:not(.portal-body) .modal input,
body:not(.portal-body) .modal select,
body:not(.portal-body) .modal textarea {
    background: rgba(2, 6, 23, 0.68) !important;
    border: 1px solid rgba(148, 163, 184, 0.24) !important;
    color: #e2e8f0 !important;
    box-shadow: none !important;
}

body:not(.portal-body) .modal input:disabled,
body:not(.portal-body) .modal select:disabled,
body:not(.portal-body) .modal textarea:disabled {
    background: rgba(15, 23, 42, 0.62) !important;
    color: #94a3b8 !important;
    opacity: 1;
}

body:not(.portal-body) .modal input::placeholder,
body:not(.portal-body) .modal textarea::placeholder {
    color: #64748b !important;
}

body:not(.portal-body) .modal option {
    background: #0f172a;
    color: #e2e8f0;
}

body:not(.portal-body) .modal input:focus,
body:not(.portal-body) .modal select:focus,
body:not(.portal-body) .modal textarea:focus {
    border-color: rgba(34, 211, 238, 0.72) !important;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12) !important;
}

@media (min-width: 900px) {
    body:not(.portal-body) #modalReturn.modal {
        top: 68px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: auto;
        display: block;
        padding: 0;
        background:
            radial-gradient(circle at top left, rgba(34, 211, 238, 0.13), transparent 28rem),
            radial-gradient(circle at top right, rgba(124, 58, 237, 0.13), transparent 32rem),
            rgba(2, 6, 23, 0.96);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        overflow: hidden;
    }

    body:not(.portal-body) #modalReturnContent {
        width: calc(100vw - 32px) !important;
        max-width: none !important;
        min-height: calc(100vh - 108px);
        max-height: calc(100vh - 108px);
        margin: 10px 16px 0;
        padding: 0 !important;
        border-radius: 18px !important;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        animation: returnPageIn 0.22s ease-out;
    }
}

@keyframes returnDrawerIn {
    from { opacity: 0; transform: translateX(28px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes returnPageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

body:not(.portal-body) #modalReturnContent > .close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 8;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

body:not(.portal-body) #modalReturnContent > h3 {
    flex-shrink: 0;
    margin: 0 !important;
    padding: 18px 60px 14px 22px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.13), transparent 18rem),
        rgba(2, 6, 23, 0.38);
    font-size: 17px;
}

body:not(.portal-body) #modalReturnContent .modal-info-header {
    flex-shrink: 0;
    margin: 0;
    padding: 10px 20px;
    border-radius: 0;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    grid-template-columns: 1.1fr 0.8fr 1.1fr;
}

body:not(.portal-body) #modalReturnContent #modalSplitLayout {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 18px 70px;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

body:not(.portal-body) #modalReturnContent #modalSplitLayout::-webkit-scrollbar {
    width: 8px;
}

body:not(.portal-body) #modalReturnContent #modalSplitLayout::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, 0.35);
    border-radius: 999px;
}

body:not(.portal-body) #modalReturnContent .modal-left-panel {
    position: sticky;
    top: 0;
    align-self: stretch;
    max-height: calc(100vh - 182px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    gap: 10px;
}

body:not(.portal-body) #modalReturnContent .modal-left-panel::-webkit-scrollbar,
body:not(.portal-body) #modalReturnContent .product-select-list::-webkit-scrollbar,
body:not(.portal-body) #modalReturnContent .modal-right-panel::-webkit-scrollbar {
    width: 7px;
}

body:not(.portal-body) #modalReturnContent .modal-left-panel::-webkit-scrollbar-thumb,
body:not(.portal-body) #modalReturnContent .product-select-list::-webkit-scrollbar-thumb,
body:not(.portal-body) #modalReturnContent .modal-right-panel::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, 0.28);
    border-radius: 999px;
}

body:not(.portal-body) #modalReturnContent .modal-right-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body:not(.portal-body) #modalReturnContent .modal-right-panel .action-card {
    margin-bottom: 0;
    padding: 12px;
}

body:not(.portal-body) #modalReturnContent #modalSplitLayout.single-mode {
    grid-template-columns: 1fr;
}

body:not(.portal-body) #modalReturnContent #modalSplitLayout.single-mode .modal-left-panel {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

body:not(.portal-body) #modalReturnContent #modalSplitLayout.single-mode .modal-left-panel .full-width-item {
    grid-column: 1 / -1;
}

body:not(.portal-body) #modalReturnContent > div:last-child {
    position: sticky;
    bottom: 0;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 10px 18px !important;
    border-top: 1px solid rgba(34, 211, 238, 0.18) !important;
    background: rgba(2, 6, 23, 0.84);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.32);
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

body:not(.portal-body) #modalReturnContent #btnSaveReturn {
    height: 38px !important;
    max-width: 336px;
    margin-left: 0;
    font-size: 13px !important;
    flex: 0 0 336px;
}

body:not(.portal-body) #modalReturnContent .exchange-tracking-footer {
    display: none;
    flex: 1 1 auto;
    min-width: 260px;
    max-width: 520px;
}

body:not(.portal-body) #modalReturnContent[data-return-type="degisim"] .exchange-tracking-footer {
    display: block;
}

body:not(.portal-body) #modalReturnContent .exchange-tracking-footer label {
    display: block;
    margin-bottom: 5px;
    color: #94a3b8 !important;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

body:not(.portal-body) #modalReturnContent .exchange-tracking-footer #modalExchangeTracking {
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
}

body:not(.portal-body) #modalReturnContent .exchange-tracking-source {
    display: none;
}

body:not(.portal-body) #modalReturnContent .modal-info-group input {
    height: 30px !important;
    min-height: 30px !important;
    font-size: 12px !important;
}

body:not(.portal-body) #modalReturnContent #modalReturnStatus,
body:not(.portal-body) #modalReturnContent .type-segment-container {
    height: auto !important;
    min-height: 36px !important;
    flex-wrap: wrap;
}

body:not(.portal-body) #modalReturnContent .type-btn {
    height: 28px;
    font-size: 11px;
}

body:not(.portal-body) #modalReturnContent textarea {
    min-height: 88px;
}

body:not(.portal-body) #modalReturnContent #shippingDeductionArea {
    margin-top: 0 !important;
    padding: 9px !important;
}

body:not(.portal-body) #modalReturnContent #exchangeField input,
body:not(.portal-body) #modalReturnContent #refundField input,
body:not(.portal-body) #modalReturnContent #shippingDeductionArea input {
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
}

body:not(.portal-body) #modalReturnContent .product-select-list {
    max-height: min(280px, calc(100vh - 390px)) !important;
}

body:not(.portal-body) #modalReturnContent #exchangeField table,
body:not(.portal-body) #modalReturnContent .dispatch-table {
    white-space: normal;
}

body:not(.portal-body) #modalReturnContent #exchangeField [style*="max-height:100px"] {
    max-height: 150px !important;
}

body:not(.portal-body) #modalReturnContent #modalReturnStatus {
    height: 36px !important;
    min-height: 36px !important;
    line-height: 1.2 !important;
    padding: 0 36px 0 14px !important;
    overflow: visible !important;
    text-overflow: clip;
}

body:not(.portal-body) #modalReturnContent #modalSplitLayout.single-mode {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr) !important;
}

body:not(.portal-body) #modalReturnContent #modalSplitLayout.single-mode .modal-left-panel {
    position: sticky !important;
    top: 0;
    display: flex !important;
    grid-template-columns: none !important;
}

body:not(.portal-body) #modalReturnContent #modalSplitLayout.single-mode .modal-left-panel .full-width-item {
    grid-column: auto !important;
}

body:not(.portal-body) #modalReturnContent #productSelectionArea {
    display: block;
    min-height: 292px;
    align-self: stretch;
    margin-top: 0 !important;
    height: 100%;
}

body:not(.portal-body) #modalReturnContent #productSelectionArea .action-card-header {
    flex-shrink: 0;
}

body:not(.portal-body) #modalReturnContent #productSelectionArea,
body:not(.portal-body) #modalReturnContent #productSelectionArea .product-select-list {
    overflow-x: hidden !important;
}

body:not(.portal-body) #modalReturnContent #productSelectionArea .product-select-list {
    height: calc(100% - 34px);
    max-height: none !important;
}

body:not(.portal-body) #modalReturnContent #orderProductList > div {
    min-width: 0;
    max-width: 100%;
    background: rgba(15, 23, 42, 0.7) !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
}

body:not(.portal-body) #modalReturnContent #orderProductList > div > div:nth-child(2) {
    min-width: 0 !important;
}

body:not(.portal-body) #modalReturnContent #orderProductList > div > div:nth-child(3) {
    min-width: 70px !important;
}

body:not(.portal-body) #modalReturnContent #orderProductList > div > div:nth-child(4) {
    width: 64px !important;
    flex-shrink: 0;
}

body:not(.portal-body) #modalReturnContent .modal-left-panel,
body:not(.portal-body) #modalReturnContent #productSelectionArea {
    transform: translateY(0);
}

@media (max-width: 1280px) and (min-width: 900px) {
    body:not(.portal-body) #modalReturnContent {
        width: calc(100vw - 24px) !important;
        margin-left: 12px;
        margin-right: 12px;
    }

    body:not(.portal-body) #modalReturnContent #modalSplitLayout,
    body:not(.portal-body) #modalReturnContent #modalSplitLayout.single-mode {
        grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr) !important;
    }
}

body:not(.portal-body) #modalReturnContent #orderProductList:empty::before {
    content: "Siparis urunleri, siparis no arandiginda burada gorunur.";
    display: block;
    padding: 18px;
    border: 1px dashed rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    color: #94a3b8;
    text-align: center;
    font-size: 13px;
}

body:not(.portal-body) #modalReturnContent[data-return-type="degisim"] #refundField {
    display: none !important;
}

body:not(.portal-body) #modalReturnContent #exchangeField .btn-secondary,
body:not(.portal-body) #modalReturnContent #exchangeField button {
    background: rgba(15, 23, 42, 0.82) !important;
    border: 1px solid rgba(125, 211, 252, 0.28) !important;
    color: #dbeafe !important;
    box-shadow: none !important;
}

body:not(.portal-body) #modalReturnContent #exchangeField .btn-secondary:hover,
body:not(.portal-body) #modalReturnContent #exchangeField button:hover {
    background: rgba(8, 47, 73, 0.86) !important;
    border-color: rgba(34, 211, 238, 0.5) !important;
    color: #ffffff !important;
}

body:not(.portal-body) #modalReturnContent #exchangeField button[onclick="printDispatchSlip()"] {
    height: 36px !important;
    margin-top: 8px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.86), rgba(59, 130, 246, 0.86)) !important;
    border-color: rgba(125, 211, 252, 0.48) !important;
    color: #ffffff !important;
    font-weight: 800;
    opacity: 1 !important;
}

body:not(.portal-body) #modalReturnContent #exchangeField button[onclick="printDispatchSlip()"] i,
body:not(.portal-body) #modalReturnContent #exchangeField button[onclick="printDispatchSlip()"] * {
    color: #ffffff !important;
}

body:not(.portal-body) #modalReturnContent #exchangeField .btn-danger,
body:not(.portal-body) #modalReturnContent #exchangeField button.btn-danger {
    background: rgba(127, 29, 29, 0.38) !important;
    border-color: rgba(251, 113, 133, 0.34) !important;
    color: #fecdd3 !important;
}

@media (max-width: 899px) {
    body:not(.portal-body) #modalReturnContent {
        display: block;
        overflow-y: auto;
    }

    body:not(.portal-body) #modalReturnContent > h3 {
        padding: 22px 58px 16px 20px;
    }

    body:not(.portal-body) #modalReturnContent .modal-info-header {
        padding: 16px 20px;
    }

    body:not(.portal-body) #modalReturnContent #modalSplitLayout {
        padding: 16px 18px 28px;
        overflow: visible;
    }

    body:not(.portal-body) #modalReturnContent .modal-left-panel {
        position: static;
    }
}

body:not(.portal-body) #mainPanel .pagination-container {
    background: transparent !important;
    border-color: rgba(34, 211, 238, 0.14) !important;
}

body:not(.portal-body) #mainPanel .pagination-btn,
body:not(.portal-body) #mainPanel .page-btn {
    background: rgba(15, 23, 42, 0.78) !important;
    border-color: rgba(34, 211, 238, 0.2) !important;
    color: #bae6fd !important;
}

body:not(.portal-body) #mainPanel .pagination-info,
body:not(.portal-body) #mainPanel .page-btn.active {
    background: rgba(6, 182, 212, 0.18) !important;
    border-color: rgba(34, 211, 238, 0.42) !important;
    color: #f8fafc !important;
}

@media (max-width: 900px) {
    body:not(.portal-body) #mainPanel .sidebar {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px;
    }

    body:not(.portal-body) #mainPanel .sidebar .brand,
    body:not(.portal-body) #mainPanel .brand {
        display: flex;
        width: auto;
        padding-right: 8px;
        font-size: 19px;
    }

    body:not(.portal-body) #mainPanel .user-info {
        display: block;
        order: 2;
        margin-left: auto;
        padding: 6px 9px;
        font-size: 11px;
    }

    body:not(.portal-body) #mainPanel .sidebar nav {
        order: 3;
        flex-basis: 100%;
        width: 100%;
        justify-content: flex-start;
        gap: 6px;
    }

    body:not(.portal-body) #mainPanel .nav-btn {
        min-height: 32px;
        padding: 0 10px;
        font-size: 11px;
    }

    body:not(.portal-body) #mainPanel .content {
        padding: 22px 14px 42px;
    }
}

@media (min-width: 1180px) {
    body:not(.portal-body) #mainPanel .sidebar {
        flex-wrap: nowrap;
    }

    body:not(.portal-body) #mainPanel .sidebar nav {
        order: 2;
        min-width: 0;
        flex: 1 1 auto;
        justify-content: center;
    }

    body:not(.portal-body) #mainPanel .user-info {
        order: 3;
        margin-left: 0;
    }
}

@media (max-width: 560px) {
    body:not(.portal-body) #mainPanel .sidebar {
        position: sticky;
    }

    body:not(.portal-body) #mainPanel .sidebar .brand,
    body:not(.portal-body) #mainPanel .brand {
        font-size: 18px;
    }

    body:not(.portal-body) #mainPanel .user-info {
        max-width: 42vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body:not(.portal-body) #mainPanel .nav-btn {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
    }
}

/* ============================================================
   URUN YONETIMI MODALI - NEON PANEL
   ============================================================ */
body:not(.portal-body) #modalUpdateInventory .modal-content {
    width: min(980px, calc(100vw - 42px)) !important;
    max-width: none !important;
    max-height: calc(100vh - 64px);
    padding: 0 !important;
    overflow: visible !important;
}

body:not(.portal-body) #modalUpdateInventory .modal-content > h3 {
    margin: 0 !important;
    padding: 12px 54px 10px 18px !important;
    border-bottom: 1px solid rgba(125, 211, 252, 0.16) !important;
    background:
        linear-gradient(90deg, rgba(6, 182, 212, 0.13), rgba(59, 130, 246, 0.06), transparent),
        rgba(15, 23, 42, 0.54);
    font-size: 15px;
    letter-spacing: 0;
}

body:not(.portal-body) #modalUpdateInventory .modal-content > .close {
    top: 7px !important;
    right: 16px !important;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(125, 211, 252, 0.26);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.72);
    font-size: 22px !important;
    line-height: 1;
}

body:not(.portal-body) #modalUpdateInventory .inv-modal-grid {
    grid-template-columns: minmax(300px, 0.82fr) minmax(430px, 1fr);
    gap: 14px;
    min-height: 0;
    height: auto;
    max-height: calc(100vh - 112px);
    padding: 14px 18px 14px;
    overflow: visible;
}

body:not(.portal-body) #modalUpdateInventory .inv-left-col,
body:not(.portal-body) #modalUpdateInventory .inv-right-col {
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.62), rgba(15, 23, 42, 0.72)),
        rgba(15, 23, 42, 0.72) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 38px rgba(0, 0, 0, 0.2);
    height: auto;
}

body:not(.portal-body) #modalUpdateInventory .inv-left-col {
    padding: 10px !important;
    border-right: 1px solid rgba(148, 163, 184, 0.16) !important;
}

body:not(.portal-body) #modalUpdateInventory .inv-right-col {
    max-height: none;
    padding: 10px;
    overflow: visible;
}

body:not(.portal-body) #modalUpdateInventory .inv-product-img {
    height: 92px;
    margin-bottom: 8px;
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 0%, rgba(125, 211, 252, 0.16), transparent 58%),
        rgba(2, 6, 23, 0.42) !important;
    border: 1px solid rgba(125, 211, 252, 0.2) !important;
    object-fit: contain;
}

body:not(.portal-body) #modalUpdateInventory label {
    display: block;
    margin: 0 0 4px !important;
    color: #94a3b8 !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: 0;
    text-transform: uppercase;
}

body:not(.portal-body) #modalUpdateInventory label + input,
body:not(.portal-body) #modalUpdateInventory label + select {
    margin-bottom: 7px;
}

body:not(.portal-body) #modalUpdateInventory input,
body:not(.portal-body) #modalUpdateInventory select {
    height: 32px;
    background: rgba(2, 6, 23, 0.48) !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    border-radius: 9px !important;
    color: #e2e8f0 !important;
    font-size: 11px !important;
    padding: 0 12px !important;
}

body:not(.portal-body) #modalUpdateInventory #updateInvSku {
    color: #f8fafc !important;
    background: rgba(15, 23, 42, 0.8) !important;
    border-color: rgba(125, 211, 252, 0.2) !important;
}

body:not(.portal-body) #modalUpdateInventory .inv-left-col > div[style*="margin-top:auto"] {
    padding-top: 8px !important;
}

body:not(.portal-body) #modalUpdateInventory .btn-primary,
body:not(.portal-body) #modalUpdateInventory button[onclick="updateInventoryItem()"] {
    height: 34px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #2563eb, #06b6d4) !important;
    border: 1px solid rgba(125, 211, 252, 0.35) !important;
    color: #ffffff !important;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.26);
}

body:not(.portal-body) #modalUpdateInventory .log-list-header {
    margin: 0 0 7px;
    color: #dbeafe !important;
    font-size: 12px;
    font-weight: 800;
}

body:not(.portal-body) #modalUpdateInventory .log-history-container {
    min-height: 0;
    height: 148px;
    flex: 0 0 148px;
    margin-bottom: 10px;
    border-radius: 11px;
    background: rgba(2, 6, 23, 0.32) !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
    scrollbar-color: rgba(34, 211, 238, 0.42) transparent;
}

body:not(.portal-body) #modalUpdateInventory .log-history-container:empty::before {
    content: "Henuz hareket kaydi yok.";
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 126px;
    color: #94a3b8;
    font-size: 12px;
}

body:not(.portal-body) #modalUpdateInventory .log-item {
    background: rgba(15, 23, 42, 0.78) !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
    color: #dbeafe !important;
}

body:not(.portal-body) #modalUpdateInventory .log-item:hover {
    transform: translateX(0);
    border-color: rgba(34, 211, 238, 0.28) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

body:not(.portal-body) #modalUpdateInventory .log-meta {
    color: #94a3b8 !important;
}

body:not(.portal-body) #modalUpdateInventory .log-content {
    color: #e2e8f0 !important;
}

body:not(.portal-body) #modalUpdateInventory .log-qty-badge {
    background: rgba(37, 99, 235, 0.2) !important;
    border: 1px solid rgba(96, 165, 250, 0.25);
    color: #93c5fd !important;
}

body:not(.portal-body) #modalUpdateInventory .log-input-area {
    padding: 10px !important;
    border-radius: 11px;
    background: rgba(15, 23, 42, 0.74) !important;
    border-color: rgba(34, 211, 238, 0.18) !important;
    flex: 0 0 auto;
}

body:not(.portal-body) #modalUpdateInventory .log-input-area > div:first-child {
    color: #cbd5e1 !important;
    font-size: 10px !important;
    margin-bottom: 6px !important;
    letter-spacing: 0;
}

body:not(.portal-body) #modalUpdateInventory .log-input-area > div[style*="grid-template-columns"] {
    gap: 6px !important;
    margin-bottom: 6px !important;
}

body:not(.portal-body) #modalUpdateInventory #logNoteInput {
    margin-bottom: 6px !important;
}

body:not(.portal-body) #modalUpdateInventory .log-input-area .btn-secondary,
body:not(.portal-body) #modalUpdateInventory button[onclick="addInventoryLog()"] {
    height: 30px !important;
    border-radius: 9px !important;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.9), rgba(59, 130, 246, 0.88)) !important;
    border: 1px solid rgba(125, 211, 252, 0.38) !important;
    color: #ffffff !important;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(6, 182, 212, 0.2);
}

body:not(.portal-body) #modalUpdateInventory .log-input-area .btn-secondary i,
body:not(.portal-body) #modalUpdateInventory button[onclick="addInventoryLog()"] i {
    color: #ffffff !important;
}

@media (max-width: 900px) {
    body:not(.portal-body) #modalUpdateInventory .modal-content {
        width: calc(100vw - 24px) !important;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }

    body:not(.portal-body) #modalUpdateInventory .inv-modal-grid {
        grid-template-columns: 1fr;
        max-height: none;
        min-height: 0;
        padding: 16px;
        overflow: visible;
    }

    body:not(.portal-body) #modalUpdateInventory .inv-right-col {
        min-height: 420px;
    }
}

/* ============================================================
   SIPARIS YONETIMI - KOYU TEMA DUZELTMELERI
   ============================================================ */
body:not(.portal-body) #page-wholesale .wholesale-layout {
    gap: 20px;
}

body:not(.portal-body) #page-wholesale .ws-left-col .card,
body:not(.portal-body) #page-wholesale .ws-right-col .card {
    border-radius: 16px;
}

body:not(.portal-body) #page-wholesale .card > div[style*="border-bottom"] {
    border-color: rgba(148, 163, 184, 0.16) !important;
}

body:not(.portal-body) #page-wholesale .card h4,
body:not(.portal-body) #page-wholesale .sticky-card h3,
body:not(.portal-body) #page-wholesale .discount-tiers-container h4 {
    color: #f8fafc !important;
}

body:not(.portal-body) #page-wholesale .ws-table {
    border-collapse: separate;
    border-spacing: 0 8px;
}

body:not(.portal-body) #page-wholesale .ws-table th {
    background: transparent !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
    color: #94a3b8 !important;
    font-size: 11px;
    text-transform: uppercase;
}

body:not(.portal-body) #page-wholesale .ws-table td {
    background: rgba(15, 23, 42, 0.42) !important;
    border-top: 1px solid rgba(148, 163, 184, 0.1) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1) !important;
    color: #cbd5e1 !important;
}

body:not(.portal-body) #page-wholesale .ws-table tbody tr td:first-child {
    border-left: 1px solid rgba(148, 163, 184, 0.12) !important;
    border-radius: 9px 0 0 9px;
}

body:not(.portal-body) #page-wholesale .ws-table tbody tr td:last-child {
    border-right: 1px solid rgba(148, 163, 184, 0.12) !important;
    border-radius: 0 9px 9px 0;
}

body:not(.portal-body) #page-wholesale .ws-table input {
    height: 38px;
    background: rgba(2, 6, 23, 0.55) !important;
    border: 1px solid rgba(125, 211, 252, 0.2) !important;
    border-radius: 8px !important;
    color: #e2e8f0 !important;
}

body:not(.portal-body) #page-wholesale .ws-table td[style*="color:#999"],
body:not(.portal-body) #page-wholesale .ws-table td[style*="color: #999"] {
    color: #94a3b8 !important;
}

body:not(.portal-body) #page-wholesale .ws-table td[style*="color:#333"],
body:not(.portal-body) #page-wholesale .ws-table td[style*="color: #333"] {
    color: #e2e8f0 !important;
}

body:not(.portal-body) #page-wholesale .ws-table .btn-danger,
body:not(.portal-body) #page-wholesale .ws-table button.btn-danger {
    width: 32px;
    height: 32px;
    border-radius: 8px !important;
    background: rgba(127, 29, 29, 0.36) !important;
    border: 1px solid rgba(251, 113, 133, 0.38) !important;
    color: #fecdd3 !important;
}

body:not(.portal-body) #page-wholesale tr.manual-row td,
body:not(.portal-body) #page-wholesale tr.manual-row {
    background: rgba(127, 29, 29, 0.18) !important;
    color: #fecdd3 !important;
}

body:not(.portal-body) #page-wholesale tr.manual-row input {
    background: rgba(69, 10, 10, 0.36) !important;
    border-color: rgba(251, 113, 133, 0.36) !important;
    color: #fecdd3 !important;
}

body:not(.portal-body) #page-wholesale button[onclick="addWholesaleRow()"] {
    background: rgba(8, 47, 73, 0.45) !important;
    border: 1px dashed rgba(34, 211, 238, 0.42) !important;
    color: #bae6fd !important;
}

body:not(.portal-body) #page-wholesale button[onclick="addReturnRow()"] {
    background: rgba(127, 29, 29, 0.28) !important;
    border: 1px dashed rgba(251, 113, 133, 0.42) !important;
    color: #fecdd3 !important;
}

body:not(.portal-body) #page-wholesale .toggle-container {
    background: rgba(2, 6, 23, 0.44) !important;
    border: 1px solid rgba(148, 163, 184, 0.14);
}

body:not(.portal-body) #page-wholesale .toggle-container label {
    color: #94a3b8 !important;
}

body:not(.portal-body) #page-wholesale .summary-row {
    border-color: rgba(148, 163, 184, 0.24) !important;
    color: #94a3b8 !important;
}

body:not(.portal-body) #page-wholesale .summary-row span:last-child {
    color: #cbd5e1 !important;
}

body:not(.portal-body) #page-wholesale .summary-total {
    border-top: 1px solid rgba(125, 211, 252, 0.36) !important;
    color: #60a5fa !important;
}

body:not(.portal-body) #page-wholesale .summary-total span {
    color: #60a5fa !important;
}

body:not(.portal-body) #page-wholesale .badge-discount {
    background: rgba(16, 185, 129, 0.18) !important;
    border: 1px solid rgba(52, 211, 153, 0.28);
    color: #86efac !important;
}

body:not(.portal-body) #page-wholesale .discount-tiers-container {
    border-top: 1px solid rgba(148, 163, 184, 0.22) !important;
}

body:not(.portal-body) #page-wholesale #discountTiersList {
    max-height: 242px !important;
    padding-right: 4px;
    scrollbar-color: rgba(34, 211, 238, 0.42) transparent;
}

body:not(.portal-body) #page-wholesale .tier-item {
    background: rgba(15, 23, 42, 0.66) !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    color: #cbd5e1 !important;
    border-radius: 10px;
    margin-bottom: 7px;
}

body:not(.portal-body) #page-wholesale .tier-item span,
body:not(.portal-body) #page-wholesale .tier-item i {
    color: inherit !important;
}

body:not(.portal-body) #page-wholesale .tier-item.active-tier {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(37, 99, 235, 0.18)) !important;
    border-color: rgba(34, 211, 238, 0.45) !important;
    color: #e0f2fe !important;
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.1);
}

/* ============================================================
   ISKONTO AYARLARI MODALI
   ============================================================ */
body:not(.portal-body) #modalDiscountManager {
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 30rem),
        radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.14), transparent 32rem),
        rgba(2, 6, 23, 0.78) !important;
}

body:not(.portal-body) #modalDiscountManager .modal-content {
    width: min(640px, calc(100vw - 42px)) !important;
    max-width: none !important;
    max-height: calc(100vh - 78px) !important;
    padding: 0 !important;
    overflow: hidden !important;
}

body:not(.portal-body) #modalDiscountManager .modal-content > div:first-child {
    margin: 0 !important;
    padding: 16px 54px 14px 20px !important;
    border-bottom: 1px solid rgba(125, 211, 252, 0.18) !important;
    background:
        linear-gradient(90deg, rgba(6, 182, 212, 0.14), rgba(124, 58, 237, 0.08), transparent),
        rgba(15, 23, 42, 0.56) !important;
}

body:not(.portal-body) #modalDiscountManager h3 {
    color: #f8fafc !important;
    font-size: 17px;
}

body:not(.portal-body) #modalDiscountManager .modal-content > div:first-child .close {
    top: 12px !important;
    right: 16px !important;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(125, 211, 252, 0.28);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.72);
    color: #7dd3fc !important;
    line-height: 1;
}

body:not(.portal-body) #modalDiscountManager .modal-content > div:nth-child(2) {
    padding: 16px 18px 4px !important;
    overflow-y: auto !important;
    scrollbar-color: rgba(34, 211, 238, 0.42) transparent;
}

body:not(.portal-body) #modalDiscountManager .modal-content > div:nth-child(2) > div:first-child,
body:not(.portal-body) #modalDiscountManager .modal-content > div:last-child > div:first-of-type {
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.58), rgba(15, 23, 42, 0.7)),
        rgba(15, 23, 42, 0.72) !important;
    border: 1px solid rgba(34, 211, 238, 0.16) !important;
    border-radius: 14px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body:not(.portal-body) #modalDiscountManager label,
body:not(.portal-body) #modalDiscountManager small {
    color: #94a3b8 !important;
}

body:not(.portal-body) #modalDiscountManager h4 {
    color: #e2e8f0 !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
}

body:not(.portal-body) #modalDiscountManager input {
    height: 38px !important;
    background: rgba(2, 6, 23, 0.58) !important;
    border: 1px solid rgba(125, 211, 252, 0.2) !important;
    border-radius: 10px !important;
    color: #e2e8f0 !important;
    box-shadow: none !important;
}

body:not(.portal-body) #modalDiscountManager input::placeholder {
    color: #64748b !important;
}

body:not(.portal-body) #modalDiscountManager .btn-primary,
body:not(.portal-body) #modalDiscountManager button[onclick="saveBaseSettings()"] {
    height: 38px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #06b6d4, #7c3aed) !important;
    border: 1px solid rgba(125, 211, 252, 0.36) !important;
    color: #ffffff !important;
    font-weight: 800;
}

body:not(.portal-body) #modalDiscountManager .table-responsive {
    max-height: 230px;
    overflow-y: auto;
    background: rgba(2, 6, 23, 0.28) !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    border-radius: 14px !important;
}

body:not(.portal-body) #modalDiscountManager .ws-table {
    border-collapse: separate;
    border-spacing: 0 7px;
}

body:not(.portal-body) #modalDiscountManager .ws-table thead {
    background: transparent !important;
}

body:not(.portal-body) #modalDiscountManager .ws-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(15, 23, 42, 0.94) !important;
    color: #94a3b8 !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
}

body:not(.portal-body) #modalDiscountManager .ws-table td {
    background: rgba(15, 23, 42, 0.7) !important;
    border-top: 1px solid rgba(148, 163, 184, 0.12) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
    color: #dbeafe !important;
}

body:not(.portal-body) #modalDiscountManager .ws-table td:first-child {
    border-left: 1px solid rgba(148, 163, 184, 0.12) !important;
    border-radius: 10px 0 0 10px;
}

body:not(.portal-body) #modalDiscountManager .ws-table td:last-child {
    border-right: 1px solid rgba(148, 163, 184, 0.12) !important;
    border-radius: 0 10px 10px 0;
}

body:not(.portal-body) #modalDiscountManager #tblDiscountTiers .text-center,
body:not(.portal-body) #modalDiscountManager #tblDiscountTiers td[colspan="3"] {
    color: #94a3b8 !important;
    text-align: center;
}

body:not(.portal-body) #modalDiscountManager .btn-danger,
body:not(.portal-body) #modalDiscountManager button[onclick*="deleteTier"] {
    background: rgba(127, 29, 29, 0.36) !important;
    border: 1px solid rgba(251, 113, 133, 0.36) !important;
    color: #fecdd3 !important;
    border-radius: 8px !important;
}

body:not(.portal-body) #modalDiscountManager .modal-content > div:last-child {
    margin: 0 !important;
    padding: 14px 18px 16px !important;
    border-top: 1px solid rgba(125, 211, 252, 0.16) !important;
    background: rgba(2, 6, 23, 0.34);
}

body:not(.portal-body) #modalDiscountManager .modal-content > div:last-child label {
    color: #fcd34d !important;
}

body:not(.portal-body) #modalDiscountManager button[onclick="addNewTier()"] {
    height: 38px !important;
    min-width: 82px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(6, 182, 212, 0.74)) !important;
    border: 1px solid rgba(251, 191, 36, 0.38) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-weight: 800;
}

body:not(.portal-body) #modalDiscountManager button[onclick="closeDiscountModal()"] {
    background: rgba(15, 23, 42, 0.76) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    color: #cbd5e1 !important;
}

@media (max-width: 640px) {
    body:not(.portal-body) #modalDiscountManager .modal-content {
        width: calc(100vw - 24px) !important;
    }

    body:not(.portal-body) #modalDiscountManager .modal-content > div:nth-child(2) > div:first-child > div,
    body:not(.portal-body) #modalDiscountManager .modal-content > div:last-child > div:first-of-type {
        grid-template-columns: 1fr !important;
        display: grid !important;
    }
}

/* ============================================================
   KARGO DESI SAYFASI VE OLCUM MODALI
   ============================================================ */
body:not(.portal-body) #page-desi .toolbar-container {
    gap: 12px;
}

body:not(.portal-body) #page-desi .toolbar-container > div {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 34px rgba(0, 0, 0, 0.18);
}

body:not(.portal-body) #page-desi input,
body:not(.portal-body) #page-desi select {
    height: 48px;
    color-scheme: dark;
}

body:not(.portal-body) #page-desi select option {
    background: #0f172a;
    color: #e2e8f0;
}

body:not(.portal-body) #page-desi button[onclick="downloadDesiExcel()"] {
    background: rgba(6, 78, 59, 0.32) !important;
    border: 1px solid rgba(52, 211, 153, 0.32) !important;
    color: #bbf7d0 !important;
}

body:not(.portal-body) #page-desi button[onclick="openNewDesiModal()"] {
    min-width: 136px;
}

body:not(.portal-body) #page-desi #desiTableBody tr[style*="background-color:#FEF2F2"] td,
body:not(.portal-body) #page-desi #desiTableBody tr[style*="background-color: #FEF2F2"] td {
    background: rgba(127, 29, 29, 0.22) !important;
    border-color: rgba(251, 113, 133, 0.18) !important;
}

body:not(.portal-body) #page-desi #desiTableBody td[style*="color:#64748B"],
body:not(.portal-body) #page-desi #desiTableBody td[style*="color: #64748B"] {
    color: #94a3b8 !important;
}

body:not(.portal-body) #page-desi #desiTableBody .btn-sm {
    width: 38px;
    height: 34px;
    border-radius: 9px;
    color: #dbeafe !important;
}

body:not(.portal-body) #modalDesiEntry .modal-content {
    width: min(680px, calc(100vw - 42px)) !important;
    max-width: none !important;
    max-height: calc(100vh - 76px);
    padding: 0 !important;
    overflow-y: auto !important;
    scrollbar-color: rgba(34, 211, 238, 0.42) transparent;
}

body:not(.portal-body) #modalDesiEntry .modal-content > h3 {
    margin: 0 !important;
    padding: 17px 58px 14px 22px !important;
    border-bottom: 1px solid rgba(125, 211, 252, 0.18) !important;
    background:
        linear-gradient(90deg, rgba(6, 182, 212, 0.14), rgba(124, 58, 237, 0.08), transparent),
        rgba(15, 23, 42, 0.58) !important;
    color: #f8fafc !important;
    font-size: 17px;
}

body:not(.portal-body) #modalDesiEntry .modal-content > .close {
    top: 12px !important;
    right: 16px !important;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(125, 211, 252, 0.28);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.72);
    color: #7dd3fc !important;
    line-height: 1;
}

body:not(.portal-body) #modalDesiEntry .modal-content > input[type="hidden"] ~ div,
body:not(.portal-body) #modalDesiEntry .modal-content > div {
    margin: 14px 20px !important;
}

body:not(.portal-body) #modalDesiEntry .modal-content > div:not(:has(#desiCalculated)) {
    color: #dbeafe;
}

body:not(.portal-body) #modalDesiEntry label {
    display: block;
    margin-bottom: 6px;
    color: #94a3b8 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0;
    text-transform: uppercase;
}

body:not(.portal-body) #modalDesiEntry small {
    color: #94a3b8 !important;
}

body:not(.portal-body) #modalDesiEntry input {
    height: 42px;
    background: rgba(2, 6, 23, 0.58) !important;
    border: 1px solid rgba(125, 211, 252, 0.2) !important;
    border-radius: 10px !important;
    color: #e2e8f0 !important;
    box-shadow: none !important;
}

body:not(.portal-body) #modalDesiEntry input::placeholder {
    color: #64748b !important;
}

body:not(.portal-body) #modalDesiEntry .modal-content > div:has(#desiPackagesContainer) {
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.58) !important;
}

body:not(.portal-body) #modalDesiEntry .modal-content > div:has(#desiPackagesContainer) > div:first-child {
    align-items: center;
}

body:not(.portal-body) #modalDesiEntry .desi-row {
    gap: 8px;
}

body:not(.portal-body) #modalDesiEntry .desi-row input {
    height: 38px !important;
    min-height: 38px !important;
    padding: 7px !important;
    background: rgba(2, 6, 23, 0.5) !important;
}

body:not(.portal-body) #modalDesiEntry .btn-remove-row {
    width: 38px;
    height: 38px;
    background: rgba(127, 29, 29, 0.32) !important;
    border: 1px solid rgba(251, 113, 133, 0.32) !important;
    color: #fecdd3 !important;
}

body:not(.portal-body) #modalDesiEntry .desi-preset-btn {
    background: rgba(15, 23, 42, 0.65) !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    color: #e2e8f0 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    height: 38px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

body:not(.portal-body) #modalDesiEntry .desi-preset-btn:hover {
    background: rgba(14, 116, 144, 0.35) !important;
    border-color: rgba(34, 211, 238, 0.55) !important;
    color: #67e8f9 !important;
    transform: translateY(-1px);
}

body:not(.portal-body) #modalDesiEntry button[onclick="addDesiPackageRow()"],
body:not(.portal-body) #modalDesiEntry .desi-add-btn {
    background: rgba(8, 47, 73, 0.45) !important;
    border: 1px dashed rgba(34, 211, 238, 0.42) !important;
    color: #bae6fd !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    height: 38px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

body:not(.portal-body) #modalDesiEntry button[onclick="addDesiPackageRow()"]:hover,
body:not(.portal-body) #modalDesiEntry .desi-add-btn:hover {
    background: rgba(8, 47, 73, 0.75) !important;
    border-color: rgba(34, 211, 238, 0.7) !important;
    color: #e0f2fe !important;
    transform: translateY(-1px);
}

body:not(.portal-body) #modalDesiEntry .modal-content > div:has(#desiCalculated) {
    background:
        radial-gradient(circle at center top, rgba(34, 211, 238, 0.16), transparent 70%),
        rgba(8, 47, 73, 0.42) !important;
    border: 1px solid rgba(34, 211, 238, 0.24) !important;
    border-radius: 14px !important;
    padding: 15px !important;
}

body:not(.portal-body) #modalDesiEntry #desiCalculated {
    color: #67e8f9 !important;
    text-shadow: 0 0 18px rgba(34, 211, 238, 0.22);
}

body:not(.portal-body) #modalDesiEntry .modal-content > div[style*="border-top"] {
    padding: 14px !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.5);
}

body:not(.portal-body) #modalDesiEntry button[onclick="saveDesiEntry()"] {
    width: calc(100% - 40px) !important;
    margin: 0 20px 20px !important;
    height: 42px;
    border-radius: 11px !important;
}

@media (max-width: 720px) {
    body:not(.portal-body) #page-desi .toolbar-container,
    body:not(.portal-body) #page-desi .toolbar-container > div {
        align-items: stretch;
        flex-direction: column;
    }

    body:not(.portal-body) #page-desi input,
    body:not(.portal-body) #page-desi select {
        width: 100% !important;
    }

    body:not(.portal-body) #modalDesiEntry .desi-row,
    body:not(.portal-body) #modalDesiEntry .modal-content > div:has(#desiPackagesContainer) > div:first-child {
        grid-template-columns: 1fr 1fr !important;
    }

    body:not(.portal-body) #modalDesiEntry .btn-remove-row {
        width: 100%;
    }
}

/* ============================================================
   OZET SAYFASI - GUNUN GOREVLERI & AKILLI STOK ONERILERI
   ============================================================ */
body:not(.portal-body) #page-dashboard .dashboard-intel-grid {
    display: grid;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
    margin: 4px 0 20px;
}

body:not(.portal-body) #page-dashboard .dashboard-left-stack {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    gap: 10px;
}

body:not(.portal-body) #page-dashboard .dashboard-chart-card {
    position: relative;
    overflow: hidden;
    min-height: 178px;
    padding: 15px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(34, 211, 238, 0.18);
}

body:not(.portal-body) #page-dashboard .dashboard-chart-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.12), transparent 42%),
        radial-gradient(circle at 84% 16%, rgba(16, 185, 129, 0.16), transparent 12rem);
    pointer-events: none;
}

body:not(.portal-body) #page-dashboard .dashboard-trend-card,
body:not(.portal-body) #page-dashboard .dashboard-workload-card {
    grid-column: span 3;
}

body:not(.portal-body) #page-dashboard .dashboard-workload-card {
    min-height: 156px;
}

body:not(.portal-body) #page-dashboard .dashboard-chart-header,
body:not(.portal-body) #page-dashboard .trend-chart,
body:not(.portal-body) #page-dashboard .workload-visual {
    position: relative;
    z-index: 1;
}

body:not(.portal-body) #page-dashboard .dashboard-chart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

body:not(.portal-body) #page-dashboard .dashboard-chart-header h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 14px;
    line-height: 1.25;
}

body:not(.portal-body) #page-dashboard .dashboard-chart-header h3 i {
    color: #22d3ee;
    margin-right: 7px;
}

body:not(.portal-body) #page-dashboard .dashboard-chart-header span {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 11px;
}

body:not(.portal-body) #page-dashboard .dashboard-chart-header strong {
    flex: 0 0 auto;
    color: #86efac;
    background: rgba(6, 78, 59, 0.3);
    border: 1px solid rgba(52, 211, 153, 0.24);
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 12px;
}

body:not(.portal-body) #page-dashboard .dashboard-chart-header strong.negative {
    color: #fda4af;
    background: rgba(127, 29, 29, 0.28);
    border-color: rgba(251, 113, 133, 0.26);
}

body:not(.portal-body) #page-dashboard .trend-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: end;
    gap: 8px;
    height: 105px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

body:not(.portal-body) #page-dashboard .monthly-trend-chart {
    grid-template-columns: repeat(var(--day-count, 31), minmax(12px, 1fr));
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 18px;
}

body:not(.portal-body) #page-dashboard .trend-bar {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-width: 0;
    height: 100%;
}

body:not(.portal-body) #page-dashboard .trend-bar::before {
    content: "";
    width: 100%;
    max-width: 34px;
    height: var(--bar-height);
    min-height: 18px;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #22d3ee, #2563eb);
    box-shadow: 0 12px 24px rgba(34, 211, 238, 0.16);
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body:not(.portal-body) #page-dashboard .monthly-trend-chart .trend-bar::before {
    max-width: 18px;
    border-radius: 6px 6px 3px 3px;
}

body:not(.portal-body) #page-dashboard .trend-bar.active::before {
    background: linear-gradient(180deg, #86efac, #10b981);
}

body:not(.portal-body) #page-dashboard .trend-bar:hover::before {
    background: linear-gradient(180deg, #facc15, #f97316);
    box-shadow: 0 14px 28px rgba(250, 204, 21, 0.24);
    transform: translateY(-3px);
}

body:not(.portal-body) #page-dashboard .trend-bar b {
    position: absolute;
    bottom: calc(var(--bar-height) + 9px);
    max-width: 58px;
    overflow: hidden;
    color: #e0f2fe;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body:not(.portal-body) #page-dashboard .monthly-trend-chart .trend-bar b {
    display: none;
}

body:not(.portal-body) #page-dashboard .trend-tooltip {
    position: absolute;
    top: 2px;
    left: 50%;
    z-index: 4;
    min-width: 116px;
    padding: 7px 8px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.36);
    color: #f8fafc;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    transform: translate(-50%, 6px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

body:not(.portal-body) #page-dashboard .trend-tooltip strong,
body:not(.portal-body) #page-dashboard .trend-tooltip small {
    display: block;
    line-height: 1.25;
    white-space: nowrap;
}

body:not(.portal-body) #page-dashboard .trend-tooltip strong {
    font-size: 11px;
    font-weight: 700;
}

body:not(.portal-body) #page-dashboard .trend-tooltip small {
    margin-top: 3px;
    color: #67e8f9;
    font-size: 10px;
    font-weight: 800;
}

body:not(.portal-body) #page-dashboard .trend-bar:hover .trend-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
}

body:not(.portal-body) #page-dashboard .trend-bar span {
    position: absolute;
    bottom: -18px;
    color: #94a3b8;
    font-size: 10px;
}

body:not(.portal-body) #page-dashboard .workload-visual {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

body:not(.portal-body) #page-dashboard .workload-donut {
    width: 118px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle, rgba(15, 23, 42, 0.94) 0 52%, transparent 53%),
        conic-gradient(#22d3ee 0 45%, #10b981 45% 72%, #f59e0b 72% 88%, rgba(148, 163, 184, 0.18) 88% 100%);
    border: 1px solid rgba(34, 211, 238, 0.16);
}

body:not(.portal-body) #page-dashboard .workload-donut div {
    text-align: center;
}

body:not(.portal-body) #page-dashboard .workload-donut strong {
    display: block;
    color: #f8fafc;
    font-size: 28px;
    line-height: 1;
}

body:not(.portal-body) #page-dashboard .workload-donut span {
    color: #94a3b8;
    font-size: 10px;
    text-transform: uppercase;
}

body:not(.portal-body) #page-dashboard .workload-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

body:not(.portal-body) #page-dashboard .workload-bars div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
}

body:not(.portal-body) #page-dashboard .workload-bars span {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
}

body:not(.portal-body) #page-dashboard .workload-bars em {
    display: block;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

body:not(.portal-body) #page-dashboard .workload-bars i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22d3ee, #10b981);
}

body:not(.portal-body) #page-dashboard .dashboard-refund-card {
    height: 100%;
    min-height: 86px;
    align-items: center;
    padding: 14px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(34, 211, 238, 0.18);
    box-shadow: none;
    margin: 0;
}

body:not(.portal-body) #page-dashboard .dashboard-refund-card .stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(8, 47, 73, 0.42);
    color: #67e8f9;
    font-size: 17px;
}

body:not(.portal-body) #page-dashboard .dashboard-refund-card .stat-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

body:not(.portal-body) #page-dashboard .dashboard-refund-card .stat-info h3 {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.2;
}

body:not(.portal-body) #page-dashboard .dashboard-refund-card .stat-info p {
    color: #f8fafc;
    font-size: 1.55rem;
    margin-top: 4px;
}

body:not(.portal-body) #page-dashboard .dashboard-refund-card .stat-value-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    white-space: nowrap;
}

body:not(.portal-body) #page-dashboard .dashboard-refund-card .stat-value-row p {
    margin-top: 4px;
}

body:not(.portal-body) #page-dashboard .dashboard-refund-card #nextPaymentDate {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    margin-top: 0 !important;
}

body:not(.portal-body) #page-dashboard .smart-stock-panel {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

body:not(.portal-body) #page-dashboard .daily-tasks-panel,
body:not(.portal-body) #page-dashboard .smart-stock-panel {
    position: relative;
    overflow: hidden;
    border-color: rgba(34, 211, 238, 0.24) !important;
}

body:not(.portal-body) #page-dashboard .daily-tasks-panel {
    display: flex;
    flex-direction: column;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    height: auto;
    padding: 10px;
    margin-bottom: 0;
}

body:not(.portal-body) #page-dashboard .daily-tasks-panel .smart-panel-header {
    margin-bottom: 8px;
    gap: 8px;
}

body:not(.portal-body) #page-dashboard .daily-tasks-panel .smart-panel-header h3 {
    font-size: 14px;
}

body:not(.portal-body) #page-dashboard .daily-tasks-panel .smart-panel-header p {
    display: none;
}

body:not(.portal-body) #page-dashboard .daily-tasks-panel .daily-task-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
}

body:not(.portal-body) #page-dashboard .daily-tasks-panel::before,
body:not(.portal-body) #page-dashboard .smart-stock-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.11), transparent 24rem),
        radial-gradient(circle at 88% 18%, rgba(124, 58, 237, 0.12), transparent 24rem);
    pointer-events: none;
}

body:not(.portal-body) #page-dashboard .smart-panel-header,
body:not(.portal-body) #page-dashboard .daily-task-summary,
body:not(.portal-body) #page-dashboard .daily-task-list,
body:not(.portal-body) #page-dashboard .daily-task-toggle,
body:not(.portal-body) #page-dashboard .smart-stock-summary,
body:not(.portal-body) #page-dashboard .smart-stock-list {
    position: relative;
    z-index: 1;
}

body:not(.portal-body) #page-dashboard .smart-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

body:not(.portal-body) #page-dashboard .smart-panel-header h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 18px;
}

body:not(.portal-body) #page-dashboard .smart-panel-header h3 i {
    color: #22d3ee;
    margin-right: 8px;
}

body:not(.portal-body) #page-dashboard .smart-panel-header p {
    margin: 5px 0 0;
    color: #94a3b8;
    font-size: 13px;
}

body:not(.portal-body) #page-dashboard .smart-panel-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

body:not(.portal-body) #page-dashboard .smart-panel-actions span {
    color: #bae6fd;
    background: rgba(8, 47, 73, 0.48);
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 12px;
}

body:not(.portal-body) #page-dashboard .daily-task-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

body:not(.portal-body) #page-dashboard .daily-task-summary div {
    background: rgba(2, 6, 23, 0.38);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 12px;
    padding: 10px 12px;
}

body:not(.portal-body) #page-dashboard .daily-task-summary strong {
    display: block;
    color: #f8fafc;
    font-size: 22px;
    line-height: 1;
}

body:not(.portal-body) #page-dashboard .daily-task-summary span {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    margin-top: 5px;
    text-transform: uppercase;
}

body:not(.portal-body) #page-dashboard .daily-task-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

body:not(.portal-body) #page-dashboard .daily-task-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 7px 8px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
}

body:not(.portal-body) #page-dashboard .daily-task-item.late {
    border-color: rgba(251, 113, 133, 0.3);
}

body:not(.portal-body) #page-dashboard .daily-task-item.due {
    border-color: rgba(251, 191, 36, 0.3);
}

body:not(.portal-body) #page-dashboard .daily-task-item.completed {
    opacity: 0.62;
}

body:not(.portal-body) #page-dashboard .daily-task-item.completed .daily-task-main strong {
    text-decoration: line-through;
}

body:not(.portal-body) #page-dashboard .daily-task-check {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    background: rgba(2, 6, 23, 0.38);
    color: transparent;
    cursor: pointer;
}

body:not(.portal-body) #page-dashboard .daily-task-check.checked {
    color: #022c22;
    background: #67e8f9;
}

body:not(.portal-body) #page-dashboard .daily-task-main {
    min-width: 0;
}

body:not(.portal-body) #page-dashboard .daily-task-main strong {
    display: block;
    color: #f8fafc;
    font-size: 13px;
}

body:not(.portal-body) #page-dashboard .daily-task-main span {
    display: none;
    color: #94a3b8;
    font-size: 11px;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body:not(.portal-body) #page-dashboard .daily-task-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

body:not(.portal-body) #page-dashboard .daily-task-badges em {
    color: #cbd5e1;
    background: rgba(2, 6, 23, 0.38);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    padding: 3px 6px;
    font-size: 10px;
    font-style: normal;
}

body:not(.portal-body) #page-dashboard .daily-task-badges .status-completed {
    color: #86efac;
    border-color: rgba(52, 211, 153, 0.24);
}

body:not(.portal-body) #page-dashboard .daily-task-badges .status-due {
    color: #fcd34d;
    border-color: rgba(251, 191, 36, 0.28);
}

body:not(.portal-body) #page-dashboard .daily-task-badges .status-late {
    color: #fda4af;
    border-color: rgba(251, 113, 133, 0.28);
}

body:not(.portal-body) #page-dashboard .daily-task-menu {
    position: relative;
}

body:not(.portal-body) #page-dashboard .daily-task-menu-btn {
    width: 30px;
    height: 30px;
    padding: 0;
}

body:not(.portal-body) #page-dashboard .daily-task-menu-pop {
    position: absolute;
    right: 0;
    top: 38px;
    min-width: 130px;
    padding: 6px;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

body:not(.portal-body) #page-dashboard .daily-task-menu-pop button {
    width: 100%;
    border: 0;
    background: transparent;
    color: #cbd5e1;
    text-align: left;
    padding: 8px 9px;
    border-radius: 7px;
    cursor: pointer;
}

body:not(.portal-body) #page-dashboard .daily-task-menu-pop button:hover {
    background: rgba(34, 211, 238, 0.1);
    color: #f8fafc;
}

body:not(.portal-body) #page-dashboard .daily-task-toggle {
    display: inline-flex;
    margin-top: 12px;
    border: 0;
    background: transparent;
    color: #67e8f9;
    font-weight: 800;
    cursor: pointer;
}

body:not(.portal-body) #page-dashboard .smart-stock-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

body:not(.portal-body) #page-dashboard .smart-stock-summary-card {
    position: relative;
    min-height: 92px;
    background: rgba(2, 6, 23, 0.38);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 12px;
    padding: 10px 12px;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
    animation: smartStockCardIn 420ms ease both;
}

body:not(.portal-body) #page-dashboard .smart-stock-summary-card:nth-child(2) {
    animation-delay: 45ms;
}

body:not(.portal-body) #page-dashboard .smart-stock-summary-card:nth-child(3) {
    animation-delay: 90ms;
}

body:not(.portal-body) #page-dashboard .smart-stock-summary-card:nth-child(4) {
    animation-delay: 135ms;
}

body:not(.portal-body) #page-dashboard .smart-stock-summary-card:nth-child(5) {
    animation-delay: 180ms;
}

body:not(.portal-body) #page-dashboard .smart-stock-summary-card:nth-child(6) {
    animation-delay: 225ms;
}

body:not(.portal-body) #page-dashboard .smart-stock-summary-card::after {
    content: "";
    position: absolute;
    inset: auto -28px -36px auto;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.08);
    transition: transform 180ms ease, opacity 180ms ease;
}

body:not(.portal-body) #page-dashboard .smart-stock-summary-card:hover,
body:not(.portal-body) #page-dashboard .smart-stock-summary-card:focus-visible {
    transform: translateY(-3px);
    background: rgba(15, 23, 42, 0.62);
    border-color: rgba(103, 232, 249, 0.34);
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.2);
    outline: none;
}

body:not(.portal-body) #page-dashboard .smart-stock-summary-card:hover::after,
body:not(.portal-body) #page-dashboard .smart-stock-summary-card:focus-visible::after {
    transform: scale(1.22);
    opacity: 0.9;
}

body:not(.portal-body) #page-dashboard .smart-stock-summary-card.active {
    background: rgba(8, 47, 73, 0.52);
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.12), 0 12px 26px rgba(14, 116, 144, 0.16);
}

body:not(.portal-body) #page-dashboard .smart-stock-summary-card i {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #67e8f9;
    font-size: 15px;
    opacity: 0.84;
}

body:not(.portal-body) #page-dashboard .smart-stock-summary strong {
    display: block;
    color: #f8fafc;
    font-size: 22px;
    line-height: 1;
}

body:not(.portal-body) #page-dashboard .smart-stock-summary span {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    margin-top: 5px;
    text-transform: uppercase;
}

body:not(.portal-body) #page-dashboard .smart-stock-summary small {
    display: block;
    color: #67e8f9;
    font-size: 11px;
    margin-top: 7px;
}

body:not(.portal-body) #page-dashboard .smart-stock-summary-card.publish i,
body:not(.portal-body) #page-dashboard .smart-stock-summary-card.publish small {
    color: #86efac;
}

body:not(.portal-body) #page-dashboard .smart-stock-summary-card.increase i,
body:not(.portal-body) #page-dashboard .smart-stock-summary-card.increase small {
    color: #93c5fd;
}

body:not(.portal-body) #page-dashboard .smart-stock-summary-card.store_check i,
body:not(.portal-body) #page-dashboard .smart-stock-summary-card.store_check small,
body:not(.portal-body) #page-dashboard .smart-stock-summary-card.missing i,
body:not(.portal-body) #page-dashboard .smart-stock-summary-card.missing small {
    color: #fcd34d;
}

body:not(.portal-body) #page-dashboard .smart-stock-summary-card.supply i,
body:not(.portal-body) #page-dashboard .smart-stock-summary-card.supply small {
    color: #fda4af;
}

@keyframes smartStockCardIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body:not(.portal-body) #page-dashboard .smart-stock-controls {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(170px, 210px) minmax(190px, 240px);
    gap: 10px;
    margin-bottom: 14px;
}

body:not(.portal-body) #page-dashboard .smart-stock-search {
    max-width: none;
    height: 38px;
}

body:not(.portal-body) #page-dashboard .smart-stock-controls input,
body:not(.portal-body) #page-dashboard .smart-stock-controls select {
    height: 38px;
    margin: 0;
    color: #e2e8f0;
    background: rgba(2, 6, 23, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 10px;
}

body:not(.portal-body) #page-dashboard .smart-stock-controls input::placeholder {
    color: #64748b;
}

body:not(.portal-body) #page-dashboard .smart-stock-controls select {
    padding: 0 10px;
}

body:not(.portal-body) #page-dashboard .smart-stock-export {
    height: 38px;
    white-space: nowrap;
}

body:not(.portal-body) #page-dashboard .smart-stock-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

body:not(.portal-body) #page-dashboard .smart-stock-item {
    display: grid;
    grid-template-columns: minmax(280px, 1.4fr) minmax(320px, 1.2fr) minmax(190px, 0.8fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
}

body:not(.portal-body) #page-dashboard .smart-stock-item.supply {
    border-color: rgba(251, 113, 133, 0.26);
}

body:not(.portal-body) #page-dashboard .smart-stock-item.publish {
    border-color: rgba(52, 211, 153, 0.24);
}

body:not(.portal-body) #page-dashboard .smart-stock-item.increase {
    border-color: rgba(96, 165, 250, 0.26);
}

body:not(.portal-body) #page-dashboard .smart-stock-item.store_check {
    border-color: rgba(251, 191, 36, 0.28);
}

body:not(.portal-body) #page-dashboard .smart-stock-item.missing {
    border-color: rgba(251, 191, 36, 0.24);
}

body:not(.portal-body) #page-dashboard .smart-stock-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

body:not(.portal-body) #page-dashboard .smart-stock-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: rgba(8, 47, 73, 0.58);
    color: #67e8f9;
    border: 1px solid rgba(34, 211, 238, 0.2);
}

body:not(.portal-body) #page-dashboard .smart-stock-item.supply .smart-stock-icon {
    background: rgba(127, 29, 29, 0.28);
    color: #fda4af;
    border-color: rgba(251, 113, 133, 0.26);
}

body:not(.portal-body) #page-dashboard .smart-stock-item.publish .smart-stock-icon {
    background: rgba(6, 78, 59, 0.3);
    color: #86efac;
    border-color: rgba(52, 211, 153, 0.24);
}

body:not(.portal-body) #page-dashboard .smart-stock-item.increase .smart-stock-icon {
    background: rgba(30, 64, 175, 0.3);
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.26);
}

body:not(.portal-body) #page-dashboard .smart-stock-item.store_check .smart-stock-icon {
    background: rgba(120, 53, 15, 0.3);
    color: #fcd34d;
    border-color: rgba(251, 191, 36, 0.28);
}

body:not(.portal-body) #page-dashboard .smart-stock-item.missing .smart-stock-icon {
    background: rgba(120, 53, 15, 0.3);
    color: #fcd34d;
    border-color: rgba(251, 191, 36, 0.24);
}

body:not(.portal-body) #page-dashboard .smart-stock-main strong {
    display: block;
    color: #f8fafc;
    font-size: 14px;
}

body:not(.portal-body) #page-dashboard .smart-stock-main span {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 440px;
}

body:not(.portal-body) #page-dashboard .smart-stock-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

body:not(.portal-body) #page-dashboard .smart-stock-meta span {
    color: #cbd5e1;
    background: rgba(2, 6, 23, 0.38);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 11px;
}

body:not(.portal-body) #page-dashboard .smart-stock-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

body:not(.portal-body) #page-dashboard .smart-stock-action > span {
    color: #dbeafe;
    font-weight: 800;
    font-size: 12px;
    text-align: right;
}

body:not(.portal-body) #page-dashboard .smart-stock-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.38);
    white-space: nowrap;
}

body:not(.portal-body) #page-dashboard .smart-stock-item.publish .smart-stock-label {
    color: #86efac;
    border-color: rgba(52, 211, 153, 0.24);
}

body:not(.portal-body) #page-dashboard .smart-stock-item.increase .smart-stock-label {
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.26);
}

body:not(.portal-body) #page-dashboard .smart-stock-item.store_check .smart-stock-label {
    color: #fcd34d;
    border-color: rgba(251, 191, 36, 0.28);
}

body:not(.portal-body) #page-dashboard .smart-stock-item.supply .smart-stock-label {
    color: #fda4af;
    border-color: rgba(251, 113, 133, 0.26);
}

body:not(.portal-body) #page-dashboard .smart-stock-item.missing .smart-stock-label {
    color: #fcd34d;
    border-color: rgba(251, 191, 36, 0.24);
}

body:not(.portal-body) #page-dashboard .smart-stock-mini {
    width: 34px;
    padding: 0;
}

body:not(.portal-body) #page-dashboard .smart-stock-item.ignored {
    opacity: 0.62;
}

body:not(.portal-body) #page-dashboard .smart-stock-pagination {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    margin-top: 12px;
}

body:not(.portal-body) #page-dashboard .smart-stock-pagination span {
    color: #cbd5e1;
    background: rgba(2, 6, 23, 0.38);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
}

body:not(.portal-body) #page-dashboard .smart-stock-pagination button {
    width: 36px;
    padding: 0;
}

body:not(.portal-body) #page-dashboard .smart-stock-pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

body:not(.portal-body) #page-dashboard .smart-empty-state {
    padding: 18px;
    border: 1px dashed rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    color: #94a3b8;
    text-align: center;
    background: rgba(2, 6, 23, 0.28);
}

body:not(.portal-body) #page-dashboard .smart-empty-state.success {
    color: #86efac;
    border-color: rgba(52, 211, 153, 0.24);
}

body:not(.portal-body) #page-dashboard .smart-empty-state.error {
    color: #fda4af;
    border-color: rgba(251, 113, 133, 0.26);
}

body:not(.portal-body) #modalDailyTask .daily-task-modal {
    max-width: 520px;
}

body:not(.portal-body) #modalDailyTask label {
    display: block;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 800;
    margin-top: 10px;
}

body:not(.portal-body) #modalDailyTask .daily-task-day-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 8px 0;
}

body:not(.portal-body) #modalDailyTask .daily-task-day-grid.hidden {
    display: none !important;
}

body:not(.portal-body) #modalDailyTask .daily-task-day-grid label,
body:not(.portal-body) #modalDailyTask .daily-task-checkline {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    background: rgba(2, 6, 23, 0.28);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 10px;
    padding: 9px 10px;
    margin-top: 0;
}

body:not(.portal-body) #modalDailyTask input[type="checkbox"] {
    width: auto;
    min-height: auto;
    margin: 0;
}

@media (max-width: 1180px) {
    body:not(.portal-body) #page-dashboard .dashboard-intel-grid {
        grid-template-columns: 1fr;
    }

    body:not(.portal-body) #page-dashboard .dashboard-left-stack {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body:not(.portal-body) #page-dashboard .daily-tasks-panel {
        justify-self: stretch;
        max-width: none;
        height: auto;
    }

    body:not(.portal-body) #page-dashboard .daily-tasks-panel .daily-task-list {
        max-height: none;
        overflow-y: visible;
    }

    body:not(.portal-body) #page-dashboard .smart-stock-item {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    body:not(.portal-body) #page-dashboard .smart-stock-action {
        justify-content: space-between;
        width: 100%;
    }

    body:not(.portal-body) #page-dashboard .daily-task-item {
        grid-template-columns: 34px minmax(0, 1fr) auto;
    }
}

@media (max-width: 680px) {
    body:not(.portal-body) #page-dashboard .smart-panel-header,
    body:not(.portal-body) #page-dashboard .smart-panel-actions {
        align-items: stretch;
        flex-direction: column;
    }

    body:not(.portal-body) #page-dashboard .smart-stock-summary {
        grid-template-columns: 1fr;
    }

    body:not(.portal-body) #page-dashboard .smart-stock-controls {
        grid-template-columns: 1fr;
    }

    body:not(.portal-body) #page-dashboard .daily-task-item {
        align-items: flex-start;
    }

    body:not(.portal-body) #page-dashboard .dashboard-left-stack {
        grid-template-columns: 1fr;
    }

    body:not(.portal-body) #page-dashboard .dashboard-trend-card,
    body:not(.portal-body) #page-dashboard .dashboard-workload-card {
        grid-column: auto;
    }

    body:not(.portal-body) #page-dashboard .workload-visual {
        grid-template-columns: 1fr;
    }

    body:not(.portal-body) #page-dashboard .workload-donut {
        margin: 0 auto;
    }

    body:not(.portal-body) #page-dashboard .daily-task-main span {
        white-space: normal;
    }

    body:not(.portal-body) #modalDailyTask .daily-task-day-grid {
        grid-template-columns: 1fr;
    }
}

/* Portal timeline: mobile-first vertical flow, kept last to override legacy rules. */
@media (max-width: 768px) {
    .portal-body .panel-header { align-items: flex-start; gap: 12px; }
    .portal-body .return-code-badge { flex-shrink: 0; }
    .portal-body .timeline-horizontal-colorful { display: block; overflow: visible; padding: 4px 0 0; }
    .portal-body .tm-step { width: 100%; min-width: 0; display: flex; flex-direction: row; align-items: flex-start; gap: 14px; padding: 0 0 22px; text-align: left; }
    .portal-body .tm-step::after { top: 49px; left: 23px; width: 4px; height: calc(100% - 26px); }
    .portal-body .tm-icon { width: 48px; height: 48px; flex: 0 0 48px; margin: 0; }
    .portal-body .tm-content { padding-top: 4px; }
    .portal-body .tm-date { margin: 2px 0 0; }
    .portal-body .timeline-guidance { flex-wrap: wrap; align-items: flex-start; }
    .portal-body .timeline-guidance-content { flex-basis: calc(100% - 56px); }
    .portal-body .timeline-guidance .btn-portal-secondary { width: 100%; justify-content: center; margin-top: 2px; }
}

/* ============================================================
   DEPO ÜRÜN TOPLAMA LİSTESİ (PICKING LIST) STİLLERİ
   ============================================================ */

.picking-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 1. Ekran (Dark Cyber Tema Uyumlu) Kart Stilleri */
body:not(.portal-body) #mainPanel .picking-input-card,
body:not(.portal-body) #mainPanel #pickingPrintArea {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.68)) !important;
    border: 1px solid rgba(34, 211, 238, 0.22) !important;
    border-radius: 16px !important;
    padding: 22px 24px !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    color: #f8fafc !important;
}

.picking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

body:not(.portal-body) #mainPanel .picking-header h3 {
    margin: 0 0 6px 0 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

body:not(.portal-body) #mainPanel .picking-header p {
    margin: 0 !important;
    font-size: 13px !important;
    color: #94a3b8 !important;
    line-height: 1.5 !important;
}

.picking-badges {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* Textarea - Koyu Arayüz */
body:not(.portal-body) #mainPanel .picking-textarea {
    width: 100% !important;
    min-height: 110px !important;
    padding: 14px 16px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    font-family: inherit !important;
    background: rgba(2, 6, 23, 0.65) !important;
    border: 1.5px solid rgba(148, 163, 184, 0.22) !important;
    border-radius: 10px !important;
    color: #f8fafc !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    resize: vertical !important;
    box-sizing: border-box !important;
}

body:not(.portal-body) #mainPanel .picking-textarea:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}

.picking-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.btn-success {
    background-color: #059669 !important;
    color: #ffffff !important;
    border: 1px solid #059669 !important;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    padding: 9px 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-success:hover {
    background-color: #047857 !important;
}

/* 2. Ekran Tablo Başlığı ve Metalar */
body:not(.portal-body) #mainPanel .picking-print-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2) !important;
    margin-bottom: 14px !important;
}

body:not(.portal-body) #mainPanel .picking-brand .brand-title {
    font-size: 16px !important;
    font-weight: 900 !important;
    color: #f8fafc !important;
    letter-spacing: 0.5px !important;
}

body:not(.portal-body) #mainPanel .picking-brand .brand-sub {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #38bdf8 !important;
    letter-spacing: 0.4px !important;
}

body:not(.portal-body) #mainPanel .picking-meta-info {
    font-size: 12.5px !important;
    color: #94a3b8 !important;
    text-align: right !important;
    line-height: 1.4 !important;
}

body:not(.portal-body) #mainPanel .picking-meta-info strong {
    color: #e2e8f0 !important;
}

body:not(.portal-body) #mainPanel .picking-meta-info span {
    color: #38bdf8 !important;
    font-weight: 700 !important;
}

/* 3. Ekran Tablo Tasarımı (Karanlık Tema Çakışmalarını Önler) */
body:not(.portal-body) #mainPanel #pickingPrintArea .table-responsive {
    background: transparent !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

body:not(.portal-body) #mainPanel #pickingPrintArea .picking-table {
    width: 100% !important;
    border-collapse: collapse !important;
}

body:not(.portal-body) #mainPanel #pickingPrintArea .picking-table th {
    background: rgba(30, 41, 59, 0.88) !important;
    color: #94a3b8 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    padding: 11px 14px !important;
    text-align: left !important;
    border-bottom: 2px solid rgba(34, 211, 238, 0.35) !important;
    letter-spacing: 0.5px !important;
}

body:not(.portal-body) #mainPanel #pickingPrintArea .picking-table td {
    background: rgba(15, 23, 42, 0.55) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
    color: #f1f5f9 !important;
    font-size: 13.5px !important;
    padding: 10px 14px !important;
    vertical-align: middle !important;
}

body:not(.portal-body) #mainPanel #pickingPrintArea .picking-table tr:hover td {
    background: rgba(30, 41, 59, 0.75) !important;
}

/* Onay Kutusu (Ekran) */
body:not(.portal-body) #mainPanel .picking-check-box {
    width: 18px !important;
    height: 18px !important;
    border: 2px solid rgba(148, 163, 184, 0.45) !important;
    border-radius: 4px !important;
    display: inline-block !important;
    background: rgba(15, 23, 42, 0.6) !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

/* Konum Rozeti (Ekran - Belirgin Sarı/Amber) */
body:not(.portal-body) #mainPanel .picking-loc-cell {
    font-size: 14.5px !important;
    font-weight: 800 !important;
    color: #fde047 !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
    padding: 4px 10px !important;
    background: rgba(245, 158, 11, 0.22) !important;
    border-radius: 6px !important;
    border: 1px solid rgba(245, 158, 11, 0.55) !important;
    white-space: nowrap !important;
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.3) !important;
}

body:not(.portal-body) #mainPanel .picking-loc-cell.empty {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
    color: #fca5a5 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

body:not(.portal-body) #mainPanel .picking-sku-cell {
    font-weight: 800 !important;
    font-size: 14px !important;
    color: #38bdf8 !important;
    letter-spacing: 0.3px !important;
}

body:not(.portal-body) #mainPanel .picking-name-cell {
    font-size: 13px !important;
    color: #e2e8f0 !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
}

/* Bölüm Ayırıcı (DEPODA BİTENLER - Ekran) */
body:not(.portal-body) #mainPanel .picking-divider-row td {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #fca5a5 !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    padding: 9px 14px !important;
    letter-spacing: 0.4px !important;
    border-top: 2px solid rgba(239, 68, 68, 0.5) !important;
    border-bottom: 2px solid rgba(239, 68, 68, 0.5) !important;
}

/* Depoda Bitti Satırları (Ekran) */
body:not(.portal-body) #mainPanel .picking-row-out-of-stock td {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #f1f5f9 !important;
}

body:not(.portal-body) #mainPanel .picking-row-out-of-stock:hover td {
    background: rgba(239, 68, 68, 0.14) !important;
}

body:not(.portal-body) #mainPanel .picking-check-box.out-of-stock {
    border-color: rgba(239, 68, 68, 0.6) !important;
    background: rgba(239, 68, 68, 0.25) !important;
    color: #f87171 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body:not(.portal-body) #mainPanel .picking-loc-cell.out-of-stock {
    background: rgba(239, 68, 68, 0.22) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    color: #f87171 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

body:not(.portal-body) #mainPanel .picking-status-tag-out {
    background: rgba(239, 68, 68, 0.25) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.5) !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    margin-left: 6px !important;
}

/* Uyarı Kutusu (Ekran) */
body:not(.portal-body) #mainPanel .picking-warning-box {
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px dashed rgba(245, 158, 11, 0.45) !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 12.5px !important;
    color: #fde047 !important;
    line-height: 1.5 !important;
}

/* Normal ekranda yazdırma fişini gizle */
#pickingPrintSlip {
    display: none !important;
}

/* ============================================================
   BÖLÜM 42: İŞLEM GEÇMİŞİ VE AUDIT LOGS EKRANI
   ============================================================ */
.audit-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

body:not(.portal-body) #mainPanel .audit-control-box {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.58)) !important;
    border: 1px solid rgba(34, 211, 238, 0.18) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.audit-search-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.audit-search-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

body:not(.portal-body) #mainPanel .audit-search-icon {
    position: absolute;
    left: 15px;
    color: #22d3ee !important;
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
}

body:not(.portal-body) #mainPanel .audit-search-input {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(34, 211, 238, 0.22) !important;
    border-radius: 12px;
    padding: 0 42px 0 44px;
    font-size: 14px;
    background: rgba(2, 6, 23, 0.65) !important;
    color: #f1f5f9 !important;
    outline: none;
    transition: all 0.2s ease;
}

body:not(.portal-body) #mainPanel .audit-search-input::placeholder {
    color: #64748b !important;
}

body:not(.portal-body) #mainPanel .audit-search-input:focus {
    border-color: rgba(34, 211, 238, 0.8) !important;
    background: rgba(2, 6, 23, 0.85) !important;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15), 0 0 24px rgba(34, 211, 238, 0.15) !important;
}

body:not(.portal-body) #mainPanel .audit-search-clear {
    position: absolute;
    right: 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #64748b;
    font-size: 14px;
    padding: 4px;
    transition: color 0.15s ease;
    z-index: 2;
}

body:not(.portal-body) #mainPanel .audit-search-clear:hover {
    color: #f87171;
}

body:not(.portal-body) #mainPanel .audit-filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

body:not(.portal-body) #mainPanel .audit-filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    background: rgba(15, 23, 42, 0.6) !important;
    color: #94a3b8 !important;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body:not(.portal-body) #mainPanel .audit-filter-btn:hover {
    background: rgba(30, 41, 59, 0.8) !important;
    color: #f8fafc !important;
    border-color: rgba(34, 211, 238, 0.4) !important;
    transform: translateY(-1px);
}

body:not(.portal-body) #mainPanel .audit-filter-btn.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.28), rgba(124, 58, 237, 0.28)) !important;
    color: #38bdf8 !important;
    border-color: #22d3ee !important;
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.22) !important;
}

body:not(.portal-body) #mainPanel .audit-filter-btn.filter-danger.active {
    background: rgba(239, 68, 68, 0.22) !important;
    border-color: #ef4444 !important;
    color: #fca5a5 !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.25) !important;
}

body:not(.portal-body) #mainPanel .audit-filter-btn.filter-success.active {
    background: rgba(16, 185, 129, 0.22) !important;
    border-color: #10b981 !important;
    color: #6ee7b7 !important;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.25) !important;
}

/* Rozetler */
.audit-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.audit-badge-danger {
    background: rgba(239, 68, 68, 0.16) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
}

.audit-badge-success {
    background: rgba(16, 185, 129, 0.16) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.audit-badge-info {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.35) !important;
}

.audit-badge-warning {
    background: rgba(245, 158, 11, 0.16) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

.audit-badge-primary {
    background: rgba(6, 182, 212, 0.16) !important;
    color: #22d3ee !important;
    border: 1px solid rgba(6, 182, 212, 0.35) !important;
}

.audit-badge-purple {
    background: rgba(168, 85, 247, 0.16) !important;
    color: #c084fc !important;
    border: 1px solid rgba(168, 85, 247, 0.35) !important;
}

.audit-badge-neutral {
    background: rgba(148, 163, 184, 0.12) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
}

/* Kayıt No Linki */
body:not(.portal-body) #mainPanel .audit-record-link {
    display: inline-flex;
    align-items: center;
    color: #38bdf8 !important;
    font-weight: 700;
    text-decoration: none;
    padding: 4px 10px;
    background: rgba(6, 182, 212, 0.14) !important;
    border: 1px solid rgba(34, 211, 238, 0.3) !important;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.15s ease;
    cursor: pointer;
}

body:not(.portal-body) #mainPanel .audit-record-link:hover {
    background: rgba(6, 182, 212, 0.28) !important;
    border-color: rgba(34, 211, 238, 0.7) !important;
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.25);
}

/* Açıklama Hücresi */
body:not(.portal-body) #mainPanel .audit-desc-title {
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 2px;
}

body:not(.portal-body) #mainPanel .audit-desc-sub {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

body:not(.portal-body) #mainPanel .audit-desc-sub code {
    background: rgba(15, 23, 42, 0.9);
    padding: 2px 7px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 11px;
    color: #38bdf8;
    border: 1px solid rgba(34, 211, 238, 0.22);
}

.audit-text-danger { color: #f87171 !important; }
.audit-text-success { color: #34d399 !important; }
.audit-text-warning { color: #fbbf24 !important; }

/* Kullanıcı Etiketi */
body:not(.portal-body) #mainPanel .audit-user-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #cbd5e1 !important;
    background: rgba(15, 23, 42, 0.6) !important;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    font-weight: 500;
}

body:not(.portal-body) #mainPanel .audit-user-tag.audit-user-portal {
    background: rgba(234, 88, 12, 0.16) !important;
    color: #fb923c !important;
    border-color: rgba(234, 88, 12, 0.35) !important;
}

body:not(.portal-body) #mainPanel .audit-user-tag.audit-user-system {
    background: rgba(30, 41, 59, 0.6) !important;
    color: #94a3b8 !important;
    border-color: rgba(148, 163, 184, 0.15) !important;
}

/* Modal Detayları */
body:not(.portal-body) #modalAuditDetail .audit-modal-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    background: rgba(2, 6, 23, 0.55) !important;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(34, 211, 238, 0.18) !important;
}

body:not(.portal-body) #modalAuditDetail .audit-meta-item label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b !important;
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}

body:not(.portal-body) #modalAuditDetail .audit-meta-item span {
    font-size: 13px;
    color: #e2e8f0 !important;
    font-weight: 500;
    word-break: break-all;
}

body:not(.portal-body) #modalAuditDetail .audit-json-box {
    background: #020617 !important;
    color: #38bdf8 !important;
    padding: 14px 18px;
    border-radius: 10px;
    font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
    font-size: 12px;
    max-height: 260px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
    line-height: 1.5;
    border: 1px solid rgba(34, 211, 238, 0.22) !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}
