/* CES_THEME_FIX_V1 — ces-theme-fix-v1.css
   Problem: <body class="ces-v408"> sets the page text color to #f4f8fc (near-white)
   for the dark dashboard. Every white card on every other page inherited it, so
   text on white cards was nearly invisible (Call Rotation, Schedule, forms, etc.).
   Fix: default text goes back to dark; light text is kept only inside the dark
   panels the theme was designed for. :where() = zero specificity, so any color a
   page sets itself still wins. Loaded after portal-v408.css from bootstrap.php. */

body.ces-v408{
 color:var(--text,#142230);
}

/* Dark areas: keep the light text they have today */
:where(body.ces-v408) :where(
 .v408-dashboard,
 .app>aside,
 .main>header,
 .toolbox-v3,
 .toolbox-hero,
 .stats>div,
 .dashboard-archives,
 .hero,
 .inspecthead,
 .calc-hero,
 .receipts-hero,
 .receipt-wo-complete-card,
 .receipt-v2-preview,
 .receipt-v2-viewbar,
 .oem-v2-hero,
 .oem-v2-editor,
 .oem-v2-admin-list,
 .oem-admin-wrap-v343,
 .oem-preview-hero,
 .oem-preview-card,
 .urh-guide-panel,
 .urh-reference-panel,
 .urh-info,
 .urh-warning,
 .urh-mini,
 .eval2-hero,
 .ces407,
 .ces406-card,
 .ces406-agenda,
 .ces-v4-event
){
 color:var(--v408-text,#f4f8fc);
}

/* Loose text sitting directly on the dark page background (outside any card) */
:where(body.ces-v408 main)>:where(h1,h2,h3,h4,h5,p,small,span,b,strong,label){
 color:var(--v408-text,#f4f8fc);
}
