/* ═══════════════════════════════════════════════════════════
   SalesIQ — Tampilan Ramah Pemula & Tema Terang Bersih (v2.0)
   Dimuat SETELAH dashboard.css
   1. Huruf lebih jelas & kontras nyaman (Tema Gelap & Terang)
   2. Tombol utama menonjol, tidak membingungkan pemula
   3. Tema Terang (body.theme-light) dengan gradien cerah & bersih
   ═══════════════════════════════════════════════════════════ */

/* ─── 1. Keterbacaan & Ukuran Dasar ───────────────────────── */
:root {
    --text-primary:   #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted:     #a3b1c6;
    --border:         rgba(255, 255, 255, 0.14);
    --border-hover:   rgba(255, 255, 255, 0.24);
    --bg-card:        #141c2f;
    --bg-secondary:   #141c2f;
    --bg-card-solid:  #141c2f;
}

html { font-size: 15px; }
body { line-height: 1.5; letter-spacing: 0.005em; }

.nav-section-label {
    color: var(--text-muted) !important;
    letter-spacing: 0.08em;
    font-size: 0.68rem !important;
    padding: 8px 12px 4px !important;
}

/* ─── 2. Hierarki Tombol & Navigasi Proporsional ──────────── */
.btn, button.btn {
    min-height: 36px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 9px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-sm, button.btn-sm {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: 8px;
}
.btn:active, button:active {
    transform: translateY(1px);
}
.btn:focus-visible, button:focus-visible, a:focus-visible,
input:focus-visible, select:focus-visible {
    outline: 2px solid #2563eb !important;
    outline-offset: 2px;
}

/* Tombol aksi utama: "Buka Kasir" & "Bayar / Cetak Struk" */
#btnOpenQuickSale {
    min-height: 36px;
    padding: 6px 14px !important;
    font-size: 0.82rem !important;
    border-radius: 9px !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: 1px solid #059669 !important;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.28) !important;
}
#btnOpenQuickSale:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 5px 14px rgba(16, 185, 129, 0.38) !important;
}
#btnSubmitPosPage {
    min-height: 52px;
    font-size: 1.02rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
    border-radius: 11px !important;
}

/* Menu samping: rapi 1 baris & semua menu muat tanpa terpotong */
.sidebar-nav {
    padding: 8px 10px !important;
}
.nav-item {
    min-height: 38px;
    padding: 7px 12px !important;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}
.nav-item > span:not(.nav-badge):not(.pro-sidebar-badge) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-item.active {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.28);
    box-shadow: inset 3px 0 0 #3b82f6;
}

/* Menu "Lainnya" */
.header-more-item { padding: 10px 14px; }
.header-more-item strong { font-size: 0.84rem; }

/* Form input proporsional */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select, textarea {
    min-height: 36px;
    font-size: 0.84rem;
}

/* Mesin Kasir: kartu produk & keranjang mudah dibaca */
.pos-product-card { padding: 12px; min-height: 110px; }
.pos-prod-name   { font-size: 0.88rem; font-weight: 700; }
.pos-prod-price  { font-size: 0.96rem; font-weight: 800; }
.pos-cat-pill    { min-height: 34px; padding: 6px 14px; font-size: 0.8rem; }

/* Kartu KPI */
.kpi-value { font-size: 1.45rem; font-weight: 800; }

/* ─── Tombol pilih tema (di header) ───────────────────────── */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    padding: 5px 10px;
    border-radius: 9px;
    border: 1px solid var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
}
.theme-toggle-btn:hover { background: rgba(255, 255, 255, 0.12); }

/* ═══════════════════════════════════════════════════════════
   3. TEMA TERANG (body.theme-light) — CORPORATE NAVY & ROYAL BLUE (OPSI 1)
   ═══════════════════════════════════════════════════════════ */
body.theme-light {
    --bg-root:       #f1f5f9;
    --bg-primary:    #f8fafc;
    --bg-secondary:  #ffffff;
    --bg-card:       #ffffff;
    --bg-card-solid: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-input:      #ffffff;
    --bg-sidebar:    #0f172a; /* Deep Corporate Navy */
    --border:        #e2e8f0;
    --border-hover:  #cbd5e1;
    --text-primary:  #0f172a;
    --text-secondary:#334155;
    --text-muted:    #64748b;
    --accent:        #1d4ed8; /* Royal Corporate Blue */
    --accent-hover:  #1e40af;
    --accent-text:   #1d4ed8;
    --accent-muted:  rgba(29, 78, 216, 0.10);
    --success:       #16a34a;
    --warning:       #d97706;
    --danger:        #dc2626;
    --info:          #0284c7;
    --kpi-blue:      #1d4ed8;
    --kpi-blue-bg:   rgba(29, 78, 216, 0.12);
    --kpi-emerald:   #16a34a;
    --kpi-emerald-bg:rgba(22, 163, 74, 0.12);
    --kpi-amber:     #d97706;
    --kpi-amber-bg:  rgba(217, 119, 6, 0.12);
    --kpi-rose:      #dc2626;
    --kpi-rose-bg:   rgba(220, 38, 38, 0.12);
    --chart-1:       #1d4ed8;
    --shadow-sm:     0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md:     0 4px 14px rgba(15, 23, 42, 0.08);
    --shadow-lg:     0 10px 24px rgba(15, 23, 42, 0.10);
    --shadow-glow:   none;
    background: #f1f5f9 !important;
    color: #0f172a;
}

/* Permukaan Utama & Area Kerja */
body.theme-light .main-content,
body.theme-light .dashboard-scroll {
    background: #f1f5f9 !important;
}

/* Sidebar: Deep Corporate Navy (Warna Bank / Enterprise) */
body.theme-light .sidebar {
    background: #0f172a !important;
    border-right: 1px solid #1e293b !important;
    box-shadow: 2px 0 14px rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .sidebar .sidebar-header {
    border-bottom: 1px solid #1e293b !important;
}

body.theme-light .sidebar .logo-icon {
    background: #1e40af !important;
    border-radius: 8px !important;
    border: 1px solid #2563eb !important;
}

body.theme-light .sidebar .logo-name {
    color: #f8fafc !important;
}

body.theme-light .sidebar .logo-tag {
    background: #1e293b !important;
    color: #94a3b8 !important;
    border: 1px solid #334155 !important;
}

body.theme-light .sidebar .nav-section-label {
    color: #64748b !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.05em !important;
    font-weight: 700 !important;
}

body.theme-light .sidebar .nav-item {
    color: #94a3b8 !important;
    transition: all 0.15s ease !important;
}

body.theme-light .sidebar .nav-item:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

body.theme-light .sidebar .nav-item.active {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(29, 78, 216, 0.3) !important;
}

body.theme-light .sidebar .nav-item.active::before {
    display: none !important;
}

body.theme-light .sidebar .nav-item.active svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

body.theme-light .sidebar .nav-badge {
    background: #1e3a8a !important;
    color: #bfdbfe !important;
    border: 1px solid #3b82f6 !important;
}

/* Header Atas Putih Bersih */
body.theme-light .main-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04) !important;
}

/* Kartu & Panel Formal */
body.theme-light .kpi-card,
body.theme-light .chart-card,
body.theme-light .card,
body.theme-light .table-card,
body.theme-light .modal-card,
body.theme-light .header-more-menu,
body.theme-light .pos-catalog-panel,
body.theme-light .pos-cart-panel,
body.theme-light .product-stat-card,
body.theme-light .pareto-card,
body.theme-light .basket-metric-card,
body.theme-light .bundle-card,
body.theme-light .basket-matrix-card,
body.theme-light .rfm-metric-card,
body.theme-light .rfm-segment-card,
body.theme-light .rfm-directory-card,
body.theme-light .stock-metric-card,
body.theme-light .stock-forecast-chart-card,
body.theme-light .stock-velocity-card,
body.theme-light .pnl-card,
body.theme-light .pnl-opex-control,
body.theme-light .pnl-scorecard,
body.theme-light .pnl-panel,
body.theme-light .pnl-cat-card,
body.theme-light .pnl-insights-card,
body.theme-light .pnl-insight-item,
body.theme-light .cohort-card,
body.theme-light .clv-card,
body.theme-light .clv-kpi,
body.theme-light .clv-seg-card,
body.theme-light .clv-panel,
body.theme-light .clv-loyalty-item,
body.theme-light .goal-tracking-widget,
body.theme-light .goal-card,
body.theme-light .period-comparison-widget,
body.theme-light .comparison-metric-item,
body.theme-light .comparison-prod-col,
body.theme-light .saas-plan-card {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

body.theme-light .kpi-card:hover,
body.theme-light .chart-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

/* 1. Welcome Banner Formal: Kartu Putih Bersih dengan Aksen Biru Korporat */
body.theme-light .welcome-banner {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #1d4ed8 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

body.theme-light .welcome-banner h2 {
    color: #0f172a !important;
}

body.theme-light .welcome-banner p {
    color: #475569 !important;
}

/* 2. Banner Informasi */
body.theme-light #onboardingGuideBanner,
body.theme-light #proUnlockBanner,
body.theme-light .pro-unlock-banner,
body.theme-light .ai-header-panel {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04) !important;
}

/* 3. Panel Meja Kasir Cepat (Mode Kasir) */
body.theme-light .cashier-workspace-panel {
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%) !important;
    border: 1.5px solid #7dd3fc !important;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.10) !important;
}
body.theme-light .cashier-workspace-badge {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    color: #ffffff !important;
}
body.theme-light .cashier-action-card {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05) !important;
}
body.theme-light .cashier-action-card:hover {
    background: #f8fafc !important;
    border-color: #0ea5e9 !important;
}
body.theme-light .cashier-action-card .cashier-card-info strong { color: #0f172a !important; }
body.theme-light .cashier-action-card .cashier-card-info span { color: #475569 !important; }

body.theme-light .cashier-action-card.primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: #059669 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.28) !important;
}
body.theme-light .cashier-action-card.primary .cashier-card-info strong,
body.theme-light .cashier-action-card.primary .cashier-card-info span {
    color: #ffffff !important;
}

/* 4. Mesin Kasir (POS): Tampilan Formal Enterprise (Dark & Light Mode) */
.pos-minimarket-led-bar {
    background: #0f172a !important;
    border: 1px solid #1e293b !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
}
.pos-minimarket-led-bar::before {
    display: none !important;
}
.pos-terminal-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.pos-cloud-terminal-badge,
.pos-saas-plan-badge,
.pos-cashier-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    padding: 3px 9px !important;
    border-radius: 6px !important;
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
    box-shadow: none !important;
}
.pos-saas-plan-badge {
    cursor: pointer;
}
.pos-saas-plan-badge:hover {
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}
.pos-active-cashier-name {
    color: #f8fafc !important;
    font-weight: 700 !important;
}
.pos-barcode-hint {
    font-size: 0.72rem;
    color: #94a3b8;
}
.pos-barcode-hint code {
    background: #1e293b;
    border: 1px solid #334155;
    color: #93c5fd;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.7rem;
}
.pos-led-item-ticker {
    font-family: inherit !important;
    font-size: 0.81rem !important;
    font-weight: 600 !important;
    color: #cbd5e1 !important;
    background: #0b0f19 !important;
    border: 1px solid #1e293b !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    letter-spacing: 0 !important;
}
.pos-led-right {
    background: #0b0f19 !important;
    border: 1px solid #334155 !important;
    border-left: 3px solid #3b82f6 !important;
    border-radius: 10px !important;
    padding: 8px 16px !important;
    min-width: 210px !important;
}
.pos-led-total-label {
    font-size: 0.67rem !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    letter-spacing: 0.04em !important;
}
.pos-led-total-digits {
    font-family: inherit !important;
    font-variant-numeric: tabular-nums !important;
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    color: #f8fafc !important;
    text-shadow: none !important;
}

.pos-fn-toolbar {
    margin-bottom: 12px !important;
}
.pos-fn-btn,
.pos-fn-btn.fn-add-prod {
    background: #131c2e !important;
    border: 1px solid #2b374e !important;
    color: #e2e8f0 !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    padding: 6px 11px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}
.pos-fn-btn:hover,
.pos-fn-btn.fn-add-prod:hover {
    background: #1e293b !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}
.pos-fn-btn .fn-key,
.pos-fn-btn.fn-add-prod .fn-key {
    background: #0b0f19 !important;
    border: 1px solid #334155 !important;
    color: #93c5fd !important;
}

.pos-catalog-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: #94a3b8;
    padding: 36px;
}

.pos-product-card {
    background: #131c2e !important;
    border: 1px solid #23324d !important;
    border-radius: 10px !important;
    padding: 11px 12px !important;
}
.pos-product-card:hover {
    border-color: #3b82f6 !important;
    background: #1a263e !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}
.pos-prod-price {
    color: #f8fafc !important;
    font-variant-numeric: tabular-nums !important;
}
.pos-prod-stock {
    background: rgba(148, 163, 184, 0.14) !important;
    color: #cbd5e1 !important;
}
.pos-prod-stock.low {
    background: rgba(245, 158, 11, 0.16) !important;
    color: #fcd34d !important;
}
.pos-prod-stock.empty {
    background: rgba(239, 68, 68, 0.16) !important;
    color: #fca5a5 !important;
}

.pos-cart-panel {
    border-color: #1e293b !important;
    min-width: 0;
    max-width: 100%;
    padding: 14px !important;
}
.pos-cart-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pos-cart-subtitle {
    font-size: 0.73rem;
    color: #94a3b8;
}
.pos-cart-header-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.pos-cart-action-btn {
    font-size: 0.71rem !important;
    padding: 4px 8px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
}
.pos-customer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.pos-cart-empty-icon {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
}
.pos-cart-empty p {
    font-size: 0.75rem;
    color: #64748b;
    margin: 4px 0 0;
}
.pos-tabular-val {
    font-variant-numeric: tabular-nums;
}
.pos-summary-row-center {
    align-items: center;
}
.pos-discount-input {
    width: 110px;
    padding: 4px 8px;
    background: #0b0f19;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #f8fafc;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
    font-size: 0.82rem;
    outline: none;
}
.pos-discount-input:focus {
    border-color: #3b82f6;
}
.pos-ppn-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.76rem;
    color: #94a3b8;
}
.pos-ppn-label input {
    accent-color: #2563eb;
}
.pos-ppn-val {
    font-size: 0.78rem;
    color: #94a3b8;
}
.pos-total-row {
    background: #0b0f19 !important;
    border: 1px solid #334155 !important;
    border-left: 3px solid #3b82f6 !important;
    color: #e2e8f0 !important;
}
.pos-total-row strong {
    color: #f8fafc !important;
}
.pos-cash-input-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.pos-cash-label {
    font-size: 0.74rem;
    color: #cbd5e1;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.pos-cash-input {
    width: 130px;
    padding: 5px 8px;
    background: #0b0f19;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #f8fafc;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
    font-size: 0.84rem;
    outline: none;
}
.pos-cash-input:focus {
    border-color: #3b82f6;
}
.pos-quick-cash-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.pos-change-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    padding-top: 5px;
    border-top: 1px dashed rgba(148, 163, 184, 0.25);
    color: #94a3b8;
}
.pos-change-val {
    color: #f8fafc;
    font-size: 0.9rem;
}
.pos-submit-btn {
    background: #2563eb !important;
    border: 1px solid #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}
.pos-submit-btn:hover {
    background: #1d4ed8 !important;
    filter: none !important;
}

/* Light Mode Formal POS Overrides (Corporate Navy & Slate) */
body.theme-light .pos-minimarket-led-bar {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}
body.theme-light .pos-cloud-terminal-badge,
body.theme-light .pos-saas-plan-badge,
body.theme-light .pos-cashier-chip {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}
body.theme-light .pos-saas-plan-badge:hover {
    background: #eff6ff !important;
    border-color: #1d4ed8 !important;
    color: #1d4ed8 !important;
}
body.theme-light .pos-active-cashier-name {
    color: #0f172a !important;
}
body.theme-light .pos-barcode-hint {
    color: #64748b !important;
}
body.theme-light .pos-barcode-hint code {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #1e40af !important;
}
body.theme-light .pos-led-item-ticker {
    background: #f8fafc !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
}
body.theme-light .pos-led-right {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 3px solid #1d4ed8 !important;
    box-shadow: none !important;
}
body.theme-light .pos-led-total-label {
    color: #475569 !important;
}
body.theme-light .pos-led-total-digits {
    color: #0f172a !important;
}

/* Tombol Toolbar Kasir (F8, F4, Struk Ditahan, Panduan Cepat) */
body.theme-light .pos-fn-btn,
body.theme-light .pos-fn-btn.fn-add-prod {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}
body.theme-light .pos-fn-btn:hover,
body.theme-light .pos-fn-btn.fn-add-prod:hover {
    background: #eff6ff !important;
    border-color: #1d4ed8 !important;
    color: #1d4ed8 !important;
    transform: translateY(-1px);
}
body.theme-light .pos-fn-btn .fn-key,
body.theme-light .pos-fn-btn.fn-add-prod .fn-key {
    background: #f1f5f9 !important;
    color: #1e40af !important;
    border-color: #cbd5e1 !important;
}

/* Form Tambah Barang Baru & Struk Ditahan di POS */
body.theme-light .pos-inline-new-prod-box {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 3px solid #1d4ed8 !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06) !important;
}
body.theme-light .pos-np-header { border-bottom-color: #e2e8f0 !important; }
body.theme-light .pos-np-title { color: #0f172a !important; }
body.theme-light .pos-np-subtitle { color: #475569 !important; }
body.theme-light .pos-np-field label { color: #1e293b !important; }
body.theme-light .pos-np-hint { color: #64748b !important; }
body.theme-light .pos-np-footer { border-top-color: #e2e8f0 !important; }
body.theme-light .pos-np-profit-preview {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

body.theme-light #posHeldBillsBox {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
}

/* Katalog & Keranjang Kasir di Tema Terang */
body.theme-light .pos-search-bar {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
}
body.theme-light .pos-search-bar:focus-within {
    border-color: #1d4ed8 !important;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.12);
}
body.theme-light .pos-search-bar input {
    color: #0f172a !important;
}
body.theme-light .pos-cat-pill {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}
body.theme-light .pos-cat-pill:hover {
    border-color: #1d4ed8 !important;
    color: #1d4ed8 !important;
}
body.theme-light .pos-cat-pill.active {
    background: #1d4ed8 !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
    box-shadow: none !important;
}
body.theme-light .pos-product-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}
body.theme-light .pos-product-card:hover {
    background: #f8fafc !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.08) !important;
}
body.theme-light .pos-prod-cat { color: #64748b !important; }
body.theme-light .pos-prod-name { color: #0f172a !important; }
body.theme-light .pos-prod-bottom { border-top-color: #f1f5f9 !important; }
body.theme-light .pos-prod-price { color: #0f172a !important; }
body.theme-light .pos-prod-sku { color: #64748b !important; }
body.theme-light .pos-prod-stock {
    background: #f1f5f9 !important;
    color: #475569 !important;
}
body.theme-light .pos-prod-stock.low {
    background: #fffbeb !important;
    color: #92400e !important;
}
body.theme-light .pos-prod-stock.empty {
    background: #fef2f2 !important;
    color: #991b1b !important;
}

body.theme-light .pos-cart-panel {
    border-color: #cbd5e1 !important;
}
body.theme-light .pos-cart-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    margin: -14px -14px 0 !important;
    padding: 12px 14px !important;
    border-radius: 13px 13px 0 0;
}
body.theme-light .pos-cart-title { color: #0f172a !important; }
body.theme-light .pos-cart-subtitle { color: #64748b !important; }
body.theme-light .pos-small-input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}
body.theme-light .pos-small-input:focus {
    border-color: #1d4ed8 !important;
}
body.theme-light .pos-cart-item-row {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
body.theme-light .pos-cart-item-title { color: #0f172a !important; }
body.theme-light .pos-qty-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}
body.theme-light .pos-qty-btn:hover {
    background: #eff6ff !important;
    border-color: #1d4ed8 !important;
    color: #1d4ed8 !important;
}
body.theme-light .pos-cart-footer {
    background: transparent !important;
    border-top: 1px solid #e2e8f0 !important;
}
body.theme-light .pos-summary-row {
    color: #475569 !important;
}
body.theme-light .pos-summary-row strong {
    color: #0f172a !important;
}
body.theme-light .pos-discount-input,
body.theme-light .pos-cash-input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}
body.theme-light .pos-discount-input:focus,
body.theme-light .pos-cash-input:focus {
    border-color: #1d4ed8 !important;
}
body.theme-light .pos-ppn-label,
body.theme-light .pos-ppn-val {
    color: #475569 !important;
}
body.theme-light .pos-total-row {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 3px solid #1d4ed8 !important;
    color: #1e293b !important;
}
body.theme-light .pos-total-row strong {
    color: #0f172a !important;
}
body.theme-light .pos-pay-pill {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}
body.theme-light .pos-pay-pill:hover:not(.active) {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}
body.theme-light .pos-pay-pill.active {
    background: #1d4ed8 !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
    box-shadow: none !important;
}
body.theme-light .pos-cash-calculator {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
body.theme-light .pos-cash-label {
    color: #334155 !important;
}
body.theme-light .pos-quick-cash-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}
body.theme-light .pos-quick-cash-btn:hover {
    background: #eff6ff !important;
    border-color: #1d4ed8 !important;
    color: #1d4ed8 !important;
}
body.theme-light .pos-change-row {
    border-top-color: #cbd5e1 !important;
    color: #475569 !important;
}
body.theme-light .pos-change-val {
    color: #0f172a !important;
}
body.theme-light .pos-submit-btn {
    background: #1d4ed8 !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(29, 78, 216, 0.22) !important;
}
body.theme-light .pos-submit-btn:hover {
    background: #1e40af !important;
}

/* 5. Mode Switcher (Kasir vs Pemilik) & Utilitas Header di Tema Terang */
body.theme-light .mode-switcher-container,
body.theme-light .mode-switcher-pills {
    background: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
body.theme-light .mode-pill-btn {
    color: #475569 !important;
}
body.theme-light .mode-pill-btn:hover:not(.active) {
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.85) !important;
}
body.theme-light .mode-pill-btn.active.btn-cashier {
    background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.28);
}
body.theme-light .mode-pill-btn.active.btn-simple,
body.theme-light .mode-pill-btn.active {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}
body.theme-light .notification-bell-btn {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
body.theme-light .notification-bell-btn:hover {
    background: #eff6ff !important;
    border-color: #2563eb !important;
    color: #1d4ed8 !important;
}
body.theme-light .notification-badge {
    border-color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35) !important;
}
body.theme-light .product-stat-value {
    color: #0f172a !important;
}
body.theme-light .product-stat-label {
    color: #475569 !important;
}
body.theme-light .product-sku-pill {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
}

/* 6. Modal & Notification Drawer di Tema Terang */
body.theme-light .modal-overlay {
    background: rgba(15, 23, 42, 0.45) !important;
}
body.theme-light .modal-header,
body.theme-light .modal-header[style*="linear-gradient"] {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
body.theme-light .modal-header h3,
body.theme-light .modal-header h3 * {
    color: #0f172a !important;
}
body.theme-light .notification-drawer {
    background: #ffffff !important;
    border-left: 1px solid #e2e8f0 !important;
    box-shadow: -8px 0 30px rgba(15, 23, 42, 0.12) !important;
}
body.theme-light .notification-drawer-header,
body.theme-light .drawer-footer-actions {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}
body.theme-light .notification-card {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

/* 7. Navigasi Samping di Tema Terang — Corporate Deep Navy */
body.theme-light .sidebar .nav-item { color: #94a3b8 !important; }
body.theme-light .sidebar .nav-item:hover { background: rgba(255, 255, 255, 0.08) !important; color: #ffffff !important; }
body.theme-light .sidebar .nav-item.active {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.35) !important;
}

/* 8. Override Elemen Inline yang Punya Gradien Gelap (15, 23, 42 / 30, 27, 75) */
body.theme-light div[style*="linear-gradient"][style*="15, 23, 42"],
body.theme-light div[style*="linear-gradient"][style*="15,23,42"],
body.theme-light div[style*="linear-gradient"][style*="30, 27, 75"],
body.theme-light div[style*="linear-gradient"][style*="13, 19, 33"] {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

/* Override latar gelap transparan pada kotak / div (BUKAN tombol) */
body.theme-light div[style*="background: rgba(0,0,0"],
body.theme-light div[style*="background: rgba(15, 23, 42"],
body.theme-light div[style*="background: rgba(15,23,42"],
body.theme-light div[style*="background: #0f172a"]:not(.sidebar):not(.sidebar *),
body.theme-light div[style*="background: #131b2e"],
body.theme-light div[style*="background: #0b0f19"] {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}
body.theme-light div[style*="background: rgba(255,255,255,0.0"],
body.theme-light div[style*="background: rgba(255, 255, 255, 0.0"] {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}
body.theme-light [style*="border: 1px solid rgba(255,255,255"],
body.theme-light [style*="border: 1px solid rgba(255, 255, 255"] {
    border-color: #e2e8f0 !important;
}

/* 9. Warna Teks Inline di Tema Terang (Tanpa Merusak Teks Putih pada Tombol Berwarna!) */
body.theme-light :not(button):not(.btn):not(.pos-cat-pill):not(.pos-pay-pill):not(.mode-pill-btn):not(.cashier-workspace-badge):not(.sidebar *)[style*="color: #f8fafc"],
body.theme-light :not(button):not(.btn):not(.pos-cat-pill):not(.pos-pay-pill):not(.mode-pill-btn):not(.cashier-workspace-badge):not(.sidebar *)[style*="color:#f8fafc"],
body.theme-light :not(button):not(.btn):not(.pos-cat-pill):not(.pos-pay-pill):not(.mode-pill-btn):not(.cashier-workspace-badge):not(.sidebar *)[style*="color: #f1f5f9"],
body.theme-light :not(button):not(.btn):not(.pos-cat-pill):not(.pos-pay-pill):not(.mode-pill-btn):not(.cashier-workspace-badge):not(.sidebar *)[style*="color: #e2e8f0"] {
    color: #0f172a !important;
}

body.theme-light :not(button):not(.btn):not(.sidebar *)[style*="color: #cbd5e1"],
body.theme-light :not(button):not(.btn):not(.sidebar *)[style*="color: #94a3b8"],
body.theme-light :not(button):not(.btn):not(.sidebar *)[style*="color: #64748b"] {
    color: #475569 !important;
}

body.theme-light :not(button):not(.btn)[style*="color: #a5b4fc"],
body.theme-light :not(button):not(.btn)[style*="color: #93c5fd"],
body.theme-light :not(button):not(.btn)[style*="color: #bfdbfe"],
body.theme-light :not(button):not(.btn)[style*="color: #c7d2fe"],
body.theme-light :not(button):not(.btn)[style*="color: #60a5fa"],
body.theme-light :not(button):not(.btn)[style*="color: #3b82f6"] {
    color: #1d4ed8 !important;
}
body.theme-light :not(button):not(.btn)[style*="color: #6ee7b7"],
body.theme-light :not(button):not(.btn)[style*="color: #34d399"] {
    color: #15803d !important;
}
body.theme-light :not(button):not(.btn)[style*="color: #7dd3fc"],
body.theme-light :not(button):not(.btn)[style*="color: #bae6fd"],
body.theme-light :not(button):not(.btn)[style*="color: #38bdf8"] {
    color: #0284c7 !important;
}
body.theme-light :not(button):not(.btn)[style*="color: #fca5a5"],
body.theme-light :not(button):not(.btn)[style*="color: #f87171"] {
    color: #dc2626 !important;
}
body.theme-light :not(button):not(.btn)[style*="color: #fbbf24"],
body.theme-light :not(button):not(.btn)[style*="color: #fde68a"] {
    color: #b45309 !important;
}

/* Pastikan SEMUA tombol bergradien / berwarna solid tetap bertulisan putih bersih */
body.theme-light .btn-primary,
body.theme-light .btn-primary *,
body.theme-light #btnOpenQuickSale,
body.theme-light #btnOpenQuickSale *,
body.theme-light #btnSubmitPosPage,
body.theme-light #btnSubmitPosPage *,
body.theme-light #btnShowAllCharts,
body.theme-light #btnShowAllCharts *,
body.theme-light button[style*="linear-gradient"],
body.theme-light button[style*="linear-gradient"] *,
body.theme-light button[style*="#25D366"],
body.theme-light button[style*="#25D366"] *,
body.theme-light a[style*="#25D366"],
body.theme-light a[style*="#25D366"] * {
    color: #ffffff !important;
}

/* Tombol Primer Korporat di Tema Terang */
body.theme-light .btn-primary,
body.theme-light #btnShowAllCharts,
body.theme-light button[style*="background: linear-gradient(135deg, #2563eb"],
body.theme-light button[style*="background:linear-gradient(135deg,#2563eb"] {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
    border: 1px solid #1e40af !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(29, 78, 216, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}
body.theme-light .btn-primary:hover,
body.theme-light #btnShowAllCharts:hover {
    background: linear-gradient(180deg, #3b82f6 0%, #1e40af 100%) !important;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
    transform: translateY(-1px);
}

/* Tombol sekunder & tombol netral di Tema Terang */
body.theme-light .btn-secondary,
body.theme-light .theme-toggle-btn,
body.theme-light .header-more-btn,
body.theme-light .chart-btn {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    color: #1e293b !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}
body.theme-light .btn-secondary:hover,
body.theme-light .theme-toggle-btn:hover,
body.theme-light .header-more-btn:hover,
body.theme-light .chart-btn:hover {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
    color: #1d4ed8 !important;
}
body.theme-light .chart-btn.active {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border-color: #1e40af !important;
    box-shadow: 0 2px 6px rgba(29, 78, 216, 0.25) !important;
}

/* Tombol Keluar (Logout) di Header Tema Terang */
body.theme-light #logoutBtn {
    background: #fef2f2 !important;
    border: 1.5px solid #fca5a5 !important;
    color: #dc2626 !important;
    box-shadow: 0 1px 2px rgba(220, 38, 38, 0.08) !important;
}
body.theme-light #logoutBtn span,
body.theme-light #logoutBtn svg {
    color: #dc2626 !important;
}
body.theme-light #logoutBtn:hover {
    background: #dc2626 !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
}
body.theme-light #logoutBtn:hover span,
body.theme-light #logoutBtn:hover svg {
    color: #ffffff !important;
}

/* Input, Select, Textarea di Tema Terang */
body.theme-light input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(.search-input):not(.date-input),
body.theme-light select,
body.theme-light textarea {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
}
body.theme-light .search-box,
body.theme-light .date-filter-group {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
}
body.theme-light .search-box:focus-within {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14) !important;
}
body.theme-light .search-box .search-input,
body.theme-light .date-filter-group .date-input,
body.theme-light .search-box .search-input:focus,
body.theme-light .date-filter-group .date-input:focus {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: #0f172a !important;
}
body.theme-light input::placeholder,
body.theme-light textarea::placeholder {
    color: #64748b !important;
}
body.theme-light input:not(.search-input):not(.date-input):focus,
body.theme-light select:focus,
body.theme-light textarea:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* Tabel di Tema Terang */
body.theme-light table th {
    background: #f8fafc !important;
    color: #334155 !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
}
body.theme-light table td {
    color: #0f172a;
    border-color: #e2e8f0 !important;
}
body.theme-light table tr:hover td {
    background: #f8fafc !important;
}

body.theme-light .header-more-item { color: #0f172a !important; }
body.theme-light .header-more-item strong { color: #0f172a !important; }
body.theme-light .header-more-item small { color: #475569 !important; }
body.theme-light .header-more-item:hover { background: #f1f5f9 !important; }
body.theme-light .header-title { color: #0f172a !important; }
body.theme-light .header-subtitle { color: #475569 !important; }
body.theme-light .kpi-value { color: #0f172a !important; }
body.theme-light .kpi-label { color: #475569 !important; }
body.theme-light .pos-cat-pill { background: #f1f5f9 !important; color: #334155 !important; border-color: #cbd5e1 !important; }
body.theme-light .pos-cat-pill.active { background: #1d4ed8 !important; color: #ffffff !important; border-color: #1d4ed8 !important; }
body.theme-light code { color: #1e40af !important; background: #eff6ff !important; padding: 2px 5px; border-radius: 4px; }
body.theme-light .loading-overlay { background: rgba(241, 245, 249, 0.92) !important; }
body.theme-light .spinner-text { color: #334155 !important; }

/* ─── Tombol kontekstual per halaman ──────────────────────── */
/* Tombol "Kembali" hanya muncul di Mesin Kasir */
#btnBackToOverview { display: none !important; }
body[data-section="pos"] #btnBackToOverview { display: inline-flex !important; align-items: center; }
/* Saat sudah di Mesin Kasir: "Buka Kasir" & "Upload File" tidak relevan → disembunyikan */
body[data-section="pos"] #btnOpenQuickSale,
body[data-section="pos"] #btnHeaderUploadCsv { display: none !important; }
/* Filter tanggal (Dari — Sampai — Terapkan) HANYA relevan di Ringkasan (overview), Riwayat Pesanan (orders), dan Analisis Rinci (analytics).
   Sembunyikan di Mesin Kasir (pos), Katalog & Stok (products), dan Konsultan AI (ai-insights) agar tidak membingungkan. */
body[data-section="pos"] .date-filter-group,
body[data-section="products"] .date-filter-group,
body[data-section="ai-insights"] .date-filter-group {
    display: none !important;
}

/* ─── Sembunyikan Menu, Grafik & Data Omzet Pemilik Saat Mode Kasir Aktif ─── */
body.mode-cashier .owner-only-el,
body.mode-cashier #btnBackupStoreData,
body.mode-cashier #onboardingGuideBanner,
body.mode-cashier #dateMismatchAlert,
body.mode-cashier .date-filter-group,
body.mode-cashier #btnNotificationBell,
body.mode-cashier #proUnlockBanner,
body.mode-cashier .pro-collapse-banner,
body.mode-cashier #section-overview .welcome-banner,
body.mode-cashier #section-overview .kpi-grid,
body.mode-cashier #section-overview .charts-grid,
body.mode-cashier #section-overview .chart-card,
body.mode-cashier #productsTable button[onclick*="deleteProduct("],
body.mode-cashier #productsTable button[onclick*="openProductModal("] {
    display: none !important;
}

/* Jika login memakai Akun Staf Kasir terpisah, sembunyikan tombol switcher Pemilik & tombol ubah PIN */
body.cashier-staff-account #modeSwitcherContainer,
body.cashier-staff-account #btnCashierPinToggle {
    display: none !important;
}

/* ─── Bar "Kembali ke Tampilan Ringkas" saat Mode Grafik Lengkap (Pro) Aktif ─── */
.pro-collapse-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    padding: 14px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.48) 0%, rgba(15, 23, 42, 0.92) 100%);
    border: 1px dashed rgba(59, 130, 246, 0.42);
}
.pro-collapse-banner strong {
    display: block;
    font-size: 0.92rem;
    color: #f8fafc;
    margin-bottom: 2px;
}
.pro-collapse-banner span {
    font-size: 0.8rem;
    color: #cbd5e1;
}
body.theme-light .pro-collapse-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border: 1.5px dashed #3b82f6 !important;
}
body.theme-light .pro-collapse-banner strong {
    color: #1e3a8a !important;
}
body.theme-light .pro-collapse-banner span {
    color: #334155 !important;
}

/* ─── Ponsel / Tablet ─────────────────────────────────────── */
@media (max-width: 768px) {
    html { font-size: 16px; }
    .btn, .btn-sm { min-height: 42px; }
    .theme-toggle-btn span.theme-label { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   4. MODAL KEAMANAN SANDI/PIN & KONFIRMASI MODERN (#appDialogModal)
      Menggantikan prompt() / confirm() / alert() bawaan browser
   ═══════════════════════════════════════════════════════════ */
.app-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 100999;
    background: rgba(6, 10, 21, 0.76);
    backdrop-filter: blur(10px) saturate(1.25);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.app-dialog-overlay.active {
    display: flex;
    opacity: 1;
}

.app-dialog-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: linear-gradient(180deg, #151f36 0%, #0f172a 100%);
    border: 1px solid rgba(59, 130, 246, 0.38);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(37, 99, 235, 0.16);
    overflow: hidden;
    transform: translateY(10px) scale(0.97);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-dialog-overlay.active .app-dialog-card {
    transform: translateY(0) scale(1);
}

.app-dialog-card.shake {
    animation: appDialogShake 0.38s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes appDialogShake {
    10%, 90% { transform: translateX(-4px); }
    20%, 80% { transform: translateX(6px); }
    30%, 50%, 70% { transform: translateX(-8px); }
    40%, 60% { transform: translateX(8px); }
}

.app-dialog-top-accent {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #2563eb 50%, #10b981 100%);
}

.app-dialog-top-accent.danger {
    background: linear-gradient(90deg, #ef4444 0%, #f97316 100%);
}

.app-dialog-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px 14px;
}

.app-dialog-icon-badge {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.22) 0%, rgba(37, 99, 235, 0.18) 100%);
    border: 1px solid rgba(59, 130, 246, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
}

.app-dialog-icon-badge.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(249, 115, 22, 0.16) 100%);
    border-color: rgba(248, 113, 113, 0.45);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.2);
}

.app-dialog-icon-badge.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(5, 150, 105, 0.16) 100%);
    border-color: rgba(52, 211, 153, 0.45);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.2);
}

.app-dialog-title-wrap {
    flex: 1;
    min-width: 0;
}

.app-dialog-title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.app-dialog-badge {
    display: inline-block;
    margin-top: 3px;
    font-size: 0.66rem !important;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.16);
    border: 1px solid rgba(59, 130, 246, 0.35);
    padding: 2px 8px;
    border-radius: 999px;
}

.app-dialog-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.app-dialog-close:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
}

.app-dialog-body {
    padding: 4px 22px 18px;
}

.app-dialog-message {
    margin: 0;
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.55;
    white-space: pre-line;
}

.app-dialog-input-group {
    margin-top: 16px;
}

.app-dialog-input-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 7px;
}

.app-dialog-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.app-dialog-input-prefix {
    position: absolute;
    left: 14px;
    color: #3b82f6;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.app-dialog-input {
    width: 100%;
    min-height: 46px !important;
    padding: 10px 46px 10px 42px !important;
    border-radius: 12px !important;
    border: 1.5px solid rgba(59, 130, 246, 0.42) !important;
    background: rgba(9, 14, 26, 0.85) !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
    outline: none !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.app-dialog-input::placeholder {
    letter-spacing: normal;
    font-weight: 500;
    color: #64748b;
}

.app-dialog-input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.22) !important;
}

.app-dialog-eye-btn {
    position: absolute;
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: background 0.15s ease;
}

.app-dialog-eye-btn:hover {
    background: rgba(37, 99, 235, 0.25);
    color: #ffffff;
}

.app-dialog-hint {
    margin-top: 7px;
    font-size: 0.76rem !important;
    color: #94a3b8;
    line-height: 1.4;
}

.app-dialog-error {
    margin-top: 12px;
    padding: 10px 13px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.45);
    color: #fecaca;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.45;
}

.app-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px;
    background: rgba(9, 13, 24, 0.65);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.app-dialog-btn-confirm {
    min-width: 125px;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.app-dialog-btn-confirm.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

/* Tema Terang untuk #appDialogModal */
body.theme-light .app-dialog-overlay {
    background: rgba(15, 23, 42, 0.48) !important;
}
body.theme-light .app-dialog-card {
    background: #ffffff !important;
    border: 1.5px solid #bfdbfe !important;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.2) !important;
}
body.theme-light .app-dialog-title {
    color: #0f172a !important;
}
body.theme-light .app-dialog-badge {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: #bfdbfe !important;
}
body.theme-light .app-dialog-message {
    color: #334155 !important;
}
body.theme-light .app-dialog-input-label {
    color: #1e293b !important;
}
body.theme-light .app-dialog-input {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}
body.theme-light .app-dialog-input:focus {
    background: #ffffff !important;
    border-color: #2563eb !important;
}
body.theme-light .app-dialog-eye-btn {
    background: #e2e8f0 !important;
    color: #334155 !important;
}
body.theme-light .app-dialog-hint {
    color: #475569 !important;
}
body.theme-light .app-dialog-error {
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
    color: #b91c1c !important;
}
body.theme-light .app-dialog-footer {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}
body.theme-light .app-dialog-close {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

/* ─── 5. Perapian Toolbar Katalog Produk & Header ─────────── */
#section-products .search-box {
    min-width: 175px;
    flex: 1 1 180px;
    max-width: 245px;
}
#section-products .search-input {
    width: 100% !important;
}
#section-products .chart-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px !important;
    width: 100%;
}
#section-products .chart-controls .btn-sm,
#section-products .chart-controls .filter-select {
    padding: 6px 10px !important;
    font-size: 0.77rem !important;
    white-space: nowrap;
}
#section-products .chart-header {
    display: flex;
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px !important;
}
#section-products #btnAddProductCatalog {
    margin-left: auto;
    white-space: nowrap;
}
@media (max-width: 900px) {
    #section-products #btnAddProductCatalog {
        margin-left: 0;
    }
}

/* ─── 6. Tutup Kasir (Z-Report) & Serah Terima Shift ── */
.z-report-modal-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.z-report-header {
    background: #0b0f19;
    border-bottom: 1px solid #1e293b;
}
.z-report-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-size: 1.25rem;
}
.z-report-title {
    color: #f8fafc;
}
.z-report-subtitle {
    color: #94a3b8;
}
.z-report-section {
    background: #131c2e;
    border: 1px solid #23324d;
    border-radius: 12px;
    padding: 14px 16px;
}
.z-step-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: #cbd5e1;
    background: #1e293b;
    border: 1px solid #334155;
    padding: 3px 9px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    display: inline-block;
}
.badge-step-1,
.badge-step-2,
.badge-step-3 {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

.z-step-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #f8fafc;
}
.z-date-label {
    font-size: 0.75rem;
    color: #94a3b8;
}
.z-date-input {
    padding: 6px 10px;
    background: #0b0f19;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #f8fafc;
    font-size: 0.8rem;
    outline: none;
}
.z-today-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
}
.z-today-btn:hover {
    background: #2563eb;
    border-color: #3b82f6;
    color: #ffffff;
}
.z-cashier-meta-row {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: #94a3b8;
}
.z-meta-cashier { color: #60a5fa; font-size: 0.85rem; }
.z-meta-sep { color: #475569; margin: 0 6px; }
.z-meta-store { color: #e2e8f0; }
.z-meta-time strong { color: #e2e8f0; }

.z-cashier-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 10px;
    border: 1.5px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.65);
    color: #e2e8f0;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.16s ease;
}

.z-cashier-pill:hover {
    border-color: rgba(37, 99, 235, 0.55);
    background: rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.z-cashier-pill.active {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.z-cashier-pill .z-pill-meta {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
}

.z-cashier-pill.active .z-pill-meta {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.shift-staff-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: rgba(15, 23, 42, 0.75);
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.shift-staff-pill:hover,
.shift-staff-pill.active {
    border-color: #3b82f6;
    background: rgba(37, 99, 235, 0.18);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.18);
}

body.mode-cashier #btnHeaderShiftSwitch {
    display: inline-flex !important;
}

/* 4 Kolom Pencocokan Kas Laci (Formal Netral & Tabular Numbers) */
.z-recon-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}
@media (max-width: 740px) {
    .z-recon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 460px) {
    .z-recon-grid {
        grid-template-columns: 1fr;
    }
}
.z-recon-col {
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.z-col-opening,
.z-col-system {
    background: #0b0f19;
    border: 1px solid #2b374e;
}
.z-col-expected {
    background: #0f172a;
    border: 1px solid #334155;
    border-left: 3px solid #60a5fa;
}
.z-col-actual {
    background: #0b0f19;
    border: 1.5px solid #3b82f6;
}
.z-recon-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 4px;
}
.z-col-expected .z-recon-label { color: #cbd5e1; }
.z-col-actual .z-recon-label { color: #e2e8f0; }

.z-input-wrap {
    position: relative;
}
.z-input-prefix {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
}
.z-recon-input {
    width: 100%;
    padding: 6px 8px 6px 28px;
    background: #060913;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #f8fafc;
    font-weight: 700;
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
    outline: none;
}
.z-recon-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}
.z-input-actual {
    border-color: #475569;
    color: #f8fafc;
}
.z-input-actual:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}
.z-recon-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: #f8fafc;
    font-variant-numeric: tabular-nums;
    margin-top: 2px;
}
.z-col-expected .z-recon-val { color: #f8fafc; }
.z-recon-sub {
    font-size: 0.7rem;
    color: #64748b;
}
.z-col-expected .z-recon-sub { color: #94a3b8; }
.z-btn-pas {
    background: #1e293b;
    border: 1px solid #475569;
    color: #e2e8f0;
    font-size: 0.67rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}
.z-btn-pas:hover {
    background: #2563eb;
    border-color: #3b82f6;
    color: #ffffff;
}

/* Banner Keterangan Selisih Laci */
.z-diff-text-banner {
    margin-top: 10px;
    padding: 9px 13px;
    border-radius: 8px;
    background: #0b0f19;
    border: 1px solid #1e293b;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
}
.z-diff-text-banner.status-match {
    background: rgba(5, 150, 105, 0.15) !important;
    border-color: rgba(5, 150, 105, 0.45) !important;
    color: #34d399 !important;
    font-weight: 700;
}
.z-diff-text-banner.status-surplus {
    background: rgba(217, 119, 6, 0.15) !important;
    border-color: rgba(217, 119, 6, 0.45) !important;
    color: #fbbf24 !important;
    font-weight: 700;
}
.z-diff-text-banner.status-deficit {
    background: rgba(220, 38, 38, 0.15) !important;
    border-color: rgba(220, 38, 38, 0.45) !important;
    color: #f87171 !important;
    font-weight: 700;
}

/* Badge Status Selisih Laci (Muted Semantic) */
.z-diff-badge {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}
.z-diff-badge.status-match {
    background: rgba(16, 185, 129, 0.16) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    color: #34d399 !important;
}
.z-diff-badge.status-surplus {
    background: rgba(245, 158, 11, 0.16) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    color: #fbbf24 !important;
}
.z-diff-badge.status-deficit {
    background: rgba(239, 68, 68, 0.16) !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    color: #f87171 !important;
}

/* Ringkasan Non-Tunai & Total Semua Struk (Netral Formal) */
.z-summary-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}
.z-summary-card {
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.z-summary-noncash,
.z-summary-total {
    background: #0b0f19;
    border: 1px solid #2b374e;
}
.z-summary-total {
    border-left: 3px solid #3b82f6;
}
.z-summary-title {
    font-size: 0.74rem;
    font-weight: 700;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
}
.z-summary-meta {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 2px;
}
.z-summary-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: #f8fafc;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.z-summary-total .z-summary-val {
    color: #f8fafc;
}

/* Tabel Daftar Struk */
.z-orders-count-label { color: #93c5fd; font-weight: 700; }
.z-orders-hint { font-size: 0.74rem; color: #64748b; }
.z-orders-table-wrap {
    border: 1px solid #1e293b;
    border-radius: 8px;
}
.z-order-items-text {
    font-size: 0.76rem;
    color: #e2e8f0;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.z-order-total-text {
    color: #f8fafc;
    font-variant-numeric: tabular-nums;
}
.z-order-cashier-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
}
.z-order-pm-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.71rem;
    font-weight: 600;
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.28);
}
.z-order-pm-badge.is-noncash {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.3);
}
.z-shift-active-tag {
    font-size: 0.68rem;
    font-weight: 700;
    color: #93c5fd;
    margin-left: 3px;
}
.z-cashier-pill.active .z-shift-active-tag {
    color: #dbeafe;
}

.z-report-footer {
    border-top: 1px solid #1e293b;
}
.btn-z-print,
.btn-z-wa,
.btn-z-copy {
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
    font-weight: 600;
    padding: 8px 13px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}
.btn-z-print span,
.btn-z-wa span,
.btn-z-copy span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-z-print:hover,
.btn-z-copy:hover {
    background: #2b374e;
    border-color: #475569;
    color: #ffffff;
}
.btn-z-wa:hover {
    background: rgba(5, 150, 105, 0.18);
    border-color: rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
}
.btn-z-complete {
    background: #2563eb;
    border: 1px solid #1d4ed8;
    color: #ffffff;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}
.btn-z-complete:hover { background: #1d4ed8; }

/* ─── TEMA TERANG (LIGHT MODE) OVERRIDES Z-REPORT (OPSI 1 CORPORATE NAVY) ─── */
body.theme-light .z-report-modal-card {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.15) !important;
}
body.theme-light .z-report-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
body.theme-light .z-report-header-icon {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1d4ed8 !important;
}
body.theme-light .z-report-title {
    color: #0f172a !important;
}
body.theme-light .z-report-subtitle {
    color: #64748b !important;
}
body.theme-light .z-report-section {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}
body.theme-light .z-step-badge,
body.theme-light .badge-step-1,
body.theme-light .badge-step-2,
body.theme-light .badge-step-3 {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}
body.theme-light .z-step-title {
    color: #0f172a !important;
}
body.theme-light .z-date-label {
    color: #64748b !important;
}
body.theme-light .z-date-input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}
body.theme-light .z-today-btn {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}
body.theme-light .z-today-btn:hover {
    background: #e2e8f0 !important;
}
body.theme-light .z-cashier-meta-row {
    border-top: 1px dashed #e2e8f0 !important;
    color: #64748b !important;
}
body.theme-light .z-meta-cashier { color: #1d4ed8 !important; }
body.theme-light .z-meta-store { color: #0f172a !important; }
body.theme-light .z-meta-time strong { color: #0f172a !important; }

body.theme-light .z-cashier-pill {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}
body.theme-light .z-cashier-pill:hover {
    border-color: #93c5fd !important;
    background: #eff6ff !important;
}
body.theme-light .z-cashier-pill .z-pill-meta {
    background: #f1f5f9 !important;
    color: #475569 !important;
}
body.theme-light .z-cashier-pill.active {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(29, 78, 216, 0.2) !important;
}
body.theme-light .z-cashier-pill.active .z-pill-meta {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}
body.theme-light .z-shift-active-tag {
    color: #1d4ed8 !important;
}
body.theme-light .z-cashier-pill.active .z-shift-active-tag {
    color: #dbeafe !important;
}

body.theme-light .shift-staff-pill {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}
body.theme-light .shift-staff-pill:hover,
body.theme-light .shift-staff-pill.active {
    background: #eff6ff !important;
    border-color: #1d4ed8 !important;
    color: #1e40af !important;
}

/* Light Mode 4 Kolom Kas Laci (Formal Slate & Corporate Blue Focus) */
body.theme-light .z-col-opening,
body.theme-light .z-col-system {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
body.theme-light .z-col-expected {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 3px solid #1d4ed8 !important;
}
body.theme-light .z-col-actual {
    background: #ffffff !important;
    border: 1.5px solid #2563eb !important;
}
body.theme-light .z-recon-label {
    color: #475569 !important;
}
body.theme-light .z-col-expected .z-recon-label {
    color: #1e293b !important;
}
body.theme-light .z-col-actual .z-recon-label {
    color: #1e40af !important;
}
body.theme-light .z-recon-input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}
body.theme-light .z-recon-input:focus {
    border-color: #1d4ed8 !important;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.14) !important;
}
body.theme-light .z-input-actual {
    border: 1px solid #93c5fd !important;
    color: #0f172a !important;
}
body.theme-light .z-input-actual:focus {
    border-color: #1d4ed8 !important;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.16) !important;
}
body.theme-light .z-recon-val {
    color: #0f172a !important;
}
body.theme-light .z-col-expected .z-recon-val {
    color: #0f172a !important;
}
body.theme-light .z-recon-sub {
    color: #64748b !important;
}
body.theme-light .z-col-expected .z-recon-sub {
    color: #475569 !important;
}
body.theme-light .z-btn-pas {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}
body.theme-light .z-btn-pas:hover {
    background: #eff6ff !important;
    border-color: #1d4ed8 !important;
    color: #1d4ed8 !important;
}

body.theme-light .z-diff-badge.status-match {
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #065f46 !important;
}
body.theme-light .z-diff-badge.status-surplus {
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
    color: #92400e !important;
}
body.theme-light .z-diff-badge.status-deficit {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
}

body.theme-light .z-diff-text-banner {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}
body.theme-light .z-diff-text-banner.status-match {
    background: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #065f46 !important;
}
body.theme-light .z-diff-text-banner.status-surplus {
    background: #fffbeb !important;
    border-color: #fde68a !important;
    color: #92400e !important;
}
body.theme-light .z-diff-text-banner.status-deficit {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #991b1b !important;
}

body.theme-light .z-summary-noncash,
body.theme-light .z-summary-total {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
body.theme-light .z-summary-total {
    border-left: 3px solid #1d4ed8 !important;
}
body.theme-light .z-summary-noncash .z-summary-title,
body.theme-light .z-summary-total .z-summary-title {
    color: #334155 !important;
}
body.theme-light .z-summary-noncash .z-summary-val,
body.theme-light .z-summary-total .z-summary-val {
    color: #0f172a !important;
}
body.theme-light .z-summary-noncash .z-summary-meta,
body.theme-light .z-summary-total .z-summary-meta {
    color: #64748b !important;
}

body.theme-light .z-orders-count-label { color: #1e40af !important; }
body.theme-light .z-orders-hint { color: #64748b !important; }
body.theme-light .z-orders-table-wrap {
    border-color: #e2e8f0 !important;
}
body.theme-light .z-order-items-text {
    color: #0f172a !important;
}
body.theme-light .z-order-total-text {
    color: #0f172a !important;
}
body.theme-light .z-order-cashier-pill {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}
body.theme-light .z-order-pm-badge {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}
body.theme-light .z-order-pm-badge.is-noncash {
    background: #eff6ff !important;
    color: #1e40af !important;
    border-color: #bfdbfe !important;
}

body.theme-light .z-report-footer {
    border-top: 1px solid #e2e8f0 !important;
}
body.theme-light .btn-z-print,
body.theme-light .btn-z-wa,
body.theme-light .btn-z-copy {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}
body.theme-light .btn-z-print:hover,
body.theme-light .btn-z-copy:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}
body.theme-light .btn-z-wa:hover {
    background: #f0fdf4 !important;
    border-color: #86efac !important;
    color: #166534 !important;
}
body.theme-light .btn-z-complete {
    background: #1d4ed8 !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
}
body.theme-light .btn-z-complete:hover {
    background: #1e40af !important;
}

/* ─── Modal Login Staf Kasir & Ganti Shift (#shiftSwitchModal) ─── */
#shiftSwitchModal .modal-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 14px;
}
#shiftSwitchModal .modal-header {
    background: #0b0f19 !important;
    border-bottom: 1px solid #1e293b !important;
}
#shiftSwitchModal .modal-body {
    background: #0f172a;
}
#shiftSwitchModal input {
    background: #0b0f19 !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}
#shiftSwitchModal input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25) !important;
}

body.theme-light #shiftSwitchModal .modal-card {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.15) !important;
}
body.theme-light #shiftSwitchModal .modal-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
body.theme-light #shiftSwitchModal .modal-header h3 {
    color: #0f172a !important;
}
body.theme-light #shiftSwitchModal .modal-body {
    background: #ffffff !important;
}
body.theme-light #shiftSwitchModal input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}
body.theme-light #shiftSwitchModal input:focus {
    border-color: #1d4ed8 !important;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.15) !important;
}
body.theme-light #shiftSwitchModal label {
    color: #334155 !important;
}

/* Sembunyikan filter rentang tanggal di halaman Staf Kasir agar header tidak ramai */
body[data-section="staff"] .date-filter-group {
    display: none !important;
}

/* Cegah background putih autofill Chrome pada semua input gelap */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 40px #0f172a inset !important;
    -webkit-text-fill-color: #f8fafc !important;
    caret-color: #f8fafc !important;
    transition: background-color 9999s ease-in-out 0s;
}

body.theme-light input:-webkit-autofill,
body.theme-light input:-webkit-autofill:hover,
body.theme-light input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 40px #ffffff inset !important;
    -webkit-text-fill-color: #0f172a !important;
    caret-color: #0f172a !important;
}

body.theme-light .staff-top-card {
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
body.theme-light .staff-top-card #staffPageStoreName,
body.theme-light .staff-top-card #staffPageOwnerName {
    color: #0f172a !important;
}

/* ─── 7. Perbaikan UX Header 1 Baris, Sidebar & Tabel Transaksi ─── */
@media (min-width: 1024px) {
    .main-header {
        flex-wrap: nowrap !important;
        padding: 8px 18px !important;
        min-height: 62px !important;
        gap: 12px !important;
        max-width: 100%;
    }
    .header-left {
        flex-wrap: nowrap !important;
        flex: 1 1 auto;
        min-width: 0;
        gap: 10px !important;
    }
    .header-title-group {
        min-width: 0;
    }
    .header-title {
        font-size: 1.18rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .header-right {
        flex-wrap: nowrap !important;
        gap: 8px !important;
        flex: 0 0 auto;
        max-width: 100%;
    }
    .user-menu-group {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        margin-left: 4px !important;
        padding-left: 10px;
        border-left: 1px solid var(--border);
    }
    .user-info-badge {
        display: flex;
        flex-direction: column;
        text-align: right;
        max-width: 170px;
        overflow: hidden;
        line-height: 1.3;
        padding: 1px 0;
    }
    .user-info-badge #headerUserName,
    .user-info-badge #headerStoreName {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.header-user-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
}
.header-store-name {
    font-size: 0.68rem;
    color: #60a5fa;
    white-space: nowrap;
}
body.theme-light .header-user-name {
    color: #0f172a !important;
}
body.theme-light .header-store-name {
    color: #1d4ed8 !important;
}

.quick-date-select {
    min-height: 34px !important;
    height: 34px !important;
    padding: 4px 10px !important;
    font-size: 0.8rem !important;
}

/* Tabel Riwayat Transaksi: pastikan tombol aksi Struk / Retur / Batal 1 baris lurus */
.order-actions-group {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    white-space: nowrap !important;
}

.btn-order-action {
    min-height: 28px !important;
    padding: 4px 9px !important;
    font-size: 0.74rem !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
}

#ordersTable th,
#productsTable th,
#section-staff .data-table th {
    white-space: nowrap !important;
}

/* ─── 8. Sistem Warna Tombol Terpadu (Dark & Light Mode Formal Enterprise) ─── */
.btn-emerald,
#btnOpenQuickSale,
#btnSubmitRestock {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%) !important;
    border: 1px solid #047857 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
    transition: transform 0.14s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}
.btn-emerald *,
#btnOpenQuickSale *,
#btnSubmitRestock * {
    color: #ffffff !important;
}
.btn-emerald:hover,
#btnOpenQuickSale:hover,
#btnSubmitRestock:hover {
    background: linear-gradient(180deg, #34d399 0%, #059669 100%) !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
    transform: translateY(-1px);
}
.btn-emerald:active,
#btnOpenQuickSale:active,
#btnSubmitRestock:active {
    transform: translateY(0) scale(0.985);
}

.btn-amber {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%) !important;
    border: 1px solid #b45309 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(180, 83, 9, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}
.btn-amber:hover {
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%) !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
    transform: translateY(-1px);
}

/* Semantic Soft Action Buttons - Dark Mode Base */
.btn-blue-soft {
    background: rgba(37, 99, 235, 0.18) !important;
    border: 1px solid rgba(59, 130, 246, 0.45) !important;
    color: #93c5fd !important;
    font-weight: 700 !important;
}
.btn-blue-soft:hover {
    background: #2563eb !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

.btn-emerald-soft {
    background: rgba(16, 185, 129, 0.16) !important;
    border: 1px solid rgba(16, 185, 129, 0.44) !important;
    color: #6ee7b7 !important;
    font-weight: 700 !important;
}
.btn-emerald-soft:hover {
    background: #059669 !important;
    border-color: #047857 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.3);
}

.btn-amber-soft {
    background: rgba(245, 158, 11, 0.15) !important;
    border: 1px solid rgba(245, 158, 11, 0.44) !important;
    color: #fcd34d !important;
    font-weight: 700 !important;
}
.btn-amber-soft:hover {
    background: #d97706 !important;
    border-color: #b45309 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.3);
}

.btn-sky-soft {
    background: rgba(14, 165, 233, 0.16) !important;
    border: 1px solid rgba(56, 189, 248, 0.44) !important;
    color: #7dd3fc !important;
    font-weight: 700 !important;
}
.btn-sky-soft:hover {
    background: #0284c7 !important;
    border-color: #0369a1 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.3);
}

.btn-slate-soft {
    background: rgba(148, 163, 184, 0.12) !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
    color: #cbd5e1 !important;
    font-weight: 600 !important;
}
.btn-slate-soft:hover {
    background: rgba(148, 163, 184, 0.24) !important;
    border-color: rgba(148, 163, 184, 0.5) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.btn-danger-outline {
    background: rgba(239, 68, 68, 0.14) !important;
    border: 1px solid rgba(239, 68, 68, 0.42) !important;
    color: #fca5a5 !important;
    font-weight: 700 !important;
}
.btn-danger-outline:hover {
    background: #dc2626 !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.3);
}

.btn-welcome-ai {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    color: #f8fafc !important;
    font-weight: 700 !important;
}
.btn-welcome-ai:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: #60a5fa !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Banner Panduan Memulai - Formal Enterprise Dark & Light */
.onboarding-banner-formal {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.94) 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.35) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32) !important;
}
.onboarding-pill-badge {
    background: rgba(37, 99, 235, 0.2) !important;
    border: 1px solid rgba(59, 130, 246, 0.45) !important;
    color: #93c5fd !important;
}
.onboarding-step-card {
    background: rgba(15, 23, 42, 0.78) !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
}

/* Light Mode Overrides untuk Semua Tombol & Banner Semantik */
body.theme-light .btn-blue-soft {
    background: #eff6ff !important;
    border: 1.5px solid #bfdbfe !important;
    color: #1d4ed8 !important;
    box-shadow: 0 1px 2px rgba(29, 78, 216, 0.08);
}
body.theme-light .btn-blue-soft:hover {
    background: #1d4ed8 !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
}
body.theme-light .btn-blue-soft:hover * {
    color: #ffffff !important;
}

body.theme-light .btn-emerald-soft {
    background: #ecfdf5 !important;
    border: 1.5px solid #a7f3d0 !important;
    color: #047857 !important;
    box-shadow: 0 1px 2px rgba(5, 150, 105, 0.08);
}
body.theme-light .btn-emerald-soft:hover {
    background: #059669 !important;
    border-color: #047857 !important;
    color: #ffffff !important;
}
body.theme-light .btn-emerald-soft:hover * {
    color: #ffffff !important;
}

body.theme-light .btn-amber-soft {
    background: #fffbeb !important;
    border: 1.5px solid #fde68a !important;
    color: #b45309 !important;
    box-shadow: 0 1px 2px rgba(180, 83, 9, 0.08);
}
body.theme-light .btn-amber-soft:hover {
    background: #d97706 !important;
    border-color: #b45309 !important;
    color: #ffffff !important;
}
body.theme-light .btn-amber-soft:hover * {
    color: #ffffff !important;
}

body.theme-light .btn-sky-soft {
    background: #f0f9ff !important;
    border: 1.5px solid #bae6fd !important;
    color: #0369a1 !important;
    box-shadow: 0 1px 2px rgba(3, 105, 161, 0.08);
}
body.theme-light .btn-sky-soft:hover {
    background: #0284c7 !important;
    border-color: #0369a1 !important;
    color: #ffffff !important;
}
body.theme-light .btn-sky-soft:hover * {
    color: #ffffff !important;
}

body.theme-light .btn-slate-soft {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
}
body.theme-light .btn-slate-soft:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

body.theme-light .btn-danger-outline {
    background: #fef2f2 !important;
    border: 1.5px solid #fecaca !important;
    color: #dc2626 !important;
}
body.theme-light .btn-danger-outline:hover {
    background: #dc2626 !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
}
body.theme-light .btn-danger-outline:hover * {
    color: #ffffff !important;
}

body.theme-light .btn-welcome-ai {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
body.theme-light .btn-welcome-ai:hover {
    background: #eff6ff !important;
    border-color: #2563eb !important;
    color: #1d4ed8 !important;
}

/* Light Mode: Onboarding Banner */
body.theme-light .onboarding-banner-formal {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%) !important;
    border: 1.5px solid #bfdbfe !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06) !important;
}
body.theme-light .onboarding-pill-badge {
    background: #dbeafe !important;
    border: 1px solid #93c5fd !important;
    color: #1e40af !important;
}
body.theme-light .onboarding-step-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
body.theme-light .onboarding-banner-formal h2,
body.theme-light .onboarding-banner-formal h4 {
    color: #0f172a !important;
}
body.theme-light .onboarding-banner-formal p {
    color: #475569 !important;
}

/* Light Mode: Tombol Aksi Tabel Riwayat Transaksi (.btn-order-action) */
body.theme-light .btn-order-action.btn-receipt {
    background: #eff6ff !important;
    border: 1.5px solid #bfdbfe !important;
    color: #1d4ed8 !important;
}
body.theme-light .btn-order-action.btn-receipt:hover {
    background: #1d4ed8 !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
}

body.theme-light .btn-order-action.btn-return {
    background: #fffbeb !important;
    border: 1.5px solid #fde68a !important;
    color: #b45309 !important;
}
body.theme-light .btn-order-action.btn-return:hover {
    background: #d97706 !important;
    border-color: #b45309 !important;
    color: #ffffff !important;
}

body.theme-light .btn-order-action.btn-cancel {
    background: #fef2f2 !important;
    border: 1.5px solid #fecaca !important;
    color: #dc2626 !important;
}
body.theme-light .btn-order-action.btn-cancel:hover {
    background: #dc2626 !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
}

body.theme-light .btn-order-action.btn-complete {
    background: #ecfdf5 !important;
    border: 1.5px solid #a7f3d0 !important;
    color: #047857 !important;
}
body.theme-light .btn-order-action.btn-complete:hover {
    background: #059669 !important;
    border-color: #047857 !important;
    color: #ffffff !important;
}

/* Light Mode: Tombol Aksi Ikon Tabel Produk & Status Pill */
body.theme-light .btn-action-icon {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
}
body.theme-light .btn-action-icon:hover {
    background: #2563eb !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
}
body.theme-light .btn-action-delete:hover {
    background: #dc2626 !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
}
body.theme-light .status-active {
    background: #dcfce7 !important;
    color: #166534 !important;
}
body.theme-light .status-inactive {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

/* ─── 9. Standarisasi Ikon Vektor Formal (Enterprise Lucide Style) ─── */
.fi-icon {
    width: 1em;
    height: 1em;
    min-width: 1em;
    display: inline-block;
    vertical-align: -0.15em;
    flex-shrink: 0;
}

.cashier-card-icon,
.goal-icon,
.notif-icon,
.bundle-item-icon,
.app-dialog-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.cashier-card-icon .fi-icon {
    width: 24px;
    height: 24px;
}

.goal-icon .fi-icon,
.notif-icon .fi-icon,
.bundle-item-icon .fi-icon {
    width: 20px;
    height: 20px;
}

.app-dialog-icon .fi-icon {
    width: 22px;
    height: 22px;
}

.chat-avatar .fi-icon {
    width: 18px;
    height: 18px;
}

.btn .fi-icon,
.header-more-item .fi-icon,
.mode-pill-btn .fi-icon,
.pos-fn-btn .fi-icon,
.pos-pay-pill .fi-icon,
.chat-chip .fi-icon,
.btn-order-action .fi-icon {
    width: 14px;
    height: 14px;
}

.pareto-badge,
.bundle-rank-badge,
.heatmap-peak-badge,
.cashier-workspace-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.chart-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* Light Mode Toast Variants */
body.theme-light .basket-toast {
    background: #ffffff;
    border: 1px solid #059669;
    color: #065f46;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

/* Phase 2: Formal AI Inline Code & Comprehensive Light Mode Modal / Card Contrast */
.ai-inline-code {
    background: rgba(37, 99, 235, 0.14);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85em;
    color: #93c5fd;
}

body.theme-light .ai-inline-code {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

body.theme-light .pro-unlock-banner {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
}

body.theme-light .modal-card input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
body.theme-light .modal-card select,
body.theme-light .modal-card textarea,
body.theme-light .modal-content input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
body.theme-light .modal-content select,
body.theme-light .modal-content textarea {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
}

body.theme-light .modal-card input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
body.theme-light .modal-card select:focus,
body.theme-light .modal-card textarea:focus,
body.theme-light .modal-content input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
body.theme-light .modal-content select:focus,
body.theme-light .modal-content textarea:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

body.theme-light #cloudPosShareUrl {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: #93c5fd !important;
}

body.theme-light #supplierPoModal .modal-content {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.18) !important;
}

body.theme-light #supplierPoModal .modal-header,
body.theme-light #supplierPoModal .modal-footer {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

body.theme-light .upload-dropzone,
body.theme-light #csvPreviewTableContainer {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

body.theme-light .modal-footer,
body.theme-light .modal-card > div[style*="border-top"] {
    border-top-color: #e2e8f0 !important;
}

body.theme-light .basket-toast.toast-error {
    background: #fef2f2;
    border-color: #dc2626;
    color: #991b1b;
}

body.theme-light .basket-toast.toast-warning {
    background: #fffbeb;
    border-color: #d97706;
    color: #92400e;
}

body.theme-light .basket-toast.toast-info {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1e40af;
}

/* Sticky Table Headers, Actionable Empty States, Shortcut Guide & Sticky Mobile POS Bar */
#section-products .table-container,
#section-orders .table-container {
    max-height: 62vh;
    overflow: auto;
}

#section-products .data-table thead th,
#section-orders .data-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #141c2f;
    box-shadow: inset 0 -1px 0 var(--border);
}

body.theme-light #section-products .data-table thead th,
body.theme-light #section-orders .data-table thead th {
    background: #f8fafc !important;
    box-shadow: inset 0 -1px 0 #e2e8f0;
}

.table-empty-state {
    padding: 34px 16px !important;
    text-align: center !important;
}

.empty-state-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    max-width: 420px;
}

.empty-state-box p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.pos-shortcut-guide-box {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.pos-shortcut-guide-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.pos-shortcut-list {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: #cbd5e1;
}

.pos-shortcut-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pos-shortcut-item kbd {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.45);
    color: #93c5fd;
}

body.theme-light .pos-shortcut-guide-box {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
}

body.theme-light .pos-shortcut-list {
    color: #1e293b !important;
}

body.theme-light .pos-shortcut-item kbd {
    background: #ffffff !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
}

.pos-mobile-sticky-bar {
    display: none;
}

@media (max-width: 1080px) {
    body[data-section="pos"] #section-pos {
        padding-bottom: 76px;
    }
    .pos-mobile-sticky-bar {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 95;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 14px;
        border-radius: 12px;
        background: rgba(15, 23, 42, 0.96);
        border: 1px solid rgba(16, 185, 129, 0.45);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(10px);
    }
    .pos-mobile-sticky-info {
        display: flex;
        flex-direction: column;
        line-height: 1.25;
    }
    .pos-mobile-sticky-count {
        font-size: 0.72rem;
        color: #94a3b8;
        font-weight: 600;
    }
    .pos-mobile-sticky-total {
        font-size: 0.98rem;
        color: #34d399;
        font-weight: 800;
    }
    body.theme-light .pos-mobile-sticky-bar {
        background: #ffffff !important;
        border: 1.5px solid #10b981 !important;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16) !important;
    }
    body.theme-light .pos-mobile-sticky-count {
        color: #475569 !important;
    }
    body.theme-light .pos-mobile-sticky-total {
        color: #047857 !important;
    }
}

/* ─── 11. Konsultan Bisnis AI — Formal Enterprise Advisory Workspace ─── */
.ai-header-panel {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.ai-header-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ai-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #1e293b;
    border: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    flex-shrink: 0;
}

.ai-header-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 3px;
}

.ai-header-subtitle {
    font-size: 0.81rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.45;
}

.ai-audit-btn {
    padding: 9px 16px !important;
    border-radius: 9px !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.ai-chat-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    margin-bottom: 20px;
}

.ai-chat-topbar {
    padding: 12px 18px;
    background: #0b0f19;
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.ai-chat-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ai-chat-topbar-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: #f1f5f9;
}

.ai-engine-badge {
    font-size: 0.71rem;
    font-weight: 600;
    color: #cbd5e1;
    background: #1e293b;
    border: 1px solid #334155;
    padding: 3px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ai-chat-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-topbar-btn {
    font-size: 0.76rem !important;
    padding: 5px 11px !important;
    border-radius: 7px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
}

.ai-quick-prompts {
    padding: 11px 18px;
    background: #131c2e;
    border-bottom: 1px solid #1e293b;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

#section-ai-insights .chat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 6px 11px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #cbd5e1;
    background: #0b0f19;
    border: 1px solid #2b374e;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

#section-ai-insights .chat-chip:hover {
    background: #1e293b;
    border-color: #3b82f6;
    color: #ffffff;
    transform: translateY(-1px);
}

.ai-chat-thread {
    height: 410px;
    overflow-y: auto;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
    background: #0f172a;
}

#section-ai-insights .chat-bubble {
    display: flex;
    gap: 12px;
    max-width: 90%;
    align-items: flex-start;
}

#section-ai-insights .chat-bubble.ai-bubble {
    align-self: flex-start;
    width: 100%;
    max-width: 780px;
}

#section-ai-insights .chat-bubble.user-bubble {
    align-self: flex-end;
    flex-direction: row-reverse;
    max-width: 78%;
}

#section-ai-insights .chat-avatar.ai-avatar {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #93c5fd;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#section-ai-insights .chat-avatar.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #1d4ed8;
    border: 1px solid #2563eb;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#section-ai-insights .chat-bubble.ai-bubble .chat-text {
    flex: 1;
    background: #131c2e;
    border: 1px solid #23324d;
    border-radius: 12px;
    padding: 14px 18px;
    color: #e2e8f0;
    font-size: 0.86rem;
    line-height: 1.65;
}

#section-ai-insights .chat-bubble.user-bubble .chat-text {
    background: #1d4ed8;
    border: 1px solid #2563eb;
    border-radius: 12px;
    border-top-right-radius: 4px;
    padding: 11px 16px;
    color: #ffffff;
    font-size: 0.86rem;
    line-height: 1.55;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.25);
}

.ai-msg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.ai-msg-sender {
    font-size: 0.76rem;
    font-weight: 700;
    color: #cbd5e1;
}

.ai-msg-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
}

.ai-msg-lead {
    margin: 0 0 6px;
    font-weight: 700;
    font-size: 0.92rem;
    color: #f8fafc;
}

.ai-msg-desc {
    margin: 0 0 8px;
    color: #cbd5e1;
}

.ai-msg-hint {
    margin: 0;
    font-size: 0.78rem;
    color: #94a3b8;
}

.ai-msg-copy-btn {
    background: transparent;
    border: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.ai-msg-copy-btn:hover {
    border-color: #3b82f6;
    color: #f8fafc;
    background: #1e293b;
}

.ai-msg-body {
    color: inherit;
}

.ai-md-h3 {
    color: #f8fafc;
    font-size: 0.96rem;
    font-weight: 700;
    margin: 10px 0 6px;
}

.ai-md-h3:first-child,
.ai-md-h4:first-child {
    margin-top: 0;
}

.ai-md-h4 {
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 8px 0 4px;
}

.ai-md-hr {
    border: none;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    margin: 12px 0;
}

.ai-md-list {
    padding-left: 18px;
    margin: 6px 0 10px;
}

.ai-md-list li {
    margin-bottom: 5px;
}

.ai-msg-footer {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.71rem;
    color: #64748b;
}

.ai-typing-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-typing-label {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.ai-chat-error {
    color: #f87171 !important;
    font-weight: 600;
}

.ai-input-bar {
    padding: 14px 18px;
    background: #0b0f19;
    border-top: 1px solid #1e293b;
    display: flex;
    gap: 10px;
    align-items: center;
}

.ai-chat-input {
    flex: 1;
    background: #131c2e;
    border: 1px solid #334155;
    color: #f8fafc;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 0.86rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ai-chat-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.ai-send-btn {
    padding: 10px 18px !important;
    font-weight: 700 !important;
    border-radius: 9px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Modal Pengaturan Model AI (#aiSettingsModal) */
.ai-settings-modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.65);
    backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ai-settings-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 14px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.ai-settings-header {
    padding: 16px 20px;
    background: #0b0f19;
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-settings-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-settings-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ai-settings-desc {
    font-size: 0.81rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

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

.ai-settings-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #cbd5e1;
}

.ai-settings-control {
    width: 100%;
    padding: 10px 12px;
    background: #0b0f19;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #f8fafc;
    font-size: 0.86rem;
    outline: none;
}

.ai-settings-control:focus {
    border-color: #3b82f6;
}

.ai-key-input-wrap {
    position: relative;
}

.ai-key-input {
    padding-right: 40px;
}

.ai-key-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ai-settings-help {
    font-size: 0.74rem;
    color: #94a3b8;
    margin: 2px 0 0;
    line-height: 1.45;
}

.ai-settings-help a {
    color: #60a5fa;
    text-decoration: underline;
}

.ai-settings-note {
    padding: 11px 13px;
    border-radius: 8px;
    background: #131c2e;
    border: 1px solid #23324d;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.77rem;
    color: #cbd5e1;
    line-height: 1.45;
}

.ai-settings-footer {
    padding: 14px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid #1e293b;
    background: #0b0f19;
}

/* Light Mode Overrides — Konsultan Bisnis AI (Corporate Navy & Slate) */
body.theme-light .ai-header-panel {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

body.theme-light .ai-header-icon {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #1d4ed8 !important;
}

body.theme-light .ai-header-title {
    color: #0f172a !important;
}

body.theme-light .ai-header-subtitle {
    color: #475569 !important;
}

body.theme-light .ai-chat-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
}

body.theme-light .ai-chat-topbar {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.theme-light .ai-chat-topbar-title {
    color: #0f172a !important;
}

body.theme-light .ai-engine-badge {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1e40af !important;
}

body.theme-light .ai-quick-prompts {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.theme-light #section-ai-insights .chat-chip {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}

body.theme-light #section-ai-insights .chat-chip:hover {
    background: #eff6ff !important;
    border-color: #1d4ed8 !important;
    color: #1d4ed8 !important;
}

body.theme-light .ai-chat-thread {
    background: #ffffff !important;
}

body.theme-light #section-ai-insights .chat-avatar.ai-avatar {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #1e40af !important;
}

body.theme-light #section-ai-insights .chat-bubble.ai-bubble .chat-text {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
}

body.theme-light #section-ai-insights .chat-bubble.user-bubble .chat-text {
    background: #1d4ed8 !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(29, 78, 216, 0.18) !important;
}

body.theme-light .ai-msg-header {
    border-bottom-color: #e2e8f0 !important;
}

body.theme-light .ai-msg-sender {
    color: #0f172a !important;
}

body.theme-light .ai-msg-tag,
body.theme-light .ai-msg-footer,
body.theme-light .ai-msg-hint,
body.theme-light .ai-typing-label {
    color: #64748b !important;
}

body.theme-light .ai-msg-lead,
body.theme-light .ai-md-h3,
body.theme-light .ai-md-h4 {
    color: #0f172a !important;
}

body.theme-light .ai-msg-desc {
    color: #334155 !important;
}

body.theme-light .ai-msg-copy-btn {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

body.theme-light .ai-msg-copy-btn:hover {
    border-color: #1d4ed8 !important;
    color: #1d4ed8 !important;
    background: #eff6ff !important;
}

body.theme-light .ai-md-hr,
body.theme-light .ai-msg-footer {
    border-color: #e2e8f0 !important;
}

body.theme-light .ai-chat-error {
    color: #b91c1c !important;
}

body.theme-light .ai-input-bar {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

body.theme-light .ai-chat-input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.theme-light .ai-chat-input:focus {
    border-color: #1d4ed8 !important;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.14) !important;
}

body.theme-light .ai-insights-header {
    background: #f8fafc !important;
    border-bottom-color: #e2e8f0 !important;
}

/* Rapikan tipografi & spasi laporan Audit Bisnis Komprehensif (#aiInsightsContent) */
.ai-insights-content {
    padding: 20px 24px !important;
    font-size: 0.87rem !important;
    line-height: 1.62 !important;
}

.ai-insights-content h2 {
    font-size: 1.02rem !important;
    font-weight: 700 !important;
    margin: 18px 0 8px !important;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border);
}

.ai-insights-content h2:first-child {
    margin-top: 0 !important;
}

.ai-insights-content h3 {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    margin: 12px 0 6px !important;
    color: var(--text-primary);
}

.ai-insights-content p {
    margin: 0 0 10px !important;
}

.ai-insights-content ul,
.ai-insights-content ol {
    padding-left: 20px !important;
    margin: 4px 0 12px !important;
}

.ai-insights-content li {
    margin-bottom: 5px !important;
}

.ai-insights-content em {
    color: inherit !important;
    font-style: italic !important;
}

.ai-insights-content hr {
    margin: 14px 0 !important;
}

body.theme-light .ai-settings-card {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16) !important;
}

body.theme-light .ai-settings-header,
body.theme-light .ai-settings-footer {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

body.theme-light .ai-settings-title,
body.theme-light .ai-settings-label {
    color: #0f172a !important;
}

body.theme-light .ai-settings-desc,
body.theme-light .ai-settings-help {
    color: #475569 !important;
}

body.theme-light .ai-settings-help a {
    color: #1d4ed8 !important;
}

body.theme-light .ai-settings-note {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #334155 !important;
}

@media (max-width: 680px) {
    #section-ai-insights .chat-bubble.ai-bubble,
    #section-ai-insights .chat-bubble.user-bubble {
        max-width: 100%;
    }
    .ai-chat-thread {
        height: 360px;
        padding: 14px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   12. KARAKTER VISUAL: KEMANG / KYOTO MINIMALIST CRAFT (LIGHT & DARK MODE)
   Palet: Oatmeal Sand (#F5F2EB) • Warm Cream (#FFFFFF) • Sumi Charcoal (#1C1917)
          Muted Sage (#2F5249) • Terracotta Ochre (#B85328) • Espresso (#131110)
   Tipografi: Plus Jakarta Sans (UI) + Newsreader (Display) + IBM Plex Mono (Data)
   ═══════════════════════════════════════════════════════════════════════════ */

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Display & Editorial Headings */
.logo-name,
.header-title,
.welcome-banner h2,
.ai-header-title,
.z-report-title {
    font-family: 'Newsreader', Georgia, serif !important;
    letter-spacing: -0.015em !important;
}

/* Precision Ledger & Monospace Numerics */
.kpi-value,
.pos-led-total-digits,
.pos-prod-price,
.pos-total-row strong,
.z-recon-val,
.z-summary-val,
.z-order-total-text,
.pos-prod-sku,
.product-sku-pill,
.fn-key,
.version-badge,
.pos-shortcut-item kbd,
.pos-barcode-hint code {
    font-family: 'IBM Plex Mono', 'Plus Jakarta Sans', monospace !important;
    font-variant-numeric: tabular-nums;
}

/* ─── DARK MODE: ESPRESSO STONE CRAFT ─── */
:root {
    --bg-root:       #12100e;
    --bg-primary:    #161412;
    --bg-secondary:  #1c1917;
    --bg-card:       #1c1917;
    --bg-card-solid: #1c1917;
    --bg-card-hover: #24201d;
    --bg-input:      #141210;
    --bg-sidebar:    #0e0c0b;
    --border:        #2e2a26;
    --border-hover:  #443e38;
    --border-active: #4d8575;
    --text-primary:  #f5f2eb;
    --text-secondary:#c4bdb0;
    --text-muted:    #8c8478;
    --accent:        #2f5249;
    --accent-hover:  #3b695d;
    --accent-text:   #93c5b7;
    --accent-muted:  rgba(47, 82, 73, 0.24);
    --accent-gradient: linear-gradient(135deg, #2f5249 0%, #3b695d 100%);
    --kpi-blue:      #93c5b7;
    --kpi-blue-bg:   rgba(47, 82, 73, 0.24);
    --kpi-amber:     #e09145;
    --kpi-amber-bg:  rgba(184, 83, 40, 0.22);
    --chart-1:       #5b8c7d;
    --chart-2:       #e07a4b;
    --chart-3:       #d49b45;
    --chart-4:       #7393a7;
}

body:not(.theme-light) {
    background: #12100e !important;
    color: #f5f2eb;
}

body:not(.theme-light) .main-content,
body:not(.theme-light) .dashboard-scroll {
    background: #12100e !important;
}

body:not(.theme-light) .sidebar {
    background-color: #0e0c0b !important;
    background-image: linear-gradient(to bottom, rgba(245, 242, 235, 0.02) 1px, transparent 1px) !important;
    background-size: 100% 28px !important;
    border-right: 1px solid #282420 !important;
}

body:not(.theme-light) .sidebar .sidebar-header {
    border-bottom: 1px solid #282420 !important;
}

body:not(.theme-light) .sidebar .logo-icon {
    background: #1c1917 !important;
    border: 1px solid #3a352f !important;
}

body:not(.theme-light) .sidebar .logo-tag,
body:not(.theme-light) .sidebar .nav-badge,
body:not(.theme-light) .sidebar .pro-sidebar-badge {
    background: #24201d !important;
    border: 1px solid #3a352f !important;
    color: #d6cfc2 !important;
}

body:not(.theme-light) .sidebar .nav-item.active {
    background: #2f5249 !important;
    color: #ffffff !important;
    box-shadow: inset 3px 0 0 #d46a3e !important;
}

body:not(.theme-light) .main-header {
    background: rgba(22, 20, 18, 0.94) !important;
    border-bottom: 1px solid #2e2a26 !important;
}

body:not(.theme-light) .welcome-banner {
    background: #1c1917 !important;
    border: 1px solid #2e2a26 !important;
    border-left: 4px solid #d46a3e !important;
}

body:not(.theme-light) .welcome-title {
    color: #f5f2eb !important;
}

body:not(.theme-light) .welcome-subtitle {
    color: #b8b2a6 !important;
}

body:not(.theme-light) .welcome-store-name {
    color: #93c5b7 !important;
}

body:not(.theme-light) .kpi-card,
body:not(.theme-light) .chart-card,
body:not(.theme-light) .card,
body:not(.theme-light) .table-card,
body:not(.theme-light) .pos-catalog-panel,
body:not(.theme-light) .pos-cart-panel,
body:not(.theme-light) .pos-minimarket-led-bar,
body:not(.theme-light) .ai-header-panel,
body:not(.theme-light) .ai-chat-card,
body:not(.theme-light) .z-report-modal-card {
    background: #1c1917 !important;
    border-color: #2e2a26 !important;
}

body:not(.theme-light) .ai-chat-topbar,
body:not(.theme-light) .ai-input-bar,
body:not(.theme-light) .ai-chat-thread,
body:not(.theme-light) .z-report-header,
body:not(.theme-light) .z-col-opening,
body:not(.theme-light) .z-col-system,
body:not(.theme-light) .z-summary-noncash,
body:not(.theme-light) .z-summary-total,
body:not(.theme-light) .pos-led-item-ticker,
body:not(.theme-light) .pos-led-right,
body:not(.theme-light) .pos-total-row,
body:not(.theme-light) .pos-discount-input,
body:not(.theme-light) .pos-cash-input {
    background: #141210 !important;
    border-color: #2e2a26 !important;
}

body:not(.theme-light) .z-report-section,
body:not(.theme-light) .ai-quick-prompts,
body:not(.theme-light) #section-ai-insights .chat-bubble.ai-bubble .chat-text,
body:not(.theme-light) .pos-product-card {
    background: #211e1b !important;
    border-color: #322d28 !important;
}

body:not(.theme-light) .btn-primary,
body:not(.theme-light) .btn-emerald,
body:not(.theme-light) #btnOpenQuickSale,
body:not(.theme-light) #btnSubmitPosPage,
body:not(.theme-light) #btnSubmitRestock,
body:not(.theme-light) .pos-cat-pill.active,
body:not(.theme-light) .pos-pay-pill.active,
body:not(.theme-light) .z-cashier-pill.active,
body:not(.theme-light) .btn-z-complete,
body:not(.theme-light) #section-ai-insights .chat-avatar.user-avatar,
body:not(.theme-light) #section-ai-insights .chat-bubble.user-bubble .chat-text {
    background: #2f5249 !important;
    border-color: #3b695d !important;
    color: #ffffff !important;
}

body:not(.theme-light) .btn-primary:hover,
body:not(.theme-light) .pos-submit-btn:hover,
body:not(.theme-light) .btn-z-complete:hover {
    background: #3b695d !important;
}

body:not(.theme-light) .pos-led-right,
body:not(.theme-light) .pos-total-row,
body:not(.theme-light) .z-col-expected,
body:not(.theme-light) .z-summary-total {
    border-left: 3px solid #d46a3e !important;
}

body:not(.theme-light) .pos-col-active-focus,
body:not(.theme-light) .z-col-actual {
    border-color: #4d8575 !important;
}

/* ─── LIGHT MODE: OATMEAL SAND & SUMI CHARCOAL CRAFT ─── */
body.theme-light {
    --bg-root:       #f5f2eb;
    --bg-primary:    #f9f7f2;
    --bg-secondary:  #ffffff;
    --bg-card:       #ffffff;
    --bg-card-solid: #ffffff;
    --bg-card-hover: #faf8f4;
    --bg-input:      #fdfcf9;
    --bg-sidebar:    #1c1917;
    --border:        #e4dfd5;
    --border-hover:  #cfc8ba;
    --border-active: #2f5249;
    --text-primary:  #1c1917;
    --text-secondary:#44403c;
    --text-muted:    #78716c;
    --accent:        #2f5249;
    --accent-hover:  #234039;
    --accent-text:   #2f5249;
    --accent-muted:  rgba(47, 82, 73, 0.11);
    --kpi-blue:      #2f5249;
    --kpi-blue-bg:   #ebf1ef;
    --kpi-emerald:   #2f5249;
    --kpi-emerald-bg:#ebf1ef;
    --kpi-amber:     #b85328;
    --kpi-amber-bg:  #f9ece6;
    --chart-1:       #2f5249;
    background: #f5f2eb !important;
    color: #1c1917;
}

body.theme-light .main-content,
body.theme-light .dashboard-scroll {
    background-color: #f5f2eb !important;
    background-image:
        linear-gradient(to right, rgba(28, 25, 23, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(28, 25, 23, 0.025) 1px, transparent 1px) !important;
    background-size: 36px 36px !important;
}

body.theme-light .sidebar {
    background-color: #1c1917 !important;
    background-image: linear-gradient(to bottom, rgba(245, 242, 235, 0.025) 1px, transparent 1px) !important;
    background-size: 100% 28px !important;
    border-right: 1px solid #2c2724 !important;
    box-shadow: 2px 0 12px rgba(28, 25, 23, 0.08) !important;
}

body.theme-light .sidebar .sidebar-header {
    border-bottom: 1px solid #2c2724 !important;
}

body.theme-light .sidebar .logo-icon {
    background: #2f5249 !important;
    border: 1px solid #3f6b5f !important;
}

body.theme-light .sidebar .logo-name {
    color: #f5f2eb !important;
}

body.theme-light .sidebar .logo-tag,
body.theme-light .sidebar .nav-badge,
body.theme-light .sidebar .pro-sidebar-badge {
    background: #292524 !important;
    color: #d6cfc2 !important;
    border: 1px solid #44403c !important;
}

body.theme-light .sidebar .nav-section-label {
    color: #8c8478 !important;
}

body.theme-light .sidebar .nav-item {
    color: #b8b2a6 !important;
}

body.theme-light .sidebar .nav-item:hover {
    color: #ffffff !important;
    background: rgba(245, 242, 235, 0.08) !important;
}

body.theme-light .sidebar .nav-item.active {
    background: #2f5249 !important;
    color: #ffffff !important;
    box-shadow: inset 3px 0 0 #d46a3e !important;
}

body.theme-light .main-header {
    background: #fdfcf9 !important;
    border-bottom: 1px solid #e4dfd5 !important;
    box-shadow: 0 1px 3px rgba(28, 25, 23, 0.04) !important;
}

body.theme-light .welcome-banner {
    background: #ffffff !important;
    border: 1px solid #e4dfd5 !important;
    border-left: 4px solid #b85328 !important;
    border-radius: 12px !important;
    padding: 18px 22px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    box-shadow: 0 1px 4px rgba(28, 25, 23, 0.04) !important;
}

.welcome-banner {
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.welcome-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.welcome-title {
    font-size: 1.38rem !important;
    font-weight: 600 !important;
    margin: 0;
}

.welcome-subtitle {
    font-size: 0.84rem;
    margin: 0;
}

body.theme-light .welcome-title {
    color: #1c1917 !important;
}

body.theme-light .welcome-subtitle {
    color: #57534e !important;
}

body.theme-light .welcome-store-name {
    color: #2f5249 !important;
}

body.theme-light .sample-data-badge {
    background: #f9ece6;
    border: 1px solid #e8c4b4;
    color: #9a3f1a;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
}

body.theme-light .kpi-card,
body.theme-light .chart-card,
body.theme-light .card,
body.theme-light .table-card,
body.theme-light .modal-card,
body.theme-light .header-more-menu,
body.theme-light .pos-catalog-panel,
body.theme-light .pos-cart-panel,
body.theme-light .pos-minimarket-led-bar,
body.theme-light .ai-header-panel,
body.theme-light .ai-chat-card,
body.theme-light .z-report-modal-card {
    background: #ffffff !important;
    border-color: #e4dfd5 !important;
    box-shadow: 0 1px 3px rgba(28, 25, 23, 0.04) !important;
}

body.theme-light .ai-chat-topbar,
body.theme-light .ai-quick-prompts,
body.theme-light .ai-input-bar,
body.theme-light .z-report-header,
body.theme-light .z-col-opening,
body.theme-light .z-col-system,
body.theme-light .z-summary-noncash,
body.theme-light .z-summary-total,
body.theme-light .pos-led-item-ticker,
body.theme-light .pos-led-right,
body.theme-light .pos-cart-header,
body.theme-light .pos-total-row,
body.theme-light .pos-cash-calculator,
body.theme-light .ai-insights-header,
body.theme-light .ai-settings-header,
body.theme-light .ai-settings-footer {
    background: #f9f7f2 !important;
    border-color: #e4dfd5 !important;
}

body.theme-light .z-col-expected {
    background: #f4f0e8 !important;
    border-color: #dcd4c6 !important;
    border-left: 3px solid #b85328 !important;
}

body.theme-light .z-col-actual {
    border-color: #2f5249 !important;
}

body.theme-light .pos-led-right,
body.theme-light .pos-total-row,
body.theme-light .z-summary-total {
    border-left: 3px solid #b85328 !important;
}

body.theme-light .product-sku-pill {
    background: #f5f2eb !important;
    color: #2f5249 !important;
    border-color: #d6cfc2 !important;
}

body.theme-light .header-store-name {
    color: #2f5249 !important;
}

/* Primary Buttons & Active Craft Accents (Muted Sage #2F5249 + Terracotta #B85328) */
body.theme-light .btn-primary,
body.theme-light .btn-emerald,
body.theme-light #btnOpenQuickSale,
body.theme-light #btnSubmitPosPage,
body.theme-light #btnSubmitRestock,
body.theme-light .btn-add-product,
body.theme-light .pos-cat-pill.active,
body.theme-light .pos-pay-pill.active,
body.theme-light .z-cashier-pill.active,
body.theme-light .btn-z-complete,
body.theme-light .mode-pill-btn.active.btn-simple,
body.theme-light .mode-pill-btn.active,
body.theme-light #section-ai-insights .chat-avatar.user-avatar,
body.theme-light #section-ai-insights .chat-bubble.user-bubble .chat-text {
    background: #2f5249 !important;
    border-color: #234039 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(47, 82, 73, 0.2) !important;
}

body.theme-light .btn-primary:hover,
body.theme-light .btn-emerald:hover,
body.theme-light #btnOpenQuickSale:hover,
body.theme-light #btnSubmitPosPage:hover,
body.theme-light #btnSubmitRestock:hover,
body.theme-light .btn-add-product:hover,
body.theme-light .btn-z-complete:hover {
    background: #234039 !important;
    border-color: #1a312b !important;
}

body.theme-light .mode-pill-btn.active.btn-cashier {
    background: #b85328 !important;
    border-color: #9a421d !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(184, 83, 40, 0.24) !important;
}

body.theme-light .btn-blue-soft,
body.theme-light .ai-engine-badge,
body.theme-light .pos-shortcut-item kbd,
body.theme-light .pos-barcode-hint code {
    background: #ebf1ef !important;
    border-color: #bfd0ca !important;
    color: #234039 !important;
}

body.theme-light .btn-blue-soft:hover {
    background: #2f5249 !important;
    border-color: #234039 !important;
    color: #ffffff !important;
}

body.theme-light .pos-fn-btn:hover,
body.theme-light .pos-product-card:hover,
body.theme-light .pos-cat-pill:hover,
body.theme-light .pos-quick-cash-btn:hover,
body.theme-light #section-ai-insights .chat-chip:hover,
body.theme-light .ai-msg-copy-btn:hover {
    border-color: #2f5249 !important;
    color: #234039 !important;
    background: #ebf1ef !important;
}

body.theme-light .pos-cat-pill.active:hover {
    background: #234039 !important;
    color: #ffffff !important;
}

body.theme-light input:focus,
body.theme-light select:focus,
body.theme-light textarea:focus,
body.theme-light .pos-search-bar:focus-within {
    border-color: #2f5249 !important;
    box-shadow: 0 0 0 2px rgba(47, 82, 73, 0.14) !important;
}

body.theme-light .btn:focus-visible,
body.theme-light button:focus-visible,
body.theme-light a:focus-visible,
body.theme-light input:focus-visible,
body.theme-light select:focus-visible {
    outline: 2px solid #2f5249 !important;
}

body.theme-light .cashier-workspace-panel {
    background: #ffffff !important;
    border: 1px solid #e4dfd5 !important;
    border-left: 4px solid #b85328 !important;
    box-shadow: 0 2px 8px rgba(28, 25, 23, 0.05) !important;
}

body.theme-light .cashier-workspace-badge {
    background: #b85328 !important;
    color: #ffffff !important;
}

body.theme-light .cashier-action-card.primary {
    background: #2f5249 !important;
    border-color: #234039 !important;
    box-shadow: 0 4px 14px rgba(47, 82, 73, 0.22) !important;
}

/* ─── Kemang / Kyoto Craft: Lapisan Detail Menyeluruh (Stat Cards, Tabel, Buttons, Header, Modals) ─── */

/* 1. Tekstur Kanvas Hidup (Subtle Architectural Grid + Warm Ambient Corner) */
body:not(.theme-light) .dashboard-scroll {
    background-color: #12100e !important;
    background-image:
        radial-gradient(circle at 92% 4%, rgba(184, 83, 40, 0.08) 0%, transparent 42%),
        radial-gradient(circle at 8% 12%, rgba(47, 82, 73, 0.09) 0%, transparent 38%),
        linear-gradient(to right, rgba(245, 242, 235, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(245, 242, 235, 0.025) 1px, transparent 1px) !important;
    background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px !important;
}

body.theme-light .dashboard-scroll {
    background-color: #f5f2eb !important;
    background-image:
        radial-gradient(circle at 92% 4%, rgba(184, 83, 40, 0.05) 0%, transparent 42%),
        radial-gradient(circle at 8% 12%, rgba(47, 82, 73, 0.06) 0%, transparent 38%),
        linear-gradient(to right, rgba(28, 25, 23, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(28, 25, 23, 0.03) 1px, transparent 1px) !important;
    background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px !important;
}

/* 2. Semua Kartu Analitik & Stat Produk — Espresso Stone (Dark) / Warm Cream (Light) */
body:not(.theme-light) .product-stat-card,
body:not(.theme-light) .stock-metric-card,
body:not(.theme-light) .stock-forecast-chart-card,
body:not(.theme-light) .stock-velocity-card,
body:not(.theme-light) .pareto-card,
body:not(.theme-light) .basket-metric-card,
body:not(.theme-light) .bundle-card,
body:not(.theme-light) .basket-matrix-card,
body:not(.theme-light) .rfm-metric-card,
body:not(.theme-light) .rfm-segment-card,
body:not(.theme-light) .rfm-directory-card,
body:not(.theme-light) .pnl-card,
body:not(.theme-light) .pnl-opex-control,
body:not(.theme-light) .pnl-scorecard,
body:not(.theme-light) .pnl-panel,
body:not(.theme-light) .pnl-cat-card,
body:not(.theme-light) .pnl-insights-card,
body:not(.theme-light) .pnl-insight-item,
body:not(.theme-light) .cohort-card,
body:not(.theme-light) .clv-card,
body:not(.theme-light) .clv-kpi,
body:not(.theme-light) .clv-seg-card,
body:not(.theme-light) .clv-panel,
body:not(.theme-light) .clv-loyalty-item,
body:not(.theme-light) .goal-tracking-widget,
body:not(.theme-light) .goal-card,
body:not(.theme-light) .period-comparison-widget,
body:not(.theme-light) .comparison-metric-item,
body:not(.theme-light) .comparison-prod-col,
body:not(.theme-light) .saas-plan-card,
body:not(.theme-light) .onboarding-banner-formal,
body:not(.theme-light) .onboarding-step-card,
body:not(.theme-light) .cashier-workspace-panel,
body:not(.theme-light) .cashier-action-card,
body:not(.theme-light) .modal-card,
body:not(.theme-light) .app-dialog-card,
body:not(.theme-light) .notification-drawer,
body:not(.theme-light) .header-more-menu {
    background: #1c1917 !important;
    border-color: #322d28 !important;
    box-shadow: inset 0 1px 0 rgba(245, 242, 235, 0.05), 0 6px 18px rgba(0, 0, 0, 0.24) !important;
}

body.theme-light .product-stat-card,
body.theme-light .stock-metric-card,
body.theme-light .pareto-card,
body.theme-light .pnl-card,
body.theme-light .kpi-card,
body.theme-light .chart-card {
    background: #ffffff !important;
    border-color: #e4dfd5 !important;
    box-shadow: 0 2px 6px rgba(28, 25, 23, 0.04) !important;
}

.product-stat-card {
    border-top: 2px solid #3a342e !important;
}
body.theme-light .product-stat-card {
    border-top: 2px solid #d6cfc2 !important;
}

.product-stat-icon {
    background: #24201c !important;
    border: 1px solid #3a342e !important;
    color: #d6cfc2 !important;
}
.product-stat-icon.stat-icon-sage {
    background: rgba(47, 82, 73, 0.25) !important;
    border-color: rgba(107, 163, 147, 0.35) !important;
    color: #93c5b7 !important;
}
.product-stat-icon.stat-icon-brass {
    background: rgba(198, 146, 73, 0.18) !important;
    border-color: rgba(212, 163, 99, 0.35) !important;
    color: #dfb16b !important;
}
.product-stat-icon.stat-icon-terracotta {
    background: rgba(184, 83, 40, 0.2) !important;
    border-color: rgba(212, 106, 62, 0.38) !important;
    color: #e48963 !important;
}

body.theme-light .product-stat-icon {
    background: #f5f2eb !important;
    border: 1px solid #dfd9cd !important;
    color: #44403c !important;
}
body.theme-light .product-stat-icon.stat-icon-sage {
    background: #ebf1ef !important;
    border-color: #c2d4cd !important;
    color: #2f5249 !important;
}
body.theme-light .product-stat-icon.stat-icon-brass {
    background: #faf3e6 !important;
    border-color: #e6d3ad !important;
    color: #9a6b21 !important;
}
body.theme-light .product-stat-icon.stat-icon-terracotta {
    background: #f9ece6 !important;
    border-color: #e8c4b4 !important;
    color: #b85328 !important;
}

.product-stat-value {
    color: #f5f2eb !important;
    font-family: 'IBM Plex Mono', 'Plus Jakarta Sans', monospace !important;
}
.product-stat-value.prod-val-warn {
    color: #dfb16b !important;
}
body.theme-light .product-stat-value {
    color: #1c1917 !important;
}
body.theme-light .product-stat-value.prod-val-warn {
    color: #a16207 !important;
}

/* 3. Tombol Header, Lainnya, Switcher & + Buka Kasir */
body:not(.theme-light) .theme-toggle-btn,
body:not(.theme-light) .header-more-btn,
body:not(.theme-light) .notification-bell-btn,
body:not(.theme-light) .mode-switcher-container,
body:not(.theme-light) .date-filter-group,
body:not(.theme-light) .quick-date-select,
body:not(.theme-light) .btn-secondary {
    background: #211e1b !important;
    border-color: #36312c !important;
    color: #e7e2d8 !important;
}
body:not(.theme-light) .theme-toggle-btn:hover,
body:not(.theme-light) .header-more-btn:hover,
body:not(.theme-light) .notification-bell-btn:hover,
body:not(.theme-light) .btn-secondary:hover {
    background: #2b2723 !important;
    border-color: #4d8575 !important;
    color: #ffffff !important;
}
body:not(.theme-light) .mode-pill-btn.active,
body:not(.theme-light) .mode-pill-btn.active.btn-simple {
    background: #2f5249 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}
body:not(.theme-light) .mode-pill-btn.active.btn-cashier {
    background: #b85328 !important;
    color: #ffffff !important;
}
body:not(.theme-light) .header-store-name {
    color: #dfb16b !important;
}

/* 4. Semantic & Soft Buttons (Kemang / Kyoto Craft — Bebas Biru Neon!) */
body:not(.theme-light) .btn-blue-soft,
body:not(.theme-light) .btn-sky-soft,
body:not(.theme-light) .btn-slate-soft {
    background: #24201c !important;
    border: 1px solid #3a342e !important;
    color: #e7e2d8 !important;
    box-shadow: none !important;
}
body:not(.theme-light) .btn-blue-soft:hover,
body:not(.theme-light) .btn-sky-soft:hover,
body:not(.theme-light) .btn-slate-soft:hover {
    background: #2f5249 !important;
    border-color: #3f6b5f !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

body:not(.theme-light) .btn-emerald-soft {
    background: rgba(47, 82, 73, 0.24) !important;
    border: 1px solid rgba(107, 163, 147, 0.38) !important;
    color: #93c5b7 !important;
}
body:not(.theme-light) .btn-emerald-soft:hover {
    background: #2f5249 !important;
    border-color: #3f6b5f !important;
    color: #ffffff !important;
}

body:not(.theme-light) .btn-amber-soft {
    background: rgba(184, 83, 40, 0.18) !important;
    border: 1px solid rgba(212, 106, 62, 0.42) !important;
    color: #e8a67a !important;
}
body:not(.theme-light) .btn-amber-soft:hover {
    background: #b85328 !important;
    border-color: #9a421d !important;
    color: #ffffff !important;
}

body.theme-light .btn-blue-soft,
body.theme-light .btn-sky-soft,
body.theme-light .btn-slate-soft {
    background: #f9f7f2 !important;
    border: 1px solid #d6cfc2 !important;
    color: #292524 !important;
    box-shadow: none !important;
}
body.theme-light .btn-blue-soft:hover,
body.theme-light .btn-sky-soft:hover,
body.theme-light .btn-slate-soft:hover {
    background: #2f5249 !important;
    border-color: #234039 !important;
    color: #ffffff !important;
}
body.theme-light .btn-amber-soft {
    background: #faf3e6 !important;
    border: 1px solid #e2cca2 !important;
    color: #9a5b18 !important;
}
body.theme-light .btn-amber-soft:hover {
    background: #b85328 !important;
    border-color: #9a421d !important;
    color: #ffffff !important;
}

/* 5. Tabel Katalog & SKU Pill Craft */
body:not(.theme-light) .product-sku-pill {
    background: #24201c !important;
    border: 1px solid #3c3630 !important;
    color: #d6cfc2 !important;
}
body:not(.theme-light) #section-products .data-table thead th,
body:not(.theme-light) #section-orders .data-table thead th,
body:not(.theme-light) .data-table thead th {
    background: #161412 !important;
    color: #a8a093 !important;
    border-bottom-color: #2e2a26 !important;
}
body.theme-light #section-products .data-table thead th,
body.theme-light #section-orders .data-table thead th,
body.theme-light .data-table thead th {
    background: #f9f7f2 !important;
    color: #57534e !important;
    border-bottom-color: #e4dfd5 !important;
}
body:not(.theme-light) .data-table tbody tr:hover {
    background: rgba(245, 242, 235, 0.03) !important;
}
body.theme-light .data-table tbody tr:hover {
    background: #faf8f4 !important;
}
body:not(.theme-light) .search-input,
body:not(.theme-light) .filter-select,
body:not(.theme-light) .search-box {
    background: #141210 !important;
    border-color: #322d28 !important;
    color: #f5f2eb !important;
}
body.theme-light .search-input,
body.theme-light .filter-select,
body.theme-light .search-box {
    background: #fdfcf9 !important;
    border-color: #d6cfc2 !important;
    color: #1c1917 !important;
}

/* 6. Modal Login Akun Staf Kasir (#shiftSwitchModal) — Espresso Stone & Warm Cream */
#shiftSwitchModal .shift-modal-card {
    background: #1c1917 !important;
    border: 1px solid #342f2a !important;
    border-top: 3px solid #b85328 !important;
    border-radius: 14px !important;
}
#shiftSwitchModal .shift-modal-header {
    background: #141210 !important;
    border-bottom: 1px solid #2e2a26 !important;
}
#shiftSwitchModal .shift-modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #24201c;
    border: 1px solid #3d3731;
    color: #dfb16b;
    display: flex;
    align-items: center;
    justify-content: center;
}
#shiftSwitchModal .shift-modal-title {
    margin: 0;
    font-family: 'Newsreader', Georgia, serif;
    font-size: 1.12rem;
    font-weight: 600;
    color: #f5f2eb;
}
#shiftSwitchModal .shift-modal-subtitle {
    margin: 0;
    font-size: 0.75rem;
    color: #9c9488;
}
#shiftSwitchModal .shift-status-banner {
    background: #141210;
    border: 1px solid #2e2a26;
    border-left: 3px solid #2f5249;
    border-radius: 9px;
    padding: 10px 13px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
#shiftSwitchModal .shift-status-text {
    font-size: 0.78rem;
    color: #c4bdb0;
}
#shiftSwitchModal .shift-status-highlight {
    color: #93c5b7;
}
#shiftSwitchModal .shift-status-cash {
    font-size: 0.74rem;
    color: #9c9488;
}
#shiftSwitchModal .shift-status-cash-val {
    color: #dfb16b;
    font-family: 'IBM Plex Mono', monospace;
}
#shiftSwitchModal .shift-empty-box {
    background: #24201c;
    border: 1px dashed #8a6432;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
}
#shiftSwitchModal .shift-empty-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: #dfb16b;
    margin-bottom: 4px;
}
#shiftSwitchModal .shift-empty-desc {
    font-size: 0.76rem;
    color: #c4bdb0;
    margin: 0 0 12px;
    line-height: 1.45;
}
#shiftSwitchModal .shift-field-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #d6cfc2;
    margin-bottom: 5px;
}
#shiftSwitchModal .shift-manage-link {
    background: none;
    border: none;
    color: #93c5b7;
    font-size: 0.73rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
#shiftSwitchModal .shift-input {
    width: 100%;
    padding: 9px 12px;
    background: #12100e !important;
    border: 1px solid #3a342e !important;
    border-radius: 8px;
    color: #f5f2eb !important;
    font-size: 0.85rem;
    outline: none;
}
#shiftSwitchModal .shift-input:focus {
    border-color: #4d8575 !important;
    box-shadow: 0 0 0 2px rgba(77, 133, 117, 0.25) !important;
}
#shiftSwitchModal .shift-input-pass {
    padding-right: 40px;
}
#shiftSwitchModal .shift-input-cash {
    padding-left: 36px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
}
#shiftSwitchModal .shift-cash-prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c8478;
    font-size: 0.8rem;
    font-family: 'IBM Plex Mono', monospace;
}
#shiftSwitchModal .shift-eye-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #9c9488;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
#shiftSwitchModal .shift-error-box {
    margin-bottom: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(185, 28, 28, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.38);
    color: #fca5a5;
    font-size: 0.8rem;
    font-weight: 600;
}
#shiftSwitchModal .shift-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #2e2a26;
    flex-wrap: wrap;
}
#shiftSwitchModal .shift-staff-pill {
    background: #141210 !important;
    border: 1px solid #3a342e !important;
    color: #e7e2d8 !important;
}
#shiftSwitchModal .shift-staff-pill.active,
#shiftSwitchModal .shift-staff-pill:hover {
    background: #2f5249 !important;
    border-color: #4d8575 !important;
    color: #ffffff !important;
}

body.theme-light #shiftSwitchModal .shift-modal-card {
    background: #ffffff !important;
    border-color: #e4dfd5 !important;
    border-top: 3px solid #b85328 !important;
}
body.theme-light #shiftSwitchModal .shift-modal-header {
    background: #f9f7f2 !important;
    border-bottom-color: #e4dfd5 !important;
}
body.theme-light #shiftSwitchModal .shift-modal-icon {
    background: #f5f2eb;
    border-color: #d6cfc2;
    color: #b85328;
}
body.theme-light #shiftSwitchModal .shift-modal-title {
    color: #1c1917 !important;
}
body.theme-light #shiftSwitchModal .shift-modal-subtitle {
    color: #57534e !important;
}
body.theme-light #shiftSwitchModal .shift-status-banner {
    background: #f9f7f2;
    border-color: #e4dfd5;
    border-left-color: #2f5249;
}
body.theme-light #shiftSwitchModal .shift-status-text {
    color: #44403c;
}
body.theme-light #shiftSwitchModal .shift-status-highlight {
    color: #2f5249;
}
body.theme-light #shiftSwitchModal .shift-status-cash {
    color: #57534e;
}
body.theme-light #shiftSwitchModal .shift-status-cash-val {
    color: #9a5b18;
}
body.theme-light #shiftSwitchModal .shift-field-label {
    color: #292524;
}
body.theme-light #shiftSwitchModal .shift-manage-link {
    color: #2f5249;
}
body.theme-light #shiftSwitchModal .shift-input {
    background: #fdfcf9 !important;
    border-color: #d6cfc2 !important;
    color: #1c1917 !important;
}
body.theme-light #shiftSwitchModal .shift-input:focus {
    border-color: #2f5249 !important;
    box-shadow: 0 0 0 2px rgba(47, 82, 73, 0.14) !important;
}
body.theme-light #shiftSwitchModal .shift-modal-footer {
    border-top-color: #e4dfd5;
}
body.theme-light #shiftSwitchModal .shift-staff-pill {
    background: #f9f7f2 !important;
    border-color: #d6cfc2 !important;
    color: #1c1917 !important;
}
body.theme-light #shiftSwitchModal .shift-staff-pill.active,
body.theme-light #shiftSwitchModal .shift-staff-pill:hover {
    background: #ebf1ef !important;
    border-color: #2f5249 !important;
    color: #234039 !important;
}

/* 7. Brand Logo & Tagline (Fix Gradient Text Clipping & Emblem Presisi) */
.sidebar .logo {
    gap: 12px;
}
.sidebar .logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px !important;
    background: #23201d !important;
    border: 1px solid rgba(212, 163, 115, 0.35) !important;
    box-shadow: inset 0 1px 0 rgba(245, 242, 235, 0.08), 0 2px 8px rgba(0, 0, 0, 0.28) !important;
}
.sidebar .logo-text {
    gap: 2px;
}
.sidebar .logo-name {
    font-family: 'Newsreader', Georgia, serif !important;
    font-size: 1.48rem !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #f5f2eb !important;
    color: #f5f2eb !important;
}
.sidebar .logo-tag {
    font-family: 'IBM Plex Mono', monospace !important;
    font-size: 0.62rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.14em !important;
    color: #d4a373 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-transform: uppercase;
}

/* ============================================================================
   13. KEMANG CRAFT — PRO ANALYTICS, FLOW OVERLAP FIX & HIGH-CONTRAST LIGHT/DARK
   ============================================================================ */

/* 13A. Flow Height Fix: Kartu multi-komponen (.pareto, .heatmap, .basket, .rfm, .forecast)
   tidak boleh terkunci height: 320px dari .chart-body agar kartu di bawahnya tidak menumpuk. */
#paretoChartCard > .chart-body,
#heatmapChartCard > .chart-body,
#marketBasketChartCard > .chart-body,
#rfmChartCard > .chart-body,
#forecastChartCard > .chart-body,
.chart-body-auto {
    height: auto !important;
    min-height: 0 !important;
}

/* 13B. Chart Filter Buttons & Header Icons (Mengganti sisa tombol biru neon) */
body.theme-light .chart-btn {
    background: #fdfcf9 !important;
    border: 1px solid #d6cfc2 !important;
    color: #292524 !important;
    box-shadow: none !important;
}
body.theme-light .chart-btn:hover {
    background: #f5f2eb !important;
    border-color: #2f5249 !important;
    color: #1c1917 !important;
}
body.theme-light .chart-btn.active {
    background: #2f5249 !important;
    border-color: #234039 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(47, 82, 73, 0.22) !important;
}
body:not(.theme-light) .chart-btn {
    background: #211e1b !important;
    border: 1px solid #3a342e !important;
    color: #d6cfc2 !important;
}
body:not(.theme-light) .chart-btn:hover {
    background: #2b2723 !important;
    border-color: #6ba393 !important;
    color: #f5f2eb !important;
}
body:not(.theme-light) .chart-btn.active {
    background: #2f5249 !important;
    border-color: #4d8575 !important;
    color: #f5f2eb !important;
}

.pro-header-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
body.theme-light .pro-icon-sage { background: #ebf1ef; border: 1px solid #c2d4cd; color: #2f5249; }
body.theme-light .pro-icon-brass { background: #faf3e6; border: 1px solid #e6d3ad; color: #9a6b21; }
body.theme-light .pro-icon-terracotta { background: #f9ece6; border: 1px solid #e8c4b4; color: #b85328; }
body:not(.theme-light) .pro-icon-sage { background: rgba(47, 82, 73, 0.28); border: 1px solid rgba(107, 163, 147, 0.35); color: #93c5b7; }
body:not(.theme-light) .pro-icon-brass { background: rgba(176, 125, 50, 0.2); border: 1px solid rgba(223, 177, 107, 0.35); color: #dfb16b; }
body:not(.theme-light) .pro-icon-terracotta { background: rgba(184, 83, 40, 0.22); border: 1px solid rgba(212, 106, 62, 0.38); color: #e48963; }

.pro-subsection-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}
.pro-subsection-title {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
body.theme-light .pro-subsection-title { color: #1c1917 !important; }
body:not(.theme-light) .pro-subsection-title { color: #f5f2eb !important; }

.pro-subsection-hint { font-size: 0.76rem; }
body.theme-light .pro-subsection-hint { color: #57534e !important; }
body:not(.theme-light) .pro-subsection-hint { color: #a8a093 !important; }

.pro-count-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 6px;
}
body.theme-light .pro-count-pill { background: #ebf1ef; color: #2f5249; border: 1px solid #c2d4cd; }
body:not(.theme-light) .pro-count-pill { background: rgba(47, 82, 73, 0.32); color: #93c5b7; border: 1px solid rgba(107, 163, 147, 0.35); }

.pro-loading-text {
    text-align: center;
    padding: 28px 16px;
    font-size: 0.82rem;
}
body.theme-light .pro-loading-text { color: #57534e !important; }
body:not(.theme-light) .pro-loading-text { color: #a8a093 !important; }

/* 13C. Kartu Ringkasan Pro & Nilai Angka (Fix Total White-on-White!) */
body.theme-light .pareto-card,
body.theme-light .basket-metric-card,
body.theme-light .bundle-card,
body.theme-light .basket-matrix-card,
body.theme-light .rfm-metric-card,
body.theme-light .rfm-segment-card,
body.theme-light .rfm-directory-card,
body.theme-light .stock-metric-card,
body.theme-light .stock-forecast-chart-card,
body.theme-light .stock-velocity-card,
body.theme-light .pnl-card,
body.theme-light .pnl-opex-control,
body.theme-light .pnl-scorecard,
body.theme-light .pnl-panel,
body.theme-light .pnl-cat-card,
body.theme-light .pnl-insights-card,
body.theme-light .pnl-insight-item,
body.theme-light .cohort-card,
body.theme-light .clv-card,
body.theme-light .clv-kpi,
body.theme-light .clv-seg-card,
body.theme-light .clv-panel,
body.theme-light .clv-loyalty-item {
    background: #ffffff !important;
    border-color: #e4dfd5 !important;
    color: #1c1917 !important;
}

body.theme-light .pareto-card-val,
body.theme-light .basket-metric-val,
body.theme-light .rfm-metric-val,
body.theme-light .stock-metric-val {
    color: #1c1917 !important;
    font-family: 'IBM Plex Mono', 'Plus Jakarta Sans', monospace;
}
body:not(.theme-light) .pareto-card-val,
body:not(.theme-light) .basket-metric-val,
body:not(.theme-light) .rfm-metric-val,
body:not(.theme-light) .stock-metric-val {
    color: #f5f2eb !important;
    font-family: 'IBM Plex Mono', 'Plus Jakarta Sans', monospace;
}

body.theme-light .basket-val-sage,
body.theme-light .rfm-val-sage { color: #2f5249 !important; }
body.theme-light .basket-val-terracotta,
body.theme-light .rfm-val-terracotta { color: #b85328 !important; }
body.theme-light .rfm-val-brass { color: #9a6b21 !important; }

body:not(.theme-light) .basket-val-sage,
body:not(.theme-light) .rfm-val-sage { color: #83c5b2 !important; }
body:not(.theme-light) .basket-val-terracotta,
body:not(.theme-light) .rfm-val-terracotta { color: #e48963 !important; }
body:not(.theme-light) .rfm-val-brass { color: #dfb16b !important; }

body.theme-light .pareto-card-sub,
body.theme-light .basket-metric-label,
body.theme-light .basket-metric-sub,
body.theme-light .rfm-metric-label,
body.theme-light .rfm-metric-sub,
body.theme-light .stock-metric-label,
body.theme-light .stock-metric-sub {
    color: #57534e !important;
}
body:not(.theme-light) .pareto-card-sub,
body:not(.theme-light) .basket-metric-label,
body:not(.theme-light) .basket-metric-sub,
body:not(.theme-light) .rfm-metric-label,
body:not(.theme-light) .rfm-metric-sub,
body:not(.theme-light) .stock-metric-label,
body:not(.theme-light) .stock-metric-sub {
    color: #a8a093 !important;
}

/* Garis Aksen Kiri Kartu Metrik -> Kemang Craft Palette */
.pareto-card-a::before,
.basket-metric-card.card-accent-emerald::before,
.rfm-metric-card.card-accent-emerald::before,
.stock-metric-card.card-accent-emerald::before {
    background: #2f5249 !important;
}
.pareto-card-b::before,
.basket-metric-card.card-accent-amber::before,
.rfm-metric-card.card-accent-amber::before,
.stock-metric-card.card-accent-rose::before {
    background: #b85328 !important;
}
.pareto-card-c::before,
.basket-metric-card::before,
.rfm-metric-card::before,
.stock-metric-card.card-accent-indigo::before {
    background: #78716c !important;
}
.rfm-metric-card.card-accent-indigo::before,
.stock-metric-card::before {
    background: #b07d32 !important;
}

/* 13D. Guide Boxes (Basket, RFM, Stock, Golden Hour) */
body.theme-light .basket-guide-box,
body.theme-light .rfm-guide-box,
body.theme-light .stock-guide-box,
body.theme-light .heatmap-golden-bar {
    background: #f9f7f2 !important;
    border: 1px solid #dfd8c8 !important;
    border-left: 3px solid #2f5249 !important;
    border-radius: 10px;
    padding: 14px 18px;
}
body.theme-light .stock-guide-box {
    border-left-color: #b85328 !important;
}
body:not(.theme-light) .basket-guide-box,
body:not(.theme-light) .rfm-guide-box,
body:not(.theme-light) .stock-guide-box,
body:not(.theme-light) .heatmap-golden-bar {
    background: #161412 !important;
    border: 1px solid #322d28 !important;
    border-left: 3px solid #4d8575 !important;
    border-radius: 10px;
    padding: 14px 18px;
}
body:not(.theme-light) .stock-guide-box {
    border-left-color: #d46a3e !important;
}

.heatmap-golden-bar {
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.heatmap-golden-icon {
    font-size: 1.35rem;
    line-height: 1;
    color: #b85328;
}
body.theme-light .basket-guide-icon,
body.theme-light .rfm-guide-icon { color: #2f5249 !important; }
body.theme-light .stock-guide-icon { color: #b85328 !important; }
body:not(.theme-light) .basket-guide-icon,
body:not(.theme-light) .rfm-guide-icon { color: #83c5b2 !important; }
body:not(.theme-light) .stock-guide-icon,
body:not(.theme-light) .heatmap-golden-icon { color: #e48963 !important; }

body.theme-light .basket-guide-title,
body.theme-light .rfm-guide-title,
body.theme-light .stock-guide-title,
body.theme-light .heatmap-golden-title {
    color: #1c1917 !important;
    font-weight: 700;
}
body:not(.theme-light) .basket-guide-title,
body:not(.theme-light) .rfm-guide-title,
body:not(.theme-light) .stock-guide-title,
body:not(.theme-light) .heatmap-golden-title {
    color: #f5f2eb !important;
    font-weight: 700;
}
body.theme-light .basket-guide-desc,
body.theme-light .rfm-guide-desc,
body.theme-light .stock-guide-desc,
body.theme-light .heatmap-golden-desc {
    color: #44403c !important;
}
body:not(.theme-light) .basket-guide-desc,
body:not(.theme-light) .rfm-guide-desc,
body:not(.theme-light) .stock-guide-desc,
body:not(.theme-light) .heatmap-golden-desc {
    color: #c4bdb0 !important;
}

body.theme-light .basket-guide-tag,
body.theme-light .rfm-guide-tag,
body.theme-light .stock-guide-tag {
    background: #ffffff !important;
    border: 1px solid #d6cfc2 !important;
    color: #292524 !important;
}
body.theme-light .basket-guide-tag strong,
body.theme-light .rfm-guide-tag strong { color: #2f5249 !important; }
body.theme-light .stock-guide-tag strong { color: #9a421d !important; }

body:not(.theme-light) .basket-guide-tag,
body:not(.theme-light) .rfm-guide-tag,
body:not(.theme-light) .stock-guide-tag {
    background: #211e1b !important;
    border: 1px solid #3a342e !important;
    color: #e7e2d8 !important;
}
body:not(.theme-light) .basket-guide-tag strong,
body:not(.theme-light) .rfm-guide-tag strong { color: #93c5b7 !important; }
body:not(.theme-light) .stock-guide-tag strong { color: #dfb16b !important; }

/* 13E. Pareto & Heatmap Details */
body.theme-light .badge-class-a { background: #ebf1ef !important; color: #2f5249 !important; border-color: #c2d4cd !important; }
body.theme-light .badge-class-b { background: #f9ece6 !important; color: #b85328 !important; border-color: #e8c4b4 !important; }
body.theme-light .badge-class-c { background: #f2efe9 !important; color: #57534e !important; border-color: #d6cfc2 !important; }
body:not(.theme-light) .badge-class-a { background: rgba(47, 82, 73, 0.28) !important; color: #93c5b7 !important; border-color: rgba(107, 163, 147, 0.35) !important; }
body:not(.theme-light) .badge-class-b { background: rgba(184, 83, 40, 0.24) !important; color: #e48963 !important; border-color: rgba(212, 106, 62, 0.38) !important; }
body:not(.theme-light) .badge-class-c { background: rgba(120, 113, 108, 0.24) !important; color: #d6cfc2 !important; border-color: rgba(168, 160, 147, 0.3) !important; }

body.theme-light .pareto-card-action {
    background: #f9f7f2 !important;
    border-left-color: #d6cfc2 !important;
    color: #44403c !important;
}
body:not(.theme-light) .pareto-card-action {
    background: #161412 !important;
    border-left-color: #3a342e !important;
    color: #c4bdb0 !important;
}

body.theme-light .heatmap-th-slot span { color: #2f5249 !important; }
body:not(.theme-light) .heatmap-th-slot span { color: #93c5b7 !important; }
body.theme-light .heatmap-cell-val { color: #1c1917 !important; }
body.theme-light .heatmap-cell-sub { color: #57534e !important; }
body.theme-light .heatmap-cell.is-dark-cell .heatmap-cell-val,
body:not(.theme-light) .heatmap-cell.is-dark-cell .heatmap-cell-val { color: #ffffff !important; }
body.theme-light .heatmap-cell.is-dark-cell .heatmap-cell-sub,
body:not(.theme-light) .heatmap-cell.is-dark-cell .heatmap-cell-sub { color: rgba(255, 255, 255, 0.88) !important; }
body:not(.theme-light) .heatmap-cell-val { color: #f5f2eb !important; }
body:not(.theme-light) .heatmap-cell-sub { color: #a8a093 !important; }
.heatmap-peak-badge { background: #1c1917 !important; color: #f5f2eb !important; border: 1px solid #dfb16b; }
.heatmap-legend-gradient {
    background: linear-gradient(90deg, #ece7dd 0%, #2f5249 62%, #b85328 100%) !important;
}

/* 13F. Market Basket Cards & Matrix */
body.theme-light .bundle-rank-badge { background: #f2efe9 !important; color: #44403c !important; border-color: #d6cfc2 !important; }
body.theme-light .bundle-strength-high { background: #ebf1ef !important; color: #2f5249 !important; border-color: #c2d4cd !important; }
body.theme-light .bundle-strength-medium { background: #faf3e6 !important; color: #9a6b21 !important; border-color: #e6d3ad !important; }
body.theme-light .bundle-strength-moderate { background: #f9ece6 !important; color: #b85328 !important; border-color: #e8c4b4 !important; }
body:not(.theme-light) .bundle-rank-badge { background: #24201c !important; color: #d6cfc2 !important; border-color: #3a342e !important; }
body:not(.theme-light) .bundle-strength-high { background: rgba(47, 82, 73, 0.28) !important; color: #93c5b7 !important; border-color: rgba(107, 163, 147, 0.35) !important; }
body:not(.theme-light) .bundle-strength-medium { background: rgba(176, 125, 50, 0.22) !important; color: #dfb16b !important; border-color: rgba(223, 177, 107, 0.35) !important; }
body:not(.theme-light) .bundle-strength-moderate { background: rgba(184, 83, 40, 0.22) !important; color: #e48963 !important; border-color: rgba(212, 106, 62, 0.38) !important; }

body.theme-light .bundle-items-row { background: #f9f7f2 !important; border-color: #e4dfd5 !important; }
body:not(.theme-light) .bundle-items-row { background: #161412 !important; border-color: #2e2a26 !important; }
body.theme-light .bundle-item-icon { background: #ffffff !important; border: 1px solid #e4dfd5; color: #2f5249; }
body:not(.theme-light) .bundle-item-icon { background: #24201c !important; border: 1px solid #3a342e; color: #dfb16b; }
body.theme-light .bundle-item-name { color: #1c1917 !important; }
body:not(.theme-light) .bundle-item-name { color: #f5f2eb !important; }
body.theme-light .bundle-item-meta { color: #57534e !important; }
body.theme-light .bundle-item-price { color: #2f5249 !important; }
body:not(.theme-light) .bundle-item-price { color: #93c5b7 !important; }
body.theme-light .bundle-plus-sign { background: #ebf1ef !important; border-color: #c2d4cd !important; color: #2f5249 !important; }
body:not(.theme-light) .bundle-plus-sign { background: rgba(47, 82, 73, 0.3) !important; border-color: rgba(107, 163, 147, 0.4) !important; color: #93c5b7 !important; }

body.theme-light .bundle-stats-row { background: #f9f7f2 !important; border-color: #e4dfd5 !important; }
body:not(.theme-light) .bundle-stats-row { background: #161412 !important; border-color: #2e2a26 !important; }
body.theme-light .bundle-stat-lbl { color: #57534e !important; }
body.theme-light .bundle-num-primary { color: #1c1917 !important; }
body.theme-light .bundle-num-brass { color: #9a6b21 !important; }
body.theme-light .bundle-num-sage { color: #2f5249 !important; }
body:not(.theme-light) .bundle-num-primary { color: #f5f2eb !important; }
body:not(.theme-light) .bundle-num-brass { color: #dfb16b !important; }
body:not(.theme-light) .bundle-num-sage { color: #93c5b7 !important; }

body.theme-light .bundle-price-box { background: #f4f7f5 !important; border-color: #c8d8d2 !important; }
body:not(.theme-light) .bundle-price-box { background: rgba(47, 82, 73, 0.14) !important; border-color: rgba(107, 163, 147, 0.28) !important; }
body.theme-light .bundle-price-promo { color: #2f5249 !important; }
body:not(.theme-light) .bundle-price-promo { color: #83c5b2 !important; }
body.theme-light .bundle-price-normal,
body.theme-light .bundle-price-note { color: #57534e !important; }
body:not(.theme-light) .bundle-price-normal,
body:not(.theme-light) .bundle-price-note { color: #a8a093 !important; }
body.theme-light .bundle-price-save-badge { background: #2f5249 !important; border-color: #234039 !important; color: #ffffff !important; }
body:not(.theme-light) .bundle-price-save-badge { background: rgba(47, 82, 73, 0.4) !important; border-color: rgba(107, 163, 147, 0.45) !important; color: #b7ded2 !important; }

body.theme-light .bundle-strategy-text { background: #f9f7f2 !important; border-left-color: #2f5249 !important; color: #44403c !important; }
body:not(.theme-light) .bundle-strategy-text { background: #161412 !important; border-left-color: #6ba393 !important; color: #c4bdb0 !important; }

body.theme-light .btn-bundle-copy { background: #2f5249 !important; border-color: #234039 !important; color: #ffffff !important; }
body.theme-light .btn-bundle-copy:hover { background: #234039 !important; }
body.theme-light .btn-bundle-sim { background: #f9f7f2 !important; border-color: #d6cfc2 !important; color: #292524 !important; }
body.theme-light .btn-bundle-sim:hover { background: #efeae0 !important; }
body:not(.theme-light) .btn-bundle-copy { background: #2f5249 !important; border-color: #4d8575 !important; color: #f5f2eb !important; }
body:not(.theme-light) .btn-bundle-sim { background: #24201c !important; border-color: #3a342e !important; color: #e7e2d8 !important; }

body.theme-light .basket-search-input,
body.theme-light .rfm-segment-select,
body.theme-light .rfm-search-input,
body.theme-light .stock-status-select,
body.theme-light .stock-search-input {
    background: #fdfcf9 !important;
    border-color: #d6cfc2 !important;
    color: #1c1917 !important;
}
body:not(.theme-light) .basket-search-input,
body:not(.theme-light) .rfm-segment-select,
body:not(.theme-light) .rfm-search-input,
body:not(.theme-light) .stock-status-select,
body:not(.theme-light) .stock-search-input {
    background: #141210 !important;
    border-color: #3a342e !important;
    color: #f5f2eb !important;
}

body.theme-light .basket-matrix-table th,
body.theme-light .rfm-customer-table th,
body.theme-light .stock-velocity-table th {
    background: #f9f7f2 !important;
    color: #57534e !important;
    border-bottom-color: #e4dfd5 !important;
}
body:not(.theme-light) .basket-matrix-table th,
body:not(.theme-light) .rfm-customer-table th,
body:not(.theme-light) .stock-velocity-table th {
    background: #161412 !important;
    color: #a8a093 !important;
    border-bottom-color: #2e2a26 !important;
}
body.theme-light .basket-matrix-table td,
body.theme-light .rfm-customer-table td,
body.theme-light .stock-velocity-table td {
    color: #1c1917 !important;
    border-bottom-color: #efeae0 !important;
}
body:not(.theme-light) .basket-matrix-table td,
body:not(.theme-light) .rfm-customer-table td,
body:not(.theme-light) .stock-velocity-table td {
    color: #e7e2d8 !important;
    border-bottom-color: #292521 !important;
}
body.theme-light .basket-matrix-table tbody tr:hover td,
body.theme-light .rfm-customer-table tbody tr:hover td,
body.theme-light .stock-velocity-table tbody tr:hover td {
    background: #faf8f4 !important;
}

.basket-mat-prod { font-weight: 700; }
.basket-mat-target { font-weight: 700; }
.basket-mat-meta { font-size: 0.72rem; }
.basket-mat-freq { text-align: center; font-weight: 700; }
.basket-mat-freq-unit { font-size: 0.7rem; font-weight: 400; }
.basket-conf-track { flex: 1; height: 6px; border-radius: 3px; overflow: hidden; min-width: 60px; }
.basket-conf-fill { height: 100%; border-radius: 3px; }
.basket-conf-pct { font-weight: 700; font-size: 0.78rem; }
.basket-action-cell { font-size: 0.75rem; max-width: 280px; line-height: 1.4; }
.basket-lift-high, .basket-lift-mid, .basket-lift-mod { font-weight: 700; }

body.theme-light .basket-mat-prod { color: #1c1917; }
body.theme-light .basket-mat-target { color: #2f5249; }
body.theme-light .basket-mat-meta,
body.theme-light .basket-mat-freq-unit,
body.theme-light .basket-action-cell { color: #57534e !important; }
body.theme-light .basket-conf-track { background: #e8e2d6; }
body.theme-light .basket-conf-fill { background: #2f5249; }
body.theme-light .basket-conf-pct,
body.theme-light .basket-lift-high { color: #2f5249; }
body.theme-light .basket-lift-mid { color: #9a6b21; }
body.theme-light .basket-lift-mod { color: #b85328; }

body:not(.theme-light) .basket-mat-prod { color: #f5f2eb; }
body:not(.theme-light) .basket-mat-target { color: #93c5b7; }
body:not(.theme-light) .basket-mat-meta,
body:not(.theme-light) .basket-mat-freq-unit,
body:not(.theme-light) .basket-action-cell { color: #a8a093 !important; }
body:not(.theme-light) .basket-conf-track { background: #2e2a26; }
body:not(.theme-light) .basket-conf-fill { background: #6ba393; }
body:not(.theme-light) .basket-conf-pct,
body:not(.theme-light) .basket-lift-high { color: #83c5b2; }
body:not(.theme-light) .basket-lift-mid { color: #dfb16b; }
body:not(.theme-light) .basket-lift-mod { color: #e48963; }

/* 13G. RFM Segments & Customer Directory */
body.theme-light .rfm-segment-card.active-filter {
    border-color: #2f5249 !important;
    background: #f4f7f5 !important;
    box-shadow: 0 0 0 1px #2f5249 !important;
}
body:not(.theme-light) .rfm-segment-card.active-filter {
    border-color: #6ba393 !important;
    background: #212926 !important;
    box-shadow: 0 0 0 1px #6ba393 !important;
}
.rfm-seg-pct, .rfm-seg-unit { font-size: 0.74rem; font-weight: 600; }
body.theme-light .rfm-seg-pct, body.theme-light .rfm-seg-unit { color: #57534e; }
body:not(.theme-light) .rfm-seg-pct, body:not(.theme-light) .rfm-seg-unit { color: #a8a093; }

body.theme-light .rfm-seg-stat-val { color: #1c1917 !important; }
body:not(.theme-light) .rfm-seg-stat-val { color: #f5f2eb !important; }
body.theme-light .rfm-spend-champions,
body.theme-light .rfm-spend-loyal { color: #2f5249 !important; }
body.theme-light .rfm-spend-potential { color: #9a6b21 !important; }
body.theme-light .rfm-spend-at_risk,
body.theme-light .rfm-spend-lost { color: #b85328 !important; }
body.theme-light .rfm-spend-hibernating { color: #57534e !important; }
body:not(.theme-light) .rfm-spend-champions,
body:not(.theme-light) .rfm-spend-loyal { color: #83c5b2 !important; }
body:not(.theme-light) .rfm-spend-potential { color: #dfb16b !important; }
body:not(.theme-light) .rfm-spend-at_risk,
body:not(.theme-light) .rfm-spend-lost { color: #e48963 !important; }
body:not(.theme-light) .rfm-spend-hibernating { color: #a8a093 !important; }

body.theme-light .rfm-seg-desc { color: #44403c !important; }
body:not(.theme-light) .rfm-seg-desc { color: #b8b0a2 !important; }
body.theme-light .rfm-seg-advice { background: #f9f7f2 !important; border-left-color: #2f5249 !important; color: #292524 !important; }
body:not(.theme-light) .rfm-seg-advice { background: #161412 !important; border-left-color: #6ba393 !important; color: #d6cfc2 !important; }

body.theme-light .segment-champion { background: #ebf1ef !important; color: #234039 !important; border-color: #c2d4cd !important; }
body.theme-light .segment-loyal { background: #eef3f1 !important; color: #2f5249 !important; border-color: #cddbd5 !important; }
body.theme-light .segment-potential { background: #faf3e6 !important; color: #8c5c17 !important; border-color: #e6d3ad !important; }
body.theme-light .segment-at-risk { background: #f9ece6 !important; color: #9a421d !important; border-color: #e8c4b4 !important; }
body.theme-light .segment-hibernating { background: #f2efe9 !important; color: #57534e !important; border-color: #d6cfc2 !important; }
body.theme-light .segment-lost { background: #fae8e6 !important; color: #991b1b !important; border-color: #eabcb7 !important; }

body:not(.theme-light) .segment-champion { background: rgba(47, 82, 73, 0.34) !important; color: #93c5b7 !important; border-color: rgba(107, 163, 147, 0.4) !important; }
body:not(.theme-light) .segment-loyal { background: rgba(63, 107, 95, 0.25) !important; color: #a7d1c5 !important; border-color: rgba(107, 163, 147, 0.35) !important; }
body:not(.theme-light) .segment-potential { background: rgba(176, 125, 50, 0.22) !important; color: #dfb16b !important; border-color: rgba(223, 177, 107, 0.35) !important; }
body:not(.theme-light) .segment-at-risk { background: rgba(184, 83, 40, 0.24) !important; color: #e48963 !important; border-color: rgba(212, 106, 62, 0.4) !important; }
body:not(.theme-light) .segment-hibernating { background: rgba(120, 113, 108, 0.24) !important; color: #c4bdb0 !important; border-color: rgba(168, 160, 147, 0.3) !important; }
body:not(.theme-light) .segment-lost { background: rgba(185, 28, 28, 0.24) !important; color: #fca5a5 !important; border-color: rgba(239, 68, 68, 0.4) !important; }

.rfm-cust-name { font-weight: 700; }
.rfm-cust-meta { font-size: 0.72rem; margin-top: 2px; }
.rfm-cust-recency { font-weight: 700; }
.rfm-sub-muted { font-size: 0.71rem; }
.rfm-order-count { font-weight: 800; }
.rfm-total-spend { text-align: right; font-weight: 800; font-family: 'IBM Plex Mono', monospace; }

body.theme-light .rfm-cust-name, body.theme-light .rfm-cust-recency { color: #1c1917; }
body.theme-light .rfm-cust-meta, body.theme-light .rfm-sub-muted { color: #57534e; }
body.theme-light .rfm-order-count { color: #9a6b21; }
body.theme-light .rfm-total-spend { color: #2f5249; }
body:not(.theme-light) .rfm-cust-name, body:not(.theme-light) .rfm-cust-recency { color: #f5f2eb; }
body:not(.theme-light) .rfm-cust-meta, body:not(.theme-light) .rfm-sub-muted { color: #a8a093; }
body:not(.theme-light) .rfm-order-count { color: #dfb16b; }
body:not(.theme-light) .rfm-total-spend { color: #93c5b7; }

body.theme-light .btn-rfm-wa { background: #ebf1ef !important; border-color: #c2d4cd !important; color: #2f5249 !important; }
body.theme-light .btn-rfm-wa:hover { background: #2f5249 !important; border-color: #234039 !important; color: #ffffff !important; }
body:not(.theme-light) .btn-rfm-wa { background: rgba(47, 82, 73, 0.28) !important; border-color: rgba(107, 163, 147, 0.4) !important; color: #93c5b7 !important; }
body:not(.theme-light) .btn-rfm-wa:hover { background: #2f5249 !important; color: #ffffff !important; }

/* 13H. Inventory Forecasting Chart, Status Pills & Velocity Table */
.stock-guard-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.74rem;
}
body.theme-light .stock-guard-badge { background: #faf3e6; color: #9a5b18; border: 1px solid #e6d3ad; }
body:not(.theme-light) .stock-guard-badge { background: rgba(176, 125, 50, 0.18); color: #dfb16b; border: 1px solid rgba(223, 177, 107, 0.35); }

body.theme-light .stock-forecast-chart-title { color: #1c1917 !important; display: inline-flex; align-items: center; gap: 7px; }
body:not(.theme-light) .stock-forecast-chart-title { color: #f5f2eb !important; display: inline-flex; align-items: center; gap: 7px; }
body.theme-light .stock-forecast-legend { color: #57534e !important; }
body:not(.theme-light) .stock-forecast-legend { color: #a8a093 !important; }
.stock-legend-dot.dot-historic { background: #2f5249; }
.stock-legend-dot.dot-forecast { background: #b85328; border: 1px dashed #b85328; }
.stock-legend-dot.dot-band { background: rgba(184, 83, 40, 0.25); }
body:not(.theme-light) .stock-legend-dot.dot-historic { background: #6ba393; }
body:not(.theme-light) .stock-legend-dot.dot-forecast { background: #e48963; border-color: #e48963; }

.stock-prod-name { font-weight: 700; }
.stock-prod-meta { font-size: 0.72rem; margin-top: 2px; }
.stock-qty-cell { text-align: center; font-weight: 700; }
.stock-est-badge { font-size: 0.65rem; padding: 1px 5px; border-radius: 4px; margin-left: 4px; }
.stock-vel-num { font-weight: 700; font-family: 'IBM Plex Mono', monospace; }
.stock-vel-unit, .stock-runway-note { font-size: 0.71rem; display: block; }
.stock-runway-val { font-weight: 700; }
.stock-reorder-qty { font-weight: 700; }
.stock-reorder-cost { font-size: 0.72rem; }
.stock-reorder-ok { font-weight: 600; font-size: 0.76rem; display: inline-flex; align-items: center; gap: 4px; }

body.theme-light .stock-prod-name, body.theme-light .stock-qty-cell { color: #1c1917; }
body.theme-light .stock-prod-meta, body.theme-light .stock-vel-unit, body.theme-light .stock-runway-note, body.theme-light .stock-reorder-cost { color: #57534e; }
body.theme-light .stock-est-badge { background: #efeae0; color: #44403c; border: 1px solid #d6cfc2; }
body.theme-light .stock-vel-num, body.theme-light .stock-reorder-ok, body.theme-light .stock-runway-optimal { color: #2f5249; }
body.theme-light .stock-runway-critical, body.theme-light .stock-reorder-qty { color: #b85328; }
body.theme-light .stock-runway-warning { color: #9a5b18; }
body.theme-light .stock-runway-overstock { color: #57534e; }

body:not(.theme-light) .stock-prod-name, body:not(.theme-light) .stock-qty-cell { color: #f5f2eb; }
body:not(.theme-light) .stock-prod-meta, body:not(.theme-light) .stock-vel-unit, body:not(.theme-light) .stock-runway-note, body:not(.theme-light) .stock-reorder-cost { color: #a8a093; }
body:not(.theme-light) .stock-est-badge { background: #24201c; color: #d6cfc2; border: 1px solid #3a342e; }
body:not(.theme-light) .stock-vel-num, body:not(.theme-light) .stock-reorder-ok, body:not(.theme-light) .stock-runway-optimal { color: #83c5b2; }
body:not(.theme-light) .stock-runway-critical, body:not(.theme-light) .stock-reorder-qty { color: #e48963; }
body:not(.theme-light) .stock-runway-warning { color: #dfb16b; }
body:not(.theme-light) .stock-runway-overstock { color: #a8a093; }

body.theme-light .badge-stock-critical { background: #fae8e6 !important; color: #991b1b !important; border-color: #eabcb7 !important; }
body.theme-light .badge-stock-warning { background: #faf3e6 !important; color: #9a5b18 !important; border-color: #e6d3ad !important; }
body.theme-light .badge-stock-optimal { background: #ebf1ef !important; color: #234039 !important; border-color: #c2d4cd !important; }
body.theme-light .badge-stock-overstock { background: #f2efe9 !important; color: #44403c !important; border-color: #d6cfc2 !important; }
body:not(.theme-light) .badge-stock-critical { background: rgba(185, 28, 28, 0.24) !important; color: #fca5a5 !important; border-color: rgba(239, 68, 68, 0.4) !important; }
body:not(.theme-light) .badge-stock-warning { background: rgba(176, 125, 50, 0.22) !important; color: #dfb16b !important; border-color: rgba(223, 177, 107, 0.38) !important; }
body:not(.theme-light) .badge-stock-optimal { background: rgba(47, 82, 73, 0.34) !important; color: #93c5b7 !important; border-color: rgba(107, 163, 147, 0.4) !important; }
body:not(.theme-light) .badge-stock-overstock { background: rgba(120, 113, 108, 0.24) !important; color: #d6cfc2 !important; border-color: rgba(168, 160, 147, 0.34) !important; }

body.theme-light .btn-supplier-po { background: #faf3e6 !important; border-color: #e2cca2 !important; color: #9a421d !important; }
body.theme-light .btn-supplier-po:hover { background: #b85328 !important; border-color: #9a421d !important; color: #ffffff !important; }
body:not(.theme-light) .btn-supplier-po { background: rgba(184, 83, 40, 0.2) !important; border-color: rgba(212, 106, 62, 0.42) !important; color: #e48963 !important; }
body:not(.theme-light) .btn-supplier-po:hover { background: #b85328 !important; color: #ffffff !important; }

/* 13I. P&L, Cohort, CLV & Pro Mode Banners (Analisis Rinci) */
body.theme-light .pnl-title-badge { background: #ebf1ef !important; border-color: #c2d4cd !important; color: #2f5249 !important; }
body.theme-light .pnl-title-wrap h3,
body.theme-light .pnl-score-value,
body.theme-light .pnl-panel-header h4,
body.theme-light .pnl-cat-title,
body.theme-light .pnl-cat-metric-row strong,
body.theme-light .pnl-insight-item-head,
body.theme-light .cohort-title-wrap h3,
body.theme-light .cohort-summary-pill strong,
body.theme-light .clv-kpi strong,
body.theme-light .clv-seg-share,
body.theme-light .clv-panel h4,
body.theme-light .clv-loyalty-main strong { color: #1c1917 !important; }

body.theme-light .pnl-title-wrap p,
body.theme-light .pnl-opex-label-group label,
body.theme-light .pnl-opex-hint,
body.theme-light .pnl-score-label,
body.theme-light .pnl-score-sub,
body.theme-light .pnl-panel-sub,
body.theme-light .pnl-cat-metric-row,
body.theme-light .pnl-insight-item p,
body.theme-light .cohort-title-wrap p,
body.theme-light .cohort-summary-pill,
body.theme-light .clv-cac-box,
body.theme-light .clv-kpi span,
body.theme-light .clv-panel-sub,
body.theme-light .clv-seg-count,
body.theme-light .clv-seg-avg,
body.theme-light .clv-seg-action,
body.theme-light .clv-loyalty-main span { color: #57534e !important; }

body.theme-light .pnl-statement-table th,
body.theme-light .pnl-table th,
body.theme-light .clv-table th,
body.theme-light .cohort-matrix-table th {
    background: #f9f7f2 !important;
    color: #57534e !important;
    border-bottom-color: #e4dfd5 !important;
}
body.theme-light .pnl-statement-table td,
body.theme-light .pnl-table td,
body.theme-light .clv-table td,
body.theme-light .cohort-matrix-table td.cohort-name-cell,
body.theme-light .cohort-matrix-table td.cohort-size-cell {
    color: #1c1917 !important;
    border-bottom-color: #efeae0 !important;
}
body.theme-light .pnl-cat-profit,
body.theme-light .pnl-amt-plus,
body.theme-light .pnl-score-sub strong { color: #2f5249 !important; }
body.theme-light .pnl-cat-margin,
body.theme-light .clv-main-val { color: #9a5b18 !important; }
body.theme-light .pnl-amt-deduct { color: #b85328 !important; }
body.theme-light .pnl-amt-neutral { color: #1c1917 !important; }
body.theme-light .pnl-tab-btn.active { background: #2f5249 !important; color: #ffffff !important; border-color: #234039 !important; }
body.theme-light .pnl-score-net { border-left: 3px solid #2f5249 !important; }
body.theme-light .pnl-score-cogs { border-left: 3px solid #b85328 !important; }
body.theme-light .pnl-score-gross { border-left: 3px solid #234039 !important; }
body.theme-light .pnl-score-netprofit { border-left: 3px solid #b07d32 !important; }

body.theme-light .cohort-table-wrapper,
body.theme-light .cohort-summary-pill { background: #f9f7f2 !important; border-color: #e4dfd5 !important; }
body.theme-light .cohort-cell.rate-empty { background: #efeae0 !important; color: #78716c !important; }
body.theme-light .cohort-cell.rate-low { background: #e8e2d6 !important; color: #292524 !important; border-color: #d6cfc2 !important; }
body.theme-light .cohort-cell.rate-med { background: #d6e4df !important; color: #1c352f !important; border-color: #b4cec5 !important; }
body.theme-light .cohort-cell.rate-med-high { background: #8bb5a8 !important; color: #142823 !important; border-color: #6b9a8c !important; }
body.theme-light .cohort-cell.rate-high { background: #2f5249 !important; color: #ffffff !important; border-color: #234039 !important; }
body.theme-light .cohort-cell.rate-100 { background: #1c1917 !important; color: #f5f2eb !important; border-color: #44403c !important; }

.pro-unlock-banner {
    border-radius: 14px;
    padding: 24px;
    margin-top: 28px;
    text-align: center;
}
body.theme-light .pro-unlock-banner { background: #f9f7f2 !important; border: 1px dashed #c8bfa9 !important; box-shadow: none !important; }
body:not(.theme-light) .pro-unlock-banner { background: #1c1917 !important; border: 1px dashed #3d3731 !important; }
.pro-unlock-icon { color: #b85328; margin-bottom: 6px; }
.pro-unlock-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
body.theme-light .pro-unlock-title { color: #1c1917; }
body:not(.theme-light) .pro-unlock-title { color: #f5f2eb; }
.pro-unlock-desc { font-size: 0.82rem; max-width: 640px; margin: 0 auto 16px auto; line-height: 1.5; }
body.theme-light .pro-unlock-desc { color: #57534e; }
body:not(.theme-light) .pro-unlock-desc { color: #a8a093; }

/* ============================================================================
   14. BUNDLE PAIR VERTICAL LAYOUT (ANTI-OVERFLOW) & SIDEBAR BUKA/TUTUP
   ============================================================================ */

/* 14A. Redesigned Bundling Pair Box (Zero text overflow & no floating + overlap) */
.bundle-items-row {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 12px 14px !important;
}
.bundle-items-row .bundle-item-box {
    flex: none !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
}
.bundle-items-row .bundle-item-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
.bundle-items-row .bundle-item-name {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.84rem !important;
}
.bundle-items-row .bundle-item-meta {
    margin-top: 2px !important;
    font-size: 0.72rem !important;
}
.bundle-item-price-tag {
    flex-shrink: 0 !important;
    font-family: 'IBM Plex Mono', monospace !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
}
body.theme-light .bundle-item-price-tag {
    background: #ffffff;
    border: 1px solid #d6cfc2;
    color: #2f5249;
}
body:not(.theme-light) .bundle-item-price-tag {
    background: #211e1b;
    border: 1px solid #3a342e;
    color: #93c5b7;
}
.bundle-pair-connector {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.bundle-pair-connector::before,
.bundle-pair-connector::after {
    content: '';
    flex: 1;
    height: 1px;
}
body.theme-light .bundle-pair-connector::before,
body.theme-light .bundle-pair-connector::after {
    background: #dfd8c8;
}
body:not(.theme-light) .bundle-pair-connector::before,
body:not(.theme-light) .bundle-pair-connector::after {
    background: #322d28;
}
.bundle-pair-connector .bundle-plus-sign {
    width: auto !important;
    height: auto !important;
    border-radius: 999px !important;
    padding: 2px 10px !important;
    gap: 5px !important;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}
.bundle-price-top {
    flex-wrap: wrap !important;
    gap: 6px 10px !important;
}
.bundle-price-save-badge {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* 14B. Collapsible Sidebar (Desktop, Tablet, Mobile & Mode Kasir) */
.sidebar .sidebar-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
}
.sidebar-collapse-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #3a342e;
    background: #211e1b;
    color: #c4bdb0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.sidebar-collapse-btn:hover {
    background: #2f5249;
    border-color: #4d8575;
    color: #ffffff;
}

.sidebar-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px;
    height: 36px;
    border-radius: 9px !important;
    transition: all 0.2s ease;
}
body.theme-light .sidebar-toggle {
    background: #fdfcf9 !important;
    border: 1px solid #d6cfc2 !important;
    color: #292524 !important;
}
body.theme-light .sidebar-toggle:hover,
body.theme-light .sidebar-toggle.is-collapsed {
    background: #ebf1ef !important;
    border-color: #2f5249 !important;
    color: #2f5249 !important;
}
body:not(.theme-light) .sidebar-toggle {
    background: #211e1b !important;
    border: 1px solid #36312c !important;
    color: #e7e2d8 !important;
}
body:not(.theme-light) .sidebar-toggle:hover,
body:not(.theme-light) .sidebar-toggle.is-collapsed {
    background: #2f5249 !important;
    border-color: #4d8575 !important;
    color: #ffffff !important;
}

@media (min-width: 1025px) {
    .sidebar {
        transition: transform 0.25s ease;
    }
    .main-content {
        transition: margin-left 0.25s ease;
    }
    body.sidebar-collapsed .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }
    body.sidebar-collapsed .main-content {
        margin-left: 0 !important;
    }
}

/* ============================================================================
   15. OWNER PAYMENT CHANNELS (QRIS, TRANSFER BANK, E-WALLET) & POS PANEL
   ============================================================================ */

/* Settings Modal Card */
.settings-pay-card {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 1px solid #d6cfc2;
    border-left: 3px solid #2f5249;
    background: #f9f7f2;
}
body:not(.theme-light) .settings-pay-card {
    background: #161412;
    border-color: #322d28;
    border-left-color: #4d8575;
}
.settings-pay-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.settings-pay-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 800;
    font-size: 0.9rem;
}
body.theme-light .settings-pay-title { color: #1c1917; }
body:not(.theme-light) .settings-pay-title { color: #f5f2eb; }
.settings-pay-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
}
body.theme-light .settings-pay-pill { background: #ebf1ef; color: #2f5249; border: 1px solid #c2d4cd; }
body:not(.theme-light) .settings-pay-pill { background: rgba(47, 82, 73, 0.3); color: #93c5b7; border: 1px solid rgba(107, 163, 147, 0.35); }
.settings-pay-desc {
    font-size: 0.77rem;
    margin: 0 0 10px 0;
    line-height: 1.45;
}
body.theme-light .settings-pay-desc { color: #44403c; }
body:not(.theme-light) .settings-pay-desc { color: #c4bdb0; }

/* POS Non-Cash Panel (Inside Right Checkout Column) */
.pos-noncash-panel {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d6cfc2;
    background: #f9f7f2;
}
body:not(.theme-light) .pos-noncash-panel {
    background: #161412;
    border-color: #322d28;
}
.pos-noncash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.pos-noncash-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
body.theme-light .pos-noncash-title { color: #292524; }
body:not(.theme-light) .pos-noncash-title { color: #d6cfc2; }

.pos-noncash-manage-btn {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #c2d4cd;
    background: #ebf1ef;
    color: #2f5249;
}
.pos-noncash-manage-btn:hover { background: #2f5249; color: #ffffff; }
body:not(.theme-light) .pos-noncash-manage-btn {
    background: rgba(47, 82, 73, 0.25);
    border-color: rgba(107, 163, 147, 0.38);
    color: #93c5b7;
}
body:not(.theme-light) .pos-noncash-manage-btn:hover { background: #2f5249; color: #ffffff; }

.pos-noncash-amount-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.78rem;
}
body.theme-light .pos-noncash-amount-bar { background: #ffffff; border: 1px solid #e4dfd5; color: #57534e; }
body.theme-light .pos-noncash-amount-bar strong { color: #1c1917; font-size: 0.9rem; }
body:not(.theme-light) .pos-noncash-amount-bar { background: #211e1b; border: 1px solid #322d28; color: #a8a093; }
body:not(.theme-light) .pos-noncash-amount-bar strong { color: #f5f2eb; font-size: 0.9rem; }

.pos-qris-box {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pos-qris-img-wrap {
    width: 104px;
    height: 104px;
    background: #ffffff;
    border: 1px solid #d6cfc2;
    border-radius: 8px;
    padding: 5px;
    flex-shrink: 0;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pos-qris-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.pos-qris-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.pos-qris-meta strong { font-size: 0.84rem; }
body.theme-light .pos-qris-meta strong { color: #1c1917; }
body:not(.theme-light) .pos-qris-meta strong { color: #f5f2eb; }
.pos-qris-nmid { font-size: 0.71rem; font-family: 'IBM Plex Mono', monospace; color: #9a6b21; }
body:not(.theme-light) .pos-qris-nmid { color: #dfb16b; }
.pos-qris-tip { font-size: 0.71rem; line-height: 1.4; }
body.theme-light .pos-qris-tip { color: #57534e; }
body:not(.theme-light) .pos-qris-tip { color: #a8a093; }

.pos-noncash-empty {
    text-align: center;
    padding: 10px 8px;
}
.pos-noncash-empty p {
    font-size: 0.76rem;
    margin: 0 0 8px 0;
}
body.theme-light .pos-noncash-empty p { color: #57534e; }
body:not(.theme-light) .pos-noncash-empty p { color: #a8a093; }

.pos-channel-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.pos-channel-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.72rem;
    transition: all 0.15s ease;
}
body.theme-light .pos-channel-chip {
    background: #ffffff;
    border: 1px solid #d6cfc2;
    color: #292524;
}
body.theme-light .pos-channel-chip.active {
    background: #2f5249;
    border-color: #234039;
    color: #ffffff;
}
body:not(.theme-light) .pos-channel-chip {
    background: #211e1b;
    border: 1px solid #3a342e;
    color: #e7e2d8;
}
body:not(.theme-light) .pos-channel-chip.active {
    background: #2f5249;
    border-color: #4d8575;
    color: #ffffff;
}
.pos-channel-chip span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    opacity: 0.86;
}

.pos-channel-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
}
body.theme-light .pos-channel-detail { background: #ffffff; border: 1px solid #e4dfd5; }
body:not(.theme-light) .pos-channel-detail { background: #211e1b; border: 1px solid #322d28; }
.pos-channel-bank { font-size: 0.79rem; font-weight: 700; }
body.theme-light .pos-channel-bank { color: #1c1917; }
body:not(.theme-light) .pos-channel-bank { color: #f5f2eb; }
.pos-channel-holder { font-size: 0.72rem; }
body.theme-light .pos-channel-holder { color: #57534e; }
body:not(.theme-light) .pos-channel-holder { color: #a8a093; }

.pos-copy-acc-btn {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.71rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
body.theme-light .pos-copy-acc-btn { background: #f2efe9; border: 1px solid #d6cfc2; color: #292524; }
body.theme-light .pos-copy-acc-btn:hover { background: #2f5249; border-color: #234039; color: #ffffff; }
body:not(.theme-light) .pos-copy-acc-btn { background: #2b2723; border: 1px solid #3f3933; color: #e7e2d8; }
body:not(.theme-light) .pos-copy-acc-btn:hover { background: #2f5249; border-color: #4d8575; color: #ffffff; }

/* Modal Pengaturan Pembayaran Pemilik (#paymentConfigModal) */
.pay-cfg-modal-card {
    max-width: 620px !important;
    width: 94% !important;
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
}
.pay-cfg-header-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.theme-light .pay-cfg-header-icon { background: #ebf1ef; border: 1px solid #c2d4cd; color: #2f5249; }
body:not(.theme-light) .pay-cfg-header-icon { background: #24201c; border: 1px solid #3d3731; color: #93c5b7; }
.pay-cfg-modal-title { margin: 0; font-size: 1.02rem; font-weight: 800; }
.pay-cfg-modal-sub { margin: 2px 0 0 0; font-size: 0.74rem; }
body.theme-light .pay-cfg-modal-title { color: #1c1917; }
body.theme-light .pay-cfg-modal-sub { color: #57534e; }
body:not(.theme-light) .pay-cfg-modal-title { color: #f5f2eb; }
body:not(.theme-light) .pay-cfg-modal-sub { color: #a8a093; }

.pay-cfg-modal-body { padding: 18px 20px; overflow-y: auto; flex: 1; }
.pay-cfg-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.pay-cfg-tab {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}
body.theme-light .pay-cfg-tab { background: #f9f7f2; border: 1px solid #d6cfc2; color: #44403c; }
body.theme-light .pay-cfg-tab.active { background: #2f5249; border-color: #234039; color: #ffffff; }
body:not(.theme-light) .pay-cfg-tab { background: #211e1b; border: 1px solid #3a342e; color: #c4bdb0; }
body:not(.theme-light) .pay-cfg-tab.active { background: #2f5249; border-color: #4d8575; color: #ffffff; }

.pay-cfg-pane { display: none; }
.pay-cfg-pane.active { display: block; }

.pay-cfg-qris-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: start;
}
@media (max-width: 560px) {
    .pay-cfg-qris-grid { grid-template-columns: 1fr; }
}
.pay-cfg-qris-preview {
    width: 100%;
    height: 170px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px dashed #c8bfa9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin-bottom: 8px;
}
.pay-cfg-qris-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pay-cfg-qris-empty { font-size: 0.74rem; color: #78716c; text-align: center; }
.pay-cfg-qris-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-cfg-upload-lbl { cursor: pointer; margin: 0; }

.pay-cfg-form-col { display: flex; flex-direction: column; gap: 12px; }
.pay-cfg-field label { display: block; font-size: 0.78rem; font-weight: 700; margin-bottom: 5px; }
body.theme-light .pay-cfg-field label { color: #292524; }
body:not(.theme-light) .pay-cfg-field label { color: #d6cfc2; }
.pay-cfg-input {
    width: 100%;
    padding: 8px 11px;
    border-radius: 8px;
    font-size: 0.82rem;
    outline: none;
}
body.theme-light .pay-cfg-input { background: #fdfcf9 !important; border: 1px solid #d6cfc2 !important; color: #1c1917 !important; }
body:not(.theme-light) .pay-cfg-input { background: #141210 !important; border: 1px solid #3a342e !important; color: #f5f2eb !important; }
.pay-cfg-hint { font-size: 0.74rem; margin: 0; line-height: 1.45; }
body.theme-light .pay-cfg-hint { color: #57534e; }
body:not(.theme-light) .pay-cfg-hint { color: #a8a093; }

.pay-cfg-add-box {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
}
body.theme-light .pay-cfg-add-box { background: #f9f7f2; border: 1px solid #e4dfd5; }
body:not(.theme-light) .pay-cfg-add-box { background: #161412; border: 1px solid #322d28; }
.pay-cfg-add-title { font-size: 0.78rem; font-weight: 700; margin-bottom: 8px; }
body.theme-light .pay-cfg-add-title { color: #1c1917; }
body:not(.theme-light) .pay-cfg-add-title { color: #f5f2eb; }
.pay-cfg-add-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    align-items: center;
}

.pay-cfg-list { display: flex; flex-direction: column; gap: 8px; }
.pay-cfg-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 9px;
}
body.theme-light .pay-cfg-row { background: #ffffff; border: 1px solid #e4dfd5; }
body:not(.theme-light) .pay-cfg-row { background: #211e1b; border: 1px solid #322d28; }
.pay-cfg-row-title { font-size: 0.84rem; font-weight: 700; }
.pay-cfg-row-sub { font-size: 0.74rem; }
body.theme-light .pay-cfg-row-title { color: #1c1917; }
body.theme-light .pay-cfg-row-sub { color: #57534e; }
body:not(.theme-light) .pay-cfg-row-title { color: #f5f2eb; }
body:not(.theme-light) .pay-cfg-row-sub { color: #a8a093; }
.pay-cfg-empty-list {
    text-align: center;
    padding: 18px;
    font-size: 0.78rem;
    border-radius: 9px;
    border: 1px dashed #c8bfa9;
}
body.theme-light .pay-cfg-empty-list { color: #57534e; }
body:not(.theme-light) .pay-cfg-empty-list { color: #a8a093; border-color: #3a342e; }

.pay-cfg-modal-footer {
    padding: 14px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid #e4dfd5;
}
body:not(.theme-light) .pay-cfg-modal-footer { border-top-color: #2e2a26; }

/* QRIS Fullscreen Zoom Card */
.qris-zoom-card { max-width: 380px !important; width: 92% !important; }
.qris-zoom-body { padding: 18px 20px 22px; text-align: center; }
.qris-zoom-amount { font-size: 0.92rem; margin-bottom: 12px; }
body.theme-light .qris-zoom-amount { color: #44403c; }
body.theme-light .qris-zoom-amount strong { color: #2f5249; font-size: 1.1rem; }
body:not(.theme-light) .qris-zoom-amount { color: #c4bdb0; }
body:not(.theme-light) .qris-zoom-amount strong { color: #93c5b7; font-size: 1.1rem; }
.qris-zoom-frame {
    background: #ffffff;
    border: 1px solid #d6cfc2;
    border-radius: 12px;
    padding: 12px;
    display: inline-block;
    max-width: 100%;
}
.qris-zoom-frame img { max-width: 280px; max-height: 280px; width: 100%; object-fit: contain; display: block; }
.qris-zoom-nmid { margin-top: 10px; font-size: 0.75rem; font-family: 'IBM Plex Mono', monospace; color: #9a6b21; }

/* Cash Required Badge & Validation Highlight in POS */
.pos-cash-req-badge {
    display: inline-block;
    font-size: 0.64rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
    margin-left: 4px;
    vertical-align: middle;
}
body.theme-light .pos-cash-req-badge { background: #f9ece6; color: #9a421d; border: 1px solid #e8c4b4; }
body:not(.theme-light) .pos-cash-req-badge { background: rgba(184, 83, 40, 0.24); color: #e48963; border: 1px solid rgba(212, 106, 62, 0.42); }
.pos-cash-input.is-cash-invalid {
    border-color: #b85328 !important;
    box-shadow: 0 0 0 3px rgba(184, 83, 40, 0.22) !important;
}

/* ============================================================================
   16. NOTIFICATION DRAWER & GOAL WIDGET — KEMANG CRAFT (LIGHT & DARK)
   ============================================================================ */
body.theme-light .notification-drawer {
    background: #ffffff !important;
    border-left: 1px solid #e4dfd5 !important;
    box-shadow: -8px 0 30px rgba(28, 25, 23, 0.14) !important;
}
body:not(.theme-light) .notification-drawer {
    background: #1c1917 !important;
    border-left: 1px solid #322d28 !important;
    box-shadow: -10px 0 32px rgba(0, 0, 0, 0.55) !important;
}

body.theme-light .notification-drawer-header,
body.theme-light .drawer-footer-actions {
    background: #f9f7f2 !important;
    border-color: #e4dfd5 !important;
}
body:not(.theme-light) .notification-drawer-header,
body:not(.theme-light) .drawer-footer-actions {
    background: #141210 !important;
    border-color: #2e2a26 !important;
}

body.theme-light .drawer-title-group,
body.theme-light .drawer-title {
    color: #1c1917 !important;
}
body:not(.theme-light) .drawer-title-group,
body:not(.theme-light) .drawer-title {
    color: #f5f2eb !important;
}

body.theme-light .drawer-count-pill {
    background: #f9ece6 !important;
    border: 1px solid #e8c4b4 !important;
    color: #b85328 !important;
}
body:not(.theme-light) .drawer-count-pill {
    background: rgba(184, 83, 40, 0.22) !important;
    border: 1px solid rgba(212, 106, 62, 0.4) !important;
    color: #e48963 !important;
}

body.theme-light .drawer-close-btn { color: #57534e !important; }
body.theme-light .drawer-close-btn:hover { background: #efeae0 !important; color: #1c1917 !important; }
body:not(.theme-light) .drawer-close-btn { color: #a8a093 !important; }
body:not(.theme-light) .drawer-close-btn:hover { background: #2b2723 !important; color: #f5f2eb !important; }

body.theme-light .notification-filter-tabs {
    background: #f5f2eb !important;
    border-bottom: 1px solid #e4dfd5 !important;
}
body:not(.theme-light) .notification-filter-tabs {
    background: #161412 !important;
    border-bottom: 1px solid #2e2a26 !important;
}

body.theme-light .notification-tab-btn {
    background: #ffffff !important;
    border: 1px solid #d6cfc2 !important;
    color: #44403c !important;
}
body.theme-light .notification-tab-btn:hover {
    background: #f9f7f2 !important;
    border-color: #2f5249 !important;
    color: #1c1917 !important;
}
body.theme-light .notification-tab-btn.active {
    background: #2f5249 !important;
    border-color: #234039 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(47, 82, 73, 0.22) !important;
}

body:not(.theme-light) .notification-tab-btn {
    background: #211e1b !important;
    border: 1px solid #36312c !important;
    color: #c4bdb0 !important;
}
body:not(.theme-light) .notification-tab-btn:hover {
    background: #2b2723 !important;
    border-color: #6ba393 !important;
    color: #f5f2eb !important;
}
body:not(.theme-light) .notification-tab-btn.active {
    background: #2f5249 !important;
    border-color: #4d8575 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

body.theme-light .notification-card,
body.theme-light .notification-card.type-critical,
body.theme-light .notification-card.type-warning,
body.theme-light .notification-card.type-info,
body.theme-light .notification-card.type-success {
    background: #ffffff !important;
    border: 1px solid #e4dfd5 !important;
    box-shadow: 0 1px 4px rgba(28, 25, 23, 0.04) !important;
}
body.theme-light .notification-card.type-critical { border-left: 3px solid #991b1b !important; }
body.theme-light .notification-card.type-warning  { border-left: 3px solid #b85328 !important; }
body.theme-light .notification-card.type-info,
body.theme-light .notification-card.type-success  { border-left: 3px solid #2f5249 !important; }

body:not(.theme-light) .notification-card,
body:not(.theme-light) .notification-card.type-critical,
body:not(.theme-light) .notification-card.type-warning,
body:not(.theme-light) .notification-card.type-info,
body:not(.theme-light) .notification-card.type-success {
    background: #211e1b !important;
    border: 1px solid #322d28 !important;
}
body:not(.theme-light) .notification-card.type-critical { border-left: 3px solid #ef4444 !important; }
body:not(.theme-light) .notification-card.type-warning  { border-left: 3px solid #d46a3e !important; }
body:not(.theme-light) .notification-card.type-info,
body:not(.theme-light) .notification-card.type-success  { border-left: 3px solid #4d8575 !important; }

body.theme-light .notif-title,
body.theme-light .notif-icon {
    color: #1c1917 !important;
}
body:not(.theme-light) .notif-title,
body:not(.theme-light) .notif-icon {
    color: #f5f2eb !important;
}

body.theme-light .notif-message { color: #44403c !important; }
body:not(.theme-light) .notif-message { color: #c4bdb0 !important; }

body.theme-light .notif-action-box {
    background: #f9f7f2 !important;
    border: 1px dashed #d6cfc2 !important;
    color: #44403c !important;
}
body.theme-light .notif-action-box strong { color: #2f5249 !important; }
body.theme-light .notif-action-box .fi-icon { color: #2f5249 !important; }

body:not(.theme-light) .notif-action-box {
    background: #141210 !important;
    border: 1px dashed #3a342e !important;
    color: #c4bdb0 !important;
}
body:not(.theme-light) .notif-action-box strong { color: #93c5b7 !important; }
body:not(.theme-light) .notif-action-box .fi-icon { color: #93c5b7 !important; }

body.theme-light .notif-footer { color: #57534e !important; }
body:not(.theme-light) .notif-footer { color: #8c8478 !important; }

body.theme-light .pill-critical { background: #fae8e6 !important; color: #991b1b !important; border-color: #eabcb7 !important; }
body.theme-light .pill-warning  { background: #faf3e6 !important; color: #9a421d !important; border-color: #e6d3ad !important; }
body.theme-light .pill-info,
body.theme-light .pill-success  { background: #ebf1ef !important; color: #2f5249 !important; border-color: #c2d4cd !important; }

body:not(.theme-light) .pill-critical { background: rgba(185, 28, 28, 0.24) !important; color: #fca5a5 !important; border-color: rgba(239, 68, 68, 0.4) !important; }
body:not(.theme-light) .pill-warning  { background: rgba(184, 83, 40, 0.22) !important; color: #e48963 !important; border-color: rgba(212, 106, 62, 0.4) !important; }
body:not(.theme-light) .pill-info,
body:not(.theme-light) .pill-success  { background: rgba(47, 82, 73, 0.34) !important; color: #93c5b7 !important; border-color: rgba(107, 163, 147, 0.4) !important; }

/* Goal Tracking Titles in Light Mode (matching Kemang Craft) */
body.theme-light .goal-widget-title-group h3,
body.theme-light .goal-title { color: #1c1917 !important; }
body.theme-light .goal-widget-title-group p { color: #57534e !important; }

/* ============================================================================
   17. PERIOD COMPARISON & GOAL TRACKING VALUES — KEMANG CRAFT (LIGHT & DARK)
   ============================================================================ */

/* Goal Tracking Values & Progress Bar */
body.theme-light .goal-actual-val {
    color: #1c1917 !important;
    font-family: 'IBM Plex Mono', 'Plus Jakarta Sans', monospace;
}
body:not(.theme-light) .goal-actual-val {
    color: #f5f2eb !important;
    font-family: 'IBM Plex Mono', 'Plus Jakarta Sans', monospace;
}
body.theme-light .goal-target-val,
body.theme-light .goal-footer-meta {
    color: #57534e !important;
    border-top-color: #e4dfd5 !important;
}
body:not(.theme-light) .goal-target-val,
body:not(.theme-light) .goal-footer-meta {
    color: #a8a093 !important;
    border-top-color: #2e2a26 !important;
}
body.theme-light .goal-progress-wrap { background: #e8e2d6 !important; }
body:not(.theme-light) .goal-progress-wrap { background: #2e2a26 !important; }
body.theme-light .goal-progress-bar { background: #2f5249 !important; box-shadow: none !important; }
body.theme-light .goal-progress-bar.achieved { background: #234039 !important; box-shadow: none !important; }
body.theme-light .goal-progress-bar.behind { background: #b85328 !important; box-shadow: none !important; }
body:not(.theme-light) .goal-progress-bar { background: #4d8575 !important; box-shadow: none !important; }
body:not(.theme-light) .goal-progress-bar.achieved { background: #6ba393 !important; box-shadow: none !important; }
body:not(.theme-light) .goal-progress-bar.behind { background: #d46a3e !important; box-shadow: none !important; }

/* Period Comparison Widget */
body.theme-light .comparison-title {
    color: #1c1917 !important;
}
body:not(.theme-light) .comparison-title {
    color: #f5f2eb !important;
}
body.theme-light .comparison-dates-badge,
body.theme-light .cmp-label,
body.theme-light .cmp-prev {
    color: #57534e !important;
}
body:not(.theme-light) .comparison-dates-badge,
body:not(.theme-light) .cmp-label,
body:not(.theme-light) .cmp-prev {
    color: #a8a093 !important;
}
body.theme-light .comparison-metric-item,
body.theme-light .comparison-prod-col {
    background: #f9f7f2 !important;
    border-color: #e4dfd5 !important;
}
body:not(.theme-light) .comparison-metric-item,
body:not(.theme-light) .comparison-prod-col {
    background: #161412 !important;
    border-color: #2e2a26 !important;
}
body.theme-light .cmp-current {
    color: #1c1917 !important;
    font-family: 'IBM Plex Mono', 'Plus Jakarta Sans', monospace;
}
body:not(.theme-light) .cmp-current {
    color: #f5f2eb !important;
    font-family: 'IBM Plex Mono', 'Plus Jakarta Sans', monospace;
}
body.theme-light .cmp-delta.positive {
    background: #ebf1ef !important;
    color: #2f5249 !important;
    border: 1px solid #c2d4cd;
}
body.theme-light .cmp-delta.negative {
    background: #f9ece6 !important;
    color: #b85328 !important;
    border: 1px solid #e8c4b4;
}
body:not(.theme-light) .cmp-delta.positive {
    background: rgba(47, 82, 73, 0.34) !important;
    color: #93c5b7 !important;
    border: 1px solid rgba(107, 163, 147, 0.4);
}
body:not(.theme-light) .cmp-delta.negative {
    background: rgba(184, 83, 40, 0.24) !important;
    color: #e48963 !important;
    border: 1px solid rgba(212, 106, 62, 0.4);
}
body.theme-light .comparison-products-row,
body.theme-light .cmp-prod-item {
    border-color: #e4dfd5 !important;
}
body:not(.theme-light) .comparison-products-row,
body:not(.theme-light) .cmp-prod-item {
    border-color: #2e2a26 !important;
}
body.theme-light .cmp-prod-col-title,
body.theme-light .cmp-prod-name {
    color: #1c1917 !important;
}
body:not(.theme-light) .cmp-prod-col-title,
body:not(.theme-light) .cmp-prod-name {
    color: #f5f2eb !important;
}
body.theme-light .cmp-prod-rev {
    color: #2f5249 !important;
    font-family: 'IBM Plex Mono', monospace;
}
body:not(.theme-light) .cmp-prod-rev {
    color: #83c5b2 !important;
    font-family: 'IBM Plex Mono', monospace;
}












