:root{
--eh-bg:#ffffff;--eh-surface:#ffffff;--eh-soft:#f6f9fc;--eh-soft-2:#eef4fb;--eh-text:#0f172a;--eh-muted:#64748b;--eh-border:#e2e8f0;--eh-header:rgba(255,255,255,.94);--eh-footer:#0b1730;
color-scheme:light;
}
html[data-ehealthcare-theme="dark"]{
--eh-bg:#050a16;--eh-surface:#0d1526;--eh-soft:#111c2e;--eh-soft-2:#16243a;--eh-text:#f1f5f9;--eh-muted:#a5b4c7;--eh-border:#26364d;--eh-header:rgba(13,21,38,.94);--eh-footer:#030814;color-scheme:dark;
}
html,body{min-height:100%;transition:background-color .2s ease,color .2s ease}
body.eh-site{background:var(--eh-bg);color:var(--eh-text)}
.eh-header{background:var(--eh-header);backdrop-filter:blur(18px);border-bottom:1px solid var(--eh-border);transition:background-color .2s,border-color .2s}
.eh-brand-name{color:var(--eh-text)}.eh-brand-name span{color:#2563eb}
.eh-brand-icon{background:#0f172a;color:#60a5fa;box-shadow:0 12px 30px rgba(15,23,42,.18)}
.eh-nav-link{color:var(--eh-muted);font-size:13px;font-weight:800;transition:color .2s}.eh-nav-link:hover{color:#2563eb}
.eh-theme-toggle,.eh-menu-toggle{width:42px;height:42px;border:1px solid var(--eh-border);border-radius:13px;background:var(--eh-surface);color:var(--eh-text);display:inline-flex;align-items:center;justify-content:center;transition:.2s}
.eh-theme-toggle:hover,.eh-menu-toggle:hover{border-color:#60a5fa;color:#2563eb;transform:translateY(-1px)}.eh-menu-toggle{cursor:pointer;touch-action:manipulation}
.eh-menu-toggle{display:inline-flex}.eh-overlay{background:rgba(2,8,23,.55);backdrop-filter:blur(3px);transition:opacity .25s}
.eh-sidebar{background:var(--eh-surface);border-left:1px solid var(--eh-border);box-shadow:-18px 0 50px rgba(2,8,23,.22)}
.eh-sidebar-title{color:var(--eh-text)}.eh-close{width:36px;height:36px;border-radius:12px;background:var(--eh-soft);color:var(--eh-muted)}
.eh-mobile-link{cursor:pointer;display:flex;align-items:center;gap:12px;border-radius:14px;padding:13px 14px;color:var(--eh-text);font-size:14px;font-weight:800}.eh-mobile-link i{width:18px;color:#60a5fa}.eh-mobile-link:hover{background:var(--eh-soft)}
.eh-mobile-primary{background:#0f172a;color:#fff}.eh-mobile-primary i{color:#fff}.eh-mobile-accent{background:#e11d48;color:#fff}.eh-mobile-accent i{color:#fff}
.eh-footer{background:var(--eh-footer);color:#cbd5e1}.eh-footer-heading{color:#fff;font-weight:900;font-size:14px}.eh-footer-link{color:#aebed2;transition:color .2s}.eh-footer-link:hover{color:#fff}
.eh-badge{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(148,163,184,.2);border-radius:999px;padding:7px 10px;color:#9fb1c7;font-size:10px;font-weight:900}.eh-badge i{color:#60a5fa}
.eh-page{background:var(--eh-bg)}.eh-card{background:var(--eh-surface);border:1px solid var(--eh-border);box-shadow:0 16px 45px rgba(15,23,42,.06)}.eh-soft{background:var(--eh-soft)}
.eh-heading{color:var(--eh-text)}.eh-copy{color:var(--eh-muted)}
.eh-input{width:100%;border:1px solid var(--eh-border);background:var(--eh-surface);color:var(--eh-text);border-radius:14px;padding:13px 14px;outline:0}.eh-input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.12)}.eh-input::placeholder{color:#94a3b8}
.bg-white{background-color:var(--eh-surface)!important}.bg-slate-50{background-color:var(--eh-soft)!important}.bg-slate-100{background-color:var(--eh-soft-2)!important}
.text-slate-900,.text-slate-800,.text-slate-700{color:var(--eh-text)!important}.text-slate-600,.text-slate-500{color:var(--eh-muted)!important}
.border-slate-50,.border-slate-100,.border-slate-200{border-color:var(--eh-border)!important}
html[data-ehealthcare-theme="dark"] .bg-slate-900{background-color:#030814!important}html[data-ehealthcare-theme="dark"] .bg-slate-800{background-color:#0d1526!important}
html[data-ehealthcare-theme="dark"] .shadow-sm,html[data-ehealthcare-theme="dark"] .shadow-lg,html[data-ehealthcare-theme="dark"] .shadow-xl,html[data-ehealthcare-theme="dark"] .shadow-2xl{box-shadow:0 18px 55px rgba(0,0,0,.35)!important}
html[data-ehealthcare-theme="dark"] input,html[data-ehealthcare-theme="dark"] select,html[data-ehealthcare-theme="dark"] textarea{background:#0d1526!important;color:#f1f5f9!important;border-color:#2b3b54!important}
html[data-ehealthcare-theme="dark"] select option{background:#0d1526;color:#f1f5f9}
html[data-ehealthcare-theme="dark"] .text-white{color:#fff!important}
@media(max-width:1023px){.eh-nav-link{font-size:12px}}
@media(min-width:1024px){.eh-menu-toggle{display:none}.eh-nav-link{display:inline-flex}}@media(max-width:1023px){.eh-menu-toggle{display:inline-flex}.eh-nav-link{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important;scroll-behavior:auto!important}}


/* Global theme layer: applies to every HTML page, including legacy pages and overlays. */
html[data-ehealthcare-theme="dark"] body{
  background:var(--eh-bg)!important;
  color:var(--eh-text)!important;
}
html[data-ehealthcare-theme="dark"] main,
html[data-ehealthcare-theme="dark"] section,
html[data-ehealthcare-theme="dark"] article,
html[data-ehealthcare-theme="dark"] form,
html[data-ehealthcare-theme="dark"] .card,
html[data-ehealthcare-theme="dark"] .panel,
html[data-ehealthcare-theme="dark"] .container{
  color:var(--eh-text);
}
html[data-ehealthcare-theme="dark"] .bg-white,
html[data-ehealthcare-theme="dark"] .bg-white\/95,
html[data-ehealthcare-theme="dark"] .bg-white\/90,
html[data-ehealthcare-theme="dark"] .bg-white\/80,
html[data-ehealthcare-theme="dark"] .bg-white\/70,
html[data-ehealthcare-theme="dark"] .bg-white\/60,
html[data-ehealthcare-theme="dark"] .bg-white\/50,
html[data-ehealthcare-theme="dark"] .bg-gray-50,
html[data-ehealthcare-theme="dark"] .bg-gray-100{
  background-color:var(--eh-surface)!important;
}
html[data-ehealthcare-theme="dark"] .bg-slate-50,
html[data-ehealthcare-theme="dark"] .bg-gray-100{
  background-color:var(--eh-soft)!important;
}
html[data-ehealthcare-theme="dark"] .bg-slate-100,
html[data-ehealthcare-theme="dark"] .bg-gray-200{
  background-color:var(--eh-soft-2)!important;
}
html[data-ehealthcare-theme="dark"] .bg-slate-900,
html[data-ehealthcare-theme="dark"] .bg-gray-900,
html[data-ehealthcare-theme="dark"] .bg-slate-950{
  background-color:var(--eh-footer)!important;
}
html[data-ehealthcare-theme="dark"] .bg-blue-50{background-color:#102443!important}
html[data-ehealthcare-theme="dark"] .bg-indigo-50{background-color:#171a3a!important}
html[data-ehealthcare-theme="dark"] .bg-emerald-50{background-color:#0c2b21!important}
html[data-ehealthcare-theme="dark"] .bg-green-50{background-color:#0c2b21!important}
html[data-ehealthcare-theme="dark"] .bg-rose-50,
html[data-ehealthcare-theme="dark"] .bg-rose-50\/40{background-color:#32141c!important}
html[data-ehealthcare-theme="dark"] .bg-orange-50{background-color:#302013!important}
html[data-ehealthcare-theme="dark"] .text-slate-900,
html[data-ehealthcare-theme="dark"] .text-slate-800,
html[data-ehealthcare-theme="dark"] .text-slate-700,
html[data-ehealthcare-theme="dark"] .text-gray-900,
html[data-ehealthcare-theme="dark"] .text-gray-800,
html[data-ehealthcare-theme="dark"] .text-gray-700{
  color:#f1f5f9!important;
}
html[data-ehealthcare-theme="dark"] .text-slate-600,
html[data-ehealthcare-theme="dark"] .text-slate-500,
html[data-ehealthcare-theme="dark"] .text-gray-600,
html[data-ehealthcare-theme="dark"] .text-gray-500{
  color:var(--eh-muted)!important;
}
html[data-ehealthcare-theme="dark"] .text-slate-400,
html[data-ehealthcare-theme="dark"] .text-gray-400{
  color:#8290a5!important;
}
html[data-ehealthcare-theme="dark"] .border,
html[data-ehealthcare-theme="dark"] .border-slate-50,
html[data-ehealthcare-theme="dark"] .border-slate-100,
html[data-ehealthcare-theme="dark"] .border-slate-200,
html[data-ehealthcare-theme="dark"] .border-gray-100,
html[data-ehealthcare-theme="dark"] .border-gray-200{
  border-color:var(--eh-border)!important;
}
html[data-ehealthcare-theme="dark"] header,
html[data-ehealthcare-theme="dark"] nav{
  background:var(--eh-header)!important;
  border-color:var(--eh-border)!important;
  color:var(--eh-text)!important;
}
html[data-ehealthcare-theme="dark"] footer,
html[data-ehealthcare-theme="light"] footer{
  background:var(--eh-footer)!important;
}
html[data-ehealthcare-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
html[data-ehealthcare-theme="dark"] select,
html[data-ehealthcare-theme="dark"] textarea,
html[data-ehealthcare-theme="dark"] .field{
  background:var(--eh-surface)!important;
  color:#f1f5f9!important;
  border-color:#2b3b54!important;
}
html[data-ehealthcare-theme="dark"] input::placeholder,
html[data-ehealthcare-theme="dark"] textarea::placeholder{
  color:#718096!important;
}
html[data-ehealthcare-theme="dark"] option{background:var(--eh-surface);color:#f1f5f9}
html[data-ehealthcare-theme="dark"] hr{border-color:var(--eh-border)!important}

/* Legacy inline white surfaces and common page-specific cards. */
html[data-ehealthcare-theme="dark"] [style*="background:#fff"],
html[data-ehealthcare-theme="dark"] [style*="background: #fff"],
html[data-ehealthcare-theme="dark"] [style*="background:white"],
html[data-ehealthcare-theme="dark"] [style*="background: white"],
html[data-ehealthcare-theme="dark"] [style*="background-color:#fff"],
html[data-ehealthcare-theme="dark"] [style*="background-color: #fff"],
html[data-ehealthcare-theme="dark"] [style*="background-color:white"],
html[data-ehealthcare-theme="dark"] [style*="background-color: white"]{
  background:var(--eh-surface)!important;
}
html[data-ehealthcare-theme="dark"] [style*="color:#0f172a"],
html[data-ehealthcare-theme="dark"] [style*="color:#111827"],
html[data-ehealthcare-theme="dark"] [style*="color: #0f172a"],
html[data-ehealthcare-theme="dark"] [style*="color: #111827"]{
  color:#f1f5f9!important;
}

/* Popups, dialogs, drawers, dropdowns and toasts. */
html[data-ehealthcare-theme="dark"] [role="dialog"],
html[data-ehealthcare-theme="dark"] [aria-modal="true"],
html[data-ehealthcare-theme="dark"] [id*="modal"],
html[data-ehealthcare-theme="dark"] [class*="modal"],
html[data-ehealthcare-theme="dark"] [id*="dialog"],
html[data-ehealthcare-theme="dark"] [class*="dialog"],
html[data-ehealthcare-theme="dark"] [id*="popup"],
html[data-ehealthcare-theme="dark"] [class*="popup"],
html[data-ehealthcare-theme="dark"] [id*="drawer"],
html[data-ehealthcare-theme="dark"] [class*="drawer"],
html[data-ehealthcare-theme="dark"] [id*="toast"],
html[data-ehealthcare-theme="dark"] [class*="toast"],
html[data-ehealthcare-theme="dark"] .swal2-popup{
  color:#f1f5f9!important;
}
html[data-ehealthcare-theme="dark"] [role="dialog"] .bg-white,
html[data-ehealthcare-theme="dark"] [aria-modal="true"] .bg-white,
html[data-ehealthcare-theme="dark"] [id*="modal"] .bg-white,
html[data-ehealthcare-theme="dark"] [class*="modal"] .bg-white,
html[data-ehealthcare-theme="dark"] [class*="dialog"] .bg-white,
html[data-ehealthcare-theme="dark"] [class*="popup"] .bg-white,
html[data-ehealthcare-theme="dark"] .swal2-popup{
  background:var(--eh-surface)!important;
  color:var(--eh-text)!important;
  border-color:var(--eh-border)!important;
}
html[data-ehealthcare-theme="dark"] #ehealthcare-dialog-root .eh-dialog{
  background:var(--eh-surface)!important;color:var(--eh-text)!important;border-color:var(--eh-border)!important;
}
html[data-ehealthcare-theme="dark"] #ehealthcare-dialog-root .eh-title{color:#f8fafc!important}
html[data-ehealthcare-theme="dark"] #ehealthcare-dialog-root .eh-message{color:var(--eh-muted)!important}
html[data-ehealthcare-theme="dark"] #ehealthcare-dialog-root .eh-cancel{background:#1f2937!important;color:#dbe5f1!important}
html[data-ehealthcare-theme="dark"] #ehealthcare-dialog-root .eh-icon.info{background:#102443!important}
html[data-ehealthcare-theme="dark"] #ehealthcare-dialog-root .eh-icon.warning{background:#302013!important}
html[data-ehealthcare-theme="dark"] #ehealthcare-dialog-root .eh-icon.danger{background:#32141c!important}

/* Common dropdown/menu surfaces. */
html[data-ehealthcare-theme="dark"] .dropdown,
html[data-ehealthcare-theme="dark"] .dropdown-menu,
html[data-ehealthcare-theme="dark"] [class*="dropdown"],
html[data-ehealthcare-theme="dark"] [id*="dropdown"],
html[data-ehealthcare-theme="dark"] [class*="menu"]{
  color:var(--eh-text);
}
html[data-ehealthcare-theme="dark"] [class*="dropdown"] .bg-white,
html[data-ehealthcare-theme="dark"] [id*="dropdown"] .bg-white{
  background:var(--eh-surface)!important;
}

/* Theme control when it is injected into legacy headers. */
.eh-global-theme-toggle{
  flex:0 0 auto;
  margin-left:8px;
  width:42px!important;height:42px!important;
  border:1px solid var(--eh-border)!important;
  border-radius:13px!important;
  background:var(--eh-surface)!important;
  color:var(--eh-text)!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  box-shadow:0 6px 18px rgba(15,23,42,.08);
  cursor:pointer;
}
.eh-global-theme-toggle:hover{border-color:#60a5fa!important;color:#2563eb!important}

html[data-ehealthcare-theme="dark"] .modal-content,
html[data-ehealthcare-theme="dark"] .dialog-content,
html[data-ehealthcare-theme="dark"] .popup-content,
html[data-ehealthcare-theme="dark"] .drawer-content,
html[data-ehealthcare-theme="dark"] .toast,
html[data-ehealthcare-theme="dark"] [role="dialog"] > div,
html[data-ehealthcare-theme="dark"] [aria-modal="true"] > div{
  background:var(--eh-surface)!important;
  color:var(--eh-text)!important;
  border-color:var(--eh-border)!important;
}
html[data-ehealthcare-theme="dark"] .gradient-bg,
html[data-ehealthcare-theme="dark"] [class*="bg-gradient-to"]{
  background-color:var(--eh-bg)!important;
}
html[data-ehealthcare-theme="dark"] .bg-white\/5,
html[data-ehealthcare-theme="dark"] .bg-white\/10,
html[data-ehealthcare-theme="dark"] .bg-white\/20{
  background-color:rgba(255,255,255,.08)!important;
}
