/* ══════════════════════════════════════════════════════════════════
   QMyTurn — Selectable color schemes (admin + clinic back-end)
   Loaded AFTER admin_dark.css / clinic_dark.css.

   The default (no data-theme attribute, or data-theme="navy") keeps the
   original "Midnight Navy" look completely untouched — every rule below is
   scoped to html[data-theme="graphite|emerald|royal"], so it only paints
   when a user has actively picked one of the three alternate schemes.
   The switcher (scripts/theme-switcher.js) sets the attribute + persists
   the choice in localStorage.

   Each scheme re-tints only the identity selectors that carry the theme
   colour (page background, atmospheric orbs, primary gradient, active
   nav, links, accent badges). Semantic colours — success green, danger
   red, warning orange, the clinic doctor-card palette — are intentionally
   left alone in every scheme.
══════════════════════════════════════════════════════════════════ */

/* ════════════════ GRAPHITE — neutral gunmetal, steel-blue accent ════════════════ */
html[data-theme="graphite"],
html[data-theme="graphite"] body {
  background: linear-gradient(135deg, #17181c 0%, #23252b 45%, #1b1d22 75%, #141518 100%) !important;
}
html[data-theme="graphite"] body::before {
  background: radial-gradient(circle, #546e7a 0%, transparent 70%) !important;
}
html[data-theme="graphite"] body::after {
  background: radial-gradient(circle, #37474f 0%, transparent 70%) !important;
}
html[data-theme="graphite"] .main-sidebar,
html[data-theme="graphite"] .main-sidebar .bg-white,
html[data-theme="graphite"] .main-sidebar .main-navbar,
html[data-theme="graphite"] .main-sidebar .main-navbar nav,
html[data-theme="graphite"] .main-sidebar nav.bg-white {
  background: rgba(20,22,25,0.94) !important;
}
html[data-theme="graphite"] .btn-primary,
html[data-theme="graphite"] .btn-advertisement,
html[data-theme="graphite"] .dataTables_wrapper .dataTables_paginate .paginate_button.current,
html[data-theme="graphite"] .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: linear-gradient(135deg, #607d8b, #455a64) !important;
  box-shadow: 0 4px 14px rgba(96,125,139,0.35) !important;
}
html[data-theme="graphite"] .btn-primary:hover,
html[data-theme="graphite"] .btn-primary:focus {
  background: linear-gradient(135deg, #78909c, #546e7a) !important;
  box-shadow: 0 6px 20px rgba(96,125,139,0.5) !important;
}
html[data-theme="graphite"] .nav-wrapper .nav-link.active {
  background: linear-gradient(135deg, rgba(96,125,139,0.30), rgba(69,90,100,0.18)) !important;
  border-color: rgba(120,144,156,0.34) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 2px 8px rgba(96,125,139,0.15) !important;
}
html[data-theme="graphite"] a { color: #b0bec5 !important; }
html[data-theme="graphite"] a:hover,
html[data-theme="graphite"] .valtop a:hover,
html[data-theme="graphite"] .valtop1 a:hover { color: #eceff1 !important; }
html[data-theme="graphite"] .badge-primary {
  background: rgba(96,125,139,0.20) !important; color: #cfd8dc !important; border-color: rgba(96,125,139,0.30) !important;
}
html[data-theme="graphite"] .badge-info {
  background: rgba(120,144,156,0.18) !important; color: #b0bec5 !important; border-color: rgba(120,144,156,0.28) !important;
}
html[data-theme="graphite"] .nav-tabs .nav-item.active .nav-link { color: #b0bec5 !important; }

/* ════════════════ EMERALD — deep green-black, teal accent ════════════════ */
html[data-theme="emerald"],
html[data-theme="emerald"] body {
  background: linear-gradient(135deg, #04160f 0%, #0a2b20 45%, #072318 75%, #04160f 100%) !important;
}
html[data-theme="emerald"] body::before {
  background: radial-gradient(circle, #00897b 0%, transparent 70%) !important;
}
html[data-theme="emerald"] body::after {
  background: radial-gradient(circle, #004d40 0%, transparent 70%) !important;
}
html[data-theme="emerald"] .main-sidebar,
html[data-theme="emerald"] .main-sidebar .bg-white,
html[data-theme="emerald"] .main-sidebar .main-navbar,
html[data-theme="emerald"] .main-sidebar .main-navbar nav,
html[data-theme="emerald"] .main-sidebar nav.bg-white {
  background: rgba(3,18,13,0.94) !important;
}
html[data-theme="emerald"] .btn-primary,
html[data-theme="emerald"] .btn-advertisement,
html[data-theme="emerald"] .dataTables_wrapper .dataTables_paginate .paginate_button.current,
html[data-theme="emerald"] .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: linear-gradient(135deg, #00897b, #00695c) !important;
  box-shadow: 0 4px 14px rgba(0,137,123,0.35) !important;
}
html[data-theme="emerald"] .btn-primary:hover,
html[data-theme="emerald"] .btn-primary:focus {
  background: linear-gradient(135deg, #26a69a, #00897b) !important;
  box-shadow: 0 6px 20px rgba(0,137,123,0.5) !important;
}
html[data-theme="emerald"] .nav-wrapper .nav-link.active {
  background: linear-gradient(135deg, rgba(0,137,123,0.30), rgba(0,105,92,0.18)) !important;
  border-color: rgba(38,166,154,0.34) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 2px 8px rgba(0,137,123,0.15) !important;
}
html[data-theme="emerald"] a { color: #80cbc4 !important; }
html[data-theme="emerald"] a:hover,
html[data-theme="emerald"] .valtop a:hover,
html[data-theme="emerald"] .valtop1 a:hover { color: #b2dfdb !important; }
html[data-theme="emerald"] .badge-primary {
  background: rgba(0,137,123,0.20) !important; color: #4db6ac !important; border-color: rgba(0,137,123,0.30) !important;
}
html[data-theme="emerald"] .badge-info {
  background: rgba(38,166,154,0.18) !important; color: #80cbc4 !important; border-color: rgba(38,166,154,0.28) !important;
}
html[data-theme="emerald"] .nav-tabs .nav-item.active .nav-link { color: #4db6ac !important; }

/* ════════════════ DAYLIGHT — full light theme ════════════════
   Unlike Graphite/Emerald/Royal (which only re-tint identity colours on
   top of the same dark structure), the base CSS is dark-committed: text,
   borders and surfaces are declared as rgba(255,255,255,X) — i.e. "white
   at low opacity over a dark page." Those same rules would render as
   near-invisible white-on-white if the page background just flipped to
   white, so every such rule needs an explicit light counterpart here.
   Saturated/gradient elements with white text (primary buttons, doctor
   avatars, ticket spheres, the "Next Ticket" button, semantic badges'
   backgrounds) already work on any page background and are left alone
   except where their TEXT colour itself is a pale tone only legible on
   dark (badges/chips) -- those get darker text variants below. */

html[data-theme="daylight"],
html[data-theme="daylight"] body {
  background: linear-gradient(135deg, #f4f6fb 0%, #eef1f8 45%, #f7f9fc 75%, #f4f6fb 100%) !important;
  color: #1e293b !important;
}
html[data-theme="daylight"] body::before,
html[data-theme="daylight"] body::after {
  opacity: 0 !important; /* colour-tinted glow orbs read as odd blotches on a white page */
}

/* Sidebar */
html[data-theme="daylight"] .main-sidebar,
html[data-theme="daylight"] .main-sidebar .bg-white,
html[data-theme="daylight"] .main-sidebar .main-navbar,
html[data-theme="daylight"] .main-sidebar .main-navbar nav,
html[data-theme="daylight"] .main-sidebar nav.bg-white {
  background: #ffffff !important;
}
html[data-theme="daylight"] .main-sidebar { border-right: 1px solid #e2e8f0 !important; }
html[data-theme="daylight"] .main-sidebar .navbar-brand { border-bottom: 1px solid #e2e8f0 !important; }
html[data-theme="daylight"] .main-sidebar .logo .qmt-logo-text,
html[data-theme="daylight"] .main-sidebar .logo .qmt-logo-text { color: #1e293b !important; }
html[data-theme="daylight"] .main-sidebar__search { background: #f1f5f9 !important; border-color: #e2e8f0 !important; }
html[data-theme="daylight"] .main-sidebar__search .form-control { color: #475569 !important; }
html[data-theme="daylight"] .main-sidebar__search .input-group-text { color: #94a3b8 !important; }
html[data-theme="daylight"] .nav-wrapper .nav-link { color: #475569 !important; }
html[data-theme="daylight"] .nav-wrapper .nav-link:hover {
  background: #f1f5f9 !important; color: #1e293b !important; border-color: #e2e8f0 !important;
}
html[data-theme="daylight"] .nav-wrapper .nav-link.active {
  background: linear-gradient(135deg, rgba(21,101,192,0.12), rgba(13,71,161,0.06)) !important;
  border-color: rgba(21,101,192,0.3) !important;
  color: #0d47a1 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 2px 8px rgba(21,101,192,0.08) !important;
}
html[data-theme="daylight"] .nav-wrapper .nav-link i img { filter: brightness(0) invert(0) !important; opacity: 0.6 !important; }
html[data-theme="daylight"] .nav-wrapper .nav-link.active i img,
html[data-theme="daylight"] .nav-wrapper .nav-link:hover i img { opacity: 0.95 !important; }
html[data-theme="daylight"] .nav-wrapper hr { border-color: #e2e8f0 !important; }

/* Top navbar + dropdown */
html[data-theme="daylight"] .main-navbar.sticky-top,
html[data-theme="daylight"] .main-navbar.bg-white,
html[data-theme="daylight"] div.main-navbar {
  background: #ffffff !important; border-bottom: 1px solid #e2e8f0 !important;
}
html[data-theme="daylight"] .main-navbar .doc-clinic h2 { color: #1e293b !important; }
html[data-theme="daylight"] .main-navbar .nav-link { color: #64748b !important; }
html[data-theme="daylight"] .main-navbar .nav-link:hover { color: #1e293b !important; }
html[data-theme="daylight"] .main-navbar .material-icons { color: #64748b !important; }
html[data-theme="daylight"] .main-navbar .border-left,
html[data-theme="daylight"] .main-navbar .border-right { border-color: #e2e8f0 !important; }
html[data-theme="daylight"] .main-navbar .dropdown-menu {
  background: #ffffff !important; border: 1px solid #e2e8f0 !important;
  box-shadow: 0 12px 34px rgba(15,23,42,0.12) !important;
}
html[data-theme="daylight"] .main-navbar .dropdown-item { color: #475569 !important; }
html[data-theme="daylight"] .main-navbar .dropdown-item:hover { background: #f1f5f9 !important; color: #1e293b !important; }
html[data-theme="daylight"] .main-navbar .dropdown-item.text-danger { color: #c62828 !important; }
html[data-theme="daylight"] .main-navbar .dropdown-item.text-danger:hover { background: rgba(239,83,80,0.08) !important; }
html[data-theme="daylight"] .main-navbar .dropdown-divider { border-color: #e2e8f0 !important; }

/* Cards */
html[data-theme="daylight"] .card {
  background: #ffffff !important;
  border: 1px solid #e6eaf0 !important;
  box-shadow: 0 4px 18px rgba(15,23,42,0.06), inset 0 1px 0 rgba(255,255,255,0.6) !important;
  color: #334155 !important;
}
html[data-theme="daylight"] .card:hover { box-shadow: 0 8px 26px rgba(15,23,42,0.09) !important; }
html[data-theme="daylight"] .card.bg-dark { background: #f8fafc !important; border-color: #e2e8f0 !important; }
html[data-theme="daylight"] .card-header { border-bottom: 1px solid #eef1f6 !important; color: #475569 !important; }
html[data-theme="daylight"] .card-body { color: #334155 !important; }
html[data-theme="daylight"] .card-footer { border-top: 1px solid #eef1f6 !important; color: #94a3b8 !important; }

/* Stat bubble cards */
html[data-theme="daylight"] .welcome-card .heading,
html[data-theme="daylight"] .welcome-card .heading2 { color: #94a3b8 !important; }
html[data-theme="daylight"] .welcome-card .cont-val { color: #1e293b !important; text-shadow: none !important; }
html[data-theme="daylight"] .welcome-card .valtop a { color: #1565c0 !important; border-bottom-color: rgba(21,101,192,0.25) !important; }
html[data-theme="daylight"] .welcome-card .valtop a:hover { color: #0d47a1 !important; border-bottom-color: rgba(13,71,161,0.5) !important; }

/* Subscription rows */
html[data-theme="daylight"] .subs-row { border-bottom: 1px solid #eef1f6 !important; }
html[data-theme="daylight"] .valtop1 .heading { color: #64748b !important; }
html[data-theme="daylight"] .valtop1 a { color: #1565c0 !important; }
html[data-theme="daylight"] .valtop1 a:hover { color: #0d47a1 !important; }
html[data-theme="daylight"] .progress-percent { color: #1e293b !important; text-shadow: none !important; }
html[data-theme="daylight"] .progress { background: #eef1f6 !important; }

/* Page structure */
html[data-theme="daylight"] .clinic-s,
html[data-theme="daylight"] .clinic-s .container-fluid { background: #f8fafc !important; border-bottom: 1px solid #e2e8f0 !important; }
html[data-theme="daylight"] .page-heading { color: #1e293b !important; }
html[data-theme="daylight"] .clinic-signup { color: #334155 !important; }
html[data-theme="daylight"] .clinic-signup h5 { color: #1e293b !important; }
html[data-theme="daylight"] .clinic-details { color: #64748b !important; }

/* Tables */
html[data-theme="daylight"] .table { color: #334155 !important; }
html[data-theme="daylight"] .table thead th { background: #f8fafc !important; border-bottom: 1px solid #e2e8f0 !important; color: #64748b !important; }
html[data-theme="daylight"] .table td, html[data-theme="daylight"] .table th { border-top: 1px solid #eef1f6 !important; }
html[data-theme="daylight"] .table-hover tbody tr:hover td,
html[data-theme="daylight"] .table-hover tbody tr:hover th { background: #f8fafc !important; }
html[data-theme="daylight"] .table-striped tbody tr:nth-of-type(odd) td { background: #fbfcfe !important; }
html[data-theme="daylight"] .dataTables_wrapper { color: #475569 !important; }
html[data-theme="daylight"] .dataTables_wrapper .dataTables_length label,
html[data-theme="daylight"] .dataTables_wrapper .dataTables_filter label,
html[data-theme="daylight"] .dataTables_wrapper .dataTables_info { color: #64748b !important; }
html[data-theme="daylight"] .dataTables_wrapper .dataTables_length select,
html[data-theme="daylight"] .dataTables_wrapper .dataTables_filter input {
  background: #ffffff !important; border: 1px solid #dbe2ea !important; color: #1e293b !important;
}
html[data-theme="daylight"] .dataTables_wrapper .dataTables_paginate .paginate_button { color: #64748b !important; }
html[data-theme="daylight"] .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #f1f5f9 !important; border-color: #e2e8f0 !important; color: #1e293b !important;
}
html[data-theme="daylight"] .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
html[data-theme="daylight"] .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover { color: #cbd5e1 !important; }

/* Forms */
html[data-theme="daylight"] .form-control {
  background: #ffffff !important; border: 1px solid #dbe2ea !important; color: #1e293b !important;
}
html[data-theme="daylight"] .form-control:focus {
  background: #ffffff !important; border-color: rgba(21,101,192,0.55) !important;
  box-shadow: 0 0 0 3px rgba(21,101,192,0.14) !important; color: #1e293b !important;
}
html[data-theme="daylight"] .form-control::placeholder { color: #a3adba !important; }
html[data-theme="daylight"] .form-control:disabled,
html[data-theme="daylight"] .form-control[readonly] { background: #f1f5f9 !important; color: #94a3b8 !important; }
html[data-theme="daylight"] select.form-control option { background: #ffffff !important; color: #1e293b !important; }
html[data-theme="daylight"] .form-group label,
html[data-theme="daylight"] label,
html[data-theme="daylight"] .formlabel { color: #64748b !important; }
html[data-theme="daylight"] .input-group-text { background: #f1f5f9 !important; border: 1px solid #dbe2ea !important; color: #64748b !important; }

/* Buttons — only .btn-secondary depends on the white-on-dark trick;
   primary/success/info/warning/danger are saturated gradients + white
   text and already read fine on a light page. */
html[data-theme="daylight"] .btn-secondary {
  background: #eef1f6 !important; border: 1px solid #dbe2ea !important; color: #475569 !important;
}
html[data-theme="daylight"] .btn-secondary:hover { background: #e2e8f0 !important; color: #1e293b !important; }

/* Badges — same tint, darker text for contrast against a white/light card */
html[data-theme="daylight"] .badge-success  { color: #1b7a3d !important; border-color: rgba(0,200,83,0.35) !important; }
html[data-theme="daylight"] .badge-danger   { color: #c62828 !important; border-color: rgba(239,83,80,0.35) !important; }
html[data-theme="daylight"] .badge-warning  { color: #a15c00 !important; border-color: rgba(255,152,0,0.4) !important; }
html[data-theme="daylight"] .badge-info     { color: #0277bd !important; border-color: rgba(0,176,255,0.35) !important; }
html[data-theme="daylight"] .badge-primary  { color: #1565c0 !important; border-color: rgba(21,101,192,0.35) !important; }
html[data-theme="daylight"] .badge-secondary{ background: #eef1f6 !important; color: #64748b !important; border-color: #dbe2ea !important; }

/* Alerts */
html[data-theme="daylight"] .alert { color: #334155 !important; }

/* Modals */
html[data-theme="daylight"] .modal-content {
  background: #ffffff !important; border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 56px rgba(15,23,42,0.22) !important;
}
html[data-theme="daylight"] .modal-header { border-bottom: 1px solid #eef1f6 !important; color: #1e293b !important; }
html[data-theme="daylight"] .modal-title { color: #1e293b !important; }
html[data-theme="daylight"] .modal-body { color: #475569 !important; }
html[data-theme="daylight"] .modal-footer { border-top: 1px solid #eef1f6 !important; }
html[data-theme="daylight"] .close { color: #94a3b8 !important; }
html[data-theme="daylight"] .close:hover { color: #1e293b !important; }

/* Footer */
html[data-theme="daylight"] .main-footer { background: #ffffff !important; border-top: 1px solid #e2e8f0 !important; color: #94a3b8 !important; }
html[data-theme="daylight"] .main-footer .copyright { color: #94a3b8 !important; }
html[data-theme="daylight"] .main-footer a { color: #1565c0 !important; }

/* Global utilities */
html[data-theme="daylight"] .border-bottom { border-bottom-color: #e2e8f0 !important; }
html[data-theme="daylight"] .border-top    { border-top-color: #e2e8f0 !important; }
html[data-theme="daylight"] .border-left   { border-left-color: #e2e8f0 !important; }
html[data-theme="daylight"] .border-right  { border-right-color: #e2e8f0 !important; }
html[data-theme="daylight"] .border-lft-rt { border-left-color: #e2e8f0 !important; border-right-color: #e2e8f0 !important; }
html[data-theme="daylight"] .text-muted { color: #94a3b8 !important; }
html[data-theme="daylight"] .text-dark  { color: #1e293b !important; }
html[data-theme="daylight"] .bg-white { background: #ffffff !important; }
html[data-theme="daylight"] .bg-light { background: #f8fafc !important; }
html[data-theme="daylight"] .bg-dark  { background: #eef1f6 !important; }
html[data-theme="daylight"] .shadow   { box-shadow: 0 8px 28px rgba(15,23,42,0.1) !important; }
html[data-theme="daylight"] a { color: #1565c0 !important; }
html[data-theme="daylight"] a:hover { color: #0d47a1 !important; }
html[data-theme="daylight"] hr { border-color: #e2e8f0 !important; }

/* Map page */
html[data-theme="daylight"] .right-container .card { background: #ffffff !important; }
html[data-theme="daylight"] .right-widget .clinic-details { color: #64748b !important; }

/* Scrollbars */
html[data-theme="daylight"] ::-webkit-scrollbar-track { background: #f1f5f9; }
html[data-theme="daylight"] ::-webkit-scrollbar-thumb { background: #cbd5e1; }
html[data-theme="daylight"] ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Clinic dashboard (clinic_dark.css) equivalents ── */
html[data-theme="daylight"] .clinic-btn-remind-today {
  background: rgba(255,152,0,0.12) !important; color: #a15c00 !important;
}
html[data-theme="daylight"] .clinic-btn-remind-today:hover { background: rgba(255,152,0,0.2) !important; color: #7a4400 !important; }
html[data-theme="daylight"] .clinic-btn-remind-tmrw {
  background: rgba(21,101,192,0.08) !important; color: #1565c0 !important;
}
html[data-theme="daylight"] .clinic-btn-remind-tmrw:hover { background: rgba(21,101,192,0.16) !important; color: #0d47a1 !important; }
html[data-theme="daylight"] #unhold_queue,
html[data-theme="daylight"] .clinic-unhold-btn { background: rgba(239,83,80,0.08) !important; color: #c62828 !important; }
html[data-theme="daylight"] #unhold_queue:hover,
html[data-theme="daylight"] .clinic-unhold-btn:hover { background: rgba(239,83,80,0.16) !important; }

html[data-theme="daylight"] .clinic-card-header { border-bottom: 1px solid #eef1f6 !important; }
html[data-theme="daylight"] .clinic-doc-name { color: #1e293b !important; }
html[data-theme="daylight"] .clinic-doc-category { color: #94a3b8 !important; }

html[data-theme="daylight"] .chip-available { color: #1b7a3d !important; border-color: rgba(0,200,83,0.35) !important; }
html[data-theme="daylight"] .chip-lunch     { color: #a15c00 !important; border-color: rgba(255,152,0,0.4) !important; }
html[data-theme="daylight"] .chip-away      { color: #c62828 !important; border-color: rgba(239,83,80,0.35) !important; }
html[data-theme="daylight"] .chip-custom    { color: #1565c0 !important; border-color: rgba(21,101,192,0.3) !important; }
html[data-theme="daylight"] .clinic-ticketing-badge { background: rgba(100,116,139,0.1) !important; color: #475569 !important; border-color: rgba(100,116,139,0.28) !important; }

html[data-theme="daylight"] .clinic-serving-label { color: #94a3b8 !important; }
html[data-theme="daylight"] .clinic-serving-bubble { background: #f8fafc !important; border: 1px solid #e2e8f0 !important; }
html[data-theme="daylight"] .clinic-serving-name { color: #1e293b !important; }
html[data-theme="daylight"] .clinic-serving-status { color: #64748b !important; }
html[data-theme="daylight"] .clinic-serving-empty { color: #94a3b8 !important; }

html[data-theme="daylight"] .clinic-queue-label { color: #94a3b8 !important; }
html[data-theme="daylight"] .clinic-queue-count { background: #eef1f6 !important; color: #64748b !important; }
html[data-theme="daylight"] .clinic-queue-bubble { background: #f8fafc !important; border: 1px solid #eef1f6 !important; }
html[data-theme="daylight"] .clinic-queue-bubble:hover { background: #f1f5f9 !important; }
html[data-theme="daylight"] .clinic-bubble-pos { background: #eef1f6 !important; border: 1px solid #e2e8f0 !important; color: #64748b !important; }
html[data-theme="daylight"] .clinic-bubble-ticket { background: #eef1f6 !important; color: #334155 !important; }
html[data-theme="daylight"] .clinic-ticket-priority { color: #a15c00 !important; }
html[data-theme="daylight"] .clinic-bubble-name { color: #334155 !important; }
html[data-theme="daylight"] .clinic-bubble-phone { color: #94a3b8 !important; }
html[data-theme="daylight"] .clinic-bubble-time { color: #94a3b8 !important; }
html[data-theme="daylight"] .clinic-queue-empty { color: #b0bac9 !important; }

html[data-theme="daylight"] .clinic-card-actions { border-top: 1px solid #eef1f6 !important; }
html[data-theme="daylight"] .clinic-btn-prev {
  border: 1px solid #dbe2ea !important; color: #64748b !important; background: #f8fafc !important;
}
html[data-theme="daylight"] .clinic-btn-prev:hover { background: #f1f5f9 !important; color: #1e293b !important; border-color: #cbd5e1 !important; }
html[data-theme="daylight"] .clinic-btn-status {
  border: 1px solid #dbe2ea !important; color: #64748b !important; background: #f8fafc !important;
}
html[data-theme="daylight"] .clinic-btn-status:hover { background: #f1f5f9 !important; color: #1e293b !important; border-color: #cbd5e1 !important; }

html[data-theme="daylight"] .ticket-num { background: #f8fafc !important; border: 1px solid #e2e8f0 !important; }
html[data-theme="daylight"] .ticket-num .ava { color: #94a3b8 !important; }
html[data-theme="daylight"] #ticket_no { color: #1e293b !important; text-shadow: none !important; }
html[data-theme="daylight"] #ticket_no .small { color: #94a3b8 !important; }
html[data-theme="daylight"] .availability-row { border-bottom: 1px solid #eef1f6 !important; }

html[data-theme="daylight"] .notif-available { color: #1b7a3d !important; }
html[data-theme="daylight"] .notif-lunch     { color: #a15c00 !important; }
html[data-theme="daylight"] .notif-away      { color: #c62828 !important; }
html[data-theme="daylight"] .notif-custom    { color: #1565c0 !important; }

html[data-theme="daylight"] .doc-clinic h2 { color: #1e293b !important; }
html[data-theme="daylight"] .doc-clinic .timezone { color: #94a3b8 !important; }

html[data-theme="daylight"] .nav-tabs { border-bottom-color: #e2e8f0 !important; }
html[data-theme="daylight"] .nav-tabs .nav-item.active { background: #f1f5f9 !important; }
html[data-theme="daylight"] .nav-tabs .nav-item.active .nav-link { color: #00838f !important; }
html[data-theme="daylight"] .nav-tabs .nav-link:hover { background: #f1f5f9 !important; color: #1e293b !important; }
html[data-theme="daylight"] .input-daterange div[id^="demo"] { background: #f1f5f9 !important; border: 1px solid #dbe2ea !important; }
html[data-theme="daylight"] .input-daterange div[id^="demo"] span { color: #1e293b !important; }
html[data-theme="daylight"] .clinic-card .table thead th { color: #64748b !important; }
html[data-theme="daylight"] .clinic-card .table td { color: #334155 !important; }

html[data-theme="daylight"] .clinic-config-section { background: #ffffff !important; border: 1px solid #e6eaf0 !important; }
html[data-theme="daylight"] .clinic-config-header { border-bottom: 1px solid #eef1f6 !important; background: #f8fafc !important; }
html[data-theme="daylight"] .clinic-config-header h6 { color: #1e293b !important; }
html[data-theme="daylight"] .clinic-config-header .clinic-config-sub { color: #94a3b8 !important; }

/* Pref. Language multi-select (light) */
html[data-theme="daylight"] .multiselect.dropdown-toggle,
html[data-theme="daylight"] button.multiselect {
  background: #ffffff !important; border: 1px solid #dbe2ea !important; color: #1e293b !important;
}
html[data-theme="daylight"] .multiselect.dropdown-toggle:hover,
html[data-theme="daylight"] .multiselect.dropdown-toggle:focus,
html[data-theme="daylight"] button.multiselect:hover,
html[data-theme="daylight"] button.multiselect:focus {
  background: #ffffff !important; border-color: #1565c0 !important; color: #1e293b !important;
  box-shadow: 0 0 0 2px rgba(21,101,192,0.16) !important;
}
html[data-theme="daylight"] .multiselect .caret { border-top-color: #64748b !important; }
html[data-theme="daylight"] .multiselect-container.dropdown-menu {
  background: #ffffff !important; border: 1px solid #e2e8f0 !important;
  box-shadow: 0 12px 32px rgba(15,23,42,0.14) !important;
}
html[data-theme="daylight"] .multiselect-container.dropdown-menu > li > a { color: #334155 !important; }
html[data-theme="daylight"] .multiselect-container.dropdown-menu > li > a:hover,
html[data-theme="daylight"] .multiselect-container.dropdown-menu > li.active > a {
  background: rgba(21,101,192,0.1) !important; color: #0d47a1 !important;
}
html[data-theme="daylight"] .multiselect-container li.multiselect-item.filter input {
  background: #ffffff !important; border: 1px solid #dbe2ea !important; color: #1e293b !important;
}
html[data-theme="daylight"] .multiselect-container li.multiselect-item.filter .input-group-btn .btn {
  background: #f1f5f9 !important; border: 1px solid #dbe2ea !important; color: #64748b !important;
}
html[data-theme="daylight"] .multiselect-container > li.divider { background: #e2e8f0 !important; }

/* ════════════════ ROYAL — dark indigo, violet accent ════════════════ */
html[data-theme="royal"],
html[data-theme="royal"] body {
  background: linear-gradient(135deg, #120726 0%, #221049 45%, #190c38 75%, #120726 100%) !important;
}
html[data-theme="royal"] body::before {
  background: radial-gradient(circle, #7c4dff 0%, transparent 70%) !important;
}
html[data-theme="royal"] body::after {
  background: radial-gradient(circle, #4527a0 0%, transparent 70%) !important;
}
html[data-theme="royal"] .main-sidebar,
html[data-theme="royal"] .main-sidebar .bg-white,
html[data-theme="royal"] .main-sidebar .main-navbar,
html[data-theme="royal"] .main-sidebar .main-navbar nav,
html[data-theme="royal"] .main-sidebar nav.bg-white {
  background: rgba(14,6,28,0.94) !important;
}
html[data-theme="royal"] .btn-primary,
html[data-theme="royal"] .btn-advertisement,
html[data-theme="royal"] .dataTables_wrapper .dataTables_paginate .paginate_button.current,
html[data-theme="royal"] .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: linear-gradient(135deg, #7c4dff, #5e35b1) !important;
  box-shadow: 0 4px 14px rgba(124,77,255,0.35) !important;
}
html[data-theme="royal"] .btn-primary:hover,
html[data-theme="royal"] .btn-primary:focus {
  background: linear-gradient(135deg, #9575cd, #7c4dff) !important;
  box-shadow: 0 6px 20px rgba(124,77,255,0.5) !important;
}
html[data-theme="royal"] .nav-wrapper .nav-link.active {
  background: linear-gradient(135deg, rgba(124,77,255,0.30), rgba(94,53,177,0.18)) !important;
  border-color: rgba(149,117,205,0.34) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 2px 8px rgba(124,77,255,0.15) !important;
}
html[data-theme="royal"] a { color: #b39ddb !important; }
html[data-theme="royal"] a:hover,
html[data-theme="royal"] .valtop a:hover,
html[data-theme="royal"] .valtop1 a:hover { color: #d1c4e9 !important; }
html[data-theme="royal"] .badge-primary {
  background: rgba(124,77,255,0.20) !important; color: #b388ff !important; border-color: rgba(124,77,255,0.30) !important;
}
html[data-theme="royal"] .badge-info {
  background: rgba(149,117,205,0.18) !important; color: #b39ddb !important; border-color: rgba(149,117,205,0.28) !important;
}
html[data-theme="royal"] .nav-tabs .nav-item.active .nav-link { color: #b388ff !important; }

/* ════════════════ Theme switcher control (injected by theme-switcher.js) ════════════════ */
#qmt-theme-switcher {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 2147483000;
  font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
}
#qmt-theme-toggle {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(20,30,55,0.85);
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .15s, box-shadow .15s;
}
#qmt-theme-toggle:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.55); }
#qmt-theme-toggle .material-icons { font-size: 22px; }
#qmt-theme-menu {
  position: absolute;
  left: 0;
  bottom: 56px;
  min-width: 190px;
  background: rgba(14,26,48,0.97);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  padding: 8px;
  display: none;
}
#qmt-theme-menu.open { display: block; }
#qmt-theme-menu .qmt-theme-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: .6px;
  color: rgba(255,255,255,0.45); padding: 4px 10px 8px;
}
.qmt-theme-opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none; background: transparent;
  color: rgba(255,255,255,0.88);
  font-size: 13.5px; font-weight: 500;
  border-radius: 9px; cursor: pointer;
  text-align: left;
}
.qmt-theme-opt:hover { background: rgba(255,255,255,0.08); }
.qmt-theme-opt.active { background: rgba(255,255,255,0.12); font-weight: 700; }
.qmt-theme-swatch {
  width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.25);
}
.qmt-theme-opt .qmt-theme-check { margin-left: auto; font-size: 16px; opacity: 0; }
.qmt-theme-opt.active .qmt-theme-check { opacity: 1; }
