/* One semantic action palette for every BHS surface and embedded diagnostic page.
   Do not recolour chart cells, navigation, status badges or destructive actions. */
:root {
  --bhs-action-primary: #087f5b;
  --bhs-action-hover: #066548;
  --bhs-action-foreground: #fff;
  --bhs-action-disabled: #e2e8f0;
  --bhs-action-disabled-foreground: #526579;
  --bhs-refresh-ink: #205e82;
  --bhs-refresh-border: #b9cddd;
}
html body #root :is(.btn-primary,button.primary,.opd-primary,.bhs-hms-primary-button,.chw__primary,.og-primary-action,.hms-login-submit,.bhs-login-submit,.patient-portal-welcome button:first-child,[data-action-appearance=primary],[data-slot=button][data-variant=default],button[type=submit]):not(:where(.btn-danger,.btn-warning,.danger,.destructive,[class*="bg-rose-"],[class*="bg-red-"],[data-variant=destructive],[data-action-appearance=refresh],[data-workspace-refresh])),
html body :is(.btn-primary,.login-submit):not(:where(.btn-danger,.btn-warning,.danger,.destructive,[class*="bg-rose-"],[class*="bg-red-"],[data-variant=destructive],[data-action-appearance=refresh],[data-workspace-refresh])) {
  background: var(--bhs-action-primary)!important;
  background-image: none!important;
  color: var(--bhs-action-foreground)!important;
  border-color: var(--bhs-action-primary)!important;
  box-shadow: none;
}
html body #root :is(.btn-primary,button.primary,.opd-primary,.bhs-hms-primary-button,.chw__primary,.og-primary-action,.hms-login-submit,.bhs-login-submit,.patient-portal-welcome button:first-child,[data-action-appearance=primary],[data-slot=button][data-variant=default],button[type=submit]):not(:where(.btn-danger,.btn-warning,.danger,.destructive,[class*="bg-rose-"],[class*="bg-red-"],[data-variant=destructive],[data-action-appearance=refresh],[data-workspace-refresh])):hover:not(:disabled),
html body .btn-primary:not(:where(.btn-danger,.btn-warning,.danger,.destructive,[class*="bg-rose-"],[class*="bg-red-"],[data-variant=destructive])):hover:not(:disabled) { background: var(--bhs-action-hover)!important; border-color: var(--bhs-action-hover)!important; }
html body #root :is(.btn-outline,.bhs-hms-outline-button,.clinical-assessment-back,.clinical-assessment-card>footer button,.btn-secondary,button.secondary,.opd-secondary,.hms-content-actions button:not(.primary):not(.btn-primary),[data-slot=button][data-variant=outline]):not(:where(.btn-danger,.danger,[class*="bg-rose-"],[class*="bg-red-"],[data-action-appearance=refresh],[data-workspace-refresh])) {
  background: #fff!important;
  background-image: none!important;
  color: var(--bhs-action-primary)!important;
  border-color: var(--bhs-action-primary)!important;
}
html body #root :is(.btn-outline,.bhs-hms-outline-button,.clinical-assessment-back,.clinical-assessment-card>footer button,.btn-secondary,button.secondary,.opd-secondary,[data-slot=button][data-variant=outline]):hover:not(:disabled) { background: #edf8f3!important; }
html body #root :is([data-action-appearance=primary],.btn-primary,button.primary,.opd-primary,.bhs-hms-primary-button,.chw__primary,.og-primary-action,.hms-login-submit,.bhs-login-submit,button[type=submit],[data-slot=button][data-variant=default]):disabled,
html body .btn-primary:disabled {
  background: var(--bhs-action-disabled)!important;
  color: var(--bhs-action-disabled-foreground)!important;
  border-color: #cbd5e1!important;
  opacity: 1;
  cursor: not-allowed;
}
/* Last on purpose: loading/disabled Refresh never inherits a filled action. */
html body #root :is(button[data-action-appearance=refresh],button[data-workspace-refresh],button.hms-workspace-refresh),
html body button[data-action-appearance=refresh] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--bhs-refresh-border)!important;
  border-radius: 8px;
  background: #fff!important;
  background-image: none!important;
  color: var(--bhs-refresh-ink)!important;
  box-shadow: none!important;
  font-weight: 600;
  line-height: 1.4;
}
html body #root :is(button[data-action-appearance=refresh],button[data-workspace-refresh]) :is(span,svg) { color: inherit!important; -webkit-text-fill-color: currentColor!important; }
html body #root :is(button[data-action-appearance=refresh],button[data-workspace-refresh]):hover:not(:disabled) { background: #eef6fa!important; border-color: #8eafc5!important; }
html body #root :is(button[data-action-appearance=refresh],button[data-workspace-refresh]):disabled { background: #f8fafc!important; color: #627b8d!important; opacity: .7; cursor: wait; }
html body #root :is([data-action-appearance],.btn-primary,.btn-outline,button.primary,.opd-primary,[data-slot=button]):focus-visible { outline: 3px solid var(--bhs-action-primary); outline-offset: 3px; }
@media(max-width:767px) { html body #root :is(button[data-action-appearance=refresh],button[data-workspace-refresh]) { min-height: 48px; } }
/* HMS actions share the Diagnostic outline palette. Status badges and clinical
   chart surfaces retain their semantic colours. Navigation below overrides this. */
html body #root#root :where(.hms-theme) .content button:not(:where(
  .danger,.destructive,.btn-danger,.btn-warning,[data-variant=destructive],
  [class*="bg-red-"],[class*="bg-rose-"],[role=switch],
  [class*="tooth"],[class*="surface"],[class*="odontogram"]
)) {
  background-color:#fff!important;
  background-image:none!important;
  color:#205e82!important;
  -webkit-text-fill-color:currentColor!important;
  border:1px solid #b9cddd!important;
  border-radius:7px;
  box-shadow:none!important;
}
html body #root#root :where(.hms-theme) .content :where(button:not([class]),.btn,.btn-primary,.btn-outline,.btn-secondary,button.primary,button.secondary,[data-action-appearance=primary],button[type=submit]) {
  border:1px solid #b9cddd!important;
  border-radius:7px;
  min-height:40px;
  padding:9px 13px;
  font-weight:600;
  line-height:1.4;
}
html body #root#root :where(.hms-theme) .content button:not(:where(:disabled,.danger,.destructive,.btn-danger,.btn-warning,[data-variant=destructive],[class*="bg-red-"],[class*="bg-rose-"],[role=switch],[class*="tooth"],[class*="surface"],[class*="odontogram"])):hover {
  background-color:#eef6fa!important;
}
html body #root#root :where(.hms-theme) .content button:focus-visible {
  outline:3px solid #087e8b!important;
  outline-offset:3px;
}
html body #root#root :where(.hms-theme) .content button:disabled {
  color:#627b8d!important;
  -webkit-text-fill-color:currentColor!important;
  cursor:not-allowed;
}
/* Icons and labels must remain readable after a legacy filled action becomes outlined. */
html body #root#root :where(.hms-theme) .content button:not(:where(.danger,.destructive,.btn-danger,.btn-warning,[data-variant=destructive],[class*="bg-red-"],[class*="bg-rose-"],[class*="tooth"],[class*="surface"])) :is(svg,span) {
  color:inherit!important;
  -webkit-text-fill-color:currentColor!important;
}
html body #root#root :where(.hms-theme) .content button:where([aria-pressed=true],[aria-selected=true],[aria-current=page]) {
  border-color:#087e8b!important;
  outline:1px solid #087e8b;
  outline-offset:-1px;
}
/* Diagnostic-style workspace navigation. Explicit navigation classes keep tooth
   surfaces, clinical toggles, destructive actions and status colours untouched. */
html body #root#root :is(.cgs-nav,
  .hospitality-command__services,
  .fmw-services,
  .fmw-command>nav,
  .finance-domain-nav,
  .finance-section-nav,
  .uso-workspace-nav,
  .uso-worklist-nav,
  .chw__areas,
  .pharmacy-filter-row,
  nav[aria-label="HR work areas"],
  .amb-tabs,
  .anc-subtabs,
  .bd-tabs,
  .bhs-patient-tabs,
  .bhs-support-mode-tabs,
  .case-note-tabs,
  .ccg-tabs,
  .clinical-diagnosis-tabs,
  .clinical-history-tabs,
  .clinical-module-subnav,
  .cs-tabs,
  .cssd-catalog-editor-tabs,
  .dn-cs-subtabs,
  .dn-cs-tabs,
  .doctor-ws__tabs,
  .emergency-subtabs,
  .encounter-records-tabs,
  .ey-tabs,
  .finance-config-tabs,
  .hum-tabs,
  .integration-tabs,
  .investigation-catalogue-tabs,
  .ipd-filter-tabs,
  .marketing-primary-tabs,
  .marketing-subtabs,
  .maternity-assessment-tabs,
  .mw-tabs,
  .nurse-ws__tabs,
  .og-tabs,
  .opd-examination-tabs,
  .opd-stage-tabs,
  .opd-workspace-tabs,
  .ot-case-subnav,
  .ot-case-tabs,
  .ot-safety-tabs,
  .patient-communication-tabs,
  .robotic-tabs,
  .sa-clinical-tabs,
  .specialty-history-tabs,
  .specialty-tabs,
  .staff-ops-tabs,
  .statement-tabs,
  .structure-tabs,
  .tabs,
  .transfusion-form-tabs,
  .transfusion-tabs,
  .treatment-horizontal-tabs,
  .treatment-procedure-tabs,
  .hms-section-navigation,
  .cw-navigation,
  .cw-sections,
  .clinical-examination-tabs,
  .treatment-plan-module-tabs) {
  background:transparent!important; border:0!important; border-bottom:1px solid #d2e0e9!important;
  border-radius:0!important; box-shadow:none!important; padding:0!important;
  gap:12px; max-width:100%; flex-wrap:wrap;
}
html body #root#root :is(.cgs-nav>button,
  .hospitality-command__services>button,
  .fmw-services>button,
  .fmw-command>nav>button,
  .finance-domain-nav>button,
  .finance-section-nav>button,
  .uso-workspace-nav>button,
  .uso-worklist-nav>button,
  .chw__areas>button,
  .pharmacy-filter-row>button,
  nav[aria-label="HR work areas"]>button,
  .amb-tabs>button,
  .anc-subtabs>button,
  .bd-tabs>button,
  .bhs-patient-tabs>button,
  .bhs-support-mode-tabs>button,
  .case-note-tabs>button,
  .ccg-tabs>button,
  .clinical-diagnosis-tabs>button,
  .clinical-history-tabs>button,
  .clinical-module-subnav>button,
  .cs-tabs>button,
  .cssd-catalog-editor-tabs>button,
  .dn-cs-subtabs>button,
  .dn-cs-tabs>button,
  .doctor-ws__tabs>button,
  .emergency-subtabs>button,
  .encounter-records-tabs>button,
  .ey-tabs>button,
  .finance-config-tabs>button,
  .hum-tabs>button,
  .integration-tabs>button,
  .investigation-catalogue-tabs>button,
  .ipd-filter-tabs>button,
  .marketing-primary-tabs>button,
  .marketing-subtabs>button,
  .maternity-assessment-tabs>button,
  .mw-tabs>button,
  .nurse-ws__tabs>button,
  .og-tabs>button,
  .opd-examination-tabs>button,
  .opd-stage-tabs>button,
  .opd-workspace-tabs>button,
  .ot-case-subnav>button,
  .ot-case-tabs>button,
  .ot-safety-tabs>button,
  .patient-communication-tabs>button,
  .robotic-tabs>button,
  .sa-clinical-tabs>button,
  .specialty-history-tabs>button,
  .specialty-tabs>button,
  .staff-ops-tabs>button,
  .statement-tabs>button,
  .structure-tabs>button,
  .tabs>button,
  .transfusion-form-tabs>button,
  .transfusion-tabs>button,
  .treatment-horizontal-tabs>button,
  .treatment-procedure-tabs>button,
  .hms-section-navigation>button,
  .cw-navigation>button,
  .cw-sections>button,
  .clinical-examination-tabs>button,
  .treatment-plan-module-tabs>button,
  [role=tab], .clinical-module-subnav-button) {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  min-height:44px; padding:12px 8px!important;
  background:transparent!important; background-image:none!important;
  color:#4c6578!important; -webkit-text-fill-color:currentColor!important;
  border:0!important; border-bottom:3px solid transparent!important;
  border-radius:0!important; box-shadow:none!important; outline:none; font-weight:650;
  line-height:1.4; white-space:normal; overflow-wrap:normal; cursor:pointer;
}
html body #root#root :is(.cgs-nav>button,
  .hospitality-command__services>button,
  .fmw-services>button,
  .fmw-command>nav>button,
  .finance-domain-nav>button,
  .finance-section-nav>button,
  .uso-workspace-nav>button,
  .uso-worklist-nav>button,
  .chw__areas>button,
  .pharmacy-filter-row>button,
  nav[aria-label="HR work areas"]>button,
  .amb-tabs>button,
  .anc-subtabs>button,
  .bd-tabs>button,
  .bhs-patient-tabs>button,
  .bhs-support-mode-tabs>button,
  .case-note-tabs>button,
  .ccg-tabs>button,
  .clinical-diagnosis-tabs>button,
  .clinical-history-tabs>button,
  .clinical-module-subnav>button,
  .cs-tabs>button,
  .cssd-catalog-editor-tabs>button,
  .dn-cs-subtabs>button,
  .dn-cs-tabs>button,
  .doctor-ws__tabs>button,
  .emergency-subtabs>button,
  .encounter-records-tabs>button,
  .ey-tabs>button,
  .finance-config-tabs>button,
  .hum-tabs>button,
  .integration-tabs>button,
  .investigation-catalogue-tabs>button,
  .ipd-filter-tabs>button,
  .marketing-primary-tabs>button,
  .marketing-subtabs>button,
  .maternity-assessment-tabs>button,
  .mw-tabs>button,
  .nurse-ws__tabs>button,
  .og-tabs>button,
  .opd-examination-tabs>button,
  .opd-stage-tabs>button,
  .opd-workspace-tabs>button,
  .ot-case-subnav>button,
  .ot-case-tabs>button,
  .ot-safety-tabs>button,
  .patient-communication-tabs>button,
  .robotic-tabs>button,
  .sa-clinical-tabs>button,
  .specialty-history-tabs>button,
  .specialty-tabs>button,
  .staff-ops-tabs>button,
  .statement-tabs>button,
  .structure-tabs>button,
  .tabs>button,
  .transfusion-form-tabs>button,
  .transfusion-tabs>button,
  .treatment-horizontal-tabs>button,
  .treatment-procedure-tabs>button,
  .hms-section-navigation>button,
  .cw-navigation>button,
  .cw-sections>button,
  .clinical-examination-tabs>button,
  .treatment-plan-module-tabs>button,
  [role=tab], .clinical-module-subnav-button):is(.active,.is-active,.selected,[data-state=active],[aria-selected=true],[aria-pressed=true],[aria-current]:not([aria-current=false])) {
  background:transparent!important; color:#087e8b!important; border-bottom-color:#087e8b!important; font-weight:750;
}
html body #root#root :is(.cgs-nav>button,
  .hospitality-command__services>button,
  .fmw-services>button,
  .fmw-command>nav>button,
  .finance-domain-nav>button,
  .finance-section-nav>button,
  .uso-workspace-nav>button,
  .uso-worklist-nav>button,
  .chw__areas>button,
  .pharmacy-filter-row>button,
  nav[aria-label="HR work areas"]>button,
  .amb-tabs>button,
  .anc-subtabs>button,
  .bd-tabs>button,
  .bhs-patient-tabs>button,
  .bhs-support-mode-tabs>button,
  .case-note-tabs>button,
  .ccg-tabs>button,
  .clinical-diagnosis-tabs>button,
  .clinical-history-tabs>button,
  .clinical-module-subnav>button,
  .cs-tabs>button,
  .cssd-catalog-editor-tabs>button,
  .dn-cs-subtabs>button,
  .dn-cs-tabs>button,
  .doctor-ws__tabs>button,
  .emergency-subtabs>button,
  .encounter-records-tabs>button,
  .ey-tabs>button,
  .finance-config-tabs>button,
  .hum-tabs>button,
  .integration-tabs>button,
  .investigation-catalogue-tabs>button,
  .ipd-filter-tabs>button,
  .marketing-primary-tabs>button,
  .marketing-subtabs>button,
  .maternity-assessment-tabs>button,
  .mw-tabs>button,
  .nurse-ws__tabs>button,
  .og-tabs>button,
  .opd-examination-tabs>button,
  .opd-stage-tabs>button,
  .opd-workspace-tabs>button,
  .ot-case-subnav>button,
  .ot-case-tabs>button,
  .ot-safety-tabs>button,
  .patient-communication-tabs>button,
  .robotic-tabs>button,
  .sa-clinical-tabs>button,
  .specialty-history-tabs>button,
  .specialty-tabs>button,
  .staff-ops-tabs>button,
  .statement-tabs>button,
  .structure-tabs>button,
  .tabs>button,
  .transfusion-form-tabs>button,
  .transfusion-tabs>button,
  .treatment-horizontal-tabs>button,
  .treatment-procedure-tabs>button,
  .hms-section-navigation>button,
  .cw-navigation>button,
  .cw-sections>button,
  .clinical-examination-tabs>button,
  .treatment-plan-module-tabs>button,
  [role=tab], .clinical-module-subnav-button):hover:not(:disabled) { background:#eef5f8!important; color:#193b53!important; }
html body #root#root :is(.cgs-nav>button,
  .hospitality-command__services>button,
  .fmw-services>button,
  .fmw-command>nav>button,
  .finance-domain-nav>button,
  .finance-section-nav>button,
  .uso-workspace-nav>button,
  .uso-worklist-nav>button,
  .chw__areas>button,
  .pharmacy-filter-row>button,
  nav[aria-label="HR work areas"]>button,
  .amb-tabs>button,
  .anc-subtabs>button,
  .bd-tabs>button,
  .bhs-patient-tabs>button,
  .bhs-support-mode-tabs>button,
  .case-note-tabs>button,
  .ccg-tabs>button,
  .clinical-diagnosis-tabs>button,
  .clinical-history-tabs>button,
  .clinical-module-subnav>button,
  .cs-tabs>button,
  .cssd-catalog-editor-tabs>button,
  .dn-cs-subtabs>button,
  .dn-cs-tabs>button,
  .doctor-ws__tabs>button,
  .emergency-subtabs>button,
  .encounter-records-tabs>button,
  .ey-tabs>button,
  .finance-config-tabs>button,
  .hum-tabs>button,
  .integration-tabs>button,
  .investigation-catalogue-tabs>button,
  .ipd-filter-tabs>button,
  .marketing-primary-tabs>button,
  .marketing-subtabs>button,
  .maternity-assessment-tabs>button,
  .mw-tabs>button,
  .nurse-ws__tabs>button,
  .og-tabs>button,
  .opd-examination-tabs>button,
  .opd-stage-tabs>button,
  .opd-workspace-tabs>button,
  .ot-case-subnav>button,
  .ot-case-tabs>button,
  .ot-safety-tabs>button,
  .patient-communication-tabs>button,
  .robotic-tabs>button,
  .sa-clinical-tabs>button,
  .specialty-history-tabs>button,
  .specialty-tabs>button,
  .staff-ops-tabs>button,
  .statement-tabs>button,
  .structure-tabs>button,
  .tabs>button,
  .transfusion-form-tabs>button,
  .transfusion-tabs>button,
  .treatment-horizontal-tabs>button,
  .treatment-procedure-tabs>button,
  .hms-section-navigation>button,
  .cw-navigation>button,
  .cw-sections>button,
  .clinical-examination-tabs>button,
  .treatment-plan-module-tabs>button,
  [role=tab], .clinical-module-subnav-button):focus-visible { outline:3px solid #087e8b!important; outline-offset:2px; }
html body #root#root :is(.cgs-nav>button,
  .hospitality-command__services>button,
  .fmw-services>button,
  .fmw-command>nav>button,
  .finance-domain-nav>button,
  .finance-section-nav>button,
  .uso-workspace-nav>button,
  .uso-worklist-nav>button,
  .chw__areas>button,
  .pharmacy-filter-row>button,
  nav[aria-label="HR work areas"]>button,
  .amb-tabs>button,
  .anc-subtabs>button,
  .bd-tabs>button,
  .bhs-patient-tabs>button,
  .bhs-support-mode-tabs>button,
  .case-note-tabs>button,
  .ccg-tabs>button,
  .clinical-diagnosis-tabs>button,
  .clinical-history-tabs>button,
  .clinical-module-subnav>button,
  .cs-tabs>button,
  .cssd-catalog-editor-tabs>button,
  .dn-cs-subtabs>button,
  .dn-cs-tabs>button,
  .doctor-ws__tabs>button,
  .emergency-subtabs>button,
  .encounter-records-tabs>button,
  .ey-tabs>button,
  .finance-config-tabs>button,
  .hum-tabs>button,
  .integration-tabs>button,
  .investigation-catalogue-tabs>button,
  .ipd-filter-tabs>button,
  .marketing-primary-tabs>button,
  .marketing-subtabs>button,
  .maternity-assessment-tabs>button,
  .mw-tabs>button,
  .nurse-ws__tabs>button,
  .og-tabs>button,
  .opd-examination-tabs>button,
  .opd-stage-tabs>button,
  .opd-workspace-tabs>button,
  .ot-case-subnav>button,
  .ot-case-tabs>button,
  .ot-safety-tabs>button,
  .patient-communication-tabs>button,
  .robotic-tabs>button,
  .sa-clinical-tabs>button,
  .specialty-history-tabs>button,
  .specialty-tabs>button,
  .staff-ops-tabs>button,
  .statement-tabs>button,
  .structure-tabs>button,
  .tabs>button,
  .transfusion-form-tabs>button,
  .transfusion-tabs>button,
  .treatment-horizontal-tabs>button,
  .treatment-procedure-tabs>button,
  .hms-section-navigation>button,
  .cw-navigation>button,
  .cw-sections>button,
  .clinical-examination-tabs>button,
  .treatment-plan-module-tabs>button,
  [role=tab], .clinical-module-subnav-button):disabled { color:#667788!important; opacity:.65; cursor:not-allowed; }
html body #root#root button.logbook-refresh { width:auto; height:auto; flex-shrink:0; }
