/* JaldiCare - owed BLUE palette for health module controls (user 2026-11-05: no green; restated 2026-11-06 19:44 voice).
   Additive override sheet, proposal only. All rules !important because the health module injects
   its green rules via runtime <style> elements and inline styles that load after head sheets.
   Blue family taken from the existing approved site palette (#1e3a8a primary, #1e40af, #204ab9, #1d4fa0, soft #e3ecfa/#eff6ff). */

/* 1. Primary green action buttons -> site primary blue */
.mca-inline-vitals [role=dialog] button,
.mca-health-records>.row-actions button,
.mca-health-records [role=group] button,
.mca-patient-timeline button,
.mca-report-drafts button{background:#1e3a8a!important;color:#fff!important}

/* 2. Soft green buttons -> soft blue */
.mca-private-files button,
.mca-health-export button,
.mca-health-io button,
.mca-vitalpage .vp-btn{background:#e3ecfa!important;color:#1e3a8a!important;border-color:#bfdbfe!important}

/* 3. Graph-mode buttons carry the green as INLINE style (modeBtn); on-state already #204ab9 - preserve it */
.mca-health-records [role=group][aria-label="Graph mode"] button,
.mca-vitalpage [aria-label="Graph mode"] button{background:#e3ecfa!important;color:#1e3a8a!important;border-color:#bfdbfe!important}
.mca-health-records [aria-label="Graph mode"] button[aria-pressed="true"],
.mca-vitalpage [aria-label="Graph mode"] button[aria-pressed="true"]{background:#204ab9!important;color:#fff!important}

/* 4. Pale green table chrome -> pale blue */
.mca-inline-vitals th:first-child{background:#e3ecfa!important}
.mca-inline-vitals thead{background:#e3ecfa!important}
.mca-inline-io th:first-child{background:#e3ecfa!important}

/* 5. Green text accents -> blue/neutral site values */
.mca-inline-vitals .vp-tempconv{color:#1d4fa0!important}
.mca-inline-vitals .vp-attrsum,
.mca-inline-io.vp-attron .vp-attrsum{color:#1e3a8a!important}
.mca-inline-io .io-head-unit{color:#6b655c!important}
.vp-export-details>summary{color:#1e3a8a!important}

/* 6. Portal activity highlight border */
.mca-portal-activity .activity-detail{border-color:#1e40af!important}

/* 7. Chart series green (#147568: SpO2, intake) -> site-palette purple #6d28d9 (NOT #1e40af: pulse line is already #204ab9, two near-identical blues would be misread) */
.mca-health-records polyline[stroke="#147568"],.mca-vitalpage polyline[stroke="#147568"],
.mca-inline-vitals polyline[stroke="#147568"],.mca-inline-io polyline[stroke="#147568"]{stroke:#6d28d9!important}
.mca-health-records circle[fill="#147568"],.mca-vitalpage circle[fill="#147568"],
.mca-inline-vitals circle[fill="#147568"],.mca-inline-io circle[fill="#147568"]{fill:#6d28d9!important}
.mca-health-records span[style*="147568"],.mca-vitalpage span[style*="147568"],
.mca-inline-vitals span[style*="147568"],.mca-inline-io span[style*="147568"],
.mca-health-records span[style*="20, 117, 104"],.mca-vitalpage span[style*="20, 117, 104"],
.mca-inline-vitals span[style*="20, 117, 104"],.mca-inline-io span[style*="20, 117, 104"]{background:#6d28d9!important}

/* 8. Chart grid lines green-gray -> blue-gray */
.mca-health-records line[stroke="#eef2f2"],.mca-vitalpage line[stroke="#eef2f2"]{stroke:#e8eef7!important}

/* NOTE: semantic status pills (.status.done, .qstatus.pill-on, .staff-badge.ok, .gate-ok) are NOT set here.
   They are owned by the theme layer (mca-theme.css group-21 vars) so admin customisation keeps working;
   their approved-state DEFAULT is now blue (--th-ok-bg #e3ecfa / --th-ok-fg #1e3a8a fallbacks).
   Declined (red) and waiting (amber) states untouched for distinct warning/error semantics. */

/* 10. Portal-activity pressed filter button (#176b7b teal) -> the established blue pressed state */
.mca-portal-activity button[aria-pressed=true]{background:#204ab9!important;color:#fff!important}

/* v14: scoped dark coverage for the real full-page vitals and IO sheets.
   Runtime rules and inline colours otherwise leave pale headers with pale ink. */
html[data-mca-mode="dark"] .mca-vitalpage,
html[data-mca-mode="dark"] .mca-vitalpage:has(.vp-body.in-mod),
html[data-mca-mode="dark"] .mca-vitalpage .vp-top,
html[data-mca-mode="dark"] .mca-vitalpage .vp-row{
 background:var(--th-bg-a,#0b1220)!important;color:var(--th-ink,#eef2f8)!important;border-color:var(--th-line,#3a4a66)!important}
html[data-mca-mode="dark"] .mca-vitalpage .vp-top strong,
html[data-mca-mode="dark"] .mca-vitalpage label,
html[data-mca-mode="dark"] .mca-vitalpage h3{color:var(--th-ink,#eef2f8)!important}
html[data-mca-mode="dark"] .mca-vitalpage .vp-twrap,
html[data-mca-mode="dark"] .mca-inline-vitals [role=dialog],
html[data-mca-mode="dark"] .mca-inline-io [role=dialog]{
 background:var(--th-surface,#1b2536)!important;color:var(--th-ink,#eef2f8)!important;border-color:var(--th-line,#3a4a66)!important}
html[data-mca-mode="dark"] .mca-vitalpage .vp-twrap thead,
html[data-mca-mode="dark"] .mca-vitalpage .vp-twrap thead th,
html[data-mca-mode="dark"] .mca-inline-vitals table th,
html[data-mca-mode="dark"] .mca-inline-io table th{
 background:var(--th-surface2,#232f45)!important;color:var(--th-ink,#eef2f8)!important;border-color:var(--th-line,#3a4a66)!important;box-shadow:none!important}
html[data-mca-mode="dark"] .mca-inline-vitals table td,
html[data-mca-mode="dark"] .mca-inline-io table td{
 color:var(--th-ink,#eef2f8)!important;border-color:var(--th-line,#3a4a66)!important}
html[data-mca-mode="dark"] .mca-vitalpage input,
html[data-mca-mode="dark"] .mca-vitalpage select,
html[data-mca-mode="dark"] .mca-vitalpage textarea{
 background:var(--th-surface2,#232f45)!important;color:var(--th-ink,#eef2f8)!important;border-color:var(--th-line,#3a4a66)!important}
html[data-mca-mode="dark"] .mca-vitalpage button{
 background:#1e3a8a!important;color:#fff!important;border-color:#5272af!important}
html[data-mca-mode="dark"] .mca-vitalpage .vp-help,
html[data-mca-mode="dark"] .mca-vitalpage .vp-help-details>summary,
html[data-mca-mode="dark"] .mca-vitalpage .vp-export-details>summary,
html[data-mca-mode="dark"] .mca-vitalpage .vp-tempconv,
html[data-mca-mode="dark"] .mca-vitalpage .vp-attrsum,
html[data-mca-mode="dark"] .mca-vitalpage .io-head-unit{color:#bdd3ff!important}
html[data-mca-mode="dark"] .mca-vitalpage .vp-help-details>summary::before,
html[data-mca-mode="dark"] .mca-vitalpage .vp-export-details>summary::after{filter:brightness(0) invert(1)}
html[data-mca-mode="dark"] .mca-vitalpage [style*="color: rgb(179, 38, 30)"],
html[data-mca-mode="dark"] .mca-vitalpage [style*="color:#b3261e"],
html[data-mca-mode="dark"] .mca-vitalpage [style*="color: #b3261e"]{color:#ffaaa3!important}
/* Preserve warning semantics. No medical values, units, or chart-series data changed. */

html[data-mca-mode="dark"] .mca-vitalpage .mca-food-reference-note{color:#ffaaa3!important}
/* Explicit on-blue ink also fixes the inherited black button text in light mode. */
.mca-inline-vitals button.primary-btn{color:var(--th-on-primary,#fff)!important}
/* v18 BinarySwitch4271 ON state only: blue action/track, white thumb unchanged.
   Exact source role/state and direct aria-hidden track, not blanket descendants. */
button[role="switch"][aria-checked="true"][aria-label]{background-color:#204ab9!important;color:#fff!important}
button[role="switch"][aria-checked="true"][aria-label]>span[aria-hidden="true"]{background-color:#1e3a8a!important}
/* v19: unavailable health-hub modules are readable, still unavailable.
   vp-dis is a noninteractive div, not a button. Do not add handlers or enable modules. */
html[data-mca-mode="dark"] .mca-vitalpage .vp-tiles>.vp-dis{
 background:var(--th-surface2,#232f45)!important;color:var(--th-ink,#eef2f8)!important;
 border-color:var(--th-line,#3a4a66)!important;opacity:1}
html[data-mca-mode="dark"] .mca-vitalpage .vp-tiles>.vp-dis b{color:var(--th-ink,#eef2f8)!important}
html[data-mca-mode="dark"] .mca-vitalpage .vp-tiles>.vp-dis p{color:var(--th-ink2,#a9b6cb)!important}
/* v20: remove decorative health-module-row edge mask, not horizontal scrolling.
   Full unavailable explanations remain readable at normal horizontal positions. */
.mca-vitalpage .vp-tiles{-webkit-mask-image:none!important;mask-image:none!important}
/* v28: attr option chips (खुद/केयरगिवर) carry green INLINE styles (ATTR_OPT_STYLE); override to the soft blue family (owner: no green, 2026-11-05 restated 2026-11-06) */
.vp-attropts button{background:#e3ecfa!important;color:#1e3a8a!important;border-color:#bfdbfe!important}

/* service detail info card: pale green -> blue family */
.svc-info{background:#e3ecfa!important;border-color:#bfdbfe!important}
