/* Y KHOA HOANG QUAN | CLINIC SUITE 4.4.7
 * Uses the same resolved state as the YKHQ Flatsome child theme:
 *   <html data-ykhq-theme="light|dark" data-ykhq-mode="system|light|dark">
 * The theme owns the switch and persistence. No duplicated toggle/JS is added.
 * Dark colors are scoped to Clinic Suite elements; WordPress Admin is unchanged.
 * Screen only: printed appointment/gout documents keep their white backgrounds.
 */
@media screen {
html[data-ykhq-theme="dark"] {
  --ykhq-cl-bg: #0b1521;
  --ykhq-cl-panel: #172636;
  --ykhq-cl-panel-2: #1b3042;
  --ykhq-cl-field: #132637;
  --ykhq-cl-border: #35495b;
  --ykhq-cl-text: #e9f1f9;
  --ykhq-cl-heading: #eff7ff;
  --ykhq-cl-muted: #b7c8d7;
  --ykhq-cl-green: #77dfbd;
  --ykhq-cl-green-bg: #173b35;
  --ykhq-cl-gold: #eccb7c;
  --ykhq-cl-gold-bg: #392e20;
  --ykhq-cl-red: #ffd1d1;
  --ykhq-cl-red-bg: #45272e;
}

/* ========================================================================
   PUBLIC BOOKING — [ykhq_public_booking], including confirmation and modals
   ======================================================================== */
html[data-ykhq-theme="dark"] .bshqpb132-page {
  --primary: var(--ykhq-cl-green);
  --primary-deep: #35b899;
  --primary-soft: var(--ykhq-cl-green-bg);
  --navy: var(--ykhq-cl-heading);
  --navy-deep: #d1e5f7;
  --navy-soft: #21394e;
  --gold: var(--ykhq-cl-gold);
  --bg: var(--ykhq-cl-bg);
  --surface: var(--ykhq-cl-panel);
  --text: var(--ykhq-cl-text);
  --muted: var(--ykhq-cl-muted);
  --line: var(--ykhq-cl-border);
  --line-soft: #30475a;
  --shadow-sm: 0 3px 12px rgba(0,0,0,.16);
  --shadow-md: 0 10px 30px rgba(0,0,0,.23);
  --shadow-lg: 0 22px 60px rgba(0,0,0,.35);
  background: radial-gradient(circle at 15% 0%, rgba(41,133,116,.14), transparent 36%), var(--bg) !important;
  color: var(--text) !important;
}
html[data-ykhq-theme="dark"] .bshqpb132-page :is(.bshqpb132-card,.bshqpb132-panel,.bshqpb132-price-strip,.bshqpb132-selected,.bshqpb132-contact,.bshqpb132-topbar,.bshqpb132-success-card,.bshqpb132-modal-panel,.bshqpb132-alert) {
  background-color: var(--ykhq-cl-panel) !important;
  border-color: var(--ykhq-cl-border) !important;
  color: var(--ykhq-cl-text) !important;
}
html[data-ykhq-theme="dark"] .bshqpb132-page :is(.bshqpb132-body,.bshqpb132-desktop-slots,.bshqpb132-success-item,.bshqpb132-captcha,.bshqpb132-modal-head,.bshqpb132-modal-foot,.bshqpb132-contact-head,.bshqpb132-contact .bshqpb132-actions) {
  background: var(--ykhq-cl-panel-2) !important;
  border-color: var(--ykhq-cl-border) !important;
  color: var(--ykhq-cl-text) !important;
}
html[data-ykhq-theme="dark"] .bshqpb132-page .bshqpb132-location-card {
  background: linear-gradient(180deg,#213849,#182a3a) !important;
  border-color: var(--ykhq-cl-border) !important;
}
html[data-ykhq-theme="dark"] .bshqpb132-page :is(.bshqpb132-date,.bshqpb132-slot,.bshqpb132-btn.secondary,.bshqpb132-contact-close,.bshqpb132-modal-close) {
  background: #1d3345 !important;
  color: var(--ykhq-cl-heading) !important;
  border-color: #40576a !important;
}
html[data-ykhq-theme="dark"] .bshqpb132-page :is(.bshqpb132-input,.bshqpb132-textarea,select,input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),textarea) {
  background: var(--ykhq-cl-field) !important;
  color: var(--ykhq-cl-text) !important;
  border-color: #4a6578 !important;
}
html[data-ykhq-theme="dark"] .bshqpb132-page :is(input,textarea)::placeholder { color: #adc0d0 !important; opacity: 1; }
html[data-ykhq-theme="dark"] .bshqpb132-page :is(input,select,textarea,button,a):focus-visible { outline: 3px solid #f0c97a !important; outline-offset: 2px; }
html[data-ykhq-theme="dark"] .bshqpb132-page :is(.bshqpb132-step-num,.bshqpb132-btn.primary,.bshqpb132-gout-online-btn) {
  background: #086e58 !important; color: #fff !important;
}
html[data-ykhq-theme="dark"] .bshqpb132-page :is(.bshqpb132-date.has-selection,.bshqpb132-slot.selected .bshqpb132-slot-meta) {
  background: linear-gradient(135deg,#0b6658,#124c67) !important; color:#fff !important; border-color:#68cfb1 !important;
}
html[data-ykhq-theme="dark"] .bshqpb132-page .bshqpb132-date.has-selection :is(.bshqpb132-date-dow,.bshqpb132-date-full,.bshqpb132-date-sep) { color:#fff !important; }
html[data-ykhq-theme="dark"] .bshqpb132-page .bshqpb132-slot.selected { background: #153b37 !important; border-color: #70dcba !important; }
html[data-ykhq-theme="dark"] .bshqpb132-page .bshqpb132-slot-time { color: var(--ykhq-cl-green) !important; }
html[data-ykhq-theme="dark"] .bshqpb132-page :is(.bshqpb132-location-icon,.bshqpb132-selected-icon) { background: var(--ykhq-cl-green-bg) !important; }
html[data-ykhq-theme="dark"] .bshqpb132-page :is(.bshqpb132-step-label,.bshqpb132-contact-title,.bshqpb132-contact .bshqpb132-field label,.bshqpb132-success-item b,.bshqpb132-captcha-question,.bshqpb132-schedule-empty-title,.bshqpb132-modal-title,.bshqpb132-gout-online-title,.bshqpb132-price-value,.bshqpb132-price-compact-value,.ykhqpb-alt-text) { color: var(--ykhq-cl-heading) !important; }
html[data-ykhq-theme="dark"] .bshqpb132-page :is(.bshqpb132-price-label,.bshqpb132-price-note,.bshqpb132-price-compact-label,.bshqpb132-price-compact-note,.bshqpb132-contact-sub,.bshqpb132-success-item span,.bshqpb132-success-item em,.bshqpb132-captcha-hint,.bshqpb132-modal-sub,.bshqpb132-modal-foot,.bshqpb132-location-address,.bshqpb132-location-multi,.bshqpb132-schedule-empty-text) { color: var(--ykhq-cl-muted) !important; }
html[data-ykhq-theme="dark"] .bshqpb132-page :is(.bshqpb132-note,.bshqpb132-price-upcoming,.bshqpb132-price-compact-next,.bshqpb132-success-note,.bshqpb132-schedule-empty) {
  background: var(--ykhq-cl-gold-bg) !important; border-color:#846a41 !important; color:#ffe0a4 !important;
}
html[data-ykhq-theme="dark"] .bshqpb132-page :is(.bshqpb132-alert.ok) { background: #173f34 !important; border-color: #417e68 !important; color:#bff5d8 !important; }
html[data-ykhq-theme="dark"] .bshqpb132-page :is(.bshqpb132-alert.err,.bshqpb132-error-inline) { background:var(--ykhq-cl-red-bg) !important; border-color:#975765 !important; color:var(--ykhq-cl-red) !important; }
html[data-ykhq-theme="dark"] .bshqpb132-page :is(.bshqpb132-gout-online,.ykhqpb-alt-suggestion) { background:linear-gradient(90deg,#173a34,#1a3042) !important; border-color:#37645e !important; color:var(--ykhq-cl-text) !important; }
html[data-ykhq-theme="dark"] .bshqpb132-page :is(.bshqpb132-gout-online-text b,.ykhqpb-alt-kicker) {color:var(--ykhq-cl-green) !important;}
html[data-ykhq-theme="dark"] .bshqpb132-page :is(.bshqpb132-gout-online-text,.ykhqpb-alt-text) {color:var(--ykhq-cl-muted) !important;}
html[data-ykhq-theme="dark"] .bshqpb132-page .bshqpb132-success-card h3 { color:var(--ykhq-cl-heading) !important; }
html[data-ykhq-theme="dark"] .bshqpb132-page .bshqpb132-hero { background:linear-gradient(135deg,#071b30,#103752 52%,#0c5849) !important; }
html[data-ykhq-theme="dark"] .bshqpb132-page .bshqpb132-topbar-mark {background:linear-gradient(135deg,#143d67,#0c715a) !important;color:#fff !important;}

/* ========================================================================
   DOCTOR BIO — desktop + compact mobile [ykhq_doctor_bio]
   ======================================================================== */
html[data-ykhq-theme="dark"] body.ykhq-mobile-bio-page,
html[data-ykhq-theme="dark"] body.ykhq-mobile-bio-page :is(#wrapper,#main,.page-wrapper) { background:var(--ykhq-cl-bg) !important; }
html[data-ykhq-theme="dark"] .ykhq-profile {
  --navy: var(--ykhq-cl-heading);
  --green: var(--ykhq-cl-green);
  --green2: #7ce0bf;
  --text: var(--ykhq-cl-text);
  --muted: var(--ykhq-cl-muted);
  --line: var(--ykhq-cl-border);
  --soft: var(--ykhq-cl-panel-2);
  --cream: var(--ykhq-cl-bg);
  background:var(--ykhq-cl-bg) !important;
  color:var(--ykhq-cl-text) !important;
}
html[data-ykhq-theme="dark"] .ykhq-profile :is(.ykhq-p-photo,.ykhq-p-strength,.ykhq-p-deep-card,.ykhq-p-clinical-row) {
  background:var(--ykhq-cl-panel) !important; border-color:var(--ykhq-cl-border) !important;
}
html[data-ykhq-theme="dark"] .ykhq-profile :is(.ykhq-p-deep-card.green,.ykhq-p-credential-icon,.ykhq-p-strength-num) {background:#173c35 !important;}
html[data-ykhq-theme="dark"] .ykhq-profile .ykhq-p-deep-card.navy {background:#1a3347 !important;}
html[data-ykhq-theme="dark"] .ykhq-profile :is(.ykhq-p-name,.ykhq-p-section h2,.ykhq-p-strength h3,.ykhq-p-deep-card h2,.ykhq-p-clinical-values,.ykhq-p-credential-values,.ykhq-p-book-meta strong,.ykhq-p-next-day strong) {color:var(--ykhq-cl-heading) !important;}
html[data-ykhq-theme="dark"] .ykhq-profile :is(.ykhq-p-tagline,.ykhq-p-location,.ykhq-p-section p,.ykhq-p-section li,.ykhq-p-deep-card li,.ykhq-p-philosophy-text p,.ykhq-p-credential-label,.ykhq-p-book-meta,.ykhq-p-bookbox-empty) {color:var(--ykhq-cl-muted) !important;}
html[data-ykhq-theme="dark"] .ykhq-profile :is(.ykhq-p-credentials,.ykhq-p-credential,.ykhq-p-top,.ykhq-p-section) {border-color:var(--ykhq-cl-border) !important;}
html[data-ykhq-theme="dark"] .ykhq-profile .ykhq-p-btn {background:#08715b !important;color:#fff !important;}
html[data-ykhq-theme="dark"] .ykhq-profile .ykhq-p-status.open {background:#173a34 !important;color:#a8f1d0 !important;}
html[data-ykhq-theme="dark"] .ykhq-profile .ykhq-p-status.busy {background:#40331f !important;color:#ffe0a4 !important;}
html[data-ykhq-theme="dark"] .ykhq-profile .ykhq-p-status.full {background:#492832 !important;color:#ffcdd1 !important;}
html[data-ykhq-theme="dark"] .ykhq-profile .ykhq-p-status.unknown,
html[data-ykhq-theme="dark"] .ykhq-profile .ykhq-p-status.ended {background:#293b4b !important;color:#c4d2df !important;}
html[data-ykhq-theme="dark"] .ykhq-profile-mobile .bshq-bio-v2 :is(.summary,.specialty,.single-location,.empty-schedule) {background:var(--ykhq-cl-panel) !important;color:var(--ykhq-cl-text) !important;border-color:var(--ykhq-cl-border) !important;}
html[data-ykhq-theme="dark"] .ykhq-profile-mobile .bshq-bio-v2 :is(.name,.section-title,.schedule-dow,.session-period) {color:var(--ykhq-cl-heading) !important;}
html[data-ykhq-theme="dark"] .ykhq-profile-mobile .bshq-bio-v2 :is(.bio-trust,.schedule-date,.day-place,.session-time) {color:var(--ykhq-cl-muted) !important;}
html[data-ykhq-theme="dark"] .ykhq-profile-mobile .bshq-bio-v2 .booking {background:#0b7059 !important;color:#fff !important;}
html[data-ykhq-theme="dark"] .ykhq-profile-mobile .bshq-bio-v2 .booking :is(.section-title,.section-title .ico,.contact-label,.contact-value,.booking-note) {color:#fff !important;}
html[data-ykhq-theme="dark"] .ykhq-profile-mobile .bshq-bio-v2 .session-status.full {background:#4b2932 !important;color:#ffd1d1 !important;}

/* ========================================================================
   GOUT ONLINE, LABS, WORKBENCH (staff/front-end only; not WP Admin)
   ======================================================================== */
html[data-ykhq-theme="dark"] .ykhq-go { --n:var(--ykhq-cl-heading); --g:var(--ykhq-cl-green); --gold:var(--ykhq-cl-gold); --line:var(--ykhq-cl-border); color:var(--ykhq-cl-text) !important; }
html[data-ykhq-theme="dark"] .ykhq-go :is(.ykhq-go-card,.ykhq-go-row) {background:var(--ykhq-cl-panel) !important;border-color:var(--ykhq-cl-border) !important;color:var(--ykhq-cl-text) !important;}
html[data-ykhq-theme="dark"] .ykhq-go :is(.ykhq-go-card h2,.ykhq-go-row b,.ykhq-go-book label) {color:var(--ykhq-cl-heading) !important;}
html[data-ykhq-theme="dark"] .ykhq-go .ykhq-go-row small {color:var(--ykhq-cl-muted) !important;}
html[data-ykhq-theme="dark"] .ykhq-go :is(input:not([type="checkbox"]),textarea,select) {background:var(--ykhq-cl-field) !important;color:var(--ykhq-cl-text) !important;border-color:#4b6172 !important;}
html[data-ykhq-theme="dark"] .ykhq-go :is(.ykhq-go-btn) {background:#0a725e !important;color:#fff !important;}
html[data-ykhq-theme="dark"] .ykhq-go :is(.ykhq-go-status,.ykhq-go-msg) {background:#173f35 !important;color:#b5f4d7 !important;border-color:#417e68 !important;}
html[data-ykhq-theme="dark"] .ykhq-go .ykhq-go-msg.err {background:var(--ykhq-cl-red-bg) !important;color:var(--ykhq-cl-red) !important;border-color:#855064 !important;}
html[data-ykhq-theme="dark"] .ykhq-go .ykhq-go-note {background:var(--ykhq-cl-gold-bg) !important;color:#ffe0a4 !important;}
html[data-ykhq-theme="dark"] .ykhq-go .ykhq-go-back {background:#1b3b43 !important;color:#baf7dc !important;}
html[data-ykhq-theme="dark"] .ykhq-gw {--gw-navy:var(--ykhq-cl-heading);--gw-green:var(--ykhq-cl-green);--gw-line:var(--ykhq-cl-border);--gw-muted:var(--ykhq-cl-muted);color:var(--ykhq-cl-text) !important;}
html[data-ykhq-theme="dark"] .ykhq-gw :is(.ygw-editor,.ygw-paper,.ygw-history) {background:var(--ykhq-cl-panel) !important;border-color:var(--ykhq-cl-border) !important;color:var(--ykhq-cl-text) !important;}
html[data-ykhq-theme="dark"] .ykhq-gw :is(.ygw-mode label,.ygw-saved-controls,.ygw-reuse) {background:#1c3a36 !important;border-color:#3d655b !important;color:var(--ykhq-cl-text) !important;}
html[data-ykhq-theme="dark"] .ykhq-gw .ygw-review {background:var(--ykhq-cl-gold-bg) !important;border-color:#856c49 !important;color:#ffe0a4 !important;}
html[data-ykhq-theme="dark"] .ykhq-gw :is(h2,h3,h4,legend,summary,.ygw-field,.ygw-paper-footer>b,.ygw-checks label) {color:var(--ykhq-cl-heading) !important;}
html[data-ykhq-theme="dark"] .ykhq-gw :is(.ygw-field input,.ygw-field textarea,.ygw-copy-fallback) {background:var(--ykhq-cl-field) !important;color:var(--ykhq-cl-text) !important;border-color:#4b6172 !important;}
html[data-ykhq-theme="dark"] .ykhq-gw :is(.ygw-button:not(.ygw-secondary)) {background:#0a715b !important;color:#fff !important;border-color:#287e6d !important;}
html[data-ykhq-theme="dark"] .ykhq-gw .ygw-secondary {background:#193547 !important;color:var(--ykhq-cl-green) !important;border-color:#526875 !important;}
html[data-ykhq-theme="dark"] .ykhq-gw .ygw-message {background:#173f35 !important;color:#b5f4d7 !important;}
html[data-ykhq-theme="dark"] .ykhq-gw .ygw-message.is-error {background:var(--ykhq-cl-red-bg) !important;color:var(--ykhq-cl-red) !important;}
html[data-ykhq-theme="dark"] .ykhq-gw .ygw-history a {border-color:var(--ykhq-cl-border) !important;color:var(--ykhq-cl-green) !important;}
html[data-ykhq-theme="dark"] #bshq-gout-screen {color:var(--ykhq-cl-text) !important;}
html[data-ykhq-theme="dark"] #bshq-gout-screen .gs-card {background:var(--ykhq-cl-panel) !important;border-color:var(--ykhq-cl-border) !important;}
html[data-ykhq-theme="dark"] #bshq-gout-screen :is(input,textarea,select) {background:var(--ykhq-cl-field) !important;color:var(--ykhq-cl-text) !important;border-color:#4b6172 !important;}
html[data-ykhq-theme="dark"] #bshq-gout-screen .muted {color:var(--ykhq-cl-muted) !important;}
html[data-ykhq-theme="dark"] #bshq-gout-screen :is(.result,.keep) {background:#193b38 !important;border-color:#43836a !important;}
html[data-ykhq-theme="dark"] #bshq-gout-screen .warn {background:var(--ykhq-cl-gold-bg) !important;border-color:#856c49 !important;color:#ffe0a4 !important;}
html[data-ykhq-theme="dark"] #bshq-gout-screen .btn.alt {background:#223a4d !important;color:var(--ykhq-cl-heading) !important;}

/* ========================================================================
   STAFF OPERATION ON PUBLIC ROUTES — leave wp-admin native theme untouched.
   ======================================================================== */
html[data-ykhq-theme="dark"] body.ykhq-staff-app,
html[data-ykhq-theme="dark"] body.ykhq-staff-app :is(#wrapper,#main,.page-wrapper),
html[data-ykhq-theme="dark"] body.ykhq-staff-app .ykhq-staff-shell {background:var(--ykhq-cl-bg) !important;color:var(--ykhq-cl-text) !important;}
html[data-ykhq-theme="dark"] body.ykhq-staff-app :is(.bshq12,.bshq-sch) {
  --bshq-primary:var(--ykhq-cl-green);
  --bshq-primary-dark:#32af92;
  --bshq-primary-50:#193c34;
  --bshq-primary-100:#1c4438;
  --bshq-teal:#72d7cf;
  --bshq-navy:var(--ykhq-cl-heading);
  --bshq-navy-dark:#d0e3f4;
  --bshq-cream:var(--ykhq-cl-bg);
  --bshq-paper:#1c2d3b;
  --bshq-card:var(--ykhq-cl-panel);
  --bshq-gray:var(--ykhq-cl-muted);
  --bshq-gray-light:#a9bdcd;
  --bshq-gold:var(--ykhq-cl-gold);
  --bshq-gold-bg:var(--ykhq-cl-gold-bg);
  --bshq-border:var(--ykhq-cl-border);
  --bshq-soft-border:#32475a;
  --bshq-text:var(--ykhq-cl-text);
  --bshq-bg:var(--ykhq-cl-bg);
  --g-green-bg:#173a34;
  --g-yellow-bg:#40331f;
  --g-red-bg:#45272e;
  color:var(--ykhq-cl-text) !important;
  background:var(--ykhq-cl-bg) !important;
}
html[data-ykhq-theme="dark"] body.ykhq-staff-app :is(.bshq12-controls,.bshq12-kpi,.bshq12-daychip,.bshq12-call-card,.bshq12-gout-case,.bshq12-gout-summary-card,.bshq12-gout-check-grid label,.bshq12-gout-order-note,.bshq12-gout-crm-head,.bshq12-gout-history-item,.bshq-v4-topbar,.bshq-work-settings,.bshq-calendar-panel) {
  background:var(--ykhq-cl-panel) !important; border-color:var(--ykhq-cl-border) !important; color:var(--ykhq-cl-text) !important;
}
html[data-ykhq-theme="dark"] body.ykhq-staff-app :is(.bshq12-tabs,.bshq12-tab.active,.bshq12-gout-crm-tabs,.bshq12-needcall-empty,.bshq12-gout-staff-keep,.bshq12-daystrip,.bshq12-gout-summary-card) {background:var(--ykhq-cl-panel-2) !important;border-color:var(--ykhq-cl-border) !important;}
html[data-ykhq-theme="dark"] body.ykhq-staff-app :is(.bshq12-input,.bshq12-select,.bshq12-textarea,.bshq-sch-input,.bshq-sch-select,input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),select,textarea) {background:var(--ykhq-cl-field) !important;color:var(--ykhq-cl-text) !important;border-color:#4b6172 !important;}
html[data-ykhq-theme="dark"] body.ykhq-staff-app :is(.bshq12-btn2,.bshq12-btn.outline,.bshq12-btn.ghost) {background:#243a4c !important;color:var(--ykhq-cl-heading) !important;border-color:#4b6172 !important;}
html[data-ykhq-theme="dark"] body.ykhq-staff-app .bshq12-daychip.active {background:#0b5b54 !important;color:#fff !important;border-color:#3e9c8a !important;}
html[data-ykhq-theme="dark"] body.ykhq-staff-app .bshq12-daychip.active :is(.dow,.dn,.ds) {color:#fff !important;}
html[data-ykhq-theme="dark"] body.ykhq-staff-app .bshq12-tab.active {background:#254439 !important;color:#a5efd1 !important;}
html[data-ykhq-theme="dark"] body.ykhq-staff-app :is(.bshq12-btn:not(.danger):not(.gold):not(.navy):not(.outline):not(.ghost),.bshq-sch-btn:not(.light)) {background:#08735d !important;color:#fff !important;}
html[data-ykhq-theme="dark"] body.ykhq-staff-app :is(.bshq12-call-alert,.bshq12-needcall-hint,.bshq12-needcall-dayhead,.bshq12-gout-identity) {background:var(--ykhq-cl-red-bg) !important;color:var(--ykhq-cl-red) !important;border-color:#89515b !important;}
html[data-ykhq-theme="dark"] body.ykhq-staff-app :is(.bshq12-gout-output,.bshq12-gout-book-ready,.bshq12-gout-info-box) {background:#193c37 !important;border-color:#3d7565 !important;color:var(--ykhq-cl-text) !important;}
html[data-ykhq-theme="dark"] body.ykhq-staff-app :is(.bshq12-gout-crm-tabs button.active,.bshq12-gout-status.ready,.bshq12-gout-status.booked) {background:#214c44 !important;color:#b2f3dc !important;}
html[data-ykhq-theme="dark"] body.ykhq-staff-app :is(.bshq12-kpi-val,.bshq12-call-name,.bshq12-gout-case .g-name,.bshq12-gout-summary-card b,.bshq-v4-brand,.bshq-cal-title) {color:var(--ykhq-cl-heading) !important;}
html[data-ykhq-theme="dark"] body.ykhq-staff-app :is(.bshq12-kpi-label,.bshq12-call-meta,.bshq12-ctrl-label,.bshq12-gout-case .g-meta) {color:var(--ykhq-cl-muted) !important;}

/* Hero and blue actions cannot use the light-heading --bshq-navy as a background. */
html[data-ykhq-theme="dark"] body.ykhq-staff-app .bshq12-hero {background:linear-gradient(135deg,#071b30,#123e63 45%,#0e604f) !important;color:#fff !important;}
html[data-ykhq-theme="dark"] body.ykhq-staff-app .bshq12-avatar.consult {background:linear-gradient(135deg,#164c72,#0a7668) !important;color:#fff !important;}
html[data-ykhq-theme="dark"] body.ykhq-staff-app :is(.bshq12-detail-btn:hover,.bshq12-detail-btn.open,.bshq12-quick .bshq12-btn2.reschedule:hover,.bshq12-action-btn.reschedule:hover) {background:#14567a !important;color:#fff !important;}

/* Neutral CRM surfaces and dialogs that hardcode #fff / #f8fafc. */
html[data-ykhq-theme="dark"] body.ykhq-staff-app :is(
 .bshq12-card,.bshq12-book-row,.bshq12-lead-row,.bshq12-search-row,
 .bshq12-side-card,.bshq12-followup-open,.bshq12-followup-action,
 .bshq12-followup-test-grid label,.bshq12-modal,.bshq12-modal-head .close,
 .bshq12-apt-card-time,.bshq12-action-btn,.bshq12-session-block,.bshq12-apt-chip,
 .bshq12-lead-daygroup,.bshq12-needcall-daygroup,.bshq12-needcall-modal .ykhq-modal-body,
 .ykhq-kpi,.ykhq-daychip,.ykhq-controls,.ykhq-card,.ykhq-book-row,.ykhq-lead,
 .ykhq-modal,.ykhq-modal-body,.ykhq-close,.ykhq-followup-tests,.ykhq-doc-select option,
 .ykhq-reschedule-slot,.bshq-cal-weekdays,.bshq-cal-day,.bshq-cal-select-box,
 .bshq-modal,.bshq-bulk
) {background:var(--ykhq-cl-panel) !important;border-color:var(--ykhq-cl-border) !important;color:var(--ykhq-cl-text) !important;}
html[data-ykhq-theme="dark"] body.ykhq-staff-app :is(
 .bshq12-week-item,.bshq12-followup-row:hover,.bshq12-followup-summary>div,
 .bshq12-followup-action.noneed,.bshq12-modal-foot,.bshq12-hour-empty,
 .bshq12-schedule-note,.bshq12-toggle-link,.bshq12-lead-dayhead,
 .ykhq-time,.ykhq-apt-summary,.ykhq-reschedule-empty,.ykhq-reschedule-loading,
 .bshq-v4-pill,.bshq-template-btn,.bshq-modal-foot,.bshq-modal-toggle,
 .bshq-v4-legend span
) {background:var(--ykhq-cl-panel-2) !important;border-color:var(--ykhq-cl-border) !important;color:var(--ykhq-cl-text) !important;}
html[data-ykhq-theme="dark"] body.ykhq-staff-app :is(
 .ykhq-input,.ykhq-select,.ykhq-textarea,.ykhq-input:hover,.ykhq-select:hover,
 .ykhq-textarea:hover,.ykhq-input:focus,.ykhq-select:focus,.ykhq-textarea:focus
) {background:var(--ykhq-cl-field) !important;color:var(--ykhq-cl-text) !important;border-color:#526a7a !important;}
html[data-ykhq-theme="dark"] body.ykhq-staff-app :is(
 .bshq12-btn.navy,.ykhq-btn.navy
) {background:#164f73 !important;color:#fff !important;}
html[data-ykhq-theme="dark"] body.ykhq-staff-app :is(.bshq12-btn.gold) {background:#946322 !important;color:#fff !important;}
html[data-ykhq-theme="dark"] body.ykhq-staff-app :is(.bshq12-btn2,.ykhq-btn2,.bshq-sch-btn.light) {background:#233a4d !important;color:var(--ykhq-cl-heading) !important;border-color:#53687b !important;}
html[data-ykhq-theme="dark"] body.ykhq-staff-app :is(.bshq12-tab-count,.bshq12-detail-btn,.bshq12-meta .tag,.bshq12-apt-card-tag) {background:#2b4356 !important;color:var(--ykhq-cl-heading) !important;}
html[data-ykhq-theme="dark"] body.ykhq-staff-app :is(.bshq12-call-alert .alert-title,.bshq12-call-alert .alert-sub,.bshq12-needcall-hint,.bshq12-needcall-dayhead .title,.bshq12-needcall-dayhead .count) {color:var(--ykhq-cl-red) !important;}
html[data-ykhq-theme="dark"] body.ykhq-staff-app :is(.bshq12-gout-book-ready .ready-title,.bshq12-gout-output h4,.bshq12-gout-output-head .small,.bshq12-gout-visit-chip,.bshq12-gout-crm-tabs button.active) {color:var(--ykhq-cl-green) !important;}
html[data-ykhq-theme="dark"] body.ykhq-staff-app :is(.bshq12-needcall-dayhead,.bshq12-needcall-dayhead .count) {background:var(--ykhq-cl-red-bg) !important;border-color:#9a5666 !important;}
html[data-ykhq-theme="dark"] body.ykhq-staff-app :is(.bshq12-needcall-daygroup) {border-color:#794654 !important;}

/* ========================================================================
   Standalone pages: /kien-thuc-gout and /danh-gia-sau-kham-gout
   These bypass wp_head(), so a tiny bootstrap reads the theme's saved mode.
   ======================================================================== */
html[data-ykhq-theme="dark"] body.ykhq-clinic-standalone {background:var(--ykhq-cl-bg) !important;color:var(--ykhq-cl-text) !important;}
html[data-ykhq-theme="dark"] .kg-wrap :is(details,.kg-nav a,.kg-food>div,.kg-targets>div) {background:var(--ykhq-cl-panel) !important;border-color:var(--ykhq-cl-border) !important;color:var(--ykhq-cl-text) !important;}
html[data-ykhq-theme="dark"] .kg-wrap :is(.kg-note,.kg-source,footer,footer strong,summary span) {color:var(--ykhq-cl-muted) !important;}
html[data-ykhq-theme="dark"] .kg-wrap :is(a,.kg-targets strong) {color:#86e1c2 !important;}
html[data-ykhq-theme="dark"] .kg-wrap .kg-remember {background:var(--ykhq-cl-gold-bg) !important;color:#ffe5b4 !important;}
html[data-ykhq-theme="dark"] .kg-wrap .kg-urgent {border-color:#915b60 !important;}
html[data-ykhq-theme="dark"] .kg-wrap .kg-urgent summary {color:#ffd2d2 !important;}
html[data-ykhq-theme="dark"] .kg-wrap .kg-hero {background:linear-gradient(140deg,#123344,#0d4b44) !important;color:#fff !important;}
html[data-ykhq-theme="dark"] .kg-wrap .kg-hero p {color:#e3f3ef !important;}
html[data-ykhq-theme="dark"] .kg-wrap .kg-hero :is(button,a) {color:#163744 !important;}
html[data-ykhq-theme="dark"] .kg-wrap .kg-actions button+button {background:#dbe9e8 !important;}
html[data-ykhq-theme="dark"] .gr-wrap .gr-card,
html[data-ykhq-theme="dark"] .gr-wrap dialog {background:var(--ykhq-cl-panel) !important;border-color:var(--ykhq-cl-border) !important;color:var(--ykhq-cl-text) !important;}
html[data-ykhq-theme="dark"] .gr-wrap :is(.gr-kicker,.gr-muted) {color:var(--ykhq-cl-muted) !important;}
html[data-ykhq-theme="dark"] .gr-wrap :is(fieldset,.gr-stars span,.gr-options label,textarea) {background:var(--ykhq-cl-field) !important;border-color:var(--ykhq-cl-border) !important;color:var(--ykhq-cl-text) !important;}
html[data-ykhq-theme="dark"] .gr-wrap .gr-stars input:checked+span {background:#493a26 !important;color:#ffe0a4 !important;border-color:#d1a960 !important;}
html[data-ykhq-theme="dark"] .gr-wrap .gr-target {background:#1e3748 !important;color:var(--ykhq-cl-text) !important;}
html[data-ykhq-theme="dark"] .gr-wrap .gr-learning {background:#173c35 !important;color:#a9f0d1 !important;}
html[data-ykhq-theme="dark"] .gr-wrap .gr-link {color:#89e3c3 !important;}
html[data-ykhq-theme="dark"] .gr-wrap .gr-error {background:var(--ykhq-cl-red-bg) !important;color:var(--ykhq-cl-red) !important;}
html[data-ykhq-theme="dark"] .gr-wrap button.gr-button {background:#0a705a !important;color:#fff !important;}

/* ========================================================================
   4.4.10 BOOKING CONTRAST FIX (verified against public booking source)
   The booking form uses pale heading CSS tokens in dark mode, while some
   independently-styled components retained white backgrounds. The overrides
   below change BOTH foreground and background for these specific components.
   No light-mode styles are touched, and no logic/data are modified.
   ======================================================================== */
/* 4.4.10: Public booking contrast hotfix: doctor picker + badges. */
html[data-ykhq-theme="dark"] .bshqpb132-page .ykhqpb-selected-doctor {
  background:var(--ykhq-cl-panel) !important;
  border-color:var(--ykhq-cl-border) !important;
  border-left-color:var(--ykhq-cl-green) !important;
  color:var(--ykhq-cl-text) !important;
}
html[data-ykhq-theme="dark"] .bshqpb132-page .ykhqpb-selected-avatar {
  background:#264554 !important;border-color:#426578 !important;color:var(--ykhq-cl-green) !important;
}
html[data-ykhq-theme="dark"] .bshqpb132-page .ykhqpb-selected-name {color:var(--ykhq-cl-heading) !important;}
html[data-ykhq-theme="dark"] .bshqpb132-page .ykhqpb-selected-specialty {color:var(--ykhq-cl-muted) !important;}
html[data-ykhq-theme="dark"] .bshqpb132-page .ykhqpb-selected-kicker {color:var(--ykhq-cl-green) !important;}
html[data-ykhq-theme="dark"] .bshqpb132-page .ykhqpb-selected-fee {color:#f5d58b !important;}
html[data-ykhq-theme="dark"] .bshqpb132-page .ykhqpb-change-doctor {
  background:#254255 !important;color:#e7f3ff !important;border-color:#547084 !important;
}
html[data-ykhq-theme="dark"] .bshqpb132-page .ykhqpb-change-doctor:hover,
html[data-ykhq-theme="dark"] .bshqpb132-page .ykhqpb-change-doctor:focus-visible {
  background:#155b50 !important;color:#fff !important;border-color:#7ed7b9 !important;
}
/* Doctor picker modal: matching background and typography, not just text. */
html[data-ykhq-theme="dark"] .bshqpb132-page .ykhqpb-doctor-panel {
  background:var(--ykhq-cl-panel) !important;
  border:1px solid var(--ykhq-cl-border) !important;
  color:var(--ykhq-cl-text) !important;
}
html[data-ykhq-theme="dark"] .bshqpb132-page .ykhqpb-doctor-modal-head {
  background:linear-gradient(180deg,#1c3446,#172636) !important;
  border-color:var(--ykhq-cl-border) !important;
  color:var(--ykhq-cl-text) !important;
}
html[data-ykhq-theme="dark"] .bshqpb132-page .ykhqpb-doctors {
  background:#101e2d !important;
}
html[data-ykhq-theme="dark"] .bshqpb132-page .ykhqpb-doctor {
  background:var(--ykhq-cl-panel) !important;
  border-color:var(--ykhq-cl-border) !important;
  color:var(--ykhq-cl-text) !important;
}
html[data-ykhq-theme="dark"] .bshqpb132-page .ykhqpb-doctor.active {
  background:#1b3745 !important;border-color:#75dcb8 !important;
  box-shadow:0 0 0 2px rgba(117,220,184,.18) !important;
}
html[data-ykhq-theme="dark"] .bshqpb132-page .ykhqpb-doctor:hover {
  background:#223b4d !important;border-color:#84dfc0 !important;
}
html[data-ykhq-theme="dark"] .bshqpb132-page .ykhqpb-doctor-avatar {
  background:#244053 !important;color:var(--ykhq-cl-green) !important;border-color:#456478 !important;
}
html[data-ykhq-theme="dark"] .bshqpb132-page .ykhqpb-doctor-fit {
  background:var(--ykhq-cl-field) !important;border-color:var(--ykhq-cl-border) !important;
}
html[data-ykhq-theme="dark"] .bshqpb132-page .ykhqpb-doctor-foot {border-color:var(--ykhq-cl-border) !important;}
html[data-ykhq-theme="dark"] .bshqpb132-page :is(
  .ykhqpb-doctor-modal-title,.ykhqpb-doctor-copy b,.ykhqpb-doctor-fit-title
) {color:var(--ykhq-cl-heading) !important;}
html[data-ykhq-theme="dark"] .bshqpb132-page :is(
  .ykhqpb-doctor-modal-sub,.ykhqpb-doctor-tagline,.ykhqpb-doctor-fit-item
) {color:#d2e2ee !important;}
html[data-ykhq-theme="dark"] .bshqpb132-page :is(
  .ykhqpb-doctor-modal-kicker,.ykhqpb-doctor-copy small,.ykhqpb-doctor-choose
) {color:#89e8c8 !important;}
html[data-ykhq-theme="dark"] .bshqpb132-page .ykhqpb-doctor-price {color:#f6d58b !important;}
html[data-ykhq-theme="dark"] .bshqpb132-page .ykhqpb-doctor-modal-close {
  background:#2b4255 !important;color:#f0f7ff !important;border:1px solid #486478 !important;
}
html[data-ykhq-theme="dark"] .bshqpb132-page .ykhqpb-doctor-help {
  background:#173a34 !important;color:#c0f5df !important;border-color:#376c5c !important;
}
/* Neutral slate chip; selected chip must have white-on-DEEP-green, not white-on-mint. */
html[data-ykhq-theme="dark"] .bshqpb132-page .bshqpb132-slot-meta {
  background:#30485c !important;color:#f1f7fe !important;
  border:1px solid #4d6478 !important;
}
html[data-ykhq-theme="dark"] .bshqpb132-page .bshqpb132-slot.selected .bshqpb132-slot-meta {
  background:#086652 !important;color:#fff !important;border-color:#1b8b73 !important;
}
html[data-ykhq-theme="dark"] .bshqpb132-page .bshqpb132-slot.selected .bshqpb132-slot-time {
  color:#b2f4df !important;
}
}
