/* ============================================================
   BÖLÜM 1: TEMEL AYARLAR VE DEĞİŞKENLER
   ============================================================ */
:root {
    --bg-body: #F8FAFC;          /* Açık Gri */
    --bg-sidebar: #0F172A;       /* Koyu Lacivert */
    --primary: #3B82F6;          /* Mavi */
    --primary-hover: #2563EB;    /* Koyu Mavi */
    --text-main: #1E293B;        /* Koyu Gri */
    --text-muted: #64748B;       /* Pasif Gri */
    --border-color: #E2E8F0;     /* Çerçeve */
    --danger: #EF4444;           /* Kırmızı */
    --success: #10B981;          /* Yeşil */
    --warning: #F59E0B;          /* Turuncu */
    --glass-bg: rgba(255, 255, 255, 0.95);
    --radius: 12px;              
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    margin: 0; background-color: var(--bg-body); color: var(--text-main); font-size: 14px;
    -webkit-font-smoothing: antialiased; animation: slideDownFade 0.8s ease-out;
}

@keyframes slideDownFade { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

.hidden { display: none !important; }
.text-center { text-align: center; }
.full-width { width: 100%; }

/* ============================================================
   BÖLÜM 2: GİRİŞ EKRANI & SIDEBAR (ADMIN)
   ============================================================ */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 18% 10%, rgba(34, 211, 238, 0.16), transparent 28rem),
        radial-gradient(circle at 82% 20%, rgba(59, 130, 246, 0.15), transparent 26rem),
        linear-gradient(135deg, #020617 0%, #0f172a 48%, #111827 100%);
}

.login-box {
    position: relative;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.86);
    padding: 40px;
    border-radius: 18px;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.login-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.08), transparent 38%);
    pointer-events: none;
}

.login-box > * {
    position: relative;
    z-index: 1;
}

.brand-logo {
    font-size: 2rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 0.5rem;
    letter-spacing: 0;
}

.login-subtitle {
    color: #94a3b8;
    margin: 0 0 20px;
    text-align: center;
}

.login-box input {
    color: #e2e8f0;
    background: rgba(2, 6, 23, 0.48);
    border-color: rgba(148, 163, 184, 0.22);
}

.login-box input::placeholder {
    color: #64748b;
}

.login-box input:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.13);
}

.login-box .btn-primary {
    background: linear-gradient(135deg, #0891b2, #2563eb);
    box-shadow: 0 14px 30px rgba(8, 145, 178, 0.2);
}

.login-box .btn-primary:hover {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.recaptcha-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 15px 0;
    min-height: 78px;
}

.login-box .error-msg {
    color: #fda4af;
}

@media (max-width: 380px) {
    .recaptcha-wrap {
        transform: scale(0.9);
        transform-origin: center;
        width: 112%;
    }
}

.dashboard-container { display: flex; height: 100vh; overflow: hidden; }
.sidebar { width: 260px; background: var(--bg-sidebar); display: flex; flex-direction: column; color: white; flex-shrink: 0; }
.sidebar .brand { padding: 25px; font-size: 1.4rem; font-weight: 700; color: white; border-bottom: 1px solid rgba(255,255,255,0.1); }
.user-info { padding: 20px; background: rgba(255,255,255,0.05); font-size: 0.9rem; color: #94A3B8; }
.nav-btn { background: transparent; border: none; color: #94A3B8; width: 90%; margin: 5px auto; padding: 12px 15px; text-align: left; cursor: pointer; font-weight: 500; border-radius: 8px; transition: var(--transition); display: flex; align-items: center; }
.nav-btn i { width: 24px; margin-right: 10px; font-size: 1.1em; }
.nav-btn:hover { background: rgba(255, 255, 255, 0.1); color: white; }
.nav-btn.active { background: var(--primary); color: white; }
.nav-btn.logout { margin-top: auto; margin-bottom: 20px; color: #F87171; }
.content { flex: 1; padding: 30px; overflow-y: auto; background: var(--bg-body); }

/* ============================================================
   BÖLÜM 3: TEMEL BİLEŞENLER
   ============================================================ */
h2 { font-size: 1.5rem; color: var(--text-main); font-weight: 700; margin-bottom: 20px; }
.card { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--border-color); box-shadow: 0 2px 4px rgba(0,0,0,0.02); margin-bottom: 20px; }

input, select, textarea { 
    width: 100%; 
    padding: 12px 14px; /* İç boşluğu artırdık */
    margin: 8px 0; 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    font-size: 14px; 
    background: #fff; 
    transition: var(--transition); 
    color: var(--text-main); 
    /* height: 42px; Kodu SİLİNDİ - Sabit yükseklik yerine min-height kullanıyoruz */
    min-height: 45px; /* Yazının sığması için garanti alan */
    line-height: 1.5; /* Satır aralığını açarak harflerin kesilmesini önler */
    box-sizing: border-box; /* Padding'in taşmasını önler */
}

input:focus, select:focus, textarea:focus { 
    outline: none; 
    border-color: var(--primary); 
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); 
}
.btn-primary { background: var(--primary); color: white; border: none; padding: 0 20px; height: 42px; font-weight: 600; border-radius: 8px; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-secondary { background: #fff; border: 1px solid var(--border-color); color: var(--text-main); padding: 0 15px; height: 42px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; justify-content: center; }
.btn-secondary:hover { background: #F8FAFC; border-color: #CBD5E1; }
.xml-sync-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: xml-sync-spin 0.7s linear infinite;
    vertical-align: -2px;
    margin-right: 7px;
}
@keyframes xml-sync-spin {
    to { transform: rotate(360deg); }
}
.btn-danger { background: #FEF2F2; color: var(--danger); border: 1px solid #FECACA; padding: 6px 12px; border-radius: 6px; cursor: pointer; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; }
.data-badge { padding: 4px 8px; border-radius: 6px; background: #F1F5F9; color: var(--text-main); font-weight: 600; font-size: 12px; }
.status-badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.refund-badge { display: inline-block; background-color: #DCFCE7; color: #15803D; border: 1px solid #86EFAC; padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: bold; margin-top: 4px; }
.notification-badge { background-color: var(--danger); color: white; border-radius: 12px; padding: 2px 8px; font-size: 10px; margin-left: 5px; vertical-align: middle; }

/* ============================================================
   BÖLÜM 4: ARAMA KUTULARI VE KAMERA
   ============================================================ */
.toolbar-container { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 20px; align-items: center; flex-wrap: wrap; }
.xml-manual-upload {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 20px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}
.xml-manual-upload__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 10px;
    color: #2563eb;
    background: #dbeafe;
    font-size: 18px;
}
.xml-manual-upload__content { min-width: 0; }
.xml-manual-upload__content h4 { margin: 0 0 4px; color: var(--text-main); font-size: 14px; }
.xml-manual-upload__content p { margin: 0; color: var(--text-muted); font-size: 12px; }
.xml-manual-upload__button { margin-left: auto; flex-shrink: 0; }
@media (max-width: 640px) {
    .xml-manual-upload { align-items: flex-start; flex-wrap: wrap; }
    .xml-manual-upload__button { width: 100%; margin-left: 0; }
}
.search-wrapper { position: relative; display: flex; align-items: center; width: 100%; max-width: 400px; height: 42px; }
.search-wrapper input { margin: 0; border-radius: 8px; padding-left: 35px; width: 100%; height: 100%; }
.search-wrapper.with-camera input { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; border-right: none !important; }
.search-wrapper.with-camera .btn-secondary { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; border-left: 1px solid var(--border-color); margin: 0; height: 100%; width: 50px; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--text-muted); }
.search-wrapper.with-camera .btn-secondary:hover { color: var(--primary); background: #f8fafc; }
.search-wrapper i.fa-search { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94A3B8; pointer-events: none; font-size: 14px; z-index: 5; }

/* ============================================================
   BÖLÜM 5: TABLOLAR
   ============================================================ */
.table-responsive { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border-color); background: #fff; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { background: #F8FAFC; padding: 12px 16px; text-align: left; font-weight: 600; color: var(--text-muted); font-size: 12px; text-transform: uppercase; border-bottom: 1px solid var(--border-color); }
td { padding: 12px 16px; border-bottom: 1px solid var(--border-color); color: var(--text-main); vertical-align: middle; font-size: 13px; }
tr:hover td { background: #F8FAFC; }
.tab-container { display: flex; gap: 5px; padding: 4px; background: #E2E8F0; border-radius: 8px; width: fit-content; margin-bottom: 20px; }
.tab-btn { padding: 8px 20px; border-radius: 6px; border: none; background: transparent; color: var(--text-muted); font-weight: 600; cursor: pointer; transition: all 0.2s; font-size: 13px; }
.tab-btn.active { 
    background: var(--primary); 
    color: white; 
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3); 
    transform: translateY(-1px);
}

/* ============================================================
   BÖLÜM 6: DASHBOARD & TOPTAN SATIŞ
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: #fff; padding: 20px; border-radius: var(--radius); display: flex; align-items: center; border: 1px solid var(--border-color); box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.stat-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-right: 15px; flex-shrink: 0; }
.stat-info h3 { margin: 0; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.stat-info p { margin: 5px 0 0 0; font-size: 1.8rem; font-weight: 700; color: var(--text-main); line-height: 1; }
.orange .stat-icon { background: #FFF7ED; color: #EA580C; } .blue .stat-icon { background: #EFF6FF; color: var(--primary); }
.purple .stat-icon { background: #F3E8FF; color: #9333EA; }
.red-outline { border: 1px dashed #E2E8F0; background: transparent; } .red-outline .stat-icon { background: #F1F5F9; color: #94A3B8; }
.warning-active { border: 2px solid var(--danger); background: #FEF2F2; animation: pulseRed 2s infinite; } .warning-active .stat-icon { background: #FEE2E2; color: var(--danger); }
@keyframes pulseRed { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.2); } 70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

.wholesale-layout { display: flex; gap: 20px; align-items: flex-start; width: 100%; } .ws-left-col { flex: 1; min-width: 0; } .ws-right-col { width: 350px; flex-shrink: 0; }
.sticky-card { position: sticky; top: 20px; z-index: 90; background: #fff; border-radius: 12px; padding: 20px; border: 1px solid var(--border-color); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed #eee; font-size: 14px; color: var(--text-muted); }
.summary-total { margin-top: 15px; padding-top: 15px; border-top: 2px solid var(--text-main); display: flex; justify-content: space-between; align-items: center; font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.discount-tiers-container { margin-top: 25px; padding-top: 15px; border-top: 1px solid var(--border-color); }
.tier-item { display: flex; justify-content: space-between; padding: 8px 12px; margin-bottom: 5px; background: #F8FAFC; border-radius: 8px; font-size: 13px; color: var(--text-muted); border: 1px solid transparent; transition: var(--transition); }
.tier-item.active-tier { background: #EFF6FF; color: var(--primary); border-color: #BFDBFE; font-weight: 600; }
.badge-discount { background: #DCFCE7; color: #166534; padding: 2px 6px; border-radius: 4px; font-size: 11px; margin-left: 5px; }
.switch { position: relative; display: inline-block; width: 40px; height: 24px; } .switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: var(--primary); } input:focus + .slider { box-shadow: 0 0 1px var(--primary); } input:checked + .slider:before { transform: translateX(16px); } .slider.round { border-radius: 34px; } .slider.round:before { border-radius: 50%; }

/* ============================================================
   BÖLÜM 7: MODALLAR
   ============================================================ */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: center; z-index: 1000; opacity: 1; }
.modal-content { background: #fff; padding: 25px; border-radius: 20px; width: 500px; max-width: 95%; position: relative; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); border: 1px solid #fff; max-height: 90vh; overflow-y: auto; }
.large-modal { width: 900px; }
.close { position: absolute; right: 20px; top: 20px; font-size: 20px; color: #94A3B8; cursor: pointer; }
.return-form-layout { display: grid; grid-template-columns: 1fr; gap: 20px; }
.modal-wide .return-form-layout { grid-template-columns: 1fr 1fr; }
.dispatch-box { background: #F8FAFC; border: 1px dashed var(--primary); border-radius: 16px; padding: 20px; }

/* ============================================================
   BÖLÜM 8: CHATBOT (HIBRIT BOT STİLLERİ)
   ============================================================ */
.bot-toggle-btn { position: fixed; bottom: 25px; right: 25px; width: 65px; height: 65px; background: #2563EB; color: white; border: none; border-radius: 50%; box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4); cursor: pointer; z-index: 9999; font-size: 28px; display: flex; align-items: center; justify-content: center; transition: transform 0.3s; }
.bot-toggle-btn:hover { transform: scale(1.1); }
.bot-container { position: fixed; bottom: 100px; right: 25px; width: 360px; height: 550px; background: #fff; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); display: flex; flex-direction: column; overflow: hidden; z-index: 9999; border: 1px solid #e2e8f0; animation: slideUp 0.3s ease-out; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.bot-header { background: #1e293b; color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.bot-avatar { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 10px; }
.bot-messages { flex: 1; padding: 20px; overflow-y: auto; background: #f8fafc; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.chat-bubble { max-width: 85%; padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; position: relative; word-wrap: break-word; }
.bot-msg { background: white; color: #334155; border: 1px solid #e2e8f0; border-bottom-left-radius: 4px; align-self: flex-start; }
.user-msg { background: #2563EB; color: white; border-bottom-right-radius: 4px; align-self: flex-end; }
.bot-options-area { padding: 10px 20px; background: white; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid #f1f5f9; }
.option-chip { background: #eff6ff; color: #2563EB; border: 1px solid #bfdbfe; padding: 8px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.option-chip:hover { background: #2563EB; color: white; }
.bot-input-area { padding: 15px; background: white; border-top: 1px solid #e2e8f0; display: flex; gap: 10px; }
.bot-input-area input { flex: 1; padding: 10px 15px; border-radius: 25px; border: 1px solid #cbd5e1; outline: none; font-size: 14px; height: 40px; }
.bot-input-area button { width: 40px; height: 40px; border-radius: 50%; background: #2563EB; color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ============================================================
   BÖLÜM 9: MOBİL & PRINT AYARLARI
   ============================================================ */
@media (max-width: 768px) {
    body { font-size: 13px; background-color: #f8fafc; }
    .dashboard-container { flex-direction: column; height: auto; }
    .sidebar { width: 100%; height: auto; flex-direction: row; padding: 10px; position: sticky; top: 0; z-index: 100; overflow-x: auto; white-space: nowrap; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
    .sidebar .brand, .sidebar .user-info { display: none; }
    .sidebar nav { display: flex; gap: 8px; width: 100%; }
    .nav-btn { width: auto; margin: 0; padding: 8px 16px; font-size: 12px; background: rgba(255,255,255,0.1); border-radius: 20px; flex-shrink: 0; }
    .nav-btn.active { background: var(--primary); box-shadow: 0 2px 10px rgba(59,130,246,0.3); }
    .content { padding: 15px; padding-bottom: 80px; }
    .stats-grid, .wholesale-layout, .return-form-layout, .modal-wide .return-form-layout { grid-template-columns: 1fr !important; gap: 15px; display: flex; flex-direction: column; }
    .ws-right-col { width: 100%; }
    .sticky-card { position: relative; top: 0; }
    
    /* V-CARD DÖNÜŞÜMÜ (Responsive Tables) */
    table thead { display: none; }
    table tbody tr { display: block; background: #fff; border-radius: 12px; margin-bottom: 15px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); border: 1px solid var(--border-color); padding: 15px; }
    table tbody td { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed #f1f5f9; text-align: right; font-size: 13px; }
    table tbody td:last-child { border-bottom: none; justify-content: center; padding-top: 15px; }
    table tbody td::before { content: attr(data-label); font-weight: 600; color: var(--text-muted); font-size: 12px; text-align: left; margin-right: 10px; }

    /* Portal Mobil */
    .portal-hero h1 { font-size: 1.8rem; }
    .nav-flex { flex-direction: column; gap: 15px; }
    .portal-links { margin: 10px 0; }
    .radio-group { grid-template-columns: 1fr; }
    .timeline { font-size: 0.8rem; }
}

/* ROL TABANLI GİZLEME */
body[data-user-role="depo_sorumlusu"] .admin-only { display: none !important; }
body[data-user-role="personel"] .admin-only { display: none !important; }
body[data-user-role="izleyici"] .admin-only { display: none !important; }

/* Print */
.ws-table.print-table { table-layout: fixed; width: 100%; }
.ws-table.print-table th, .ws-table.print-table td { vertical-align: top; padding: 10px; word-wrap: break-word; white-space: normal; font-size: 13px; }
.print-header-container { border-bottom: 2px solid #eee; padding-bottom: 15px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.print-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; background: #f8fafc; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; }
.print-summary-wrapper { display: flex; justify-content: flex-end; }
.print-summary-box { width: 300px; background: #fff; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
@media print { .sidebar, .toolbar-container, .btn-primary, .close { display: none !important; } .modal { position: absolute; background: white; } .modal-content { box-shadow: none; width: 100%; } }

/* ============================================================
   BÖLÜM 10: MÜŞTERİ PORTALI (v16.0)
   ============================================================ */
.portal-body { background: #F1F5F9; color: #334155; font-family: 'Inter', sans-serif; }
.portal-nav {
    background: #ffffff; border-bottom: 1px solid #e2e8f0; padding: 15px 0;
    position: sticky; top: 0; z-index: 100;
}
.portal-container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.portal-brand { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }
.portal-brand .highlight { color: #3B82F6; }
.portal-links a { color: #94A3B8; text-decoration: none; margin-left: 25px; font-weight: 500; transition: 0.3s; }
.portal-links a:hover, .portal-links a.active { color: white; }
.portal-login-btn { background: rgba(255,255,255,0.1); padding: 8px 16px; border-radius: 6px; color: white; text-decoration: none; font-size: 13px; transition: 0.3s; }
.portal-login-btn:hover { background: #3B82F6; }

.portal-hero { background: #1E293B; color: white; text-align: center; padding: 60px 20px 80px; margin-bottom: -40px; }
.portal-hero h1 { margin: 0 0 10px; font-size: 2.5rem; font-weight: 800; }
.portal-hero p { color: #94A3B8; margin: 0; font-size: 1.1rem; }

.main-wrapper { position: relative; z-index: 10; }
.portal-section { background: white; border-radius: 16px; padding: 40px; margin-bottom: 30px; box-shadow: 0 10px 30px -5px rgba(0,0,0,0.05); border: 1px solid #E2E8F0; }

.section-title { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; }
.section-title .icon-bg { width: 50px; height: 50px; background: #EFF6FF; color: #3B82F6; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.section-title h2 { margin: 0; color: #0F172A; font-size: 1.5rem; }
.section-title p { margin: 5px 0 0; color: #64748B; font-size: 0.95rem; }

/* Wizard Styles */
.wizard-step { animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.input-group-lg label { display: block; font-weight: 700; color: #334155; margin-bottom: 10px; }
.input-group-lg input { width: 100%; padding: 18px; font-size: 1.2rem; border: 2px solid #E2E8F0; border-radius: 12px; text-align: center; letter-spacing: 1px; font-weight: 600; color: #0F172A; outline: none; transition: 0.3s; }
.input-group-lg input:focus { border-color: #3B82F6; box-shadow: 0 0 0 4px rgba(59,130,246,0.1); }
.input-group-lg small { display: block; text-align: center; margin-top: 8px; color: #94A3B8; }

.btn-portal-primary { width: 100%; padding: 16px; background: #3B82F6; color: white; border: none; border-radius: 12px; font-size: 1rem; font-weight: 700; cursor: pointer; margin-top: 20px; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-portal-primary:hover { background: #2563EB; transform: translateY(-2px); }
.btn-portal-secondary { padding: 12px 24px; background: #F1F5F9; color: #334155; border: 1px solid #CBD5E1; border-radius: 10px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-portal-secondary:hover { background: #E2E8F0; }

.order-summary-card { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px; padding: 20px; margin-bottom: 25px; }
.os-header { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.9rem; color: #64748B; }
.os-id { font-family: monospace; font-weight: 700; color: #3B82F6; background: #EFF6FF; padding: 2px 6px; border-radius: 4px; }
.os-body { display: flex; justify-content: space-between; align-items: center; }
.os-body h3 { margin: 0; font-size: 1.1rem; color: #0F172A; }
.os-total { font-size: 1.2rem; font-weight: 800; color: #059669; }

.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 10px; }
.radio-card input { display: none; }
.rc-content { border: 2px solid #E2E8F0; border-radius: 12px; padding: 20px; text-align: center; cursor: pointer; transition: 0.3s; color: #64748B; }
.radio-card input:checked + .rc-content { border-color: #3B82F6; background: #EFF6FF; color: #3B82F6; }
.rc-content i { font-size: 24px; display: block; margin-bottom: 8px; }

.shipping-instruction { background: #F0FDF4; border: 1px dashed #22C55E; padding: 20px; border-radius: 12px; margin: 20px 0; }
.si-label { display: block; font-size: 0.9rem; color: #166534; margin-bottom: 5px; }
.si-code { display: block; font-size: 1.8rem; font-weight: 800; color: #15803D; letter-spacing: 1px; }
.portal-error { color: #EF4444; font-weight: 600; margin-top: 10px; }
.portal-footer { text-align: center; padding: 30px; color: #94A3B8; font-size: 0.9rem; }
.policy-text { font-size: 0.9rem; color: #64748B; margin: 10px 0 20px; }

/* Timeline (4 Adımlı - v16.2/3) */
.tracking-container { text-align: center; }
.track-input-area { display: flex; gap: 10px; margin-bottom: 30px; max-width: 500px; margin-left: auto; margin-right: auto; }
.track-input-area input { flex: 1; padding: 12px 15px; border: 2px solid #E2E8F0; border-radius: 10px; outline: none; }
.track-input-area button { padding: 0 25px; background: #0F172A; color: white; border: none; border-radius: 10px; cursor: pointer; font-weight: 600; }

.timeline { display: flex; justify-content: space-between; position: relative; margin: 40px 0 20px; }
.progress-track { position: absolute; top: 15px; left: 0; width: 100%; height: 4px; background: #E2E8F0; z-index: 1; border-radius: 2px; }
.progress-fill { height: 100%; background: #10B981; width: 0%; transition: width 1s ease; border-radius: 2px; }
.tl-item { position: relative; z-index: 2; width: 25%; text-align: center; opacity: 0.5; transition: 0.3s; }
.tl-item.active { opacity: 1; }
.tl-dot { width: 34px; height: 34px; background: white; border: 3px solid #E2E8F0; border-radius: 50%; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: 0.3s; }
.tl-item.active .tl-dot { border-color: #10B981; background: #10B981; color: white; transform: scale(1.2); box-shadow: 0 0 0 5px rgba(16,185,129,0.1); }
.track-msg { font-weight: 600; color: #3B82F6; margin-top: 20px; padding: 10px; background: #EFF6FF; border-radius: 8px; display: inline-block; }

/* ============================================================
   BÖLÜM 11: SSS (ACCORDION) DÜZELTME - v16.4
   ============================================================ */
.accordion-wrapper { display: flex; flex-direction: column; gap: 15px; }
.accordion-item { background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; overflow: hidden; transition: all 0.3s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.accordion-item:hover { border-color: #CBD5E1; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

.accordion-header { width: 100%; padding: 20px; background: #fff; border: none; display: flex; justify-content: space-between; align-items: center; font-size: 1rem; font-weight: 600; color: #1E293B; cursor: pointer; text-align: left; transition: background 0.2s; }
.accordion-header:hover { background: #F8FAFC; color: #3B82F6; }
.accordion-header i { color: #94A3B8; transition: transform 0.3s ease; }

.accordion-item.active { border-color: #3B82F6; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15); }
.accordion-item.active .accordion-header { background: #EFF6FF; color: #3B82F6; }
.accordion-item.active .accordion-header i { transform: rotate(180deg); color: #3B82F6; }

.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.3s ease; background: #fff; padding: 0 20px; }
.accordion-item.active .accordion-body { max-height: 200px; padding: 0 20px 20px 20px; border-top: 1px solid #F1F5F9; }
.accordion-body p { margin: 0; color: #64748B; font-size: 0.95rem; line-height: 1.6; padding-top: 15px; }

/* ============================================================
   BÖLÜM 12: ENVANTER MODAL DÜZENİ (v18.0)
   ============================================================ */
.inv-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Sağ taraf (Loglar) biraz daha geniş */
    gap: 25px;
    height: 100%;
}

/* Sol Kolon (Form) */
.inv-left-col {
    padding-right: 20px;
    border-right: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
}

.inv-product-img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
}

/* Sağ Kolon (Loglar) */
.inv-right-col {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 550px; /* Modal yüksekliğine göre sınırla */
}

.log-list-header {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Log Listesi (Scroll Alanı) */
.log-history-container {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #F8FAFC;
    padding: 10px;
    margin-bottom: 15px;
}

/* Tekil Log Kartı */
.log-item {
    background: white;
    border: 1px solid #E2E8F0;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    position: relative;
    border-left: 3px solid #cbd5e1; /* Varsayılan gri çizgi */
    transition: all 0.2s;
}
.log-item:hover { transform: translateX(2px); box-shadow: 0 2px 5px rgba(0,0,0,0.03); }

/* Log Tiplerine Göre Renkler */
.log-item.type-add { border-left-color: #10B981; } /* Yeşil */
.log-item.type-remove { border-left-color: #EF4444; } /* Kırmızı */
.log-item.type-info { border-left-color: #3B82F6; } /* Mavi */

.log-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #64748B;
    margin-bottom: 4px;
}
.log-content { font-size: 13px; color: #1E293B; line-height: 1.4; }
.log-qty-badge {
    background: #EFF6FF; color: #3B82F6; padding: 2px 6px; 
    border-radius: 4px; font-weight: bold; font-size: 11px; margin-left: 5px;
}

/* Log Ekleme Alanı (Footer) */
.log-input-area {
    background: #F1F5F9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

/* Responsive: Mobilde Tek Kolon */
@media (max-width: 768px) {
    .inv-modal-grid { grid-template-columns: 1fr; gap: 20px; }
    .inv-left-col { border-right: none; border-bottom: 1px solid #E2E8F0; padding-bottom: 20px; padding-right: 0; }
    .inv-right-col { height: auto; max-height: none; }
    .log-history-container { max-height: 250px; }
}
/* ============================================================
   BÖLÜM 13: XML RAPOR MODALI (v30.0)
   ============================================================ */

/* Modalın iç yapısını Flex yaparak Header ve Footer'ı sabitliyoruz */
.modal-flex-layout {
    display: flex;
    flex-direction: column;
    height: 80vh; /* Ekranın %80'i kadar yükseklik */
    max-height: 600px;
    padding: 0 !important; /* Padding'i iç elementlere dağıtacağız */
    overflow: hidden; /* Dış taşmayı engelle */
}

.modal-header-fixed {
    padding: 20px;
    border-bottom: 1px solid #E2E8F0;
    flex-shrink: 0;
}

.modal-body-scroll {
    flex: 1; /* Kalan boşluğu doldur */
    overflow-y: auto; /* Sadece burası kaydırılsın */
    padding: 20px;
    background: #F8FAFC;
}

.modal-footer-fixed {
    padding: 15px 20px;
    border-top: 1px solid #E2E8F0;
    background: white;
    flex-shrink: 0;
}

/* Kritik Stok (Tükenenler) Görünümü */
.log-change-item {
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 8px;
    background: white;
    border: 1px solid #E2E8F0;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.log-change-item.critical {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-left: 4px solid #EF4444;
}

.badge-new { background: #DBEAFE; color: #1E40AF; padding: 2px 6px; border-radius: 4px; font-weight: bold; font-size: 11px; }
.badge-update { background: #FEF3C7; color: #92400E; padding: 2px 6px; border-radius: 4px; font-weight: bold; font-size: 11px; }
.badge-critical { background: #EF4444; color: white; padding: 2px 6px; border-radius: 4px; font-weight: bold; font-size: 11px; animation: pulse 2s infinite; }

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.7; } 100% { opacity: 1; } }
/* ============================================================
   BÖLÜM 14: KOMPAKT SİPARİŞ TABLOSU (v36.0)
   ============================================================ */
.compact-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.compact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px; /* Okunabilir boyut */
    color: #1E293B;
}

.compact-table thead th {
    background-color: #F1F5F9;
    padding: 8px;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid #CBD5E1;
    color: #475569;
}

.compact-table tbody td {
    padding: 6px 8px; /* İnce satırlar */
    border-bottom: 1px solid #E2E8F0;
    vertical-align: middle;
}

.compact-table tbody tr:hover {
    background-color: #F8FAFC;
}

/* Kontrol Checkbox Stili */
.check-cell {
    text-align: center;
    width: 50px;
}
.check-cell input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    accent-color: #10B981; /* Yeşil Tik */
}

.totals-area {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #E2E8F0;
    text-align: right;
    background-color: #F8FAFC;
    padding: 15px;
    border-radius: 8px;
}
.totals-area p { margin: 3px 0; font-size: 13px; color: #64748B; }
.totals-area h4 { margin: 5px 0 0 0; font-size: 16px; color: #1E293B; }
/* ============================================================
   BÖLÜM 15: AYARLAR AKORDİYON & GÜVENLİK (v39.0)
   ============================================================ */
.settings-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.setting-group {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.setting-header {
    background: #fff;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #1E293B;
    transition: background 0.2s;
}

.setting-header:hover {
    background: #F8FAFC;
}

.setting-header i {
    color: #94A3B8;
    transition: transform 0.3s ease;
}

/* Açık Durum */
.setting-group.active .setting-header {
    background: #EFF6FF;
    color: #2563EB;
    border-bottom: 1px solid #E2E8F0;
}

.setting-group.active .setting-header i {
    transform: rotate(180deg);
    color: #2563EB;
}

.setting-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
}

.setting-group.active .setting-content {
    max-height: 500px; /* İçeriğe göre yetecek kadar */
    padding: 20px;
    overflow-y: auto;
}

/* Tehlikeli Bölge */
.danger-zone {
    border: 1px solid #FECACA;
    background: #FEF2F2;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}
.danger-zone h4 { color: #DC2626; margin-top: 0; }
.danger-zone p { font-size: 12px; color: #7F1D1D; }
/* ============================================================
   BÖLÜM 16: MANUEL / İADE SATIRLARI (v41.0)
   ============================================================ */
tr.manual-row {
    background-color: #FEF2F2; /* Açık Kırmızı */
}
tr.manual-row input {
    background-color: #fff;
    border-color: #FCA5A5;
}
tr.manual-row td {
    color: #991B1B;
}
/* ============================================================
   BÖLÜM 16: YEDEKLEME SATIRLARI (v46.0)
   ============================================================ */
.backup-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.backup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F8FAFC;
    padding: 10px 15px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
}

.backup-info h5 { margin: 0 0 2px 0; font-size: 14px; color: #334155; }
.backup-info p { margin: 0; font-size: 11px; color: #64748B; }

.backup-actions {
    display: flex;
    gap: 8px;
}

/* ============================================================
   BÖLÜM 17: MÜŞTERİ PORTALI (v60.0 - RENK VE VERİ ONARIMI)
   ============================================================ */

/* 1. TEMEL YAPILANDIRMA */
.portal-body {
    background-color: #f8fafc; font-family: 'Inter', sans-serif;
    color: #334155; margin: 0; overflow-x: hidden;
    display: flex; flex-direction: column; min-height: 100vh;
}

/* NAVBAR */
.portal-nav {
    background: #ffffff; border-bottom: 1px solid #e2e8f0; padding: 15px 0;
    position: sticky; top: 0; z-index: 100;
}
.nav-container {
    width: 100%; /* max-width kaldırıldı, tam genişlik */
    padding: 0 40px; /* Kenarlardan boşluk */
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 24px; font-weight: 800; color: #0f172a; text-decoration: none; letter-spacing: -0.5px; }
.logo .highlight { color: #2563eb; }
.nav-links a { text-decoration: none; color: #64748b; font-weight: 500; margin-left: 25px; font-size: 14px; transition: 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #2563eb; }

/* 2. PORTAL LAYOUT */
.hero-split {
    display: flex; flex: 1; min-height: calc(100vh - 70px);
    background: #f8fafc; justify-content: center;
}
.hero-split.has-results {
    height: calc(100vh - 70px); justify-content: stretch; background: #f1f5f9;
}
.hero-split:not(.has-results) .hero-left {
    background: transparent;
    overflow: visible;
}
.hero-split:not(.has-results) .portal-route-scene {
    right: auto;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
}

/* --- SOL TARA (ARAMA) --- */
.hero-left {
    width: min(100%, 720px); flex-shrink: 0; background: #f8fafc;
    display: flex; align-items: center; justify-content: center;
    padding: 44px 40px; border-right: 0;
    z-index: 10; position: relative; /* Desen için relative */
    overflow: hidden; /* Taşan desen gizlensin */
}
.hero-split.has-results .hero-left {
    display: none;
}
.pattern-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px; /* Üst kısmı kaplar */
    background-image: radial-gradient(#e2e8f0 2px, transparent 2px);
    background-size: 24px 24px; /* Nokta sıklığı */
    opacity: 0.9;
    z-index: 0; /* İçeriğin arkasında */
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%); /* Aşağı doğru silikleşir */
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

/* Karşılama alanının dekoratif teslimat rotaları: içerikten tamamen bağımsız katman. */
.portal-route-scene {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}
.portal-route-dots {
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image: radial-gradient(rgba(59, 130, 246, .28) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
    animation: portalRouteDots 10s ease-in-out infinite alternate;
}
.portal-route-map { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.portal-route-path {
    fill: none;
    stroke: rgba(37, 99, 235, .22);
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-dasharray: 2 8;
    vector-effect: non-scaling-stroke;
}
.portal-route-path--two,
.portal-route-path--three { opacity: .48; }
.portal-route-marker {
    fill: #3b82f6;
    filter: drop-shadow(0 0 4px rgba(59, 130, 246, .32));
}
.portal-route-marker path { fill: none; stroke: #eff6ff; stroke-width: 1; stroke-linecap: round; }
.portal-route-figure {
    position: absolute;
    width: 88px;
    color: #3b82f6;
    opacity: .15;
    animation: portalRouteFloat 4.5s ease-in-out infinite alternate;
}
.portal-route-figure svg { display: block; width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.portal-route-figure-detail { stroke: #60a5fa; }
.portal-route-figure--phone { top: 3%; left: 3%; animation-duration: 4.8s; }
.portal-route-figure--parcel { bottom: 3%; left: 3%; width: 96px; animation-delay: -1.5s; animation-duration: 5.2s; }
.portal-route-figure--tablet { top: 3%; right: 3%; width: 94px; animation-delay: -2.4s; animation-duration: 4.6s; }
.portal-route-figure--cart { right: 3%; bottom: 3%; width: 104px; animation-delay: -3.1s; animation-duration: 5s; }
.portal-route-icon { position: absolute; color: #60a5fa; opacity: .18; font-size: 13px; animation: portalRouteFloat 5.5s ease-in-out infinite alternate; }
.portal-route-icon--pin { top: 32%; left: 16%; }
.portal-route-icon--box { top: 20%; right: 17%; animation-delay: -2.8s; }
.portal-route-icon--truck { right: 17%; bottom: 28%; animation-delay: -1.1s; }

@keyframes portalRouteFloat {
    from { transform: translate3d(0, -3px, 0); }
    to { transform: translate3d(0, 4px, 0); }
}
@keyframes portalRouteDots {
    from { opacity: .14; }
    to { opacity: .25; }
}

@media (max-width: 1100px) {
    .portal-route-scene { opacity: .62; }
    .portal-route-figure--parcel,
    .portal-route-figure--cart,
    .portal-route-path--three,
    .portal-route-path--four,
    .portal-route-marker--three,
    .portal-route-marker--four,
    .portal-route-icon--truck { display: none; }
}

@media (max-width: 640px) {
    .portal-route-scene { opacity: .38; }
    .portal-route-map,
    .portal-route-figure,
    .portal-route-icon { display: none; }
    .portal-route-dots { animation: none; opacity: .12; }
}

@media (prefers-reduced-motion: reduce) {
    .portal-route-dots,
    .portal-route-figure,
    .portal-route-icon { animation: none !important; }
    .portal-route-marker { display: none; }
}

.hero-content {
    width: 100%; max-width: 460px;
    position: relative;
    z-index: 2; /* Desen üstüne çıksın */
}
.hero-content { width: 100%; max-width: 460px; }
.hero-split:not(.has-results) .hero-content {
    max-width: 680px;
    text-align: center;
}
.tag-badge {
    background: #eff6ff; color: #2563eb; padding: 6px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    display: inline-block; margin-bottom: 20px;
}
.tag-badge i { margin-right: 5px; }
.hero-content h1 { font-size: 32px; color: #0f172a; margin: 0 0 15px 0; line-height: 1.2; letter-spacing: -1px; }
.hero-content p { font-size: 15px; color: #64748b; margin-bottom: 40px; line-height: 1.6; }
.hero-split:not(.has-results) .hero-content h1 {
    font-size: 36px;
}
.hero-split:not(.has-results) .hero-content > p {
    max-width: 640px;
    margin-right: auto;
    margin-left: auto;
    white-space: nowrap;
}

/* INPUT */
.search-box-wrapper { margin-bottom: 40px; }
.portal-search-fields { display: flex; gap: 10px; }
.portal-search-fields .input-floating { flex: 1 1 0; min-width: 0; }
.portal-search-fields .portal-phone-last4 { flex: 0 1 235px; }
.portal-search-submit {
    flex: 0 0 auto; min-width: 150px; height: 92px; padding: 0 22px; border-radius: 12px; border: none;
    background: #0f172a; color: white; font-size: 14px; font-weight: 700; cursor: pointer; transition: 0.2s;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
}
.portal-search-submit:hover { background: #2563eb; transform: translateX(1px); }
.portal-search-submit:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.portal-search-submit:disabled { cursor: wait; opacity: .78; transform: none; }
.hero-split:not(.has-results) .search-box-wrapper {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
}
.input-floating {
    position: relative; background: #ffffff; border: 2px solid #e2e8f0; border-radius: 12px;
    padding: 5px; display: flex; align-items: center; transition: all 0.3s;
}
.input-floating:focus-within { border-color: #2563eb; box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.15); }
.input-floating input {
    flex: 1; border: none; background: transparent; padding: 22px 15px 6px;
    font-size: 16px; font-weight: 600; color: #0f172a; outline: none; height: 50px;
}
.input-floating label {
    position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: 15px; pointer-events: none; transition: 0.3s;
}
.input-floating input:focus ~ label, .input-floating input:not(:placeholder-shown) ~ label {
    top: 14px; font-size: 11px; color: #2563eb; font-weight: 700;
}
.input-floating button {
    min-width: 112px; height: 50px; padding: 0 17px; border-radius: 10px; border: none;
    background: #0f172a; color: white; font-size: 14px; font-weight: 700; cursor: pointer; transition: 0.2s;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
}
.input-floating button:hover { background: #2563eb; transform: translateX(1px); }
.input-floating button:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.input-floating button:disabled { cursor: wait; opacity: .78; transform: none; }
.btn-check-loading { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.search-help { display: flex; align-items: flex-start; gap: 7px; margin: 10px 2px 0; color: #94a3b8; font-size: 12px; line-height: 1.45; }
.search-help i { color: #2563eb; margin-top: 2px; }
.search-help a { color: #2563eb; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.portal-body .error-msg:not(.hidden) {
    display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; padding: 13px 15px;
    color: #b42318; background: linear-gradient(135deg, #fff5f5 0%, #fff1f2 100%);
    border: 1px solid #fecaca; border-radius: 12px; box-shadow: 0 8px 18px -16px rgba(185, 28, 28, 0.8);
    font-size: 13px; font-weight: 650; line-height: 1.5; text-align: left;
}
.portal-body .error-msg:not(.hidden)::before {
    content: '\f071'; flex: 0 0 auto; margin-top: 1px; color: #dc2626;
    font-family: 'Font Awesome 6 Free'; font-size: 15px; font-weight: 900;
}
.hero-split:not(.has-results) .search-help {
    justify-content: center;
    text-align: left;
}

.features-grid { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.feat-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #64748b; font-weight: 600; }
.feat-item i { color: #2563eb; }
.hero-split:not(.has-results) .features-grid {
    justify-content: center;
}

.portal-legal-footer { padding: 22px 20px 30px; background: #fff; border-top: 1px solid #e2e8f0; }
.portal-legal-footer__inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #64748b; font-size: 12px; }
.portal-legal-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }
.portal-legal-footer a { color: #475569; text-decoration: none; font-weight: 650; }
.portal-legal-footer a:hover, .portal-legal-footer a:focus-visible { color: #2563eb; text-decoration: underline; text-underline-offset: 3px; }

.legal-page { min-height: 100vh; background: #f8fafc; color: #1e293b; font-family: 'Inter', sans-serif; }
.legal-page__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px max(24px, calc((100% - 980px) / 2)); background: #fff; border-bottom: 1px solid #e2e8f0; }
.legal-page__brand { color: #0f172a; font-size: 24px; font-weight: 800; letter-spacing: -1px; text-decoration: none; }
.legal-page__brand span { color: #2563eb; }
.legal-page__back { color: #2563eb; font-size: 14px; font-weight: 700; text-decoration: none; }
.legal-page__main { width: min(900px, calc(100% - 40px)); margin: 42px auto 64px; }
.legal-page__card { padding: clamp(24px, 5vw, 52px); background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; box-shadow: 0 18px 36px -30px rgba(15, 23, 42, .35); }
.legal-page__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 7px 11px; color: #2563eb; background: #eff6ff; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.legal-page h1 { margin: 0; color: #0f172a; font-size: clamp(28px, 5vw, 42px); letter-spacing: -1.5px; }
.legal-page h2 { margin: 34px 0 10px; color: #0f172a; font-size: 19px; }
.legal-page p, .legal-page li { color: #475569; font-size: 15px; line-height: 1.75; }
.legal-page ul { padding-left: 22px; }
.legal-page a { color: #2563eb; text-decoration: none; font-weight: 600; }
.legal-page a:hover { text-decoration: underline; }
.legal-page__notice { margin-top: 28px; padding: 15px 17px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; font-size: 14px; line-height: 1.6; }
.legal-page__meta { margin-top: 12px; color: #64748b; font-size: 13px; }

/* Legal Table */
.legal-table-responsive { width: 100%; overflow-x: auto; margin: 20px 0; border: 1px solid #e2e8f0; border-radius: 12px; }
.legal-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.legal-table th, .legal-table td { padding: 12px 16px; border-bottom: 1px solid #e2e8f0; }
.legal-table th { background: #f8fafc; font-weight: 700; color: #1e293b; font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; }
.legal-table tr:last-child td { border-bottom: none; }
.legal-table code { background: #f1f5f9; padding: 3px 6px; border-radius: 6px; font-family: monospace; font-size: 13px; color: #0f172a; }

/* Legal Form */
.legal-form { display: grid; gap: 16px; margin-top: 26px; }
.legal-form label { display: grid; gap: 7px; color: #334155; font-size: 13px; font-weight: 750; }
.legal-form input, .legal-form textarea { width: 100%; box-sizing: border-box; padding: 12px 13px; color: #0f172a; background: #fff; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; }
.legal-form textarea { min-height: 100px; resize: vertical; }
.legal-form__actions { display: flex; gap: 12px; margin-top: 10px; }
.legal-print-button { padding: 12px 20px; color: #fff; background: #0f172a; border: 0; border-radius: 10px; font: inherit; font-weight: 750; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background 0.2s; }
.legal-print-button:hover { background: #1e293b; }
.legal-reset-button { padding: 12px 20px; color: #475569; background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; font-weight: 750; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background 0.2s; }
.legal-reset-button:hover { background: #e2e8f0; }

.form-section { border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; margin-bottom: 8px; background: #fafafa; }
.form-section legend { font-weight: 750; font-size: 15px; color: #0f172a; padding: 0 10px; display: inline-flex; align-items: center; gap: 8px; }
.form-section legend i { color: #2563eb; }
.form-section label em { color: #dc2626; font-style: normal; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }
.section-desc { font-size: 13px; color: #64748b; margin: 0 0 12px 0; }
.checkbox-stack { display: grid; gap: 10px; margin-top: 8px; }
.inline-checkbox { display: flex !important; align-items: flex-start !important; gap: 10px !important; cursor: pointer; font-size: 14px !important; color: #334155 !important; font-weight: 500 !important; }
.inline-checkbox input[type="checkbox"], .inline-checkbox input[type="radio"] { width: 18px !important; height: 18px !important; margin-top: 2px !important; accent-color: #2563eb; cursor: pointer; flex-shrink: 0; }
.relation-radio-group, .delivery-radio-group { display: flex; flex-wrap: wrap; gap: 20px; }

/* Signature Box */
.signature-box { border: 1px dashed #cbd5e1; border-radius: 12px; padding: 18px 20px; margin: 20px 0 10px; background: #fff; }
.signature-box p { font-size: 13px; line-height: 1.6; color: #475569; margin: 0 0 18px 0; font-style: italic; }
.signature-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; font-size: 13px; color: #1e293b; }
.signature-line { display: inline-block; font-family: monospace; color: #64748b; }

.submission-guide { margin-top: 36px; padding-top: 24px; border-top: 1px solid #e2e8f0; }
.submission-guide h2 { display: flex; align-items: center; gap: 10px; }
.submission-guide h2 i { color: #2563eb; }
.channel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.channel-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; }
.channel-card i { font-size: 24px; color: #2563eb; margin-bottom: 10px; display: block; }
.channel-card h4 { margin: 0 0 8px 0; color: #0f172a; font-size: 16px; }
.channel-card p { margin: 0; font-size: 13px; color: #64748b; line-height: 1.6; }
.print-only-header { display: none; }

/* Print Styles for Legal Form */
@media print {
  body.legal-page { background: #fff !important; color: #000 !important; font-size: 12pt; }
  .legal-page__nav, .print-hide, .legal-form__actions, .submission-guide { display: none !important; }
  .legal-page__main { width: 100% !important; margin: 0 !important; padding: 0 !important; }
  .legal-page__card { border: none !important; box-shadow: none !important; padding: 0 !important; }
  .print-only-header { display: block !important; margin-bottom: 20px; border-bottom: 2px solid #000; padding-bottom: 10px; text-align: center; }
  .print-only-header h2 { font-size: 14pt; margin: 0 0 6px 0; color: #000; }
  .print-only-header p { font-size: 10pt; color: #333; margin: 0; }
  .form-section { background: #fff !important; border: 1px solid #666 !important; break-inside: avoid; margin-bottom: 12px; padding: 12px; }
  .form-section legend { color: #000; font-weight: bold; }
  .signature-box { border: 1px solid #000 !important; break-inside: avoid; }
  .legal-form input, .legal-form textarea { border-color: #999 !important; }
}

/* KVKK Checkbox in Return/Exchange Modal Step */
.kvkk-consent-box {
  margin: 16px 0;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.kvkk-checkbox-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  cursor: pointer;
  font-size: 13px !important;
  color: #334155 !important;
  line-height: 1.5;
  user-select: none;
}
.kvkk-checkbox-label input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin-top: 1px !important;
  accent-color: #2563eb;
  cursor: pointer;
  flex-shrink: 0;
}
.kvkk-checkbox-label a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.kvkk-checkbox-label a:hover {
  color: #1d4ed8;
}
.kvkk-checkbox-label em {
  color: #dc2626;
  font-style: normal;
  font-weight: bold;
}

/* Legal Footnote */
.legal-footnote {
  margin: 10px 0 0 0;
  font-size: 11.5px;
  color: #94a3b8;
  text-align: center;
}
.legal-footnote a {
  color: #64748b;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-footnote a:hover {
  color: #2563eb;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  padding: 16px 24px;
  z-index: 99999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  animation: slideUpBanner 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner.hidden {
  display: none !important;
}
.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cookie-banner-icon {
  font-size: 26px;
  color: #f59e0b;
  flex-shrink: 0;
}
.cookie-banner-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5e1;
}
.cookie-banner-text p {
  margin: 0;
}
.cookie-banner-text a {
  color: #60a5fa;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-text a:hover {
  color: #93c5fd;
}
.cookie-banner-actions {
  flex-shrink: 0;
}
.btn-cookie-accept {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-cookie-accept:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .cookie-banner-actions {
    width: 100%;
  }
  .btn-cookie-accept {
    width: 100%;
    padding: 12px;
  }
}

@media (max-width: 640px) { .portal-legal-footer__inner { align-items: flex-start; flex-direction: column; } .portal-legal-footer nav { justify-content: flex-start; } .legal-page__nav { padding: 18px 20px; } }

/* --- SAĞ TARA (PORTAL DASHBOARD) --- */
.hero-right {
    display: none; flex: 1; background: #f1f5f9; position: relative; overflow: hidden;
}
.hero-split.has-results .hero-right {
    display: block;
    width: 100%;
}

.portal-welcome {
    position: relative; z-index: 2; min-height: 100%; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center; padding: 56px;
    color: #eff6ff; background: #0f172a;
    background-image: linear-gradient(135deg, #0f172a 0%, #111827 52%, #172554 100%);
}
.portal-welcome-orb { display: none; }
.portal-welcome-orb-one { width: 460px; height: 460px; top: -190px; right: -150px; }
.portal-welcome-orb-two { width: 300px; height: 300px; bottom: -170px; left: -80px; }
.portal-welcome-content { position: relative; max-width: 540px; }
.welcome-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #93c5fd; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.portal-welcome h2 { margin: 16px 0; color: #fff; font-size: clamp(32px, 3.5vw, 46px); line-height: 1.08; letter-spacing: 0; }
.portal-welcome p { max-width: 450px; margin: 0; color: #cbd5e1; font-size: 15px; line-height: 1.6; }
.welcome-steps { display: grid; gap: 10px; margin-top: 32px; }
.welcome-step { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border: 1px solid rgba(148, 163, 184, .2); border-radius: 8px; background: rgba(255, 255, 255, .045); }
.welcome-step > span { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; color: #dbeafe; background: rgba(37, 99, 235, .45); font-size: 12px; font-weight: 800; }
.welcome-step strong, .welcome-step small { display: block; }
.welcome-step strong { color: #f8fafc; font-size: 14px; }
.welcome-step small { margin-top: 2px; color: #94a3b8; font-size: 12px; }
.welcome-assurance { position: absolute; right: 40px; bottom: 30px; display: flex; align-items: center; gap: 8px; color: #94a3b8; font-size: 12px; }
.welcome-assurance i { color: #60a5fa; }

.hero-image-container { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-image-container img { width: 100%; height: 100%; object-fit: cover; }
.image-overlay {
    position: absolute; bottom: 50px; left: 50px; background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px); padding: 25px; border-radius: 16px;
    display: flex; align-items: center; gap: 15px; color: white; max-width: 450px;
}
.overlay-icon {
    width: 50px; height: 50px; background: #2563eb; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
    color: #ffffff; /* İkon rengi beyaz yapıldı */
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3); /* Hafif gölge eklendi */
}

.overlay-text h3 { margin: 0 0 5px 0; font-size: 18px; font-weight: 700; }
.overlay-text p { margin: 0; font-size: 14px; opacity: 0.9; line-height: 1.4; }

/* PORTAL DASHBOARD CONTAINER */
.portal-dash-container {
    position: relative; z-index: 5; width: 100%; height: 100%;
    padding: 36px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px;
}
.hero-split.has-results .portal-dash-container {
    max-width: 1180px;
    margin: 0 auto;
}

.dash-header-card {
    background: #fff; border-radius: 10px; padding: 24px 28px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04); border: 1px solid #e2e8f0;
}
.dh-left { display: flex; align-items: center; gap: 15px; }
.dh-icon { font-size: 40px; color: #cbd5e1; }
.dh-label { font-size: 12px; color: #64748b; text-transform: uppercase; font-weight: 700; display: block; margin-bottom: 2px; }
.dh-left h3 { margin: 0; font-size: 20px; color: #0f172a; }
.dh-right { text-align: right; display: flex; gap: 40px; align-items: center; }
.dh-right h3 { margin: 0; font-size: 18px; color: #334155; }
.dh-price { background: #eff6ff; color: #2563eb; padding: 8px 14px; border-radius: 8px; font-weight: 800; font-size: 18px; }

.dash-panel {
    background: #fff; border-radius: 10px; border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03); display: flex; flex-direction: column;
}
.portal-result-toolbar { display: flex; justify-content: flex-end; margin-bottom: -10px; }
.portal-new-search { padding: 7px 10px; border: 0; border-radius: 7px; color: #475569; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.portal-new-search:hover { color: #1d4ed8; background: #eff6ff; }
.portal-new-search:focus-visible { outline: 3px solid #bfdbfe; outline-offset: 2px; }
.dashboard-state { margin-bottom: 20px; text-align: center; }
.dashboard-state-icon { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; font-size: 30px; }
.dashboard-state h3 { margin: 0 0 5px; color: #1e293b; font-size: 20px; }
.dashboard-state p { margin: 0; color: #64748b; font-size: 14px; line-height: 1.5; }
.dashboard-state--neutral .dashboard-state-icon { color: #2563eb; background: #eff6ff; }
.dashboard-state--info .dashboard-state-icon { color: #0369a1; background: #e0f2fe; }
.dashboard-state--success .dashboard-state-icon { color: #15803d; background: #dcfce7; }
.dashboard-state--warning .dashboard-state-icon { color: #b45309; background: #fef3c7; }
.dashboard-state--danger .dashboard-state-icon { color: #dc2626; background: #fee2e2; }
.dashboard-actions { display: flex; justify-content: center; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.dashboard-actions .btn-portal-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; font-size: 14px; }
.dashboard-warning { max-width: 440px; margin: 0 auto; padding: 11px 14px; border-radius: 8px; color: #b45309; background: #fffbeb; font-size: 13px; line-height: 1.45; }
.dashboard-warning i { margin-right: 6px; }
.panel-header {
    padding: 20px 25px; border-bottom: 1px solid #f1f5f9;
    display: flex; justify-content: space-between; align-items: center;
}
.panel-header h4 { margin: 0; font-size: 16px; color: #0f172a; display: flex; align-items: center; gap: 10px; }
.panel-header i { color: #2563eb; }
.panel-body { padding: 26px; }
.request-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; margin: 0 0 28px; list-style: none; }
.request-steps li { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid #e2e8f0; border-radius: 8px; color: #94a3b8; }
.request-steps li > span, .request-section-heading > span { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; color: #64748b; background: #f1f5f9; font-size: 12px; font-weight: 800; }
.request-steps strong, .request-steps small { display: block; }
.request-steps strong { color: #475569; font-size: 12px; }
.request-steps small { margin-top: 2px; font-size: 11px; }
.request-steps .is-active { border-color: #bfdbfe; background: #eff6ff; }
.request-steps .is-active > span { color: #fff; background: #2563eb; }
.request-steps .is-active strong { color: #1d4ed8; }
.request-steps .is-complete { border-color: #bbf7d0; background: #f0fdf4; }
.request-steps .is-complete > span { color: #fff; background: #16a34a; }
.request-steps .is-complete strong { color: #15803d; }
.request-flow { max-width: 760px; margin: 0 auto; }
.request-flow-step { display: none; }
.request-flow[data-step="1"] [data-request-step="1"],
.request-flow[data-step="2"] [data-request-step="2"],
.request-flow[data-step="3"] [data-request-step="3"] { display: block; }
.request-flow-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.request-flow-actions--end { justify-content: flex-end; }
.request-flow-actions--start { justify-content: flex-start; }
.request-next-btn { min-width: 150px; }
.request-section { padding: 18px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.request-section + .request-section { margin-top: 14px; }
.request-section-heading { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.request-section-heading h5 { margin: 1px 0 3px; color: #0f172a; font-size: 14px; }
.request-section-heading p { margin: 0; color: #64748b; font-size: 12px; line-height: 1.45; }
.form-stack label { color: #334155; font-size: 13px; font-weight: 700; }
.form-stack label em { color: #dc2626; font-style: normal; }
.form-stack label span { color: #94a3b8; font-size: 11px; font-weight: 500; }
.form-stack .has-error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .1); }
.request-form-error { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; padding: 9px 10px; border-radius: 8px; color: #b91c1c; background: #fef2f2; font-size: 12px; font-weight: 600; }
.request-form-error::before { content: '\f071'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }
.request-summary-card { padding: 18px; border: 1px solid #bfdbfe; border-radius: 8px; background: #f8fbff; }
.request-summary-list { margin: 0; }
.request-summary-list > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid #dbeafe; }
.request-summary-list > div:last-child { border-bottom: 0; }
.request-summary-list dt { color: #64748b; font-size: 12px; }
.request-summary-list dd { margin: 0; overflow-wrap: anywhere; color: #1e3a5f; font-size: 13px; font-weight: 700; text-align: right; }
.shipping-checklist { display: grid; gap: 8px; margin-top: 15px; padding: 13px; border-radius: 8px; background: #fff; }
.shipping-checklist strong { margin-bottom: 2px; color: #334155; font-size: 13px; }
.shipping-checklist strong i { color: #2563eb; margin-right: 5px; }
.shipping-checklist span { color: #64748b; font-size: 12px; }
.shipping-checklist span i { width: 15px; color: #16a34a; }
.return-window-note { margin: 14px 0 0; color: #b45309; font-size: 11px; line-height: 1.45; }
.return-window-note i { margin-right: 4px; }
.request-submit-btn { position: sticky; bottom: 14px; z-index: 2; margin-top: 14px; box-shadow: 0 6px 16px rgba(37, 99, 235, .18); }

/* -------------------------------------------
   RENKLİ YATAY TIMELINE & TARİHÇE (v61.0)
------------------------------------------- */
.return-code-badge { display: inline-flex; align-items: center; gap: 7px; background: #fff7ed; color: #c2410c; padding: 7px 10px; border: 1px solid #ffedd5; border-radius: 7px; font-size: 12px; font-weight: 700; cursor: pointer; transition: .2s; }
.return-code-badge span { color: #9a3412; font-weight: 600; }
.return-code-badge strong { font-size: 13px; letter-spacing: .03em; }
.return-code-badge:hover { border-color: #fdba74; background: #ffedd5; }
.return-code-badge:focus-visible { outline: 3px solid #fed7aa; outline-offset: 2px; }

.timeline-horizontal-colorful {
    display: flex; justify-content: space-between; position: relative;
    padding: 20px 0; margin-bottom: 10px;
}

/* ADIM YAPISI */
.tm-step {
    position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center;
    width: 25%; text-align: center; opacity: 0.6; transition: all 0.3s;
}

/* BAĞLANTI ÇİZGİLERİ (SEGMENTED LINES) */
.tm-step::after {
    content: ''; position: absolute;
    top: 25px; /* İkonun ortası */
    left: 50%; /* Kendi merkezinden başla */
    width: 100%; /* Bir sonraki adımın merkezine kadar uzan */
    height: 4px;
    background: #e2e8f0; /* Varsayılan Gri */
    z-index: -1; /* İkonun arkasında kalsın */
    transition: background 0.4s ease;
}

/* Son adımın çizgisi olmamalı */
.tm-step:last-child::after { display: none; }

/* İKON TASARIMI */
.tm-icon {
    width: 50px; height: 50px; background: #fff; border: 3px solid #cbd5e1; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 18px; color: #94a3b8;
    margin-bottom: 10px; box-shadow: 0 0 0 6px #fff; transition: all 0.3s;
}

.tm-content h5 { 
    margin: 0 0 4px 0; 
    font-size: 15px; /* Yazı büyütüldü */
    font-weight: 700; 
    color: #334155; /* Başlık daha koyu */
}

.tm-content p { 
    margin: 0 0 5px 0; 
    font-size: 13px; 
    color: #475569; /* METİN RENGİ KOYULAŞTIRILDI (Okunabilirlik için) */
    line-height: 1.4; 
    font-weight: 500;
}

/* Kutu içindeki tarih alanı */
.tm-date {
    font-size: 11px; 
    font-weight: 700; 
    color: #475569; /* Tarih rengi belirginleştirildi */
    background: #e2e8f0; 
    padding: 3px 10px; 
    border-radius: 12px;
    display: inline-block; 
    min-height: 20px;
    margin-top: 5px;
}
.tm-date:empty {
    display: none;
}

/* --- AKTİF VE TAMAMLANMIŞ DURUMLAR --- */
.tm-step.active, .tm-step.completed { opacity: 1; }
.tm-step.active .tm-icon { transform: scale(1.15); }

/* RENKLER VE ÇİZGİ BOYAMA MANTIĞI */

/* ADIM 1: MAVİ (Başvuru) */
.tm-step[data-step="1"].active .tm-icon, 
.tm-step[data-step="1"].completed .tm-icon {
    background: #3b82f6; border-color: #3b82f6; color: white; box-shadow: 0 0 0 6px #eff6ff;
}
/* Step 1 tamamlandığında Step 2'ye giden çizgi Mavi olsun */
.tm-step[data-step="1"].completed::after { background: #3b82f6; }


/* ADIM 2: MOR (İnceleme) */
.tm-step[data-step="2"].active .tm-icon, 
.tm-step[data-step="2"].completed .tm-icon {
    background: #8b5cf6; border-color: #8b5cf6; color: white; box-shadow: 0 0 0 6px #f3e8ff;
}
/* Step 2 tamamlandığında Step 3'e giden çizgi Mor olsun */
.tm-step[data-step="2"].completed::after { background: #8b5cf6; }


/* ADIM 3: TURUNCU (Onay) */
.tm-step[data-step="3"].active .tm-icon, 
.tm-step[data-step="3"].completed .tm-icon {
    background: #f97316; border-color: #f97316; color: white; box-shadow: 0 0 0 6px #ffedd5;
}
/* Step 3 tamamlandığında Step 4'e giden çizgi Turuncu olsun */
.tm-step[data-step="3"].completed::after { background: #f97316; }


/* ADIM 4: YEŞİL (Sonuç) */
.tm-step[data-step="4"].active .tm-icon, 
.tm-step[data-step="4"].completed .tm-icon {
    background: #10b981; border-color: #10b981; color: white; box-shadow: 0 0 0 6px #d1fae5;
}

/* YAZI RENKLERİ */
.tm-step.active h5, .tm-step.completed h5 { color: #0f172a; }
.tm-step.active p { color: #334155; font-weight: 500; }
.tm-step.completed .tm-date { color: #0f172a; background: #e2e8f0; } /* Tarih belirginleşsin */

/* RED DURUMU (Özel) */
.tm-step.rejected .tm-icon { background: #EF4444 !important; border-color: #EF4444 !important; color: white !important; }

/* AKTİF ve TAMAMLANMIŞ DURUMLAR */
.tm-step.active, .tm-step.completed { opacity: 1; }
.tm-step.active .tm-icon { transform: scale(1.15); }

/* --- RENKLER (DATA-STEP İLE GARANTİ) --- */
/* ADIM 1: MAVİ */
.tm-step[data-step="1"].active .tm-icon, .tm-step[data-step="1"].completed .tm-icon {
    background: #3b82f6; border-color: #3b82f6; color: white; box-shadow: 0 0 0 6px #eff6ff;
}
/* ADIM 2: MOR */
.tm-step[data-step="2"].active .tm-icon, .tm-step[data-step="2"].completed .tm-icon {
    background: #8b5cf6; border-color: #8b5cf6; color: white; box-shadow: 0 0 0 6px #f3e8ff;
}
/* ADIM 3: TURUNCU */
.tm-step[data-step="3"].active .tm-icon, .tm-step[data-step="3"].completed .tm-icon {
    background: #f97316; border-color: #f97316; color: white; box-shadow: 0 0 0 6px #ffedd5;
}
/* ADIM 4: YEŞİL */
.tm-step[data-step="4"].active .tm-icon, .tm-step[data-step="4"].completed .tm-icon {
    background: #10b981; border-color: #10b981; color: white; box-shadow: 0 0 0 6px #d1fae5;
}

/* YAZILARIN RENKLENMESİ */
.tm-step.active h5, .tm-step.completed h5 { color: #0f172a; }
.tm-step.active p { color: #334155; font-weight: 500; }

.info-alert {
    background: #f0f9ff; border-left: 4px solid #0ea5e9; padding: 15px;
    border-radius: 8px; font-size: 13px; color: #0369a1; margin-top: 10px;
}
.timeline-guidance { display: flex; align-items: center; gap: 13px; margin: 14px 0 8px; padding: 14px; border: 1px solid #bae6fd; border-radius: 8px; background: #f0f9ff; }
.timeline-guidance-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; color: #0369a1; background: #e0f2fe; font-size: 16px; }
.timeline-guidance-content { min-width: 0; flex: 1; }
.timeline-guidance-content > span { display: block; margin-bottom: 2px; color: #64748b; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.timeline-guidance h5 { margin: 0 0 3px; color: #0f172a; font-size: 14px; }
.timeline-guidance p { margin: 0; color: #475569; font-size: 13px; line-height: 1.45; }
.timeline-last-update { display: block; margin-top: 8px; color: #64748b; font-size: 11px; font-weight: 600; }
.timeline-guidance .btn-portal-secondary { padding: 8px 11px; color: #0369a1; border-color: #bae6fd; background: #fff; font-size: 12px; white-space: nowrap; }
.timeline-guidance--review { border-color: #ddd6fe; background: #f5f3ff; }
.timeline-guidance--review .timeline-guidance-icon { color: #6d28d9; background: #ede9fe; }
.timeline-guidance--approved { border-color: #fed7aa; background: #fff7ed; }
.timeline-guidance--approved .timeline-guidance-icon { color: #c2410c; background: #ffedd5; }
.timeline-guidance--shipping { border-color: #bae6fd; background: #f0f9ff; }
.timeline-guidance--shipping .timeline-guidance-icon { color: #0369a1; background: #e0f2fe; }
.timeline-guidance--success { border-color: #bbf7d0; background: #f0fdf4; }
.timeline-guidance--success .timeline-guidance-icon { color: #15803d; background: #dcfce7; }
.timeline-guidance--danger { border-color: #fecaca; background: #fef2f2; }
.timeline-guidance--danger .timeline-guidance-icon { color: #b91c1c; background: #fee2e2; }

/* FORM STYLES */
.form-layout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.radio-group-modern { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.radio-box input { display: none; }
.rb-content {
    border: 2px solid #e2e8f0; border-radius: 12px; padding: 15px;
    display: flex; align-items: center; gap: 15px;
    cursor: pointer; transition: 0.2s; color: #64748b; font-weight: 600;
}
.rb-icon { font-size: 20px; color: #94a3b8; }
.radio-box input:checked + .rb-content { border-color: #2563eb; background: #eff6ff; color: #2563eb; }
.radio-box input:checked + .rb-content .rb-icon { color: #2563eb; }

.form-stack { display: flex; flex-direction: column; gap: 15px; }
select, textarea {
    width: 100%; 
    padding: 14px; 
    border: 1px solid #cbd5e1; 
    border-radius: 10px; 
    font-size: 14px; 
    outline: none; 
    transition: 0.2s;
    background: #ffffff; /* Arkaplan beyaz olsun */
    position: relative; 
    z-index: 20; /* Tıklanabilirliği garantiye al */
    cursor: pointer;
    -webkit-appearance: auto; /* Tarayıcı varsayılan oku geri getir (Bazen kaybolabilir) */
    appearance: auto;
}
select:focus, textarea:focus { border-color: #2563eb; }
.big-btn { padding: 16px; font-size: 15px; }

/* INFO BAR */
.info-bar { background: #fff; border-top: 1px solid #e2e8f0; padding: 15px 0; margin-top: auto; }
.info-bar-container { max-width: 1400px; margin: 0 auto; display: flex; justify-content: center; gap: 40px; padding: 0 30px; }
.ib-item { display: flex; align-items: center; gap: 10px; color: #64748b; font-size: 13px; }
.ib-item i { font-size: 20px; color: #2563eb; }
.ib-item strong { display: block; color: #0f172a; }
.ib-item a { color: #2563eb; text-decoration: none; font-weight: 600; }

.fade-in { animation: fadeIn 0.5s ease-out forwards; opacity: 0; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
@keyframes fadeIn { from{opacity:0;transform:translateY(20px);} to{opacity:1;transform:translateY(0);} }

@media (max-width: 1100px) {
    .hero-split { flex-direction: column; height: auto; align-items: center; }
    .hero-split.has-results { align-items: stretch; }
    .hero-left { width: 100%; border-right: none; padding: 30px; }
    .hero-split.has-results .hero-left { display: none; }
    .hero-right { display: none; padding: 20px; }
    .hero-split.has-results .hero-right { display: flex; min-height: 600px; }
    .hero-right:has(.portal-dash-container:not(.hidden)) { display: flex; min-height: 600px; }
    .hero-image-container { display: none; }
    .portal-welcome { display: none; }
    .form-layout-grid { grid-template-columns: 1fr; }
    .timeline-horizontal-colorful { overflow-x: auto; padding-bottom: 20px; }
    .tm-step { min-width: 80px; }
}

@media (max-width: 480px) {
    .portal-search-fields { flex-direction: column; gap: 8px; }
    .portal-search-fields .portal-phone-last4 { flex-basis: auto; }
    .portal-search-submit { width: 100%; height: 64px; }
    .hero-content h1 { font-size: 28px; }
    .hero-split:not(.has-results) .hero-content h1 { font-size: 30px; }
    .hero-split:not(.has-results) .hero-content > p { white-space: normal; }
    .hero-split:not(.has-results) .features-grid { gap: 10px 14px; }
    .input-floating { padding: 4px; }
    .input-floating input { min-width: 0; padding-left: 13px; }
    .input-floating label { left: 18px; }
    .input-floating button { min-width: 46px; width: 46px; padding: 0; }
    .input-floating button span { display: none; }
    .search-help { font-size: 11px; }
    .request-steps { grid-template-columns: 1fr; gap: 7px; margin-bottom: 20px; }
    .request-steps li { padding: 8px 10px; }
    .request-steps small { display: none; }
    .request-section, .request-summary-card { padding: 16px; }
    .request-summary-list > div { grid-template-columns: 70px minmax(0, 1fr); }
    .request-submit-btn { bottom: 8px; }
}

/* -------------------------------------------
   İŞLEM GEÇMİŞİ (LOG SİSTEMİ) - v62.0
------------------------------------------- */
.process-history-wrapper {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
    animation: fadeIn 0.5s ease-out;
}

.history-title {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 15px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-feed {
    display: flex;
    flex-direction: column;
    gap: 0; /* Çizgi bütünlüğü için */
}

.feed-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    position: relative;
}

.feed-item:last-child {
    padding-bottom: 0;
}

/* Sol Dikey Çizgi */
.feed-item::before {
    content: '';
    position: absolute;
    left: 6px; /* Noktanın ortası */
    top: 20px;
    bottom: 0;
    width: 2px;
    background: #f1f5f9;
}
.feed-item:last-child::before { display: none; }

/* Nokta */
.feed-dot {
    width: 14px;
    height: 14px;
    background: #e2e8f0;
    border: 3px solid #fff;
    border-radius: 50%;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 0 0 2px #f1f5f9;
    margin-top: 4px;
}

/* İlk kayıt (En yeni) renkli olsun */
.feed-item:first-child .feed-dot {
    background: #2563eb;
    box-shadow: 0 0 0 3px #eff6ff;
}

.feed-content {
    flex: 1;
}

.feed-date {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 2px;
    display: block;
}

.feed-msg {
    font-size: 13px;
    color: #334155;
    line-height: 1.4;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    display: inline-block;
}

/* Mobil Uyum */
@media (max-width: 768px) {
    .feed-msg { display: block; width: 100%; }
}

/* ============================================================
   BÖLÜM 18: MODERN FATURA / SİPARİŞ DETAY MODALI (v17.0)
   ============================================================ */

/* Modal İçerik Kapsayıcısı */
.invoice-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
}

/* 1. Başlık Alanı (Gri/Mavi Arkaplanlı) */
.invoice-head {
    background: #F8FAFC;
    padding: 25px 30px;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.invoice-brand h3 {
    margin: 0;
    font-size: 20px;
    color: #0F172A;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.invoice-meta-badges {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.meta-date {
    font-size: 12px;
    color: #64748B;
    background: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* 2. Bilgi Grid'i (Müşteri vs.) */
.invoice-info-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    padding: 25px 30px;
}

.info-group label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #94A3B8;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.info-group p {
    margin: 0;
    font-size: 15px;
    color: #334155;
    font-weight: 500;
    line-height: 1.4;
}

.info-highlight {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0F172A !important;
}

/* 3. Tablo Alanı */
.invoice-body {
    padding: 0 30px 20px 30px;
}

.invoice-table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
}

.invoice-table-modern th {
    background: #fff;
    color: #64748B;
    font-size: 11px;
    text-transform: uppercase;
    padding: 10px 0;
    border-bottom: 2px solid #E2E8F0;
    font-weight: 700;
}

.invoice-table-modern td {
    padding: 12px 0;
    border-bottom: 1px dashed #E2E8F0;
    font-size: 13px;
    color: #334155;
    vertical-align: middle;
}

.invoice-table-modern tr:last-child td {
    border-bottom: none;
}

/* İade Satırı Özel Stil */
.row-return td {
    color: #DC2626 !important;
    font-weight: 500;
}
.row-return .cell-code {
    background: #FEF2F2;
    color: #DC2626;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

/* 4. Alt Özet ve Butonlar */
.invoice-footer-section {
    background: #F8FAFC;
    padding: 20px 30px;
    border-top: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.invoice-actions-left {
    display: flex;
    gap: 10px;
}

.invoice-summary-right {
    width: 280px;
    text-align: right;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #64748B;
    margin-bottom: 8px;
}

.summary-line.grand-total {
    font-size: 18px;
    font-weight: 800;
    color: #0F172A;
    border-top: 1px solid #CBD5E1;
    padding-top: 10px;
    margin-top: 10px;
    margin-bottom: 0;
}

/* Küçük ekran düzenlemesi */
@media (max-width: 600px) {
    .invoice-footer-section { flex-direction: column; gap: 20px; }
    .invoice-summary-right { width: 100%; }
    .invoice-info-row { grid-template-columns: 1fr; gap: 15px; }
}
/* ============================================================
   BÖLÜM 20: NET OKUNABİLİR KART TASARIMI (v56.0)
   ============================================================ */

/* 1. ARKA PLAN VE GENEL YAPI */
.portal-body {
    /* Koyu degrade arka plan (Koruyoruz) */
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%) !important;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    padding-bottom: 60px;
    color: #334155;
}

.portal-container {
    max-width: 550px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. BEYAZ "PENCERE" KARTLAR (EN ÖNEMLİ KISIM) */
.search-card, .content-card, .faq-section {
    background-color: #FFFFFF !important; /* Bembeyaz Zemin */
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3); /* Derinlik Gölgesi */
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid #E2E8F0;
    position: relative;
    overflow: hidden;
}

/* Kart Başlıkları */
.search-card h1, .content-card h3, .faq-section h2 {
    color: #0F172A !important; /* Koyu Lacivert Başlık */
    font-weight: 800;
    margin-top: 0;
    text-align: center;
}

.search-card p, .tl-content p {
    color: #64748B !important; /* Okunabilir Gri Metin */
}

/* 3. SSS (SIKÇA SORULAN SORULAR) ÖZEL TASARIMI */
.faq-section {
    margin-top: 0; /* Ayrı bir kart gibi dursun */
}

.faq-section h2 {
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 2px solid #F1F5F9;
    padding-bottom: 15px;
}

.faq-item {
    border-bottom: 1px solid #F1F5F9;
    margin-bottom: 0;
    background: transparent;
    border-radius: 0;
    transition: background 0.3s;
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
    padding: 15px 10px;
    font-weight: 600;
    color: #334155; /* Koyu Gri Soru */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-q:hover { color: #2563EB; } /* Mouse gelince mavi olsun */

.faq-a {
    padding: 0 10px 15px 10px;
    font-size: 14px;
    color: #475569; /* Cevap Rengi */
    line-height: 1.6;
    display: none; /* Gizli */
}

/* Açıkken */
.faq-item.open .faq-a { display: block; animation: slideDown 0.3s ease; }
.faq-item.open .faq-q { color: #2563EB; font-weight: 700; }
.faq-item.open { background-color: #F8FAFC; }

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

/* 4. TIMELINE (YATAY ZAMAN ÇİZELGESİ) */
.timeline-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 30px;
}

/* Çizgi */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 20px; left: 30px; right: 30px;
    height: 3px;
    background: #E2E8F0;
    z-index: 0;
}

.tl-item {
    position: relative;
    z-index: 1;
    width: 25%;
    text-align: center;
    opacity: 0.4; /* Pasif */
    filter: grayscale(100%);
    transition: all 0.4s;
}

.tl-item.active {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.tl-icon {
    width: 40px; height: 40px;
    background: #fff;
    border: 3px solid #E2E8F0;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
    color: #94A3B8;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.tl-item.active .tl-icon {
    border-color: #2563EB;
    background: #2563EB;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.tl-content h4 { font-size: 12px; margin: 0; color: #1E293B; font-weight: 700; }
.tl-content p { font-size: 10px; margin: 2px 0 0; color: #64748B; }

/* 5. MOBİL UYUMLULUK */
@media (max-width: 480px) {
    .portal-container { padding: 0 15px; }
    .search-card, .content-card, .faq-section { padding: 20px; }
}
/* ============================================================
   BÖLÜM 21: PORTAL GÖNDERİM REHBERİ TASARIMI
   ============================================================ */

/* Form Düzeni Güncellemesi */
.form-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Yarı yarıya böl */
    gap: 30px;
    align-items: start;
}

@media (max-width: 900px) {
    .form-layout-grid { grid-template-columns: 1fr; }
}

/* Rehber Kartı */
.shipping-guide-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
}

.shipping-guide-card h5 {
    margin: 0 0 15px 0;
    font-size: 15px;
    color: #1E293B;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E2E8F0;
}

.shipping-guide-card h5 i { color: #3B82F6; }

/* Liste Öğeleri */
.guide-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guide-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.gi-icon {
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #CBD5E1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #64748B;
    flex-shrink: 0;
}

.gi-text strong {
    display: block;
    font-size: 13px;
    color: #334155;
    margin-bottom: 2px;
}

.gi-text p {
    margin: 0;
    font-size: 12px;
    color: #64748B;
    line-height: 1.4;
}

/* Uyarı Tipi (Sarı/Turuncu) */
.guide-item.warning .gi-icon {
    background: #FFF7ED;
    border-color: #FED7AA;
    color: #EA580C;
}

.guide-item.warning .gi-text strong { color: #C2410C; }
/* ============================================================
   BÖLÜM 22: MOBİL UYUMLULUK (PORTAL - v17.17)
   ============================================================ */

/* TABLET VE ALT (1100px altı) */
@media (max-width: 1100px) {
    .hero-split {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        align-items: center;
    }

    .hero-split.has-results {
        align-items: stretch;
    }

    /* Sol Taraf (Arama) */
    .hero-left {
        width: 100%;
        border-right: none;
        padding: 40px 20px;
        min-height: auto;
        border-bottom: 0;
    }

    .hero-split.has-results .hero-left {
        display: none;
    }

    /* Sağ Taraf (Sonuçlar) */
    .hero-right {
        width: 100%;
        padding: 0;
        background: #f8fafc;
        display: none; /* Varsayılan gizli */
    }

    /* Eğer sonuç alanı görünürse sağ tarafı aç */
    .hero-split.has-results .hero-right,
    .hero-right:has(.portal-dash-container:not(.hidden)) {
        display: block;
        min-height: 100vh;
    }

    .hero-image-container {
        display: none; /* Mobilde arka plan resmini gizle */
    }

    .portal-dash-container {
        padding: 20px;
    }
}

/* MOBİL VE KÜÇÜK EKRANLAR (768px altı) */
@media (max-width: 768px) {
    /* Navbar */
    .nav-container {
        padding: 0 20px;
    }
    .nav-links {
        display: none; /* Menüyü mobilde sadeleştir */
    }
    .portal-nav {
        padding: 10px 0;
    }
    .logo {
        font-size: 20px;
    }

    /* Başlık Kartı (Müşteri & Tutar) */
    .dash-header-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
    }

    .dh-left {
        width: 100%;
        border-bottom: 1px dashed #e2e8f0;
        padding-bottom: 15px;
        margin-bottom: 0;
    }

    .dh-right {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .dh-right h3 {
        font-size: 15px;
    }

    /* Form ve Rehber Izgarası */
    .form-layout-grid {
        grid-template-columns: 1fr; /* Tek kolon */
        gap: 30px;
    }
    
    /* Inputlar */
    .input-floating input {
        font-size: 14px;
    }
    
    /* Timeline (Yatay Süreç) */
    .timeline-horizontal-colorful {
        overflow-x: auto; /* Taşan kısmı kaydır */
        padding-bottom: 20px;
        justify-content: flex-start;
        gap: 20px;
    }
    .tm-step {
        min-width: 90px; /* Her adımın minimum genişliği */
    }
    
    /* Alt Bilgi Çubuğu */
    .info-bar-container {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        padding: 0 20px;
    }
    
    /* Modallar */
    .modal-content {
        width: 95% !important;
        margin: 10px;
        padding: 20px !important;
    }
    
    /* Yeni Gönderim Rehberi */
    .shipping-guide-card {
        margin-top: 10px;
        background: #fff;
    }
    
    .guide-item {
        font-size: 12px;
    }
}
/* style.css - EN ALTA EKLE */

/* Desi Çoklu Paket Satırları */
.desi-row {
    display: grid; 
    /* GÜNCELLENDİ: Adet (60px) + En + Boy + Yükseklik + Sil Butonu (40px) */
    grid-template-columns: 60px 1fr 1fr 1fr 40px; 
    gap: 8px; 
    margin-bottom: 8px;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.desi-row input {
    margin: 0 !important;
    padding: 8px !important;
    text-align: center;
    font-size: 13px;
    height: 40px; /* Yüksekliği biraz artırıp modernleştirdik */
    min-height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
}

.desi-row input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Modern Silme Butonu */
.btn-remove-row {
    background: #fff; /* Varsayılan beyaz */
    color: #94a3b8;   /* Pasif gri ikon */
    border: 1px solid #e2e8f0; /* Inputlarla aynı çerçeve */
    border-radius: 8px;
    width: 40px;      /* Input yüksekliğiyle aynı */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-remove-row:hover {
    background: #fee2e2; /* Hover: Açık Kırmızı Zemin */
    color: #ef4444;      /* Hover: Kırmızı İkon */
    border-color: #fca5a5;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.1);
}

.btn-remove-row:active {
    transform: translateY(0);
}

.desi-btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.desi-preset-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-weight: 600;
    height: 38px;
    padding: 0 8px;
    white-space: nowrap;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.desi-preset-btn:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

/* ============================================================
   v34.1 - DİNAMİK TALEP MODALI TASARIMI
   ============================================================ */

/* Modal Başlık ve Bilgi Alanı */
.modal-info-header {
    background: #F1F5F9;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.modal-info-group label {
    font-size: 11px;
    text-transform: uppercase;
    color: #64748B;
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
}

.modal-info-group input {
    background: #fff;
    border: 1px solid #CBD5E1;
    font-weight: 600;
    color: #334155;
    height: 38px;
    min-height: 38px;
    margin: 0;
}

/* --- ANA GRID YAPISI (GÜNCELLENDİ) --- */
.modal-split-layout {
    display: grid;
    grid-template-columns: 300px 1fr; /* Varsayılan: Sol Dar, Sağ Geniş */
    gap: 25px;
    align-items: start;
    transition: all 0.3s ease; /* Yumuşak geçiş */
}

/* YENİ: Tek Kolon Modu (Sağ taraf gizliyken devreye girer) */
.modal-split-layout.single-mode {
    grid-template-columns: 1fr; /* Tam genişlik */
}

/* Sol Panel Stili */
.modal-left-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Tek kolon modunda sol panelin iç yapısını güzelleştir */
.modal-split-layout.single-mode .modal-left-panel {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dropdownları yan yana al */
    gap: 20px;
}

/* Tek kolon modunda açıklama alanı (textarea) tüm satırı kaplasın */
.modal-split-layout.single-mode .modal-left-panel .full-width-item {
    grid-column: span 2;
}

/* Sağ Panel Alanları (Kartlar) */
.action-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    animation: fadeIn 0.3s ease;
}

.action-card-header {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #E2E8F0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.action-card-header i { color: #3B82F6; }

/* Ürün Seçim Listesi */
.product-select-list {
    max-height: 250px;
    overflow-y: auto;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 5px;
}

/* Sevk Fişi Tablosu */
.dispatch-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
}
.dispatch-table th { background: #F1F5F9; padding: 5px; text-align: left; color: #64748B; }
.dispatch-table td { border-bottom: 1px solid #E2E8F0; padding: 5px; color: #334155; }

/* Mobilde Tek Kolona Düşür */
@media (max-width: 800px) {
    .modal-info-header { grid-template-columns: 1fr; }
    .modal-split-layout { grid-template-columns: 1fr !important; }
    .modal-split-layout.single-mode .modal-left-panel { grid-template-columns: 1fr; }
    .modal-split-layout.single-mode .modal-left-panel .full-width-item { grid-column: span 1; }
}
.form-dual-row {
    display: grid;
    /* GÜNCELLENDİ: 1fr 1fr yerine 1.5fr 1fr yaptık. 
       Butonlar daha geniş, select kutusu daha dar ama sıkışık değil. */
    grid-template-columns: 1.5fr 1fr; 
    gap: 20px;
    align-items: start; 
    margin-bottom: 15px;
}
/* Buton Grubu Kutusu */
.type-segment-container {
    display: flex;
    background: #F1F5F9;
    padding: 5px;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    gap: 5px;
    height: 50px;
    align-items: center;
    box-sizing: border-box;
    width: 100%; /* Tam genişlik */
}

/* Tekil Buton Stili */
.type-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 5px; /* Padding azaltıldı, sığması için */
    height: 38px;
    border-radius: 8px;
    color: #64748B;
    font-weight: 600;
    font-size: 13px; /* Mobilde taşmasın diye 14px'den 13px'e çektim */
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap; /* Yazı alt satıra inmesin */
}

.type-btn:hover { background: rgba(255,255,255,0.6); color: #334155; }

.type-btn.active {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transform: scale(1.02);
}

/* Türlere Göre Aktif Renkler */
.type-btn[data-val="iade"].active { color: #3B82F6; } /* Mavi */
.type-btn[data-val="degisim"].active { color: #F59E0B; } /* Turuncu */
.type-btn[data-val="iptal"].active { color: #EF4444; } /* Kırmızı */

/* Talep Modalındaki Select Kutusunu da Eşitle */
#modalReturnStatus {
    height: 50px !important; 
    min-height: 50px !important;
    font-size: 14px;
    width: 100%; /* Kapsayıcıyı doldur */
}

.type-btn i { font-size: 15px; }

/* ============================================================
   BÖLÜM 23: MODERN SAYFALAMA (PAGINATION) - v16.4
   ============================================================ */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px; /* Butonlar arası boşluk */
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #E2E8F0; /* Üstüne ince bir çizgi */
}

.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #E2E8F0;
    background: #ffffff;
    color: #64748B; /* Pasif yazı rengi */
    border-radius: 8px; /* Modern yuvarlak köşeler */
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05); /* Hafif gölge */
}

/* Mouse ile üzerine gelince */
.page-btn:hover:not(:disabled):not(.active) {
    border-color: #BFDBFE;
    color: #2563EB;
    background: #EFF6FF;
    transform: translateY(-2px); /* Hafif yukarı kalkma efekti */
}

/* Aktif Sayfa (Seçili Olan) */
.page-btn.active {
    background: #3B82F6; /* Alfais Mavisi */
    color: #ffffff;
    border-color: #3B82F6;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.4); /* Mavi parlama efekti */
    cursor: default;
    pointer-events: none; /* Tıklanmasın */
}

/* Pasif Butonlar (İlk sayfadayken Geri butonu vb.) */
.page-btn:disabled {
    background: #F1F5F9;
    color: #CBD5E1;
    border-color: #F1F5F9;
    cursor: not-allowed;
    box-shadow: none;
}

/* ... (Noktalar) için stil */
.pagination-container span {
    color: #94A3B8;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 0 5px;
}
 /* ============================================================
   BÖLÜM 24 GÜNCELLEME (v16.12) - GLOBAL FLOATING TABLE
   ============================================================ */

/* 1. Tablo Taşıyıcı (Wrapper) Temizliği */
/* Tablonun bulunduğu kutunun çizgilerini ve arka planını kaldırır */
.table-responsive.clean-mode {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important; /* Gölgelerin kesilmemesi için */
}

/* 2. Floating Table Genel Yapısı */
.modern-floating-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px; /* Kartlar arası boşluk */
    margin-top: -10px;
}

/* Başlıklar */
.modern-floating-table thead th {
    background: transparent;
    border: none;
    font-size: 11px;
    font-weight: 800;
    color: #94A3B8;
    padding: 10px 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left; /* Varsayılan sola yaslı */
}

/* Satır Kartları */
.modern-floating-table tbody tr {
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(148, 163, 184, 0.08); /* Hafif gölge */
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 12px;
}

.modern-floating-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(148, 163, 184, 0.15);
    position: relative;
    z-index: 10;
}

/* Hücreler */
.modern-floating-table tbody td {
    border: none;
    padding: 18px 20px;
    vertical-align: middle;
    color: #334155;
    font-size: 14px;
    background: #ffffff; /* Satır rengini hücreye ver */
}

/* Yuvarlak Köşeler (Satırın başı ve sonu) */
.modern-floating-table tbody td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}
.modern-floating-table tbody td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Tablo İçi Rozet (Badge) Düzeltmeleri */
.modern-floating-table .badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Küçük butonlar için ayar */
.modern-floating-table .btn-sm {
    border-radius: 8px;
    padding: 6px 12px;
}
/* ============================================================
   BÖLÜM 26: DESİ TABLOSU İÇERİK STİLLERİ (v16.16)
   ============================================================ */

/* Tarih Kutusu */
.ft-date-box {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.ft-day { font-weight: 700; color: #0F172A; font-size: 13px; }
.ft-time { font-size: 11px; color: #94A3B8; }

/* Müşteri Alanı */
.ft-customer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #334155;
}
.ft-customer-icon {
    width: 32px; height: 32px;
    background: #F1F5F9; color: #64748B;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}

/* Değer Kutuları (Bizim/Kargo Desi) */
.ft-val-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.ft-val-label { 
    font-size: 9px; 
    color: #94A3B8; 
    text-transform: uppercase; 
    font-weight: 700; 
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.ft-val-num { 
    font-weight: 800; 
    font-size: 16px; 
    letter-spacing: -0.5px;
}

/* Fark Rozetleri */
.ft-diff-badge {
    padding: 6px 12px; 
    border-radius: 8px; 
    font-weight: 700; 
    font-size: 13px;
    display: inline-block; 
    min-width: 70px; 
    text-align: center;
}
.diff-pos { background: #FEF2F2; color: #EF4444; border: 1px solid #FECACA; } /* Kırmızı (Fark var) */
.diff-neg { background: #ECFDF5; color: #10B981; border: 1px solid #A7F3D0; } /* Yeşil (Biz daha az ölçmüşüz) */
.diff-zero { background: #F8FAFC; color: #94A3B8; border: 1px solid #E2E8F0; } /* Gri (Eşit) */

/* Ölçü Badge */
.ft-dims-badge {
    background: #F8FAFC;       /* Çok açık gri zemin */
    color: #475569;            /* Koyu gri yazı */
    border: 1px solid #E2E8F0; /* İnce gri çerçeve */
    border-radius: 20px; 
    padding: 5px 12px; 
    font-weight: 700; 
    font-size: 11px;           /* Fontu biraz kibarlaştırdık */
    letter-spacing: 0.3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
/* ============================================================
   BÖLÜM 27: TALEP TÜRÜ BADGE STİLLERİ (YENİ)
   ============================================================ */
.badge-type {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* İade: Kırmızı/Pembe */
.badge-type-iade {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

/* Değişim: Mavi */
.badge-type-degisim {
    background: #EFF6FF;
    color: #2563EB;
    border: 1px solid #BFDBFE;
}

/* İptal: Gri/Koyu */
.badge-type-iptal {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #CBD5E1;
}
/* ============================================================
   BRAND / LOGO STİLİ
   ============================================================ */
.brand {
    font-size: 24px;       /* Okunaklı boyut */
    font-weight: 800;      /* Extra Bold (Çok Kalın) */
    color: #ffffff;        /* evaletim kısmı BEYAZ */
    letter-spacing: -1px;  /* Harfleri sıkılaştır (Modern görünüm) */
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    cursor: default;       /* Üzerine gelince imleç değişmesin */
}

.brand span {
    color: #3B82F6;        /* .com kısmı MAVİ (Primary Rengi) */
    font-weight: 800;      /* O da kalın */
}

/* Opsiyonel: Hafif bir parlama efekti istersen bunu da ekle */
.brand:hover span {
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5); /* Mavi parlama */
    transition: all 0.3s ease;
}

/* v17.6.1 - Zarif Sipariş No Kopyalama Butonu */
.btn-copy-sm {
    background: transparent;
    border: none;
    color: #CBD5E1; /* Varsayılan: Çok açık gri, neredeyse görünmez */
    cursor: pointer;
    padding: 0;
    border-radius: 50%; /* Tam daire */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Yumuşak, modern geçiş */
    margin-left: 8px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;  /* Sabit boyut */
    height: 26px;
    opacity: 0.6; /* Biraz şeffaflık */
}

/* Sadece satırın üzerine gelindiğinde butonu belirginleştir */
tr:hover .btn-copy-sm {
    opacity: 1;
    color: #94A3B8; /* Daha belirgin gri */
}

/* Butonun üzerine gelindiğinde */
.btn-copy-sm:hover {
    color: #3B82F6; /* Ana Mavi */
    background-color: #EFF6FF; /* Çok hafif mavi arka plan */
    transform: translateY(-1px); /* Hafif yukarı kalkma efekti */
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1); /* Çok hafif mavi gölge */
}

/* Tıklama anı */
.btn-copy-sm:active {
    transform: translateY(0) scale(0.95); /* Tıklama hissi */
    background-color: #DBEAFE;
}

/* Başarı (Kopyalandı) durumu */
.btn-copy-sm.copied {
    color: #059669 !important; /* Koyu Yeşil */
    background-color: #D1FAE5 !important; /* Açık yeşil arka plan */
    box-shadow: none;
    transform: none;
    opacity: 1;
}
/* style.css içine en alta ekleyebilirsiniz */

.hover-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.hover-row:hover {
    background-color: #F8FAFC;
}

/* Modal içindeki basit tablo için */
.simple-table {
    width: 100%;
    border-collapse: collapse;
}
.simple-table th, .simple-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.simple-table th {
    font-size: 12px;
    color: #64748B;
    background: #fff;
}
/* --- MODERN PAGINATION TASARIMI --- */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    border-top: 1px solid #f1f5f9;
    background: #fff;
    border-radius: 0 0 12px 12px; /* Tablonun altına yapışık dursun */
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.pagination-btn:hover:not(:disabled) {
    border-color: #bfdbfe;
    color: #2563eb;
    background: #eff6ff;
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #f1f5f9;
    box-shadow: none;
}

.pagination-info {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* ============================================================
   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: 36px !important;
    min-height: 36px !important;
}

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);
}

/* ============================================================
   ADMIN AYDINLIK TEMA (SOFT SLATE LIGHT MODE)
   Varsayilan gece temasini bozmadan, yumusak grimsi aydinlik mod.
   ============================================================ */

/* 1. Temel Sayfa ve Arka Plan */
html.admin-light-theme,
html.admin-light-theme body:not(.portal-body),
body.admin-light-theme:not(.portal-body) {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    transition: background 0.25s ease, color 0.25s ease;
}

html.admin-light-theme body:not(.portal-body)::before,
body.admin-light-theme:not(.portal-body)::before {
    display: none !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel.dashboard-container {
    background: #f1f5f9 !important;
}

/* Aydınlık tema metin hiyerarşisi — koyu tema kurallarının yerine geçer.
   Bileşenlerin kendi renk kuralları (bu blokta daha aşağıda) bunları ezer. */
body.admin-light-theme:not(.portal-body) #mainPanel strong {
    color: #0f172a;
}
body.admin-light-theme:not(.portal-body) #mainPanel p {
    color: #334155;
}
body.admin-light-theme:not(.portal-body) #mainPanel small,
body.admin-light-theme:not(.portal-body) #mainPanel label {
    color: #64748b;
}

/* 2. Ust Komuta Bari (Header / Sidebar) */
body.admin-light-theme:not(.portal-body) #mainPanel .sidebar {
    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.04) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #1e293b !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .sidebar .brand,
body.admin-light-theme:not(.portal-body) #mainPanel .brand {
    color: #0f172a !important;
    text-shadow: none !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .brand span {
    color: #2563eb !important;
    text-shadow: none !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .user-info {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

/* 3. Menü Butonları */
body.admin-light-theme:not(.portal-body) #mainPanel .nav-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.2s ease;
}

body.admin-light-theme:not(.portal-body) #mainPanel .nav-btn i {
    color: #2563eb !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .nav-btn:hover {
    border-color: #94a3b8 !important;
    background: #f1f5f9 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .nav-btn.active {
    background: #2563eb !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28) !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .nav-btn.active i {
    color: #ffffff !important;
}

/* 4. Tema Değiştirme Butonu */
body:not(.portal-body) #mainPanel .nav-btn.theme-toggle {
    border-color: rgba(251, 191, 36, 0.4) !important;
    background: rgba(245, 158, 11, 0.14) !important;
    color: #fbbf24 !important;
}

body:not(.portal-body) #mainPanel .nav-btn.theme-toggle i {
    color: #fbbf24 !important;
}

body:not(.portal-body) #mainPanel .nav-btn.theme-toggle:hover {
    background: rgba(245, 158, 11, 0.25) !important;
    border-color: #f59e0b !important;
    color: #fde68a !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .nav-btn.theme-toggle {
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
    color: #475569 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .nav-btn.theme-toggle i {
    color: #6366f1 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .nav-btn.theme-toggle:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #1e293b !important;
}

/* 5. Çıkış Butonu */
body.admin-light-theme:not(.portal-body) #mainPanel .nav-btn.logout {
    border-color: #fca5a5 !important;
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .nav-btn.logout i {
    color: #dc2626 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .nav-btn.logout:hover {
    background: #fee2e2 !important;
    border-color: #f87171 !important;
    color: #b91c1c !important;
}

/* 6. İçerik Alanı & Başlıklar */
body.admin-light-theme:not(.portal-body) #mainPanel .content {
    background: transparent !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel h1,
body.admin-light-theme:not(.portal-body) #mainPanel h2,
body.admin-light-theme:not(.portal-body) #mainPanel h3,
body.admin-light-theme:not(.portal-body) #mainPanel h4 {
    color: #0f172a !important;
    text-shadow: none !important;
}

/* 7. Kartlar & Paneller */
body.admin-light-theme:not(.portal-body) #mainPanel .card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02) !important;
    color: #1e293b !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .card > div[style*="background:#f8fafc"],
body.admin-light-theme:not(.portal-body) #mainPanel [style*="background:#f8fafc"],
body.admin-light-theme:not(.portal-body) #mainPanel [style*="background: #f8fafc"] {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    box-shadow: none !important;
}

/* 8. Özet İstatistik Kartları (Dashboard) */
body.admin-light-theme:not(.portal-body) #mainPanel .stat-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    color: #1e293b !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .stat-info h3 {
    color: #64748b !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .stat-info p {
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .stat-card.orange .stat-icon {
    background: #fff7ed !important;
    color: #ea580c !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .stat-card.blue .stat-icon {
    background: #eff6ff !important;
    color: #2563eb !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .stat-card.purple .stat-icon {
    background: #f3e8ff !important;
    color: #9333ea !important;
}

/* Dashboard refund cards had a more specific dark-mode cyan icon treatment. */
body.admin-light-theme:not(.portal-body) #mainPanel #page-dashboard .dashboard-refund-card .stat-icon {
    background: #eff6ff !important;
    color: #2563eb !important;
    box-shadow: none !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel #page-dashboard #cardPaymentPending .stat-icon {
    background: #fff7ed !important;
    color: #c2410c !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel #page-dashboard #cardReturnPending .stat-icon {
    background: #eff6ff !important;
    color: #2563eb !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel #page-dashboard #cardExchangePending .stat-icon {
    background: #f3e8ff !important;
    color: #7c3aed !important;
}

/* 9. Tablolar & Modern Floating Tables (Aydınlık Mod) */

/* Standart Tablo Kapsayıcıları */
body.admin-light-theme:not(.portal-body) #mainPanel .table-responsive,
body.admin-light-theme:not(.portal-body) #mainPanel .table-container {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    border-radius: 12px !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel table {
    background: #ffffff !important;
    color: #0f172a !important;
}

/* Sütun Başlıkları - Yüksek Kontrastlı Koyu Slate */
body.admin-light-theme:not(.portal-body) #mainPanel th,
body.admin-light-theme:not(.portal-body) #mainPanel .modern-floating-table thead th,
body.admin-light-theme:not(.portal-body) #mainPanel .simple-table th,
body.admin-light-theme:not(.portal-body) #mainPanel .ws-table th,
body.admin-light-theme:not(.portal-body) #mainPanel .picking-table th {
    background: #f8fafc !important;
    color: #1e293b !important;
    border-bottom: 2px solid #cbd5e1 !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    padding: 11px 16px !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel td,
body.admin-light-theme:not(.portal-body) #mainPanel .simple-table td,
body.admin-light-theme:not(.portal-body) #mainPanel .ws-table td {
    background: #ffffff !important;
    color: #0f172a !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 13px !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel tr:hover td {
    background: #f8fafc !important;
    color: #0f172a !important;
}

/* --- MODERN FLOATING TABLES (İade, Depo, Toptan, Desi vb.) --- */
body.admin-light-theme:not(.portal-body) #mainPanel .modern-floating-table {
    border-spacing: 0 8px !important;
    background: transparent !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .modern-floating-table thead th {
    background: transparent !important;
    border: none !important;
    color: #1e293b !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    padding: 10px 18px !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .modern-floating-table tbody tr {
    background: transparent !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .modern-floating-table tbody tr:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .modern-floating-table tbody td {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-left: none !important;
    border-right: none !important;
    color: #0f172a !important;
    font-size: 13px !important;
    padding: 13px 18px !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .modern-floating-table tbody td:first-child {
    border-left: 1px solid #e2e8f0 !important;
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .modern-floating-table tbody td:last-child {
    border-right: 1px solid #e2e8f0 !important;
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .modern-floating-table tbody tr:hover td {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .modern-floating-table tbody tr:hover td[data-label="Ürün İsmi"] {
    color: #1e293b !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .modern-floating-table tbody tr:hover td[data-label="Tarih"] {
    color: #64748b !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .modern-floating-table tbody tr:hover td[data-label="Fiyat"] b {
    color: #0f172a !important;
}

/* Tablo İçi Metin ve Vurgular */
body.admin-light-theme:not(.portal-body) #mainPanel .modern-floating-table strong,
body.admin-light-theme:not(.portal-body) #mainPanel table strong,
body.admin-light-theme:not(.portal-body) #mainPanel table b,
body.admin-light-theme:not(.portal-body) #mainPanel tr:hover strong,
body.admin-light-theme:not(.portal-body) #mainPanel tr:hover b {
    color: #0f172a !important;
    font-weight: 800 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .modern-floating-table small,
body.admin-light-theme:not(.portal-body) #mainPanel table small,
body.admin-light-theme:not(.portal-body) #mainPanel tr:hover small {
    color: #475569 !important;
    font-weight: 500 !important;
}

/* 10. Sayfalama & Alt Kısımlar (Pagination & Bottom Rows) */
body.admin-light-theme:not(.portal-body) #mainPanel .pagination-container {
    background: transparent !important;
    border: none !important;
    margin-top: 18px !important;
    display: flex !important;
    gap: 6px !important;
    justify-content: center !important;
    align-items: center !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .pagination-btn,
body.admin-light-theme:not(.portal-body) #mainPanel .page-btn {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    min-width: 38px !important;
    height: 38px !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.18s ease !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 10px !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .page-btn:hover:not(:disabled):not(.active),
body.admin-light-theme:not(.portal-body) #mainPanel .pagination-btn:hover:not(:disabled):not(.active) {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .page-btn.active,
body.admin-light-theme:not(.portal-body) #mainPanel .pagination-info {
    background: #2563eb !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .page-btn:disabled,
body.admin-light-theme:not(.portal-body) #mainPanel .pagination-btn:disabled {
    opacity: 0.45 !important;
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .pagination-container span {
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

/* 11. Rozetler & Data Badgeler (Tüm Tablolar) */

/* Temel Data Badge (Gri Hap) */
body.admin-light-theme:not(.portal-body) #mainPanel .data-badge,
body.admin-light-theme:not(.portal-body) #inventoryTableBody .data-badge,
body.admin-light-theme:not(.portal-body) #xmlTableBody .data-badge,
body.admin-light-theme:not(.portal-body) #returnsTableBody .data-badge,
body.admin-light-theme:not(.portal-body) #siparislerTableBody .data-badge {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    border-radius: 999px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    box-shadow: none !important;
    display: inline-block !important;
}

/* Barkod Rozeti (Monospace, Açık Nötr) */
body.admin-light-theme:not(.portal-body) #inventoryTableBody td[data-label="Barkod"] .data-badge,
body.admin-light-theme:not(.portal-body) #xmlTableBody td[data-label="Barkod"] .data-badge,
body.admin-light-theme:not(.portal-body) #inventoryTableBody td:nth-child(2) .data-badge,
body.admin-light-theme:not(.portal-body) #xmlTableBody td:nth-child(2) .data-badge {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
}

/* Stok Kodu (SKU) Rozeti (Mavi Vurgulu) */
body.admin-light-theme:not(.portal-body) #inventoryTableBody td[data-label="Stok Kodu"] .data-badge,
body.admin-light-theme:not(.portal-body) #xmlTableBody td[data-label="Stok Kodu"] .data-badge,
body.admin-light-theme:not(.portal-body) #inventoryTableBody td:nth-child(3) .data-badge,
body.admin-light-theme:not(.portal-body) #xmlTableBody td:nth-child(3) .data-badge,
body.admin-light-theme:not(.portal-body) #mainPanel .data-badge[style*="font-weight:bold"],
body.admin-light-theme:not(.portal-body) #mainPanel .data-badge[style*="font-weight: bold"] {
    background: #e0f2fe !important;
    border: 1px solid #bae6fd !important;
    color: #0369a1 !important;
    font-weight: 800 !important;
    font-size: 12px !important;
}

/* SKU Altındaki Ürün Adı Metni */
body.admin-light-theme:not(.portal-body) #inventoryTableBody td[data-label="Stok Kodu"] small,
body.admin-light-theme:not(.portal-body) #inventoryTableBody td:nth-child(3) small {
    display: inline-block !important;
    margin-top: 4px !important;
    color: #334155 !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

/* Depo Konumu Rozeti (Sarı / Kehribar Hap) */
body.admin-light-theme:not(.portal-body) #inventoryTableBody td[data-label="Konum"] .data-badge,
body.admin-light-theme:not(.portal-body) #inventoryTableBody td:nth-child(4) .data-badge,
body.admin-light-theme:not(.portal-body) #mainPanel .data-badge[style*="#fff3cd"],
body.admin-light-theme:not(.portal-body) #mainPanel .data-badge[style*="#856404"] {
    background: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
    font-weight: 800 !important;
    font-size: 12px !important;
}

body.admin-light-theme:not(.portal-body) #inventoryTableBody td[data-label="Konum"] span[style*="color:#e74c3c"] {
    color: #dc2626 !important;
    font-weight: 700 !important;
    font-size: 11.5px !important;
}

/* Durum Rozeti "Var" / Stok Pozitif (Yeşil Hap) */
body.admin-light-theme:not(.portal-body) #inventoryTableBody td[data-label="Durum"] .badge[style*="green"],
body.admin-light-theme:not(.portal-body) #inventoryTableBody td[data-label="Durum"] .badge[style*="#e8f5e9"],
body.admin-light-theme:not(.portal-body) #xmlTableBody td[data-label="Stok"] .badge[style*="green"],
body.admin-light-theme:not(.portal-body) #xmlTableBody td[data-label="Stok"] .badge[style*="#e8f5e9"],
body.admin-light-theme:not(.portal-body) #mainPanel span.badge[style*="background:#e8f5e9"],
body.admin-light-theme:not(.portal-body) #mainPanel span.badge[style*="background: #e8f5e9"],
body.admin-light-theme:not(.portal-body) #mainPanel span.badge[style*="color:green"],
body.admin-light-theme:not(.portal-body) #mainPanel span.badge[style*="color: green"],
body.admin-light-theme:not(.portal-body) #mainPanel table span[style*="color:green"],
body.admin-light-theme:not(.portal-body) #mainPanel table span[style*="color: green"] {
    background: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #86efac !important;
    font-weight: 800 !important;
    border-radius: 999px !important;
    padding: 4px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
}

/* Durum Rozeti "Yok" / Stok Bitti (Kırmızı Hap) */
body.admin-light-theme:not(.portal-body) #inventoryTableBody td[data-label="Durum"] .badge[style*="red"],
body.admin-light-theme:not(.portal-body) #inventoryTableBody td[data-label="Durum"] .badge[style*="#ffebee"],
body.admin-light-theme:not(.portal-body) #xmlTableBody td[data-label="Stok"] .badge[style*="red"],
body.admin-light-theme:not(.portal-body) #xmlTableBody td[data-label="Stok"] .badge[style*="#ffebee"],
body.admin-light-theme:not(.portal-body) #mainPanel span.badge[style*="background:#ffebee"],
body.admin-light-theme:not(.portal-body) #mainPanel span.badge[style*="background: #ffebee"],
body.admin-light-theme:not(.portal-body) #mainPanel span.badge[style*="color:red"],
body.admin-light-theme:not(.portal-body) #mainPanel span.badge[style*="color: red"],
body.admin-light-theme:not(.portal-body) #mainPanel table span[style*="color:red"],
body.admin-light-theme:not(.portal-body) #mainPanel table span[style*="color: red"],
body.admin-light-theme:not(.portal-body) #mainPanel table span[style*="color:#DC2626"],
body.admin-light-theme:not(.portal-body) #mainPanel table span[style*="color: #DC2626"] {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #fca5a5 !important;
    font-weight: 800 !important;
    border-radius: 999px !important;
    padding: 4px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
}

/* Toptan Sipariş Rozetleri */
body.admin-light-theme:not(.portal-body) #mainPanel span.badge[style*="#fff3cd"],
body.admin-light-theme:not(.portal-body) #mainPanel span.badge[style*="#856404"] {
    background: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
    font-weight: 800 !important;
    border-radius: 999px !important;
    padding: 4px 12px !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel span.badge[style*="#d4edda"],
body.admin-light-theme:not(.portal-body) #mainPanel span.badge[style*="#155724"] {
    background: #dcfce7 !important;
    color: #14532d !important;
    border: 1px solid #86efac !important;
    font-weight: 800 !important;
    border-radius: 999px !important;
    padding: 4px 12px !important;
}

/* İade Yönetimi Status Rozetleri */
body.admin-light-theme:not(.portal-body) #returnsTableBody .status-badge,
body.admin-light-theme:not(.portal-body) #mainPanel .status-badge {
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 5px 12px !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .status-badge[style*="#FFF7ED"],
body.admin-light-theme:not(.portal-body) #mainPanel .status-badge[style*="#fff7ed"],
body.admin-light-theme:not(.portal-body) #mainPanel .status-badge[style*="#EA580C"],
body.admin-light-theme:not(.portal-body) #mainPanel .status-badge[style*="#ea580c"],
body.admin-light-theme:not(.portal-body) #mainPanel .status-badge[style*="#FEF3C7"],
body.admin-light-theme:not(.portal-body) #mainPanel .status-badge[style*="#fef3c7"] {
    background: #fff7ed !important;
    color: #c2410c !important;
    border: 1px solid #fdba74 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .status-badge[style*="#EFF6FF"],
body.admin-light-theme:not(.portal-body) #mainPanel .status-badge[style*="#eff6ff"],
body.admin-light-theme:not(.portal-body) #mainPanel .status-badge[style*="#3B82F6"],
body.admin-light-theme:not(.portal-body) #mainPanel .status-badge[style*="#3b82f6"] {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .status-badge[style*="#DCFCE7"],
body.admin-light-theme:not(.portal-body) #mainPanel .status-badge[style*="#dcfce7"],
body.admin-light-theme:not(.portal-body) #mainPanel .status-badge[style*="#16A34A"],
body.admin-light-theme:not(.portal-body) #mainPanel .status-badge[style*="#16a34a"] {
    background: #dcfce7 !important;
    color: #14532d !important;
    border: 1px solid #86efac !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .status-badge[style*="#D1FAE5"],
body.admin-light-theme:not(.portal-body) #mainPanel .status-badge[style*="#d1fae5"],
body.admin-light-theme:not(.portal-body) #mainPanel .status-badge[style*="#059669"] {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .status-badge[style*="#CCFBF1"],
body.admin-light-theme:not(.portal-body) #mainPanel .status-badge[style*="#ccfbf1"],
body.admin-light-theme:not(.portal-body) #mainPanel .status-badge[style*="#0F766E"] {
    background: #f0fdfa !important;
    color: #0f766e !important;
    border: 1px solid #99f6e4 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .status-badge[style*="#FEF2F2"],
body.admin-light-theme:not(.portal-body) #mainPanel .status-badge[style*="#fef2f2"],
body.admin-light-theme:not(.portal-body) #mainPanel .status-badge[style*="#DC2626"] {
    background: #fff1f2 !important;
    color: #be123c !important;
    border: 1px solid #fecdd3 !important;
}

/* Talep Türü Rozetleri (İade / Değişim / İptal) */
body.admin-light-theme:not(.portal-body) #mainPanel .badge-type,
body.admin-light-theme:not(.portal-body) #returnsTableBody .badge-type {
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 5px 10px !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .badge-type-iade,
body.admin-light-theme:not(.portal-body) #returnsTableBody .badge-type-iade {
    background: #fff1f2 !important;
    color: #be123c !important;
    border: 1px solid #fecdd3 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .badge-type-degisim,
body.admin-light-theme:not(.portal-body) #returnsTableBody .badge-type-degisim {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .badge-type-iptal,
body.admin-light-theme:not(.portal-body) #returnsTableBody .badge-type-iptal {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}

/* Desi Tablosu Rozetleri */
body.admin-light-theme:not(.portal-body) #desiTableBody .ft-day,
body.admin-light-theme:not(.portal-body) #desiTableBody .ft-val-num {
    color: #0f172a !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #desiTableBody .ft-time,
body.admin-light-theme:not(.portal-body) #desiTableBody .ft-val-label {
    color: #64748b !important;
}

body.admin-light-theme:not(.portal-body) #desiTableBody .ft-customer {
    color: #1e293b !important;
    font-weight: 600 !important;
}

body.admin-light-theme:not(.portal-body) #desiTableBody .ft-customer-icon {
    background: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid #bfdbfe !important;
}

body.admin-light-theme:not(.portal-body) #desiTableBody .ft-val-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body.admin-light-theme:not(.portal-body) #desiTableBody .ft-val-label {
    font-size: 10px !important;
    color: #64748b !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 2px !important;
}

body.admin-light-theme:not(.portal-body) #desiTableBody .ft-val-num {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.2px !important;
}

body.admin-light-theme:not(.portal-body) #desiTableBody .ft-dims-badge {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: none !important;
}

body.admin-light-theme:not(.portal-body) #desiTableBody .diff-pos {
    background: #fee2e2 !important;
    border: 1px solid #fca5a5 !important;
    color: #b91c1c !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #desiTableBody .diff-neg {
    background: #dcfce7 !important;
    border: 1px solid #86efac !important;
    color: #15803d !important;
    font-weight: 700 !important;
}

/* 12. Tablo İçi Aksiyon Butonları */

/* Detay / Birincil Butonlar */
body.admin-light-theme:not(.portal-body) #mainPanel table button.btn-primary,
body.admin-light-theme:not(.portal-body) #mainPanel .modern-floating-table button.btn-primary,
body.admin-light-theme:not(.portal-body) #inventoryTableBody button[onclick*="openUpdateInventoryModal"],
body.admin-light-theme:not(.portal-body) #siparislerTableBody button[onclick*="createReturnFromOrder"],
body.admin-light-theme:not(.portal-body) #wsPendingTableBody button[onclick*="viewWholesaleOrder"],
body.admin-light-theme:not(.portal-body) #wsApprovedTableBody button[onclick*="viewWholesaleOrder"] {
    background: #2563eb !important;
    border: 1px solid #1d4ed8 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 6px 14px !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25) !important;
    transition: all 0.18s ease !important;
    cursor: pointer !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel table button.btn-primary:hover,
body.admin-light-theme:not(.portal-body) #mainPanel .modern-floating-table button.btn-primary:hover {
    background: #1d4ed8 !important;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.35) !important;
}

/* İkincil Butonlar (Güncelle, Geçmiş, Yazdır, Toolbar Butonları) */
body.admin-light-theme:not(.portal-body) #mainPanel .btn-secondary,
body.admin-light-theme:not(.portal-body) #mainPanel .toolbar-container .btn-secondary,
body.admin-light-theme:not(.portal-body) #mainPanel table button.btn-secondary,
body.admin-light-theme:not(.portal-body) #mainPanel .modern-floating-table button.btn-secondary,
body.admin-light-theme:not(.portal-body) button[onclick*="openReturnLogsModal"],
body.admin-light-theme:not(.portal-body) button[onclick*="printSiparisDetails"] {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 7px 14px !important;
    transition: all 0.18s ease !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .btn-secondary:hover,
body.admin-light-theme:not(.portal-body) #mainPanel .toolbar-container .btn-secondary:hover,
body.admin-light-theme:not(.portal-body) #mainPanel table button.btn-secondary:hover,
body.admin-light-theme:not(.portal-body) #mainPanel .modern-floating-table button.btn-secondary:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

/* İncele Butonu */
body.admin-light-theme:not(.portal-body) #returnsTableBody button[style*="#EFF6FF"],
body.admin-light-theme:not(.portal-body) #returnsTableBody button:has(i.fa-chevron-right) {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1d4ed8 !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
}

body.admin-light-theme:not(.portal-body) #returnsTableBody button[style*="#EFF6FF"]:hover,
body.admin-light-theme:not(.portal-body) #returnsTableBody button:has(i.fa-chevron-right):hover {
    background: #dbeafe !important;
    border-color: #93c5fd !important;
}

/* Çöp Kutusu / Silme Butonu */
body.admin-light-theme:not(.portal-body) #mainPanel table button.btn-danger,
body.admin-light-theme:not(.portal-body) #mainPanel .modern-floating-table button.btn-danger,
body.admin-light-theme:not(.portal-body) #mainPanel table button:has(i.fa-trash),
body.admin-light-theme:not(.portal-body) #mainPanel table button[onclick*="delete"] {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #dc2626 !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    transition: all 0.18s ease !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel table button.btn-danger:hover,
body.admin-light-theme:not(.portal-body) #mainPanel .modern-floating-table button.btn-danger:hover,
body.admin-light-theme:not(.portal-body) #mainPanel table button:has(i.fa-trash):hover {
    background: #fee2e2 !important;
    border-color: #f87171 !important;
    color: #b91c1c !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel table button i.fa-trash {
    color: #dc2626 !important;
}

/* Kopyala Butonu */
body.admin-light-theme:not(.portal-body) #mainPanel .btn-copy-sm {
    background: transparent !important;
    border: none !important;
    color: #64748b !important;
    cursor: pointer !important;
    padding: 3px 6px !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .btn-copy-sm:hover {
    color: #2563eb !important;
    background: #eff6ff !important;
    border-radius: 4px !important;
}

/* 13. Depo & Stok Sekmeleri ve Üst Kontroller */
body.admin-light-theme:not(.portal-body) #mainPanel .tab-container {
    background: #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 4px !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .tab-btn {
    color: #334155 !important;
    font-weight: 700 !important;
    background: transparent !important;
    border-radius: 8px !important;
    transition: all 0.18s ease !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .tab-btn:hover {
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.6) !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .tab-btn.active {
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
}

/* Excel ile Toplu Konum / Log Güncelleme Butonu */
body.admin-light-theme:not(.portal-body) #tab-local > button[onclick*="toggleBulkOperations"] {
    background: #ffffff !important;
    border: 1.5px dashed #cbd5e1 !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    padding: 12px 18px !important;
    transition: all 0.2s ease !important;
}

body.admin-light-theme:not(.portal-body) #tab-local > button[onclick*="toggleBulkOperations"]:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

/* Toplu İşlemler Paneli */
body.admin-light-theme:not(.portal-body) #bulkOperationsPanel {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
}

body.admin-light-theme:not(.portal-body) #bulkOperationsPanel .card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

body.admin-light-theme:not(.portal-body) #bulkOperationsPanel h4 {
    color: #0f172a !important;
    font-weight: 700 !important;
}

/* Arama ve Kamera Butonu (Entegre Arama Çubuğu) */
body.admin-light-theme:not(.portal-body) #mainPanel .search-wrapper.with-camera input {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: none !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .search-wrapper.with-camera .btn-secondary {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 1px solid #e2e8f0 !important;
    color: #2563eb !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    box-shadow: none !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .search-wrapper.with-camera .btn-secondary:hover {
    background: #eff6ff !important;
    border-color: #cbd5e1 !important;
    color: #1d4ed8 !important;
}

/* Tekil Ekle Butonu */
body.admin-light-theme:not(.portal-body) #mainPanel .btn-primary {
    background: #2563eb !important;
    border: 1px solid #1d4ed8 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25) !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .btn-primary:hover {
    background: #1d4ed8 !important;
    box-shadow: 0 5px 16px rgba(37, 99, 235, 0.35) !important;
}

/* 14. Form Elemanları & Aramalar */
body.admin-light-theme:not(.portal-body) #mainPanel input,
body.admin-light-theme:not(.portal-body) #mainPanel select,
body.admin-light-theme:not(.portal-body) #mainPanel textarea {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel input:focus,
body.admin-light-theme:not(.portal-body) #mainPanel select:focus,
body.admin-light-theme:not(.portal-body) #mainPanel textarea:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel input::placeholder,
body.admin-light-theme:not(.portal-body) #mainPanel textarea::placeholder {
    color: #94a3b8 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .search-wrapper i.fa-search {
    color: #94a3b8 !important;
}

/* 15. Modal Pencereler (Kapsamlı Aydınlık Tema Desteği) */

/* Modal Arka Planı (Overlay) */
body.admin-light-theme:not(.portal-body) .modal {
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

@media (min-width: 900px) {
    body.admin-light-theme:not(.portal-body) #modalReturn.modal {
        background: rgba(15, 23, 42, 0.45) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }
}

/* Modal Ana Kutusu (Tüm Modallar) */
body.admin-light-theme:not(.portal-body) .modal-content,
body.admin-light-theme:not(.portal-body) #modalReturnContent,
body.admin-light-theme:not(.portal-body) #modalReturn .modal-content,
body.admin-light-theme:not(.portal-body) #modalUpdateInventory .modal-content,
body.admin-light-theme:not(.portal-body) #modalWsDetail .modal-content,
body.admin-light-theme:not(.portal-body) #modalReportDetail .modal-content,
body.admin-light-theme:not(.portal-body) #modalDiscountManager .modal-content,
body.admin-light-theme:not(.portal-body) #modalDesiEntry .modal-content,
body.admin-light-theme:not(.portal-body) #modalFilterOrders .modal-content,
body.admin-light-theme:not(.portal-body) #modalAddInventory .modal-content,
body.admin-light-theme:not(.portal-body) #modalReturnLogs .modal-content,
body.admin-light-theme:not(.portal-body) #modalStock .modal-content,
body.admin-light-theme:not(.portal-body) #modalSyncReport .modal-content,
body.admin-light-theme:not(.portal-body) #modalBarcodeScanner .modal-content,
body.admin-light-theme:not(.portal-body) #customAlert .modal-content,
body.admin-light-theme:not(.portal-body) #customConfirm .modal-content,
body.admin-light-theme:not(.portal-body) #modalDuplicateWarning .modal-content {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.2), 0 0 1px rgba(0, 0, 0, 0.1) !important;
    border-radius: 18px !important;
}

/* Modal Başlıkları */
body.admin-light-theme:not(.portal-body) .modal-content h3,
body.admin-light-theme:not(.portal-body) .modal-content h4,
body.admin-light-theme:not(.portal-body) #modalReturnContent > h3,
body.admin-light-theme:not(.portal-body) #modalReturnTitle {
    color: #0f172a !important;
    background: transparent !important;
    font-weight: 800 !important;
    text-shadow: none !important;
}

body.admin-light-theme:not(.portal-body) .modal-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.admin-light-theme:not(.portal-body) .modal-footer {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

/* Modal Kapatma Butonu (X) */
body.admin-light-theme:not(.portal-body) .close,
body.admin-light-theme:not(.portal-body) .close-btn,
body.admin-light-theme:not(.portal-body) #modalReturnContent > .close {
    color: #64748b !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 999px !important;
    transition: all 0.2s ease !important;
}

body.admin-light-theme:not(.portal-body) .close:hover,
body.admin-light-theme:not(.portal-body) .close-btn:hover,
body.admin-light-theme:not(.portal-body) #modalReturnContent > .close:hover {
    color: #0f172a !important;
    background: #e2e8f0 !important;
}

/* Modal İçi Form Girdileri */
body.admin-light-theme:not(.portal-body) .modal input,
body.admin-light-theme:not(.portal-body) .modal select,
body.admin-light-theme:not(.portal-body) .modal textarea {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

body.admin-light-theme:not(.portal-body) .modal input:focus,
body.admin-light-theme:not(.portal-body) .modal select:focus,
body.admin-light-theme:not(.portal-body) .modal textarea:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

body.admin-light-theme:not(.portal-body) .modal input:disabled,
body.admin-light-theme:not(.portal-body) .modal select:disabled,
body.admin-light-theme:not(.portal-body) .modal textarea:disabled {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
    font-weight: 600 !important;
}

body.admin-light-theme:not(.portal-body) .modal input::placeholder,
body.admin-light-theme:not(.portal-body) .modal textarea::placeholder {
    color: #94a3b8 !important;
}

body.admin-light-theme:not(.portal-body) .modal option {
    background: #ffffff !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) .modal label {
    color: #334155 !important;
    font-weight: 700 !important;
}

/* Modal İçi Tablolar */
body.admin-light-theme:not(.portal-body) .modal table th {
    background: #f8fafc !important;
    color: #334155 !important;
    border-bottom: 2px solid #e2e8f0 !important;
    font-weight: 800 !important;
}

body.admin-light-theme:not(.portal-body) .modal table td {
    background: #ffffff !important;
    color: #0f172a !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

/* Talep Yönetimi Modalı (#modalReturn) Özel Kuralları */
body.admin-light-theme:not(.portal-body) #modalReturnContent .modal-info-header {
    background: #f1f5f9 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.admin-light-theme:not(.portal-body) #modalReturnContent .modal-left-panel,
body.admin-light-theme:not(.portal-body) #modalReturnContent .modal-right-panel,
body.admin-light-theme:not(.portal-body) #modalReturnContent .action-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

body.admin-light-theme:not(.portal-body) #modalReturnContent .action-card-header {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) .type-segment-container {
    background: #e2e8f0 !important;
    border: 1px solid #cbd5e1 !important;
    padding: 3px;
    border-radius: 10px;
}

body.admin-light-theme:not(.portal-body) .type-btn {
    color: #475569 !important;
    background: transparent !important;
    font-weight: 600;
}

body.admin-light-theme:not(.portal-body) .type-btn:hover {
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.6) !important;
}

body.admin-light-theme:not(.portal-body) .type-btn.active {
    background: #ffffff !important;
    color: #2563eb !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    font-weight: 700 !important;
}

/* İade Tutarı & Kargo Baremi Kutusu */
body.admin-light-theme:not(.portal-body) #refundField {
    background: #f0fdf4 !important;
    border: 1px solid #86efac !important;
}

body.admin-light-theme:not(.portal-body) #refundField .action-card-header {
    background: transparent !important;
    color: #166534 !important;
    border-bottom: 1px solid #bbf7d0 !important;
}

body.admin-light-theme:not(.portal-body) #refundField input {
    background: #ffffff !important;
    border-color: #86efac !important;
    color: #166534 !important;
    font-weight: 800 !important;
}

body.admin-light-theme:not(.portal-body) #shippingDeductionArea {
    background: #fff7ed !important;
    border: 1px solid #fed7aa !important;
}

/* Modal İçi Dinamik Ürün Seçim Satırları */
body.admin-light-theme:not(.portal-body) #modalReturnContent #productSelectionArea {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

body.admin-light-theme:not(.portal-body) #modalReturnContent #productSelectionArea .product-select-list {
    background: #f8fafc !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #modalReturnContent #orderProductList > .return-product-row {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #modalReturnContent #orderProductList > .return-product-row:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
}

body.admin-light-theme:not(.portal-body) #modalReturnContent #orderProductList .return-product-sku {
    color: #0f172a !important;
    font-weight: 800 !important;
}

body.admin-light-theme:not(.portal-body) #modalReturnContent #orderProductList .return-product-name {
    color: #475569 !important;
    font-weight: 500 !important;
}

body.admin-light-theme:not(.portal-body) #modalReturnContent #orderProductList .return-product-price {
    color: #2563eb !important;
    font-weight: 800 !important;
}

body.admin-light-theme:not(.portal-body) #modalReturnContent #orderProductList .return-product-meta {
    color: #64748b !important;
    font-weight: 600 !important;
}

body.admin-light-theme:not(.portal-body) #modalReturnContent #orderProductList .return-product-qty-label {
    color: #475569 !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #modalReturnContent #orderProductList input[type="number"] {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-weight: 800 !important;
}

/* Modal Alt Çubuğu (Kaydet Butonu Bölgesi) */
body.admin-light-theme:not(.portal-body) #modalReturnContent > div:last-child {
    background: rgba(255, 255, 255, 0.96) !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05) !important;
}

body.admin-light-theme:not(.portal-body) #modalReturnContent #btnSaveReturn {
    background: #2563eb !important;
    border: 1px solid #1d4ed8 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}

body.admin-light-theme:not(.portal-body) #modalReturnContent #btnSaveReturn:hover {
    background: #1d4ed8 !important;
}

/* Geçmiş ve Log Kutuları (.history-box) */
body.admin-light-theme:not(.portal-body) .history-box,
body.admin-light-theme:not(.portal-body) #returnLogHistory,
body.admin-light-theme:not(.portal-body) #stockHistory {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) .history-box > div,
body.admin-light-theme:not(.portal-body) #returnLogHistory > div,
body.admin-light-theme:not(.portal-body) #stockHistory > div {
    border-bottom: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) .history-box strong,
body.admin-light-theme:not(.portal-body) #returnLogHistory strong {
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) .history-box span,
body.admin-light-theme:not(.portal-body) #returnLogHistory span {
    color: #64748b !important;
}

/* Stok Güncelleme Modalı (#modalUpdateInventory) */
body.admin-light-theme:not(.portal-body) #modalUpdateInventory .modal-content {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.2), 0 0 1px rgba(0, 0, 0, 0.1) !important;
}

body.admin-light-theme:not(.portal-body) #modalUpdateInventory .modal-content > h3 {
    background: #ffffff !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.admin-light-theme:not(.portal-body) #modalUpdateInventory .modal-content > .close {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

body.admin-light-theme:not(.portal-body) #modalUpdateInventory .modal-content > .close:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
}

body.admin-light-theme:not(.portal-body) #modalUpdateInventory .inv-modal-grid {
    background: transparent !important;
}

body.admin-light-theme:not(.portal-body) #modalUpdateInventory .inv-left-col,
body.admin-light-theme:not(.portal-body) #modalUpdateInventory .inv-right-col {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

body.admin-light-theme:not(.portal-body) #modalUpdateInventory .inv-left-col {
    border-right: 1px solid #e2e8f0 !important;
    padding: 14px !important;
}

body.admin-light-theme:not(.portal-body) #modalUpdateInventory .inv-right-col {
    padding: 14px !important;
}

body.admin-light-theme:not(.portal-body) #modalUpdateInventory .inv-product-img {
    height: 96px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
}

body.admin-light-theme:not(.portal-body) #modalUpdateInventory label {
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

body.admin-light-theme:not(.portal-body) #modalUpdateInventory input,
body.admin-light-theme:not(.portal-body) #modalUpdateInventory select {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-size: 12px !important;
    border-radius: 8px !important;
}

body.admin-light-theme:not(.portal-body) #modalUpdateInventory input:focus,
body.admin-light-theme:not(.portal-body) #modalUpdateInventory select:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

body.admin-light-theme:not(.portal-body) #modalUpdateInventory #updateInvSku {
    color: #0369a1 !important;
    background: #e0f2fe !important;
    border: 1px solid #bae6fd !important;
    font-weight: 800 !important;
}

body.admin-light-theme:not(.portal-body) #modalUpdateInventory .btn-primary,
body.admin-light-theme:not(.portal-body) #modalUpdateInventory button[onclick="updateInventoryItem()"] {
    background: #2563eb !important;
    border: 1px solid #1d4ed8 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}

body.admin-light-theme:not(.portal-body) #modalUpdateInventory .btn-primary:hover,
body.admin-light-theme:not(.portal-body) #modalUpdateInventory button[onclick="updateInventoryItem()"]:hover {
    background: #1d4ed8 !important;
}

body.admin-light-theme:not(.portal-body) #modalUpdateInventory .log-list-header {
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

body.admin-light-theme:not(.portal-body) #modalUpdateInventory .log-list-header i {
    color: #2563eb !important;
}

body.admin-light-theme:not(.portal-body) #modalUpdateInventory .log-history-container {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

body.admin-light-theme:not(.portal-body) #modalUpdateInventory .log-item {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    border-radius: 8px !important;
}

body.admin-light-theme:not(.portal-body) #modalUpdateInventory .log-item:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

body.admin-light-theme:not(.portal-body) #modalUpdateInventory .log-meta {
    color: #64748b !important;
    font-size: 11px !important;
}

body.admin-light-theme:not(.portal-body) #modalUpdateInventory .log-content {
    color: #0f172a !important;
    font-size: 12px !important;
}

body.admin-light-theme:not(.portal-body) #modalUpdateInventory .log-qty-badge {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1d4ed8 !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #modalUpdateInventory .log-input-area {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
}

body.admin-light-theme:not(.portal-body) #modalUpdateInventory .log-input-area > div:first-child {
    color: #334155 !important;
    font-weight: 700 !important;
    font-size: 11px !important;
}

body.admin-light-theme:not(.portal-body) #modalUpdateInventory .log-input-area .btn-secondary,
body.admin-light-theme:not(.portal-body) #modalUpdateInventory button[onclick="addInventoryLog()"] {
    background: #2563eb !important;
    border: 1px solid #1d4ed8 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2) !important;
    border-radius: 8px !important;
}

body.admin-light-theme:not(.portal-body) #modalUpdateInventory .log-input-area .btn-secondary:hover,
body.admin-light-theme:not(.portal-body) #modalUpdateInventory button[onclick="addInventoryLog()"]:hover {
    background: #1d4ed8 !important;
}

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

/* Tekil Ekle Modalı (#modalAddInventory) */
body.admin-light-theme:not(.portal-body) #modalAddInventory .modal-content {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #modalAddInventory input,
body.admin-light-theme:not(.portal-body) #modalAddInventory select {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #modalAddInventory .btn-primary {
    background: #2563eb !important;
    border: 1px solid #1d4ed8 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Kargo Desi Girişi Modalı (#modalDesiEntry) */
body.admin-light-theme:not(.portal-body) #modalDesiEntry .modal-content {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16) !important;
}

body.admin-light-theme:not(.portal-body) #modalDesiEntry .modal-content > h3 {
    background: #ffffff !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.admin-light-theme:not(.portal-body) #modalDesiEntry .modal-content > .close {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

body.admin-light-theme:not(.portal-body) #modalDesiEntry .modal-content > .close:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
}

body.admin-light-theme:not(.portal-body) #modalDesiEntry .modal-content > div:not(:has(#desiCalculated)) {
    color: #1e293b !important;
}

body.admin-light-theme:not(.portal-body) #modalDesiEntry label {
    color: #334155 !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #modalDesiEntry small {
    color: #64748b !important;
}

body.admin-light-theme:not(.portal-body) #modalDesiEntry input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    border-radius: 8px !important;
    height: 40px !important;
}

body.admin-light-theme:not(.portal-body) #modalDesiEntry input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

/* Paketler Konteyneri (Kutu Çerçevesi Kaldırıldı) */
body.admin-light-theme:not(.portal-body) #modalDesiEntry .modal-content > div:has(#desiPackagesContainer) {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

body.admin-light-theme:not(.portal-body) #modalDesiEntry .modal-content > div:has(#desiPackagesContainer) label {
    color: #475569 !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #modalDesiEntry .desi-row input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    border-radius: 6px !important;
}

body.admin-light-theme:not(.portal-body) #modalDesiEntry .desi-preset-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

body.admin-light-theme:not(.portal-body) #modalDesiEntry .desi-preset-btn:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #modalDesiEntry .desi-add-btn,
body.admin-light-theme:not(.portal-body) #modalDesiEntry button[onclick="addDesiPackageRow()"] {
    background: #eff6ff !important;
    border: 1.5px dashed #93c5fd !important;
    color: #2563eb !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #modalDesiEntry .desi-add-btn:hover,
body.admin-light-theme:not(.portal-body) #modalDesiEntry button[onclick="addDesiPackageRow()"]:hover {
    background: #dbeafe !important;
    border-color: #3b82f6 !important;
    color: #1d4ed8 !important;
}

body.admin-light-theme:not(.portal-body) #modalDesiEntry .btn-remove-row {
    color: #dc2626 !important;
    background: #fee2e2 !important;
    border: 1px solid #fca5a5 !important;
    border-radius: 8px !important;
}

body.admin-light-theme:not(.portal-body) #modalDesiEntry .btn-remove-row:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
}

/* Toplam Hesaplanan Desi (Bizim Desi) Kutusu Kaldırıldı -> Sade & Şık Görünüm */
body.admin-light-theme:not(.portal-body) #modalDesiEntry .modal-content > div:has(#desiCalculated) {
    background: transparent !important;
    border: none !important;
    border-top: 1px dashed #e2e8f0 !important;
    border-bottom: 1px dashed #e2e8f0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 12px 0 !important;
    margin: 15px 0 !important;
}

body.admin-light-theme:not(.portal-body) #modalDesiEntry .modal-content > div:has(#desiCalculated) label {
    color: #0284c7 !important;
    font-weight: 800 !important;
    font-size: 11.5px !important;
    letter-spacing: 0.5px !important;
    display: block !important;
}

body.admin-light-theme:not(.portal-body) #modalDesiEntry #desiCalculated {
    color: #0284c7 !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    text-shadow: none !important;
    margin: 2px 0 !important;
}

body.admin-light-theme:not(.portal-body) #modalDesiEntry .modal-content > div:has(#desiCalculated) small {
    color: #64748b !important;
    font-size: 11.5px !important;
}

/* Kesilen Desi (Kargo Desi) Kutusu Kaldırıldı -> Sade Giriş Alanı */
body.admin-light-theme:not(.portal-body) #modalDesiEntry .modal-content > div[style*="border-top"] {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-bottom: 18px !important;
}

body.admin-light-theme:not(.portal-body) #modalDesiEntry button[onclick="saveDesiEntry()"] {
    background: #2563eb !important;
    border: 1px solid #1d4ed8 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25) !important;
    border-radius: 8px !important;
}

body.admin-light-theme:not(.portal-body) #modalDesiEntry button[onclick="saveDesiEntry()"]:hover {
    background: #1d4ed8 !important;
}

/* İskonto Yönetimi Modalı (#modalDiscountManager) */
body.admin-light-theme:not(.portal-body) #modalDiscountManager .modal-content {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #modalDiscountManager h3,
body.admin-light-theme:not(.portal-body) #modalDiscountManager h4 {
    color: #0f172a !important;
    font-weight: 800 !important;
}

body.admin-light-theme:not(.portal-body) #modalDiscountManager .modal-content > div:nth-child(2) > div:first-child,
body.admin-light-theme:not(.portal-body) #modalDiscountManager .modal-content > div:last-child > div:first-of-type {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
}

body.admin-light-theme:not(.portal-body) #modalDiscountManager label {
    color: #475569 !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #modalDiscountManager small {
    color: #64748b !important;
}

body.admin-light-theme:not(.portal-body) #modalDiscountManager input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #modalDiscountManager .btn-primary,
body.admin-light-theme:not(.portal-body) #modalDiscountManager button[onclick="saveBaseSettings()"] {
    background: #2563eb !important;
    border: 1px solid #1d4ed8 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #modalDiscountManager .table-responsive {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

body.admin-light-theme:not(.portal-body) #modalDiscountManager .ws-table th {
    background: #f8fafc !important;
    color: #334155 !important;
    border-bottom: 2px solid #e2e8f0 !important;
    font-weight: 800 !important;
}

body.admin-light-theme:not(.portal-body) #modalDiscountManager #tblDiscountTiers td {
    background: #ffffff !important;
    color: #0f172a !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

body.admin-light-theme:not(.portal-body) #modalDiscountManager .btn-danger,
body.admin-light-theme:not(.portal-body) #modalDiscountManager button[onclick*="deleteTier"] {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #dc2626 !important;
}

body.admin-light-theme:not(.portal-body) #modalDiscountManager button[onclick="addNewTier()"] {
    background: #ffffff !important;
    border: 1px solid #f59e0b !important;
    color: #d97706 !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #modalDiscountManager button[onclick="closeDiscountModal()"] {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

/* Günlük Görev Modalı (#modalDailyTask) */
body.admin-light-theme:not(.portal-body) #modalDailyTask .daily-task-modal {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #modalDailyTask label {
    color: #334155 !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #modalDailyTask input,
body.admin-light-theme:not(.portal-body) #modalDailyTask select,
body.admin-light-theme:not(.portal-body) #modalDailyTask textarea {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #modalDailyTask .daily-task-day-grid {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

body.admin-light-theme:not(.portal-body) #modalDailyTask .daily-task-day-grid label,
body.admin-light-theme:not(.portal-body) #modalDailyTask .daily-task-checkline {
    color: #334155 !important;
    font-weight: 600 !important;
}

/* Fatura & Sipariş Detay Modalı (#modalWsDetail) */
body.admin-light-theme:not(.portal-body) #modalWsDetail .modal-content,
body.admin-light-theme:not(.portal-body) .invoice-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

body.admin-light-theme:not(.portal-body) .invoice-head,
body.admin-light-theme:not(.portal-body) .invoice-footer-section {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) .invoice-brand h3 {
    color: #0f172a !important;
    font-weight: 800 !important;
}

body.admin-light-theme:not(.portal-body) .invoice-meta-badges .meta-date {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

body.admin-light-theme:not(.portal-body) .invoice-info-row {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.admin-light-theme:not(.portal-body) .info-group label {
    color: #64748b !important;
}

body.admin-light-theme:not(.portal-body) .info-highlight {
    color: #0f172a !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) .invoice-table-modern th {
    background: #f8fafc !important;
    color: #334155 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) .invoice-table-modern td {
    background: #ffffff !important;
    color: #0f172a !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

body.admin-light-theme:not(.portal-body) .summary-line span {
    color: #334155 !important;
}

body.admin-light-theme:not(.portal-body) .summary-line.grand-total span {
    color: #0f172a !important;
    font-weight: 800 !important;
}

/* Denetim Kaydı Detay Modalı (#modalAuditDetail) */
body.admin-light-theme:not(.portal-body) #modalAuditDetail .modal-content {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #modalAuditDetail .modal-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.admin-light-theme:not(.portal-body) #modalAuditDetail .audit-modal-meta-grid .audit-meta-item {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
}

body.admin-light-theme:not(.portal-body) #modalAuditDetail .audit-meta-item label {
    color: #64748b !important;
    font-weight: 600 !important;
}

body.admin-light-theme:not(.portal-body) #modalAuditDetail .audit-meta-item span {
    color: #0f172a !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #modalAuditDetail .audit-json-box {
    background: #f8fafc !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

/* 16. Sistem Yönetimi & Ayarlar Sayfası (#page-settings) */
body.admin-light-theme:not(.portal-body) #mainPanel .setting-group {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    border-radius: 12px !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .setting-header {
    background: #f8fafc !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .setting-content {
    background: #ffffff !important;
    color: #1e293b !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .backup-row {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .backup-info h5 {
    color: #0f172a !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel #cargoList {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel #cargoList > div {
    border-bottom: 1px solid #f1f5f9 !important;
    color: #1e293b !important;
}

/* 13. Günlük Görevler & Akıllı Stok Panelleri */
body.admin-light-theme:not(.portal-body) #page-dashboard .daily-tasks-panel::before,
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-panel::before {
    display: none !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-tasks-panel,
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-panel {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-panel-header h3 {
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-panel-header p {
    color: #64748b !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-tasks-panel::before {
    display: none !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-tasks-panel .smart-panel-header h3 i {
    color: #2563eb !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-empty-state {
    background: #f8fafc !important;
    border: 1px dashed #cbd5e1 !important;
    color: #64748b !important;
    box-shadow: none !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-empty-state.success {
    background: #f0fdf4 !important;
    border-color: #86efac !important;
    color: #15803d !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-empty-state.error {
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
    color: #b91c1c !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-panel-actions span {
    color: #334155 !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    font-weight: 600 !important;
}

/* Günlük Görev Öğeleri (Dashboard - Günün Görevleri) */
body.admin-light-theme:not(.portal-body) #page-dashboard .daily-tasks-panel .smart-panel-actions #dailyTaskDateInfo {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 600 !important;
    padding: 5px 12px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-tasks-panel .smart-panel-actions .btn-secondary {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-tasks-panel .smart-panel-actions .btn-secondary:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
    opacity: 1 !important;
    transition: all 0.15s ease !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-item:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-item.completed {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    opacity: 1 !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-item.due {
    border-color: #f59e0b !important;
    border-left: 3.5px solid #f59e0b !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-item.late {
    border-color: #ef4444 !important;
    border-left: 3.5px solid #ef4444 !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-main strong {
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-item.completed .daily-task-main strong {
    color: #64748b !important;
    text-decoration: line-through !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-main span {
    color: #64748b !important;
    font-size: 12px !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-item.completed .daily-task-main span {
    color: #94a3b8 !important;
}

/* Görev Altındaki Hap Rozetler (.daily-task-badges em) */
body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-badges em {
    color: #334155 !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 999px !important;
    padding: 3px 8px !important;
    font-size: 11px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-badges em i {
    color: #64748b !important;
}

/* Durum Rozetleri */
body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-badges .status-completed {
    background: #dcfce7 !important;
    border-color: #86efac !important;
    color: #15803d !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-badges .status-waiting {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1d4ed8 !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-badges .status-due {
    background: #fef3c7 !important;
    border-color: #fde68a !important;
    color: #b45309 !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-badges .status-late {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #b91c1c !important;
    font-weight: 700 !important;
}

/* Tamamlama Kutucuğu (Checkmark) */
body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-check {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: transparent !important;
    transition: all 0.15s ease !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-check:hover {
    border-color: #10b981 !important;
    background: #ecfdf5 !important;
    color: #10b981 !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-check.checked {
    background: #10b981 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
}

/* İşlem Menüsü Butonu ve Açılır Pencere */
body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-menu-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #64748b !important;
    border-radius: 8px !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-menu-btn:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-menu-pop {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08) !important;
    border-radius: 10px !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-menu-pop button {
    color: #334155 !important;
    font-weight: 600 !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-menu-pop button:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-menu-pop button:last-child {
    color: #dc2626 !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-menu-pop button:last-child:hover {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

/* Tümünü Göster / Gizle */
body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-toggle {
    color: #2563eb !important;
    font-weight: 700 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .daily-task-toggle:hover {
    color: #1d4ed8 !important;
    text-decoration: underline !important;
}

/* 14. Akıllı Stok 6 Özet Kartı (Yüksek Kontrastlı & Canlı) */
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card::after {
    display: none !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08) !important;
    border-color: #94a3b8 !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary strong {
    color: #0f172a !important;
    font-weight: 800 !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary span {
    color: #64748b !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary small {
    color: #2563eb !important;
    font-weight: 600 !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card i {
    color: #3b82f6 !important;
    opacity: 0.9 !important;
}

/* Kart 2: Sitede Açılabilir (Yeşil) */
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card.publish {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
}
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card.publish strong {
    color: #14532d !important;
}
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card.publish span {
    color: #166534 !important;
}
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card.publish i,
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card.publish small {
    color: #16a34a !important;
}

/* Kart 3: Stok Artış (Mavi) */
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card.increase {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
}
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card.increase strong {
    color: #1e3a8a !important;
}
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card.increase span {
    color: #1e40af !important;
}
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card.increase i,
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card.increase small {
    color: #2563eb !important;
}

/* Kart 4: Mağaza Kontrol (Sarı / Kehribar) */
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card.store_check {
    background: #fffbeb !important;
    border-color: #fde68a !important;
}
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card.store_check strong {
    color: #78350f !important;
}
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card.store_check span {
    color: #92400e !important;
}
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card.store_check i,
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card.store_check small {
    color: #d97706 !important;
}

/* Kart 5: Depo Kaydı Yok (Turuncu) */
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card.missing {
    background: #fff7ed !important;
    border-color: #fed7aa !important;
}
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card.missing strong {
    color: #7c2d12 !important;
}
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card.missing span {
    color: #9a3412 !important;
}
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card.missing i,
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card.missing small {
    color: #ea580c !important;
}

/* Kart 6: Tedarik Gerekli (Kırmızı / Gül) */
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card.supply {
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
}
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card.supply strong {
    color: #881337 !important;
}
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card.supply span {
    color: #9f1239 !important;
}
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card.supply i,
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card.supply small {
    color: #e11d48 !important;
}

/* Aktif Kart Durumu */
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-summary-card.active {
    box-shadow: 0 0 0 2.5px #2563eb, 0 8px 20px rgba(37, 99, 235, 0.18) !important;
}

/* 15. Akıllı Stok Filtre Kontrolleri */
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-controls input,
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-controls select {
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-controls input:focus,
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-controls select:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14) !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-controls input::placeholder {
    color: #94a3b8 !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-search i.fa-search {
    color: #94a3b8 !important;
}

/* 16. Akıllı Stok Ürün Satırları (List Items) */
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-item:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-main strong {
    color: #0f172a !important;
    font-size: 14px;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-main span {
    color: #475569 !important;
}

/* Satır Durum Rozetleri (Status Labels) */
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-label {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 600 !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-item.supply .smart-stock-label {
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
    color: #be123c !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-item.publish .smart-stock-label {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #15803d !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-item.increase .smart-stock-label {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1d4ed8 !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-item.store_check .smart-stock-label {
    background: #fffbeb !important;
    border-color: #fde68a !important;
    color: #b45309 !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-item.missing .smart-stock-label {
    background: #fff7ed !important;
    border-color: #fed7aa !important;
    color: #c2410c !important;
}

/* Satır Meta Hapları ("Site: 0", "Depo: Yok" vb.) */
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-meta span {
    color: #334155 !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    font-weight: 500 !important;
}

/* Satır İkon Kutusu */
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-icon {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #2563eb !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-item.supply .smart-stock-icon {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-item.publish .smart-stock-icon {
    background: #dcfce7 !important;
    border-color: #86efac !important;
    color: #16a34a !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-item.increase .smart-stock-icon {
    background: #dbeafe !important;
    border-color: #93c5fd !important;
    color: #2563eb !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-item.store_check .smart-stock-icon,
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-item.missing .smart-stock-icon {
    background: #fef3c7 !important;
    border-color: #fde68a !important;
    color: #d97706 !important;
}

/* Satır Aksiyon Butonları (Detay, Göz ikonu) */
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-action .btn-secondary,
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-mini {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-action .btn-secondary:hover,
body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-mini:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-pagination button {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-pagination button:disabled {
    opacity: 0.5;
    background: #f1f5f9 !important;
}

body.admin-light-theme:not(.portal-body) #page-dashboard .smart-stock-pagination span {
    color: #64748b !important;
}

/* 17. Depo Toplama Listesi */
body.admin-light-theme:not(.portal-body) #mainPanel .picking-input-card,
body.admin-light-theme:not(.portal-body) #mainPanel #pickingPrintArea {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .picking-header h3 {
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .picking-header p {
    color: #64748b !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .picking-textarea {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel #pickingPrintArea .picking-table th {
    background: #f8fafc !important;
    color: #475569 !important;
    border-color: #e2e8f0 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel #pickingPrintArea .picking-table td {
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #f1f5f9 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel #pickingPrintArea .picking-table tr:hover td {
    background: #f8fafc !important;
}

/* 18. Denetim Günlüğü (Audit Logs) */
body.admin-light-theme:not(.portal-body) #mainPanel .audit-control-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-filter-btn {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-filter-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-filter-btn.active {
    background: #2563eb !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-desc-title {
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-desc-sub {
    color: #64748b !important;
}

body.admin-light-theme:not(.portal-body) #modalAuditDetail .audit-json-box {
    background: #f8fafc !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

/* 19. Site Ürünleri (XML) Aydınlık Tema Düzenlemeleri */

/* Manuel XML Yükleme Kartı */
body.admin-light-theme:not(.portal-body) #page-inventory .xml-manual-upload,
body.admin-light-theme:not(.portal-body) #tab-xml .xml-manual-upload {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%) !important;
    border: 1px solid #bfdbfe !important;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.06) !important;
    border-radius: 12px !important;
}

body.admin-light-theme:not(.portal-body) #page-inventory .xml-manual-upload__icon,
body.admin-light-theme:not(.portal-body) #tab-xml .xml-manual-upload__icon {
    background: #dbeafe !important;
    color: #2563eb !important;
    border: 1px solid #bfdbfe !important;
}

body.admin-light-theme:not(.portal-body) #page-inventory .xml-manual-upload__content h4,
body.admin-light-theme:not(.portal-body) #tab-xml .xml-manual-upload__content h4 {
    color: #0f172a !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #page-inventory .xml-manual-upload__content p,
body.admin-light-theme:not(.portal-body) #tab-xml .xml-manual-upload__content p {
    color: #475569 !important;
    font-size: 12.5px !important;
}

body.admin-light-theme:not(.portal-body) #page-inventory .xml-manual-upload__button,
body.admin-light-theme:not(.portal-body) #tab-xml .xml-manual-upload__button {
    background: #2563eb !important;
    border: 1px solid #1d4ed8 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
}

body.admin-light-theme:not(.portal-body) #page-inventory .xml-manual-upload__button:hover,
body.admin-light-theme:not(.portal-body) #tab-xml .xml-manual-upload__button:hover {
    background: #1d4ed8 !important;
}

/* XML Durum Bilgisi (Kayıtlı Ürün vb.) */
body.admin-light-theme:not(.portal-body) #xmlStatusText {
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}

/* XML Tablosu Hücreleri ve Tipografi */
body.admin-light-theme:not(.portal-body) #xmlTableBody td[data-label="Ürün İsmi"] {
    color: #1e293b !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
}

body.admin-light-theme:not(.portal-body) #xmlTableBody td[data-label="Fiyat"] b {
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 13px !important;
}

body.admin-light-theme:not(.portal-body) #xmlTableBody td[data-label="Tarih"] {
    color: #64748b !important;
    font-size: 11.5px !important;
}

body.admin-light-theme:not(.portal-body) #xmlTableBody td[data-label="Resim"] i.fa-image {
    color: #94a3b8 !important;
}

/* XML Satır Hover (Fare Üzerine Geldiğinde Metinlerin Görünür Kalması) */
body.admin-light-theme:not(.portal-body) #xmlTableBody tr:hover td {
    background: #f8fafc !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #xmlTableBody tr:hover td[data-label="Ürün İsmi"] {
    color: #1e293b !important;
}

body.admin-light-theme:not(.portal-body) #xmlTableBody tr:hover td[data-label="Tarih"] {
    color: #64748b !important;
}

body.admin-light-theme:not(.portal-body) #xmlTableBody tr:hover td[data-label="Fiyat"] b {
    color: #0f172a !important;
}

/* XML Sayfalama (Pagination) */
body.admin-light-theme:not(.portal-body) #xmlPagination .page-btn {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #xmlPagination .page-btn:hover:not(:disabled):not(.active) {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #xmlPagination .page-btn.active {
    background: #2563eb !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
}

/* 20. Sipariş Yönetimi (Toptan Sipariş) Aydınlık Tema Düzenlemeleri */

/* Kart ve Başlıklar */
body.admin-light-theme:not(.portal-body) #page-wholesale .card h4,
body.admin-light-theme:not(.portal-body) #page-wholesale .sticky-card h3,
body.admin-light-theme:not(.portal-body) #page-wholesale .discount-tiers-container h4 {
    color: #0f172a !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale .card > div[style*="border-bottom"] {
    border-color: #e2e8f0 !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale label {
    color: #334155 !important;
}

/* Tablo Başlıkları ve Hücreleri */
body.admin-light-theme:not(.portal-body) #page-wholesale .ws-table th {
    background: transparent !important;
    border-bottom: 2px solid #e2e8f0 !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale .ws-table td {
    background: #ffffff !important;
    border-top: 1px solid #f1f5f9 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #1e293b !important;
    font-size: 13px !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale .ws-table tbody tr:hover td {
    background: #f8fafc !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale .ws-table tbody tr td:first-child {
    border-left: 1px solid #e2e8f0 !important;
    border-radius: 8px 0 0 8px !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale .ws-table tbody tr td:last-child {
    border-right: 1px solid #e2e8f0 !important;
    border-radius: 0 8px 8px 0 !important;
}

/* Tablo İçi Inputlar */
body.admin-light-theme:not(.portal-body) #page-wholesale .ws-table input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    color: #0f172a !important;
    height: 36px !important;
    font-size: 13px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale .ws-table input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

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

body.admin-light-theme:not(.portal-body) #page-wholesale .ws-table td[style*="color:#333"],
body.admin-light-theme:not(.portal-body) #page-wholesale .ws-table td[style*="color: #333"] {
    color: #0f172a !important;
    font-weight: 700 !important;
}

/* Tablo Satır Silme Butonu */
body.admin-light-theme:not(.portal-body) #page-wholesale .ws-table .btn-danger,
body.admin-light-theme:not(.portal-body) #page-wholesale .ws-table button.btn-danger {
    background: #fee2e2 !important;
    border: 1px solid #fca5a5 !important;
    color: #dc2626 !important;
    border-radius: 8px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.18s ease !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale .ws-table .btn-danger:hover,
body.admin-light-theme:not(.portal-body) #page-wholesale .ws-table button.btn-danger:hover {
    background: #dc2626 !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
}

/* İade / Manuel Satır */
body.admin-light-theme:not(.portal-body) #page-wholesale tr.manual-row td,
body.admin-light-theme:not(.portal-body) #page-wholesale tr.manual-row {
    background: #fef2f2 !important;
    color: #991b1b !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale tr.manual-row tbody tr:hover td {
    background: #fee2e2 !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale tr.manual-row input {
    background: #ffffff !important;
    border: 1px solid #fca5a5 !important;
    color: #991b1b !important;
}

/* Satır Ekleme Butonları */
body.admin-light-theme:not(.portal-body) #page-wholesale button[onclick="addWholesaleRow()"] {
    background: #f8fafc !important;
    border: 1.5px dashed #cbd5e1 !important;
    color: #2563eb !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    transition: all 0.18s ease !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale button[onclick="addWholesaleRow()"]:hover {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale button[onclick="addReturnRow()"] {
    background: #fef2f2 !important;
    border: 1.5px dashed #fca5a5 !important;
    color: #dc2626 !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    transition: all 0.18s ease !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale button[onclick="addReturnRow()"]:hover {
    background: #fee2e2 !important;
    border-color: #f87171 !important;
    color: #b91c1c !important;
}

/* Özet Paneli & KDV Toggle */
body.admin-light-theme:not(.portal-body) #page-wholesale .toggle-container {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale .toggle-container label {
    color: #334155 !important;
    font-weight: 600 !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale .summary-row {
    border-bottom: 1px dashed #e2e8f0 !important;
    color: #475569 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale .summary-row span:last-child {
    color: #0f172a !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale .summary-row.discount-row span:last-child {
    color: #16a34a !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale .summary-row.bold-row span:last-child {
    color: #0f172a !important;
    font-weight: 800 !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale .summary-total {
    border-top: 2px solid #e2e8f0 !important;
    color: #1d4ed8 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale .summary-total span {
    color: #1d4ed8 !important;
    font-weight: 800 !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale #wsGrandTotal {
    color: #2563eb !important;
    font-weight: 800 !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale .badge-discount {
    background: #dcfce7 !important;
    border: 1px solid #86efac !important;
    color: #15803d !important;
    font-weight: 800 !important;
    border-radius: 999px !important;
    padding: 2px 8px !important;
}

/* İskonto Baremleri */
body.admin-light-theme:not(.portal-body) #page-wholesale .discount-tiers-container {
    border-top: 1px solid #e2e8f0 !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale #discountTiersList {
    scrollbar-color: #cbd5e1 transparent !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale .tier-item {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    border-radius: 10px !important;
    margin-bottom: 7px !important;
    font-weight: 600 !important;
    padding: 10px 14px !important;
    transition: all 0.2s ease !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale .tier-item span {
    color: #334155 !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale .tier-item i {
    color: #94a3b8 !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale .tier-item:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale .tier-item.active-tier {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
    color: #1d4ed8 !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12) !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale .tier-item.active-tier span {
    color: #1d4ed8 !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #page-wholesale .tier-item.active-tier i {
    color: #2563eb !important;
}

/* Filtre Durum Metni */
body.admin-light-theme:not(.portal-body) #filterStatusText {
    color: #475569 !important;
    font-weight: 600 !important;
}

/* 21. Kargo Desi Kontrol Sayfası (#page-desi) Aydınlık Tema */

/* Araç Çubuğu (Toolbar) Konteynerleri */
body.admin-light-theme:not(.portal-body) #page-desi .toolbar-container > div {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 8px 12px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

body.admin-light-theme:not(.portal-body) #page-desi input,
body.admin-light-theme:not(.portal-body) #page-desi select {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    color-scheme: light !important;
    height: 40px !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

body.admin-light-theme:not(.portal-body) #page-desi input:focus,
body.admin-light-theme:not(.portal-body) #page-desi select:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

body.admin-light-theme:not(.portal-body) #page-desi select option {
    background: #ffffff !important;
    color: #0f172a !important;
}

/* Excel İndir Butonu */
body.admin-light-theme:not(.portal-body) #page-desi button[onclick="downloadDesiExcel()"] {
    background: #f0fdf4 !important;
    border: 1px solid #86efac !important;
    color: #166534 !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    transition: all 0.18s ease !important;
}

body.admin-light-theme:not(.portal-body) #page-desi button[onclick="downloadDesiExcel()"]:hover {
    background: #dcfce7 !important;
    border-color: #4ade80 !important;
    color: #14532d !important;
}

/* + Yeni Ölçüm Butonu */
body.admin-light-theme:not(.portal-body) #page-desi button[onclick="openNewDesiModal()"] {
    background: #2563eb !important;
    border: 1px solid #1d4ed8 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25) !important;
}

body.admin-light-theme:not(.portal-body) #page-desi button[onclick="openNewDesiModal()"]:hover {
    background: #1d4ed8 !important;
}

/* Desi Tablosu Fark Rozetleri (OK, +, -) */
body.admin-light-theme:not(.portal-body) #desiTableBody .ft-diff-badge {
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 4px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.admin-light-theme:not(.portal-body) #desiTableBody .diff-zero {
    background: #dcfce7 !important;
    border: 1px solid #86efac !important;
    color: #15803d !important;
}

body.admin-light-theme:not(.portal-body) #desiTableBody .diff-pos {
    background: #fee2e2 !important;
    border: 1px solid #fca5a5 !important;
    color: #b91c1c !important;
}

body.admin-light-theme:not(.portal-body) #desiTableBody .diff-neg {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1d4ed8 !important;
}

/* Fark Uyarılı Satır (diff > 4) */
body.admin-light-theme:not(.portal-body) #page-desi #desiTableBody tr[style*="background-color:#FEF2F2"] td,
body.admin-light-theme:not(.portal-body) #page-desi #desiTableBody tr[style*="background-color: #FEF2F2"] td {
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
    color: #0f172a !important;
}

/* İşlem Butonları (Düzenle & Sil) */
body.admin-light-theme:not(.portal-body) #page-desi #desiTableBody .btn-sm {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
}

body.admin-light-theme:not(.portal-body) #page-desi #desiTableBody button[onclick*="openEditDesiModal"],
body.admin-light-theme:not(.portal-body) #page-desi #desiTableBody button:has(i.fa-edit) {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #2563eb !important;
}

body.admin-light-theme:not(.portal-body) #page-desi #desiTableBody button[onclick*="openEditDesiModal"]:hover,
body.admin-light-theme:not(.portal-body) #page-desi #desiTableBody button:has(i.fa-edit):hover {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
}

body.admin-light-theme:not(.portal-body) #page-desi #desiTableBody button[onclick*="deleteDesiEntry"],
body.admin-light-theme:not(.portal-body) #page-desi #desiTableBody button:has(i.fa-trash) {
    background: #ffffff !important;
    border: 1px solid #fca5a5 !important;
    color: #dc2626 !important;
}

body.admin-light-theme:not(.portal-body) #page-desi #desiTableBody button[onclick*="deleteDesiEntry"]:hover,
body.admin-light-theme:not(.portal-body) #page-desi #desiTableBody button:has(i.fa-trash):hover {
    background: #fee2e2 !important;
    border-color: #f87171 !important;
    color: #b91c1c !important;
}

/* 22. RAPORLAR / ANALİZ MERKEZİ (#page-reports) AYDINLIK TEMA */

/* Başlık ve Bölümler */
body.admin-light-theme:not(.portal-body) #page-reports .header-section h1 {
    color: #0f172a !important;
    font-weight: 800 !important;
}

body.admin-light-theme:not(.portal-body) #page-reports h2,
body.admin-light-theme:not(.portal-body) #page-reports h3,
body.admin-light-theme:not(.portal-body) #page-reports h4 {
    color: #0f172a !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #page-reports label {
    color: #475569 !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #page-reports p,
body.admin-light-theme:not(.portal-body) #page-reports small {
    color: #64748b !important;
}

/* Arama ve Filtre Kartı */
body.admin-light-theme:not(.portal-body) #page-reports [style*="background: white"],
body.admin-light-theme:not(.portal-body) #page-reports [style*="background:white"],
body.admin-light-theme:not(.portal-body) #page-reports [style*="background: #FFF"],
body.admin-light-theme:not(.portal-body) #page-reports [style*="background:#FFF"],
body.admin-light-theme:not(.portal-body) #page-reports [style*="background: #fff"],
body.admin-light-theme:not(.portal-body) #page-reports [style*="background:#fff"] {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
    color: #0f172a !important;
}

/* Inputlar */
body.admin-light-theme:not(.portal-body) #page-reports input {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    color-scheme: light !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

body.admin-light-theme:not(.portal-body) #page-reports input:focus {
    background: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

body.admin-light-theme:not(.portal-body) #page-reports #reportSearchInput,
body.admin-light-theme:not(.portal-body) #page-reports #reportStartDate,
body.admin-light-theme:not(.portal-body) #page-reports #reportEndDate,
body.admin-light-theme:not(.portal-body) #page-reports #custSearchInput,
body.admin-light-theme:not(.portal-body) #page-reports #custStartDate,
body.admin-light-theme:not(.portal-body) #page-reports #custEndDate {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    color-scheme: light !important;
}

body.admin-light-theme:not(.portal-body) #page-reports #reportSearchInput:focus,
body.admin-light-theme:not(.portal-body) #page-reports #reportStartDate:focus,
body.admin-light-theme:not(.portal-body) #page-reports #reportEndDate:focus,
body.admin-light-theme:not(.portal-body) #page-reports #custSearchInput:focus,
body.admin-light-theme:not(.portal-body) #page-reports #custStartDate:focus,
body.admin-light-theme:not(.portal-body) #page-reports #custEndDate:focus {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

/* Ürünü Analiz Et Butonu */
body.admin-light-theme:not(.portal-body) #page-reports button[onclick*="findProductStats"],
body.admin-light-theme:not(.portal-body) #page-reports .btn-primary {
    background: #2563eb !important;
    border: 1px solid #1d4ed8 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}

body.admin-light-theme:not(.portal-body) #page-reports button[onclick*="findProductStats"]:hover,
body.admin-light-theme:not(.portal-body) #page-reports .btn-primary:hover {
    background: #1d4ed8 !important;
}

/* Aranan Ürün Kartı */
body.admin-light-theme:not(.portal-body) #page-reports #reportResultArea .card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 5px solid #2563eb !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

body.admin-light-theme:not(.portal-body) #page-reports #resProductSku {
    color: #0f172a !important;
    font-weight: 800 !important;
}

body.admin-light-theme:not(.portal-body) #page-reports #resProductName {
    color: #475569 !important;
    font-weight: 500 !important;
}

/* Depo Konumu / Stok Paneli */
body.admin-light-theme:not(.portal-body) #page-reports #stockStatusPanel {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

body.admin-light-theme:not(.portal-body) #page-reports #stockStatusPanel > div {
    border-color: #f1f5f9 !important;
}

body.admin-light-theme:not(.portal-body) #page-reports #stockStatusPanel > div > div:first-child {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
}

body.admin-light-theme:not(.portal-body) #page-reports #resStockLocation,
body.admin-light-theme:not(.portal-body) #page-reports #resStockStatus,
body.admin-light-theme:not(.portal-body) #page-reports #resLastEntry {
    color: #0f172a !important;
    font-weight: 800 !important;
}

/* İstatistik Kartları (Ürün & Müşteri) */
body.admin-light-theme:not(.portal-body) #page-reports .stat-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

body.admin-light-theme:not(.portal-body) #page-reports .stat-card p {
    color: #0f172a !important;
    font-weight: 800 !important;
}

body.admin-light-theme:not(.portal-body) #page-reports .stat-card h3 {
    color: #475569 !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #page-reports .stat-card small {
    color: #64748b !important;
}

body.admin-light-theme:not(.portal-body) #page-reports .stat-card:first-child {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25) !important;
}

body.admin-light-theme:not(.portal-body) #page-reports .stat-card:first-child h3,
body.admin-light-theme:not(.portal-body) #page-reports .stat-card:first-child p,
body.admin-light-theme:not(.portal-body) #page-reports .stat-card:first-child small {
    color: #ffffff !important;
}

body.admin-light-theme:not(.portal-body) #page-reports .stat-card:first-child .stat-icon {
    color: rgba(255, 255, 255, 0.3) !important;
    background: transparent !important;
}

/* Tablolar & Kart Konteynerleri */
body.admin-light-theme:not(.portal-body) #page-reports .card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    border-radius: 12px !important;
}

body.admin-light-theme:not(.portal-body) #page-reports [style*="background: #f8fafc"],
body.admin-light-theme:not(.portal-body) #page-reports [style*="background:#f8fafc"],
body.admin-light-theme:not(.portal-body) #page-reports [style*="background-color: #f8fafc"],
body.admin-light-theme:not(.portal-body) #page-reports [style*="background-color:#f8fafc"] {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #page-reports .table-container {
    background: #ffffff !important;
}

body.admin-light-theme:not(.portal-body) #page-reports table thead,
body.admin-light-theme:not(.portal-body) #page-reports table thead[style*="background"] {
    background: #f8fafc !important;
}

body.admin-light-theme:not(.portal-body) #page-reports table th {
    background: #f8fafc !important;
    color: #475569 !important;
    border-bottom: 2px solid #e2e8f0 !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #page-reports table td {
    background: #ffffff !important;
    color: #1e293b !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

body.admin-light-theme:not(.portal-body) #page-reports table tr:hover td {
    background: #f8fafc !important;
    color: #0f172a !important;
}

/* Rapor Tabloları Rozetleri (İade, Değişim, Satış, İptal) */
body.admin-light-theme:not(.portal-body) #page-reports table span[style*="background:#DC2626"],
body.admin-light-theme:not(.portal-body) #page-reports table span[style*="background: #DC2626"] {
    background: #fee2e2 !important;
    border: 1px solid #fca5a5 !important;
    color: #b91c1c !important;
    font-weight: 800 !important;
}

body.admin-light-theme:not(.portal-body) #page-reports table span[style*="background:#EA580C"],
body.admin-light-theme:not(.portal-body) #page-reports table span[style*="background: #EA580C"] {
    background: #ffedd5 !important;
    border: 1px solid #fed7aa !important;
    color: #c2410c !important;
    font-weight: 800 !important;
}

body.admin-light-theme:not(.portal-body) #page-reports table span[style*="background:#F1F5F9"],
body.admin-light-theme:not(.portal-body) #page-reports table span[style*="background: #F1F5F9"] {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #page-reports table span[style*="background:#334155"],
body.admin-light-theme:not(.portal-body) #page-reports table span[style*="background: #334155"] {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #64748b !important;
    font-weight: 700 !important;
}

/* Müşteri Analizi - Müşteri Kartı */
body.admin-light-theme:not(.portal-body) #page-reports #custResultArea .card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 5px solid #8b5cf6 !important;
}

body.admin-light-theme:not(.portal-body) #page-reports #resCustName {
    color: #0f172a !important;
    font-weight: 800 !important;
}

body.admin-light-theme:not(.portal-body) #page-reports #resCustType {
    color: #64748b !important;
}

body.admin-light-theme:not(.portal-body) #page-reports #resCustFirstDate {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

/* Müşteri Listesi Buton ve İkonları */
body.admin-light-theme:not(.portal-body) #page-reports #custListTitle {
    color: #0f172a !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #page-reports button[onclick*="resetCustomerView"] {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

body.admin-light-theme:not(.portal-body) #page-reports button[onclick*="resetCustomerView"]:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #page-reports #customerListBody button {
    background: #ffffff !important;
    border: 1px solid #bfdbfe !important;
    color: #2563eb !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
}

body.admin-light-theme:not(.portal-body) #page-reports #customerListBody button:hover {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
    color: #1d4ed8 !important;
}

/* ============================================================
   23. İŞLEM GEÇMİŞİ & DENETİM GÜNLÜĞÜ (AUDIT LOGS - AYDINLIK MOD)
   ============================================================ */

/* Üst Başlık & Yenile Butonu */
body.admin-light-theme:not(.portal-body) #page-audit .header-flex .btn-secondary {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

body.admin-light-theme:not(.portal-body) #page-audit .header-flex .btn-secondary:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

/* İstatistik Kartları (3'lü Grid) */
body.admin-light-theme:not(.portal-body) #page-audit .audit-stats-grid .stat-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

body.admin-light-theme:not(.portal-body) #page-audit .audit-stats-grid .stat-card .stat-info h3 {
    color: #64748b !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #page-audit .audit-stats-grid .stat-card .stat-info p {
    color: #0f172a !important;
    font-weight: 800 !important;
}

/* 1. Kart: Bugünkü İşlemler (Mavi) */
body.admin-light-theme:not(.portal-body) #page-audit .audit-stats-grid .stat-card:nth-child(1) {
    border-left: 4px solid #3b82f6 !important;
}

body.admin-light-theme:not(.portal-body) #page-audit .audit-stats-grid .stat-card:nth-child(1) .stat-icon {
    background: #eff6ff !important;
    color: #2563eb !important;
    box-shadow: none !important;
}

/* 2. Kart: Bugünkü Portal Hataları (Kırmızı) */
body.admin-light-theme:not(.portal-body) #page-audit .audit-stats-grid .stat-card:nth-child(2) {
    border-left: 4px solid #ef4444 !important;
}

body.admin-light-theme:not(.portal-body) #page-audit .audit-stats-grid .stat-card:nth-child(2) .stat-icon {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    box-shadow: none !important;
}

body.admin-light-theme:not(.portal-body) #page-audit #auditStatErrors {
    color: #dc2626 !important;
}

/* 3. Kart: Toplam Olay (Yeşil) */
body.admin-light-theme:not(.portal-body) #page-audit .audit-stats-grid .stat-card:nth-child(3) {
    border-left: 4px solid #10b981 !important;
}

body.admin-light-theme:not(.portal-body) #page-audit .audit-stats-grid .stat-card:nth-child(3) .stat-icon {
    background: #ecfdf5 !important;
    color: #059669 !important;
    box-shadow: none !important;
}

/* Arama ve Filtreleme Paneli */
body.admin-light-theme:not(.portal-body) #mainPanel .audit-control-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-search-input {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-search-input::placeholder {
    color: #94a3b8 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-search-input:focus {
    background: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-search-icon {
    color: #64748b !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-search-clear {
    color: #94a3b8 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-search-clear:hover {
    color: #ef4444 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-filter-chips {
    border-top: 1px solid #f1f5f9 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-filter-btn {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    box-shadow: none !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-filter-btn:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    transform: translateY(-1px);
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-filter-btn.active {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
    color: #1d4ed8 !important;
    box-shadow: 0 1px 2px rgba(59, 130, 246, 0.1) !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-filter-btn.filter-danger.active {
    background: #fef2f2 !important;
    border-color: #ef4444 !important;
    color: #b91c1c !important;
    box-shadow: none !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-filter-btn.filter-success.active {
    background: #ecfdf5 !important;
    border-color: #10b981 !important;
    color: #047857 !important;
    box-shadow: none !important;
}

/* İşlem Rozetleri (Action Badges) */
body.admin-light-theme:not(.portal-body) #mainPanel .audit-badge-primary {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-badge-info {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-badge-success {
    background: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #86efac !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-badge-danger {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #fca5a5 !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-badge-warning {
    background: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-badge-purple {
    background: #f3e8ff !important;
    color: #7e22ce !important;
    border: 1px solid #d8b4fe !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-badge-neutral {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    font-weight: 700 !important;
}

/* Kayıt No Linki */
body.admin-light-theme:not(.portal-body) #mainPanel .audit-record-link {
    background: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
    color: #0284c7 !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-record-link:hover {
    background: #e0f2fe !important;
    border-color: #7dd3fc !important;
    color: #0369a1 !important;
    box-shadow: 0 1px 4px rgba(2, 132, 199, 0.15) !important;
    transform: translateY(-1px) !important;
}

/* Açıklama Hücresi & Metinler */
body.admin-light-theme:not(.portal-body) #mainPanel .audit-desc-title {
    color: #0f172a !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-desc-sub {
    color: #475569 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-desc-sub code {
    background: #f1f5f9 !important;
    color: #0369a1 !important;
    border: 1px solid #cbd5e1 !important;
    font-weight: 600 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-desc-sub .data-badge {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-text-danger {
    color: #dc2626 !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-text-success {
    color: #16a34a !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-text-warning {
    color: #d97706 !important;
    font-weight: 700 !important;
}

/* Kullanıcı / Kaynak Etiketleri */
body.admin-light-theme:not(.portal-body) #mainPanel .audit-user-tag {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 600 !important;
    border-radius: 999px !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-user-tag.audit-user-portal {
    background: #fff7ed !important;
    border-color: #fed7aa !important;
    color: #c2410c !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-user-tag.audit-user-system {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #64748b !important;
}

/* Detay Butonu */
body.admin-light-theme:not(.portal-body) #mainPanel .audit-detail-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.15s ease !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .audit-detail-btn:hover {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
}

/* Teknik Detay Modalı (#modalAuditDetail) */
body.admin-light-theme:not(.portal-body) #modalAuditDetail .modal-content {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

body.admin-light-theme:not(.portal-body) #modalAuditDetail .audit-modal-meta-grid {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

body.admin-light-theme:not(.portal-body) #modalAuditDetail .audit-meta-item label {
    color: #64748b !important;
    font-weight: 700 !important;
}

body.admin-light-theme:not(.portal-body) #modalAuditDetail .audit-meta-item span {
    color: #0f172a !important;
    font-weight: 600 !important;
}

body.admin-light-theme:not(.portal-body) #modalAuditDetail .audit-json-box {
    background: #f8fafc !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

body.admin-light-theme:not(.portal-body) #modalAuditDetail [style*="background: #f8fafc"] {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
}

body.admin-light-theme:not(.portal-body) #modalAuditDetail .modal-footer button.btn-secondary {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

body.admin-light-theme:not(.portal-body) #modalAuditDetail .modal-footer button.btn-secondary:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}



/* ============================================================
   ANALİZ MERKEZİ v2 (Ürün + Müşteri sekmeleri ortak dili)
   Tema duyarlı: koyu varsayılan, .admin-light-theme aydınlık.
   ============================================================ */

body #page-reports {
    --rp-surface: rgba(15, 23, 42, 0.72);
    --rp-surface-2: rgba(2, 6, 23, 0.4);
    --rp-border: rgba(34, 211, 238, 0.16);
    --rp-divider: rgba(148, 163, 184, 0.14);
    --rp-text: #e2e8f0;
    --rp-strong: #f8fafc;
    --rp-muted: #94a3b8;
    --rp-faint: #64748b;
    --rp-chip-bg: rgba(34, 211, 238, 0.12);
    --rp-chip-fg: #67e8f9;
    --rp-track: rgba(148, 163, 184, 0.18);
    --rp-bar-a: #22d3ee;
    --rp-bar-b: #3b82f6;
    --rp-seg-bg: rgba(2, 6, 23, 0.55);
    --rp-seg-active: rgba(34, 211, 238, 0.16);
    max-width: 1180px;
    margin: 0 auto;
    padding-bottom: 40px;
}

body.admin-light-theme #page-reports {
    --rp-surface: #ffffff;
    --rp-surface-2: #f8fafc;
    --rp-border: #e2e8f0;
    --rp-divider: #f1f5f9;
    --rp-text: #334155;
    --rp-strong: #0f172a;
    --rp-muted: #64748b;
    --rp-faint: #94a3b8;
    --rp-chip-bg: #eff6ff;
    --rp-chip-fg: #2563eb;
    --rp-track: #eef2f7;
    --rp-bar-a: #60a5fa;
    --rp-bar-b: #2563eb;
    --rp-seg-bg: #e2e8f0;
    --rp-seg-active: #ffffff;
}

body #page-reports .rp-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 4px 0; flex-wrap: wrap; }
body #page-reports .rp-title { margin: 0; font-size: 23px; font-weight: 800; color: var(--rp-strong) !important; letter-spacing: -0.4px; display: flex; align-items: center; gap: 11px; }
body #page-reports .rp-title i { color: var(--rp-bar-a); font-size: 19px; }
body #page-reports .rp-sub { margin: 0 0 20px; font-size: 13px; color: var(--rp-muted) !important; }

body #page-reports .rp-seg { display: inline-flex; background: var(--rp-seg-bg); border: 1px solid var(--rp-border); border-radius: 11px; padding: 4px; gap: 3px; }
body #page-reports .rp-seg button { border: 0; background: transparent; color: var(--rp-muted) !important; font-size: 13px; font-weight: 600; padding: 9px 17px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all .18s; height: auto; width: auto; }
body #page-reports .rp-seg button i { font-size: 12px; }
body #page-reports .rp-seg button.active { background: var(--rp-seg-active) !important; color: var(--rp-strong) !important; box-shadow: 0 1px 2px rgba(0, 0, 0, .18); }

body #page-reports .rp-toolbar { display: flex; align-items: center; gap: 10px; background: var(--rp-surface); border: 1px solid var(--rp-border); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; flex-wrap: wrap; }
body #page-reports .rp-toolbar .lbl { font-size: 12px; font-weight: 600; color: var(--rp-muted); }
body #page-reports .rp-toolbar input[type=date] { width: 138px; height: 33px; background: var(--rp-surface-2) !important; border: 1px solid var(--rp-border) !important; border-radius: 8px; padding: 0 9px; font-size: 12.5px; color: var(--rp-text) !important; }
body #page-reports .rp-arrow { color: var(--rp-faint); font-size: 11px; }
body #page-reports .rp-spacer { flex: 1; }
body #page-reports .rp-chip { font-size: 12px; font-weight: 600; color: var(--rp-chip-fg); background: var(--rp-chip-bg); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
body #page-reports .rp-chip:empty { display: none; }

body #page-reports .rp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
body #page-reports .rp-kpis-3 { grid-template-columns: repeat(3, 1fr); }
body #page-reports .rp-kpi { background: var(--rp-surface); border: 1px solid var(--rp-border); border-radius: 12px; padding: 13px 16px; }
body #page-reports .rp-kpi .k { font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--rp-faint); }
body #page-reports .rp-kpi .v { margin-top: 5px; font-size: 21px; font-weight: 800; color: var(--rp-strong); letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
body #page-reports .rp-kpi .v.warn { color: #ef4444; }
body #page-reports .rp-kpi .u { margin-top: 2px; font-size: 11px; color: var(--rp-faint); }

body #page-reports .rp-card { background: var(--rp-surface); border: 1px solid var(--rp-border); border-radius: 14px; overflow: hidden; margin-bottom: 14px; padding: 0; }
body #page-reports .rp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--rp-divider); }
body #page-reports .rp-card-head h3 { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--rp-strong) !important; display: flex; align-items: center; gap: 9px; }
body #page-reports .rp-card-head h3 i { color: #f87171; font-size: 12px; }
body #page-reports .rp-card-head span { font-size: 12px; color: var(--rp-faint) !important; }

body #page-reports .rp-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 180px 104px 104px 84px; align-items: center; gap: 14px; padding: 10px 18px; border-bottom: 1px solid var(--rp-divider); }
body #page-reports .rp-row:last-child { border-bottom: 0; }
body #page-reports .rp-row:hover { background: var(--rp-surface-2); }
body #page-reports .rp-row.clickable { cursor: pointer; }
body #page-reports .rp-rank { font-size: 12.5px; font-weight: 800; color: var(--rp-faint) !important; text-align: center; font-variant-numeric: tabular-nums; }
body #page-reports .rp-rank.top1 { color: #fbbf24 !important; }
body #page-reports .rp-rank.top2 { color: #94a3b8 !important; }
body #page-reports .rp-rank.top3 { color: #f59e0b !important; }
body #page-reports .rp-prod { min-width: 0; }
body #page-reports .rp-prod .code { font-size: 13px; font-weight: 700; color: var(--rp-strong) !important; letter-spacing: .2px; }
body #page-reports .rp-prod .name { font-size: 11.5px; color: var(--rp-muted) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body #page-reports .rp-bar { height: 5px; background: var(--rp-track); border-radius: 999px; overflow: hidden; }
body #page-reports .rp-bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--rp-bar-a), var(--rp-bar-b)); }
body #page-reports .rp-num { text-align: right; font-size: 13px; font-weight: 700; color: var(--rp-strong) !important; font-variant-numeric: tabular-nums; }
body #page-reports .rp-num small { display: block; font-size: 9.5px; font-weight: 600; color: var(--rp-faint) !important; text-transform: uppercase; letter-spacing: .4px; }
body #page-reports .rp-num.soft { color: var(--rp-text) !important; font-weight: 600; }
body #page-reports .rp-btn { width: 100%; height: 30px; border: 1px solid var(--rp-border) !important; background: transparent !important; color: var(--rp-text) !important; border-radius: 8px; font-size: 11.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: all .16s; }
body #page-reports .rp-btn:hover { border-color: var(--rp-bar-a) !important; color: var(--rp-strong) !important; }
body #page-reports .rp-badge { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--rp-chip-bg); color: var(--rp-chip-fg); }

body #page-reports .rp-search { display: flex; align-items: center; gap: 10px; padding: 14px 18px; flex-wrap: wrap; }
body #page-reports .rp-field { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
body #page-reports .rp-field i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--rp-faint); }
body #page-reports .rp-field input { width: 100%; height: 38px; border: 1px solid var(--rp-border) !important; border-radius: 9px; background: var(--rp-surface-2) !important; color: var(--rp-text) !important; padding: 0 12px 0 34px; font-size: 13px; }
body #page-reports .rp-primary { height: 38px; padding: 0 18px; border: 0 !important; border-radius: 9px; background: linear-gradient(135deg, #3b82f6, #2563eb) !important; color: #fff !important; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; width: auto; }
body #page-reports .rp-help { font-size: 11.5px; color: var(--rp-faint) !important; }
body #page-reports .rp-hidden-date { display: none !important; }

body #page-reports .rp-empty { padding: 22px; text-align: center; color: var(--rp-faint) !important; font-size: 13px; }
body #page-reports .rp-loading { text-align: center; padding: 40px 0; }
body #page-reports .rp-loading i { font-size: 30px; color: var(--rp-bar-a); }
body #page-reports .rp-loading p { margin: 10px 0 0; color: var(--rp-muted) !important; font-size: 13px; }

body #page-reports .rp-detail-sku { margin: 0; font-size: 24px; font-weight: 800; color: var(--rp-strong) !important; letter-spacing: -0.5px; }
body #page-reports .rp-detail-name { margin: 4px 0 0; font-size: 13px; color: var(--rp-muted) !important; }

body #page-reports .rp-stock-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 16px 18px; }
body #page-reports .rp-stock-item { display: flex; align-items: center; gap: 12px; }
body #page-reports .rp-stock-item > i { font-size: 17px; }
body #page-reports .rp-stock-item small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .5px; color: var(--rp-faint) !important; }
body #page-reports .rp-stock-item div > div { font-size: 15px; font-weight: 700; color: var(--rp-strong) !important; }
body #page-reports .rp-stock-item span { font-size: 11px; color: var(--rp-faint) !important; }

body #page-reports .rp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
body #page-reports .rp-scroll { max-height: 380px; overflow-y: auto; }
body #page-reports .rp-scroll table { background: transparent !important; }
body #page-reports .rp-scroll thead th { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--rp-faint) !important; background: transparent !important; border-bottom: 1px solid var(--rp-divider) !important; padding: 10px 14px; }
body #page-reports .rp-scroll tbody td { font-size: 12.5px; color: var(--rp-text) !important; border-bottom: 1px solid var(--rp-divider) !important; padding: 9px 14px; }

@media (max-width: 980px) {
    body #page-reports .rp-kpis,
    body #page-reports .rp-kpis-3 { grid-template-columns: repeat(2, 1fr); }
    body #page-reports .rp-grid-2 { grid-template-columns: 1fr; }
    body #page-reports .rp-row { grid-template-columns: 26px minmax(0, 1fr) 92px 92px; }
    body #page-reports .rp-row .rp-bar,
    body #page-reports .rp-row > div:last-child { display: none; }
    body #page-reports .rp-stock-panel { grid-template-columns: 1fr; }
}

/* Analiz Merkezi — detay tabloları (tema duyarlı) */
body #page-reports .rp-scroll tbody tr,
body #page-reports .rp-scroll tbody tr:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}
body #page-reports .rp-scroll tbody td {
    background: transparent !important;
    color: var(--rp-text) !important;
    border-bottom: 1px solid var(--rp-divider) !important;
    padding: 9px 14px !important;
}
body #page-reports .rp-scroll tbody tr:hover td { background: var(--rp-surface-2) !important; }
body #page-reports .rp-scroll tbody td:first-child,
body #page-reports .rp-scroll tbody td:last-child { border-radius: 0 !important; }
body #page-reports .rp-scroll .badge,
body #page-reports .rp-scroll .data-badge {
    background: var(--rp-chip-bg) !important;
    color: var(--rp-chip-fg) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 3px 7px !important;
    border-radius: 6px !important;
    letter-spacing: .3px;
}

/* Analiz Merkezi — araç çubuğu içi arama (tek satır) */
body #page-reports .rp-toolbar .rp-field-sm { flex: 0 1 260px; min-width: 170px; max-width: 260px; }
body #page-reports .rp-toolbar .rp-field-sm input { height: 33px; font-size: 12.5px; }
body #page-reports .rp-toolbar .rp-primary { height: 33px; padding: 0 14px; font-size: 12.5px; white-space: nowrap; }
body #page-reports .rp-toolbar .rp-chip { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }

/* Analiz Merkezi — müşteri detay kartı (v2) */
body #page-reports .rp-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; flex-wrap: wrap; }
body #page-reports .rp-hero-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
body #page-reports .rp-avatar { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; letter-spacing: .5px; color: #0b1220; background: linear-gradient(135deg, var(--rp-bar-a), var(--rp-bar-b)); flex-shrink: 0; }
body #page-reports .rp-hero-text h2 { margin: 0; font-size: 21px; font-weight: 800; color: var(--rp-strong) !important; letter-spacing: -0.3px; }
body #page-reports .rp-hero-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 7px; }
body #page-reports .rp-hero-note { font-size: 12px; color: var(--rp-muted) !important; }
body #page-reports .rp-hero-note b { color: var(--rp-text) !important; font-weight: 700; }

body #page-reports .rp-trend { display: flex; align-items: flex-end; gap: 14px; padding: 18px; height: 190px; }
body #page-reports .rp-trend-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; min-width: 0; }
body #page-reports .rp-trend-bar { width: 100%; max-width: 64px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--rp-bar-a), var(--rp-bar-b)); min-height: 4px; transition: height .3s; }
body #page-reports .rp-trend-val { font-size: 11px; font-weight: 700; color: var(--rp-text) !important; white-space: nowrap; }
body #page-reports .rp-trend-lbl { font-size: 11px; color: var(--rp-faint) !important; }

body #page-reports .rp-list { padding: 4px 0; }
body #page-reports .rp-mini { display: grid; grid-template-columns: minmax(0, 1fr) 120px 56px; align-items: center; gap: 12px; padding: 9px 18px; border-bottom: 1px solid var(--rp-divider); }
body #page-reports .rp-mini:last-child { border-bottom: 0; }
body #page-reports .rp-mini:hover { background: var(--rp-surface-2); }
body #page-reports .rp-mini-name { min-width: 0; }
body #page-reports .rp-mini-name .t { font-size: 12.5px; font-weight: 600; color: var(--rp-text) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body #page-reports .rp-mini-name .s { font-size: 10.5px; color: var(--rp-faint) !important; letter-spacing: .3px; }
body #page-reports .rp-mini-qty { text-align: right; font-size: 12.5px; font-weight: 700; color: var(--rp-strong) !important; font-variant-numeric: tabular-nums; }

body #page-reports .rp-order { display: grid; grid-template-columns: 84px 74px minmax(0, 1fr) 96px; align-items: center; gap: 10px; padding: 9px 18px; border-bottom: 1px solid var(--rp-divider); }
body #page-reports .rp-order:last-child { border-bottom: 0; }
body #page-reports .rp-order:hover { background: var(--rp-surface-2); }
body #page-reports .rp-order .d { font-size: 11.5px; color: var(--rp-muted) !important; font-variant-numeric: tabular-nums; }
body #page-reports .rp-order .n { font-size: 12px; color: var(--rp-text) !important; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body #page-reports .rp-order .a { text-align: right; font-size: 12.5px; font-weight: 700; color: var(--rp-strong) !important; font-variant-numeric: tabular-nums; }
body #page-reports .rp-tag { display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: .5px; padding: 3px 7px; border-radius: 6px; text-align: center; }
body #page-reports .rp-tag.sale { background: var(--rp-chip-bg); color: var(--rp-chip-fg) !important; }
body #page-reports .rp-tag.return { background: rgba(239, 68, 68, .16); color: #f87171 !important; }
body #page-reports .rp-tag.exchange { background: rgba(251, 146, 60, .16); color: #fb923c !important; }

@media (max-width: 980px) {
    body #page-reports .rp-mini { grid-template-columns: minmax(0, 1fr) 70px 44px; }
    body #page-reports .rp-order { grid-template-columns: 70px 64px minmax(0, 1fr) 80px; }
    body #page-reports .rp-trend { height: 150px; }
}

/* Analiz Merkezi — kaydırma çubuğu (tema duyarlı) */
body #page-reports .rp-scroll::-webkit-scrollbar { width: 8px; }
body #page-reports .rp-scroll::-webkit-scrollbar-track { background: transparent; }
body #page-reports .rp-scroll::-webkit-scrollbar-thumb { background: var(--rp-track); border-radius: 8px; }
body #page-reports .rp-scroll::-webkit-scrollbar-thumb:hover { background: var(--rp-faint); }

/* Analiz Merkezi — müşteri detayı v3 (bilgi balonu + ürün arama) */
body #page-reports .rp-grid-cust { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; align-items: start; }
body #page-reports .rp-trend-tall { height: 300px; }
body #page-reports .rp-trend-tall .rp-trend-bar { max-width: 46px; }

body #page-reports .rp-kpi { position: relative; }
body #page-reports .rp-info {
    position: absolute; top: 9px; right: 9px;
    width: 16px; height: 16px; border-radius: 50%;
    border: 1px solid var(--rp-border);
    color: var(--rp-faint) !important;
    font-size: 10px; font-weight: 800; font-style: normal; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: help; user-select: none;
    transition: all .15s;
}
body #page-reports .rp-info:hover { border-color: var(--rp-bar-a); color: var(--rp-bar-a) !important; }
body #page-reports .rp-info::after {
    content: attr(data-tip);
    position: absolute; top: calc(100% + 9px); right: -4px;
    width: 240px; padding: 9px 11px;
    background: var(--rp-tip-bg); color: var(--rp-tip-fg) !important;
    border: 1px solid var(--rp-border); border-radius: 9px;
    font-size: 11.5px; font-weight: 500; line-height: 1.45; letter-spacing: 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
    opacity: 0; pointer-events: none; transform: translateY(-4px);
    transition: opacity .15s, transform .15s;
    z-index: 50; text-align: left;
}
body #page-reports .rp-info:hover::after { opacity: 1; transform: translateY(0); }
body #page-reports .rp-kpis:last-child .rp-info::after,
body #page-reports .rp-kpi:last-child .rp-info::after { right: 0; }

body #page-reports { --rp-tip-bg: #0b1220; --rp-tip-fg: #e2e8f0; }
body.admin-light-theme #page-reports { --rp-tip-bg: #0f172a; --rp-tip-fg: #f8fafc; }

body #page-reports .rp-mini-name .s b { color: var(--rp-muted) !important; font-weight: 700; letter-spacing: .3px; }

@media (max-width: 1100px) {
    body #page-reports .rp-grid-cust { grid-template-columns: 1fr; }
    body #page-reports .rp-trend-tall { height: 220px; }
}

/* Analiz Merkezi — 12 aylık trend (dar sütunlar) */
body #page-reports .rp-trend-tall { gap: 7px; }
body #page-reports .rp-trend-tall .rp-trend-item { gap: 5px; }
body #page-reports .rp-trend-tall .rp-trend-bar { max-width: 30px; border-radius: 6px 6px 3px 3px; }
body #page-reports .rp-trend-tall .rp-trend-val { font-size: 9.5px; }
body #page-reports .rp-trend-tall .rp-trend-lbl { font-size: 9.5px; }

/* ============================================================
   ÖZET (DASHBOARD) v2 — operasyon kokpiti
   ============================================================ */
body #mainPanel #page-dashboard {
    --db-surface: rgba(15, 23, 42, 0.72);
    --db-surface-2: rgba(2, 6, 23, 0.42);
    --db-border: rgba(34, 211, 238, 0.16);
    --db-divider: rgba(148, 163, 184, 0.14);
    --db-text: #e2e8f0;
    --db-strong: #f8fafc;
    --db-muted: #94a3b8;
    --db-faint: #64748b;
    --db-chip-bg: rgba(34, 211, 238, 0.12);
    --db-chip-fg: #67e8f9;
    --db-cyan: #22d3ee;
    --db-amber: #fbbf24;
    --db-red: #f87171;
    --db-orange: #fb923c;
    padding-bottom: 40px;
}
body.admin-light-theme #mainPanel #page-dashboard {
    --db-surface: #ffffff;
    --db-surface-2: #f8fafc;
    --db-border: #e2e8f0;
    --db-divider: #f1f5f9;
    --db-text: #334155;
    --db-strong: #0f172a;
    --db-muted: #64748b;
    --db-faint: #94a3b8;
    --db-chip-bg: #eff6ff;
    --db-chip-fg: #2563eb;
    --db-cyan: #0891b2;
    --db-amber: #b45309;
    --db-red: #dc2626;
    --db-orange: #ea580c;
}

body #mainPanel #page-dashboard .db-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
body #mainPanel #page-dashboard .db-title { margin: 0; font-size: 23px; font-weight: 800; letter-spacing: -0.4px; color: var(--db-strong); display: flex; align-items: center; gap: 11px; }
body #mainPanel #page-dashboard .db-title i { color: var(--db-cyan); font-size: 19px; }
body #mainPanel #page-dashboard .db-sub { margin: 5px 0 0; font-size: 13px; color: var(--db-muted); }
body #mainPanel #page-dashboard .db-head-actions { display: flex; align-items: center; gap: 10px; }

body #mainPanel #page-dashboard .db-btn {
    height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--db-border);
    background: transparent; color: var(--db-text); font-size: 13px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: all .16s; white-space: nowrap;
}
body #mainPanel #page-dashboard .db-btn:hover { border-color: var(--db-cyan); color: var(--db-strong); }
body #mainPanel #page-dashboard .db-btn.sm { height: 30px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
body #mainPanel #page-dashboard .db-btn.primary { background: linear-gradient(135deg, #3b82f6, #2563eb) !important; border: 0; color: #fff !important; }
body #mainPanel #page-dashboard .db-primary {
    height: 38px; padding: 0 16px; border: 0; border-radius: 10px; cursor: pointer;
    background: linear-gradient(135deg, #22d3ee, #2563eb); color: #0b1220; font-size: 13px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 8px 24px rgba(34, 211, 238, .22);
}
body #mainPanel #page-dashboard .db-primary:hover { filter: brightness(1.05); }

/* KPI kartları */
body #mainPanel #page-dashboard .db-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 12px; margin-bottom: 14px; }
body #mainPanel #page-dashboard .db-kpi {
    position: relative; text-align: left; cursor: pointer; overflow: hidden;
    background: var(--db-surface); border: 1px solid var(--db-border); border-radius: 13px;
    padding: 13px 15px 14px; display: flex; flex-direction: column; gap: 3px; transition: all .16s;
    color: var(--db-text); font-family: inherit;
}
body #mainPanel #page-dashboard .db-kpi:hover { border-color: var(--db-cyan); transform: translateY(-1px); }
body #mainPanel #page-dashboard .db-kpi-ic { font-size: 13px; color: var(--db-faint); margin-bottom: 4px; }
body #mainPanel #page-dashboard .db-kpi-v { font-size: 26px; font-weight: 800; line-height: 1; color: var(--db-strong); letter-spacing: -0.6px; font-variant-numeric: tabular-nums; }
body #mainPanel #page-dashboard .db-kpi-l { font-size: 11.5px; font-weight: 600; color: var(--db-muted); }
body #mainPanel #page-dashboard .db-kpi-note { font-size: 10.5px; color: var(--db-faint); margin-top: 2px; }
body #mainPanel #page-dashboard .db-kpi-note:empty { display: none; }

body #mainPanel #page-dashboard .db-kpi.tone-cyan .db-kpi-ic { color: var(--db-cyan); }
body #mainPanel #page-dashboard .db-kpi.tone-amber .db-kpi-ic { color: var(--db-amber); }
body #mainPanel #page-dashboard .db-kpi.tone-red .db-kpi-ic { color: var(--db-red); }
body #mainPanel #page-dashboard .db-kpi.tone-orange .db-kpi-ic { color: var(--db-orange); }
/* Sıfırdan büyük olanlar JS tarafından warning-active alır */
body #mainPanel #page-dashboard .db-kpi.warning-active { border-color: rgba(248, 113, 113, .45); background: linear-gradient(180deg, rgba(239, 68, 68, .12), rgba(15, 23, 42, .72)); }
body #mainPanel #page-dashboard .db-kpi.warning-active .db-kpi-v { color: #fca5a5; }

/* Ana ızgara */
body #mainPanel #page-dashboard .db-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 14px; align-items: start; }
body #mainPanel #page-dashboard .db-card {
    background: var(--db-surface); border: 1px solid var(--db-border); border-radius: 14px;
    overflow: hidden; display: flex; flex-direction: column; min-width: 0;
}
body #mainPanel #page-dashboard .db-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--db-divider); flex-wrap: wrap; }
body #mainPanel #page-dashboard .db-card-head h3 { margin: 0; font-size: 14px; font-weight: 700; color: var(--db-strong); display: flex; align-items: center; gap: 8px; }
body #mainPanel #page-dashboard .db-card-head h3 i { font-size: 12px; color: var(--db-cyan); }
body #mainPanel #page-dashboard .db-card-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body #mainPanel #page-dashboard .db-chip { font-size: 11px; font-weight: 600; color: var(--db-chip-fg); background: var(--db-chip-bg); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }

/* Görev listesi */
body #mainPanel #page-dashboard .db-task-list { padding: 6px 0; }
body #mainPanel #page-dashboard .db-task-list .daily-task-item {
    display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px;
    border-bottom: 1px solid var(--db-divider); background: transparent !important; border-radius: 0 !important;
}
body #mainPanel #page-dashboard .db-task-list .daily-task-item:last-child { border-bottom: 0; }
body #mainPanel #page-dashboard .db-task-list .daily-task-item:hover { background: var(--db-surface-2) !important; }
body #mainPanel #page-dashboard .daily-task-check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--db-border); background: transparent; flex: 0 0 18px; margin-top: 1px; }
body #mainPanel #page-dashboard .daily-task-check.checked { background: #22c55e; border-color: #22c55e; }
body #mainPanel #page-dashboard .daily-task-main { min-width: 0; flex: 1; }
body #mainPanel #page-dashboard .daily-task-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
body #mainPanel #page-dashboard .db-task-toggle { margin: 8px 16px 12px; align-self: flex-start; }
body #mainPanel #page-dashboard .daily-task-menu { margin-left: auto; }

/* Stok önerileri */
body #mainPanel #page-dashboard .db-stock-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--db-divider); }
body #mainPanel #page-dashboard .smart-stock-summary-card {
    background: var(--db-surface-2) !important; border: 1px solid var(--db-border) !important;
    border-radius: 10px !important; padding: 9px 10px !important; text-align: left !important;
    display: flex; flex-direction: column; gap: 2px; cursor: pointer; transition: all .15s;
}
body #mainPanel #page-dashboard .smart-stock-summary-card strong { font-size: 18px; font-weight: 800; color: var(--db-strong); line-height: 1.1; }
body #mainPanel #page-dashboard .smart-stock-summary-card span { font-size: 10.5px; color: var(--db-muted); font-weight: 600; }
body #mainPanel #page-dashboard .smart-stock-summary-card.active { border-color: var(--db-cyan) !important; background: rgba(34, 211, 238, .1) !important; }
body #mainPanel #page-dashboard .smart-stock-summary-card:hover { border-color: var(--db-cyan) !important; }

body #mainPanel #page-dashboard .db-stock-controls { display: grid; grid-template-columns: minmax(0, 1fr) 190px 190px; gap: 8px; padding: 12px 16px; }
body #mainPanel #page-dashboard .db-search { position: relative; }
body #mainPanel #page-dashboard .db-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--db-faint); }
body #mainPanel #page-dashboard .db-search input {
    width: 100%; height: 34px; border-radius: 9px; padding: 0 12px 0 33px;
    background: var(--db-surface-2) !important; border: 1px solid var(--db-border) !important; color: var(--db-text) !important; font-size: 12.5px;
}
body #mainPanel #page-dashboard .db-stock-controls select {
    height: 34px; border-radius: 9px; padding: 0 10px; font-size: 12.5px;
    background: var(--db-surface-2) !important; border: 1px solid var(--db-border) !important; color: var(--db-text) !important;
}

body #mainPanel #page-dashboard .db-stock-list { padding: 2px 0; }
body #mainPanel #page-dashboard .smart-stock-item {
    display: grid !important; grid-template-columns: minmax(0, 1.5fr) minmax(330px, 1.1fr) auto; align-items: center; gap: 12px;
    padding: 9px 16px !important; border-bottom: 1px solid var(--db-divider) !important;
    background: transparent !important; border-radius: 0 !important; margin: 0 !important;
}
body #mainPanel #page-dashboard .smart-stock-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
body #mainPanel #page-dashboard .smart-stock-main > div { min-width: 0; }
body #mainPanel #page-dashboard .smart-stock-main strong { display: block; font-size: 12.5px; font-weight: 700; color: var(--db-strong); letter-spacing: .2px; }
body #mainPanel #page-dashboard .smart-stock-main span { display: block; font-size: 11px; color: var(--db-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body #mainPanel #page-dashboard .smart-stock-item:last-child { border-bottom: 0 !important; }
body #mainPanel #page-dashboard .smart-stock-item:hover { background: var(--db-surface-2) !important; }
body #mainPanel #page-dashboard .smart-stock-icon { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 12px; background: var(--db-surface-2) !important; color: var(--db-muted) !important; }
body #mainPanel #page-dashboard .smart-stock-main { min-width: 0; }
body #mainPanel #page-dashboard .smart-stock-meta { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
body #mainPanel #page-dashboard .smart-stock-action { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
body #mainPanel #page-dashboard .db-stock-pagination { padding: 10px 16px; border-top: 1px solid var(--db-divider); }

body #mainPanel #page-dashboard .db-tasks { position: sticky; top: 14px; }
body #mainPanel #page-dashboard .db-kpi-note { line-height: 1.3; }

@media (max-width: 1180px) {
    body #mainPanel #page-dashboard .db-grid { grid-template-columns: 1fr; }
    body #mainPanel #page-dashboard .db-tasks { position: static; }
    body #mainPanel #page-dashboard .db-stock-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    body #mainPanel #page-dashboard .db-stock-controls { grid-template-columns: 1fr; }
    body #mainPanel #page-dashboard .smart-stock-item { grid-template-columns: 1fr; align-items: flex-start; }
    body #mainPanel #page-dashboard .smart-stock-meta,
    body #mainPanel #page-dashboard .smart-stock-action { justify-content: flex-start; }
}

/* Özet — hızlı işlemler */
body #mainPanel #page-dashboard .db-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px 14px; }
body #mainPanel #page-dashboard .db-quick-btn {
    display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
    padding: 11px 12px; border-radius: 10px; cursor: pointer;
    background: var(--db-surface-2); border: 1px solid var(--db-border); color: var(--db-text);
    font-size: 12px; font-weight: 600; font-family: inherit; transition: all .15s; text-align: left;
}
body #mainPanel #page-dashboard .db-quick-btn i { font-size: 13px; color: var(--db-cyan); }
body #mainPanel #page-dashboard .db-quick-btn:hover { border-color: var(--db-cyan); color: var(--db-strong); transform: translateY(-1px); }

/* Özet — sol kolon */
body #mainPanel #page-dashboard .db-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; position: sticky; top: 14px; }
body #mainPanel #page-dashboard .db-side .db-tasks { position: static; }

/* Özet — uyarı vurgusu (aydınlık tema) */
body.admin-light-theme #mainPanel #page-dashboard .db-kpi.warning-active {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
}
body.admin-light-theme #mainPanel #page-dashboard .db-kpi.warning-active .db-kpi-v { color: #dc2626; }
body.admin-light-theme #mainPanel #page-dashboard .db-kpi.warning-active .db-kpi-l { color: #991b1b; }
body.admin-light-theme #mainPanel #page-dashboard .db-kpi.warning-active .db-kpi-ic { color: #dc2626; }

/* ============================================================
   ÖZET v3 — "kokpit" (hero + bento paneller + aylık öne çıkanlar)
   ============================================================ */
body #mainPanel #page-dashboard .dk-hero {
    position: relative; overflow: hidden; margin-bottom: 14px; padding: 22px 24px;
    border-radius: 18px; border: 1px solid var(--db-border);
    background:
        radial-gradient(1200px 240px at 8% -40%, rgba(34, 211, 238, .18), transparent 60%),
        radial-gradient(900px 200px at 92% -60%, rgba(59, 130, 246, .22), transparent 60%),
        var(--db-surface);
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
body.admin-light-theme #mainPanel #page-dashboard .dk-hero {
    background:
        radial-gradient(1200px 240px at 8% -40%, rgba(34, 211, 238, .16), transparent 60%),
        radial-gradient(900px 200px at 92% -60%, rgba(59, 130, 246, .14), transparent 60%),
        #ffffff;
}
body #mainPanel #page-dashboard .dk-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; color: var(--db-cyan); display: inline-flex; align-items: center; gap: 7px; }
body #mainPanel #page-dashboard .dk-title { margin: 8px 0 4px; font-size: 26px; font-weight: 800; letter-spacing: -0.6px; color: var(--db-strong); }
body #mainPanel #page-dashboard .dk-sub { margin: 0; font-size: 13px; color: var(--db-muted); }
body #mainPanel #page-dashboard .dk-hero-stats { display: flex; gap: 10px; }
body #mainPanel #page-dashboard .dk-hero-stat {
    min-width: 128px; padding: 11px 14px; border-radius: 12px;
    background: var(--db-surface-2); border: 1px solid var(--db-border);
}
body #mainPanel #page-dashboard .dk-hero-stat span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--db-faint); }
body #mainPanel #page-dashboard .dk-hero-stat strong { display: block; margin-top: 4px; font-size: 19px; font-weight: 800; color: var(--db-strong); letter-spacing: -0.4px; font-variant-numeric: tabular-nums; }

/* üst ızgara */
body #mainPanel #page-dashboard .dk-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; align-items: start; }

/* panel */
body #mainPanel #page-dashboard .dk-panel {
    background: var(--db-surface); border: 1px solid var(--db-border); border-radius: 16px; overflow: hidden;
}
body #mainPanel #page-dashboard .dk-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--db-divider); flex-wrap: wrap; }
body #mainPanel #page-dashboard .dk-panel-head h3 { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--db-strong); display: flex; align-items: center; gap: 9px; }
body #mainPanel #page-dashboard .dk-panel-head h3 i { font-size: 12px; color: var(--db-cyan); }
body #mainPanel #page-dashboard .dk-panel-head p { margin: 3px 0 0; font-size: 11.5px; color: var(--db-faint); }
body #mainPanel #page-dashboard .dk-panel-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body #mainPanel #page-dashboard .dk-chip { font-size: 11px; font-weight: 600; color: var(--db-chip-fg); background: var(--db-chip-bg); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
body #mainPanel #page-dashboard .dk-btn {
    height: 30px; padding: 0 12px; border-radius: 8px; cursor: pointer; font-family: inherit;
    border: 1px solid var(--db-border); background: transparent; color: var(--db-text);
    font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: all .15s; white-space: nowrap;
}
body #mainPanel #page-dashboard .dk-btn:hover { border-color: var(--db-cyan); color: var(--db-strong); }
body #mainPanel #page-dashboard .dk-btn.primary { background: linear-gradient(135deg, #22d3ee, #2563eb) !important; color: #06121f !important; border: 0; font-weight: 700; }

/* görev ilerlemesi */
body #mainPanel #page-dashboard .dk-progress { height: 3px; background: var(--db-divider); overflow: hidden; }
body #mainPanel #page-dashboard .dk-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--db-cyan), #22c55e); transition: width .4s; }
body #mainPanel #page-dashboard .dk-task-list { padding: 4px 0; }
body #mainPanel #page-dashboard .dk-task-toggle { margin: 8px 18px 12px; }

/* hızlı işlem kutuları */
body #mainPanel #page-dashboard .dk-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 14px 16px 16px; }
body #mainPanel #page-dashboard .dk-tile {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    padding: 12px 13px; border-radius: 12px; cursor: pointer; font-family: inherit; text-align: left;
    background: var(--db-surface-2); border: 1px solid var(--db-border); color: var(--db-text); transition: all .16s;
}
body #mainPanel #page-dashboard .dk-tile:hover { transform: translateY(-2px); border-color: var(--db-cyan); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
body #mainPanel #page-dashboard .dk-tile-ic { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 13px; }
body #mainPanel #page-dashboard .dk-tile-ic.t-cyan { background: rgba(34, 211, 238, .14); color: var(--db-cyan); }
body #mainPanel #page-dashboard .dk-tile-ic.t-red { background: rgba(248, 113, 113, .14); color: var(--db-red); }
body #mainPanel #page-dashboard .dk-tile-ic.t-orange { background: rgba(251, 146, 60, .14); color: var(--db-orange); }
body #mainPanel #page-dashboard .dk-tile-ic.t-amber { background: rgba(251, 191, 36, .16); color: var(--db-amber); }
body #mainPanel #page-dashboard .dk-tile-ic.t-violet { background: rgba(167, 139, 250, .16); color: #a78bfa; }
body #mainPanel #page-dashboard .dk-tile-ic.t-green { background: rgba(52, 211, 153, .16); color: #34d399; }
body #mainPanel #page-dashboard .dk-tile-t { font-size: 12px; font-weight: 600; }
body #mainPanel #page-dashboard .dk-tile-b {
    position: absolute; top: 10px; right: 11px; min-width: 22px; height: 20px; padding: 0 6px;
    border-radius: 999px; background: rgba(248, 113, 113, .16); color: #fca5a5;
    font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
body #mainPanel #page-dashboard .dk-tile-b:empty,
body #mainPanel #page-dashboard .dk-tile-b[data-zero="1"] { display: none; }

/* aylık öne çıkanlar */
body #mainPanel #page-dashboard .dk-highlights { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
body #mainPanel #page-dashboard .dk-hl {
    position: relative; overflow: hidden; padding: 16px 18px 15px; border-radius: 16px;
    background: var(--db-surface); border: 1px solid var(--db-border);
}
body #mainPanel #page-dashboard .dk-hl::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--db-cyan), #2563eb); opacity: .85; }
body #mainPanel #page-dashboard .dk-hl.hl-product::before { background: linear-gradient(90deg, #f87171, #fb923c); }
body #mainPanel #page-dashboard .dk-hl.hl-customer::before { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
body #mainPanel #page-dashboard .dk-hl.hl-volume::before { background: linear-gradient(90deg, #34d399, #22d3ee); }
body #mainPanel #page-dashboard .dk-hl-label { font-size: 10.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--db-faint); display: flex; align-items: center; gap: 7px; }
body #mainPanel #page-dashboard .dk-hl-label i { font-size: 11px; color: var(--db-cyan); }
body #mainPanel #page-dashboard .dk-hl.hl-product .dk-hl-label i { color: #f87171; }
body #mainPanel #page-dashboard .dk-hl.hl-customer .dk-hl-label i { color: var(--db-amber); }
body #mainPanel #page-dashboard .dk-hl.hl-volume .dk-hl-label i { color: #34d399; }
body #mainPanel #page-dashboard .dk-hl-name {
    margin: 9px 0 10px; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--db-strong);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px;
}
body #mainPanel #page-dashboard .dk-hl-foot { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
body #mainPanel #page-dashboard .dk-hl-foot strong { font-size: 20px; font-weight: 800; color: var(--db-strong); letter-spacing: -0.4px; font-variant-numeric: tabular-nums; }
body #mainPanel #page-dashboard .dk-hl-foot span { font-size: 11.5px; color: var(--db-muted); }
body #mainPanel #page-dashboard .dk-hl-sku { display: block; margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: .4px; color: var(--db-faint); }

/* stok paneli */
body #mainPanel #page-dashboard .dk-stock-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--db-divider); }
body #mainPanel #page-dashboard .dk-stock-controls { display: grid; grid-template-columns: minmax(0, 1fr) 190px 190px; gap: 8px; padding: 12px 16px; }
body #mainPanel #page-dashboard .dk-search { position: relative; }
body #mainPanel #page-dashboard .dk-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--db-faint); }
body #mainPanel #page-dashboard .dk-search input {
    width: 100%; height: 34px; border-radius: 9px; padding: 0 12px 0 33px; font-size: 12.5px;
    background: var(--db-surface-2) !important; border: 1px solid var(--db-border) !important; color: var(--db-text) !important;
}
body #mainPanel #page-dashboard .dk-stock-controls select {
    height: 34px; border-radius: 9px; padding: 0 10px; font-size: 12.5px;
    background: var(--db-surface-2) !important; border: 1px solid var(--db-border) !important; color: var(--db-text) !important;
}
body #mainPanel #page-dashboard .dk-stock-list { min-height: 180px; }
body #mainPanel #page-dashboard .dk-stock-pagination { padding: 10px 16px; border-top: 1px solid var(--db-divider); }

@media (max-width: 1180px) {
    body #mainPanel #page-dashboard .dk-top { grid-template-columns: 1fr; }
    body #mainPanel #page-dashboard .dk-highlights { grid-template-columns: 1fr; }
    body #mainPanel #page-dashboard .dk-stock-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    body #mainPanel #page-dashboard .dk-stock-controls { grid-template-columns: 1fr; }
}

/* Özet v3 — ince ayarlar */
body #mainPanel #page-dashboard .dk-top { align-items: start; }
body #mainPanel #page-dashboard .smart-stock-summary-card::after { display: none !important; }
body #mainPanel #page-dashboard .dk-task-list { gap: 0 !important; }
body #mainPanel #page-dashboard .dk-tasks .smart-empty-state { margin: 14px 16px; padding: 14px; border-style: dashed; }
body #mainPanel #page-dashboard .dk-tasks { align-self: start; }
body #mainPanel #page-dashboard .dk-quick { align-self: start; }
body #mainPanel #page-dashboard .dk-hl { cursor: pointer; transition: transform .16s, border-color .16s; }
body #mainPanel #page-dashboard .dk-hl:hover { transform: translateY(-2px); border-color: var(--db-cyan); }

/* Özet v3 — hero sağı: mini grafik + senkron durumu */
body #mainPanel #page-dashboard .dk-hero-side { display: flex; align-items: stretch; gap: 12px; }

body #mainPanel #page-dashboard .dk-sync {
    display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 999px;
    background: var(--db-surface-2); border: 1px solid var(--db-border);
    font-size: 11.5px; font-weight: 600; color: var(--db-muted); white-space: nowrap; align-self: flex-start;
}
body #mainPanel #page-dashboard .dk-sync-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .16); }
body #mainPanel #page-dashboard .dk-sync-dot.warn { background: var(--db-amber); box-shadow: 0 0 0 3px rgba(251, 191, 36, .16); }
body #mainPanel #page-dashboard .dk-sync-dot.late { background: var(--db-red); box-shadow: 0 0 0 3px rgba(248, 113, 113, .16); }

@media (max-width: 1180px) {
    body #mainPanel #page-dashboard .dk-hero-side { width: 100%; }
}

/* Özet v3 — sonraki iade günü */
body #mainPanel #page-dashboard .dk-hero-side { flex-direction: column; gap: 8px; width: 232px; }
body #mainPanel #page-dashboard .dk-nextpay {
    display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(34, 211, 238, .12), rgba(37, 99, 235, .10));
    border: 1px solid rgba(34, 211, 238, .28);
}
body.admin-light-theme #mainPanel #page-dashboard .dk-nextpay {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
    border-color: #bae6fd;
}
body #mainPanel #page-dashboard .dk-nextpay-ic {
    width: 26px; height: 26px; border-radius: 8px; flex: 0 0 26px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(34, 211, 238, .18); color: var(--db-cyan); font-size: 12px;
}
body #mainPanel #page-dashboard .dk-nextpay-txt { display: flex; flex-direction: column; min-width: 0; }
body #mainPanel #page-dashboard .dk-nextpay-l { font-size: 9.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--db-faint); }
body #mainPanel #page-dashboard .dk-nextpay strong { font-size: 12.5px; font-weight: 700; color: var(--db-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body #mainPanel #page-dashboard .dk-nextpay strong .gun { color: var(--db-cyan); font-weight: 700; }
body #mainPanel #page-dashboard .dk-sync { align-self: stretch; justify-content: flex-start; text-align: left; }

/* Özet v3 — hero dikey sıkılaştırma */
body #mainPanel #page-dashboard .dk-hero { padding: 18px 22px; }
body #mainPanel #page-dashboard .dk-nextpay { padding: 8px 11px; }
body #mainPanel #page-dashboard .dk-sync { padding: 8px 11px; }
body #mainPanel #page-dashboard .dk-hero-side { gap: 7px; }

/* Özet v3 — XML senkron satırı */
body #mainPanel #page-dashboard .dk-sync.dk-sync-xml { color: var(--db-faint); }
body #mainPanel #page-dashboard .dk-sync-dot.xml { background: #a78bfa; box-shadow: 0 0 0 3px rgba(167, 139, 250, .16); }
body #mainPanel #page-dashboard .dk-sync-dot.xml.warn { background: var(--db-amber); box-shadow: 0 0 0 3px rgba(251, 191, 36, .16); }
body #mainPanel #page-dashboard .dk-sync-dot.xml.late { background: var(--db-red); box-shadow: 0 0 0 3px rgba(248, 113, 113, .16); }

/* Özet v3 — sipariş senkron kartı (sync_logs) */
body #mainPanel #page-dashboard .dk-sync-orders { align-items: flex-start; padding: 9px 12px; }
body #mainPanel #page-dashboard .dk-sync-orders .dk-sync-dot { margin-top: 4px; flex: 0 0 7px; }
body #mainPanel #page-dashboard .dk-sync-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
body #mainPanel #page-dashboard .dk-sync-txt #dkSyncText { font-size: 11.5px; font-weight: 600; color: var(--db-text); white-space: nowrap; }
body #mainPanel #page-dashboard .dk-sync-sub { font-size: 10px; color: var(--db-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body #mainPanel #page-dashboard .dk-hero-side { width: 268px; }
body #mainPanel #page-dashboard .dk-sync-sub { font-size: 9.5px; letter-spacing: .1px; }

/* Özet v3 — senkron satırı sadeleşti */
body #mainPanel #page-dashboard .dk-sync-orders { align-items: center; padding: 8px 12px; }
body #mainPanel #page-dashboard .dk-sync-orders .dk-sync-dot { margin-top: 0; }
body #mainPanel #page-dashboard .dk-sync-txt { gap: 0; align-items: flex-start; text-align: left; }

/* Özet v3 — öne çıkan kartlarda dönem seçici */
body #mainPanel #page-dashboard .dk-hl { position: relative; }
body #mainPanel #page-dashboard .dk-hl-btn {
    position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; padding: 0;
    border-radius: 8px; border: 1px solid var(--db-border); background: var(--db-surface-2);
    color: var(--db-faint); font-size: 11px; line-height: 1; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; transition: all .15s;
}
body #mainPanel #page-dashboard .dk-hl-btn:hover { color: var(--db-cyan); border-color: var(--db-cyan); }
body #mainPanel #page-dashboard .dk-hl-btn.on { color: var(--db-cyan); border-color: var(--db-cyan); background: rgba(34, 211, 238, .12); }

body #mainPanel #page-dashboard .dk-period-menu {
    position: absolute; z-index: 60; min-width: 150px; padding: 6px;
    background: var(--db-surface); border: 1px solid var(--db-border); border-radius: 10px;
    box-shadow: 0 14px 34px rgba(2, 6, 23, .45);
    display: flex; flex-direction: column; gap: 2px;
}
body:not(.admin-light-theme) #mainPanel #page-dashboard .dk-period-menu { background: #0f172a; }
body #mainPanel #page-dashboard .dk-period-menu.hidden { display: none; }
body #mainPanel #page-dashboard .dk-period-menu button {
    text-align: left; padding: 7px 10px; border: 0; border-radius: 7px; cursor: pointer;
    background: transparent; color: var(--db-text); font-size: 12px; font-family: inherit;
}
body #mainPanel #page-dashboard .dk-period-menu button:hover { background: var(--db-surface-2); }
body #mainPanel #page-dashboard .dk-period-menu button.active { color: var(--db-cyan); font-weight: 700; background: rgba(34, 211, 238, .1); }

/* Özet v3 — kart başlığı dönem düğmesiyle çakışmasın */
body #mainPanel #page-dashboard .dk-hl-label { padding-right: 30px; }

/* Desi sayfası — kademe görünümü ve hızlı giriş */
#page-desi .stat-clickable { cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
#page-desi .stat-clickable:hover { transform: translateY(-2px); border-color: #FCA5A5; box-shadow: 0 10px 24px rgba(15, 23, 42, .10); }

#page-desi .desi-range-btns { display: inline-flex; gap: 4px; }
#page-desi .desi-range-btns button {
    height: 32px; padding: 0 10px; border-radius: 8px; cursor: pointer;
    border: 1px solid rgba(148, 163, 184, .35); background: transparent;
    color: inherit; font-size: 12px; font-weight: 600; font-family: inherit;
}
#page-desi .desi-range-btns button:hover { border-color: #3B82F6; color: #3B82F6; }

#page-desi .ft-dims-cell { display: flex; flex-direction: column; gap: 2px; }
#page-desi .ft-dims-detail {
    font-size: 10.5px; color: #94A3B8; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; max-width: 220px; letter-spacing: .1px;
}
body.admin-light-theme #page-desi .ft-dims-detail { color: #94A3B8; }

#page-desi .ft-band {
    display: block; margin-top: 1px; font-size: 9.5px; font-weight: 700;
    letter-spacing: .3px; color: #94A3B8;
}

#page-desi .ft-inline-input {
    width: 78px; height: 26px; padding: 0 7px; border-radius: 7px;
    border: 1px dashed #FDBA74; background: #FFF7ED; color: #C2410C;
    font-size: 11.5px; font-weight: 700; text-align: center; font-family: inherit;
}
#page-desi .ft-inline-input:focus { outline: none; border-style: solid; border-color: #EA580C; background: #fff; }
#page-desi .ft-inline-input::placeholder { color: #FDBA74; font-weight: 600; }

/* ============================================================
   DEPO ENVANTERİ v2 — yoğun liste + özet + ızgara
   ============================================================ */
#page-inventory {
    --iv-bg: rgba(15, 23, 42, .55);
    --iv-bg2: rgba(2, 6, 23, .35);
    --iv-line: rgba(148, 163, 184, .16);
    --iv-text: #e2e8f0;
    --iv-strong: #f8fafc;
    --iv-mute: #94a3b8;
    --iv-cyan: #22d3ee;
    --iv-green: #34d399;
    --iv-red: #f87171;
    --iv-amber: #fbbf24;
}
body.admin-light-theme #page-inventory {
    --iv-bg: #ffffff;
    --iv-bg2: #f8fafc;
    --iv-line: #e2e8f0;
    --iv-text: #334155;
    --iv-strong: #0f172a;
    --iv-mute: #64748b;
    --iv-cyan: #0891b2;
    --iv-green: #059669;
    --iv-red: #dc2626;
    --iv-amber: #b45309;
}

#page-inventory .iv-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
#page-inventory .iv-stat {
    display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
    padding: 11px 14px; border-radius: 12px; cursor: pointer; font-family: inherit;
    background: var(--iv-bg); border: 1px solid var(--iv-line); color: var(--iv-text); text-align: left;
    transition: all .15s;
}
#page-inventory .iv-stat:hover { border-color: var(--iv-cyan); transform: translateY(-1px); }
#page-inventory .iv-stat span { font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--iv-mute); }
#page-inventory .iv-stat strong { font-size: 20px; font-weight: 800; color: var(--iv-strong); letter-spacing: -0.4px; font-variant-numeric: tabular-nums; }
#page-inventory .iv-stat.active { border-color: var(--iv-cyan); background: rgba(34, 211, 238, .10); }
#page-inventory .iv-stat.warn strong { color: var(--iv-amber); }
#page-inventory .iv-stat.mute strong { color: var(--iv-mute); }

#page-inventory .iv-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
#page-inventory .iv-search { position: relative; flex: 1 1 280px; min-width: 220px; display: flex; align-items: center; }
#page-inventory .iv-search > i { position: absolute; left: 12px; font-size: 12px; color: var(--iv-mute); pointer-events: none; }
#page-inventory .iv-search input {
    width: 100%; height: 36px; border-radius: 9px; padding: 0 42px 0 33px; font-size: 12.5px; font-family: inherit;
    background: var(--iv-bg2); border: 1px solid var(--iv-line); color: var(--iv-text);
}
#page-inventory .iv-search input::placeholder { color: var(--iv-mute); }
#page-inventory .iv-search button {
    position: absolute; right: 4px; width: 28px; height: 28px; border-radius: 7px; cursor: pointer;
    border: 1px solid var(--iv-line); background: var(--iv-bg); color: var(--iv-mute);
}
#page-inventory .iv-search button:hover { color: var(--iv-cyan); border-color: var(--iv-cyan); }
#page-inventory .iv-toolbar select {
    height: 36px; border-radius: 9px; padding: 0 10px; font-size: 12px; font-family: inherit;
    background: var(--iv-bg2); border: 1px solid var(--iv-line); color: var(--iv-text);
}
#page-inventory .iv-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
#page-inventory .iv-btn {
    height: 34px; padding: 0 11px; border-radius: 9px; cursor: pointer; font-family: inherit;
    border: 1px solid var(--iv-line); background: var(--iv-bg2); color: var(--iv-text);
    font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
}
#page-inventory .iv-btn:hover { border-color: var(--iv-cyan); color: var(--iv-strong); }
#page-inventory .iv-btn.active { border-color: var(--iv-cyan); color: var(--iv-cyan); }
#page-inventory .iv-btn.primary { background: linear-gradient(135deg, #22d3ee, #2563eb); border: 0; color: #05121f; font-weight: 700; }

/* tablo */
#page-inventory .iv-list { background: var(--iv-bg); border: 1px solid var(--iv-line); border-radius: 14px; overflow: hidden; }
#page-inventory .iv-table { width: 100%; border-collapse: collapse; }
#page-inventory .iv-table thead th {
    text-align: left; padding: 10px 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
    text-transform: uppercase; color: var(--iv-mute); border-bottom: 1px solid var(--iv-line); background: var(--iv-bg2);
}
#page-inventory .iv-table tbody tr { border-bottom: 1px solid var(--iv-line); transition: background .12s; }
#page-inventory .iv-table tbody tr:last-child { border-bottom: 0; }
#page-inventory .iv-table tbody tr:hover { background: var(--iv-bg2); }
#page-inventory .iv-table td { padding: 7px 12px; vertical-align: middle; font-size: 12.5px; color: var(--iv-text); }
#page-inventory .iv-thumb {
    width: 34px; height: 34px; border-radius: 8px; background: var(--iv-bg2); border: 1px solid var(--iv-line);
    display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--iv-mute);
}
#page-inventory .iv-thumb img { width: 100%; height: 100%; object-fit: contain; }
#page-inventory .iv-prod { display: flex; align-items: baseline; gap: 8px; }
#page-inventory .iv-sku { font-size: 12.5px; font-weight: 700; color: var(--iv-strong); letter-spacing: .2px; }
#page-inventory .iv-tip { font-size: 10.5px; color: var(--iv-mute); font-variant-numeric: tabular-nums; }
#page-inventory .iv-ad { font-size: 11.5px; color: var(--iv-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 430px; }
#page-inventory .iv-loc {
    height: 24px; padding: 0 8px; border-radius: 6px; cursor: pointer; font-family: inherit;
    border: 1px solid var(--iv-line); background: var(--iv-bg2); color: var(--iv-text);
    font-size: 11px; font-weight: 600; letter-spacing: .2px;
}
#page-inventory .iv-loc:hover { border-color: var(--iv-cyan); color: var(--iv-cyan); }
#page-inventory .iv-loc.empty { border-style: dashed; color: var(--iv-amber); border-color: rgba(251, 191, 36, .45); }
#page-inventory .iv-loc-input {
    width: 130px; height: 24px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-family: inherit;
    border: 1px solid var(--iv-cyan); background: #fff; color: #0f172a;
}
#page-inventory .iv-site { font-size: 11px; color: var(--iv-mute); }
#page-inventory .iv-durum { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--iv-text); }
#page-inventory .iv-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
#page-inventory .iv-dot.on { background: var(--iv-green); box-shadow: 0 0 0 3px rgba(52, 211, 153, .14); }
#page-inventory .iv-dot.off { background: var(--iv-red); box-shadow: 0 0 0 3px rgba(248, 113, 113, .14); }
#page-inventory .iv-dot.none { background: var(--iv-mute); box-shadow: none; }
#page-inventory .iv-last { font-size: 11px; color: var(--iv-mute); }
#page-inventory .iv-ops { display: flex; gap: 4px; justify-content: flex-end; }
#page-inventory .iv-ops button {
    width: 26px; height: 26px; border-radius: 7px; cursor: pointer;
    border: 1px solid var(--iv-line); background: transparent; color: var(--iv-mute); font-size: 10.5px;
}
#page-inventory .iv-ops button:hover { border-color: var(--iv-cyan); color: var(--iv-cyan); }

/* ızgara */
#page-inventory .iv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
#page-inventory .iv-card {
    background: var(--iv-bg); border: 1px solid var(--iv-line); border-radius: 12px; overflow: hidden;
    display: flex; flex-direction: column;
}
#page-inventory .iv-card-img {
    height: 96px; background: var(--iv-bg2); display: flex; align-items: center; justify-content: center; color: var(--iv-mute);
}
#page-inventory .iv-card-img img { max-width: 80%; max-height: 80%; object-fit: contain; }
#page-inventory .iv-card-body { padding: 9px 11px 11px; display: flex; flex-direction: column; gap: 4px; }
#page-inventory .iv-card-sku { font-size: 12px; font-weight: 800; color: var(--iv-strong); }
#page-inventory .iv-card-ad { font-size: 11px; color: var(--iv-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#page-inventory .iv-card-meta { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
#page-inventory .iv-chip {
    font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 999px;
    background: var(--iv-bg2); border: 1px solid var(--iv-line); color: var(--iv-mute);
}
#page-inventory .iv-chip.ok { color: var(--iv-green); border-color: rgba(52, 211, 153, .4); }
#page-inventory .iv-chip.off { color: var(--iv-red); border-color: rgba(248, 113, 113, .4); }
#page-inventory .iv-chip.warn { color: var(--iv-amber); border-color: rgba(251, 191, 36, .4); }
#page-inventory .iv-empty { padding: 30px; text-align: center; color: var(--iv-mute); font-size: 13px; }
#page-inventory .iv-dots { padding: 4px 2px; color: var(--iv-mute); }

@media (max-width: 1100px) {
    #page-inventory .iv-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #page-inventory .iv-ad { max-width: 220px; }
}

/* Barkod tarayıcı — sürekli mod */
.scan-cont { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; color: #475569; margin: 8px 0 6px; cursor: pointer; }
.scan-results { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-bottom: 10px; max-height: 90px; overflow: auto; }
.scan-chip { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; display: inline-flex; gap: 6px; align-items: center; }
.scan-chip small { font-weight: 500; color: #059669; opacity: .75; }

/* Envanter araç çubuğu — tek satır */
#page-inventory .iv-toolbar { flex-wrap: nowrap; }
#page-inventory .iv-search { flex: 1 1 320px; min-width: 200px; }
#page-inventory .iv-toolbar select { flex: 0 0 auto; width: auto; min-width: 168px; max-width: 220px; }
@media (max-width: 1180px) {
    #page-inventory .iv-toolbar { flex-wrap: wrap; }
    #page-inventory .iv-toolbar select { flex: 1 1 160px; max-width: none; }
}

/* Envanter — son hareket kaynağı */
#page-inventory .iv-last { display: flex; flex-direction: column; gap: 2px; }
#page-inventory .iv-when { font-size: 11.5px; color: var(--iv-text); }
#page-inventory .iv-src {
    font-size: 9px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
    color: var(--iv-mute);
}
#page-inventory .iv-src.ord { color: var(--iv-cyan); }
#page-inventory .iv-none { font-size: 11px; color: var(--iv-mute); font-style: italic; }

/* Envanter — ürün hücresi tek satır (daha yoğun) */
#page-inventory .iv-prod { display: flex; align-items: center; gap: 8px; min-width: 0; }
#page-inventory .iv-ad { flex: 1 1 auto; min-width: 0; max-width: none; }
#page-inventory .iv-table td { padding: 5px 12px; }
#page-inventory .iv-thumb { width: 30px; height: 30px; }

/* Envanter — satır yüksekliğini sabitle */
#page-inventory .iv-table tbody tr { height: 44px; }
#page-inventory .iv-table td { padding: 4px 12px; vertical-align: middle; }
#page-inventory .iv-last { display: block; }
#page-inventory .iv-when { display: inline; }
#page-inventory .iv-src { display: inline; margin-left: 5px; }

/* Envanter — site/depo hücresi tek satır */
#page-inventory .iv-site { display: inline; }
#page-inventory .iv-durum { display: inline-flex; margin-left: 7px; }

/* Envanter — konum salt-okunur, işlem hücresi hizalı */
#page-inventory .iv-loc-ro {
    display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600;
    background: var(--iv-bg2); border: 1px solid var(--iv-line); color: var(--iv-text);
}
#page-inventory .iv-loc-ro.empty { border-style: dashed; color: var(--iv-amber); border-color: rgba(251, 191, 36, .45); }
#page-inventory .iv-ops { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: 5px; flex-wrap: nowrap; }
#page-inventory .iv-ops button { width: 28px; height: 26px; }
#page-inventory .iv-ops button.primary { border-color: rgba(34, 211, 238, .5); color: var(--iv-cyan); }
#page-inventory .iv-ops button.primary:hover { background: rgba(34, 211, 238, .12); }
#page-inventory .iv-table thead th:last-child { text-align: right; }

/* Envanter — grid satırlar (tablo yerine) */
#page-inventory .iv-list { overflow: visible; }
#page-inventory .iv-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 138px 150px 128px 84px;
    align-items: center;
    column-gap: 10px;
    padding: 7px 14px;
    border-bottom: 1px solid var(--iv-line);
    min-height: 44px;
}
#page-inventory .iv-row:last-child { border-bottom: 0; }
#page-inventory .iv-row:hover { background: var(--iv-bg2); }
#page-inventory .iv-row.iv-head {
    background: var(--iv-bg2); border-bottom: 1px solid var(--iv-line);
    font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--iv-mute);
    min-height: 34px;
}
#page-inventory .iv-check { display: flex; align-items: center; justify-content: center; }
#page-inventory .iv-empty-row { color: var(--iv-mute); font-size: 12.5px; justify-content: center; }
#page-inventory .iv-row .iv-cell { min-width: 0; display: flex; align-items: center; }
#page-inventory .iv-row .iv-cell.iv-last { flex-direction: row; gap: 6px; }
#page-inventory .iv-row .iv-ops { justify-content: flex-end; gap: 5px; }
#page-inventory .iv-right { display: flex; justify-content: flex-end; }
#page-inventory .iv-row .iv-prod { flex-wrap: nowrap; }
#page-inventory .iv-src { margin-left: 0; }

/* ============================================================
   İADE & DEĞİŞİM v2 — durum şeridi + yoğun grid
   ============================================================ */
#page-returns {
    --rt-bg: rgba(15, 23, 42, .55);
    --rt-bg2: rgba(2, 6, 23, .35);
    --rt-line: rgba(148, 163, 184, .16);
    --rt-text: #e2e8f0;
    --rt-strong: #f8fafc;
    --rt-mute: #94a3b8;
    --rt-cyan: #22d3ee;
    --rt-green: #34d399;
    --rt-red: #f87171;
    --rt-amber: #fbbf24;
    --rt-violet: #a78bfa;
}
body.admin-light-theme #page-returns {
    --rt-bg: #ffffff; --rt-bg2: #f8fafc; --rt-line: #e2e8f0;
    --rt-text: #334155; --rt-strong: #0f172a; --rt-mute: #64748b;
    --rt-cyan: #0891b2; --rt-green: #059669; --rt-red: #dc2626; --rt-amber: #b45309; --rt-violet: #7c3aed;
}
body.admin-light-theme #page-returns .rt-stat {
    background: #ffffff;
    border-color: #dbe5f1;
    color: #334155;
}
body.admin-light-theme #page-returns .rt-stat span,
body.admin-light-theme #page-returns .rt-stat small {
    color: #526783;
}
body.admin-light-theme #page-returns .rt-stat strong {
    color: #163b6a;
}
body.admin-light-theme #page-returns .rt-stat.active {
    background: #eff6ff;
    border-color: #60a5fa;
}
body.admin-light-theme #page-returns .rt-stat.active span,
body.admin-light-theme #page-returns .rt-stat.active small {
    color: #1e40af;
}
body.admin-light-theme #page-returns .rt-stat.active strong {
    color: #1d4ed8;
}
body.admin-light-theme #page-returns .rt-stat:hover {
    border-color: #0891b2;
    background: #f8fbff;
}
body.admin-light-theme #page-returns .rt-stat.warn strong {
    color: #b45309;
}

#page-returns .rt-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
#page-returns .rt-stat {
    display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: left;
    padding: 10px 13px; border-radius: 12px; cursor: pointer; font-family: inherit;
    background: var(--rt-bg); border: 1px solid var(--rt-line); color: var(--rt-text); transition: all .15s;
}
#page-returns .rt-stat:hover { border-color: var(--rt-cyan); transform: translateY(-1px); }
#page-returns .rt-stat span { font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--rt-mute); }
#page-returns .rt-stat strong { font-size: 19px; font-weight: 800; color: var(--rt-strong); font-variant-numeric: tabular-nums; }
#page-returns .rt-stat small { font-size: 10px; color: var(--rt-mute); }
#page-returns .rt-stat.active { border-color: var(--rt-cyan); background: rgba(34, 211, 238, .10); }
#page-returns .rt-stat.warn strong { color: var(--rt-amber); }

#page-returns .rt-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
#page-returns .rt-search { position: relative; flex: 1 1 260px; max-width: 460px; min-width: 220px; display: flex; align-items: center; }
#page-returns .rt-search > i { position: absolute; left: 12px; font-size: 12px; color: var(--rt-mute); pointer-events: none; }
#page-returns .rt-search input {
    width: 100%; height: 36px; border-radius: 9px; padding: 0 12px 0 33px; font-size: 12.5px; font-family: inherit;
    background: var(--rt-bg2); border: 1px solid var(--rt-line); color: var(--rt-text);
}
#page-returns .rt-toolbar select, #page-returns .rt-toolbar input[type="date"] {
    height: 36px; border-radius: 9px; padding: 0 9px; font-size: 12px; font-family: inherit;
    background: var(--rt-bg2); border: 1px solid var(--rt-line); color: var(--rt-text);
    width: auto; flex: 0 0 auto;
}
#page-returns .rt-toolbar select { min-width: 136px; max-width: 168px; }
#page-returns .rt-toolbar input[type="date"] { width: 134px; }
#page-returns .rt-actions { display: inline-flex; gap: 4px; }
#page-returns .rt-actions button {
    height: 32px; padding: 0 10px; border-radius: 8px; cursor: pointer; font-family: inherit;
    border: 1px solid var(--rt-line); background: transparent; color: var(--rt-text); font-size: 12px; font-weight: 600;
}
#page-returns .rt-actions button:hover { border-color: var(--rt-cyan); color: var(--rt-cyan); }

#page-returns .rt-bulk {
    display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 8px 12px; border-radius: 10px;
    background: rgba(34, 211, 238, .10); border: 1px solid rgba(34, 211, 238, .35); font-size: 12px; font-weight: 600;
}
#page-returns .rt-bulk span { color: var(--rt-strong); margin-right: 4px; }
#page-returns .rt-bulk button {
    height: 28px; padding: 0 10px; border-radius: 7px; cursor: pointer; font-family: inherit; font-size: 11.5px; font-weight: 600;
    border: 1px solid var(--rt-line); background: var(--rt-bg2); color: var(--rt-text);
}
#page-returns .rt-bulk button.primary { background: linear-gradient(135deg, #22d3ee, #2563eb); border: 0; color: #05121f; }

#page-returns .rt-list { background: var(--rt-bg); border: 1px solid var(--rt-line); border-radius: 14px; overflow: hidden; }
#page-returns .rt-row {
    display: grid;
    grid-template-columns: 22px 112px minmax(120px, 1fr) 72px 200px minmax(120px, 1.1fr) 92px 130px;
    align-items: center; column-gap: 10px; padding: 4px 14px;
    border-bottom: 1px solid var(--rt-line); min-height: 44px; font-size: 12px; color: var(--rt-text);
}
#page-returns .rt-row > div { display: flex; align-items: center; min-height: 0; }
#page-returns .rt-row > div.rt-no, #page-returns .rt-row > div.rt-ops, #page-returns .rt-row > div.rt-durum { display: flex; }
#page-returns .rt-row input[type="checkbox"] {
    width: 14px !important; height: 14px !important; min-width: 14px; margin: 0; padding: 0;
    accent-color: #22d3ee; cursor: pointer;
}
#page-returns .rt-row:last-child { border-bottom: 0; }
#page-returns .rt-row:hover { background: var(--rt-bg2); }
#page-returns .rt-row.rt-head {
    background: var(--rt-bg2); min-height: 32px; padding: 0 14px; font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
    text-transform: uppercase; color: var(--rt-mute);
}
#page-returns .rt-right { display: flex; justify-content: flex-end; }
#page-returns .rt-empty { color: var(--rt-mute); justify-content: center; }
#page-returns .rt-no { display: flex; align-items: center; gap: 5px; font-weight: 700; color: var(--rt-strong); }
#page-returns .rt-copy { border: 0; background: transparent; color: var(--rt-mute); cursor: pointer; font-size: 10px; padding: 0; }
#page-returns .rt-copy:hover { color: var(--rt-cyan); }
#page-returns .rt-cust { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#page-returns .rt-tur {
    display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .3px;
    background: var(--rt-bg2); border: 1px solid var(--rt-line); color: var(--rt-mute);
}
#page-returns .rt-tur.iade { color: var(--rt-cyan); border-color: rgba(34, 211, 238, .45); }
#page-returns .rt-tur.degisim { color: var(--rt-violet); border-color: rgba(167, 139, 250, .45); }
#page-returns .rt-tur.iptal { color: var(--rt-red); border-color: rgba(248, 113, 113, .45); }
#page-returns .rt-durum { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; overflow: hidden; }
#page-returns .rt-badge {
    padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; white-space: nowrap;
    background: var(--rt-bg2); border: 1px solid var(--rt-line); color: var(--rt-text);
}
#page-returns .rt-badge.bizde { color: var(--rt-amber); border-color: rgba(251, 191, 36, .45); }
#page-returns .rt-badge.odeme { color: var(--rt-green); border-color: rgba(52, 211, 153, .45); }
#page-returns .rt-badge.degisim { color: var(--rt-cyan); border-color: rgba(34, 211, 238, .45); }
#page-returns .rt-badge.kapandi { color: var(--rt-mute); }
#page-returns .rt-asama { font-size: 10px; color: var(--rt-mute); white-space: nowrap; }
#page-returns .rt-yas { font-size: 9.5px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--rt-bg2); color: var(--rt-mute); white-space: nowrap; }
#page-returns .rt-yas.warn { color: var(--rt-amber); background: rgba(251, 191, 36, .12); }
#page-returns .rt-yas.danger { color: var(--rt-red); background: rgba(248, 113, 113, .14); }
#page-returns .rt-prod { font-size: 11px; color: var(--rt-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#page-returns .rt-money { font-weight: 700; color: var(--rt-strong); font-variant-numeric: tabular-nums; }
#page-returns .rt-muted { color: var(--rt-mute); }
#page-returns .rt-ops { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
#page-returns .rt-ops button {
    width: 26px; height: 26px; border-radius: 7px; cursor: pointer; font-size: 10.5px;
    border: 1px solid var(--rt-line); background: transparent; color: var(--rt-mute);
}
#page-returns .rt-ops button:hover { border-color: var(--rt-cyan); color: var(--rt-cyan); }
#page-returns .rt-ops button.primary { border-color: rgba(34, 211, 238, .5); color: var(--rt-cyan); }
#page-returns .rt-ops button.danger:hover { border-color: var(--rt-red); color: var(--rt-red); }
#page-returns .rt-qb { font-weight: 800; }
#page-returns .rt-qb.ok { color: var(--rt-green); border-color: rgba(52, 211, 153, .45); }
#page-returns .rt-qb.no { color: var(--rt-red); border-color: rgba(248, 113, 113, .45); }
#page-returns .rt-qb.ok:hover { background: rgba(52, 211, 153, .14); }
#page-returns .rt-qb.no:hover { background: rgba(248, 113, 113, .14); }

@media (max-width: 1200px) {
    #page-returns .rt-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #page-returns .rt-row { grid-template-columns: 24px 100px 1fr 70px 180px 120px 80px 120px; font-size: 11.5px; }
}
@media (max-width: 600px) {
    #page-returns .rt-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    #page-returns .rt-stat { min-width: 0; padding: 10px; }
    #page-returns .rt-stat span { font-size: 9px; }
    #page-returns .rt-stat strong { font-size: 17px; }
}

#page-returns .rt-uyari { color: #fbbf24; font-size: 10px; margin-left: 2px; }
#rtReasonOverlay .rt-insight-title { font-size: 10.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #64748b; margin: 2px 0 0; }
#rtReasonOverlay { position: fixed; inset: 0; z-index: 2000; background: rgba(2, 6, 23, .72); display: flex; align-items: center; justify-content: center; padding: 24px; }
#rtReasonOverlay .rt-modal { width: min(560px, 96vw); max-height: 84vh; overflow: auto; border-radius: 16px; background: #0b1220; border: 1px solid rgba(148, 163, 184, .22); color: #e2e8f0; }
#rtReasonOverlay .rt-modal-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid rgba(148, 163, 184, .16); }
#rtReasonOverlay .rt-modal-head strong { font-size: 14px; }
#rtReasonOverlay .rt-modal-head span { font-size: 11px; color: #94a3b8; }
#rtReasonOverlay .rt-modal-head button { margin-left: auto; border: 0; background: transparent; color: #94a3b8; cursor: pointer; font-size: 13px; }
#rtReasonOverlay .rt-modal-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
#rtReasonOverlay .rt-reason-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
#rtReasonOverlay .rt-reason-top strong { color: #f8fafc; font-variant-numeric: tabular-nums; }
#rtReasonOverlay .rt-reason-bar { height: 5px; border-radius: 999px; background: rgba(148, 163, 184, .18); margin: 5px 0 3px; overflow: hidden; }
#rtReasonOverlay .rt-reason-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #22d3ee, #3b82f6); }
#rtReasonOverlay .rt-reason-sub { font-size: 10.5px; color: #94a3b8; }
/* ============================================================
   İADE MODAL — adım adım sihirbaz (tek bölüm görünür)
   Koyu tema varsayılan, .admin-light-theme aydınlık
   ============================================================ */
#modalReturn .rt-step-panel {
    margin: 2px 0 16px; padding: 12px 14px; border-radius: 12px;
    background: rgba(15, 23, 42, .55); border: 1px solid rgba(148, 163, 184, .2);
}
#modalReturn .rt-steps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#modalReturn .rt-step {
    display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
    background: rgba(30, 41, 59, .7); border: 1px solid rgba(148, 163, 184, .22); color: #94A3B8;
    font-size: 12px; font-weight: 600; white-space: nowrap;
}
#modalReturn .rt-step-no {
    width: 18px; height: 18px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(148, 163, 184, .25); color: #CBD5E1; font-size: 10.5px; font-weight: 800;
}
#modalReturn .rt-step.active { background: rgba(34, 211, 238, .13); border-color: #22D3EE; color: #E0F2FE; box-shadow: 0 0 0 3px rgba(34, 211, 238, .12); }
#modalReturn .rt-step.active .rt-step-no { background: #22D3EE; color: #04141c; }
#modalReturn .rt-step.done { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .45); color: #6EE7B7; }
#modalReturn .rt-step.done .rt-step-no { background: #34D399; color: #04231a; }
#modalReturn .rt-step.done.gecmis { cursor: pointer; }
#modalReturn .rt-step-line { flex: 0 0 14px; height: 2px; background: rgba(148, 163, 184, .28); border-radius: 2px; }
#modalReturn .rt-step-note { margin-top: 9px; font-size: 11.5px; color: #94A3B8; line-height: 1.5; }
#modalReturn .rt-step-note strong { color: #E2E8F0; }

#modalReturn .rt-step-body { min-height: 280px; }
#modalReturn .rt-step-section.rt-gizli { display: none !important; }
#modalReturn .rt-sec-title {
    display: flex; align-items: center; gap: 8px; margin: 0 0 6px;
    font-size: 14px; font-weight: 800; color: #F1F5F9;
}
#modalReturn .rt-sec-title i { color: #22D3EE; font-size: 13px; }
#modalReturn .rt-hint { margin: 0 0 14px; font-size: 12px; color: #94A3B8; line-height: 1.55; }
#modalReturn .rt-field-label { display: block; margin: 14px 0 6px; font-size: 12px; font-weight: 700; color: #CBD5E1; }
#modalReturn #productSelectionArea { margin: 0; }

#modalReturn .rt-summary {
    margin-top: 14px; padding: 12px 14px; border-radius: 12px;
    background: rgba(2, 6, 23, .45); border: 1px solid rgba(148, 163, 184, .2);
    display: flex; flex-direction: column; gap: 7px;
}
#modalReturn .rt-summary:empty { display: none; }
#modalReturn .rt-sum-row { display: flex; align-items: baseline; gap: 12px; font-size: 12.5px; }
#modalReturn .rt-sum-row > span { color: #94A3B8; min-width: 132px; }
#modalReturn .rt-sum-row > strong { color: #E2E8F0; font-weight: 700; }
#modalReturn .rt-odeme-not {
    margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-size: 12px;
    background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .35); color: #A5F3FC;
}
#modalReturn .rt-odeme-not:empty { display: none; }

#modalReturn .rt-modal-footer {
    display: flex; align-items: center; gap: 10px; justify-content: flex-end;
    margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(148, 163, 184, .18);
}
#modalReturn .rt-modal-footer .btn-secondary,
#modalReturn .rt-modal-footer .btn-primary {
    width: auto !important; flex: 0 0 auto !important; min-width: 110px; padding: 0 18px;
}
#modalReturn .rt-modal-footer #btnSaveReturn { min-width: 96px; }
#modalReturn .rt-btn-danger {
    margin-right: auto; height: 44px; padding: 0 16px; border-radius: 10px; cursor: pointer;
    background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .45); color: #FCA5A5;
    font-weight: 700; font-size: 13px;
}
#modalReturn .rt-btn-danger:hover { background: rgba(248, 113, 113, .2); }
#modalReturn .rt-btn-danger.hidden,
#modalReturn #rtPrevBtn.hidden,
#modalReturn #rtNextBtn.hidden { display: none !important; }

/* ---------- aydınlık tema ---------- */
body.admin-light-theme #modalReturn .rt-step-panel { background: #F8FAFC; border-color: #E2E8F0; }
body.admin-light-theme #modalReturn .rt-step { background: #F1F5F9; border-color: #E2E8F0; color: #64748B; }
body.admin-light-theme #modalReturn .rt-step-no { background: #E2E8F0; color: #475569; }
body.admin-light-theme #modalReturn .rt-step.active { background: #EFF6FF; border-color: #3B82F6; color: #1D4ED8; box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); }
body.admin-light-theme #modalReturn .rt-step.active .rt-step-no { background: #3B82F6; color: #fff; }
body.admin-light-theme #modalReturn .rt-step.done { background: #F0FDF4; border-color: #86EFAC; color: #15803D; }
body.admin-light-theme #modalReturn .rt-step.done .rt-step-no { background: #22C55E; color: #fff; }
body.admin-light-theme #modalReturn .rt-step-line { background: #E2E8F0; }
body.admin-light-theme #modalReturn .rt-step-note { color: #64748B; }
body.admin-light-theme #modalReturn .rt-step-note strong { color: #0F172A; }
body.admin-light-theme #modalReturn .rt-sec-title { color: #0F172A; }
body.admin-light-theme #modalReturn .rt-sec-title i { color: #3B82F6; }
body.admin-light-theme #modalReturn .rt-hint { color: #64748B; }
body.admin-light-theme #modalReturn .rt-field-label { color: #334155; }
body.admin-light-theme #modalReturn .rt-summary { background: #F8FAFC; border-color: #E2E8F0; }
body.admin-light-theme #modalReturn .rt-sum-row > span { color: #64748B; }
body.admin-light-theme #modalReturn .rt-sum-row > strong { color: #0F172A; }
body.admin-light-theme #modalReturn .rt-odeme-not { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }
body.admin-light-theme #modalReturn .rt-btn-danger { background: #FEF2F2; border-color: #FCA5A5; color: #B91C1C; }

/* ============================================================
   İADE MODAL — ürün seçimi kartı (kompakt, kaydırmalı)
   ============================================================ */
#modalReturn .rt-prod-card { padding: 0; overflow: hidden; border: 1px solid rgba(148, 163, 184, .22); background: rgba(2, 6, 23, .35); }
#modalReturn .rt-prod-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 14px; border-bottom: 1px solid rgba(148, 163, 184, .18);
    background: rgba(15, 23, 42, .55);
}
#modalReturn .rt-prod-head-left { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: #E2E8F0; }
#modalReturn .rt-prod-head-left i { color: #22D3EE; font-size: 12px; }
#modalReturn .rt-prod-sayi {
    font-weight: 600; font-size: 11px; color: #94A3B8; padding: 3px 8px; border-radius: 999px;
    background: rgba(148, 163, 184, .14);
}
#modalReturn .rt-prod-head-right { display: flex; gap: 6px; }
#modalReturn .rt-prod-head-right button {
    height: 26px; padding: 0 10px; border-radius: 7px; cursor: pointer; font-family: inherit;
    font-size: 11px; font-weight: 600; background: transparent; color: #94A3B8;
    border: 1px solid rgba(148, 163, 184, .28);
}
#modalReturn .rt-prod-head-right button:hover { color: #22D3EE; border-color: #22D3EE; }

body:not(.portal-body) #modalReturnContent #productSelectionArea #orderProductList.rt-prod-list {
    max-height: 330px !important; height: auto !important; overflow-y: auto !important;
    padding: 8px; display: flex; flex-direction: column; gap: 6px;
    scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, .45) transparent;
}
#modalReturn .rt-prod-list::-webkit-scrollbar { width: 8px; }
#modalReturn .rt-prod-list::-webkit-scrollbar-track { background: transparent; }
#modalReturn .rt-prod-list::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .35); border-radius: 8px; }
#modalReturn .rt-prod-list::-webkit-scrollbar-thumb:hover { background: rgba(34, 211, 238, .55); }

#modalReturn .rt-prod-row {
    display: grid !important; grid-template-columns: 18px 82px minmax(0, 1fr) 84px 96px 96px;
    align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; cursor: pointer;
    border: 1px solid rgba(148, 163, 184, .16); background: rgba(15, 23, 42, .45);
    transition: border-color .12s, background .12s;
    margin: 0 !important; min-height: 42px; font-weight: 400; line-height: 1.25;
}
#modalReturn .rt-prod-row:hover { border-color: rgba(34, 211, 238, .45); background: rgba(15, 23, 42, .7); }
#modalReturn .rt-prod-row:has(.return-product-check:checked) { border-color: rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .07); }
#modalReturn .rt-prod-row input[type="checkbox"] {
    width: 15px; height: 15px; margin: 0; accent-color: #34D399; cursor: pointer;
}
#modalReturn .rt-prod-sku { font-size: 11.5px; font-weight: 800; color: #7DD3FC; letter-spacing: .2px; }
#modalReturn .rt-prod-name {
    font-size: 11.5px; color: #CBD5E1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#modalReturn .rt-prod-meta { font-size: 10px; color: #64748B; white-space: nowrap; text-align: right; }
#modalReturn .rt-prod-price { font-size: 12px; font-weight: 700; color: #E2E8F0; text-align: right; white-space: nowrap; }
#modalReturn .rt-prod-qty { display: flex; align-items: center; gap: 3px; justify-content: flex-end; }
#modalReturn .rt-prod-qty input {
    width: 44px; height: 26px; min-height: 26px; padding: 0; text-align: center; font-size: 12px; font-weight: 700;
    border-radius: 6px; border: 1px solid rgba(148, 163, 184, .3); background: rgba(2, 6, 23, .6); color: #E2E8F0;
}
#modalReturn .rt-prod-qty input::-webkit-outer-spin-button,
#modalReturn .rt-prod-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#modalReturn .rt-qbtn {
    width: 22px; height: 26px; border-radius: 6px; cursor: pointer; font-size: 13px; line-height: 1;
    border: 1px solid rgba(148, 163, 184, .28); background: transparent; color: #94A3B8; font-weight: 700;
}
#modalReturn .rt-qbtn:hover { color: #22D3EE; border-color: #22D3EE; }

/* aydınlık tema */
body.admin-light-theme #modalReturn .rt-prod-card { background: #fff; border-color: #E2E8F0; }
body.admin-light-theme #modalReturn .rt-prod-head { background: #F8FAFC; border-color: #E2E8F0; }
body.admin-light-theme #modalReturn .rt-prod-head-left { color: #0F172A; }
body.admin-light-theme #modalReturn .rt-prod-head-left i { color: #2563EB; }
body.admin-light-theme #modalReturn .rt-prod-sayi { background: #E2E8F0; color: #475569; }
body.admin-light-theme #modalReturn .rt-prod-head-right button { color: #64748B; border-color: #E2E8F0; }
body.admin-light-theme #modalReturn .rt-prod-row { background: #fff; border-color: #E2E8F0; }
body.admin-light-theme #modalReturn .rt-prod-row:hover { border-color: #93C5FD; background: #F8FAFC; }
body.admin-light-theme #modalReturn .rt-prod-row:has(.return-product-check:checked) { border-color: #86EFAC; background: #F0FDF4; }
body.admin-light-theme #modalReturn .rt-prod-sku { color: #1D4ED8; }
body.admin-light-theme #modalReturn .rt-prod-name { color: #334155; }
body.admin-light-theme #modalReturn .rt-prod-meta { color: #94A3B8; }
body.admin-light-theme #modalReturn .rt-prod-price { color: #0F172A; }
body.admin-light-theme #modalReturn .rt-prod-qty input { background: #fff; border-color: #E2E8F0; color: #0F172A; }
body.admin-light-theme #modalReturn .rt-qbtn { color: #64748B; border-color: #E2E8F0; }
body.admin-light-theme #modalReturn .rt-qbtn:hover { color: #2563EB; border-color: #2563EB; }

@media (max-width: 900px) {
    #modalReturn .rt-prod-row { grid-template-columns: 18px 70px minmax(0, 1fr) 84px 96px; }
    #modalReturn .rt-prod-meta { display: none; }
}

/* ==============================================================================
   AYDINLIK TEMA KONTRAST DÜZELTMELERİ — WCAG 2.1 AA
   Ölçüm: gerçek DOM üzerinde hesaplanmış renk/zemin çiftleri (2026-11-14).
   Hedef: normal metin 4.5:1, büyük metin 3:1. Yalnız aydınlık temayı etkiler.
   Bu blok dosyanın sonundadır; aynı özgüllükteki önceki kuralları ezer.
   ============================================================================== */

/* 1. Sayfa bazlı ikincil metin belirteçleri (soluk gri tonları koyulaştırıldı)
      --text-muted yalnız panel gövdesinde koyulaştırılır; satır içi kullanımlar da düzelir. */
body.admin-light-theme:not(.portal-body) #mainPanel { --text-muted: #475569; }
body.admin-light-theme:not(.portal-body) #mainPanel #page-dashboard { --db-faint: #64748b; --db-cyan: #0e7490; }
body.admin-light-theme #page-reports { --rp-faint: #64748b; --rp-muted: #475569; }
body.admin-light-theme #page-inventory { --iv-mute: #475569; }

/* 2. Analiz Merkezi açıklama metinleri (zemin #f1f5f9) */
body.admin-light-theme:not(.portal-body) #page-reports p,
body.admin-light-theme:not(.portal-body) #page-reports small { color: #475569 !important; }

/* 3. Gösterge paneli rozetleri, üst etiket ve dönem düğmesi */
body.admin-light-theme:not(.portal-body) #mainPanel #page-dashboard .dk-tile-b {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}
body.admin-light-theme:not(.portal-body) #mainPanel #page-dashboard button.active { color: #0e7490 !important; }

/* 4. Depo envanteri */
body.admin-light-theme:not(.portal-body) #page-inventory strong { color: #0f172a !important; }

/* 5. Birincil buton — beyaz metin #2563eb üzerinde 5.17:1 */
body.admin-light-theme:not(.portal-body) .btn-primary { background: #2563eb !important; color: #ffffff !important; }
body.admin-light-theme:not(.portal-body) .btn-primary:hover { background: #1d4ed8 !important; }

/* 6. Modal kapatma, satır içi renkler ve koyu tema kalıntıları */
body.admin-light-theme:not(.portal-body) .close,
body.admin-light-theme:not(.portal-body) .close-btn,
body.admin-light-theme:not(.portal-body) #modalReturnContent > .close,
body.admin-light-theme:not(.portal-body) #modalDiscountManager .modal-content > div:first-child .close {
    color: #475569 !important;
}
body.admin-light-theme:not(.portal-body) .modal-content [style*="color:#64748b"],
body.admin-light-theme:not(.portal-body) .modal-content [style*="color: #64748b"] { color: #475569 !important; }
body.admin-light-theme:not(.portal-body) .modal-content [style*="background:#fff"],
body.admin-light-theme:not(.portal-body) .modal-content [style*="background: #fff"] {
    background: #ffffff !important;
    color: #0f172a !important;
}
body.admin-light-theme:not(.portal-body) #modalDiscountManager .modal-content > div:last-child label { color: #92400e !important; }
body.admin-light-theme:not(.portal-body) #modalDiscountManager button[onclick="addNewTier()"] { color: #b45309 !important; }
body.admin-light-theme:not(.portal-body) #modalDesiEntry .modal-content > div:has(#desiCalculated) label { color: #0369a1 !important; }

/* 7. Toptan satış: iskonto yeşilleri ve tehlike kırmızıları */
body.admin-light-theme:not(.portal-body) #page-wholesale .summary-row.discount-row span:last-child { color: #15803d !important; }
body.admin-light-theme:not(.portal-body) #page-wholesale button[onclick="addReturnRow()"] { color: #b91c1c !important; }
body.admin-light-theme:not(.portal-body) #mainPanel .nav-btn.logout { color: #b91c1c !important; }

/* 8. JS'in satır içi soluk gri tonları (büyük/küçük harf duyarsız) */
body.admin-light-theme:not(.portal-body) #mainPanel [style*="color:#94a3b8" i],
body.admin-light-theme:not(.portal-body) #mainPanel [style*="color: #94a3b8" i],
body.admin-light-theme:not(.portal-body) .modal-content [style*="color:#94a3b8" i],
body.admin-light-theme:not(.portal-body) .modal-content [style*="color: #94a3b8" i] { color: #64748b !important; }
body.admin-light-theme:not(.portal-body) #mainPanel p[style*="color:#64748b"],
body.admin-light-theme:not(.portal-body) #mainPanel p[style*="color: #64748b"] { color: #475569 !important; }

/* 9. Modal içi satır içi gri tonları (#666/#555 -> gece temasında #94a3b8 yapılıyordu) */
body.admin-light-theme:not(.portal-body) .modal-content [style*="color:#666"],
body.admin-light-theme:not(.portal-body) .modal-content [style*="color: #666"],
body.admin-light-theme:not(.portal-body) .modal-content [style*="color:#555"],
body.admin-light-theme:not(.portal-body) .modal-content [style*="color: #555"],
body.admin-light-theme:not(.portal-body) .modal-content [style*="color:#475569"],
body.admin-light-theme:not(.portal-body) .modal-content [style*="color: #475569"] {
    color: #475569 !important;
}

/* 10. İskonto yönetimi modalinde koyu kalan iç panel */
body.admin-light-theme:not(.portal-body) #modalDiscountManager .modal-content > div:last-child {
    background: #ffffff !important;
    border-top-color: #e2e8f0 !important;
}
body.admin-light-theme:not(.portal-body) #modalDiscountManager .modal-content > div:last-child > div:first-of-type,
body.admin-light-theme:not(.portal-body) #modalDiscountManager .modal-content > div:nth-child(2) > div:first-child {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

/* ==============================================================================
   AYLIK KARGO TAKİBİ (Kargo Desi Kontrol > 2. sekme)
   Kapsam: #page-desi .kt-* — gece teması varsayılan, aydınlık tema override'ları
   bloğun sonunda. Mevcut desi stillerine dokunmaz.
   ============================================================================== */

#page-desi .kt-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap; margin-bottom: 14px;
}
#page-desi .kt-month-nav { display: flex; align-items: center; gap: 8px; }
#page-desi .kt-month-nav .kt-nav-btn { width: 40px; height: 42px; padding: 0; }
#page-desi .kt-month-input {
    height: 42px; min-width: 150px; padding: 0 12px; margin: 0;
    border-radius: 8px; border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(2, 6, 23, 0.45); color: #e2e8f0;
    font-weight: 600; font-size: 13px; color-scheme: dark;
}
#page-desi .kt-today-btn { height: 42px; }
#page-desi .kt-month-label {
    font-size: 14px; font-weight: 700; color: #e2e8f0;
    padding: 0 4px; white-space: nowrap;
}
#page-desi .kt-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#page-desi .kt-actions .btn-primary,
#page-desi .kt-actions .btn-secondary { height: 42px; }
#page-desi .kt-excel-btn { color: #34d399; border-color: rgba(52, 211, 153, 0.45); }
#page-desi .kt-pdf-btn { color: #fca5a5; border-color: rgba(248, 113, 113, 0.45); }

#page-desi .kt-save-status {
    font-size: 12px; font-weight: 600; color: #94a3b8;
    min-height: 18px; display: inline-flex; align-items: center; gap: 6px;
}
#page-desi .kt-save-ok { color: #34d399; }
#page-desi .kt-save-hata { color: #fca5a5; }
#page-desi .kt-save-bekliyor { color: #fbbf24; }

/* İstatistik kartları */
#page-desi .kt-stats {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px; margin-bottom: 12px;
}
#page-desi .kt-stat {
    border: 1px solid rgba(34, 211, 238, 0.16); border-radius: 12px;
    background: rgba(15, 23, 42, 0.72); padding: 12px 14px;
    display: flex; flex-direction: column; gap: 3px;
}
#page-desi .kt-stat span { font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #94a3b8; }
#page-desi .kt-stat strong { font-size: 22px; font-weight: 800; color: #f8fafc; line-height: 1.15; font-variant-numeric: tabular-nums; }
#page-desi .kt-stat strong small { font-size: 13px; font-weight: 700; color: #94a3b8; }
#page-desi .kt-stat em { font-style: normal; font-size: 10.5px; color: #64748b; }
#page-desi .kt-stat-main { border-color: rgba(59, 130, 246, 0.45); }
#page-desi .kt-stat-main strong { color: #93c5fd; }
#page-desi .kt-stat-koli { border-color: rgba(251, 191, 36, 0.4); }
#page-desi .kt-stat-koli strong { color: #fbbf24; }

/* Yüzde şeridi */
#page-desi .kt-ratios {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 6px 18px; margin-bottom: 14px;
}
#page-desi .kt-ratio { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #cbd5e1; }
#page-desi .kt-ratio-ad { width: 86px; flex: 0 0 auto; }
#page-desi .kt-ratio-bar { flex: 1; height: 6px; border-radius: 4px; background: rgba(148, 163, 184, 0.22); overflow: hidden; }
#page-desi .kt-ratio-bar i { display: block; height: 100%; background: linear-gradient(90deg, #22d3ee, #3b82f6); }
#page-desi .kt-ratio-deger { width: 48px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
#page-desi .kt-ratio-koli { grid-column: 1 / -1; color: #94a3b8; font-size: 11.5px; }
#page-desi .kt-ratio-not { font-style: italic; }

/* Günlük çizelge */
#page-desi .kt-table-wrap {
    overflow: auto; max-height: 68vh; border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18); background: rgba(2, 6, 23, 0.35);
}
#page-desi .kt-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 900px; }
#page-desi .kt-table thead th {
    position: sticky; top: 0; z-index: 2;
    background: rgba(15, 23, 42, 0.96); color: #cbd5e1;
    font-size: 11px; font-weight: 700; line-height: 1.25;
    padding: 10px 6px; text-align: center; white-space: nowrap;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}
#page-desi .kt-table thead th.kt-col-date { left: 0; z-index: 3; text-align: left; padding-left: 14px; min-width: 92px; }
#page-desi .kt-table thead th.kt-col-total,
#page-desi .kt-table tbody td.kt-row-total,
#page-desi .kt-table tfoot td.kt-grand-total { padding-right: 14px; }
#page-desi .kt-th-sub { font-size: 9.5px; font-weight: 600; color: #64748b; }
#page-desi .kt-table tbody td,
#page-desi .kt-table tfoot td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    padding: 0 4px; height: 40px; text-align: center;
    font-variant-numeric: tabular-nums; color: #e2e8f0;
}
#page-desi .kt-table tbody td.kt-date {
    position: sticky; left: 0; z-index: 1;
    background: rgba(2, 6, 23, 0.92); text-align: left; padding-left: 14px;
    font-weight: 700; color: #cbd5e1; white-space: nowrap;
}
#page-desi .kt-day { font-size: 13px; }
#page-desi .kt-wd { font-size: 10px; text-transform: uppercase; letter-spacing: .3px; color: #64748b; margin-left: 6px; }
#page-desi .kt-today td.kt-date { color: #22d3ee; }
#page-desi .kt-today { box-shadow: inset 3px 0 0 #22d3ee; }
#page-desi .kt-sunday td.kt-date { color: #94a3b8; opacity: .85; }
#page-desi .kt-row:hover td { background: rgba(59, 130, 246, 0.06); }
#page-desi .kt-table tbody tr.kt-today:hover td { background: rgba(34, 211, 238, 0.08); }

#page-desi .kt-input {
    width: 100%; min-width: 58px; height: 34px; margin: 0; padding: 0 6px;
    text-align: center; font-size: 13px; font-weight: 600;
    font-variant-numeric: tabular-nums; color: inherit;
    background: transparent; border: 1px solid transparent; border-radius: 6px;
    transition: border-color .15s ease, background .15s ease;
}
#page-desi .kt-input:hover { border-color: rgba(148, 163, 184, 0.35); }
#page-desi .kt-input:focus {
    outline: none; border-color: #3b82f6; background: rgba(59, 130, 246, 0.12);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
#page-desi .kt-input-error { border-color: #f87171 !important; color: #fca5a5 !important; }
#page-desi .kt-row-total { font-weight: 700; color: #93c5fd; }
#page-desi .kt-koli-cell { white-space: nowrap; }
#page-desi .kt-koli-val.kt-koli-zero {
    background: transparent; border-color: transparent; color: #64748b; font-weight: 600;
}
#page-desi .kt-koli-val {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 26px; padding: 0 8px; border-radius: 999px;
    background: rgba(251, 191, 36, 0.14); color: #fbbf24;
    font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums;
    border: 1px solid rgba(251, 191, 36, 0.25);
}
#page-desi .kt-table tfoot td { background: rgba(15, 23, 42, 0.85); font-weight: 800; font-size: 13px; height: 44px; }
#page-desi .kt-table tfoot td.kt-date { position: sticky; left: 0; z-index: 1; background: rgba(15, 23, 42, 0.96); font-size: 11px; letter-spacing: .4px; }
#page-desi .kt-koli-toplam { color: #fbbf24; }
#page-desi .kt-grand-total { color: #93c5fd; font-size: 15px !important; }
#page-desi .kt-empty { padding: 26px; color: #94a3b8; text-align: center; }
#page-desi .kt-empty-error { color: #fca5a5; }
#page-desi .kt-hint { margin: 10px 0 0; font-size: 11.5px; color: #94a3b8; display: flex; gap: 7px; align-items: flex-start; }
#page-desi .kt-hint i { margin-top: 2px; }

/* Mobil */
@media (max-width: 900px) {
    #page-desi .kt-toolbar { flex-direction: column; align-items: stretch; }
    #page-desi .kt-month-nav { display: grid; grid-template-columns: 40px 1fr 40px; gap: 8px; align-items: center; }
    #page-desi .kt-month-input { grid-column: 2; width: 100%; min-width: 0; }
    #page-desi .kt-month-nav > .kt-nav-btn:nth-of-type(1) { grid-column: 1; grid-row: 1; }
    #page-desi .kt-month-nav > .kt-nav-btn:nth-of-type(2) { grid-column: 3; grid-row: 1; }
    #page-desi .kt-month-label { grid-column: 1 / -1; font-size: 13px; }
    #page-desi .kt-today-btn { grid-column: 1 / -1; width: 100%; }
    #page-desi .kt-actions { justify-content: space-between; }
    #page-desi .kt-actions .btn-primary,
    #page-desi .kt-actions .btn-secondary { flex: 1 1 auto; }
    #page-desi .kt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #page-desi .kt-stat-main, #page-desi .kt-stat-koli { grid-column: span 1; }
    #page-desi .kt-input { height: 42px; font-size: 15px; min-width: 64px; }
    #page-desi .kt-table-wrap { max-height: none; }
    #page-desi .kt-table { min-width: 840px; }
}

/* Aydınlık tema */
body.admin-light-theme #page-desi .kt-month-label { color: #0f172a; }
body.admin-light-theme #page-desi .kt-month-input {
    background: #ffffff; color: #0f172a; border-color: #cbd5e1; color-scheme: light;
}
body.admin-light-theme #page-desi .kt-stat { background: #ffffff; border-color: #e2e8f0; }
body.admin-light-theme #page-desi .kt-stat span { color: #475569; }
body.admin-light-theme #page-desi .kt-stat strong { color: #0f172a; }
body.admin-light-theme #page-desi .kt-stat strong small { color: #475569; }
body.admin-light-theme #page-desi .kt-stat em { color: #475569; }
body.admin-light-theme #page-desi .kt-stat-main { border-color: #bfdbfe; background: #f8fbff; }
body.admin-light-theme #page-desi .kt-stat-main strong { color: #1d4ed8; }
body.admin-light-theme #page-desi .kt-stat-koli { border-color: #fde68a; background: #fffdf5; }
body.admin-light-theme #page-desi .kt-stat-koli strong { color: #92400e; }
body.admin-light-theme #page-desi .kt-ratio { color: #334155; }
body.admin-light-theme #page-desi .kt-ratio-bar { background: #e2e8f0; }
body.admin-light-theme #page-desi .kt-ratio-bar i { background: linear-gradient(90deg, #0891b2, #2563eb); }
body.admin-light-theme #page-desi .kt-ratio-koli { color: #475569; }
body.admin-light-theme #page-desi .kt-table-wrap { background: #ffffff; border-color: #e2e8f0; }
body.admin-light-theme #page-desi .kt-table thead th { background: #f1f5f9; color: #334155; border-bottom-color: #cbd5e1; }
body.admin-light-theme #page-desi .kt-th-sub { color: #475569; }
body.admin-light-theme #page-desi .kt-table tbody td,
body.admin-light-theme #page-desi .kt-table tfoot td { border-bottom-color: #eef2f7; color: #1e293b; }
body.admin-light-theme #page-desi .kt-table tbody td.kt-date { background: #f8fafc; color: #334155; }
body.admin-light-theme #page-desi .kt-wd { color: #475569; }
body.admin-light-theme #page-desi .kt-today td.kt-date { color: #0369a1; }
body.admin-light-theme #page-desi .kt-today { box-shadow: inset 3px 0 0 #0891b2; }
body.admin-light-theme #page-desi .kt-row:hover td { background: #f8fafc; }
body.admin-light-theme #page-desi .kt-table tbody tr.kt-today:hover td { background: #f0f9ff; }
body.admin-light-theme #page-desi .kt-input:focus { background: #eff6ff; border-color: #2563eb; }
body.admin-light-theme #page-desi .kt-input-error { border-color: #dc2626 !important; color: #b91c1c !important; background: #fef2f2; }
body.admin-light-theme #page-desi .kt-row-total { color: #1d4ed8; }
body.admin-light-theme #page-desi .kt-koli-val { background: #fef3c7; color: #92400e; border-color: #fde68a; }
body.admin-light-theme #page-desi .kt-koli-val.kt-koli-zero { background: transparent; border-color: transparent; color: #475569; }
body.admin-light-theme #page-desi .kt-table tfoot td { background: #e2e8f0; color: #0f172a; }
body.admin-light-theme #page-desi .kt-table tfoot td.kt-date { background: #cbd5e1; }
body.admin-light-theme #page-desi .kt-koli-toplam { color: #92400e; }
body.admin-light-theme #page-desi .kt-grand-total { color: #1d4ed8; }
body.admin-light-theme #page-desi .kt-empty { color: #475569; }
body.admin-light-theme #page-desi .kt-empty-error { color: #b91c1c; }
body.admin-light-theme #page-desi .kt-hint { color: #475569; }
body.admin-light-theme #page-desi .kt-save-status { color: #475569; }
body.admin-light-theme #page-desi .kt-save-ok { color: #15803d; }
body.admin-light-theme #page-desi .kt-save-hata { color: #b91c1c; }
body.admin-light-theme #page-desi .kt-save-bekliyor { color: #92400e; }
body.admin-light-theme #page-desi .kt-excel-btn { color: #15803d; border-color: #86efac; background: #f0fdf4; }
body.admin-light-theme #page-desi .kt-pdf-btn { color: #b91c1c; border-color: #fca5a5; background: #fef2f2; }


/* ============================================================
   PROFIL / HESAP MENUSU + AYARLAR SAYFASI  (2026-11-15)
   Kapsam: yalnız #mainPanel; mevcut kural/!important zincirlerine dokunmaz.
   ============================================================ */

/* --- 1. Profil menüsü: üst komuta barının sağı --- */
body:not(.portal-body) #mainPanel .profile-menu {
    position: relative;
    order: 3;
    margin-left: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

body:not(.portal-body) #mainPanel .profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 11px 5px 5px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.66);
    color: #e2e8f0;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

body:not(.portal-body) #mainPanel .profile-trigger:hover {
    border-color: rgba(34, 211, 238, 0.5);
    background: rgba(8, 47, 73, 0.62);
    color: #f8fafc;
}

body:not(.portal-body) #mainPanel .profile-trigger:focus-visible {
    outline: 2px solid rgba(34, 211, 238, 0.7);
    outline-offset: 2px;
}

body:not(.portal-body) #mainPanel .profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #06b6d4, #7c3aed);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

body:not(.portal-body) #mainPanel .profile-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    min-width: 0;
}

body:not(.portal-body) #mainPanel .profile-name {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body:not(.portal-body) #mainPanel .profile-role {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #7dd3fc;
}

body:not(.portal-body) #mainPanel .profile-caret {
    font-size: 10px;
    color: #94a3b8;
    transition: transform 0.18s ease;
}

body:not(.portal-body) #mainPanel .profile-menu.open .profile-caret {
    transform: rotate(180deg);
}

/* --- 2. Açılır hesap menüsü --- */
body:not(.portal-body) #mainPanel .profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1200;
    min-width: 220px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 14px;
    background: rgba(8, 15, 32, 0.98);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body:not(.portal-body) #mainPanel .profile-dropdown.hidden {
    display: none !important;
}

body:not(.portal-body) #mainPanel .profile-dropdown .menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #cbd5e1;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

body:not(.portal-body) #mainPanel .profile-dropdown .menu-item i {
    width: 16px;
    text-align: center;
    font-size: 12px;
    color: #38bdf8;
}

body:not(.portal-body) #mainPanel .profile-dropdown .menu-item:hover {
    background: rgba(34, 211, 238, 0.13);
    color: #f8fafc;
}

body:not(.portal-body) #mainPanel .profile-dropdown .menu-item.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.24), rgba(124, 58, 237, 0.22));
    color: #f8fafc;
}

body:not(.portal-body) #mainPanel .profile-dropdown .menu-item.is-danger {
    color: #fca5a5;
}

body:not(.portal-body) #mainPanel .profile-dropdown .menu-item.is-danger i {
    color: #f87171;
}

body:not(.portal-body) #mainPanel .profile-dropdown .menu-item.is-danger:hover {
    background: rgba(248, 113, 113, 0.16);
    color: #fecaca;
}

body:not(.portal-body) #mainPanel .menu-sep {
    height: 1px;
    margin: 5px 6px;
    background: rgba(148, 163, 184, 0.18);
}

/* --- 3. Ayarlar sayfası: başlık + bölüm kartları --- */
body:not(.portal-body) #mainPanel .settings-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(34, 211, 238, 0.16);
}

body:not(.portal-body) #mainPanel .settings-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 5px;
    font-size: 1.5rem;
}

body:not(.portal-body) #mainPanel .settings-head h2 i {
    color: #22d3ee;
    font-size: 0.92em;
}

body:not(.portal-body) #mainPanel .settings-head p {
    margin: 0;
    font-size: 12.5px;
    color: #94a3b8;
}

body:not(.portal-body) #mainPanel .settings-section {
    max-width: 800px;
    margin: 0 auto 20px;
}

body:not(.portal-body) #mainPanel .settings-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px 2px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7dd3fc;
}

body:not(.portal-body) #mainPanel .settings-section-title i {
    font-size: 11px;
}

body:not(.portal-body) #mainPanel .settings-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 18px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.58));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body:not(.portal-body) #mainPanel .settings-card-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 260px;
    min-width: 220px;
}

body:not(.portal-body) #mainPanel .settings-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #e2e8f0;
}

body:not(.portal-body) #mainPanel .settings-hint {
    font-size: 11.5px;
    line-height: 1.45;
    color: #94a3b8;
}

body:not(.portal-body) #mainPanel .settings-head .btn-secondary,
body:not(.portal-body) #mainPanel .settings-card .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* --- 4. Tema segment kontrolü --- */
body:not(.portal-body) #mainPanel .theme-seg {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.6);
}

body:not(.portal-body) #mainPanel .theme-seg button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #94a3b8;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

body:not(.portal-body) #mainPanel .theme-seg button:hover {
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.12);
}

body:not(.portal-body) #mainPanel .theme-seg button.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(124, 58, 237, 0.28));
    color: #f8fafc;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.18);
}

/* --- 5. Duyarlı yerleşim --- */
@media (max-width: 1180px) {
    body:not(.portal-body) #mainPanel .profile-menu {
        order: 2;
        margin-left: auto;
    }
}

@media (max-width: 900px) {
    /* Yatay kaydırma, açılır menüyü kırpardı: sarmalayarak çözülür */
    body:not(.portal-body) #mainPanel .sidebar {
        overflow: visible;
    }

    body:not(.portal-body) #mainPanel .sidebar nav {
        flex-wrap: wrap;
        overflow: visible;
    }
}

@media (max-width: 560px) {
    body:not(.portal-body) #mainPanel .profile-trigger {
        gap: 6px;
        padding: 4px 8px 4px 4px;
    }

    body:not(.portal-body) #mainPanel .profile-meta {
        display: none;
    }

    body:not(.portal-body) #mainPanel .profile-dropdown {
        min-width: 190px;
    }
}

/* --- 6. Aydınlık tema karşılıkları --- */
body.admin-light-theme:not(.portal-body) #mainPanel .profile-trigger {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .profile-trigger:hover {
    border-color: #94a3b8 !important;
    background: #f8fafc !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .profile-role {
    color: #2563eb !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .profile-caret {
    color: #64748b !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .profile-dropdown {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16) !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .profile-dropdown .menu-item {
    color: #334155 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .profile-dropdown .menu-item i {
    color: #2563eb !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .profile-dropdown .menu-item:hover {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .profile-dropdown .menu-item.is-danger {
    color: #b91c1c !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .profile-dropdown .menu-item.is-danger i {
    color: #dc2626 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .profile-dropdown .menu-item.is-danger:hover {
    background: #fef2f2 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .menu-sep {
    background: #e2e8f0 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .settings-head {
    border-bottom-color: #cbd5e1 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .settings-head h2 {
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .settings-head h2 i {
    color: #2563eb !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .settings-head p {
    color: #475569 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .settings-section-title {
    color: #2563eb !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .settings-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05) !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .settings-card-title {
    color: #0f172a !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .settings-hint {
    color: #475569 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .theme-seg {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .theme-seg button {
    color: #334155 !important;
}

body.admin-light-theme:not(.portal-body) #mainPanel .theme-seg button.active {
    background: #ffffff !important;
    color: #1d4ed8 !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.14) !important;
}

/* --- 7. Tema segmenti: Sistem / Gece / Aydınlık (2026-11-15) --- */
body:not(.portal-body) #mainPanel .theme-seg-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
    max-width: 100%;
}

body:not(.portal-body) #mainPanel .theme-seg {
    flex-wrap: wrap;
    max-width: 100%;
}

body:not(.portal-body) #mainPanel .theme-resolved {
    font-size: 11px;
    color: #7dd3fc;
}

body.admin-light-theme:not(.portal-body) #mainPanel .theme-resolved {
    color: #2563eb !important;
}

/* --- 8. İşlem Geçmişi başlığı: ikon-metin optik boşluğu (2026-11-15) --- */
body:not(.portal-body) #mainPanel #page-audit h2 {
    gap: 12px;
}

body:not(.portal-body) #mainPanel #page-audit h2 > i {
    flex-shrink: 0;
    width: 1.08em;
    text-align: center;
    line-height: 1;
}

/* --- 9. İşlem Geçmişi tablosu: dar ekranda kart içinde kaydırılır (2026-11-15) --- */
body:not(.portal-body) #mainPanel #page-audit .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* İade sihirbazı — otomatik taslak durumu (Adım 2) */
#modalReturn .rt-draft-state {
    display: block;
    min-height: 14px;
    margin: -6px 0 10px;
    font-size: 11px;
    color: #64748b;
}
#modalReturn .rt-draft-state[data-durum="kaydedildi"] { color: #15803d; }
#modalReturn .rt-draft-state[data-durum="hata"] { color: #b91c1c; }
#modalReturn .rt-draft-state[data-durum="kaydediliyor"] { color: #64748b; }

/* ==============================================================================
   KOYU TEMA KONTRAST DÜZELTMELERİ — WCAG 2.1 AA (2026-11-22)
   Ölçüm: Chromium + piksel tabanlı arka plan örnekleme, 9 sayfa, koyu tema.
   Kural: bu blok yalnız koyu temayı hedefler; aydınlık tema bloğu yukarıda.
   ============================================================================== */

/* 1) İkincil metin belirteçleri: #64748b koyu yüzeyde 3.7–4.0:1 kalıyordu */
body:not(.admin-light-theme):not(.portal-body) { --text-muted: #94a3b8; }
body:not(.admin-light-theme):not(.portal-body) #mainPanel #page-dashboard { --db-faint: #94a3b8; }
body:not(.admin-light-theme):not(.portal-body) #page-reports { --rp-faint: #94a3b8; }

/* 2) Akıllı stok önerisi özet düğmeleri: sınıfın hiç stili yoktu; tarayıcı
      varsayılanı (#efefef) beyaz sayıyı görünmez yapıyordu */
body:not(.portal-body) #mainPanel #page-dashboard .db-stock-sum {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    padding: 8px 10px; border-radius: 8px; cursor: pointer; text-align: left;
    background: var(--db-surface-2); border: 1px solid var(--db-border);
    color: var(--db-muted); font-family: inherit; font-size: 10.5px; font-weight: 600;
}
body:not(.portal-body) #mainPanel #page-dashboard .db-stock-sum strong {
    color: var(--db-strong); font-size: 16px; font-weight: 800; line-height: 1.1;
}
body:not(.portal-body) #mainPanel #page-dashboard .db-stock-sum span {
    color: var(--db-muted); font-size: 10.5px; font-weight: 600;
}
/* Açık temada çip etiketi #64748b/#f8fafc 4.48:1 kalıyordu */
body.admin-light-theme:not(.portal-body) #mainPanel #page-dashboard .db-stock-sum span { color: #475569; }
body.admin-light-theme:not(.portal-body) #mainPanel #page-dashboard .db-stock-sum { color: #475569; }
body.admin-light-theme:not(.portal-body) #mainPanel #page-dashboard .db-stock-sum.active span { color: #1d4ed8; }
body:not(.portal-body) #mainPanel #page-dashboard .db-stock-sum:hover { border-color: var(--db-cyan); }
body:not(.portal-body) #mainPanel #page-dashboard .db-stock-sum.active {
    background: var(--db-chip-bg); border-color: var(--db-cyan);
}
body:not(.portal-body) #mainPanel #page-dashboard .db-stock-sum.active span { color: var(--db-chip-fg); }

/* 3) Ayarlar sayfası satır içi renkleri (#666 / #333 / #B45309 koyu zeminde okunmuyor) */
html:not(.admin-light-theme) body #page-settings [style*="color:#666" i],
html:not(.admin-light-theme) body #page-settings [style*="color: #666" i] { color: #94a3b8 !important; }
html:not(.admin-light-theme) body #page-settings [style*="color:#333" i],
html:not(.admin-light-theme) body #page-settings [style*="color: #333" i] { color: #e2e8f0 !important; }
html:not(.admin-light-theme) body #page-settings [style*="color:#B45309" i],
html:not(.admin-light-theme) body #page-settings [style*="color: #B45309" i] { color: #fbbf24 !important; }

/* 3b) Ayarlar > yedekleme bloğu başlıkları (#334155 koyu zeminde 1.8:1) */
html:not(.admin-light-theme) body #page-settings h5 { color: #e2e8f0; }


/* ==============================================================================
   GARANTİ & SERVİS MODÜLÜ (T-05 FAZ 1) — #page-warranty & #modalWarranty izole
   ============================================================================== */

#page-warranty .gs-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

#page-warranty .gs-head-title h2 {
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

#page-warranty .gs-head-sub {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

#page-warranty .gs-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

#page-warranty .gs-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

#page-warranty .gs-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.58);
    color: #cbd5e1;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.15s ease;
}

#page-warranty .gs-stat:hover {
    border-color: #38bdf8;
    transform: translateY(-1px);
}

#page-warranty .gs-stat.active {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.18);
}

#page-warranty .gs-stat span {
    font-size: 11.5px;
    font-weight: 600;
    color: #94a3b8;
}

#page-warranty .gs-stat strong {
    font-size: 20px;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.1;
}

#page-warranty .gs-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.5);
}

#page-warranty .gs-search {
    position: relative;
    flex: 1 1 280px;
    min-width: 220px;
}

#page-warranty .gs-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
}

#page-warranty .gs-search input {
    width: 100%;
    margin: 0;
    padding-left: 34px;
}

#page-warranty .gs-toolbar select {
    margin: 0;
    width: auto;
    min-width: 175px;
}

#page-warranty .gs-count-chip {
    font-size: 12px;
    font-weight: 700;
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.28);
    padding: 6px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

#page-warranty .gs-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.55);
}

#page-warranty .gs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

#page-warranty .gs-table th {
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 12px 14px;
    color: #94a3b8;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.72);
}

#page-warranty .gs-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    vertical-align: middle;
    color: #e2e8f0;
    font-size: 13px;
}

#page-warranty .gs-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.08);
}

#page-warranty .gs-empty {
    text-align: center;
    padding: 36px 16px;
    color: #94a3b8;
    font-size: 13.5px;
}

#page-warranty .gs-empty.gs-error {
    color: #f87171;
}

#page-warranty .gs-servis-no-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

#page-warranty .gs-mono,
#modalWarranty .gs-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

#page-warranty .gs-icon-btn {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #94a3b8;
    border-radius: 6px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
}

#page-warranty .gs-icon-btn:hover {
    color: #f8fafc;
    border-color: #38bdf8;
}

#page-warranty .gs-sub-meta {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 2px;
}

#page-warranty .gs-customer-name {
    font-weight: 600;
    color: #f1f5f9;
}

#page-warranty .gs-product-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 270px;
}

#page-warranty .gs-product-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #e2e8f0;
}

#page-warranty .gs-sku-badge,
#modalWarranty .gs-sku-badge {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

#page-warranty .gs-status-pill,
#modalWarranty .gs-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

#page-warranty .gs-st-kayit_alindi,
#modalWarranty .gs-st-kayit_alindi { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
#page-warranty .gs-st-inceleniyor,
#modalWarranty .gs-st-inceleniyor { background: rgba(168, 85, 247, 0.22); color: #d8b4fe; }
#page-warranty .gs-st-onay_bekliyor,
#modalWarranty .gs-st-onay_bekliyor { background: rgba(245, 158, 11, 0.22); color: #fcd34d; }
#page-warranty .gs-st-onarimda,
#modalWarranty .gs-st-onarimda { background: rgba(14, 165, 233, 0.22); color: #7dd3fc; }
#page-warranty .gs-st-tamamlandi,
#modalWarranty .gs-st-tamamlandi { background: rgba(16, 185, 129, 0.22); color: #6ee7b7; }
#page-warranty .gs-st-teslim_edildi,
#modalWarranty .gs-st-teslim_edildi { background: rgba(34, 197, 94, 0.22); color: #86efac; }
#page-warranty .gs-st-iadeye_yonlendirildi,
#modalWarranty .gs-st-iadeye_yonlendirildi { background: rgba(249, 115, 22, 0.22); color: #fdba74; }
#page-warranty .gs-st-iptal,
#modalWarranty .gs-st-iptal { background: rgba(239, 68, 68, 0.22); color: #fca5a5; }

#page-warranty .gs-scope-tag {
    display: inline-block;
    font-size: 10.5px;
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
}

#page-warranty .gs-fee-chip {
    display: inline-block;
    margin-left: 4px;
    font-size: 10.5px;
    font-weight: 700;
    color: #fcd34d;
}

#page-warranty .gs-age {
    display: inline-block;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
}
#page-warranty .gs-age.warn { background: rgba(245, 158, 11, 0.22); color: #fcd34d; }
#page-warranty .gs-age.danger { background: rgba(239, 68, 68, 0.24); color: #fca5a5; font-weight: 700; }

#page-warranty .gs-last-log {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    color: #cbd5e1;
}

#page-warranty .gs-actions-cell {
    white-space: nowrap;
    text-align: right;
}

#page-warranty .gs-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
    cursor: pointer;
    margin-left: 4px;
}

#page-warranty .gs-btn-sm:hover {
    border-color: #38bdf8;
    color: #ffffff;
}

#page-warranty .gs-btn-sm.gs-btn-primary-soft {
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(59, 130, 246, 0.45);
    color: #bfdbfe;
}

/* ---------- Modal: #modalWarranty ---------- */

#modalWarranty .gs-modal-dialog {
    width: 980px;
    max-width: 96vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    overflow: hidden;
}

#modalWarranty .gs-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    margin-bottom: 12px;
    padding-right: 30px;
}

#modalWarranty .gs-modal-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#modalWarranty .gs-modal-title-row h3 {
    margin: 0;
    font-size: 18px;
}

#modalWarranty .gs-servis-badge {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

#modalWarranty .gs-header-prints {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

#modalWarranty .gs-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.22);
    margin-bottom: 12px;
}

#modalWarranty .gs-status-bar-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
}

#modalWarranty .gs-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

#modalWarranty .gs-tr-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
}

#modalWarranty .gs-tr-primary { background: #2563eb; color: #ffffff; }
#modalWarranty .gs-tr-success { background: #059669; color: #ffffff; }
#modalWarranty .gs-tr-warn { background: #d97706; color: #ffffff; }
#modalWarranty .gs-tr-secondary { background: rgba(148, 163, 184, 0.2); color: #e2e8f0; border-color: rgba(148, 163, 184, 0.35); }
#modalWarranty .gs-tr-ghost { background: transparent; color: #cbd5e1; border-color: rgba(148, 163, 184, 0.3); }
#modalWarranty .gs-tr-danger { background: rgba(220, 38, 38, 0.18); color: #fca5a5; border-color: rgba(239, 68, 68, 0.4); }

#modalWarranty .gs-terminal-note {
    font-size: 12.5px;
    color: #cbd5e1;
}

#modalWarranty .gs-steps {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

#modalWarranty .gs-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 9px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.45);
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

#modalWarranty .gs-step.active {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.22);
    color: #f8fafc;
}

#modalWarranty .gs-step.done {
    border-color: rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
}

#modalWarranty .gs-step-no {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    background: rgba(148, 163, 184, 0.2);
}

#modalWarranty .gs-step.active .gs-step-no {
    background: #3b82f6;
    color: #ffffff;
}

#modalWarranty .gs-step.done .gs-step-no {
    background: #10b981;
    color: #ffffff;
}

#modalWarranty .gs-step-sep {
    flex: 1;
    min-width: 12px;
    height: 1px;
    background: rgba(148, 163, 184, 0.22);
}

#modalWarranty .gs-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 4px;
}

#modalWarranty .gs-sec-title {
    margin: 0 0 12px 0;
    font-size: 14.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

#modalWarranty .gs-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#modalWarranty .gs-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

#modalWarranty .gs-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

#modalWarranty .gs-field label {
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
}

#modalWarranty .gs-field input,
#modalWarranty .gs-field select,
#modalWarranty .gs-field textarea {
    margin: 0;
    width: 100%;
}

#modalWarranty .gs-input-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

#modalWarranty .gs-lookup-status {
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
}
#modalWarranty .gs-lookup-status.info { color: #7dd3fc; }
#modalWarranty .gs-lookup-status.ok { color: #6ee7b7; }
#modalWarranty .gs-lookup-status.warn { color: #fcd34d; }
#modalWarranty .gs-lookup-status.error { color: #fca5a5; }

#modalWarranty .gs-check-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#modalWarranty .gs-check-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.45);
    font-size: 12px;
    cursor: pointer;
}

#modalWarranty .gs-check-chip input {
    width: auto;
    margin: 0;
}

#modalWarranty .gs-order-items-wrap {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    background: rgba(14, 165, 233, 0.08);
    margin-bottom: 12px;
}

#modalWarranty .gs-order-items-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

#modalWarranty .gs-order-item-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    cursor: pointer;
    text-align: left;
}

#modalWarranty .gs-order-item-btn:hover,
#modalWarranty .gs-order-item-btn.selected {
    border-color: #38bdf8;
    background: rgba(59, 130, 246, 0.22);
}

#modalWarranty .gs-order-item-name {
    flex: 1;
    font-size: 12.5px;
}

#modalWarranty .gs-order-item-qty {
    font-size: 11.5px;
    color: #94a3b8;
    white-space: nowrap;
}

#modalWarranty .gs-cat-results {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
    max-height: 170px;
    overflow-y: auto;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 8px;
    padding: 6px;
    background: rgba(15, 23, 42, 0.92);
}

#modalWarranty .gs-cat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: none;
    background: transparent;
    color: #e2e8f0;
    text-align: left;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12.5px;
}

#modalWarranty .gs-cat-item:hover {
    background: rgba(59, 130, 246, 0.2);
}

#modalWarranty .gs-cat-empty {
    padding: 8px;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}

#modalWarranty .gs-date-hint {
    font-size: 12px;
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
    margin-bottom: 12px;
}
#modalWarranty .gs-date-hint.valid { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; }
#modalWarranty .gs-date-hint.expired { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }

#modalWarranty .gs-parts-box {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    padding: 12px;
    margin: 12px 0;
    background: rgba(15, 23, 42, 0.35);
}

#modalWarranty .gs-parts-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

#modalWarranty .gs-parts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

#modalWarranty .gs-parts-table th {
    font-size: 11px;
    color: #94a3b8;
    text-align: left;
    padding: 6px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

#modalWarranty .gs-parts-table td {
    padding: 5px 4px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

#modalWarranty .gs-part-inp {
    margin: 0;
    padding: 5px 7px;
    font-size: 12px;
    min-height: 32px;
    height: 32px;
}

#modalWarranty .gs-part-inp.gs-num {
    text-align: right;
}

#modalWarranty .gs-parts-empty {
    text-align: center;
    padding: 14px;
    color: #94a3b8;
    font-size: 12px;
}

#modalWarranty .gs-btn-icon-del {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

#modalWarranty .gs-cost-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

#modalWarranty .gs-cost-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#modalWarranty .gs-cost-item span {
    font-size: 11px;
    color: #94a3b8;
}

#modalWarranty .gs-cost-item strong {
    font-size: 14px;
    color: #f8fafc;
}

#modalWarranty .gs-cost-item.gs-cost-grand strong {
    color: #7dd3fc;
    font-size: 15px;
}

#modalWarranty .gs-internal-note-tag {
    display: inline-block;
    font-size: 10.5px;
    color: #fcd34d;
    margin-left: 6px;
    font-weight: 600;
}

#modalWarranty .gs-rev-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

#modalWarranty .gs-rev-card {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.45);
}

#modalWarranty .gs-rev-card.gs-rev-wide {
    grid-column: span 2;
}

#modalWarranty .gs-rev-card h5 {
    margin: 0 0 8px 0;
    font-size: 12.5px;
    color: #7dd3fc;
    display: flex;
    align-items: center;
    gap: 6px;
}

#modalWarranty .gs-rev-card dl {
    margin: 0;
    display: grid;
    grid-template-columns: 115px 1fr;
    gap: 5px 8px;
    font-size: 12.5px;
}

#modalWarranty .gs-rev-card dt {
    color: #94a3b8;
    font-weight: 600;
}

#modalWarranty .gs-rev-card dd {
    margin: 0;
    color: #f1f5f9;
}

#modalWarranty .gs-sub-box {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    background: rgba(15, 23, 42, 0.35);
}

#modalWarranty .gs-logs-history {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 8px;
    background: rgba(15, 23, 42, 0.5);
}

#modalWarranty .gs-log-item {
    padding: 7px 6px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 12.5px;
}

#modalWarranty .gs-log-item:last-child {
    border-bottom: none;
}

#modalWarranty .gs-log-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 3px;
}

#modalWarranty .gs-log-msg {
    color: #e2e8f0;
}

#modalWarranty .gs-log-empty {
    text-align: center;
    padding: 14px;
    font-size: 12px;
    color: #94a3b8;
}

#modalWarranty .gs-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

#modalWarranty .gs-footer-right {
    display: flex;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap;
}

/* ---------- Aydınlık Tema Uyumu (body.admin-light-theme) ---------- */

body.admin-light-theme #page-warranty .gs-stat {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #334155;
}
body.admin-light-theme #page-warranty .gs-stat span { color: #475569; }
body.admin-light-theme #page-warranty .gs-stat strong { color: #0f172a; }
body.admin-light-theme #page-warranty .gs-stat.active { background: #eff6ff; border-color: #2563eb; }

body.admin-light-theme #page-warranty .gs-toolbar,
body.admin-light-theme #page-warranty .gs-table-wrap {
    background: #ffffff;
    border-color: #cbd5e1;
}
body.admin-light-theme #page-warranty .gs-table th {
    background: #f8fafc;
    color: #475569;
    border-bottom-color: #e2e8f0;
}
body.admin-light-theme #page-warranty .gs-table td {
    color: #1e293b;
    border-bottom-color: #e2e8f0;
}
body.admin-light-theme #page-warranty .gs-customer-name,
body.admin-light-theme #page-warranty .gs-product-name { color: #0f172a; }
body.admin-light-theme #page-warranty .gs-sub-meta,
body.admin-light-theme #page-warranty .gs-last-log { color: #475569; }
body.admin-light-theme #page-warranty .gs-count-chip { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
body.admin-light-theme #page-warranty .gs-sku-badge,
body.admin-light-theme #modalWarranty .gs-sku-badge { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
body.admin-light-theme #page-warranty .gs-btn-sm { background: #f8fafc; color: #1e293b; border-color: #cbd5e1; }
body.admin-light-theme #page-warranty .gs-btn-sm.gs-btn-primary-soft { background: #eff6ff; color: #1d4ed8; border-color: #93c5fd; }
body.admin-light-theme #page-warranty .gs-scope-tag { background: #f1f5f9; color: #334155; }

body.admin-light-theme #page-warranty .gs-st-kayit_alindi,
body.admin-light-theme #modalWarranty .gs-st-kayit_alindi { background: #dbeafe; color: #1e40af; }
body.admin-light-theme #page-warranty .gs-st-inceleniyor,
body.admin-light-theme #modalWarranty .gs-st-inceleniyor { background: #f3e8ff; color: #6b21a8; }
body.admin-light-theme #page-warranty .gs-st-onay_bekliyor,
body.admin-light-theme #modalWarranty .gs-st-onay_bekliyor { background: #fef3c7; color: #92400e; }
body.admin-light-theme #page-warranty .gs-st-onarimda,
body.admin-light-theme #modalWarranty .gs-st-onarimda { background: #e0f2fe; color: #075985; }
body.admin-light-theme #page-warranty .gs-st-tamamlandi,
body.admin-light-theme #modalWarranty .gs-st-tamamlandi { background: #d1fae5; color: #065f46; }
body.admin-light-theme #page-warranty .gs-st-teslim_edildi,
body.admin-light-theme #modalWarranty .gs-st-teslim_edildi { background: #dcfce7; color: #166534; }
body.admin-light-theme #page-warranty .gs-st-iadeye_yonlendirildi,
body.admin-light-theme #modalWarranty .gs-st-iadeye_yonlendirildi { background: #ffedd5; color: #9a3412; }
body.admin-light-theme #page-warranty .gs-st-iptal,
body.admin-light-theme #modalWarranty .gs-st-iptal { background: #fee2e2; color: #991b1b; }

body.admin-light-theme #modalWarranty .gs-status-bar,
body.admin-light-theme #modalWarranty .gs-parts-box,
body.admin-light-theme #modalWarranty .gs-cost-summary,
body.admin-light-theme #modalWarranty .gs-rev-card,
body.admin-light-theme #modalWarranty .gs-sub-box,
body.admin-light-theme #modalWarranty .gs-logs-history,
body.admin-light-theme #modalWarranty .gs-check-chip {
    background: #f8fafc;
    border-color: #cbd5e1;
}
body.admin-light-theme #modalWarranty .gs-field label,
body.admin-light-theme #modalWarranty .gs-rev-card dt,
body.admin-light-theme #modalWarranty .gs-log-meta { color: #475569; }
body.admin-light-theme #modalWarranty .gs-rev-card dd,
body.admin-light-theme #modalWarranty .gs-cost-item strong,
body.admin-light-theme #modalWarranty .gs-log-msg,
body.admin-light-theme #modalWarranty .gs-terminal-note { color: #0f172a; }
body.admin-light-theme #modalWarranty .gs-step { background: #f8fafc; color: #475569; border-color: #cbd5e1; }
body.admin-light-theme #modalWarranty .gs-step.active { background: #eff6ff; color: #1d4ed8; border-color: #2563eb; }
body.admin-light-theme #modalWarranty .gs-order-item-btn { background: #ffffff; color: #0f172a; border-color: #cbd5e1; }
body.admin-light-theme #modalWarranty .gs-cat-results { background: #ffffff; border-color: #cbd5e1; }
body.admin-light-theme #modalWarranty .gs-cat-item { color: #0f172a; }
body.admin-light-theme #modalWarranty .gs-servis-badge { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
body.admin-light-theme #modalWarranty .gs-tr-ghost,
body.admin-light-theme #modalWarranty .gs-tr-secondary { color: #334155; background: #e2e8f0; }
body.admin-light-theme #modalWarranty .gs-tr-danger { background: #fee2e2; color: #991b1b; }
body.admin-light-theme #modalWarranty .gs-internal-note-tag { color: #b45309; }

@media (max-width: 900px) {
    #page-warranty .gs-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #modalWarranty .gs-grid-2,
    #modalWarranty .gs-grid-3,
    #modalWarranty .gs-rev-grid,
    #modalWarranty .gs-cost-summary { grid-template-columns: 1fr; }
    #modalWarranty .gs-rev-card.gs-rev-wide { grid-column: span 1; }
}

/* ==============================================================================
   GARANTİ & SERVİS SADELEŞTİRME EK STİLLERİ (T-05) — #modalWarranty izole
   ============================================================================== */

#modalWarranty .gs-order-items-head {
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
}

#modalWarranty .gs-autocomplete-wrap {
    position: relative;
}

#modalWarranty .gs-customer-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 250px;
    overflow-y: auto;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: #0f172a;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.65);
}

#modalWarranty .gs-customer-opt {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #f1f5f9;
    text-align: left;
    cursor: pointer;
}

#modalWarranty .gs-customer-opt:hover {
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(56, 189, 248, 0.35);
}

#modalWarranty .gs-customer-opt-main {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
}

#modalWarranty .gs-customer-opt-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#modalWarranty .gs-customer-opt-meta {
    font-size: 11px;
    color: #94a3b8;
    padding-left: 2px;
}

#modalWarranty .gs-source-chip {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    flex-shrink: 0;
}

#modalWarranty .gs-source-site {
    background: rgba(56, 189, 248, 0.18);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

#modalWarranty .gs-source-toptan {
    background: rgba(168, 85, 247, 0.2);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.38);
}

#modalWarranty .gs-customer-orders-wrap {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.5);
    margin-bottom: 12px;
}

#modalWarranty .gs-customer-orders-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 8px;
}

#modalWarranty .gs-customer-orders-head small {
    font-weight: 400;
    color: #94a3b8;
}

#modalWarranty .gs-link-btn {
    background: transparent;
    border: none;
    color: #7dd3fc;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 5px;
}

#modalWarranty .gs-link-btn:hover {
    background: rgba(56, 189, 248, 0.15);
}

#modalWarranty .gs-customer-orders-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 175px;
    overflow-y: auto;
}

#modalWarranty .gs-customer-order-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

#modalWarranty .gs-customer-order-btn:hover,
#modalWarranty .gs-customer-order-btn.selected {
    border-color: #38bdf8;
    background: rgba(59, 130, 246, 0.22);
}

#modalWarranty .gs-cust-ord-date {
    color: #94a3b8;
    font-size: 11.5px;
    white-space: nowrap;
}

#modalWarranty .gs-cust-ord-summary {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #cbd5e1;
}

#modalWarranty .gs-history-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    margin-bottom: 12px;
    font-size: 12.5px;
    line-height: 1.4;
}

#modalWarranty .gs-history-banner i {
    margin-top: 2px;
    font-size: 14px;
    flex-shrink: 0;
}

#modalWarranty .gs-history-banner.ok {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.42);
    color: #a7f3d0;
}

#modalWarranty .gs-history-banner.warn {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fde68a;
}

#modalWarranty .gs-history-main {
    font-weight: 700;
}

#modalWarranty .gs-history-sub {
    font-size: 11.5px;
    opacity: 0.92;
    margin-top: 2px;
}

#modalWarranty .gs-simple-fee-box {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    padding: 12px;
    margin: 12px 0;
    background: rgba(15, 23, 42, 0.38);
}

#modalWarranty .gs-fee-live-col {
    justify-content: center;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

#modalWarranty .gs-fee-live-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

#modalWarranty .gs-fee-live-value {
    font-size: 16px;
    color: #7dd3fc;
    font-weight: 800;
}

#modalWarranty .gs-fee-live-note {
    font-size: 11.5px;
    color: #94a3b8;
}

#modalWarranty .gs-cost-details {
    margin-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding-top: 8px;
}

#modalWarranty .gs-cost-details-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 600;
    color: #7dd3fc;
    list-style: none;
    padding: 4px 2px;
    user-select: none;
}

#modalWarranty .gs-cost-details-summary::-webkit-details-marker {
    display: none;
}

#modalWarranty .gs-cost-details-summary::after {
    content: '\25BE';
    font-size: 13px;
    color: #94a3b8;
    transition: transform 0.15s ease;
}

#modalWarranty .gs-cost-details[open] .gs-cost-details-summary::after {
    transform: rotate(180deg);
}

#modalWarranty .gs-cost-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: #cbd5e1;
}

#modalWarranty .gs-cost-details .gs-parts-box {
    margin: 10px 0 0 0;
}

/* Aydınlık tema uyumu — yeni gs-* bileşenleri */
body.admin-light-theme #modalWarranty .gs-order-items-head,
body.admin-light-theme #modalWarranty .gs-customer-orders-head {
    color: #0f172a;
}

body.admin-light-theme #modalWarranty .gs-customer-dropdown {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

body.admin-light-theme #modalWarranty .gs-customer-opt {
    color: #0f172a;
}

body.admin-light-theme #modalWarranty .gs-customer-opt:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

body.admin-light-theme #modalWarranty .gs-customer-opt-meta,
body.admin-light-theme #modalWarranty .gs-customer-orders-head small,
body.admin-light-theme #modalWarranty .gs-cust-ord-date,
body.admin-light-theme #modalWarranty .gs-fee-live-label,
body.admin-light-theme #modalWarranty .gs-fee-live-note {
    color: #475569;
}

body.admin-light-theme #modalWarranty .gs-source-site {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #7dd3fc;
}

body.admin-light-theme #modalWarranty .gs-source-toptan {
    background: #f3e8ff;
    color: #6b21a8;
    border-color: #d8b4fe;
}

body.admin-light-theme #modalWarranty .gs-customer-orders-wrap,
body.admin-light-theme #modalWarranty .gs-simple-fee-box {
    background: #f8fafc;
    border-color: #cbd5e1;
}

body.admin-light-theme #modalWarranty .gs-customer-order-btn {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

body.admin-light-theme #modalWarranty .gs-customer-order-btn:hover,
body.admin-light-theme #modalWarranty .gs-customer-order-btn.selected {
    background: #eff6ff;
    border-color: #2563eb;
}

body.admin-light-theme #modalWarranty .gs-cust-ord-summary {
    color: #334155;
}

body.admin-light-theme #modalWarranty .gs-link-btn,
body.admin-light-theme #modalWarranty .gs-cost-details-summary,
body.admin-light-theme #modalWarranty .gs-fee-live-value {
    color: #1d4ed8;
}

body.admin-light-theme #modalWarranty .gs-fee-live-col {
    background: #ffffff;
    border-color: #e2e8f0;
}

body.admin-light-theme #modalWarranty .gs-history-banner.ok {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #065f46;
}

body.admin-light-theme #modalWarranty .gs-history-banner.warn {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

body.admin-light-theme #modalWarranty .gs-cost-badge {
    color: #475569;
}

/* ==============================================================================
   GARANTİ & SERVİS KÖKLÜ SADELEŞTİRME + İADE ENTEGRASYONU STİLLERİ
   #page-warranty / #modalWarranty / #page-returns / #modalReturn izole
   ============================================================================== */

/* --- İade & Garanti entegrasyon bilgi bandı (#page-returns & #modalReturn) --- */
#page-returns .gs-degisim-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 14px;
    margin-bottom: 14px;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.32);
    background: rgba(14, 165, 233, 0.12);
    color: #e0f2fe;
    font-size: 12.5px;
    line-height: 1.4;
}

#page-returns .gs-degisim-banner i {
    color: #38bdf8;
    font-size: 14px;
    flex-shrink: 0;
}

#page-returns .gs-degisim-banner-btn {
    margin-left: auto;
    padding: 5px 11px;
    border-radius: 7px;
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: rgba(56, 189, 248, 0.18);
    color: #e0f2fe;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

#page-returns .gs-degisim-banner-btn:hover {
    background: rgba(56, 189, 248, 0.3);
}

#modalReturn .type-btn[data-val="degisim"]:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    text-decoration: line-through;
}

#modalReturn .gs-degisim-modal-note {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 8px 0 10px 0;
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.32);
    color: #fde68a;
    font-size: 12px;
}

#modalReturn .gs-degisim-link {
    background: transparent;
    border: none;
    padding: 0 2px;
    color: #7dd3fc;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    font-size: 12px;
}

/* --- #page-warranty üst sekmeler ve liste iyileştirmeleri --- */
#page-warranty .gs-top-tabs {
    margin-bottom: 18px;
}

#page-warranty .gs-row-clickable {
    cursor: pointer;
}

#page-warranty .gs-list-item-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
    max-width: 340px;
}

#page-warranty .gs-list-item-line:last-child {
    margin-bottom: 0;
}

#page-warranty .gs-waiting-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    background: rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
}

#page-warranty .gs-note-preview {
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#page-warranty .gs-action-chip {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

#page-warranty .gs-act-birebir_degisim { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
#page-warranty .gs-act-garanti_disi { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
#page-warranty .gs-act-ambalaj_yok { background: rgba(245, 158, 11, 0.22); color: #fcd34d; }
#page-warranty .gs-act-onarildi { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; }
#page-warranty .gs-act-musteri_vazgecti { background: rgba(148, 163, 184, 0.22); color: #cbd5e1; }

/* --- #modalWarranty (Küçük 4 alanlı Yeni Talep Modalı) --- */
#modalWarranty .gs-create-dialog {
    width: 540px;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    overflow: visible;
}

#modalWarranty .gs-modal-sub {
    margin: 6px 0 0 0;
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.45;
}

#modalWarranty .gs-opt-tag {
    font-weight: 400;
    color: #94a3b8;
    font-size: 11px;
}

/* --- #page-warranty Detay Ekranı (#gsDetailView) --- */
#page-warranty .gs-detail-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.62);
}

#page-warranty .gs-detail-top-left,
#page-warranty .gs-detail-top-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

#page-warranty .gs-servis-badge {
    font-size: 13px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 7px;
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

#page-warranty .gs-detail-card {
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.56);
    margin-bottom: 14px;
}

#page-warranty .gs-detail-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

#page-warranty .gs-detail-card-head h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f8fafc;
}

#page-warranty .gs-card-hint {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #94a3b8;
}

#page-warranty .gs-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

#page-warranty .gs-info-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

#page-warranty .gs-info-lbl {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
}

#page-warranty .gs-info-block strong {
    font-size: 13.5px;
    color: #f8fafc;
    word-break: break-word;
}

#page-warranty .gs-info-wide {
    grid-column: span 3;
}

#page-warranty .gs-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

#page-warranty .gs-field-compact {
    margin-bottom: 0;
}

#page-warranty .gs-field label {
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
}

#page-warranty .gs-field input,
#page-warranty .gs-field textarea,
#page-warranty .gs-field select {
    margin: 0;
    width: 100%;
}

#page-warranty .gs-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 12px;
    border-radius: 9px;
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

#page-warranty .gs-status-bar-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
}

#page-warranty .gs-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

#page-warranty .gs-tr-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 7px;
    border: 1px solid transparent;
    cursor: pointer;
}
#page-warranty .gs-tr-primary { background: #2563eb; color: #ffffff; }
#page-warranty .gs-tr-success { background: #059669; color: #ffffff; }
#page-warranty .gs-tr-warn { background: #d97706; color: #ffffff; }
#page-warranty .gs-tr-secondary { background: rgba(148, 163, 184, 0.2); color: #e2e8f0; border-color: rgba(148, 163, 184, 0.35); }
#page-warranty .gs-tr-ghost { background: transparent; color: #cbd5e1; border-color: rgba(148, 163, 184, 0.3); }
#page-warranty .gs-tr-danger { background: rgba(220, 38, 38, 0.18); color: #fca5a5; border-color: rgba(239, 68, 68, 0.4); }

#page-warranty .gs-terminal-note {
    font-size: 12.5px;
    color: #cbd5e1;
}

#page-warranty .gs-order-items-wrap {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    background: rgba(14, 165, 233, 0.08);
}

#page-warranty .gs-order-items-head {
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 8px;
}

#page-warranty .gs-order-items-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#page-warranty .gs-order-item-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    cursor: pointer;
    text-align: left;
    font-size: 12.5px;
}

#page-warranty .gs-order-item-btn:hover {
    border-color: #38bdf8;
    background: rgba(59, 130, 246, 0.2);
}

#page-warranty .gs-order-item-name {
    flex: 1;
}

#page-warranty .gs-order-item-qty {
    font-size: 11.5px;
    color: #94a3b8;
    white-space: nowrap;
}

#page-warranty .gs-order-item-add {
    font-size: 11.5px;
    font-weight: 700;
    color: #7dd3fc;
    white-space: nowrap;
}

/* --- Detay: Ürün Kontrolü satır satır kalemler --- */
#page-warranty .gs-items-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

#page-warranty .gs-catalog-quick {
    position: relative;
    width: 240px;
}

#page-warranty .gs-catalog-quick input {
    margin: 0;
    width: 100%;
    font-size: 12.5px;
    padding: 6px 10px;
}

#page-warranty .gs-cat-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-width: 300px;
    z-index: 25;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 210px;
    overflow-y: auto;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 9px;
    padding: 6px;
    background: #0f172a;
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.65);
}

#page-warranty .gs-cat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: none;
    background: transparent;
    color: #e2e8f0;
    text-align: left;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

#page-warranty .gs-cat-item:hover {
    background: rgba(59, 130, 246, 0.22);
}

#page-warranty .gs-cat-empty {
    padding: 8px;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}

#page-warranty .gs-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#page-warranty .gs-items-empty {
    text-align: center;
    padding: 26px 14px;
    border-radius: 10px;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    color: #94a3b8;
    font-size: 13px;
}

#page-warranty .gs-item-row-card {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.46);
}

#page-warranty .gs-item-row-grid {
    display: grid;
    grid-template-columns: 125px minmax(160px, 1.4fr) 74px minmax(165px, 1fr) minmax(140px, 1.1fr) 36px;
    gap: 8px;
    align-items: end;
}

#page-warranty .gs-item-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#page-warranty .gs-item-col label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
}

#page-warranty .gs-item-col input,
#page-warranty .gs-item-col select {
    margin: 0;
    width: 100%;
    font-size: 12.5px;
    padding: 7px 8px;
    min-height: 36px;
}

#page-warranty .gs-item-col-del {
    align-items: center;
}

#page-warranty .gs-btn-icon-del {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 7px;
    width: 34px;
    height: 36px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#page-warranty .gs-btn-icon-del:hover {
    background: rgba(239, 68, 68, 0.32);
}

#page-warranty .gs-item-history {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.35;
}

#page-warranty .gs-item-history.info {
    background: rgba(148, 163, 184, 0.14);
    color: #cbd5e1;
}

#page-warranty .gs-item-history.ok {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.38);
    color: #a7f3d0;
}

#page-warranty .gs-item-history.warn {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fde68a;
}

#page-warranty .gs-history-main {
    font-weight: 700;
}

#page-warranty .gs-history-sub {
    opacity: 0.9;
}

/* --- Detay: Servis Çıktısı & Alt Bar --- */
#page-warranty .gs-output-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 14px;
    align-items: start;
}

#page-warranty .gs-simple-fee-box {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.4);
}

#page-warranty .gs-fee-live-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

#page-warranty .gs-fee-live-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

#page-warranty .gs-fee-live-value {
    font-size: 17px;
    color: #7dd3fc;
    font-weight: 800;
}

#page-warranty .gs-fee-live-note {
    font-size: 11.5px;
    color: #94a3b8;
}

#page-warranty .gs-logs-details {
    margin-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding-top: 10px;
}

#page-warranty .gs-logs-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    list-style: none;
    user-select: none;
}

#page-warranty .gs-logs-summary::-webkit-details-marker {
    display: none;
}

#page-warranty .gs-cost-badge {
    font-size: 11.5px;
    color: #94a3b8;
}

#page-warranty .gs-logs-inner {
    margin-top: 10px;
}

#page-warranty .gs-logs-history {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 8px;
    background: rgba(15, 23, 42, 0.5);
}

#page-warranty .gs-log-item {
    padding: 6px 4px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 12.5px;
}

#page-warranty .gs-log-item:last-child {
    border-bottom: none;
}

#page-warranty .gs-log-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 2px;
}

#page-warranty .gs-log-msg {
    color: #e2e8f0;
}

#page-warranty .gs-log-empty {
    text-align: center;
    padding: 12px;
    font-size: 12px;
    color: #94a3b8;
}

#page-warranty .gs-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

#page-warranty .gs-input-row input {
    margin: 0;
    flex: 1;
}

#page-warranty .gs-detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.62);
}

#page-warranty .gs-footer-right {
    display: flex;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap;
}

/* --- Aydınlık Tema Uyumu (body.admin-light-theme) --- */
body.admin-light-theme #page-returns .gs-degisim-banner {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e3a8a;
}

body.admin-light-theme #page-returns .gs-degisim-banner i {
    color: #2563eb;
}

body.admin-light-theme #page-returns .gs-degisim-banner-btn {
    background: #ffffff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

body.admin-light-theme #modalReturn .gs-degisim-modal-note {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

body.admin-light-theme #modalReturn .gs-degisim-link {
    color: #1d4ed8;
}

body.admin-light-theme #page-warranty .gs-detail-top,
body.admin-light-theme #page-warranty .gs-detail-card,
body.admin-light-theme #page-warranty .gs-detail-footer {
    background: #ffffff;
    border-color: #cbd5e1;
}

body.admin-light-theme #page-warranty .gs-detail-card-head h4,
body.admin-light-theme #page-warranty .gs-info-block strong,
body.admin-light-theme #page-warranty .gs-order-items-head,
body.admin-light-theme #page-warranty .gs-log-msg,
body.admin-light-theme #page-warranty .gs-terminal-note,
body.admin-light-theme #page-warranty .gs-logs-summary {
    color: #0f172a;
}

body.admin-light-theme #page-warranty .gs-info-block,
body.admin-light-theme #page-warranty .gs-status-bar,
body.admin-light-theme #page-warranty .gs-item-row-card,
body.admin-light-theme #page-warranty .gs-simple-fee-box,
body.admin-light-theme #page-warranty .gs-logs-history {
    background: #f8fafc;
    border-color: #cbd5e1;
}

body.admin-light-theme #page-warranty .gs-fee-live-col,
body.admin-light-theme #page-warranty .gs-order-item-btn,
body.admin-light-theme #page-warranty .gs-cat-results {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

body.admin-light-theme #page-warranty .gs-cat-item {
    color: #0f172a;
}

body.admin-light-theme #page-warranty .gs-field label,
body.admin-light-theme #page-warranty .gs-item-col label,
body.admin-light-theme #page-warranty .gs-info-lbl,
body.admin-light-theme #page-warranty .gs-card-hint,
body.admin-light-theme #page-warranty .gs-fee-live-label,
body.admin-light-theme #page-warranty .gs-fee-live-note,
body.admin-light-theme #page-warranty .gs-log-meta,
body.admin-light-theme #modalWarranty .gs-modal-sub {
    color: #475569;
}

body.admin-light-theme #page-warranty .gs-servis-badge {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

body.admin-light-theme #page-warranty .gs-fee-live-value,
body.admin-light-theme #page-warranty .gs-order-item-add {
    color: #1d4ed8;
}

body.admin-light-theme #page-warranty .gs-waiting-chip {
    background: #f1f5f9;
    color: #475569;
}

body.admin-light-theme #page-warranty .gs-act-birebir_degisim { background: #d1fae5; color: #065f46; }
body.admin-light-theme #page-warranty .gs-act-garanti_disi { background: #fee2e2; color: #991b1b; }
body.admin-light-theme #page-warranty .gs-act-ambalaj_yok { background: #fef3c7; color: #92400e; }
body.admin-light-theme #page-warranty .gs-act-onarildi { background: #e0f2fe; color: #075985; }
body.admin-light-theme #page-warranty .gs-act-musteri_vazgecti { background: #f1f5f9; color: #475569; }

body.admin-light-theme #page-warranty .gs-item-history.ok {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #065f46;
}

body.admin-light-theme #page-warranty .gs-item-history.warn {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

body.admin-light-theme #page-warranty .gs-tr-ghost,
body.admin-light-theme #page-warranty .gs-tr-secondary {
    color: #334155;
    background: #e2e8f0;
}

body.admin-light-theme #page-warranty .gs-tr-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* --- Responsive --- */
@media (max-width: 980px) {
    #page-warranty .gs-item-row-grid {
        grid-template-columns: 1fr 1fr;
    }
    #page-warranty .gs-detail-info-grid,
    #page-warranty .gs-output-grid {
        grid-template-columns: 1fr;
    }
    #page-warranty .gs-info-wide {
        grid-column: span 1;
    }
}

/* ==============================================================================
   GARANTİ & SERVİS — GERİ BİLDİRİM İYİLEŞTİRMELERİ (T-05)
   Yalnızca #page-warranty & #modalWarranty altında, gs- önekiyle izole
   ============================================================================== */

#page-warranty .gs-st-kargoya_verildi,
#modalWarranty .gs-st-kargoya_verildi {
    background: rgba(6, 182, 212, 0.22);
    color: #67e8f9;
}

body.admin-light-theme #page-warranty .gs-st-kargoya_verildi,
body.admin-light-theme #modalWarranty .gs-st-kargoya_verildi {
    background: #cffafe;
    color: #155e75;
}

/* --- Liste & Detay: Kargo Takip Hücresi --- */
#page-warranty .gs-tracking-cell,
#page-warranty .gs-detail-cargo-val {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 170px;
}

#page-warranty .gs-tracking-no {
    font-size: 12px;
    font-weight: 700;
    color: #7dd3fc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

body.admin-light-theme #page-warranty .gs-tracking-no {
    color: #0369a1;
}

#page-warranty .gs-cat-empty.gs-error {
    color: #f87171;
}

body.admin-light-theme #page-warranty .gs-cat-empty.gs-error {
    color: #b91c1c;
}

/* --- Yeni Talep Modalı: E-posta / Sipariş No Başlangıç Seçimi --- */
#modalWarranty .gs-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
    padding: 4px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

#modalWarranty .gs-mode-opt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    user-select: none;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
    border: 1px solid transparent;
    margin: 0;
}

#modalWarranty .gs-mode-opt input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

#modalWarranty .gs-mode-opt:hover {
    color: #e2e8f0;
}

#modalWarranty .gs-mode-opt.active {
    background: rgba(59, 130, 246, 0.24);
    border-color: rgba(59, 130, 246, 0.55);
    color: #f8fafc;
}

body.admin-light-theme #modalWarranty .gs-mode-switch {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

body.admin-light-theme #modalWarranty .gs-mode-opt {
    color: #475569;
}

body.admin-light-theme #modalWarranty .gs-mode-opt:hover {
    color: #0f172a;
}

body.admin-light-theme #modalWarranty .gs-mode-opt.active {
    background: #ffffff;
    border-color: #3b82f6;
    color: #1d4ed8;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* --- Kargoya Teslim Modalı (#page-warranty #gsCargoModal) --- */
#page-warranty .gs-cargo-dialog {
    width: 440px;
    max-width: 94vw;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#page-warranty .gs-cargo-head {
    padding-right: 26px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

#page-warranty .gs-cargo-head h3 {
    margin: 0 0 6px 0;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#page-warranty .gs-cargo-sub {
    margin: 0;
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.4;
}

#page-warranty .gs-req-star {
    color: #f87171;
    font-weight: 700;
}

#page-warranty .gs-cargo-error {
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.42);
    color: #fca5a5;
    font-size: 12px;
    font-weight: 600;
}

#page-warranty .gs-cargo-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

body.admin-light-theme #page-warranty .gs-cargo-sub {
    color: #475569;
}

body.admin-light-theme #page-warranty .gs-cargo-error {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

/* T-05: listede kayıt silme (soft-cancel) butonu */
.gs-btn-danger-soft {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}
.gs-btn-danger-soft:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

/* ---------------------------------------------------------------
   Aydınlık tema: giriş ekranı (T-05 sonrası düzeltme)
   Sistem tercihi "açık" iken panel koyu geliyordu; giriş ekranı
   kuralları sabit koyu renk kullanıyordu. Aşağıdaki blok yalnızca
   html/body .admin-light-theme aktifken devreye girer.
   --------------------------------------------------------------- */
html.admin-light-theme .login-wrapper,
body.admin-light-theme .login-wrapper {
    background:
        radial-gradient(circle at 18% 10%, rgba(59, 130, 246, 0.10), transparent 28rem),
        radial-gradient(circle at 82% 20%, rgba(34, 211, 238, 0.10), transparent 26rem),
        linear-gradient(135deg, #f8fafc 0%, #eef2f7 52%, #e2e8f0 100%);
}

html.admin-light-theme .login-box,
body.admin-light-theme .login-box {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.10);
}

html.admin-light-theme .login-box::before,
body.admin-light-theme .login-box::before {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.06), transparent 38%);
}

html.admin-light-theme .login-box input,
body.admin-light-theme .login-box input {
    color: #0f172a;
    background: #f8fafc;
    border-color: #cbd5e1;
}

html.admin-light-theme .login-box input::placeholder,
body.admin-light-theme .login-box input::placeholder {
    color: #94a3b8;
}

html.admin-light-theme .login-box input:focus,
body.admin-light-theme .login-box input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

html.admin-light-theme .login-box h1,
html.admin-light-theme .login-box h2,
html.admin-light-theme .login-box h3,
html.admin-light-theme .login-box .login-subtitle,
body.admin-light-theme .login-box h1,
body.admin-light-theme .login-box h2,
body.admin-light-theme .login-box h3,
body.admin-light-theme .login-box .login-subtitle {
    color: #0f172a;
}

html.admin-light-theme .login-box .error-msg,
body.admin-light-theme .login-box .error-msg {
    color: #b91c1c;
}

html.admin-light-theme .login-box .brand-logo,
body.admin-light-theme .login-box .brand-logo {
    color: #0f172a;
}

html.admin-light-theme .login-box .login-subtitle,
body.admin-light-theme .login-box .login-subtitle {
    color: #475569;
}

html.admin-light-theme .login-box > div:last-child,
body.admin-light-theme .login-box > div:last-child {
    color: #64748b !important;
}
html.admin-light-theme .login-box > div:last-child a,
body.admin-light-theme .login-box > div:last-child a {
    color: #475569 !important;
}

/* ---------------------------------------------------------------
   Hizalama düzeltmeleri (25 Kas 2026, görsel denetim)
   1) .btn-secondary ikon+metin arası boşluk yoktu (Yenile vb.)
   2) Stok listesindeki ikon düğmeleri dikey/yatay ortalı değildi
   3) Garanti tablosunda son sütun başlığı sağa hizalı değildi
   --------------------------------------------------------------- */
.btn-secondary {
    gap: 8px;
}

#page-inventory .iv-ops button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

#mainPanel button:has(> i:only-child) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#page-warranty .gs-table th:last-child {
    text-align: right;
}

/* Garanti tablosunda durum/kargo hücreleri başlıkla aynı hizada başlasın */
#page-warranty .gs-table td.gs-cell-center,
#page-warranty .gs-table th.gs-cell-center {
    text-align: center;
}

/* Sekme ve üst menü düğmelerinde ikon-metin boşluğu (görsel denetim) */
.tab-container .tab-btn,
#mainPanel .nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    line-height: 1.2;
}

/* ============================================================================
   KARGO TAKİP — portal sonuç ekranı (Varyant A) ve panel modalı
   HTML: js/kargo-gorunum.js (ktd-*) + index.html (.kb-*)
   Sınıf önekleri ktd- / kb- ; panelin kt-* (aylık kargo) sınıflarıyla çakışmaz.
   ============================================================================ */

/* ---- Sipariş sonucu: tek parça kart ---- */
.kb-kart { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 32px -22px rgba(15, 23, 42, 0.5); }
.kb-ust { border-bottom: 1px solid #eef2f7; }
#orderDashboardState.dashboard-state { display: flex; align-items: flex-start; gap: 16px; text-align: left; margin: 0; padding: 20px 22px; background: linear-gradient(180deg, #f8fbff, #ffffff); }
#orderDashboardState .dashboard-state-icon { width: 48px; height: 48px; margin: 0; border-radius: 14px; font-size: 20px; flex: 0 0 auto; }
#orderDashboardState .kb-metin { min-width: 0; }
#orderDashboardState h3 { margin: 0 0 4px; font-size: 19px; letter-spacing: -0.01em; color: #0f172a; }
#orderDashboardState p { margin: 0; font-size: 13.5px; color: #64748b; }
#orderDashboardState.dashboard-state--success { background: linear-gradient(180deg, #f2fdf6, #ffffff); }
#orderDashboardState.dashboard-state--info { background: linear-gradient(180deg, #f4f9ff, #ffffff); }
#orderDashboardState.dashboard-state--warning { background: linear-gradient(180deg, #fffdf5, #ffffff); }
#orderDashboardState.dashboard-state--danger { background: linear-gradient(180deg, #fff6f6, #ffffff); }
.kb-kargo { border-top: 1px solid #f4f7fb; }
.kb-aksiyon { justify-content: flex-start; gap: 10px; margin: 0; padding: 14px 22px 16px; border-top: 1px solid #f4f7fb; background: #fcfdff; }
.kb-aksiyon .btn-portal-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 13.5px; font-weight: 700; border-radius: 10px; }
.kb-don { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 13.5px; font-weight: 700; border-radius: 10px; color: #64748b; text-decoration: none; margin-left: auto; }
.kb-don:hover { color: #334155; }
.kb-kart .dashboard-warning { margin: 0 22px 16px; max-width: none; }

/* ---- Takip kartı ---- */
.ktd-kart { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 18px 20px; text-align: left; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04); }
.kb-kargo .ktd-kart { border: none; border-radius: 0; box-shadow: none; padding: 16px 22px 6px; }
.ktd-ust { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ktd-kunye { display: flex; gap: 6px; flex-wrap: wrap; }
.ktd-cip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: #334155; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.ktd-cip i { color: #94a3b8; font-size: 10px; }
.ktd-cip--no { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.4px; }
.ktd-cip--soluk { border-color: transparent; background: transparent; color: #94a3b8; font-weight: 600; }
.ktd-rozet { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.02em; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.ktd-rozet--basari { background: #dcfce7; color: #166534; }
.ktd-rozet--bilgi { background: #dbeafe; color: #1d4ed8; }
.ktd-rozet--uyari { background: #fef3c7; color: #92400e; }
.ktd-rozet--bekliyor { background: #e2e8f0; color: #334155; }
.ktd-rozet--notr { background: #f1f5f9; color: #475569; }
.ktd-baslik { margin: 0 0 16px; font-size: 14px; color: #0f172a; font-weight: 600; line-height: 1.45; }
.ktd-baslik i.fa-spin { margin-right: 6px; color: #2563eb; }

/* adım rayı */
.ktd-adimlar { list-style: none; display: flex; margin: 0 0 18px; padding: 0; }
.ktd-adim { flex: 1; position: relative; text-align: center; padding: 0 4px; min-width: 0; }
.ktd-adim::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: #eef2f7; }
.ktd-adim:first-child::before { display: none; }
.ktd-adim--tamam::before, .ktd-adim--aktif::before { background: #bbf7d0; }
.ktd-adim-nokta { position: relative; z-index: 1; width: 32px; height: 32px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: #ffffff; border: 2px solid #e2e8f0; color: #94a3b8; font-size: 12px; }
.ktd-adim--tamam .ktd-adim-nokta { background: #16a34a; border-color: #16a34a; color: #ffffff; }
.ktd-adim--aktif .ktd-adim-nokta { background: #ffffff; border-color: #2563eb; color: #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14); }
.ktd-adim--bekliyor .ktd-adim-nokta { opacity: 0.55; }
.ktd-adim-etiket { display: block; font-size: 12px; font-weight: 800; color: #334155; }
.ktd-adim--bekliyor .ktd-adim-etiket { color: #94a3b8; font-weight: 700; }
.ktd-adim-tarih { display: block; font-size: 11px; color: #94a3b8; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* hareket akışı */
.ktd-hareket-bas { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 10px; }
.ktd-hareket-bas h4 { margin: 0; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #94a3b8; }
.ktd-hareketler { list-style: none; margin: 0 0 12px; padding: 0; }
.ktd-hareketler li { position: relative; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 0 0 14px 26px; }
.ktd-hareketler li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #ffffff; border: 2px solid #cbd5e1; }
.ktd-hareketler li::after { content: ""; position: absolute; left: 7px; top: 18px; bottom: 2px; width: 2px; background: #e2e8f0; }
.ktd-hareketler li:last-child::after { display: none; }
.ktd-hareketler li.ktd-hareket--son::before { background: #16a34a; border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14); }
.ktd-hareket-metin { font-size: 13px; font-weight: 700; color: #0f172a; }
.ktd-hareket-tarih { font-size: 11.5px; color: #94a3b8; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ktd-hareket-yer { grid-column: 1 / -1; font-size: 11.5px; color: #94a3b8; margin-top: 2px; }
.ktd-katlanir { margin: 0 0 12px; }
.ktd-katlanir summary { cursor: pointer; font-size: 12px; font-weight: 700; color: #2563eb; padding: 4px 0 10px 26px; list-style: none; }
.ktd-katlanir summary::-webkit-details-marker { display: none; }
.ktd-katlanir summary::before { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 9px; margin-right: 7px; color: #94a3b8; }
.ktd-katlanir[open] summary::before { content: "\f077"; }

/* alt satır + hata + iskelet */
.ktd-alt { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px dashed #eef2f7; padding-top: 12px; }
.ktd-alt a { color: #2563eb; font-weight: 700; font-size: 12.5px; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.ktd-alt a:hover { text-decoration: underline; }
.ktd-taze { font-size: 11px; color: #94a3b8; }
.ktd-not { margin: 0 0 12px; font-size: 12px; color: #92400e; background: #fef3c7; border-radius: 8px; padding: 8px 10px; }
.ktd-iskelet { height: 74px; border-radius: 10px; background: linear-gradient(90deg, #f1f5f9, #e2e8f0, #f1f5f9); background-size: 200% 100%; animation: ktdParlama 1.2s linear infinite; }
@keyframes ktdParlama { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (max-width: 640px) {
  #orderDashboardState.dashboard-state { padding: 16px; gap: 12px; }
  #orderDashboardState h3 { font-size: 17px; }
  .kb-kargo .ktd-kart { padding: 14px 16px 4px; }
  .ktd-adimlar { margin-bottom: 14px; }
  .ktd-adim-etiket { font-size: 10.5px; }
  .ktd-adim-tarih { font-size: 9.5px; }
  .ktd-adim-nokta { width: 28px; height: 28px; font-size: 10px; }
  .ktd-adim::before { top: 13px; }
  .ktd-hareketler li { grid-template-columns: 1fr; }
  .ktd-hareket-tarih { grid-row: 2; }
  .kb-aksiyon .btn-portal-secondary, .kb-don { font-size: 12.5px; padding: 9px 13px; }
  .kb-don { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .ktd-iskelet { animation: none; } }

/* Mobil: sipariş başlık kartı — inline flex satırı taşıyordu (etiketler üst üste biniyordu) */
@media (max-width: 560px) {
  .dash-header-card > div:first-child { flex-direction: column !important; align-items: flex-start !important; gap: 12px; }
  .dash-header-card > div:first-child .dh-left { width: 100%; border-bottom: 1px dashed #e2e8f0; padding-bottom: 12px; }
  .dash-header-card > div:first-child .dh-right { width: 100%; justify-content: space-between; text-align: left; gap: 12px; }
  .dash-header-card .dh-price { white-space: nowrap; font-size: 16px; padding: 7px 12px; }
  #displayCustomer, #displayOrderNo { font-size: 16px; }
}

/* Talep girişleri (iade/değişim, garanti) — teslim sonrası iki net seçenek */
.kb-talep { display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 14px; border-radius: 12px; border: 1px solid #e2e8f0; background: #ffffff; cursor: pointer; font: inherit; }
.kb-talep.hidden { display: none; }
.kb-talep i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 14px; background: #f1f5f9; color: #475569; flex: 0 0 auto; }
.kb-talep strong { display: block; font-size: 13.5px; color: #0f172a; font-weight: 800; }
.kb-talep small { display: block; font-size: 11.5px; color: #94a3b8; font-weight: 600; }
.kb-talep:hover { border-color: #bfdbfe; box-shadow: 0 8px 18px -14px rgba(37, 99, 235, 0.9); }
.kb-talep--birincil { border-color: #bfdbfe; background: linear-gradient(180deg, #f7fbff, #ffffff); }
.kb-talep--birincil i { background: #dbeafe; color: #2563eb; }
.ktd-alt-sag { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.ktd-yenile { display: inline-flex; align-items: center; gap: 6px; border: none; background: none; padding: 4px 2px; color: #64748b; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; }
.ktd-yenile:hover { color: #2563eb; }
.ktd-yenile i { font-size: 11px; }
@media (max-width: 640px) {
  .kb-talep { width: 100%; }
  .ktd-alt-sag { margin-left: 0; width: 100%; justify-content: space-between; }
}
.kb-not { width: 100%; margin: 6px 0 0; font-size: 12px; color: #92400e; background: #fffbeb; border-radius: 8px; padding: 8px 10px; }
.kb-not.hidden { display: none; }
.kb-talep .fa-whatsapp { background: #e7f8f2; color: #128c7e; }

/* Sipariş sonucu sekmeleri: Kargo Takibi | Sipariş İşlemleri */
.kb-sekmeler { display: flex; gap: 4px; padding: 10px 18px 0; border-bottom: 1px solid #eef2f7; background: #ffffff; }
.kb-sekme { appearance: none; border: 1px solid transparent; background: transparent; color: #64748b; font-family: inherit; font-size: 13px; font-weight: 700; padding: 9px 14px; border-radius: 10px 10px 0 0; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.kb-sekme i { font-size: 12px; color: #94a3b8; }
.kb-sekme:hover { color: #334155; background: #f8fafc; }
.kb-sekme.is-active { color: #0f172a; background: #f8fbff; border-color: #e2e8f0; border-bottom-color: #f8fbff; margin-bottom: -1px; }
.kb-sekme.is-active i { color: #2563eb; }
.kb-sekme-icerik { padding: 0; }
.kb-sekme-icerik.hidden { display: none; }
#kbSekmeIslemler .kb-aksiyon { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; border-top: none; background: #ffffff; padding: 16px 22px 18px; }
#kbSekmeIslemler .kb-talep { flex: 1 1 260px; max-width: 420px; }
#kbSekmeIslemler .kb-not, #kbSekmeIslemler #dashboardWarning { flex-basis: 100%; }
#kbSekmeIslemler .kb-not { margin: 2px 0 0; }
.kb-alt-satir { display: flex; justify-content: flex-end; padding: 10px 22px 14px; border-top: 1px solid #f4f7fb; background: #fcfdff; }
.kb-alt-satir .kb-don { margin-left: 0; }
@media (max-width: 640px) {
  .kb-sekmeler { padding: 8px 12px 0; }
  .kb-sekme { font-size: 12.5px; padding: 8px 11px; }
  .kb-alt-satir { justify-content: center; }
}

/* ---------------------------------------------------------------------------
   AYLIK KARGO TAKİBİ — oran şeritleri
   Etiket ile yüzde arasındaki uzun çubuk, "%32,4 hangi kanalın?" karışıklığı
   yaratıyordu. Yüzde artık etiketin hemen yanında; çubuk sağda kısa bir ölçek.
   --------------------------------------------------------------------------- */
body #page-desi .kt-ratios {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

body #page-desi .kt-ratio {
    display: inline-grid;
    grid-template-columns: auto auto 72px;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 12px;
}

body #page-desi .kt-ratio-ad { width: auto; white-space: nowrap; }
body #page-desi .kt-ratio-deger { width: auto; min-width: 44px; text-align: right; }
body #page-desi .kt-ratio-bar { width: 100%; min-width: 28px; height: 5px; }
body #page-desi .kt-ratio-koli { flex: 1 0 100%; display: flex; gap: 8px; }
body #page-desi .kt-ratio-koli .kt-ratio-not { font-style: normal; }

body.admin-light-theme #page-desi .kt-ratio {
    background: #f8fafc;
    border-color: #e2e8f0;
}

@media (max-width: 720px) {
    body #page-desi .kt-ratio { grid-template-columns: auto auto minmax(28px, 56px); }
}
