/* Generated by tools/make_dark_css.py from style.css, spatial.css, ux.css, auth.css. Do not edit: change the light stylesheets and re-run. Hand-written dark rules live in dark.css. */
@media screen{
html[data-theme=dark] .topbar{background:#111a27}
html[data-theme=dark] .date-pill,html[data-theme=dark] .id-tag{background:#1c2c2c;color:#acf0f3}
html[data-theme=dark] .stat-card{background:#111a27}
html[data-theme=dark] .stat-icon{background:#1d2d2d}
html[data-theme=dark] .panel{background:#111a27}
html[data-theme=dark] .table thead th{color:#b6bdc8}
html[data-theme=dark] .form-control,html[data-theme=dark] .form-select{border-color:#3a424b}
html[data-theme=dark] .login-wrap{background:linear-gradient(135deg,#1c282b,#171e27)}
html[data-theme=dark] .login-card{background:#111a27}
html[data-theme=dark] .kpi-card{background:#111a27}
html[data-theme=dark] .kpi-top{color:#b5bcc6}
html[data-theme=dark] .kpi-card>strong{color:#ccd9ea}
html[data-theme=dark] .kpi-blue .kpi-icon{background:#0f1e35;color:#87b0e9}
html[data-theme=dark] .kpi-green .kpi-icon{background:#193225;color:#9ff1cf}
html[data-theme=dark] .kpi-purple .kpi-icon{background:#1a0f34;color:#a080db}
html[data-theme=dark] .kpi-orange .kpi-icon{background:#392711}
html[data-theme=dark] .mini-stat{background:#111a27}
html[data-theme=dark] .mini-stat:hover{border-color:#435557}
html[data-theme=dark] .dashboard-panel{background:#111a27}
html[data-theme=dark] .panel-tag{background:#18232d;color:#bdc6d3}
html[data-theme=dark] .bar-chart{border-bottom:1px solid #39414a}
html[data-theme=dark] .bar-value{color:#aeb7c2}
html[data-theme=dark] .bar-track{background:#1b2229}
html[data-theme=dark] .bar-label{color:#a8b0bc}
html[data-theme=dark] .chart-footnote{color:#b6bdc8}
html[data-theme=dark] .quick-grid a{color:#c7d2e0}
html[data-theme=dark] .quick-grid a:hover{background:#192529;border-color:#435557}
html[data-theme=dark] .quick-grid a span{background:#1d2c2c}
html[data-theme=dark] .finance-metrics>div{background:#1b2b26}
html[data-theme=dark] .finance-metrics>div+div{background:#0f1b33}
html[data-theme=dark] .finance-metrics small{color:#aeb7c1}
html[data-theme=dark] .finance-metrics strong{color:#c4d6e9}
html[data-theme=dark] .status-open{background:#1b3023;color:#aceccc}
html[data-theme=dark] .status-closed{background:#361e10;color:#e3b496}
html[data-theme=dark] .account-links a,html[data-theme=dark] .text-link{color:#a9f0f3}
html[data-theme=dark] .account-links a{background:#1b2729}
html[data-theme=dark] .journal-row{border-bottom:1px solid #373d44}
html[data-theme=dark] .journal-mark{background:#0f1d33;color:#90b1e0}
html[data-theme=dark] .audit-row{border-bottom:1px solid #373d44}
html[data-theme=dark] .audit-action{background:#1a252b}
html[data-theme=dark] .dashboard-footer{color:#b2bac4}
html[data-theme=dark] .field-error{color:#e99c96}
html[data-theme=dark] .badge-soft{background:#1d2c2c;color:#a9f0f3}
html[data-theme=dark] .clock-chip{background:#1b2628;border-color:#3a4e4f}
html[data-theme=dark] .user-menu summary:hover{background:#192129}
html[data-theme=dark] .user-menu-panel{background:#111a27}
html[data-theme=dark] .user-menu-panel a:hover,html[data-theme=dark] .menu-signout:hover{background:#1b2628}
html[data-theme=dark] .menu-signout{color:#e99c96}
html[data-theme=dark] .avatar{background:#162032;color:#9cb8e3}
html[data-theme=dark] .avatar-0{background:#162032;color:#9cb8e3}
html[data-theme=dark] .avatar-1{background:#1c302d;color:#acf1e9}
html[data-theme=dark] .avatar-2{background:#341e13;color:#e6b296}
html[data-theme=dark] .avatar-3{background:#1d1331;color:#a891d5}
html[data-theme=dark] .avatar-4{background:#392f13;color:#f4dda1}
html[data-theme=dark] .status-scheduled,html[data-theme=dark] .status-draft,html[data-theme=dark] .status-unpaid{background:#3a2d11;color:#f7daa0}
html[data-theme=dark] .status-in_queue,html[data-theme=dark] .status-submitted,html[data-theme=dark] .status-part_paid{background:#101f36;color:#8fb1e6}
html[data-theme=dark] .status-served,html[data-theme=dark] .status-approved,html[data-theme=dark] .status-paid{background:#1b3023;color:#aceccc}
html[data-theme=dark] .status-cancelled,html[data-theme=dark] .status-waived,html[data-theme=dark] .status-no_show{background:#1e2329;color:#bdc6d3}
html[data-theme=dark] .status-rejected{background:#311313;color:#e99c96}
html[data-theme=dark] .welcome-mark{background:rgba(19,29,46,0.22)}
html[data-theme=dark] .visit-pill{background:rgba(19,29,46,0.24)}
html[data-theme=dark] a.kpi-card:hover{border-color:#435557}
html[data-theme=dark] .kpi-teal .kpi-icon{background:#1c3131;color:#a4edf0}
html[data-theme=dark] .trend-up{color:#aceccc !important}
html[data-theme=dark] .trend-down{color:#de9992 !important}
html[data-theme=dark] .trend-flat{color:#bdc6d3 !important}
html[data-theme=dark] .donut-hole{background:#111a27}
html[data-theme=dark] .visit-note.open{background:#1b3023;color:#aceccc}
html[data-theme=dark] .visit-note.closed{background:#3a2d11;color:#f7daa0}
html[data-theme=dark] .stack-chart{border-bottom:1px solid #39414a}
html[data-theme=dark] .stack-track{background:#212830}
html[data-theme=dark] .stack-legend{color:#bdc6d3}
html[data-theme=dark] .notify-row{border-bottom:1px solid #373d44}
html[data-theme=dark] .notify-row:hover{background:#172127}
html[data-theme=dark] .list-row{border-bottom:1px solid #373d44}
html[data-theme=dark] .claim-stat{background:#111a27}
html[data-theme=dark] .seg{background:#1d2329}
html[data-theme=dark] .seg a{color:#bdc6d3}
html[data-theme=dark] .seg a.on{background:#111a27}
html[data-theme=dark] .hbar-track{background:#1d2329}
html[data-theme=dark] .report-table thead th{background:#111a27}
html[data-theme=dark] .sub-trialing{background:#101f36;color:#a1bce6}
html[data-theme=dark] .sub-past_due{background:#3a2d11;color:#f8dfab}
html[data-theme=dark] .sub-expired,html[data-theme=dark] .sub-suspended{background:#311313;color:#eba5a0}
html[data-theme=dark] .sub-pill-trialing{background:#101f36;color:#8fb1e6}
html[data-theme=dark] .sub-pill-active{background:#1b3023;color:#aceccc}
html[data-theme=dark] .sub-pill-past_due{background:#3a2d11;color:#f7daa0}
html[data-theme=dark] .sub-pill-expired,html[data-theme=dark] .sub-pill-suspended{background:#311313;color:#e99c96}
html[data-theme=dark] .manual-box{background:#352a0f;border:1px solid #615435}
html[data-theme=dark] .plan-card{background:#111a27}
html[data-theme=dark] .row-actions-panel{background:#172127}
html[data-theme=dark] body.public{background:#111a27}
html[data-theme=dark] .pub-nav{background:#131d2e}
html[data-theme=dark] .hero{background:linear-gradient(135deg,#1b292b,#171e27)}
html[data-theme=dark] .hero .lead{color:#bec7d3}
html[data-theme=dark] .hero-card{background:#111a27}
html[data-theme=dark] .features p{color:#bdc6d3}
html[data-theme=dark] .receipt-page{background:#181f28}
html[data-theme=dark] .receipt{background:#111a27}
html[data-theme=dark] .plan-manual{border:1px dashed #685f46;background:#32260e;color:#f8dfab}
html[data-theme=dark] .flow-badge,html[data-theme=dark] .flow-total{color:#ccd9ea}
html[data-theme=dark] .flow-steps span{background:#1d2329;color:#bdc6d3}
html[data-theme=dark] .payer-cash{background:#1d2329;color:#bec7d3}
html[data-theme=dark] .payer-nhis{background:#1b3023;color:#aceccc}
html[data-theme=dark] .payer-insurance{background:#1d1331;color:#a891d5}
html[data-theme=dark] .pay-paid{background:#1b3023;color:#aceccc}
html[data-theme=dark] .pay-nhis{background:#1c3131;color:#a9f0f3}
html[data-theme=dark] .pay-unpaid{background:#311313;color:#e99c96}
html[data-theme=dark] .pay-override{background:#3a2d11;color:#f7daa0}
html[data-theme=dark] .q-card{background:#111a27;border-left:5px solid #40474f}
html[data-theme=dark] .q-card.urgent{background:#2e0d0d}
html[data-theme=dark] .q-note{background:#172127}
html[data-theme=dark] .locked{color:#e99c96}
html[data-theme=dark] .triage-form label{color:#bdc6d3}
html[data-theme=dark] .bed-occupied{background:#0f1b33;border-color:#2c3d5b}
html[data-theme=dark] .bed-available{background:#192a20;border-color:#3a5244}
html[data-theme=dark] .bed-cleaning{background:#352a0f;border-color:#615435}
html[data-theme=dark] .bed a{color:#a1bce6}
html[data-theme=dark] .allergy-box{background:#311313;border-color:#5c3532;color:#ebaca8}
html[data-theme=dark] .vitals{border-bottom:1px solid #373d44}
html[data-theme=dark] .journey li::before,html[data-theme=dark] .movements li::before{background:#2a3038}
html[data-theme=dark] .order-form{background:#181e23}
html[data-theme=dark] .dispo{background:#181e23}
html[data-theme=dark] .dispo[open]{background:#111a27}
html[data-theme=dark] .cam-box{background:#111a27}
html[data-theme=dark] .cam-frame{border:2px solid rgba(45,54,67,0.9)}
html[data-theme=dark] .cam-oval{border:2px dashed rgba(45,54,67,0.75)}
html[data-theme=dark] body{color:#ccd9ed}
html[data-theme=dark] .text-muted{color:#b6bdc8 !important}
html[data-theme=dark] .chart-empty{background:#1b232b;color:#c1cbd9}
html[data-theme=dark] .bar-value{color:#c1cbd9}
html[data-theme=dark] .bar-label{color:#c1cbd9}
html[data-theme=dark] .history-item{border-top:1px solid var(--border, #3a3f46)}
html[data-theme=dark] .clear-ok{background:#1c2e24;border-color:#435e4d;color:#c1ebd2}
html[data-theme=dark] .clear-owing{background:#372610;border-color:#6c5737;color:#f8d2ab}
html[data-theme=dark] .bed-clear.ok{color:#c1ebd2}
html[data-theme=dark] .bed-clear.owing{color:#ecb3a0}
html[data-theme=dark] .fu-card{border:1px solid var(--line,#3e4146)}
html[data-theme=dark] .fu-stages li{background:#212327;color:#b0b5c0}
html[data-theme=dark] .fu-stages li.done{background:#1e3225;color:#c1ebd2}
html[data-theme=dark] .fu-timeline{border-left:2px solid #404348}
html[data-theme=dark] .notice-row{border-top:1px solid #3b3e42}
html[data-theme=dark] .order-row{background:#111a27}
html[data-theme=dark] .pay-chat{background:#172127}
html[data-theme=dark] .pc-msg{background:#111a27}
html[data-theme=dark] .pc-msg small{color:#bcc4cf}
html[data-theme=dark] .pc-out{background:#0f1e35}
html[data-theme=dark] .pc-payment_confirmed{background:#1b2f21;border-color:#47624f}
html[data-theme=dark] .legal-body h2{color:#ccd9ea}
html[data-theme=dark] .legal-body h3{color:#b0edf1}
html[data-theme=dark] .legal-body strong{color:#ccd9ea}
html[data-theme=dark] body.spatial-app{background:radial-gradient(42vmax 42vmax at 82% 6%,rgba(176,140,255,.38),transparent 70%),
    linear-gradient(135deg,#1f3239 0%,#1f1b35 55%,#2e1e27 100%) fixed}
html[data-theme=dark] .spatial-app .sidebar{border:1px solid rgba(45,54,67,0.22)}
html[data-theme=dark] .spatial-app .sidebar nav a:hover,html[data-theme=dark] .spatial-app .nav-group summary:hover{background:rgba(19,29,46,0.22)}
html[data-theme=dark] .spatial-app .sidebar-foot{border-top-color:rgba(45,54,67,0.22)}
html[data-theme=dark] .spatial-app .help-box{background:rgba(19,29,46,0.2)}
html[data-theme=dark] .spatial-app .locale-chip,html[data-theme=dark] .spatial-app .clock-chip{background:rgba(19,29,46,0.8)}
html[data-theme=dark] .spatial-app .welcome-banner{border:1px solid rgba(45,54,67,0.38)}
html[data-theme=dark] .spatial-app .welcome-banner::after{background:radial-gradient(90% 90% at 8% -10%,rgba(19,29,46,0.36),transparent 55%)}
html[data-theme=dark] .spatial-app .welcome-mark{background:rgba(19,29,46,0.3);border:1px solid rgba(45,54,67,0.45)}
html[data-theme=dark] .spatial-app .kpi-card,html[data-theme=dark] .spatial-app .dashboard-panel,html[data-theme=dark] .spatial-app .mini-stat{background-image:radial-gradient(130% 70% at 12% 0%,rgba(19,29,46,0.73),transparent 58%)}
html[data-theme=dark] .spatial-app .mini-stat:hover{background-color:rgba(19,29,46,0.94);border-color:#2d3643}
html[data-theme=dark] .spatial-app a.kpi-card:hover{background-color:rgba(19,29,46,0.92);border-color:#2d3643}
html[data-theme=dark] .spatial-app .kpi-top{color:#c1cbd9}
html[data-theme=dark] .spatial-app .section-heading p,html[data-theme=dark] .spatial-app .kpi-card>small,html[data-theme=dark] .spatial-app .revenue-head small{color:#c1cbd9}
html[data-theme=dark] .spatial-app .panel-tag{background:rgba(19,29,46,0.86)}
html[data-theme=dark] .spatial-app .quick-grid a{background:rgba(19,29,46,0.68);border-color:rgba(45,54,67,0.95)}
html[data-theme=dark] .spatial-app .table thead th{color:#c1cbd9}
html[data-theme=dark] .spatial-app .notify-row:hover{background:rgba(19,29,46,0.68)}
html[data-theme=dark] .spatial-app .donut-hole{background:#131d2e}
html[data-theme=dark] .spatial-app .dashboard-footer{color:#c1cbd9}
html[data-theme=dark] .spatial-app .chart-empty{background:rgba(19,29,46,0.78)}
html[data-theme=dark] .spatial-app .kpi-card,html[data-theme=dark] .spatial-app .dashboard-panel,html[data-theme=dark] .spatial-app .mini-stat,html[data-theme=dark] .spatial-app .topbar{background-color:#131d2e}
html[data-theme=dark] .spatial-app .content .card,html[data-theme=dark] .spatial-app .content .modal-content,html[data-theme=dark] .spatial-app .content .offcanvas,html[data-theme=dark] .spatial-app .content .accordion-item,html[data-theme=dark] .spatial-app .content .list-group,html[data-theme=dark] .spatial-app .content .alert:not(.sub-banner),html[data-theme=dark] .spatial-app .content .table-responsive,html[data-theme=dark] .spatial-app .content .form-section,html[data-theme=dark] .spatial-app .content .panel,html[data-theme=dark] .spatial-app .content .dashboard-panel{border:1px solid rgba(45,54,67,0.86);background:rgba(19,29,46,0.78)}
html[data-theme=dark] .spatial-app .content .card-header,html[data-theme=dark] .spatial-app .content .card-footer,html[data-theme=dark] .spatial-app .content .accordion-button{background:rgba(19,29,46,0.56)}
html[data-theme=dark] .spatial-app .content .table thead th{color:#c1cbd9;background:rgba(19,29,46,0.5)}
html[data-theme=dark] .spatial-app .content .form-control,html[data-theme=dark] .spatial-app .content .form-select,html[data-theme=dark] .spatial-app .content .input-group-text,html[data-theme=dark] .spatial-app .content textarea,html[data-theme=dark] .spatial-app .content select,html[data-theme=dark] .spatial-app .content input:not([type=checkbox]):not([type=radio]):not([type=hidden]){background-color:rgba(19,29,46,0.86)}
html[data-theme=dark] .spatial-app .content h1,html[data-theme=dark] .spatial-app .content h2,html[data-theme=dark] .spatial-app .content h3,html[data-theme=dark] .spatial-app .content h4,html[data-theme=dark] .spatial-app .content h5{color:#c8d8eb}
html[data-theme=dark] .spatial-app .content .nav-tabs .nav-link.active{background:rgba(19,29,46,0.84);border-color:rgba(45,54,67,0.9);color:#aaedf3}
html[data-theme=dark] .spatial-app .content .pagination .page-link{background:rgba(19,29,46,0.8);color:#b6ddea}
html[data-theme=dark] body.spatial-app:not(:has(.layout)){background:radial-gradient(42vmax 42vmax at 82% 6%,rgba(176,140,255,.34),transparent 70%),
    linear-gradient(135deg,#1f3239 0%,#1f1b35 55%,#2e1e27 100%) fixed}
html[data-theme=dark] body.spatial-app:not(:has(.layout)) .card,html[data-theme=dark] body.spatial-app:not(:has(.layout)) .auth-card,html[data-theme=dark] body.spatial-app:not(:has(.layout)) .login-card,html[data-theme=dark] body.spatial-app:not(:has(.layout)) .public-card{border:1px solid rgba(45,54,67,0.9);background:rgba(19,29,46,0.84)}
html[data-theme=dark] .patient-search-strip{background:linear-gradient(135deg, #131d2e, #131d2e)}
html[data-theme=dark] .patient-search-copy small{color:#b0b5c0}
html[data-theme=dark] .send-note{color:#bdc4cf}
html[data-theme=dark] .send-note-warn{color:#f2b694}
html[data-theme=dark] .send-note-ok{color:#aef4d7}
html[data-theme=dark] .ux-palette-box{background:#111a27}
html[data-theme=dark] .ux-help dt{background:#1b232b}
html[data-theme=dark] .ux-palette-trigger kbd{background:#1b232b}
html[data-theme=dark] .ux-skeleton{background:linear-gradient(90deg, #1d232a 25%, #171e27 50%, #1d232a 75%)}
html[data-theme=dark] .ux-suggest{background:#111a27}
html[data-theme=dark] .ux-suggest a:hover,html[data-theme=dark] .ux-suggest a:focus{background:#1c2d2d}
html[data-theme=dark] .ux-cols-panel{background:#111a27}
html[data-theme=dark] .error-page{background:rgba(19,29,46,0.88)}
html[data-theme=dark] ::-webkit-scrollbar-track{background:#242b33}
html[data-theme=dark] ::-webkit-scrollbar-thumb{border:3px solid #3b434b}
html[data-theme=dark] ::-webkit-scrollbar-corner{background:#242b33}
html[data-theme=dark] .sidebar nav::-webkit-scrollbar-thumb,html[data-theme=dark] .sidebar::-webkit-scrollbar-thumb{background:#2e5e60}
html[data-theme=dark] .sidebar nav::-webkit-scrollbar-thumb:hover,html[data-theme=dark] .sidebar::-webkit-scrollbar-thumb:hover{background:#214747}
html[data-theme=dark] .plan-price .amt{color:#ccd9ea !important}
html[data-theme=dark] .plan-price .cur{color:#b0edf1 !important}
html[data-theme=dark] .plan-price > span{color:#c4cedb !important}
html[data-theme=dark] img.brand-logo{background:#111a27}
html[data-theme=dark] img.welcome-logo{background:#111a27 !important}
html[data-theme=dark] .spatial-app .welcome-banner.has-banner::after{background:radial-gradient(90% 90% at 8% -10%,rgba(19,29,46,0.22),transparent 55%)}
html[data-theme=dark] .branding-preview{border:2px dashed #464d56;background:repeating-conic-gradient(#1c222a 0 25%,#111a27 0 50%) 0 0/16px 16px;color:#bac2cd}
html[data-theme=dark] .sp-stage{background:linear-gradient(135deg,#1f3239 0%,#1f1b35 55%,#2e1e27 100%)}
html[data-theme=dark] .sp-card::before,html[data-theme=dark] .sp-card::after{background:rgba(19,29,46,0.38);border:1px solid rgba(45,54,67,0.6)}
html[data-theme=dark] .sp-card::after{background:rgba(19,29,46,0.26)}
html[data-theme=dark] .sp-glass{background:linear-gradient(160deg,rgba(19,29,46,0.9),rgba(19,29,46,0.68));border:1px solid rgba(45,54,67,0.9)}
html[data-theme=dark] .sp-glass::after{background:radial-gradient(120% 55% at 18% 0%,rgba(19,29,46,0.83),transparent 60%)}
html[data-theme=dark] .sp-glass{background:#131d2e}
html[data-theme=dark] .sp-switch a:hover{background:rgba(19,29,46,0.63)}
html[data-theme=dark] .sp-switch a.is-on{background:#111a27}
html[data-theme=dark] .sp-alert{background:rgba(19,29,46,0.88)}
html[data-theme=dark] .sp-alert-danger{color:#edaca5}
html[data-theme=dark] .sp-alert-success{color:#baf4db}
html[data-theme=dark] .sp-alert-warning{color:#f8ddab}
html[data-theme=dark] .sp-input{background:rgba(19,29,46,0.8)}
html[data-theme=dark] .sp-input:hover{background:#131d2e}
html[data-theme=dark] .sp-input:focus-within{background:#111a27}
html[data-theme=dark] .sp-control::placeholder{color:#b4bdc8}
html[data-theme=dark] .sp-check-input{background:rgba(19,29,46,0.88)}
html[data-theme=dark] .sp-check-input::after{border-left:3px solid #2d3643;border-bottom:3px solid #2d3643}
html[data-theme=dark] .sp-foot a{color:#b3f1f4}
}
