/* ==========================================================================
   Pharmacy look for the signed-in Lab app and its sign-in screens.
   Loads AFTER app.css and pharmacy-tokens.css. It remaps this app's own CSS variables to the Pharmacy design tokens and adds
   targeted overrides. NO app logic here, only looks.
   Rules:
   - LIGHT ONLY (no dark mode, no prefers-color-scheme).
   - Reports, invoices and prints are "paper": .report-preview / .rpt-page / .print-doc / @media print keep white paper + black text.
   ========================================================================== */

/* ---------- 1. variables ---------- */
:root {
  --bg: #f2f5f9;
  --card: #fff;
  --ink: #1b2a4a;
  --ink2: #3c4761;
  --muted: #6f7a92;
  --faint: #8b94a7;
  --line: #e2e8f1;
  --line2: #edf1f7;
  --bd: #d6deea;
  --brand: #1b2a4a;
  --brand-d: #1b2a4a;
  --brand-grad: linear-gradient(135deg, #3b7bf7 0%, #1f4fd1 100%);
  --brand-soft: #eaf0ff;
  --brand-line: #c9d8fb;
  --blue: #2f6df6;
  --blue-soft: #eaf0ff;
  --red: #e11d48; --red-soft: #fdecef;
  --amber: #c2750a; --amber-soft: #fef3dd;
  --green: #15935a; --green-soft: #e4f6ec;
  --violet: #7c4ee6; --violet-soft: #f0ebff;
  --teal: #38a89d;
  --sidebar: #fbfcfe;
  --topbar: rgba(251, 252, 254, .9);
  --tint: #e9f5f2;
  --tint-line: #d5eae4;
  --tint-ink: #0b7a72;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --sh-sm: 0 1px 2px rgba(27, 42, 74, .04), 0 8px 20px -14px rgba(27, 42, 74, .14);
  --sh-md: 0 16px 38px -18px rgba(27, 42, 74, .16);
  --sh-lg: 0 30px 60px -22px rgba(27, 42, 74, .24);
  --paper-ink: #111;
  --font: 'Plus Jakarta Sans', Inter, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
html { color-scheme: only light; }

/* ---------- 2. base ---------- */
body { background: var(--bg); color: var(--ink); font-family: var(--font); }
::selection { background: #2f6df633; }
::-webkit-scrollbar-thumb { background: #cfd7e4; border-color: var(--bg); }
.maincol { background: none; }
.topbar, body:not(.auth) .topbar { background: var(--topbar); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
.page-title, .tb-title h1, .page-h h2 { color: var(--ink); letter-spacing: -.02em; }
a:focus-visible, button:focus-visible, .nav-it:focus-visible { outline: 3px solid rgba(47, 109, 246, .35); outline-offset: 2px; }

/* cards: clean white, rounded 20px, soft shadow, borderless (matching Dashboard) */
body:not(.auth) .card, .card, .pt-card { border: 0 !important; border-radius: 20px !important; box-shadow: 0 2px 14px rgba(27, 42, 74, .08) !important; background: #fff !important; }
.card-h { border-bottom: 1px solid #f0f3f8 !important; }
.modal { border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--sh-lg); }
.modal-wide { width: 1180px !important; max-width: 96vw !important; }
.modal-extra-wide { width: min(1360px, 96vw) !important; max-width: 96vw !important; }
.modal-extra-wide .modal-b { max-height: calc(100vh - 120px) !important; }
.modal-ov { background: rgba(27, 42, 74, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-f { background: #f8fafc; border-radius: 0 0 28px 28px; }

/* buttons: rounded, blue primary */
.btn { background: #fff; color: var(--ink2); border: 1px solid var(--line); border-radius: 14px; font-weight: 700; box-shadow: none; }
.btn:hover { background: #f8fafc; border-color: var(--bd); }
.btn-primary, .login-signin { background: var(--blue); border: 1px solid var(--blue); color: #fff; box-shadow: 0 14px 30px -12px rgba(47, 109, 246, .55); }
.btn-primary:hover, .login-signin:hover { background: var(--blue-d); border-color: var(--blue-d); color: #fff; transform: translateY(-1px); box-shadow: 0 18px 36px -12px rgba(47, 109, 246, .6); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); box-shadow: none; }
.btn-ghost:hover { background: #eef2f8; color: var(--ink); }
.btn-blue { background: var(--blue); } .btn-blue:hover { background: var(--blue-d); }

/* inputs: soft grey fill, rounded, blue focus ring */
.input, .select, textarea.input { border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; color: var(--ink); font-weight: 500; }
.input:focus, .select:focus, textarea.input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 109, 246, .14); background: #fff; }
.input::placeholder { color: var(--faint); }
.search input { background: #f8fafc; border-color: var(--line); color: var(--ink); border-radius: 14px; }
.search input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 109, 246, .14); background: #fff; }
.test-search { background: #f8fafc; border-color: var(--line); box-shadow: none; }
.test-filter-pill, .test-action-pill { background: #f8fafc; border-color: var(--line); box-shadow: none; }
.test-add-pill { background: var(--blue); border-color: var(--blue); box-shadow: 0 10px 20px -10px rgba(47, 109, 246, .6); }
.test-type-pill { color: var(--ink2); }
.test-type-pill.active { background: var(--blue); border-color: var(--blue); box-shadow: 0 8px 16px -8px rgba(47, 109, 246, .55); }
.radio-pill { background: #fff; border-color: var(--line); }
.radio-pill.on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
input[type=checkbox], input[type=radio] { accent-color: var(--blue); }

/* tables */
.table thead th { background: #f6f8fb; color: var(--muted); border-bottom: 1px solid var(--line); }
.table tbody td { border-bottom: 1px solid var(--line2); }
.table tbody tr:hover, #view .tbl-wrap table.table tbody tr:hover { background: #f4f8ff; }
#view .tbl-wrap table.table tbody tr { background: transparent; }
.table .id-cell { color: var(--blue); }

/* badges */
.b-inactive { background: #eef2f8; }
.b-teal { background: var(--tint); color: var(--tint-ink); }
.role-pill { background: var(--blue-soft); color: var(--blue); }

/* ---------- 3. sidebar: white, blue icons and a soft blue active item ---------- */
.sidebar { background: var(--sidebar); border-right: 1px solid var(--line); }
.sidebar .brand { border-bottom: 1px solid var(--line2); }
.sidebar .brand-tx b, .sf-tx b { color: #0f172a; }
.sidebar .brand-tx small, .sf-tx small { color: #334155; }
.sidebar .nav-sec2 { color: #0f172a; letter-spacing: .08em; font-weight: 800; }
.sidebar .nav-chev { color: #0f172a; }
.nav-it, .nav-sub-it { color: #0f172a; border-radius: 12px; }
.nav-ic { color: #0f172a; }
/* one colour for the whole left panel: crisp dark menu icons and text */
.nav-it:hover, .nav-sub-it:hover { background: #f1f4f9; color: #000; }
.nav-it.active { background: #e6f4f1; color: #044e49; box-shadow: inset 0 0 0 1px #bce3dc; font-weight: 700; }
.nav-it.active::before { background: #044e49; width: 4px; }
.nav-sub { border-left-color: var(--line); }
.nav-sub-it.on { color: #044e49; }
.nav-sub-it.on::before { background: #044e49; box-shadow: 0 0 0 3px #bce3dc; }
.sidebar .nav-sub-it .nav-sub-ic { color: #0f172a; }
.nav-sub-it.danger, .nav-sub-it.danger.on { color: var(--red); }
.sidebar .nav-sub-it.danger .nav-sub-ic { color: var(--red); }
.nav-fold.has-active > .nav-fh { color: #044e49; }
.side-foot { border-top: 1px solid var(--line2); background: #f8fafc; }
.sf-plan.info { background: var(--blue-soft); color: var(--blue); }
.sf-plan.ok { background: var(--green-soft); color: var(--green); }
.sf-plan.bad { background: var(--red-soft); color: var(--red); }
.sf-out { color: var(--muted); } .sf-out:hover { background: var(--red-soft); color: var(--red); }
.sf-av, .user-av, .avatar, .tb-avatar { background: var(--navy); color: #fff; }
.logo-mark, .brand-mark { background: var(--brand-grad); box-shadow: 0 10px 20px -8px rgba(47, 109, 246, .55); }
.sidebar .brand-mark { border-radius: 13px; }
.nav-toggle, .tb-menu, .side-close { background: #fff; border-color: var(--line); color: var(--ink2); border-radius: 12px; }
.nav-toggle:hover { background: var(--blue-soft); color: var(--blue); border-color: var(--blue); }
.tb-qa { display: flex; gap: 8px; align-items: center; margin-right: 0; }
.tb-qa .tb-qab, .topbar .tb-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0 !important; border-radius: 50% !important; border: 1px solid #e2e8f0 !important; background: #fff !important; color: #1b2a4a !important; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important; text-decoration: none; cursor: pointer; flex: none; transition: all .15s ease; position: relative; }
.tb-qa .tb-classic { background: #fff !important; border: 1px solid #e2e8f0 !important; color: #1b2a4a !important; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important; transform: none !important; }
.tb-qa .tb-classic:hover, .tb-qa .tb-qab:hover, .topbar .tb-icon-btn:hover { background: #f8fafc !important; border-color: #cbd5e1 !important; color: #2563eb !important; box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08) !important; transform: translateY(-1px) !important; }
.tb-qa .tb-classic svg, .tb-qa .tb-qab svg, .topbar .tb-icon-btn svg { color: inherit !important; width: 18px !important; height: 18px !important; flex: none; }
@media (max-width: 768px) { .tb-qa { gap: 6px; margin-right: 0; } .tb-qa .tb-qab, .topbar .tb-icon-btn { width: 34px; height: 34px; } .tb-qa .tb-qab svg, .topbar .tb-icon-btn svg { width: 16px !important; height: 16px !important; } }
@media (max-width: 480px) { .tb-qa { gap: 4px; } .tb-qa .tb-qab, .topbar .tb-icon-btn { width: 32px; height: 32px; } .tb-qa .tb-qab svg, .topbar .tb-icon-btn svg { width: 15px !important; height: 15px !important; } }
.tb-bell-count { background: var(--blue); }
.sub-cta { background: var(--navy); }

/* ---------- 4. stat / kpi cards (clean solid white dashboard cards) ---------- */
.stat, .kpi {
  background: #ffffff !important;
  border-radius: 20px !important;
  border: none !important;
  box-shadow: 0 2px 14px rgba(27, 42, 74, .08) !important;
  padding: 18px 20px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative !important;
  overflow: hidden !important;
  transition: transform .18s ease, box-shadow .18s ease !important;
}
.stat:hover, .kpi:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 34px -16px rgba(27, 42, 74, .25) !important;
}
.stat::before, .kpi::before,
.stat > div[style*="border-radius:50%"] { display: none !important; }

/* All card, stat, KPI, and overview icons merged into page (unboxed, transparent background, light blue #2563eb) */
.stat-ico, .kpi-ic, .stat-ic,
.stat[data-tint] .stat-ico,
.stat[data-tint="brand"] .stat-ico,
.stat[data-tint="blue"] .stat-ico,
.stat[data-tint="green"] .stat-ico,
.stat[data-tint="amber"] .stat-ico,
.stat[data-tint="red"] .stat-ico,
.stat[data-tint="purple"] .stat-ico,
.stat[data-tint="violet"] .stat-ico,
.kpi[data-tint] .kpi-ic,
.kpi[class*="t-"] .kpi-ic,
.stat .stat-ico,
.stat .stat-ic,
.kpi .kpi-ic,
.ovk-ic,
.ovk-h .ovk-ic,
.ovk.sm .ovk-ic,
.kpi-icon,
.vitals-med-icon-box,
.vital-icon,
.sim-ico-box,
.ai-sim-card .sim-ico-box,
.unifi-panel-icon,
.dl-ico,
.card-h .dl-ico,
.wa-brand-ico,
.sms-brand-ico,
#view .stat .stat-ico,
#view .kpi .kpi-ic,
#view .stat.ai-dash-kpi .stat-ico,
#optixAiDashboard .ai-dash-kpi .stat-ico,
.stat.ai-dash-kpi .stat-ico,
#view .db-page .stat .stat-ico,
.db-page .stat .stat-ico {
  position: relative !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin-bottom: 8px !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #2563eb !important;
  flex: none !important;
}

.stat-ico svg, .kpi-ic svg, .stat-ic svg,
.stat[data-tint] .stat-ico svg,
.stat[data-tint="brand"] .stat-ico svg,
.stat[data-tint="blue"] .stat-ico svg,
.stat[data-tint="green"] .stat-ico svg,
.stat[data-tint="amber"] .stat-ico svg,
.stat[data-tint="red"] .stat-ico svg,
.stat[data-tint="purple"] .stat-ico svg,
.stat[data-tint="violet"] .stat-ico svg,
.kpi[data-tint] .kpi-ic svg,
.kpi[class*="t-"] .kpi-ic svg,
.stat .stat-ico svg,
.stat .stat-ic svg,
.kpi .kpi-ic svg,
.ovk-ic svg,
.ovk-h .ovk-ic svg,
.ovk.sm .ovk-ic svg,
.dl-ico svg,
.card-h .dl-ico svg,
.wa-brand-ico svg,
#view .stat .stat-ico svg,
#view .kpi .kpi-ic svg,
#view .stat.ai-dash-kpi .stat-ico svg,
#optixAiDashboard .ai-dash-kpi .stat-ico svg,
.stat.ai-dash-kpi .stat-ico svg,
#view .db-page .stat .stat-ico svg,
.db-page .stat .stat-ico svg {
  width: 28px !important;
  height: 28px !important;
  stroke-width: 2.2 !important;
  color: #2563eb !important;
}

/* Secondary tab icons and empty state icons unboxed and merged into page */
.tab .tab-ico, .tab-ico, .tab-ico-alt,
.fn-tabs a.tab .tab-ico, .fn-tabs a.tab .tab-ico-alt,
.ai-tab-btn .ai-tab-ico {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: #2563eb !important;
}
.tab .tab-ico svg, .fn-tabs a.tab .tab-ico svg, .ai-tab-btn .ai-tab-ico svg {
  color: #2563eb !important;
}
.empty .e-ico {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: #2563eb !important;
}
.empty .e-ico svg {
  color: #2563eb !important;
}

html .db-page { --brand: #1b2a4a; --brand-d: #1b2a4a; --brand-soft: #eaf0ff; --brand-line: #c9d8fb; --brand-grad: linear-gradient(135deg, #3b7bf7, #1f4fd1);
  --blue: #2f6df6; --blue-soft: #eaf0ff; --ink: #1b2a4a; --ink2: #3c4761; --muted: #6f7a92; --faint: #8b94a7; --line: #e2e8f1; --line2: #edf1f7; --bg: #f2f5f9; --card: #fff;
  --sh-sm: 0 1px 2px rgba(27, 42, 74, .04), 0 8px 20px -14px rgba(27, 42, 74, .14); --sh-md: 0 16px 38px -18px rgba(27, 42, 74, .16); font-family: var(--font); }

/* ---------- 5. sign-in / sign-up: Split Teal & Blurred Artwork Card ---------- */
body.login-mode { background: linear-gradient(90deg, #f3f7f6 50%, #21524e 50%) !important; min-height: 100vh; }
.login-wrap, .login-wrap.lg-split {
  background: linear-gradient(90deg, #f3f7f6 50%, #21524e 50%) !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  width: min(860px, calc(100vw - 32px));
  min-height: 510px;
  margin: 4vh auto;
  padding: 0 !important;
  border-radius: 26px;
  box-shadow: 0 32px 72px -18px rgba(8,28,26,.34), 0 8px 24px -8px rgba(8,28,26,.14);
  overflow: hidden;
}
.login-wrap::before, .login-wrap::after, .login-wrap.lg-split::before, .login-wrap.lg-split::after { display: none !important; }
.lg-split .lg-form { order: 1; background: #f9fbfb !important; padding: 36px 32px !important; display: flex !important; flex-direction: column; align-items: center; justify-content: center; width: 100%; }
.lg-split .lg-brand {
  order: 2;
  display: flex !important;
  position: relative;
  isolation: isolate;
  background: #0b1718 !important;
  color: #fff;
  padding: 38px 32px !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.lg-split .lg-brand::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(circle at 62% 52%, #ff3b00 0%, #e0351b 24%, transparent 54%),
    radial-gradient(circle at 42% 35%, #ff9e2c 0%, transparent 42%),
    radial-gradient(circle at 48% 25%, #38bdf8 0%, transparent 32%),
    radial-gradient(circle at 38% 78%, #ec4899 0%, transparent 40%),
    linear-gradient(145deg, #071314 0%, #0f292a 50%, #091617 100%);
  filter: blur(26px) saturate(1.25);
  transform: scale(1.08);
}
.lg-orbs, .lg-grid, .lg-pill, .lg-feat, .lg-demo, .lg-plat, .lg-ecg, .lg-bubs, .login-mark, .login-tag, .login-foot { display: none !important; }
.lg-brand-in { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 250px; }
.lg-hero { font-size: 30px !important; font-weight: 700 !important; color: #fff !important; margin: 0 0 12px !important; line-height: 1.18 !important; }
.lg-lead { font-size: 12.5px !important; color: rgba(255,255,255,.9) !important; line-height: 1.55 !important; margin: 0 0 22px !important; }
.lg-ghost-cta {
  display: inline-flex; align-items: center; justify-content: center;
  width: 150px; height: 41px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.85); background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px); color: #fff !important; font-size: 12.5px; font-weight: 600;
  text-decoration: none !important; transition: all .18s;
}
.lg-ghost-cta:hover { background: rgba(255,255,255,.22); transform: translateY(-1px); }
.login-wrap.lg-split .login-card, .lg-split .lg-card, .login-card {
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  padding: 0 !important; width: 100% !important; max-width: 300px !important; text-align: center;
}
.lg-split .lg-card.lg-wide { max-width: 320px !important; }
.login-logo { margin-bottom: 10px !important; }
.login-logo h1, .login-card h2 { font-size: 27px !important; font-weight: 800 !important; color: #111827 !important; margin: 0 0 10px !important; text-align: center; }
.lg-fl { display: none !important; }
.lg-in > svg { display: none !important; }
.lg-in .input, .lg-in .select {
  height: 42px !important; border-radius: 999px !important;
  background: #edf3f2 !important; border: 1px solid #d8e3e1 !important;
  padding: 0 18px !important; font-size: 12.5px !important; color: #1f2937 !important;
}
.lg-in .input:focus, .lg-in .select:focus {
  background: #fff !important; border-color: #21524e !important;
  box-shadow: 0 0 0 3px rgba(33,82,78,.14) !important;
}
.login-signin {
  width: auto !important; min-width: 170px !important; max-width: 100% !important; min-height: 42px !important; height: auto !important; margin: 10px auto 0 !important;
  border-radius: 999px !important; background: #21524e !important; color: #fff !important;
  font-size: 13px !important; font-weight: 600 !important; padding: 10px 28px !important;
  white-space: nowrap !important; box-sizing: border-box !important;
  box-shadow: 0 10px 22px -6px rgba(33,82,78,.48) !important;
}
.login-signin .lg-ba { display: none !important; }
@media (max-width: 760px) {
  body.login-mode, .login-wrap, .login-wrap.lg-split { background: #f3f7f6 !important; grid-template-columns: 1fr; max-width: 400px; }
  .lg-split .lg-brand { padding: 28px 22px !important; }
}
/* ---------- 6. subscription / misc accents that were navy ---------- */
.plan-card.cur, .plan-card.current { border-color: var(--blue); }

.sb-bar i { background: linear-gradient(90deg, #2f6df6, #38a89d) !important; }
.sb-pc.pop { border-color: var(--blue) !important; box-shadow: 0 16px 38px -18px rgba(47, 109, 246, .4) !important; }
.sb-ribbon { background: var(--blue) !important; }
.sb-pc, .sb-code { border-radius: 22px; }

/* ---------- 7. paper: reports, invoices and prints keep white paper + dark text ---------- */
.report-preview, .rpt-page, .print-doc { color-scheme: light; }

/* ---------- 8. chat widget (shared with the website) ---------- */
.oxc-fab, .oxc-header, .oxc-msg-user, .oxc-send { background: #2f6df6 !important; }
.oxc-fab { box-shadow: 0 14px 30px -10px rgba(47, 109, 246, .55) !important; }
.oxc-panel { border-radius: 24px !important; }

.lg-socials { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px 0 8px; }
.lg-soc { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #dde6e5; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.04); }

.soc-btn, .lg-soc { position: relative !important; overflow: hidden !important; cursor: pointer !important; }
.soc-g-hit { position: absolute !important; inset: -3px !important; opacity: 0.015 !important; z-index: 20 !important; display: flex !important; align-items: center !important; justify-content: center !important; overflow: hidden !important; cursor: pointer !important; }
.soc-g-hit iframe { cursor: pointer !important; transform: scale(1.35) !important; }

/* login-compact-final: same compact split card as the Optix Suite sign-in */
.login-wrap.lg-split{position:fixed!important;inset:0!important;width:min(860px,calc(100vw - 32px))!important;height:fit-content!important;min-height:510px!important;max-height:calc(100vh - 32px)!important;margin:auto!important;overflow:hidden!important;border-radius:26px!important}
.lg-split .lg-form{justify-content:center!important;padding:38px 34px!important;gap:0!important;overflow:auto!important;background:#f9fbfb!important}
.lg-split .lg-form::before,.lg-split .lg-form::after,.login-card::before,.login-card::after{display:none!important;content:none!important}
.lg-split .login-card{animation:none!important;opacity:1!important;transform:none!important}
.lg-split .lg-hint{display:none!important}
.lg-split .lg-alt{margin-top:12px!important}
.lg-split .lg-alt-links a{font-weight:400!important;color:#5f6f6d!important}
.lg-split .lg-alt-links a:hover{color:#21524e!important}
.lg-split .lg-forgot a{font-weight:400!important;color:#5f6f6d!important;border:0!important;text-decoration:none!important}
.lg-split .lg-forgot{text-align:center!important;margin:2px 0 0!important}
@media(max-width:760px){.login-wrap.lg-split{width:min(400px,calc(100vw - 24px))!important}}

/* login-size: sign-in card is full size (the app zoom of 0.9 must not shrink it) */
body.login-mode{zoom:1!important}

.lg-split .lg-form{padding:30px 34px!important}
.lg-split .lg-alt{margin-top:8px!important}

/* Settings pages (Lab Profile and the other tabs): every text field has a clear, bold outline */
#setBody .input, #setBody .select, #setBody textarea, .unifi-panel .input, .unifi-panel .select, .unifi-panel textarea { border: 1.5px solid #8c9ab3; background: #fff; }
#setBody .input:focus, #setBody .select:focus, #setBody textarea:focus, .unifi-panel .input:focus, .unifi-panel .select:focus, .unifi-panel textarea:focus { border-color: #2f6df6; box-shadow: 0 0 0 3px rgba(47,109,246,.16); outline: none; }
#setBody .input:disabled, #setBody .select:disabled { background: #f3f5f9; }

/* the location boxes are menus: a small arrow shows there is a list to pick from */
input[list*="regloc" i], input[list*="destloc" i] { padding-right: 34px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236f7a92' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 12px center !important; }
input[list*="regloc" i]::-webkit-calendar-picker-indicator, input[list*="destloc" i]::-webkit-calendar-picker-indicator { background: transparent; color: transparent; width: 28px; cursor: pointer; }


/* ================= Overview look (shell): back / forward, page crumb, user chip, menu search, plan strip ================= */
.topbar { position: sticky !important; top: 0 !important; z-index: 50 !important; min-height: 64px; padding: 10px 24px; gap: 10px; background: #fff; border-bottom: 1px solid #eef2f6; display: flex; align-items: center; }
.topbar .tb-nb { width: 36px; height: 36px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; color: #475569; display: grid; place-items: center; cursor: pointer; flex: none; padding: 0; transition: background .15s, border-color .15s; }
.topbar .tb-nb:hover { background: #f8fafc; border-color: #cbd5e1; }
.topbar .tb-crumb { display: flex; align-items: center; gap: 8px; min-width: 0; margin-left: 6px; }
.topbar .tb-crumb-ic { color: #8a94a6; display: grid; place-items: center; }
.topbar .tb-crumb-ic svg { width: 16px; height: 16px; color: #8a94a6; }
.topbar .page-title { font-size: 16px; font-weight: 500 !important; margin: 0; color: #1b2a4a; white-space: nowrap; letter-spacing: -.01em; }
.topbar .top-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.topbar .tb-icon-btn { position: relative; width: 38px; height: 38px; border: 1px solid #e2e8f0 !important; background: #fff !important; color: #1b2a4a !important; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important; display: inline-flex; align-items: center; justify-content: center; border-radius: 50% !important; cursor: pointer; padding: 0 !important; text-decoration: none; flex: none; transition: all .15s ease; }
.topbar .tb-icon-btn:hover { background: #f8fafc !important; border-color: #cbd5e1 !important; color: #2563eb !important; box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08) !important; transform: translateY(-1px) !important; }
.topbar .tb-icon-btn svg { width: 18px !important; height: 18px !important; color: inherit !important; flex: none; }
.topbar .tb-dot { position: absolute; top: -1px; right: -1px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; border: 2px solid #fff; font-size: 0 !important; line-height: 0 !important; color: transparent !important; pointer-events: none; box-shadow: 0 1px 3px rgba(239, 68, 68, 0.35); }
.topbar .tb-dot[hidden] { display: none !important; }
.topbar a[href="#/downloads"] { display: none !important; }
.tb-crit-wrap { position: relative; display: inline-flex; align-items: center; }
.tb-crit-btn { position: relative; width: 38px; height: 38px; border-radius: 50% !important; border: 1px solid #fecaca !important; background: #fef2f2 !important; color: #dc2626 !important; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0 !important; transition: all .15s ease; }
.tb-crit-btn:hover { background: #fee2e2 !important; border-color: #fca5a5 !important; box-shadow: 0 3px 8px rgba(220, 38, 38, 0.12) !important; transform: translateY(-1px) !important; }
.tb-crit-btn svg { width: 18px !important; height: 18px !important; color: #dc2626 !important; flex: none; }
.tb-crit-badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(220, 38, 38, .35); pointer-events: none; }
.tb-crit-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 440px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid #fecaca; border-radius: 16px; box-shadow: 0 16px 40px rgba(185, 28, 28, .12), 0 4px 16px rgba(15, 23, 42, .08); z-index: 100; overflow: hidden; }
.tb-crit-ack-btn:hover { background: #fef2f2 !important; border-color: #f87171 !important; }
.topbar .tb-vsep { width: 1px; height: 30px; background: #e2e8f0; margin: 0 4px; flex: none; }
.topbar .tb-chip { width: auto !important; height: auto !important; border-radius: 0 !important; border: 0 !important; background: none !important; color: #1b2a4a !important; display: flex !important; align-items: center; gap: 10px; padding: 0 4px; box-shadow: none !important; transform: none !important; cursor: pointer; }
.topbar .tb-chip:hover { transform: none; box-shadow: none; }
.topbar .tb-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #1b2a4a; color: #fff; font-weight: 800; font-size: 16px; overflow: hidden; flex: none; }
.topbar .tb-av svg { width: 100%; height: 100%; display: block; }
.topbar .tb-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.topbar .tb-who { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; text-align: left; }
.topbar .tb-who b { font-size: 14.5px; font-weight: 700; color: #1b2a4a; white-space: nowrap; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.topbar .tb-who small { font-size: 12px; font-weight: 500; color: #8a94a6; white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.topbar .tb-caretdn { color: #5b6577; margin-left: 2px; flex: none; }
@media (max-width: 900px) { .topbar .tb-who, .topbar .tb-caretdn { display: none; } .topbar .tb-crumb-ic { display: none; } }
@media (max-width: 640px) { .topbar .tb-nb { width: 34px; height: 34px; } .topbar { padding: 8px 12px; } }

.sidebar .brand { padding: 20px 20px 16px; }
.sidebar .brand-tx b { font-size: 17px; font-weight: 800; }
.sb-search { position: relative; margin: 14px 16px 8px; }
.sb-search input { width: 100%; height: 46px; border-radius: 14px; border: 1.5px solid #8c9ab3; background: #fff; padding: 0 14px 0 42px; font: 600 14px/1 inherit; font-family: inherit; color: var(--ink); outline: none; }
.sb-search input::placeholder { color: var(--muted); font-weight: 500; }
.sb-search input:focus { border-color: #2f6df6; box-shadow: 0 0 0 3px rgba(47,109,246,.16); }
.sb-search-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); display: grid; place-items: center; pointer-events: none; }

.sub-banner[hidden], .sub-banner:empty { display: none !important; }
.sub-banner.info { background: #eaf2ff; color: #1e3a8a; border-color: #cfe0ff; padding: 14px 26px; font-size: 15px; font-weight: 600; justify-content: space-between; }
.sub-banner .sub-cta { background: none !important; color: #2f6df6 !important; padding: 0; border-radius: 0; text-decoration: underline; font-weight: 700; font-size: 14.5px; margin-left: auto; }

/* ================= Overview dashboard (same look as the Hospital Overview) ================= */
.ov-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 4px 0 20px; }
.ov-head h1 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: #1b2a4a; }
.ov-head p { margin: 4px 0 0; font-size: 13.5px; color: #8a94a6; font-weight: 400; }
.ov-head .select, .ov-head #ovPeriod {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: auto;
  min-width: 120px;
  height: 40px;
  line-height: 40px;
  border-radius: 999px;
  border: 1px solid #e3e8f1;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231b2a4a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
  padding: 0 38px 0 20px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1b2a4a;
  box-shadow: 0 1px 3px rgba(15,23,42,.04);
  cursor: pointer;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ov-head .select:hover, .ov-head #ovPeriod:hover { border-color: #cbd5e1; }
.ov-head .select:focus, .ov-head #ovPeriod:focus { border-color: #2f6df6; box-shadow: 0 0 0 3px rgba(47,109,246,.12); }
.ov-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.ovk { background: #fff; border: 1.5px solid #8c9ab3; border-radius: 24px; padding: 20px 22px 18px; box-shadow: 0 2px 10px rgba(27,42,74,.05); display: flex; flex-direction: column; gap: 14px; min-width: 0; transition: transform .15s, box-shadow .15s; }
.ovk:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -18px rgba(27,42,74,.35); }
.ovk-h { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ovk-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--kc, #2f6df6); background: color-mix(in srgb, var(--kc, #2f6df6) 11%, #fff); }
.ovk-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ovk-t b { font-size: 16px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ovk-t small { font-size: 13px; color: var(--muted); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ovk-m { color: var(--ink); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; flex: none; }
.ovk-m:hover { background: #f1f4f9; }
.ovk-v { font-size: 38px; line-height: 1; font-weight: 600; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ovk-f { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.ovk-f b { color: var(--ink); font-weight: 500; }
.ovk-bar { height: 8px; border-radius: 99px; background: #e4e9f3; overflow: hidden; }
.ovk-bar i { display: block; height: 100%; border-radius: 99px; }
.ov-two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin-bottom: 18px; align-items: start; }
.ov-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ov-col > .card { margin: 0 !important; }
.ov-h3 { font-size: 15px; font-weight: 600; margin: 6px 0 10px; color: var(--ink); }
@media (max-width: 1250px) { .ov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ovk-v { font-size: 32px; } }
@media (max-width: 1000px) { .ov-two { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ov-grid { grid-template-columns: 1fr; } .ov-head h1 { font-size: 28px; } }
.ov-two .dbc-card .card-b { padding-top: 10px; padding-bottom: 12px; }
.ov-two .dbc-chips { margin-bottom: 4px; }


/* ================= left panel: dark crisp line icons, dark text, bold section labels ================= */
.sidebar .brand { padding: 18px 20px 14px; border-bottom: 1px solid var(--line2); }
.sidebar .brand-tx b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: #0f172a; }
.sidebar .brand-tx small { color: #334155; font-weight: 600; }
.sb-search { margin: 14px 16px 10px; position: relative; }
.sb-search input { height: 44px; border: 1.5px solid #cbd5e1; background: #f8fafc; border-radius: 14px; font-weight: 600; font-size: 14px; color: #0f172a; padding: 0 14px 0 42px; }
.sb-search input::placeholder { color: #64748b; font-weight: 500; }
.sb-search input:focus { background: #fff; border-color: #0f172a; }
.sb-search-ic, .sidebar .sb-search .sb-search-ic { color: #0f172a; }
.sb-search-ic svg, .sidebar .sb-search .sb-search-ic svg { color: #0f172a; stroke: #0f172a; stroke-width: 2.2; }
.sidebar .nav { padding: 2px 14px 12px; }
.sidebar .nav-sec2 { padding: 22px 10px 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; color: #0f172a; text-transform: uppercase; }
.sidebar .nav-it { padding: 8px 12px; min-height: 38px; gap: 12px; margin: 2px 0; border-radius: 14px; font-size: 14px; font-weight: 600; color: #0f172a; }
.sidebar .nav-it .nav-lb { font-weight: 600; color: #0f172a; }
.sidebar .nav-ic, .sidebar .nav-it .nav-ic { width: 22px; height: 22px; color: #0f172a; display: inline-flex; align-items: center; justify-content: center; }
.sidebar .nav-ic svg, .sidebar .nav-it .nav-ic svg { width: 19px; height: 19px; stroke: #0f172a; stroke-width: 2.2; color: #0f172a; }
.sidebar .nav-it:hover { background: #f1f4f9; color: #000; }
.sidebar .nav-it:hover .nav-lb { color: #000; }
.sidebar .nav-it:hover .nav-ic, .sidebar .nav-it:hover .nav-ic svg { color: #000; stroke: #000; }
.sidebar .nav-it.active { background: #e6f4f1; color: #044e49; box-shadow: inset 0 0 0 1px #bce3dc; font-weight: 700; }
.sidebar .nav-it.active .nav-lb { font-weight: 700; color: #044e49; }
.sidebar .nav-it.active .nav-ic, .sidebar .nav-it.active .nav-ic svg, .sidebar .nav-fold.has-active > .nav-fh .nav-ic, .sidebar .nav-fold.has-active > .nav-fh .nav-ic svg { color: #044e49; stroke: #044e49; stroke-width: 2.3; }
.sidebar .nav-it.active::before { display: none; }
.nav-fold.has-active > .nav-fh { color: #044e49; }
.sidebar .nav-chev { color: #0f172a; }
.sidebar .nav-chev svg, svg.nav-chev { color: #0f172a; stroke: #0f172a; stroke-width: 2.5; }
.sidebar .nav-sub { margin: 2px 0 6px 22px; }
.sidebar .nav-sub-it { padding: 6px 10px; font-size: 13.5px; font-weight: 600; color: #1e293b; border-radius: 10px; }
.sidebar .nav-sub-it .nav-sub-lb { color: #1e293b; font-weight: 600; }
.sidebar .nav-sub-it .nav-sub-ic { color: #0f172a; }
.sidebar .nav-sub-it .nav-sub-ic svg { stroke: #0f172a; stroke-width: 2.2; color: #0f172a; }
.sidebar .nav-sub-it:hover { background: #f1f4f9; color: #000; }
.sidebar .nav-sub-it:hover .nav-sub-lb { color: #000; }
.sidebar .nav-sub-it:hover .nav-sub-ic, .sidebar .nav-sub-it:hover .nav-sub-ic svg { color: #000; stroke: #000; }
.nav-sub-it.on { color: #044e49; font-weight: 700; background: #e6f4f1; }
.sidebar .nav-sub-it.on .nav-sub-lb { color: #044e49; font-weight: 700; }
.sidebar .nav-sub-it.on .nav-sub-ic, .sidebar .nav-sub-it.on .nav-sub-ic svg { color: #044e49; stroke: #044e49; stroke-width: 2.3; }
.nav-sub-it.on::before { background: #044e49; box-shadow: 0 0 0 3px #bce3dc; }

/* ================= cards without an outline: a soft shadow separates them from the page ================= */
body:not(.auth) .card, .card, .pt-card, .ovk, .stat, .kpi, .dbq-card, .wa-card, .unifi-panel, .db-kpi, .db-trend, .sms-set-wrap .card, .dl-cols > .card {
  border: 0 !important;
  box-shadow: 0 2px 14px rgba(27, 42, 74, .09) !important;
}
.ovk:hover, .dbq-card:hover { box-shadow: 0 14px 34px -16px rgba(27, 42, 74, .32) !important; }
.db-kpi { border-left: 4px solid var(--kc, #2f6df6) !important; }

/* Dashboard & card icons merged into page (unboxed, transparent background) with enlarged size */
.ovk-ic, .stat .stat-ico, .kpi .kpi-ic {
  color: #2563eb !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.ovk-ic svg, .stat .stat-ico svg, .kpi .kpi-ic svg {
  width: 28px !important;
  height: 28px !important;
  stroke-width: 2.2 !important;
  color: #2563eb !important;
}
.dbq-card .card-b > span:first-child { color: #2563eb !important; background: transparent !important; width: auto !important; height: auto !important; }
.dbq-card .card-b > span:first-child svg { width: 28px !important; height: 28px !important; stroke-width: 2.2 !important; }
.stat-ic, .stat-ic.blue, .stat-ic.teal { color: #2563eb; background: transparent; }

/* Smart Dashboard: same look as the Overview (section header, KPI cards, separate cards for branch, demand and the trend) */
.db-smart { margin: 8px 0 18px; }
.ov-head.sm { margin: 4px 0 14px; }
.ov-head.sm h2 { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.ov-head.sm p { margin: 5px 0 0; font-size: 14.5px; color: var(--muted); font-weight: 500; }
.ovk.sm .ovk-v { font-size: 30px; }
.ovk.sm { padding: 16px 18px 14px; gap: 10px; }
.db-smart .db-smart-grid { gap: 16px; margin-bottom: 16px; align-items: start; }
.db-smart .db-smart-grid > .card, .db-smart .db-trend { margin: 0 !important; }
.db-smart .db-smart-grid h3, .db-smart .db-trend h3 { font-size: 16px; font-weight: 600; margin: 0 0 12px; color: var(--ink); }
.db-smart .db-trend { margin-bottom: 0 !important; }
.db-smart .db-trend { padding: 0; }

/* KPI cards a little smaller */
.ov-grid { gap: 14px; margin-bottom: 16px; }
.ovk { padding: 14px 16px 13px; gap: 9px; border-radius: 20px; }
.ovk-ic { width: auto !important; height: auto !important; border-radius: 0 !important; background: transparent !important; }
.ovk-ic svg { width: 28px !important; height: 28px !important; stroke-width: 2.2 !important; }
.ovk-t b { font-size: 14.5px; font-weight: 500 !important; }
.ovk-t small { font-size: 12px; font-weight: 400 !important; }
.ovk-v { font-size: 28px; font-weight: 600 !important; }
.ovk-f { font-size: 12.5px; }
.ovk-bar { height: 6px; }
.ovk-m { width: 24px; height: 24px; }
.ovk.sm { padding: 12px 14px 11px; gap: 8px; }
.ovk.sm .ovk-v { font-size: 24px; font-weight: 600 !important; }
.dbq-card .card-b { padding: 12px 14px !important; }
.dbq-card .card-b > span:first-child { width: 40px !important; height: 40px !important; }
.dbq-card b { font-weight: 500 !important; }
@media (max-width: 1250px) { .ovk-v { font-size: 26px; } }


/* dashboard text: titles stay dark, the supporting lines are light (as in the Overview picture) */
.ov-head p, .ov-head.sm p { color: #8b94a7; font-weight: 400; }
.ovk-t small { color: #8b94a7; font-weight: 400; }
.ovk-f { color: #7b869c; font-weight: 400; }
.ovk-f b { color: var(--ink); font-weight: 500; }
.ovk-t b { font-weight: 500 !important; }
.dbq-card small, .dbq-card .card-b small { color: #8b94a7 !important; font-weight: 400 !important; }
.ov-two .muted, .ov-two small, .ov-col small { color: #8b94a7; }
.ov-two .dbc-sub, .dbc-sub { color: #8b94a7; font-weight: 400; }
.sidebar .nav-it { color: #0f172a; font-weight: 600; }
.sidebar .nav-sub-it { color: #1e293b; font-weight: 600; }
.topbar .tb-who small { color: #8b94a7; font-weight: 500; }
.ov-h3 { font-weight: 600; }

/* ============================================================
   GLOBAL SUB-PAGE DASHBOARD GUI
   Applies dashboard look to ALL sub-pages (#view content)
   Cards → white, rounded-20, soft shadow, no border
   Tables → clean header, subtle row hover
   Page headers → bold title + muted subtitle
   Stat cards → dashboard gradient style
   Inputs/search → rounded, soft fill
   ============================================================ */

/* Page wrapper — dashboard background on all pages */
#view {
  background: #f2f5f9;
}

/* ---- Page header (h2 + subtitle row) ---- */
#view .page-h h2,
#view .page-h h1 {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #1b2a4a !important;
  letter-spacing: -.02em !important;
  margin: 0 !important;
}
#view .page-h .sub,
#view .page-h p {
  color: #8a94a6 !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  margin-top: 3px !important;
}

/* ---- Cards ---- */
#view .card {
  background: #fff !important;
  border: 0 !important;
  border-radius: 20px !important;
  box-shadow: 0 2px 14px rgba(27, 42, 74, .08) !important;
  margin-bottom: 18px;
  overflow: hidden;
}
#view .card:hover {
  box-shadow: 0 6px 24px rgba(27, 42, 74, .12) !important;
}
#view .card-h {
  border-bottom: 1px solid #f0f3f8 !important;
  padding: 16px 22px !important;
  background: #fff !important;
}
#view .card-h h3 {
  font-size: 15.5px !important;
  font-weight: 700 !important;
  color: #1b2a4a !important;
  letter-spacing: -.01em;
}
#view .card-b {
  padding: 20px 22px !important;
}
#view .card-b.flush {
  padding: 0 !important;
}

/* ---- Tables ---- */
#view table.table {
  font-size: 13.5px !important;
}
#view .table thead th {
  background: #f7f9fc !important;
  color: #6f7a92 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
  padding: 11px 16px !important;
  border-bottom: 1px solid #edf1f7 !important;
}
#view .table tbody td {
  padding: 13px 16px !important;
  border-bottom: 1px solid #f0f3f8 !important;
  color: #1b2a4a !important;
  vertical-align: middle !important;
}
#view .table tbody tr:hover {
  background: #f5f8ff !important;
}
#view .table tbody tr:last-child td {
  border-bottom: none !important;
}
#view .tbl-wrap {
  border-radius: 12px;
  overflow: hidden;
}

/* ---- Buttons ---- */
#view .btn {
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
}
#view .btn-primary {
  background: #2f6df6 !important;
  border-color: #2f6df6 !important;
  color: #fff !important;
  box-shadow: 0 8px 20px -8px rgba(47, 109, 246, .5) !important;
}
#view .btn-primary:hover {
  background: #1d5ce5 !important;
  border-color: #1d5ce5 !important;
}
#view .btn-ghost {
  background: transparent !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}
#view .btn-ghost:hover {
  background: #f1f5fb !important;
  color: #1b2a4a !important;
}

/* ---- Table Row & Modal Action Buttons ---- */
.act-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  height: 28px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #334155 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
  line-height: 1 !important;
  text-decoration: none !important;
}
.act-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.1) !important;
}
.act-btn:active {
  transform: translateY(0) !important;
}
.act-btn-ai,
.act-btn-view,
.act-btn-print,
.act-btn-pdf,
.act-btn-edit {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}
.act-btn-ai:hover,
.act-btn-view:hover,
.act-btn-print:hover,
.act-btn-pdf:hover,
.act-btn-edit:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}
.act-btn-del {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}
.act-btn-del:hover {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}

/* ---- Inputs ---- */
#view .input,
#view .select,
#view textarea.input {
  border: 1.5px solid #dde3ee !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  color: #1b2a4a !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
}
#view .input:focus,
#view .select:focus,
#view textarea.input:focus {
  border-color: #2f6df6 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(47, 109, 246, .12) !important;
}
#view .search input {
  border: 1.5px solid #dde3ee !important;
  border-radius: 999px !important;
  background: #fff !important;
  font-size: 13.5px !important;
}
#view .search input:focus {
  border-color: #2f6df6 !important;
  box-shadow: 0 0 0 3px rgba(47, 109, 246, .12) !important;
}

/* ---- Stat cards (pgstat / stat-grid): exact Dashboard .ovk look ---- */
#view .pgstat,
#view .stat-grid {
  margin-bottom: 22px !important;
  gap: 16px !important;
}
#view .stat {
  background: #ffffff !important;
  border-radius: 20px !important;
  border: none !important;
  box-shadow: 0 2px 14px rgba(27, 42, 74, .08) !important;
  padding: 18px 20px 16px !important;
  min-height: 130px !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative !important;
  overflow: hidden !important;
  transition: transform .18s ease, box-shadow .18s ease !important;
}
#view .stat:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 34px -16px rgba(27, 42, 74, .25) !important;
}
#view .stat::before,
#view .stat > div[style*="border-radius:50%"] {
  display: none !important;
}
#view .stat .stat-ico {
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin-bottom: 8px !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #2563eb !important;
  flex: none !important;
}
#view .stat .stat-ico svg {
  width: 28px !important;
  height: 28px !important;
  stroke-width: 2.2 !important;
}
#view .stat .lb {
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  color: #8a94a6 !important;
  margin-bottom: 4px !important;
}
#view .stat .vl {
  font-size: 28px !important;
  font-weight: 600 !important;
  letter-spacing: -.02em !important;
  color: #1b2a4a !important;
  line-height: 1.1 !important;
  font-variant-numeric: tabular-nums !important;
  margin: 0 0 6px 0 !important;
}
#view .stat .dl {
  font-size: 12.5px !important;
  color: #8a94a6 !important;
  font-weight: 500 !important;
  margin-top: auto !important;
}

/* ---- Badges ---- */
#view .badge {
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 3px 10px !important;
}
#view .b-paid   { background: #ecfdf3 !important; color: #16a34a !important; }
#view .b-ready  { background: #ecfdf3 !important; color: #16a34a !important; }
#view .b-pending { background: #fffbeb !important; color: #d97706 !important; }
#view .b-warn   { background: #fff7ed !important; color: #ea580c !important; }
#view .b-red    { background: #fef2f2 !important; color: #dc2626 !important; }
#view .badge-warn { background: #fff7ed !important; color: #ea580c !important; border-radius: 999px !important; }

/* ---- Labels / form labels ---- */
#view .label {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #475569 !important;
}

/* ---- Muted text ---- */
#view .muted,
#view small.muted {
  color: #8a94a6 !important;
}

/* ---- Empty state ---- */
#view .empty {
  color: #8a94a6 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

/* ---- Section/page title standalone h2 ---- */
#view h2:not(.page-h h2) {
  font-size: 18px;
  font-weight: 700;
  color: #1b2a4a;
  letter-spacing: -.015em;
}
#view h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1b2a4a;
}

/* ---- Toolbar strip ---- */
#view .toolbar {
  margin-bottom: 16px;
}

/* ---- Patient avatar / initials ---- */
#view .pt-avatar {
  background: #1b2a4a !important;
  color: #fff !important;
  font-weight: 800 !important;
  border-radius: 50% !important;
}

/* ---- Section dividers inside cards ---- */
#view .sec-sep,
#view hr {
  border: none !important;
  border-top: 1px solid #f0f3f8 !important;
  margin: 14px 0 !important;
}

/* ---- Inline card pill info boxes ---- */
#view .info-box,
#view .alert-box {
  border-radius: 14px !important;
  font-size: 13.5px !important;
}

/* ---- Page-head (back link + title used in patient profile) ---- */
#view .page-head h1 {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #1b2a4a !important;
}
#view .back-link {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #2f6df6 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-bottom: 6px !important;
}
#view .back-link:hover {
  color: #1d5ce5 !important;
}

/* ---- Responsive: mobile tighten ---- */
@media (max-width: 640px) {
  #view .card-b { padding: 14px 16px !important; }
  #view .card-h { padding: 12px 16px !important; }
  #view .page-h h2, #view .page-h h1 { font-size: 20px !important; }
}

/* ==========================================================================
   Patient Vitals Overview & Interactive Organ Intelligence Dashboard
   Matches Nexura Care Clinical Monitoring Specification
   ========================================================================== */
.vitals-view-wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
}

.vitals-breadcrumb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}

.vitals-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
}

.vitals-nav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.vitals-nav-arrow:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.vitals-bc-item {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
}
.vitals-bc-item:hover {
  color: #2563eb;
}
.vitals-bc-sep {
  color: #94a3b8;
  font-size: 11px;
}
.vitals-bc-curr {
  color: #1e293b;
  font-weight: 600;
}

.vitals-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vitals-tab-toggle {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 3px;
  border: 1px solid #e2e8f0;
}
.vitals-tab-btn {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vitals-tab-btn.active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.vitals-header-title-block {
  margin-bottom: 20px;
}
.vitals-header-title-block h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px;
  letter-spacing: -0.015em;
}
.vitals-header-title-block p {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
}

/* 2-Column Responsive Layout */
#view:has(#ptPatientDashboardHost),
#view.patient-view-active {
  display: flex !important;
  flex-direction: column !important;
  min-height: calc(100vh / 0.9 - 50px) !important;
  padding: 12px 18px 10px !important;
  box-sizing: border-box !important;
  flex: 1 1 auto !important;
  overflow-x: hidden !important;
}

#ptPatientDashboardHost {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-height: calc(100vh / 0.9 - 68px) !important;
  min-height: max(580px, calc(100vh / 0.9 - 68px)) !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

#ptPatientDashboard {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-height: calc(100vh / 0.9 - 68px) !important;
  min-height: max(580px, calc(100vh / 0.9 - 68px)) !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  overflow-x: hidden !important;
}

.vitals-main-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) !important;
  grid-template-rows: 1fr !important;
  gap: 14px !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  flex: 1 1 auto !important;
  min-height: calc(100vh / 0.9 - 135px) !important;
  min-height: max(540px, calc(100vh / 0.9 - 135px)) !important;
  height: 100% !important;
}
@media (max-width: 850px) {
  .vitals-main-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
  }
}

.vitals-left-col,
.vitals-right-col {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.vitals-left-col > .vitals-card {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: unset !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.vitals-right-col > .vitals-stage-card {
  flex: 1 1 auto !important;
  height: 100% !important;
  min-height: calc(100vh / 0.9 - 135px) !important;
  min-height: max(540px, calc(100vh / 0.9 - 135px)) !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.vitals-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(15,23,42,0.03);
  position: relative;
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.vitals-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.vitals-card-head h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}
.vitals-card-head .card-action-btn {
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
  border-radius: 6px;
}
.vitals-card-head .card-action-btn:hover {
  color: #475569;
  background: #f1f5f9;
}

.vitals-month-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 20px;
  padding: 4px 12px;
  cursor: pointer;
}

/* Date Timeline Strip */
.vitals-timeline-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  gap: 6px;
  overflow-x: auto;
}
.vitals-timeline-arrow {
  background: transparent;
  border: 0;
  color: #64748b;
  font-size: 15px;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.vitals-timeline-arrow:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.vitals-day-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  min-width: 48px;
}
.vitals-day-pill .day-num {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}
.vitals-day-pill .day-name {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 2px;
}
.vitals-day-pill:hover:not(.active) {
  background: #f8fafc;
}
.vitals-day-pill.active {
  background: #2563eb;
  box-shadow: 0 4px 12px rgba(37,99,235,0.28);
}
.vitals-day-pill.active .day-num {
  color: #ffffff;
}
.vitals-day-pill.active .day-name {
  color: #dbeafe;
}

/* Stress Patterns Content Row */
.vitals-stress-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
}
@media (max-width: 600px) {
  .vitals-stress-row {
    grid-template-columns: 1fr;
  }
}
.vitals-radial-gauge-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto;
}
.vitals-gauge-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.vitals-gauge-inner .gauge-pct {
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
}
.vitals-gauge-inner .gauge-lbl {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  margin-top: 3px;
  text-align: center;
  max-width: 80px;
}

.vitals-stress-info h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px;
}
.vitals-stress-info p {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 14px;
}

.vitals-peak-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vitals-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.vitals-stat-lbl {
  font-weight: 700;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 105px;
}
.vitals-stat-val {
  color: #475569;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.vitals-stat-sep {
  color: #cbd5e1;
}

/* Sub-Cards Row (Daily Rehab Plan & Capacity / Adherence) */
.vitals-subcards-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-template-rows: 1fr !important;
  gap: 12px !important;
  margin-top: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  align-items: stretch !important;
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
@media (max-width: 768px) {
  .vitals-subcards-row {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
  }
}
.vitals-stacked-cards {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  box-sizing: border-box !important;
  justify-content: space-between !important;
  overflow: hidden !important;
}
.vitals-stacked-cards > #pdCapacityCard {
  flex: 0 0 auto !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
.vitals-stacked-cards > #pdMedicationAdherenceCard {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
.vitals-subcards-row > #pdRehabCard {
  flex: 1 1 0% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
.vitals-subcards-row > .vitals-card,
.vitals-stacked-cards > .vitals-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.vitals-subcard-subtitle {
  font-size: 11.5px;
  color: #64748b;
  margin: -10px 0 14px;
}

/* 7 Numbered Items in Rehab Plan */
.vitals-rehab-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.vitals-rehab-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.vitals-rehab-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.vitals-rehab-text .rehab-item-title {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
}
.vitals-rehab-text .rehab-item-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
  margin-top: 2px;
}

/* Organ Capacity Efficiency & Medication Adherence Card */
.vitals-efficiency-section {
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 16px;
}
.vitals-risk-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: #0284c7;
  margin-bottom: 4px;
}
.vitals-risk-tag.moderate {
  color: #d97706;
}
.vitals-risk-tag.critical {
  color: #dc2626;
}
.vitals-risk-tag.normal {
  color: #059669;
}
.vitals-big-score {
  font-size: 32px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
  margin: 4px 0 10px;
}
.vitals-progress-track {
  height: 14px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.vitals-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8 0%, #2563eb 100%);
  transition: width 0.4s ease;
}
.vitals-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 5px;
}

/* Medication Adherence List */
.vitals-med-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.vitals-med-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  padding: 8px 12px;
}
.vitals-med-icon-box {
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #2563eb !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  flex-shrink: 0 !important;
}
.vitals-med-details .med-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}
.vitals-med-details .med-dosage {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}

/* Right Panel: Interactive Organ Anatomical Model Stage */
.vitals-stage-card {
  background: radial-gradient(ellipse at 50% 40%, rgba(238,246,255,0.85) 0%, rgba(248,250,252,0.95) 60%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  position: relative;
  min-height: 580px;
  height: 100% !important;
  flex: 1 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 18px 22px 14px !important;
  box-shadow: 0 4px 16px rgba(15,23,42,0.04);
  overflow: hidden;
  box-sizing: border-box !important;
}

/* Floating Zoom / Pan Controls */
.vitals-stage-controls {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stage-ctrl-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  color: #475569;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.stage-ctrl-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

/* Center Organ Display */
.vitals-organ-canvas-wrap {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  min-height: 380px !important;
  user-select: none !important;
}
.vitals-organ-interactive-box {
  width: 100% !important;
  max-width: 480px !important;
  height: 100% !important;
  min-height: 380px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  will-change: transform !important;
}

/* Animations */
@keyframes vitals-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}
@keyframes vitals-heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.04); }
  30% { transform: scale(1); }
  45% { transform: scale(1.025); }
}
.lung-svg {
  animation: vitals-breathe 4s ease-in-out infinite;
  transform-origin: center center;
}
.heart-svg {
  animation: vitals-heartbeat 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transform-origin: center center;
}

/* Floating Clinical Warning Callout Card */
.vitals-floating-warning {
  position: absolute;
  bottom: 96px;
  right: 20px;
  z-index: 25;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  max-width: 240px;
  transition: all 0.3s ease;
}
.vitals-warning-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 4px;
}
.vitals-warning-desc {
  font-size: 11px;
  color: #475569;
  line-height: 1.4;
  margin: 0;
}

/* Bottom Organ Carousel */
.vitals-organ-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
  z-index: 20;
}
.vitals-carousel-nav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.vitals-carousel-nav:hover {
  background: #f8fafc;
  color: #0f172a;
}
.vitals-carousel-track {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vitals-organ-pill {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 66px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.vitals-organ-pill .organ-thumb-svg {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vitals-organ-pill .organ-pill-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
}
.vitals-organ-pill:hover:not(.active) {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
}
.vitals-organ-pill.active {
  border-color: #2563eb;
  box-shadow: 0 4px 16px rgba(37,99,235,0.2);
  transform: translateY(-2px);
  background: #ffffff;
}
.vitals-organ-pill.active .organ-pill-label {
  color: #2563eb;
  font-weight: 700;
}

/* KPI Summary Cards Grid & Tinted Medical Icons */
/* KPI Summary Cards Grid & Clean Dashboard Stat Cards (Matching Image 2) */
.pd-trends-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
  align-items: stretch;
}
@media (max-width: 960px) {
  .pd-trends-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
@media (max-width: 580px) {
  .pd-trends-kpi-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.pd-trends-kpi-card {
  background: #ffffff !important;
  border-radius: 20px !important;
  border: none !important;
  box-shadow: 0 2px 14px rgba(27, 42, 74, 0.08) !important;
  padding: 18px 20px 16px !important;
  min-height: 130px !important;
  height: auto !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative !important;
  overflow: hidden !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}
.pd-trends-kpi-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 34px -16px rgba(27, 42, 74, 0.25) !important;
  border: none !important;
}

.pd-trends-kpi-card::before,
.pd-trends-kpi-card::after {
  display: none !important;
}

.pd-trends-kpi-card .stat-ico,
.pd-trends-kpi-card .kpi-icon {
  position: relative !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin-bottom: 8px !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #2563eb !important;
  flex: none !important;
}

.pd-trends-kpi-card .stat-ico svg,
.pd-trends-kpi-card .kpi-icon svg {
  width: 28px !important;
  height: 28px !important;
  stroke-width: 2.2 !important;
  color: #2563eb !important;
  stroke: #2563eb !important;
  display: block !important;
}

.pd-trends-kpi-card .lb,
.pd-trends-kpi-card .kpi-label {
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #8a94a6 !important;
  margin-bottom: 4px !important;
  line-height: 1.3 !important;
}

.pd-trends-kpi-card .vl,
.pd-trends-kpi-card .kpi-value {
  font-size: 28px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  color: #1b2a4a !important;
  line-height: 1.1 !important;
  font-variant-numeric: tabular-nums !important;
  margin: 0 0 6px 0 !important;
  white-space: nowrap !important;
}

.pd-trends-kpi-card .dl,
.pd-trends-kpi-card .kpi-sub {
  font-size: 12.5px !important;
  color: #8a94a6 !important;
  font-weight: 500 !important;
  margin-top: auto !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.35 !important;
}

/* Target Organ Systems Breakdown - 1 Row Subtle Clean Cards */
.pd-organ-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 900px) {
  .pd-organ-breakdown-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 500px) {
  .pd-organ-breakdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pd-organ-breakdown-item {
  padding: 10px 6px;
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}
.pd-organ-breakdown-item:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.pd-organ-breakdown-item .organ-icon {
  font-size: 18px;
  margin-bottom: 3px;
  display: block;
}
.pd-organ-breakdown-item strong {
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.pd-organ-breakdown-item span {
  font-size: 10.5px;
  color: #64748b;
  display: block;
  margin-top: 2px;
}


