/* Shared client surfaces. Keep brand colours and illustrations unchanged. */
html[data-bs-theme="dark"] {
  --bs-body-bg:#101722;
  --bs-body-bg-rgb:16,23,34;
  --bs-body-color:#dce4ef;
  --bs-body-color-rgb:220,228,239;
  --bs-emphasis-color:#f1f5f9;
  --bs-secondary-color:#9baac0;
  --bs-secondary-bg:#202c3d;
  --bs-tertiary-bg:#182232;
  --bs-border-color:#304056;
  --default-text-color:#dce4ef;
  --default-background:#182232;
  --default-body-bg-color:#101722;
}
[data-bs-theme="dark"] body {background-color:var(--bs-body-bg);color:var(--bs-body-color)}
[data-bs-theme="dark"] :is(.topbar,.startbar,.card,.modal-content,.dropdown-menu,.offcanvas,.swal2-popup) {
  background-color:#182232;color:var(--bs-body-color);border-color:var(--bs-border-color);
  --bs-card-title-color:#f1f5f9;--bs-card-subtitle-color:#9baac0;
  --bs-card-bg:#182232;--bs-dropdown-bg:#182232;--bs-dropdown-color:#dce4ef;
  --bs-modal-bg:#182232;
}
[data-bs-theme="dark"] :is(.topbar,.startbar,.card) {box-shadow:0 2px 12px rgba(0,0,0,.18)}
[data-bs-theme="dark"] .startbar .startbar-menu .navbar-nav .nav-item .nav-link {color:#cad5e5}
[data-bs-theme="dark"] .startbar .startbar-menu .navbar-nav .nav-item .nav-link:is(.active,:hover) {color:#93b4ff}
[data-bs-theme="dark"] .startbar .menu-label {color:#9baac0}
[data-bs-theme="dark"] :is(.card-title,.modal-title,.swal2-title,.swal2-html-container) {color:var(--bs-emphasis-color)}
[data-bs-theme="dark"] :is(.bg-white,.bg-light) {background-color:#202c3d!important}
[data-bs-theme="dark"] :is(.text-dark,.text-black) {color:#e2e8f0!important}
[data-bs-theme="dark"] :is(.form-control,.form-select,.input-group-text,.select2-container--default .select2-selection--single,.select2-container--default .select2-selection--multiple,.select2-dropdown) {background-color:#121c2a;color:#dce4ef;border-color:#34445b}
[data-bs-theme="dark"] :is(.form-control,.form-select):disabled {background-color:#253144;color:#9baac0;border-color:#34445b}
[data-bs-theme="dark"] .form-control::placeholder {color:#8999ae;opacity:1}
[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {color:#dce4ef}
[data-bs-theme="dark"] .table {--bs-table-color:#dce4ef;--bs-table-bg:transparent;--bs-table-border-color:#304056;--bs-table-striped-bg:rgba(148,163,184,.06);--bs-table-striped-color:#dce4ef;--bs-table-hover-bg:rgba(148,163,184,.1);--bs-table-hover-color:#f1f5f9}
[data-bs-theme="dark"] .table-responsive .action-bar {background:rgba(24,34,50,.96)}
[data-bs-theme="dark"] .footer {background-color:#101722;color:#9baac0}
[data-bs-theme="dark"] .sv-cross .sv-note {background:#182232;border-color:#304056;border-left-color:#60a5fa;color:#cbd5e1}
[data-bs-theme="dark"] .sv-cross .sv-note b {color:#f1f5f9}
[data-bs-theme="dark"] .sv-cross .sv-note.canh-bao {background:#302719;border-left-color:#fbbf24}
[data-bs-theme="dark"] .sv-cross .sv-note.tot {background:#142d27;border-left-color:#34d399}
[data-bs-theme="dark"] .sv-cross .sv-note p.canh,[data-bs-theme="dark"] .sv-cross .sv-note p.canh b {color:#fcd34d}
[data-bs-theme="dark"] #topSearchResults .svc-search-item:hover {background:#25344b}
/* Marketing home hero has its own light palette, separate from Bootstrap cards. */
[data-bs-theme="dark"] .mk.home-hm {color:#e2e8f0;border-color:#304056;background:radial-gradient(560px 300px at 100% 0%,rgba(49,103,243,.16),transparent 62%),linear-gradient(135deg,#182232,#17273e)}
[data-bs-theme="dark"] :is(.home-hm-h,.home-hm-me b,.home-hm-kv b,.home-hm-kpi b) {color:#f1f5f9}
[data-bs-theme="dark"] :is(.home-hm-p,.home-hm-pts,.home-hm-bal small,.home-hm-kv small,.home-hm-kpi small) {color:#a9b9ce}
[data-bs-theme="dark"] :is(.home-hm-acc,.home-hm-win) {background:#1b293d;color:#e2e8f0;border-color:#34445b;box-shadow:0 20px 40px -24px rgba(0,0,0,.6)}
[data-bs-theme="dark"] .home-hm-bal {background:linear-gradient(135deg,#263454,#332c48)}
[data-bs-theme="dark"] .home-hm-bal strong {color:#b8b3ff}
[data-bs-theme="dark"] :is(.home-hm-kv div,.home-hm-kpi,.home-hm-chart,.home-hm-pts,.home-hm-pts span+span) {border-color:#34445b}
[data-bs-theme="dark"] .home-hm-chart {background:linear-gradient(180deg,#152034,#1b293d)}
[data-bs-theme="dark"] .home-hm .mk-btn.ghost,[data-bs-theme="dark"] .home-hm-acts .sec2 {background:#25344b;color:#dce4ef;border-color:#40536d}
[data-bs-theme="dark"] .home-hm .mk-btn.ghost:hover,[data-bs-theme="dark"] .home-hm-acts .sec2:hover {background:#30425e;color:#fff}
[data-bs-theme="dark"] .home-hm .mk-eyebrow,[data-bs-theme="dark"] .home-hm-pts i {background:#25344b;color:#93b4ff;border-color:#40536d}
@media (max-width:575.98px){
  #topbar-custom .nav-link.nav-icon{width:30px;margin-left:2px;margin-right:2px}
}

/* Recharge: explicit colours for headers, amount selection and invoice details. */
[data-bs-theme="dark"] .table > thead {
  background:#25344b;--bs-table-bg:#25344b;--bs-table-color:#e2e8f0;
}
[data-bs-theme="dark"] .table > thead > tr > th {background-color:#25344b;color:#e2e8f0;border-color:#40536d}
[data-bs-theme="dark"] #invoice-form .quick-amount {background-color:#25344b!important;color:#cbd5e1!important;border:1px solid #40536d!important}
[data-bs-theme="dark"] #invoice-form .quick-amount:is(:hover,:focus-visible,.active) {background-color:#263e68!important;color:#bfdbfe!important;border-color:#6098ef!important}
[data-bs-theme="dark"] .bank-select-item:hover {background-color:#25344b}
[data-bs-theme="dark"] .einvoice-summary-card {background:linear-gradient(135deg,#15332c,#193b32);border-color:#2e6552;color:#d1fae5}
[data-bs-theme="dark"] .einvoice-summary-card .text-success {color:#6ee7b7!important}
[data-bs-theme="dark"] .einvoice-form-card {background:linear-gradient(135deg,#1b293d,#20354b);border-color:#40536d}
[data-bs-theme="dark"] .tax-preview-card {background:linear-gradient(135deg,#1b293d,#20354b)}
[data-bs-theme="dark"] :is(.tax-label,.tax-value,.tax-value-total,.tax-total .tax-label) {color:#dce4ef}

.startbar .social-platform-icon{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;flex-shrink:0;font-size:20px;color:inherit}
