/* Aagami brand override for hospital-lifecare. Generated from ui.colorTokens by */
/* scripts/hospital-config.rb render-ui-config. Do not edit in the container. */
/* !important so these win over the styleguide's runtime-injected :root vars. */
:root {
  --brand-01: oklch(42% 0.12 235) !important;
  --brand-02: color-mix(in oklch, oklch(42% 0.12 235), black 22%) !important;
  --brand-03: color-mix(in oklch, oklch(42% 0.12 235), white 10%) !important;
}

/* Calm, brand-tinted backdrop on the login screen (restrained, not decorative). */
.omrs-main-content:has([class*="loginContainer"]),
[class*="loginContainer"] {
  background-color: color-mix(in oklch, oklch(98% 0.01 100), oklch(42% 0.12 235) 4%);
}

/* Hide the stock "Built with [OpenMRS wordmark]" footer badge on the login
   screen: esm-login-app's Footer renders it as a static SVG sprite, not
   text, so the openmrsLogo translation override (aria-label only) can't
   change the glyph. Scoped to esm-login-app's own CSS-module local names
   (footer/poweredByLogo) so nothing outside the login footer is touched.
   Selector-miss note: if esm-login-app renames these classes, this rule
   silently no-ops and the OpenMRS badge simply reappears. */
[class*="footer"] svg[class*="poweredByLogo"] {
  display: none;
}

/* Collapsible left nav (feature flag collapsibleNav). Selector miss degrades
   to no toggle, never a crash. */
/* Blast radius re-verified (Playwright, querySelectorAll('[class*="hasLeftNav"]'))
   on home, billing, support, patient chart, and dispensing: the only match on any
   route today is the /home esm-home-app dashboard SECTION. The other four routes
   currently match zero elements, but that is config-dependent, not structural: the
   dispensing app (1.9.1) also carries a conditional `hasLeftNav` class behind its
   own `leftNavMode` config, defaulted to something other than "normal", so it
   contributes zero matches only as long as no hospital config sets it otherwise.
   If a hospital ever does, our `html.hdp-nav-collapsed [class*="hasLeftNav"]` rule
   would collapse that offset too — which is the intended behavior, not a bug — but
   the "zero matches" claim above should not be read as a structural guarantee. */
.hdp-nav-collapse-button {
  position: absolute; bottom: 0.75rem; right: 0.5rem;
  border: none; background: transparent; cursor: pointer;
  font-size: 1rem; padding: 0.25rem 0.5rem; min-width: 24px; min-height: 24px;
}
.hdp-nav-collapse-button:focus-visible {
  outline: 2px solid var(--brand-01, #0f62fe); outline-offset: 2px;
}
html.hdp-nav-collapsed .cds--side-nav { width: 3rem; overflow: hidden; }
html.hdp-nav-collapsed .cds--side-nav__link { white-space: nowrap; }
@media (min-width: 1056px) {
  html.hdp-nav-collapsed .hdp-rail-offset { padding-left: 3rem; }
  html.hdp-nav-collapsed [class*="hasLeftNav"] { margin-left: 3rem !important; }
}
