/* The look (28 Nov; the user, showing a mockup: "revamp it all like i showed"). One layer loaded after every other staff
   sheet and before a hospital's own (brand.css), so Rajasthan's and Sarvodaya's colours and fonts still win.
   DrMate's own brand (body.brand-drmate: Agarwal, Sunrise, the lab): a serif for large titles and figures (Instrument
   Serif, with Tiro Devanagari Hindi for Hindi), Inter for everything else (with Noto Sans Devanagari), a sage page, white
   cards with hairlines, deep green for what is pressed or chosen, pill buttons, small-caps labels. A hospital with its
   own brand (body.hui) keeps its fonts and colours and gets the same shapes and type scale in them.
   The serif is for titles and large figures only: never tables, transcripts, numbers to dial or buttons. */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&family=Tiro+Devanagari+Hindi:ital@0;1&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap");

/* ---------- tokens ---------- */
body {
  --look-display: var(--hui-head-font, inherit);   /* a hospital's own heading face (hospital-ui, brand sheets) */
  --look-display-weight: 700;
  --look-radius: 18px;
  --look-radius-sm: 12px;
}
body.brand-drmate {
  --paper: #eff1ec;
  --paper-2: #f6f7f3;
  --white: #ffffff;
  --ink: #1b2b27;
  --muted: #677570;
  --line: #e1e5df;
  --line-strong: #cdd5cd;
  --navy: #1f3b34;
  --navy-hover: #17302a;
  --mint: #2f6d5a;
  --mint-soft: #e5eee8;
  --amber: #96620f;
  --amber-soft: #f8ecd6;
  --red: #b0443b;
  --red-soft: #fae8e4;
  --blue-soft: #e8eef5;
  --ring: 0 0 0 3px rgba(47, 109, 90, .18);
  --shadow: 0 1px 2px rgba(27, 43, 39, .04), 0 2px 8px -2px rgba(27, 43, 39, .05);
  --shadow-lift: 0 1px 2px rgba(27, 43, 39, .05), 0 16px 36px -18px rgba(27, 43, 39, .24);
  --look-text: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --look-display: "Instrument Serif", "Tiro Devanagari Hindi", Georgia, "Times New Roman", serif;
  --look-display-weight: 400;
  font-family: var(--look-text);
  font-feature-settings: "cv11", "ss01";            /* Inter's straight-sided 1 and open digits: figures read at a glance */
  background: var(--paper);
}
body.brand-drmate :is(input, select, textarea, button) { font-family: inherit; }

/* ---------- small-caps labels (the mockup's "WORKSPACE", "MONDAY · 25 MAY") ---------- */
.look-eyebrow { margin: 0; font: 600 11.5px/1.3 var(--look-text, inherit); letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }

/* ---------- the page's title ---------- */
.page-title h1 { font-family: var(--look-display); font-weight: var(--look-display-weight); }
body.brand-drmate .page-title h1 { font-size: 46px; line-height: 1.02; letter-spacing: -.01em; }
body.hui .page-title h1 { font-size: 34px; }
@media (max-width: 760px) { body.brand-drmate .page-title h1 { font-size: 36px; } }

/* ---------- cards ---------- */
:is(.fd-card, .card, .np, .cp) { border-radius: var(--look-radius); }
body.brand-drmate :is(.fd-card, .card) { border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--white); }
body.brand-drmate .fd-title h2, body.brand-drmate .card-head h2 {
  font-family: var(--look-display); font-weight: var(--look-display-weight); font-size: 23px; letter-spacing: -.005em;
}
body.brand-drmate .fd-title p { color: var(--muted); }

/* ---------- the desk's tiles: a large figure in the serif, the label above it, a chip of what it means ---------- */
body:not(.fd-many) .fd-stat { border-radius: var(--look-radius); }
body.brand-drmate:not(.fd-many) .fd-stat { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
body.brand-drmate:not(.fd-many) .fd-stat b {
  font-family: var(--look-display); font-weight: var(--look-display-weight); font-size: 46px; line-height: 1; letter-spacing: -.01em;
  font-variant-numeric: lining-nums;
}
body.brand-drmate:not(.fd-many) .fd-stat span { font-size: 13.5px; font-weight: 500; color: var(--muted); }
body.brand-drmate:not(.fd-many) .fd-stat small { color: var(--muted); }
body.brand-drmate .fd-stat .fd-ico { border-radius: 10px; background: var(--mint-soft); color: var(--navy); }
/* the Report's figures, the same way */
.kpi { border-radius: 16px; }
body.brand-drmate .kpi b { font-family: var(--look-display); font-weight: var(--look-display-weight); font-size: 40px; line-height: 1.02; letter-spacing: -.01em; }
body.brand-drmate .kpi small { color: var(--muted); font-weight: 500; }

/* ---------- buttons: pills; the main one deep green ---------- */
.btn, .btn.small { border-radius: 999px; }
body.brand-drmate .btn { background: var(--white); border: 1px solid var(--line-strong); color: var(--ink); font-weight: 600; }
body.brand-drmate .btn:hover:not(:disabled) { background: var(--paper-2); }
body.brand-drmate .btn.primary, body.brand-drmate a.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
body.brand-drmate .btn.primary:hover:not(:disabled) { background: var(--navy-hover); border-color: var(--navy-hover); }
body.brand-drmate .btn.ghost { background: transparent; border-color: transparent; }

/* ---------- fields ---------- */
body.brand-drmate :is(.rx-input, .field input, .field select, .field textarea, input[type="search"]) {
  border-radius: var(--look-radius-sm); border-color: var(--line); background: var(--white);
}
body.brand-drmate input[type="search"], body.brand-drmate .facts-find { border-radius: 999px; }
body.brand-drmate :is(.rx-input, .field input, .field select, .field textarea, input[type="search"]):focus { box-shadow: var(--ring); border-color: var(--mint); }

/* ---------- segmented choices and tabs: the chosen one deep green, as the mockup's Day / Week / Month ---------- */
body.brand-drmate .seg { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
body.brand-drmate .seg button { border-radius: 999px; }
body.brand-drmate .seg button.on { background: var(--navy); color: #fff; box-shadow: none; }
body.brand-drmate :is(.facts-tabs, .facts-kinds) { border-radius: 999px; }
body.brand-drmate :is(.facts-tabs, .facts-kinds) button { border-radius: 999px; }
body.brand-drmate :is(.facts-tabs button[aria-selected="true"], .facts-kinds button[aria-pressed="true"]) { background: var(--navy); color: #fff; box-shadow: none; }

/* ---------- chips ---------- */
.pill { border-radius: 999px; }
.nav-count { border-radius: 999px; }
body.brand-drmate .nav-count { background: var(--mint-soft); color: var(--navy); font-weight: 700; }

/* ---------- the top bar (narrow) and the sidebar (wide) ---------- */
body.brand-drmate .topbar.staff-bar { background: var(--white); }
body.brand-drmate .staff-bar .brand strong { font-family: var(--look-display); font-weight: var(--look-display-weight); font-size: 24px; letter-spacing: 0; }
body.brand-drmate .staff-bar .mode-nav a.on { background: var(--navy); color: #fff; }
body.brand-drmate .staff-bar .mode-nav a.on svg { stroke: #fff; }
body.brand-drmate .staff-bar .mode-nav a.on .nav-count { background: rgba(255, 255, 255, .2); color: #fff; }
@media (min-width: 1300px) {
  body.brand-drmate:not(:has(.staff-bar.many)) .topbar.staff-bar { background: var(--paper-2); border-right: 1px solid var(--line); }
  body.brand-drmate:not(:has(.staff-bar.many)) .staff-bar .staff-nav::before {
    content: "Workspace"; display: block; padding: 6px 10px 8px; font: 600 11px/1.3 var(--look-text); letter-spacing: .14em;
    text-transform: uppercase; color: var(--muted);
  }
  body.brand-drmate:not(:has(.staff-bar.many)) .staff-bar .staff-nav > a { padding: 9px 12px; border-radius: 12px; font-weight: 500; }
  body.brand-drmate:not(:has(.staff-bar.many)) .staff-bar .staff-nav > a.on { background: var(--navy); color: #fff; font-weight: 600; }
  body.brand-drmate:not(:has(.staff-bar.many)) .staff-bar .staff-nav > a.on svg { stroke: #fff; }
}
@media (min-width: 1500px) {
  body.brand-drmate:is(:has(.staff-bar.many)) .topbar.staff-bar { background: var(--paper-2); border-right: 1px solid var(--line); }
  body.brand-drmate:is(:has(.staff-bar.many)) .staff-bar .staff-nav > a { border-radius: 12px; }
  body.brand-drmate:is(:has(.staff-bar.many)) .staff-bar .staff-nav > a.on { background: var(--navy); color: #fff; }
  body.brand-drmate:is(:has(.staff-bar.many)) .staff-bar .staff-nav > a.on svg { stroke: #fff; }
}

/* ---------- the desk's greeting (desk.html: a clinic's desk; a big hospital's one-screen desk has none) ---------- */
.look-hello { max-width: 1440px; margin: 0 auto; padding: 30px 24px 4px; display: grid; gap: 6px; }
.look-hello h1 { margin: 0; font-family: var(--look-display); font-weight: var(--look-display-weight); font-size: 46px; line-height: 1.04; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.look-hello h1 em { font-style: italic; color: var(--mint); }
.look-hello-sub { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
body.hui .look-hello h1 { font-size: 32px; }
body.desk-page:has(.look-hello) .page-title { display: none; }
@media (max-width: 760px) { .look-hello { padding: 18px 16px 0; } .look-hello h1 { font-size: 34px; } }
@media (min-width: 1300px) { body.brand-drmate:not(:has(.staff-bar.many)) .look-hello { padding-top: 38px; } }

/* ---------- the doctor's pages: the prescription pad's "Who is next?" and the doctor's room's panels ---------- */
body.brand-drmate .start-head h1 { font-family: var(--look-display); font-weight: var(--look-display-weight); font-size: 40px; letter-spacing: -.005em; }
body.brand-drmate .panel-head h2 { font-family: var(--look-display); font-weight: var(--look-display-weight); font-size: 22px; letter-spacing: 0; }
body.brand-drmate .panel-head small { letter-spacing: .14em; color: var(--mint); font-weight: 600; }
body.brand-drmate .panel { border-radius: var(--look-radius); border-color: var(--line); }
@media (max-width: 760px) { body.brand-drmate .start-head h1 { font-size: 30px; } }

/* ---------- the sign-in page ---------- */
body.brand-drmate .login-card { border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-lift); }
body.brand-drmate .login-card h1 { font-family: var(--look-display); font-weight: var(--look-display-weight); font-size: 34px; letter-spacing: -.005em; }
