/* Contraste consolidado dos temas Clean e Dark — V103 */
:root:not(.theme-dark){color-scheme:light}
:root:not(.theme-dark) body,:root:not(.theme-dark) .app-main{color:#12383a}
:root:not(.theme-dark) .card,:root:not(.theme-dark) .form-card,:root:not(.theme-dark) .table-wrap{background-color:#fffdf5;color:#12383a}
:root:not(.theme-dark) h1,:root:not(.theme-dark) h2,:root:not(.theme-dark) h3,:root:not(.theme-dark) strong,:root:not(.theme-dark) label{color:#12383a}
:root:not(.theme-dark) .muted,:root:not(.theme-dark) .hint,:root:not(.theme-dark) small{color:#5d6c65}
:root:not(.theme-dark) input,:root:not(.theme-dark) select,:root:not(.theme-dark) textarea{background:#fff;color:#12383a;border-color:#bfc9c2}
:root:not(.theme-dark) input::placeholder,:root:not(.theme-dark) textarea::placeholder{color:#66756e;opacity:1}
:root:not(.theme-dark) th{background:#eee6d2;color:#514522}
:root:not(.theme-dark) td{color:#173b3b;border-color:#ddd4bd}
:root:not(.theme-dark) .secondary,:root:not(.theme-dark) a.secondary{color:#075f5b}
:root:not(.theme-dark) .btn:not(.btn-light){color:#fff!important}
:root:not(.theme-dark) .btn-light{background:#e8dfc3;color:#173b3b;border:1px solid #cdbd8d}
:root:not(.theme-dark) .export-toolbar button,:root:not(.theme-dark) .page-link,:root:not(.theme-dark) .pager-links a,:root:not(.theme-dark) .pager-links span{background:#fffdf5;color:#12383a;border-color:#cfc6ad}
:root:not(.theme-dark) .calendar-event{color:#124944}
:root:not(.theme-dark) .status.inactive,:root:not(.theme-dark) .status-p{background:#e7e9e8;color:#43534c}
:root:not(.theme-dark) .card:not(.birthday-card):not(.personal-hero):not(.dashboard-alert),
:root:not(.theme-dark) .form-card,
:root:not(.theme-dark) .chart-card,
:root:not(.theme-dark) .critical-list,
:root:not(.theme-dark) .ministry-panel,
:root:not(.theme-dark) .filter-grid,
:root:not(.theme-dark) .report-filter{color:#12383a!important}
:root:not(.theme-dark) .card:not(.birthday-card):not(.personal-hero):not(.dashboard-alert) h1,
:root:not(.theme-dark) .card:not(.birthday-card):not(.personal-hero):not(.dashboard-alert) h2,
:root:not(.theme-dark) .card:not(.birthday-card):not(.personal-hero):not(.dashboard-alert) h3,
:root:not(.theme-dark) .card:not(.birthday-card):not(.personal-hero):not(.dashboard-alert) strong{color:#12383a!important}
:root:not(.theme-dark) .card .muted,
:root:not(.theme-dark) .card .hint,
:root:not(.theme-dark) .card small{color:#5d6c65!important}
:root:not(.theme-dark) .birthday-card,
:root:not(.theme-dark) .birthday-card h2,
:root:not(.theme-dark) .birthday-card strong,
:root:not(.theme-dark) .personal-hero,
:root:not(.theme-dark) .personal-hero h1,
:root:not(.theme-dark) .personal-hero h2,
:root:not(.theme-dark) .report-hero,
:root:not(.theme-dark) .report-hero h1,
:root:not(.theme-dark) .report-hero p{color:#fff!important}
:root:not(.theme-dark) .birthday-card small{color:#e7d9af!important}
:root:not(.theme-dark) .birthday-card>b,
:root:not(.theme-dark) .birthday-person>b{color:#f7d985!important}
:root:not(.theme-dark) .module h3{color:#12383a!important}
:root:not(.theme-dark) .module p{color:#365074!important}
:root:not(.theme-dark) .calendar-day,
:root:not(.theme-dark) .calendar-event,
:root:not(.theme-dark) .public-day,
:root:not(.theme-dark) .response-day,
:root:not(.theme-dark) .server-day{color:#12383a!important}
:root:not(.theme-dark) .calendar-event small{color:#365f5b!important}
:root:not(.theme-dark) .ranking-item,:root:not(.theme-dark) .drill-list,:root:not(.theme-dark) details,:root:not(.theme-dark) summary{color:#12383a!important}

.theme-dark{color-scheme:dark;--bg:#071b1c;--text:#f1f7f4;--muted:#b7c8c0;--line:#365554;--white:#102c2d;--navy:#8ee5dc;--blue:#51cfc3;--gold:#e4bf5e}
.theme-dark body,.theme-dark .app-main{background:#071b1c!important;color:#f1f7f4!important}
.theme-dark .topbar{background:#102c2d!important;color:#f1f7f4!important;border-color:#365554!important}
.theme-dark .topbar .brand,.theme-dark .topbar a:not(.btn){color:#f1f7f4!important}
.theme-dark .card,.theme-dark .form-card,.theme-dark .table-wrap,.theme-dark .chart-card,.theme-dark .critical-list,.theme-dark .ministry-panel{background:#102c2d!important;color:#f1f7f4!important;border-color:#365554!important}
.theme-dark h1,.theme-dark h2,.theme-dark h3,.theme-dark h4,.theme-dark label,.theme-dark strong,.theme-dark td{color:#f1f7f4!important}
.theme-dark .muted,.theme-dark .hint,.theme-dark small,.theme-dark .bar-label span{color:#b7c8c0!important}
.theme-dark input,.theme-dark select,.theme-dark textarea{background:#0a2425!important;color:#f5faf8!important;border-color:#52706e!important}
.theme-dark input::placeholder,.theme-dark textarea::placeholder{color:#a9bbb3!important;opacity:1}
.theme-dark input:disabled,.theme-dark select:disabled,.theme-dark textarea:disabled{background:#172f30!important;color:#9fb0a9!important;opacity:1}
.theme-dark select option{background:#0a2425;color:#f5faf8}
.theme-dark input[type="date"]::-webkit-calendar-picker-indicator,.theme-dark input[type="time"]::-webkit-calendar-picker-indicator{filter:invert(1);opacity:.9}
.theme-dark th{background:#183839!important;color:#f3d47a!important;border-color:#42615f!important}
.theme-dark td{background:#102c2d;border-color:#2e4d4c!important}
.theme-dark tbody tr:hover td{background:#173738!important}
.theme-dark a:not(.btn):not(.side-link):not(.bottom-link):not(.module):not(.calendar-event){color:#8ee5dc}
.theme-dark .secondary,.theme-dark a.secondary{color:#8ee5dc!important}
.theme-dark .btn{color:#fff!important}
.theme-dark .btn-light{background:#244746!important;color:#f1f7f4!important;border:1px solid #52706e!important}
.theme-dark .btn-light:hover,.theme-dark .btn-light:focus-visible{background:#315755!important;color:#fff!important}
.theme-dark .badge{background:#4a3e20!important;color:#f7d978!important}
.theme-dark .alert.success,.theme-dark .success{background:#123e30!important;color:#a8f0ce!important}
.theme-dark .alert.danger,.theme-dark .danger{background:#4a2429!important;color:#ffb9c1!important}
.theme-dark .alert.warning,.theme-dark .warning{background:#493b1c!important;color:#f7d978!important}
.theme-dark .status.active,.theme-dark .status-s{background:#123e30!important;color:#a8f0ce!important}
.theme-dark .status.inactive,.theme-dark .status-p{background:#263f40!important;color:#d1dfda!important}
.theme-dark .status.absent,.theme-dark .status-n{background:#4a2429!important;color:#ffb9c1!important}
.theme-dark .status-u{background:#49351d!important;color:#ffd28a!important}
.theme-dark .status-t{background:#292d58!important;color:#c9ccff!important}
.theme-dark .module{background:#102c2d!important;color:#f1f7f4!important;border-color:#365554!important}
.theme-dark .module h3,.theme-dark .module p{color:#f1f7f4!important}
.theme-dark .module-action{background:#173738!important;color:#8ee5dc!important}
.theme-dark .context-banner,.theme-dark .drilldown,.theme-dark .retention span,.theme-dark .defined-active>div,.theme-dark .availability-dashboard-alert,.theme-dark .schedule-notice{background:#173738!important;color:#f1f7f4!important;border-color:#42615f!important}
.theme-dark .calendar-day,.theme-dark .calendar-event,.theme-dark .public-day,.theme-dark .response-day,.theme-dark .server-day,.theme-dark .response-calendar,.theme-dark .server-calendar{background:#153435!important;color:#f1f7f4!important;border-color:#42615f!important}
.theme-dark .calendar-event b,.theme-dark .calendar-event strong,.theme-dark .calendar-number,.theme-dark .public-day strong,.theme-dark .response-day strong{color:#f1f7f4!important}
.theme-dark .calendar-day.has-schedule,.theme-dark .response-day.available,.theme-dark .public-day.available,.theme-dark .server-day:has(input:checked){background:#1b5150!important;color:#fff!important;border-color:#65d4ca!important}
.theme-dark .bar-track,.theme-dark .metric-track,.theme-dark .health,.theme-dark .stacked-bar{background:#294847!important}
.theme-dark .chart-legend,.theme-dark .sex-legend,.theme-dark .calendar-legend{color:#c6d4ce!important}
.theme-dark .export-toolbar button,.theme-dark .page-link,.theme-dark .pager-links a,.theme-dark .pager-links span,.theme-dark .pager-current,.theme-dark .page-size-form select{background:#173738!important;color:#f1f7f4!important;border-color:#52706e!important}
.theme-dark .export-toolbar button:hover,.theme-dark .page-link:hover,.theme-dark .pager-links a:hover{background:#244746!important;color:#fff!important}
.theme-dark .schedule-report,.theme-dark .period-ministry,.theme-dark .report-body,.theme-dark .report-date,.theme-dark .period-ministry-head{background:#102c2d!important;color:#f1f7f4!important;border-color:#365554!important}
.theme-dark .report-hero{color:#fff!important}
.theme-dark .report-hero h1,.theme-dark .report-hero p{color:#fff!important}
.theme-dark .ranking-item{color:#f1f7f4;border-color:#365554!important}
.theme-dark .ranking-item b:first-child{color:#173b3b!important}
.theme-dark .user-photo-editor,.theme-dark .logo-upload-block{background:#173738!important;color:#f1f7f4!important;border-color:#42615f!important}
.theme-dark .password-toggle{color:#d8e7e1!important}
.theme-dark .password-toggle:hover,.theme-dark .password-toggle:focus-visible{background:#244746!important}
.theme-dark .theme-toggle{background:#173738!important;color:#f3d47a!important;border-color:#52706e!important}
.theme-dark .empty{color:#b7c8c0!important}

@media(max-width:700px){
  .theme-dark .topbar{background:#102c2d!important;color:#f1f7f4!important}
  .theme-dark .menu-toggle-global{background:#173738!important;color:#f1f7f4!important;border-color:#52706e!important}
  :root:not(.theme-dark) .topbar{background:#fff8e8;color:#12383a}
}
