/* KARKOUR-NET theme switcher */
html.theme-light, body.theme-light{background:#f5f7fb!important;color:#172033!important}
html.theme-dark, body.theme-dark{background:#080d16!important;color:#edf3ff!important}
body.theme-dark .sidebar{background:#0b111c!important;border-color:#22304a!important}
body.theme-dark .brand b,body.theme-dark .topbar h1,body.theme-dark .section-head h2,body.theme-dark .menu-title,body.theme-dark .card .value,body.theme-dark .modal h2{color:#edf3ff!important}
body.theme-dark .brand,body.theme-dark .profile,body.theme-dark .section,body.theme-dark .panel,body.theme-dark .panel-card,body.theme-dark .notification-panel,body.theme-dark .card,body.theme-dark .modal,body.theme-dark .auth-card,body.theme-dark .settings-card,body.theme-dark .table-card,body.theme-dark .menu-card,body.theme-dark .notify-box,body.theme-dark .v2-card{background:#101827!important;border-color:#22304a!important;color:#edf3ff!important;box-shadow:0 10px 35px rgba(0,0,0,.22)!important}
body.theme-dark input,body.theme-dark select,body.theme-dark textarea,body.theme-dark .search,body.theme-dark .filter{background:#0b1220!important;color:#edf3ff!important;border-color:#26364f!important}
body.theme-dark table{background:#101827!important;border-color:#22304a!important}body.theme-dark th{background:#131d2f!important;color:#8b9ab2!important}body.theme-dark td{color:#dce6f5!important;border-color:#1c2940!important}
body.theme-dark .topbar,body.theme-dark .standalone-topbar{background:rgba(8,13,22,.94)!important;border-color:#22304a!important}
body.theme-dark .topbar .iconbtn,body.theme-dark .topbar .primary,body.theme-dark .topbar .account-pill,body.theme-dark .topbar a{background:#182238!important;color:#dce6f5!important;border-color:#2a3a56!important}
body.theme-dark .nav button{color:#aebbd0!important}body.theme-dark .nav button:hover,body.theme-dark .nav button.active{background:#152238!important;color:#42a4ff!important}
body.theme-dark .nav-group-title{color:#edf3ff!important;border-color:#22304a!important}
body.theme-dark .menu-grid a{background:#121d2e!important;color:#edf3ff!important;border-color:#26364f!important}
body.theme-dark .menu-sub,body.theme-dark .muted,body.theme-dark label,body.theme-dark .card .label,body.theme-dark .card .sub{color:#8a98ad!important}
body.theme-dark .sm{background:#1a263b!important;color:#b9c7dd!important;border-color:#26364f!important}
body.theme-dark .cancel{background:#1b273b!important;color:#bac7db!important;border-color:#2a3a56!important}
body.theme-dark .v2-info{background:#0b1220!important;border-color:#26364f!important}
body.theme-dark .auth-gate{background:rgba(8,13,22,.97)!important}
body.theme-dark .theme-toggle{background:#182238!important;color:#ffd86b!important;border-color:#2a3a56!important}
body.theme-light .theme-toggle{background:#fff!important;color:#374151!important;border-color:#e5e9f0!important}
.theme-toggle{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:9px 13px;border-radius:10px;border:1px solid #e5e9f0;background:#fff;color:#374151;font:800 13px Tahoma,Arial,sans-serif;cursor:pointer;box-shadow:none!important}
.menu-theme-toggle{width:100%;margin-top:10px}

/* Dark mode: make customer names and identity text highly readable */
body.theme-dark .v2-name,
body.theme-dark .bulk-name-cell,
body.theme-dark .bulk-name-cell > div,
body.theme-dark .customer-name,
body.theme-dark .customer-name-cell,
body.theme-dark .debt-customer-name,
body.theme-dark .v2-head b,
body.theme-dark .v2-head strong {
  color:#ffffff!important;
  text-shadow:0 1px 2px rgba(0,0,0,.35)!important;
}
body.theme-dark .v2-meta,
body.theme-dark .v2-info span,
body.theme-dark .v2-info b,
body.theme-dark .bulk-customer-count,
body.theme-dark .bulk-customer-status {
  color:#c7d4e8!important;
}
body.theme-dark .v2-card { color:#f5f9ff!important; }
