/* Workspace palettes keyed to the sign-in theme. Work surfaces stay light for legibility. */
[data-login-theme="hospital-night"]{--bvd-chrome:#102f50;--bvd-accent:#165f91;--bvd-bg:#e9f2f8;--bvd-soft:#edf6fb;--bvd-line:#b9cfdf}
[data-login-theme="medical-green"]{--bvd-chrome:#144d40;--bvd-accent:#09654d;--bvd-bg:#e7f3ec;--bvd-soft:#eff8f3;--bvd-line:#b2cdbf}
[data-login-theme="digital-purple"]{--bvd-chrome:#292051;--bvd-accent:#6240ae;--bvd-bg:#f0eaf8;--bvd-soft:#f7f1fc;--bvd-line:#cbbce1}
[data-login-theme="it-red"]{--bvd-chrome:#29222b;--bvd-accent:#a22f40;--bvd-bg:#f4eaed;--bvd-soft:#fcf1f4;--bvd-line:#d9bcc5}
[data-login-theme="office-blue"]{--bvd-chrome:#143b68;--bvd-accent:#155eb8;--bvd-bg:#e8f1fc;--bvd-soft:#f0f6ff;--bvd-line:#b7cce5}
[data-login-theme="cloud-indigo"]{--bvd-chrome:#242c69;--bvd-accent:#4a45ae;--bvd-bg:#eaeefa;--bvd-soft:#f2f4ff;--bvd-line:#bdc5e7}
[data-login-theme="medical-ai"]{--bvd-chrome:#092d43;--bvd-accent:#056682;--bvd-bg:#e1f2f7;--bvd-soft:#edf9fc;--bvd-line:#a9cbd8}
[data-login-theme="electronic-record"]{--bvd-chrome:#174c43;--bvd-accent:#087259;--bvd-bg:#e3f4ed;--bvd-soft:#effaf4;--bvd-line:#a9cebf}
[data-login-theme="hospital-cloud"]{--bvd-chrome:#142d72;--bvd-accent:#1259b4;--bvd-bg:#e7efff;--bvd-soft:#eef5ff;--bvd-line:#afc4e4}
[data-login-theme="radiology"]{--bvd-chrome:#232d49;--bvd-accent:#5847ac;--bvd-bg:#ecebfa;--bvd-soft:#f5f3ff;--bvd-line:#c2bce1}
[data-login-theme="cyber-health"]{--bvd-chrome:#103630;--bvd-accent:#116d49;--bvd-bg:#e2f1e9;--bvd-soft:#eef9f1;--bvd-line:#abcdbb}

@media screen {
body:is(.hospital-theme,.bvd-auth-secondary,.bvd-camera-page,.bvd-sheet-page)[data-login-theme]{
  --primary:var(--bvd-accent);--primary-dark:var(--bvd-chrome);--sidebar-bg:var(--bvd-chrome);
  --py-navy:var(--bvd-chrome);--py-blue:var(--bvd-accent);--py-bg:var(--bvd-bg);--py-border:var(--bvd-line);
  --bs-primary:var(--bvd-accent);--bs-link-color:var(--bvd-accent);--bs-link-hover-color:var(--bvd-chrome);
  --bvd-field-line:color-mix(in srgb,var(--bvd-accent) 75%,white);
  --audit-navy:var(--bvd-chrome);--ui-ring:0 0 0 3px var(--bvd-line);
  background:var(--bvd-bg)!important;
}
body.hospital-theme[data-login-theme] :is(.topbar,.sidebar,.mob-header){background:var(--bvd-chrome)!important;border-color:var(--bvd-accent)!important}
body.hospital-theme.layout-top[data-login-theme] .topbar .desktop-topnav{background:var(--bvd-chrome)!important}
body.hospital-theme.layout-top[data-login-theme] .topbar .desktop-topnav .nav-dd>.nav-menu{border-color:var(--bvd-line)!important;color:var(--bvd-chrome)!important}
body.hospital-theme.layout-top[data-login-theme] .topbar .desktop-topnav .nav-dd>.nav-menu a{color:var(--bvd-chrome)!important;border-bottom-color:var(--bvd-soft)!important}
body.hospital-theme.layout-top[data-login-theme] .topbar .desktop-topnav .nav-dd>.nav-menu a i{color:var(--bvd-accent)!important}
body.hospital-theme.layout-top[data-login-theme] .topbar .desktop-topnav .nav-dd>.nav-menu a:is(:hover,:focus-visible){background:var(--bvd-soft)!important;color:var(--bvd-chrome)!important}
body.hospital-theme[data-login-theme] :is(.sidebar-nav a:is(.active,:hover),.topbar .desktop-topnav .nav-main:is(:hover,:focus-visible),.topbar .desktop-topnav .nav-dd.open .nav-main){background:var(--bvd-accent)!important;border-color:var(--bvd-line)!important;outline-color:var(--bvd-line)!important}
body.hospital-theme[data-login-theme] :is(.card,.db-card,.stat-card,.hospital-setting-card,.modal-content,.offcanvas,.system-footer){border-color:var(--bvd-line)!important}
body.hospital-theme[data-login-theme] :is(.card-header:not(.bg-warning-subtle,.bg-danger-subtle,.bg-success-subtle,.bg-info-subtle),.db-card .db-card-header,.modal-header,.table thead th),
body.bvd-auth-secondary[data-login-theme] .card-header{background:var(--bvd-chrome)!important;color:#fff!important;border-color:var(--bvd-line)!important}
body.hospital-theme[data-login-theme] .modal-header :is(h1,h2,h3,h4,h5,h6,.modal-title){color:inherit!important}
body.hospital-theme[data-login-theme] .table tbody td{border-color:var(--bvd-line)!important}
body.hospital-theme[data-login-theme] .table tbody tr:nth-child(even){background:var(--bvd-soft)!important}
body.hospital-theme[data-login-theme] .table tbody tr:hover{background:var(--bvd-soft)!important;box-shadow:inset 3px 0 var(--bvd-accent)}
body.hospital-theme[data-login-theme] .system-footer{background:var(--bvd-soft)!important}
body.hospital-theme[data-login-theme] .main-content :is(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4):not(.text-white){color:var(--bvd-chrome)}
body.hospital-theme[data-login-theme] :is(.stat-value,.text-primary,.form-label),body.bvd-auth-secondary[data-login-theme] .text-primary{color:var(--bvd-accent)!important}
body.hospital-theme[data-login-theme] :is(.card-header,.db-card-header,.modal-header) :is(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.text-primary){color:inherit!important}
body:is(.hospital-theme,.bvd-auth-secondary,.bvd-camera-page,.bvd-sheet-page)[data-login-theme] :is(.form-control,.form-select,.form-check-input){border-color:#728596!important;border-color:var(--bvd-field-line,#728596)!important}
body:is(.hospital-theme,.bvd-auth-secondary,.bvd-camera-page,.bvd-sheet-page)[data-login-theme] :is(.form-control,.form-select,.form-check-input):focus{border-color:var(--bvd-accent)!important;box-shadow:var(--ui-ring)!important;outline-color:var(--bvd-accent)!important}
body.hospital-theme[data-login-theme] :is(.btn,a,[tabindex]):focus-visible{outline-color:var(--bvd-accent)!important}
body:is(.hospital-theme,.bvd-auth-secondary,.bvd-camera-page,.bvd-sheet-page)[data-login-theme] .form-check-input:checked{background-color:var(--bvd-accent)!important;border-color:var(--bvd-accent)!important}
body.hospital-theme[data-login-theme] .input-group-text{background:var(--bvd-soft)!important;border-color:var(--bvd-line)!important;color:var(--bvd-chrome)!important}
body:is(.hospital-theme,.bvd-auth-secondary,.bvd-camera-page,.bvd-sheet-page)[data-login-theme] :is(.btn-primary,.btn-main):not(:disabled,.disabled),
body.hospital-theme[data-login-theme] .bg-primary{background:var(--bvd-accent)!important;color:#fff!important;border-color:var(--bvd-accent)!important}
body:is(.hospital-theme,.bvd-auth-secondary,.bvd-camera-page,.bvd-sheet-page)[data-login-theme] .btn-primary:not(:disabled,.disabled):is(:hover,:active){background:var(--bvd-chrome)!important}
body:is(.hospital-theme,.bvd-auth-secondary,.bvd-camera-page,.bvd-sheet-page)[data-login-theme] .btn-outline-primary:not(:disabled,.disabled){background:#fff!important;border-color:var(--bvd-accent)!important;color:var(--bvd-accent)!important}
body:is(.hospital-theme,.bvd-auth-secondary,.bvd-camera-page,.bvd-sheet-page)[data-login-theme] .btn-outline-primary:not(:disabled,.disabled):is(:hover,.active,:active){background:var(--bvd-accent)!important;color:#fff!important}
body.hospital-theme[data-login-theme] :is(.nav-pills .nav-link.active,.pagination .active>.page-link){background:var(--bvd-accent)!important;border-color:var(--bvd-accent)!important;color:#fff!important}
body.hospital-theme[data-login-theme] :is(.cx-hero,.cls-hero,.xa-hero,.xa-dialog-head,.ws-server,.audit-step){background:linear-gradient(120deg,var(--bvd-chrome),var(--bvd-accent))!important;color:#fff!important}
body.hospital-theme[data-login-theme] :is(.cx-hero,.cls-hero,.xa-hero,.xa-dialog-head) :is(h1,h2,h3,h4){color:inherit!important}
body.hospital-theme[data-login-theme] :is(.audit-setup>summary,.cx-file,.cls-upload,.cls-xml-help,.audit-option:has(input:checked)){background:var(--bvd-soft)!important;border-color:var(--bvd-line)!important;color:var(--bvd-chrome)!important}
body.hospital-theme[data-login-theme] :is(.audit-option input,.xa-workspace input[type=checkbox]){accent-color:var(--bvd-accent)!important}
body.hospital-theme[data-login-theme] :is(.audit-workspace,.xa-workspace){--audit-line:var(--bvd-line);--audit-navy:var(--bvd-chrome);--xa-navy:var(--bvd-chrome);--cls-navy:var(--bvd-chrome)}
body.hospital-theme[data-login-theme] :is(.xa-calendar-panel,.xa-calendar-results,.ws-card,.ws-stat){border-color:var(--bvd-line)!important}
body.bvd-auth-secondary[data-login-theme] :is(.card,.box),body.bvd-camera-page[data-login-theme] .cardx{border-color:var(--bvd-line)!important}
body.bvd-auth-secondary[data-login-theme]:after{color:var(--bvd-chrome)}
body.bvd-camera-page[data-login-theme]{background:var(--bvd-chrome)!important}
body.bvd-camera-page[data-login-theme] .clock{color:var(--bvd-chrome)!important}
body.bvd-sheet-page[data-login-theme] :is(.topbar,.storagebar,.start-panel,.file-panel,.share-panel){background:var(--bvd-soft)!important;border-color:var(--bvd-line)!important}
}
