/* =====================================================================
   CYBERDESK — "Carbon & Marigold" premium dark theme
   Loaded after the inline stylesheet in index.html; overrides it.
   Carbon surfaces (toner / ink), warm paper-white text, one marigold
   accent for action, teal for money in, coral for dues (udhar).
   ===================================================================== */

:root {
  /* surfaces */
  --bg: #0d0f13;
  --bg-2: #101217;
  --surface: #14171d;
  --surface-2: #1a1e26;
  --surface-3: #212631;
  --line: rgba(236, 232, 222, 0.07);
  --line-strong: rgba(236, 232, 222, 0.13);

  /* text */
  --text: #ece8de;
  --text-2: #cfcabd;
  --muted: #9a968c;
  --dim: #6e6c66;

  /* accent: marigold (genda) */
  --accent: #e9a23b;
  --accent-soft: #f3c27a;
  --accent-deep: #b97a1f;
  --accent-ink: #1b1306;
  --accent-tint: rgba(233, 162, 59, 0.12);
  --accent-line: rgba(233, 162, 59, 0.35);

  /* semantic */
  --pos: #43c59e;
  --pos-deep: #2b8f71;
  --pos-tint: rgba(67, 197, 158, 0.12);
  --pos-line: rgba(67, 197, 158, 0.32);
  --neg: #f0776d;
  --neg-soft: #f6a39b;
  --neg-deep: #c4544b;
  --neg-tint: rgba(240, 119, 109, 0.12);
  --neg-line: rgba(240, 119, 109, 0.32);
  --warn: #e9a23b;
  --warn-soft: #f3c27a;
  --warn-deep: #b97a1f;
  --warn-tint: rgba(233, 162, 59, 0.12);
  --steel: #9db4d6;
  --steel-tint: rgba(157, 180, 214, 0.12);

  /* radii / shadow */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px -12px rgba(0, 0, 0, 0.7);
  --focus: 0 0 0 3px rgba(233, 162, 59, 0.28);

  /* type */
  --sans: 'Manrope', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Manrope', 'Noto Sans Devanagari', system-ui, sans-serif;

  /* map legacy tokens used throughout the old markup */
  --panel: var(--surface);
  --panel-2: var(--surface-2);
  --panel-3: var(--surface-3);
  --line-light: var(--line-strong);
  --text-muted: var(--muted);
  --muted-dark: var(--dim);
  --primary: var(--accent);
  --primary-dark: var(--accent-deep);
  --primary-light: var(--accent-tint);
  --cyan: var(--steel);
  --cyan-dim: var(--steel-tint);
  --cyan-bright: var(--accent-soft);
  --indigo: var(--steel);
  --indigo-bg: var(--steel-tint);
  --amber: var(--warn);
  --amber-bg: var(--warn-tint);
  --red: var(--neg);
  --red-bg: var(--neg-tint);
  --green: var(--pos);
  --green-bg: var(--pos-tint);
  --gradient-primary: linear-gradient(180deg, #f0b052 0%, var(--accent) 100%);
  --gradient-saffron: linear-gradient(180deg, #f0b052 0%, var(--accent) 100%);
  --gradient-gold: linear-gradient(180deg, #f0b052 0%, var(--accent) 100%);
  --gradient-card: var(--surface);
  --shadow-sm: var(--shadow-1);
  --shadow-md: var(--shadow-2);
  --shadow-glass: var(--shadow-2);
  --shadow-premium: var(--shadow-1);
  --shadow-elevated: var(--shadow-2);
  --shadow-float: 0 24px 60px -16px rgba(0, 0, 0, 0.85), 0 0 0 1px var(--line-strong);
  --shadow-glow: 0 0 0 1px var(--accent-line);
  --fintech-primary: var(--accent);
  --fintech-primary-dark: var(--accent-deep);
  --fintech-primary-light: var(--accent-tint);
  --fintech-emerald: var(--pos);
  --fintech-emerald-light: var(--pos-tint);
  --fintech-amber: var(--warn);
  --fintech-amber-light: var(--warn-tint);
  --fintech-rose: var(--neg);
  --fintech-rose-light: var(--neg-tint);
  --fintech-slate-900: var(--bg);
  --fintech-slate-800: var(--surface);
  --fintech-slate-600: var(--dim);
  --fintech-slate-400: var(--muted);
  --fintech-slate-200: var(--surface-2);
  --fintech-slate-50: var(--bg-2);
  --ink-950: var(--bg); --ink-900: var(--surface); --ink-850: var(--surface-2); --ink-800: var(--surface-2);
  --ink-700: var(--surface-3); --ink-600: var(--line-strong); --ink-500: var(--line-strong);
  --ink-400: var(--dim); --ink-300: var(--muted); --ink-200: var(--text-2); --ink-100: var(--text-2); --ink-50: var(--text);
  --cyber-400: var(--accent-soft); --cyber-500: var(--accent); --cyber-600: var(--accent); --cyber-700: var(--accent-deep);
  --gold-300: var(--warn-soft); --gold-400: var(--warn); --gold-500: var(--warn); --gold-600: var(--warn-deep);
}

/* ---------- base ---------- */
html, body { background: var(--bg) !important; }
body {
  background-image: none !important;
  color: var(--text);
  font-family: var(--sans) !important;
  font-feature-settings: 'tnum' 1, 'cv11' 1;
  letter-spacing: -0.005em;
}
::selection { background: rgba(233, 162, 59, 0.3); color: var(--text); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; border: 0; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2c323f; }
*:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* decorative clutter from the old theme */
.page-loader-overlay, .ticker-wrap, .float-icons, .grid-bg { display: none !important; }
#top-progress-bar { background: var(--accent) !important; box-shadow: none !important; height: 2px !important; }

/* ---------- typography ---------- */
h1 {
  font-size: 26px !important; font-weight: 700 !important; letter-spacing: -0.02em !important;
  color: var(--text) !important; line-height: 1.2;
}
h2 { color: var(--text); }
.panel h2, .panel > h3 {
  font-size: 14px !important; font-weight: 700 !important; letter-spacing: -0.005em !important;
  text-transform: none !important; color: var(--text) !important; margin-bottom: 14px !important;
}
.sub { color: var(--muted) !important; font-size: 13.5px !important; }
label {
  text-transform: none !important; letter-spacing: 0 !important; font-size: 12px !important;
  font-weight: 600 !important; color: var(--muted) !important;
}
.num, .tabular-nums { font-family: var(--sans) !important; font-variant-numeric: tabular-nums; }

/* ---------- app shell: topbar ---------- */
.topbar {
  background: var(--bg) !important; backdrop-filter: none !important;
  border-bottom: 1px solid var(--line) !important; box-shadow: none !important;
  padding: 0 20px !important; min-height: 60px !important; gap: 14px !important;
}
.brand .dot { display: none !important; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
}
.brand-mark svg { width: 17px; height: 17px; }
.brand-text {
  font-size: 15px !important; font-weight: 800 !important; letter-spacing: -0.01em !important; color: var(--text) !important;
  display: flex; flex-direction: column; line-height: 1.1;
}
.brand-text span { color: var(--text) !important; }
.brand-text small { font-size: 11px; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.app-breadcrumb { display: none !important; }
.nav-primary, .subbar, .role-badge, #ai-guard-chip { display: none !important; }
.sidebar-toggle-btn {
  width: 34px !important; height: 34px !important; border-radius: var(--r-sm) !important;
  background: transparent !important; border: 1px solid var(--line) !important; color: var(--muted) !important; font-size: 15px !important;
}
.sidebar-toggle-btn:hover { background: var(--surface-2) !important; color: var(--text) !important; }

.tb-title { display: flex; flex-direction: column; min-width: 0; padding-left: 4px; }
.tb-title strong { font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-title span { font-size: 12px; color: var(--dim); }
.tb-search { position: relative; display: flex; align-items: center; flex: 1; max-width: 420px; margin-left: auto; }
.tb-search svg { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--dim); pointer-events: none; }
.tb-search input {
  height: 36px; padding: 0 12px 0 34px !important; font-size: 13px !important;
  background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: 10px !important;
}
.tb-search kbd {
  position: absolute; right: 8px; font: 600 11px var(--sans); color: var(--dim);
  border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 6px; background: var(--surface-2);
}
.tb-actions { display: flex; align-items: center; gap: 8px; position: relative; }
.tb-icon-btn {
  all: unset; cursor: pointer; box-sizing: border-box; height: 36px; min-width: 36px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font: 600 13px var(--sans);
  transition: background .15s, color .15s, border-color .15s;
}
.tb-icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); }
.tb-icon-btn svg { width: 16px; height: 16px; }
.tb-primary {
  all: unset; cursor: pointer; box-sizing: border-box; height: 36px; padding: 0 14px;
  display: inline-flex; align-items: center; gap: 7px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font: 700 13px var(--sans); white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 6px 18px -8px rgba(233, 162, 59, 0.7);
  transition: background .15s, transform .15s;
}
.tb-primary:hover { background: #f0b052; }
.tb-primary:active { transform: translateY(1px); }
.tb-primary svg { width: 15px; height: 15px; }
.control-hub-btn {
  height: 36px !important; box-sizing: border-box !important; padding: 0 12px !important;
  background: transparent !important; border: 1px solid var(--line) !important; border-radius: 10px !important;
  color: var(--text-2) !important; font: 600 13px var(--sans) !important; box-shadow: none !important;
}
.control-hub-btn:hover { background: var(--surface-2) !important; transform: none !important; }
#topbar-pv-btn { display: none !important; }

#apple-control-center {
  background: var(--surface) !important; border: 1px solid var(--line-strong) !important;
  border-radius: var(--r-lg) !important; box-shadow: var(--shadow-float) !important; top: calc(100% + 10px) !important; right: 0 !important;
}
.hub-item {
  background: var(--surface-2) !important; border: 1px solid var(--line) !important; color: var(--text-2) !important;
  border-radius: var(--r-md) !important; font-weight: 600 !important;
}
.hub-item:hover { border-color: var(--accent-line) !important; transform: none !important; color: var(--text) !important; }

/* ---------- app shell: sidebar ---------- */
.app-sidebar {
  width: 236px !important; background: var(--bg) !important; border-right: 1px solid var(--line) !important;
}
.app-sidebar.collapsed { width: 64px !important; }
.sidebar-scroll { padding: 14px 10px !important; }
.nav-group { margin-bottom: 16px !important; }
.nav-group-title {
  font-size: 11.5px !important; font-weight: 600 !important; letter-spacing: 0 !important;
  text-transform: none !important; color: var(--dim) !important; padding: 4px 12px 6px !important;
}
.sb-link {
  padding: 8px 12px !important; border-radius: 9px !important; color: var(--muted) !important;
  font-size: 13.5px !important; font-weight: 500 !important; border: 0 !important; gap: 11px !important; margin-bottom: 1px !important;
}
.sb-link:hover { background: var(--surface) !important; color: var(--text) !important; }
.sb-link.active {
  background: var(--surface-2) !important; color: var(--text) !important; font-weight: 600 !important;
  box-shadow: inset 0 0 0 1px var(--line);
}
.sb-link.active::before {
  left: -10px !important; width: 3px !important; height: 18px !important; border-radius: 0 3px 3px 0 !important;
  background: var(--accent) !important; box-shadow: none !important;
}
.sb-icon { width: 18px !important; height: 18px; color: var(--dim) !important; display: grid; place-items: center; font-size: 14px !important; }
.sb-icon svg { width: 17px; height: 17px; }
.sb-link:hover .sb-icon { color: var(--text-2) !important; }
.sb-link.active .sb-icon { color: var(--accent) !important; }
.sb-count {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; box-sizing: border-box;
  background: var(--accent); color: var(--accent-ink); font: 700 11px/20px var(--sans); text-align: center;
}
.app-sidebar.collapsed .sb-count { display: none; }
.sidebar-footer { background: var(--bg) !important; border-top: 1px solid var(--line) !important; padding: 12px 14px !important; }
.sb-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--surface-3); color: var(--text); font: 700 12px var(--sans);
}
.sb-status { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--dim); }
.sb-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--pos); display: inline-block; }

/* ---------- main canvas ---------- */
main { padding: 28px 32px 48px !important; background: var(--bg); }
@media (max-width: 760px) { main { padding: 18px 14px 96px !important; } }
.page > *:first-child { margin-top: 0; }

/* page header injected by theme.js on every page */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }

/* ---------- surfaces ---------- */
.panel, .card, .service-card, .pv-dark-shell, .pos-catalog-panel, .pos-cart-panel, .cart, .glass {
  background: var(--surface) !important; border: 1px solid var(--line) !important;
  border-radius: var(--r-lg) !important; box-shadow: var(--shadow-1) !important;
}
.panel { padding: 20px !important; }
.card { border-left-width: 1px !important; border-top-width: 1px !important; }
.card:hover, .service-card:hover { transform: none !important; border-color: var(--line-strong) !important; box-shadow: var(--shadow-1) !important; }
.card .label {
  text-transform: none !important; letter-spacing: 0 !important; font-size: 12.5px !important;
  font-weight: 500 !important; color: var(--muted) !important;
}
.card .value {
  font-family: var(--sans) !important; font-size: 26px !important; font-weight: 700 !important;
  letter-spacing: -0.02em; color: var(--text) !important; font-variant-numeric: tabular-nums;
}
[style*="border-top:3px solid"], [style*="border-top: 3px solid"],
[style*="border-left:4px solid"], [style*="border-left: 4px solid"] { border-top-color: var(--line) !important; border-left-color: var(--line) !important; }

/* inline dark boxes from the old theme get the new surfaces */
[style*="background:var(--surface)"], [style*="background: var(--surface)"] { border-color: var(--line) !important; }
[data-public-item] { background: var(--surface-2) !important; }
.hero-banner { display: none !important; }

/* ---------- tables ---------- */
table { font-size: 13.5px !important; }
th {
  background: transparent !important; color: var(--dim) !important; font-size: 12px !important;
  font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important;
  border-bottom: 1px solid var(--line-strong) !important; padding: 10px 14px !important;
}
td { border-bottom: 1px solid var(--line) !important; color: var(--text-2) !important; padding: 12px 14px !important; font-variant-numeric: tabular-nums; }
tr:hover td { background: rgba(236, 232, 222, 0.025) !important; }

/* ---------- forms ---------- */
input, select, textarea {
  background: var(--bg-2) !important; border: 1px solid var(--line-strong) !important; color: var(--text) !important;
  border-radius: 10px !important; font-family: var(--sans) !important;
}
input::placeholder, textarea::placeholder { color: var(--dim) !important; }
input:focus, select:focus, textarea:focus { border-color: var(--accent) !important; box-shadow: var(--focus) !important; background: var(--bg-2) !important; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: auto; }
select option { background: var(--surface); color: var(--text); }

/* ---------- buttons ---------- */
body button.btn, body .btn {
  background: var(--accent) !important; color: var(--accent-ink) !important;
  border: 1px solid transparent !important; font-weight: 700 !important; border-radius: 10px !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset !important; filter: none !important; font-family: var(--sans) !important;
}
body button.btn:hover, body .btn:hover { background: #f0b052 !important; transform: none !important; box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 8px 20px -10px rgba(233,162,59,.8) !important; }
body button.btn:active, body .btn:active { transform: translateY(1px) !important; }
body .btn.secondary, body button.btn.secondary {
  background: var(--surface-2) !important; color: var(--text) !important; border: 1px solid var(--line-strong) !important; box-shadow: none !important;
}
body .btn.secondary:hover { background: var(--surface-3) !important; border-color: var(--line-strong) !important; box-shadow: none !important; }
body .btn.danger, body button.btn.danger {
  background: var(--neg-tint) !important; color: var(--neg-soft) !important; border: 1px solid var(--neg-line) !important; box-shadow: none !important;
}
body .btn.danger:hover { background: var(--neg) !important; color: #1d0907 !important; }
body .btn.success, body button.btn.success { background: var(--pos) !important; color: #06231a !important; }
body .btn.success:hover { background: #52d3ac !important; }
.iconbtn { background: var(--surface-2) !important; border: 1px solid var(--line) !important; color: var(--muted) !important; }
.iconbtn:hover { color: var(--text) !important; border-color: var(--line-strong) !important; }

/* ---------- badges / chips ---------- */
.badge {
  border-radius: 999px !important; font-weight: 600 !important; font-size: 11.5px !important; padding: 3px 10px !important;
  text-transform: none !important; letter-spacing: 0 !important;
}
.badge.paid, .badge.accepted, .badge.approved, .badge.done, .badge.completed, .badge-pay-paid, .badge-work-completed {
  background: var(--pos-tint) !important; color: var(--pos) !important; border: 1px solid var(--pos-line) !important;
}
.badge.pending, .badge-work-pending, .badge-pay-partial, .badge.partial {
  background: var(--warn-tint) !important; color: var(--warn-soft) !important; border: 1px solid var(--accent-line) !important;
}
.badge.rejected, .badge.failed, .badge.voided, .badge-pay-overdue, .badge-pay-not-paid, .badge-work-cancelled {
  background: var(--neg-tint) !important; color: var(--neg-soft) !important; border: 1px solid var(--neg-line) !important;
}
.badge.service, .badge.product, .badge-work-in-progress, .badge-pay-advance, .badge-work-archived {
  background: var(--steel-tint) !important; color: var(--steel) !important; border: 1px solid rgba(157, 180, 214, 0.28) !important;
}
.live-clock, .bill-no-tag {
  font-family: var(--sans) !important; background: var(--surface-2) !important; color: var(--text-2) !important;
  border: 1px solid var(--line-strong) !important; border-radius: 999px !important; font-weight: 600 !important;
}

/* ---------- modals / toasts ---------- */
.modal-bg { background: rgba(6, 7, 9, 0.72) !important; backdrop-filter: blur(6px); }
.modal, .pv-modal-content {
  background: var(--surface) !important; border: 1px solid var(--line-strong) !important;
  border-radius: 18px !important; box-shadow: var(--shadow-float) !important;
}
.modal h3 { font-size: 17px !important; font-weight: 700 !important; color: var(--text) !important; }
.toast {
  background: var(--surface-3) !important; color: var(--text) !important; border: 1px solid var(--line-strong) !important;
  border-radius: 12px !important; box-shadow: var(--shadow-float) !important; font-weight: 600 !important;
}

/* ---------- dashboard bits ---------- */
.activity-item { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; padding: 11px 2px !important; }
.activity-item:last-child { border-bottom: 0 !important; }
.activity-item .a-text { color: var(--text-2) !important; }
.activity-item .a-time { color: var(--dim) !important; }
.cal-day {
  background: var(--bg-2) !important; border: 1px solid var(--line) !important; color: var(--text-2) !important;
  border-radius: 9px !important; box-shadow: none !important;
}
.cal-legend { color: var(--muted) !important; }
.action-card { background: var(--surface) !important; border: 1px solid var(--line) !important; }
.action-card:hover { border-color: var(--line-strong) !important; transform: none !important; }

/* POS */
.item-tile { background: var(--bg-2) !important; border: 1px solid var(--line) !important; border-radius: var(--r-md) !important; box-shadow: none !important; }
.item-tile:hover { border-color: var(--accent-line) !important; transform: none !important; }
.pay-opt, .fintech-pay-btn, .fee-chip, .pos-stepper-btn, .tab, .pv-tab-btn {
  background: var(--bg-2) !important; border: 1px solid var(--line-strong) !important; color: var(--text-2) !important; box-shadow: none !important;
}
.pay-opt.active, .fintech-pay-btn.active, .fee-chip.active, .tab.active, .pv-tab-btn.active, .catalog-tabs .active {
  background: var(--accent-tint) !important; border-color: var(--accent) !important; color: var(--text) !important;
}
.total-row { color: var(--text) !important; }

/* mobile bottom nav */
.mobile-nav { background: rgba(13, 15, 19, 0.96) !important; border-top: 1px solid var(--line) !important; backdrop-filter: blur(12px); }
.mob-nav-btn { color: var(--dim) !important; }
.mob-nav-btn.active { color: var(--accent) !important; }
.mob-nav-fab { background: var(--accent) !important; color: var(--accent-ink) !important; box-shadow: 0 10px 24px -10px rgba(233, 162, 59, 0.8) !important; }

/* =====================================================================
   DASHBOARD (new markup)
   ===================================================================== */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.dash-head .eyebrow { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.dash-head h1 { margin: 0 !important; }
.dash-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.seg button {
  all: unset; cursor: pointer; padding: 6px 12px; border-radius: 7px; font: 600 12.5px var(--sans); color: var(--muted);
}
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface-3); color: var(--text); }
.dash-tools input[type="date"] { width: auto !important; height: 34px; padding: 0 10px !important; font-size: 12.5px !important; }

/* the day's register: one ruled strip, three headline figures */
.day-register {
  display: grid; grid-template-columns: 1.25fr 1fr 1fr; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, #161a21 0%, var(--surface) 100%); overflow: hidden; margin-bottom: 14px;
}
.day-register > button {
  all: unset; cursor: pointer; box-sizing: border-box; padding: 22px 24px 20px; position: relative;
  border-right: 1px solid var(--line); transition: background .15s;
}
.day-register > button:last-child { border-right: 0; }
.day-register > button:hover { background: rgba(236, 232, 222, 0.025); }
.day-register .k { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.day-register .k i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.day-register .v {
  font-size: 40px; font-weight: 700; letter-spacing: -0.035em; color: var(--text); margin-top: 10px; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.day-register .primary .v { font-size: 52px; }
.day-register .primary { background: radial-gradient(120% 140% at 0% 0%, rgba(233, 162, 59, 0.09) 0%, transparent 55%); }
.day-register .hint { font-size: 12px; color: var(--dim); margin-top: 10px; }
.day-register .v.pos { color: var(--pos); }
.day-register .v.neg { color: var(--neg); }

/* secondary ledger: label left, rupees right, hairline rules */
.ledger-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); overflow: hidden; margin-bottom: 26px;
}
.ledger-grid > button {
  all: unset; cursor: pointer; box-sizing: border-box; display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); transition: background .15s;
}
.ledger-grid > button:nth-child(3n) { border-right: 0; }
.ledger-grid > button:nth-last-child(-n+3) { border-bottom: 0; }
.ledger-grid > button:hover { background: rgba(236, 232, 222, 0.025); }
.ledger-grid .k { font-size: 13px; color: var(--muted); }
.ledger-grid .v { font-size: 17px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.ledger-grid .v.pos { color: var(--pos); }
.ledger-grid .v.neg { color: var(--neg-soft); }
.ledger-grid .v.warn { color: var(--warn-soft); }

.dash-cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; margin-bottom: 16px; }
.dash-cols.even { grid-template-columns: 1fr 1fr; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-head h2 { margin: 0 !important; }
.panel-head a, .panel-head .link {
  all: unset; cursor: pointer; font: 600 12.5px var(--sans); color: var(--accent-soft);
}
.panel-head a:hover, .panel-head .link:hover { color: var(--accent); }
.sync-line { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--dim); }
.sync-line i { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); display: inline-block; }

.shortcuts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
.shortcut {
  all: unset; cursor: pointer; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, background .15s;
}
.shortcut:hover { border-color: var(--line-strong); background: var(--surface-2); }
.shortcut .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-3); color: var(--text-2); display: grid; place-items: center; flex-shrink: 0; }
.shortcut .ic svg { width: 17px; height: 17px; }
.shortcut b { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); }
.shortcut span { display: block; font-size: 12px; color: var(--dim); margin-top: 2px; }

@media (max-width: 1180px) {
  .shortcuts { grid-template-columns: repeat(3, 1fr); }
  .dash-cols, .dash-cols.even { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .day-register { grid-template-columns: 1fr; }
  .day-register > button { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px; }
  .day-register > button:last-child { border-bottom: 0; }
  .day-register .v { font-size: 32px; }
  .day-register .primary .v { font-size: 40px; }
  .ledger-grid { grid-template-columns: 1fr 1fr; }
  .ledger-grid > button { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; padding: 12px 14px; }
  .ledger-grid > button:nth-child(2n) { border-right: 0 !important; }
  .shortcuts { grid-template-columns: 1fr 1fr; }
  .tb-search, .tb-title span, .control-hub-btn span:last-child { display: none !important; }
  h1 { font-size: 22px !important; }
}

/* =====================================================================
   LOGIN
   ===================================================================== */
/* the sign-in screen has its own look: see login.css */

/* no all-caps labels anywhere (old inline styles) */
[style*="text-transform:uppercase"], [style*="text-transform: uppercase"] { text-transform: none !important; letter-spacing: 0 !important; }
.brand-text { text-transform: none !important; }

/* ---------- xerox register ---------- */
.xerox-tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 6px; }
.xerox-tile {
  all: unset; cursor: pointer; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px;
  padding: 14px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line-strong);
  color: var(--text); font: 600 13.5px var(--sans); transition: border-color .15s, background .15s;
}
.xerox-tile:hover { border-color: var(--accent-line); background: var(--surface-2); }
.xerox-tile .xt-ico {
  width: 36px; height: 26px; border-radius: 6px; display: grid; place-items: center;
  font: 800 10.5px var(--sans); letter-spacing: .02em; background: var(--surface-3); color: var(--text-2);
}
.xerox-tile.xt-color .xt-ico { background: linear-gradient(135deg, #e86f8a, #e9a23b 50%, #43c59e); color: #14100a; }
.xerox-tile.xt-copy .xt-ico { background: var(--accent-tint); color: var(--accent-soft); }
.cart-section-label {
  font-size: 12.5px !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important;
  color: var(--muted) !important; margin: 18px 0 8px !important;
}
.opt-tag { font-weight: 400; color: var(--dim); }
.cart-line { border-color: var(--line) !important; }
.cart-line .lt { font-family: var(--sans) !important; color: var(--text) !important; }
.total-row .v { color: var(--pos) !important; font-variant-numeric: tabular-nums; }

/* compact top bar on phones */
@media (max-width: 760px) {
  .topbar { padding: 0 12px !important; gap: 8px !important; }
  .brand-text { display: none !important; }
  .tb-title strong { font-size: 15px; }
  .tb-actions .tb-icon-btn[title^="Lock"] { display: none; }
  .tb-primary span { display: none; }
  .tb-primary { padding: 0 10px; }
}

/* =====================================================================
   SETTINGS
   ===================================================================== */
.set-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.set-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.set-session { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-right: 6px; }
.set-session i { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); display: inline-block; }

.set-layout { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 40px; align-items: start; max-width: 1080px; }
.set-nav { position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.set-nav button {
  all: unset; cursor: pointer; box-sizing: border-box; padding: 8px 12px; border-radius: 8px;
  font: 500 13.5px var(--sans); color: var(--muted); position: relative; transition: color .15s, background .15s;
}
.set-nav button:hover { color: var(--text); background: var(--surface); }
.set-nav button.on { color: var(--text); background: var(--surface); font-weight: 600; }
.set-nav button.on::before { content: ''; position: absolute; left: -2px; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--accent); }

.set-body { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.set-sec { scroll-margin-top: 16px; }
.set-sec > header { margin-bottom: 14px; }
.set-sec > header h2 { font-size: 17px !important; font-weight: 700 !important; letter-spacing: -0.01em; margin: 0 0 4px !important; color: var(--text) !important; text-transform: none !important; }
.set-sec > header p { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 62ch; line-height: 1.55; }

.set-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.set-card + .set-card { margin-top: 12px; }
.set-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--line); margin: 0 !important;
}
.set-row-top { align-items: start; }
.set-row:last-child { border-bottom: 0; }
.set-label b { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.set-label span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.set-ctl input:not([type="checkbox"]):not([type="file"]), .set-ctl select, .set-ctl textarea { width: 100%; }
.set-ctl input[type="file"] { padding: 9px !important; font-size: 12.5px !important; color: var(--muted) !important; }
.set-ctl-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.set-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap;
  padding: 14px 20px; background: rgba(236, 232, 222, 0.02); border-top: 1px solid var(--line);
}
.set-card > .set-foot:first-child { border-top: 0; }
.set-note { font-size: 12.5px; color: var(--dim); margin-right: auto; line-height: 1.5; }
.set-pill { font-style: normal; font-size: 11px; font-weight: 700; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--pos-tint); }

/* toggle switches (still real checkboxes for the existing JS) */
.set-toggle { cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; font-size: inherit !important; color: inherit !important; }
.set-toggle .set-ctl { display: flex; justify-content: flex-end; }
input.switch {
  appearance: none; -webkit-appearance: none; width: 40px !important; height: 24px; padding: 0 !important; margin: 0;
  border-radius: 999px !important; background: var(--surface-3) !important; border: 1px solid var(--line-strong) !important;
  position: relative; cursor: pointer; transition: background .15s; box-shadow: none !important;
}
input.switch::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--muted); transition: transform .18s ease, background .18s;
}
input.switch:checked { background: var(--accent) !important; border-color: var(--accent) !important; }
input.switch:checked::after { transform: translateX(16px); background: var(--accent-ink); }

/* rates table */
.set-rates { margin: 0; }
.set-rates th { padding: 12px 20px !important; }
.set-rates td { padding: 10px 20px !important; color: var(--text) !important; font-weight: 500; }
.set-rates td input { max-width: 160px; text-align: right; }
.set-rates tr:hover td { background: transparent !important; }

/* customer portal catalogue (items rendered by existing JS) */
.set-catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; padding: 16px 20px; max-height: 420px; overflow-y: auto; }
.set-catalog [data-public-item] { border-radius: 10px !important; border-color: var(--line) !important; color: var(--text-2); min-height: 48px !important; }

/* 2FA card */
.set-2fa { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; flex-wrap: wrap; }
.set-2fa-main { display: flex; gap: 16px; align-items: flex-start; flex: 1; min-width: 280px; }
.set-2fa-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); }
.set-2fa-icon svg { width: 22px; height: 22px; }
.set-2fa-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.set-2fa-title b { font-size: 15px; font-weight: 700; color: var(--text); }
.set-2fa p { margin: 6px 0 8px; font-size: 13px; color: var(--muted); line-height: 1.55; max-width: 60ch; }
.set-2fa-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--surface-3); color: var(--muted); border: 1px solid var(--line-strong);
}
.set-2fa-badge #owner-totp-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); display: inline-block; }
.set-2fa-badge[data-state="on"] { background: var(--pos-tint); color: var(--pos); border-color: var(--pos-line); }
.set-2fa-badge[data-state="on"] #owner-totp-badge-dot { background: var(--pos); }
.set-2fa-badge[data-state="off"] { background: var(--warn-tint); color: var(--warn-soft); border-color: var(--accent-line); }
.set-2fa-badge[data-state="off"] #owner-totp-badge-dot { background: var(--warn); }
.set-2fa-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.set-danger { border-color: var(--neg-line); }

@media (max-width: 900px) {
  .set-layout { grid-template-columns: 1fr; gap: 18px; }
  .set-nav { position: sticky; top: -18px; z-index: 5; flex-direction: row; overflow-x: auto; background: var(--bg); padding: 8px 0; scrollbar-width: none; }
  .set-nav button { white-space: nowrap; }
  .set-nav button.on::before { display: none; }
  .set-row { grid-template-columns: 1fr; gap: 10px; }
  .set-ctl-row { justify-content: flex-start; }
}

/* =====================================================================
   TWO-STEP VERIFICATION SCREENS
   ===================================================================== */
.modal-bg.tfa-screen {
  background: radial-gradient(60% 50% at 50% 0%, rgba(233, 162, 59, 0.08) 0%, transparent 70%), rgba(9, 10, 13, 0.94) !important;
  backdrop-filter: blur(10px); align-items: center; justify-content: center; padding: 20px; overflow-y: auto;
}
.tfa-card {
  width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px;
  padding: 32px 28px 22px; box-shadow: var(--shadow-float); text-align: center; position: relative; margin: auto;
}
.tfa-mark { width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 15px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line); }
.tfa-mark svg { width: 26px; height: 26px; }
.tfa-card h3 { margin: 0 0 8px !important; font-size: 21px !important; font-weight: 700 !important; letter-spacing: -0.02em; color: var(--text) !important; }
.tfa-lead { margin: 0 auto 22px; font-size: 13.5px; color: var(--muted); line-height: 1.55; max-width: 34ch; }
.tfa-lead b { color: var(--text-2); font-weight: 600; }
.tfa-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

input.tfa-code {
  height: 64px; text-align: center; font: 700 30px/1 var(--sans) !important; letter-spacing: 0.32em !important;
  padding: 0 0 0 0.32em !important; border-radius: 14px !important; background: var(--bg) !important;
  border: 1px solid var(--line-strong) !important; color: var(--text) !important; font-variant-numeric: tabular-nums; caret-color: var(--accent);
}
input.tfa-code::placeholder { color: var(--surface-3) !important; letter-spacing: 0.32em; }
input.tfa-code:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 4px rgba(233, 162, 59, 0.18) !important; }
input.tfa-code.tfa-code-sm { height: 54px; font-size: 24px !important; max-width: 260px; text-align: center; }

.tfa-error {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; text-align: left;
  background: var(--neg-tint) !important; border: 1px solid var(--neg-line) !important; color: var(--neg-soft) !important;
}
.btn.tfa-primary { width: 100%; height: 46px; margin-top: 16px; font-size: 14.5px !important; }

.tfa-help { margin-top: 18px; text-align: left; border-top: 1px solid var(--line); padding-top: 14px; }
.tfa-help summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent-soft); list-style: none; text-align: center; }
.tfa-help summary::-webkit-details-marker { display: none; }
.tfa-help p { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 10px 0 0; }
.tfa-help code { font: 600 12px var(--sans); color: var(--text-2); background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }

.tfa-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }
.tfa-link { all: unset; cursor: pointer; font: 600 12.5px var(--sans); color: var(--muted); }
.tfa-link:hover { color: var(--text); }

.tfa-field { text-align: left; margin-bottom: 12px; }
.tfa-field label { display: block; margin-bottom: 6px !important; }
.tfa-field input[readonly] { color: var(--muted) !important; background: var(--surface-2) !important; }

/* setup */
.tfa-setup {
  width: 100%; max-width: 640px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px;
  box-shadow: var(--shadow-float); margin: auto; max-height: calc(100vh - 40px); overflow-y: auto;
}
.tfa-setup-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 26px 6px; }
.tfa-setup-head h3 { margin: 0 !important; font-size: 20px !important; font-weight: 700 !important; letter-spacing: -0.02em; color: var(--text) !important; }
.tfa-setup-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.tfa-close { all: unset; cursor: pointer; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); }
.tfa-close:hover { color: var(--text); background: var(--surface-2); }
.tfa-close svg { width: 16px; height: 16px; }

.tfa-steps { list-style: none; margin: 0; padding: 10px 26px 4px; }
.tfa-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; padding: 18px 0; position: relative; }
.tfa-step + .tfa-step { border-top: 1px solid var(--line); }
.tfa-step-n {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--sans);
  background: var(--accent); color: var(--accent-ink);
}
.tfa-step-body h4 { margin: 3px 0 6px; font-size: 15px; font-weight: 700; color: var(--text); }
.tfa-step-body > p { margin: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.55; }
.tfa-step-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tfa-qr-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.tfa-qr { background: #fff !important; border-radius: 14px; padding: 12px; min-width: 180px; min-height: 180px; display: grid; place-items: center; flex-shrink: 0; }
.tfa-qr span { color: #6b6b6b; font-size: 12px; font-weight: 600; }
.tfa-key { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.tfa-key > span { font-size: 12.5px; color: var(--dim); }
.tfa-key code {
  font: 600 14px/1.5 var(--sans); letter-spacing: 0.08em; color: var(--text); word-break: break-all;
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; width: 100%; box-sizing: border-box;
}
.tfa-chip {
  all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px;
  font: 600 12.5px var(--sans); color: var(--text-2); border: 1px solid var(--line-strong); background: var(--surface-2); white-space: nowrap;
}
.tfa-chip:hover { color: var(--text); border-color: var(--accent-line); }
.tfa-chip svg { width: 14px; height: 14px; }
.tfa-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tfa-codes > div {
  font: 600 14px var(--sans); letter-spacing: 0.06em; text-align: center; color: var(--text); padding: 9px 8px;
  background: var(--bg-2); border: 1px dashed var(--line-strong); border-radius: 9px; font-variant-numeric: tabular-nums;
}
.tfa-setup .tfa-error { margin: 0 26px; }
.tfa-setup-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 26px 22px; border-top: 1px solid var(--line); margin-top: 14px; }
@media (max-width: 600px) {
  .tfa-card { padding: 26px 20px 18px; }
  .tfa-setup-head, .tfa-steps, .tfa-setup-foot { padding-left: 18px; padding-right: 18px; }
  .tfa-codes { grid-template-columns: 1fr 1fr; }
  .tfa-qr { margin: 0 auto; }
  .tfa-setup-foot .btn { flex: 1; }
}
#settings-auth-modal.tfa-screen { z-index: 100000 !important; }
input[type="file"]::file-selector-button {
  font: 600 12.5px var(--sans); color: var(--text); background: var(--surface-3); border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 6px 12px; margin-right: 10px; cursor: pointer;
}
input[type="file"]::file-selector-button:hover { border-color: var(--accent-line); }

/* =====================================================================
   DAY THEME ("Paper & Marigold") — html[data-theme="light"]
   Switched automatically by /theme-mode.js (7:00–18:30) or by the
   Auto / Day / Night button in the top bar.
   ===================================================================== */
html[data-theme="light"] {
  --bg: #f2f3f5;
  --bg-2: #f7f8f9;
  --surface: #ffffff;
  --surface-2: #f5f6f8;
  --surface-3: #e9ebef;
  --line: rgba(16, 20, 28, 0.08);
  --line-strong: rgba(16, 20, 28, 0.15);
  --text: #15171c;
  --text-2: #2f333b;
  --muted: #5d626d;
  --dim: #8a8f99;
  --accent: #e29a2f;
  --accent-soft: #a8660f;
  --accent-deep: #8a5410;
  --accent-ink: #1b1306;
  --accent-tint: rgba(226, 154, 47, 0.13);
  --accent-line: rgba(196, 128, 28, 0.42);
  --pos: #12855f;
  --pos-deep: #0d6a4b;
  --pos-tint: rgba(18, 133, 95, 0.10);
  --pos-line: rgba(18, 133, 95, 0.30);
  --neg: #c9473d;
  --neg-soft: #b23d34;
  --neg-deep: #962f27;
  --neg-tint: rgba(201, 71, 61, 0.09);
  --neg-line: rgba(201, 71, 61, 0.30);
  --warn: #c98216;
  --warn-soft: #9c5f0c;
  --warn-deep: #7d4b08;
  --warn-tint: rgba(226, 154, 47, 0.13);
  --steel: #46658f;
  --steel-tint: rgba(70, 101, 143, 0.10);
  --shadow-1: 0 1px 2px rgba(16, 20, 28, 0.06);
  --shadow-2: 0 12px 30px -16px rgba(16, 20, 28, 0.22);
  --shadow-float: 0 28px 60px -20px rgba(16, 20, 28, 0.35), 0 0 0 1px var(--line-strong);
  --focus: 0 0 0 3px rgba(226, 154, 47, 0.30);
  color-scheme: light;
}
html[data-theme="light"] ::selection { background: rgba(226, 154, 47, 0.28); color: var(--text); }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #cfd3da; border-color: var(--bg); }
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #b8bdc6; }
html[data-theme="light"] .day-register { background: var(--surface); }
html[data-theme="light"] .day-register .primary { background: radial-gradient(120% 140% at 0% 0%, rgba(226, 154, 47, 0.12) 0%, transparent 55%); }
html[data-theme="light"] .day-register > button:hover,
html[data-theme="light"] .ledger-grid > button:hover,
html[data-theme="light"] tr:hover td { background: rgba(16, 20, 28, 0.025) !important; }
html[data-theme="light"] .mobile-nav { background: rgba(255, 255, 255, 0.96) !important; }
html[data-theme="light"] .modal-bg { background: rgba(21, 23, 28, 0.38) !important; }
html[data-theme="light"] .modal-bg.tfa-screen {
  background: radial-gradient(60% 50% at 50% 0%, rgba(226, 154, 47, 0.12) 0%, transparent 70%), rgba(242, 243, 245, 0.96) !important;
}
html[data-theme="light"] .tfa-code::placeholder { color: #d5d8de !important; }
html[data-theme="light"] .set-foot { background: var(--surface-2); }
html[data-theme="light"] .tb-primary { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 6px 16px -8px rgba(196, 128, 28, 0.6); }
html[data-theme="light"] body .btn.danger:hover { color: #fff !important; }
html[data-theme="light"] body .btn.success { color: #fff !important; }
html[data-theme="light"] .cal-day { background: var(--surface-2) !important; }
html[data-theme="light"] .qr-code-frame, html[data-theme="light"] .tfa-qr { box-shadow: inset 0 0 0 1px var(--line-strong); }

/* theme button */
.theme-toggle { gap: 7px !important; }
.theme-toggle .ic-moon { display: none; }
html[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ic-moon { display: inline; }
.theme-toggle .theme-label { font-size: 12.5px; }
@media (max-width: 760px) { .theme-toggle .theme-label { display: none; } }

/* =====================================================================
   PHONE CONTACTS: import dialog + billing suggestions (public/contacts.js)
   ===================================================================== */
.cd-ct-modal { max-width: 520px !important; width: 100%; padding: 24px !important; }
.cd-ct-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.cd-ct-head h3 { margin: 0 !important; }
.cd-ct-lead { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.cd-ct-steps { margin: 0 0 16px; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.cd-ct-steps b { color: var(--text); }
.cd-ct-drop {
  display: flex !important; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; cursor: pointer;
  border: 1.5px dashed var(--line-strong); border-radius: 14px; background: var(--bg-2); text-align: center; margin: 0 !important;
}
.cd-ct-drop:hover { border-color: var(--accent); background: var(--accent-tint); }
.cd-ct-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cd-ct-drop b { font-size: 14px; color: var(--text); }
.cd-ct-drop span { font-size: 12.5px; color: var(--dim); }
.cd-ct-status { margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.cd-ct-status.ok { background: var(--pos-tint); color: var(--pos); border: 1px solid var(--pos-line); }
.cd-ct-status.err { background: var(--neg-tint); color: var(--neg-soft); border: 1px solid var(--neg-line); }
.cd-ct-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.cd-ct-count { margin-right: auto; font-size: 12.5px; color: var(--dim); }

.cd-suggest {
  position: fixed; z-index: 200000; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: var(--shadow-float); padding: 6px; max-height: 360px; overflow-y: auto;
}
.cd-sg-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.cd-sg-item.on, .cd-sg-item:hover { background: var(--surface-2); }
.cd-sg-av {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--surface-3); color: var(--text-2); font: 700 12.5px var(--sans);
}
.cd-sg-txt { flex: 1; min-width: 0; }
.cd-sg-txt b { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-sg-txt span { display: block; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cd-sg-tag { font: 600 11px var(--sans); padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
.cd-sg-tag.customer { background: var(--accent-tint); color: var(--accent-soft); }
