/* aescora-theme.css: the Aescora One Theme for the web apps (Dr Yadav 14 Nov 2026: "Use these everywhere").
   The SOURCE is aescora-core brand/theme/aescora-theme.css; each web app carries a byte-identical copy at css/aescora-theme.css,
   loaded AFTER its own stylesheets, and a test pins the copy. Do not edit an app's copy: change it here, then copy it.
   Colours are the Aescora Clinic (Kotlin) palette, ui/theme/Color.kt. Amber and red keep their meaning (amber = check,
   red = stop); printed pages are not themed (print.css stays black on white); an X-ray viewer keeps its black (--viewer). */
:root{
  --brand-navy:#0D253F; --brand-on-navy:#FFFFFF; --brand-gold:#E6AD3C;
  --panel:#F8FAFC; --surface:#FFFFFF; --ink:#0F172A; --muted:#475569; --line:#CBD5E1;
  --accent:#0D253F; --on-accent:#FFFFFF; --accent-2:#0284C7; --ok:#0D9488; --flag:#DC2626;
  --chip:#E0E8F5; --warnbg:#FEF2F2;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --panel:#0F172A; --surface:#1E293B; --ink:#F8FAFC; --muted:#94A3B8; --line:#334155;
  --accent:#93C5FD; --on-accent:#03224C; --accent-2:#38BDF8; --ok:#2DD4BF; --flag:#F87171;
  --chip:#1E3A8A; --warnbg:#2B1A1C; color-scheme:dark}}
:root[data-theme="dark"]{
  --panel:#0F172A; --surface:#1E293B; --ink:#F8FAFC; --muted:#94A3B8; --line:#334155;
  --accent:#93C5FD; --on-accent:#03224C; --accent-2:#38BDF8; --ok:#2DD4BF; --flag:#F87171;
  --chip:#1E3A8A; --warnbg:#2B1A1C; color-scheme:dark}
@media screen{
  body{background:var(--panel);color:var(--ink)}
  /* the top bar is navy in both themes, as in Aescora Clinic */
  .app-head{background:var(--brand-navy);color:var(--brand-on-navy);border-bottom:0}
  .app-head h1,.app-head a{color:var(--brand-on-navy)}
  .app-head .btn{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.28);color:var(--brand-on-navy)}
  .app-head .seg{border-color:rgba(255,255,255,.35)}
  .app-head .seg button{color:var(--brand-on-navy)}
  .app-head .seg button[aria-pressed="true"]{background:#FFFFFF;color:var(--brand-navy);font-weight:700}
  .app-head .seg:empty{display:none}
  /* buttons: white on the light screen, the main one navy */
  .btn{background:var(--surface);border-color:var(--line)}
  .btn.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
  .btn.primary .note,.btn.primary small{color:inherit;opacity:.85}
  /* a button with a second line under its name (Clinic sign-in) shows it as a second line */
  .btn.big:has(br){flex-direction:column;gap:2px}
  /* a chosen option is bold as well as filled, so it never relies on colour alone */
  .seg button[aria-pressed="true"]{background:var(--accent);color:var(--on-accent);font-weight:700}
  .step .n{color:var(--on-accent)}
  .card,.dcard{background:var(--surface)}
  input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:8px}
  input:focus-visible,select:focus-visible,textarea:focus-visible,.btn:focus-visible,button:focus-visible{outline:3px solid var(--accent-2);outline-offset:2px}
}
