html[data-theme="dark"]{--dark-page:#0d1420;--dark-card:#151f2d;--dark-card-2:#192536;--dark-line:#2b3b50;--dark-hover:#223148;--dark-text:#eef4fc;--dark-muted:#a6b4c8;--dark-action:#1d3a5b;--dark-action-hover:#285079}
html[data-theme="dark"] body,html[data-theme="dark"] .app-main{background:var(--dark-page)!important;color:var(--dark-text)!important}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] h4,html[data-theme="dark"] strong,html[data-theme="dark"] b,html[data-theme="dark"] label,html[data-theme="dark"] legend,html[data-theme="dark"] dt{color:var(--dark-text)!important}
html[data-theme="dark"] p,html[data-theme="dark"] small,html[data-theme="dark"] dd,html[data-theme="dark"] .muted{color:var(--dark-muted)!important}
html[data-theme="dark"] .panel,html[data-theme="dark"] .metrics article,html[data-theme="dark"] .queue-metrics article,html[data-theme="dark"] .procedure-metrics article,html[data-theme="dark"] .clinic-stats article,html[data-theme="dark"] .exam-metrics article,html[data-theme="dark"] .access-metrics article,html[data-theme="dark"] .progress-card,html[data-theme="dark"] .timeline-card,html[data-theme="dark"] .day-priorities,html[data-theme="dark"] .reception-column,html[data-theme="dark"] .reception-card,html[data-theme="dark"] .patient-card,html[data-theme="dark"] .exam-card,html[data-theme="dark"] .work-order{background:var(--dark-card)!important;border-color:var(--dark-line)!important;color:var(--dark-text)!important}
html[data-theme="dark"] .btn,html[data-theme="dark"] button:not(.theme-toggle):not(.notification-link),html[data-theme="dark"] .date-arrow,html[data-theme="dark"] .date-current{background:var(--dark-action)!important;border-color:#36516f!important;color:#e6f1ff!important;box-shadow:none!important}
html[data-theme="dark"] .btn:hover,html[data-theme="dark"] .btn:focus,html[data-theme="dark"] button:not(.theme-toggle):not(.notification-link):hover,html[data-theme="dark"] button:not(.theme-toggle):not(.notification-link):focus,html[data-theme="dark"] .date-arrow:hover,html[data-theme="dark"] .date-current:hover{background:var(--dark-action-hover)!important;border-color:#4b7199!important;color:#fff!important}
html[data-theme="dark"] .btn.primary,html[data-theme="dark"] button.btn.primary{background:#214d78!important;border-color:#356b9e!important;color:#f3f8ff!important}
html[data-theme="dark"] .btn:disabled,html[data-theme="dark"] button:disabled{background:#1a2432!important;border-color:#2c394a!important;color:#69788c!important;opacity:1!important}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#101927!important;border-color:#34465e!important;color:var(--dark-text)!important}html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#77879b!important}html[data-theme="dark"] .form-stack label{color:#aebbd0!important}
html[data-theme="dark"] table,html[data-theme="dark"] thead,html[data-theme="dark"] tbody,html[data-theme="dark"] tr,html[data-theme="dark"] th,html[data-theme="dark"] td{background:transparent!important;color:var(--dark-text)!important;border-color:var(--dark-line)!important}html[data-theme="dark"] thead,html[data-theme="dark"] th{background:#192536!important;color:#bdcce0!important}html[data-theme="dark"] tbody tr:hover,html[data-theme="dark"] .clinical-row:hover,html[data-theme="dark"] .movement-row:hover{background:var(--dark-hover)!important;color:#fff!important}
html[data-theme="dark"] .detail-hero,html[data-theme="dark"] .encounter-head,html[data-theme="dark"] .clinic-hero,html[data-theme="dark"] .exam-hero,html[data-theme="dark"] .exam-workspace-hero,html[data-theme="dark"] .patient-flow-bar,html[data-theme="dark"] .profile-notice,html[data-theme="dark"] .about-hero{background:var(--dark-card-2)!important;border-color:var(--dark-line)!important;color:var(--dark-text)!important}
html[data-theme="dark"] .detail-grid>div,html[data-theme="dark"] .exam-context>div,html[data-theme="dark"] .prescription-card dl>div,html[data-theme="dark"] .movement-detail-grid>div{background:#111b29!important;border-color:var(--dark-line)!important;color:var(--dark-text)!important}
html[data-theme="dark"] .record-tabs,html[data-theme="dark"] .record-tabs button,html[data-theme="dark"] .exam-filters,html[data-theme="dark"] .area-filter,html[data-theme="dark"] .pharmacy-tabs{background:transparent!important;border-color:var(--dark-line)!important;color:var(--dark-muted)!important}html[data-theme="dark"] .record-tabs button.active,html[data-theme="dark"] .exam-filters a.active,html[data-theme="dark"] .area-filter a.active,html[data-theme="dark"] .pharmacy-tabs a.active{background:#203d5f!important;border-color:#38648f!important;color:#fff!important}html[data-theme="dark"] .record-tabs b,html[data-theme="dark"] .area-filter b{background:#263649!important;color:#dbeaff!important}
html[data-theme="dark"] .pharmacy-tabs a,html[data-theme="dark"] .exam-filters a,html[data-theme="dark"] .area-filter a{background:#172231!important;border-color:var(--dark-line)!important;color:#ced9e8!important}html[data-theme="dark"] .pharmacy-tabs a:hover,html[data-theme="dark"] .exam-filters a:hover,html[data-theme="dark"] .area-filter a:hover{background:var(--dark-hover)!important;color:#fff!important}
html[data-theme="dark"] .exam-patient,html[data-theme="dark"] .patient-exam-report,html[data-theme="dark"] .calendar-sync,html[data-theme="dark"] .drawer-ticket-context,html[data-theme="dark"] .return-helper,html[data-theme="dark"] .scan-helper{background:#182638!important;border-color:var(--dark-line)!important;color:var(--dark-text)!important}
html[data-theme="dark"] .clinical-alert,html[data-theme="dark"] .exam-alert{background:#3a1e29!important;border-color:#713247!important;color:#ffbdc8!important}html[data-theme="dark"] .success,html[data-theme="dark"] .status-tag.completed{background:#18382f!important;color:#8de0c3!important}html[data-theme="dark"] .profile-notice{background:#3b311b!important;color:#f4cf82!important}
html[data-theme="dark"] .patient-heading,html[data-theme="dark"] .hour-heading{background:#1a2636!important;color:#becde1!important;border-color:var(--dark-line)!important}html[data-theme="dark"] .patient-cell{background:#162231!important;border-color:var(--dark-line)!important}html[data-theme="dark"] .time-cell{background:#121c29!important;border-color:#2c3b4f!important}html[data-theme="dark"] .time-cell.now{background:#172b37!important}html[data-theme="dark"] .hour-heading.now{background:#1e3b48!important;color:#72d7d0!important}html[data-theme="dark"] .timeline-head{background:var(--dark-card)!important;border-color:var(--dark-line)!important}
html[data-theme="dark"] .calendar-workspace:fullscreen,html[data-theme="dark"] .calendar-workspace.calendar-pseudo-fullscreen{background:var(--dark-page)!important}html[data-theme="dark"] .calendar-workspace:fullscreen .progress-card,html[data-theme="dark"] .calendar-workspace.calendar-pseudo-fullscreen .progress-card{background:#172231!important;color:var(--dark-text)!important}
html[data-theme="dark"] .procedure-detail,html[data-theme="dark"] .operator-dropdown,html[data-theme="dark"] .pharmacy-drawer-shell,html[data-theme="dark"] .drawer-shell,html[data-theme="dark"] dialog{background:var(--dark-card)!important;border-color:var(--dark-line)!important;color:var(--dark-text)!important}
html[data-theme="dark"] .operator-menu>summary:hover,html[data-theme="dark"] .operator-menu>summary:focus-visible{background:#1b2737!important;color:var(--dark-text)!important}
html[data-theme="dark"] .operator-menu .institution-menu>summary{background:transparent!important;color:var(--dark-text)!important;border-color:transparent!important}
html[data-theme="dark"] .operator-menu .institution-menu>summary:hover,html[data-theme="dark"] .operator-menu .institution-menu>summary:focus-visible{background:#213249!important;color:#73b6ff!important}
html[data-theme="dark"] .operator-dropdown>a:hover,html[data-theme="dark"] .institution-links>a:hover,html[data-theme="dark"] .operator-dropdown>a:focus-visible,html[data-theme="dark"] .institution-links>a:focus-visible{background:#213249!important;color:#73b6ff!important}
html[data-theme="dark"] .institution-menu,html[data-theme="dark"] .operator-dropdown .logout-link{border-color:var(--dark-line)!important}
html[data-theme="dark"] .institution-links{border-left-color:#3a4e69!important}
html[data-theme="dark"] .reception-column>header,html[data-theme="dark"] .reception-toolbar,html[data-theme="dark"] .reception-statusbar,html[data-theme="dark"] .sound-choice{background:var(--dark-card)!important;border-color:var(--dark-line)!important;color:var(--dark-text)!important}
html[data-theme="dark"] a{color:#8fc4ff}html[data-theme="dark"] .eyebrow{color:#4ba5ff!important}
.species-mini,.agenda-animal-icon,.record-patient-identity>img,.clinic-animal-icon,.procedure-patient img{overflow:hidden!important;background:transparent!important}.animal-species-icon,.agenda-animal-icon img,.record-patient-identity>img,.clinic-animal-icon,.procedure-patient img{transform:scale(1.19);clip-path:circle(43% at 50% 50%)}
html[data-theme="dark"] .detail-list>div,html[data-theme="dark"] .order-details>div{background:#121c29!important;border-color:#2c3b4f!important;color:#eef4fc!important}
html[data-theme="dark"] .detail-list>div small,html[data-theme="dark"] .detail-list>div span,html[data-theme="dark"] .order-details>div small,html[data-theme="dark"] .order-details>div span{color:#a6b4c8!important}
html[data-theme="dark"] .reception-global-search,html[data-theme="dark"] .queue-checkin-form{background:transparent!important}
html[data-theme="dark"] .point-option{background:#121c29!important;border-color:#2c3b4f!important;color:#eef4fc!important}
html[data-theme="dark"] .point-option:hover,html[data-theme="dark"] .point-option:focus-within,html[data-theme="dark"] .point-option.selected,html[data-theme="dark"] .point-option:has(input:checked){background:#1b334d!important;border-color:#4d83bd!important;color:#fff!important}
html[data-theme="dark"] .reception-column b{background:#223247!important;color:#eef4fc!important}
.detail-hero>div>a:first-child{display:block!important;width:max-content;margin:0 0 9px!important}
.date-nav .date-current{box-sizing:border-box!important;flex:0 0 160px!important;width:160px!important;padding-inline:14px!important;white-space:nowrap!important}
@media(max-width:700px){.date-nav .date-current{flex:1 1 auto!important;width:auto!important}}
.reception-toolbar.panel{min-height:62px!important;padding:10px 12px!important}
.reception-toolbar .reception-tabs{margin:0!important}
.reception-toolbar .reception-global-search{margin:0!important}
@media(max-width:850px){.reception-toolbar.panel{padding:12px!important}.reception-toolbar .reception-tabs{overflow-x:auto}.reception-toolbar .reception-tabs a{white-space:nowrap}}
html[data-theme="dark"] button.point-switch{background:#121c29!important;border-color:#35465c!important;color:#eef4fc!important}html[data-theme="dark"] button.point-switch.is-on{background:#15362f!important;border-color:#28a983!important;color:#fff!important}html[data-theme="dark"] button.point-switch.is-off>i{background:#536174!important}html[data-theme="dark"] button.point-switch.is-on>i{background:#28a983!important}html[data-theme="dark"] button.point-switch.is-on>span small{color:#7bddbd!important}html[data-theme="dark"] button.point-switch.is-off>span small{color:#9caabe!important}
html[data-theme="dark"] .reception-patient-card{background:#162231!important;border-color:#2b3b4f!important;color:#eef4fc!important;box-shadow:0 5px 18px #0002!important}html[data-theme="dark"] .reception-patient-card:hover{background:#1a293b!important;border-color:#3e5874!important}html[data-theme="dark"] .reception-patient-card h3{color:#f4f8fd!important}html[data-theme="dark"] .reception-patient-card p,html[data-theme="dark"] .reception-patient-card small{color:#9fb1c8!important}html[data-theme="dark"] .reception-patient-card .species-mini{background:transparent!important}html[data-theme="dark"] .reception-patient-card .btn{background:#203d5f!important;border-color:#38648f!important;color:#f3f8ff!important}html[data-theme="dark"] .reception-patient-card .btn.primary{background:#17629a!important;border-color:#287db9!important;color:#fff!important}
html[data-theme="dark"] .queue-side-panel{background:#162231!important;border-color:#304156!important;color:#eef4fc!important}html[data-theme="dark"] .queue-side-panel>header{border-color:#304156!important}html[data-theme="dark"] .queue-side-panel>header strong{color:#f4f8fd!important}html[data-theme="dark"] .queue-side-panel>header small{color:#9fb1c8!important}html[data-theme="dark"] .queue-side-panel>header>b{background:#223247!important;color:#f2f7fd!important}html[data-theme="dark"] .queue-side-item{background:#121c29!important;border-color:#304156!important;color:#eef4fc!important}html[data-theme="dark"] .queue-side-item:hover{background:#1a2a3d!important}html[data-theme="dark"] .queue-side-item small{color:#9fb1c8!important}html[data-theme="dark"] .queue-side-list{scrollbar-color:#52647a #101925!important}
