/* Zahren 0.14.1 · refinamento fosco do tema claro */
html[data-theme="light"] {
  --exec-canvas: #e8edf0;
  --exec-canvas-2: #f1f4f6;
  --exec-panel: #fbfcfc;
  --exec-panel-2: #f2f5f6;
  --exec-panel-3: #e6ecef;
  --exec-border: #bcc8cf;
  --exec-border-soft: #d7e0e4;
  --exec-text: #17242c;
  --exec-muted: #5d6d76;
  --exec-soft: #3d4f59;
  --exec-red: #a92b34;
  --exec-cyan: #277b7f;
  --exec-blue: #3d6796;
  --exec-green: #397a55;
  --exec-amber: #936719;
  --exec-purple: #66588d;
  --red: #a92b34;
  --green: #397a55;
  --blue: #3d6796;
  --amber: #936719;
  --purple: #66588d;
  --teal: #277b7f;
  --teal-dark: #1f666a;
}

html[data-theme="light"] body {
  background:
    linear-gradient(135deg,rgba(58,78,91,.045),transparent 33%),
    linear-gradient(180deg,#eef2f4 0%,#e7ecef 100%) fixed !important;
}

html[data-theme="light"] :is(.page,.drawer,.modal,.top-navigation,.topbar) * {
  text-shadow: none !important;
}

html[data-theme="light"] :is(.sidebar.top-navigation,.topbar,.page-heading,.panel,.card,.table-card,.chart-card,.chart-panel,.operational-snapshot) {
  box-shadow: 0 3px 10px rgba(40,55,65,.065) !important;
}

html[data-theme="light"] .sidebar.top-navigation {
  background: #f7f9fa !important;
}
html[data-theme="light"] .topbar {
  background: rgba(238,242,244,.975) !important;
}
html[data-theme="light"] :is(.page-heading,.page-heading.without-page-actions,.page-heading.many-page-actions) {
  background: linear-gradient(110deg,#fbfcfc,#f3f6f7) !important;
}

/* Cards foscos: cor apenas como sinal, nunca como brilho. */
html[data-theme="light"] :is(.kpi-card,.kpi-card.metric-card-button) {
  background: #f8fafb !important;
  box-shadow: 0 2px 7px rgba(39,54,64,.055) !important;
}
html[data-theme="light"] .kpi-card:hover {
  background: #f1f5f6 !important;
  box-shadow: 0 4px 10px rgba(39,54,64,.085) !important;
}
html[data-theme="light"] .kpi-symbol {
  border-color: color-mix(in srgb,currentColor 34%,#b9c5cb) !important;
  background: #edf2f4 !important;
}
html[data-theme="light"] .kpi-sparkline { opacity: .76 !important; }
html[data-theme="light"] .kpi-sparkline polygon { fill-opacity: .045 !important; }
html[data-theme="light"] .kpi-signal.positive { color: #397a55 !important; }
html[data-theme="light"] .kpi-signal.warning { color: #936719 !important; }
html[data-theme="light"] .kpi-signal.caution { color: #277b7f !important; }
html[data-theme="light"] .kpi-signal.neutral { color: #65757e !important; }

/* Cinco faixas de aging com paleta opaca e consistente. */
html[data-theme="light"] .snapshot-cards .tone-green { --snapshot-tone: #3f7f59; }
html[data-theme="light"] .snapshot-cards .tone-blue { --snapshot-tone: #466f9e; }
html[data-theme="light"] .snapshot-cards .tone-amber { --snapshot-tone: #9a711e; }
html[data-theme="light"] .snapshot-cards .tone-orange { --snapshot-tone: #a45d38; }
html[data-theme="light"] .snapshot-cards .tone-red { --snapshot-tone: #a93640; }
html[data-theme="light"] .snapshot-cards > button {
  background: #f7f9fa !important;
  box-shadow: 0 2px 6px rgba(38,53,63,.05) !important;
}
html[data-theme="light"] .snapshot-cards > button:hover {
  background: #eef3f5 !important;
  box-shadow: 0 4px 9px rgba(38,53,63,.08) !important;
}
html[data-theme="light"] .snapshot-icon {
  border-color: color-mix(in srgb,var(--snapshot-tone) 38%,#b8c5cb) !important;
  background: #edf2f3 !important;
}
html[data-theme="light"] .snapshot-cards > button > u { background: #d7e0e4 !important; }

/* Carteira horizontal sem amarelo luminoso ou fundo colorido. */
html[data-theme="light"] .picking-client-summary {
  background: #eef3f5 !important;
  box-shadow: 0 2px 7px rgba(39,54,64,.055) !important;
}
html[data-theme="light"] .client-picking-cards > button {
  background: #f8fafb !important;
  box-shadow: none !important;
}
html[data-theme="light"] .client-picking-cards > button > strong,
html[data-theme="light"] .picking-client-title b { color: #936719 !important; }
html[data-theme="light"] .client-rank { background: #dcebed !important; color: #266f73 !important; }
html[data-theme="light"] .client-meter { background: #d8e1e5 !important; }
html[data-theme="light"] .client-meter i { background: linear-gradient(90deg,#4b8b84,#a37a2c) !important; }

/* Campos antigos que ainda herdavam o fundo escuro. */
html[data-theme="light"] .program-pulse {
  gap: 9px !important;
}
html[data-theme="light"] .program-pulse button {
  border: 1px solid #bcc8cf !important;
  border-left: 3px solid #a92b34 !important;
  background: #f7f9fa !important;
  color: #344650 !important;
  box-shadow: 0 2px 7px rgba(39,54,64,.055) !important;
}
html[data-theme="light"] .program-pulse button:hover { border-color: #9cabb4 !important; background: #eef3f5 !important; }
html[data-theme="light"] .program-pulse strong { color: #a92b34 !important; }
html[data-theme="light"] .program-pulse span { color: #556872 !important; }

html[data-theme="light"] :is(.summary-box,.summary-grid > article,.decision-metrics span,.count-list > div,.parts-update-scope,.coverage-banner,.program-guard,.rule-note,.phase-source-banner,.status-source-note,.sync-scope,.program-archive) {
  border-color: #c2cdd3 !important;
  background: #f7f9fa !important;
  color: #354750 !important;
  box-shadow: none !important;
}
html[data-theme="light"] :is(.summary-box strong,.decision-metrics b,.count-list strong) { color: #182730 !important; }
html[data-theme="light"] :is(.summary-box span,.summary-box small,.decision-metrics small,.count-list span) { color: #657680 !important; }

html[data-theme="light"] :is(.manager-summary article,.management-kpis article,.phase-kpis article,.capacity-kpis article,.alert-kpis article,.role-guide article,.activity-list article,.decision-snapshot article,.ptn-indicator-grid > button,.finalized-mini-card) {
  background: #f8fafb !important;
  box-shadow: 0 2px 7px rgba(39,54,64,.05) !important;
}

/* Gráficos e barras usam as mesmas tintas opacas. */
html[data-theme="light"] .chart-line.entries { stroke: #a92b34 !important; }
html[data-theme="light"] .chart-line.finished { stroke: #397a55 !important; }
html[data-theme="light"] .chart-line.programmed { stroke: #3d6796 !important; }
html[data-theme="light"] .metric-bars.teal u { background: #277b7f !important; }
html[data-theme="light"] .metric-bars.blue u { background: #3d6796 !important; }
html[data-theme="light"] .metric-bars.purple u { background: #66588d !important; }
html[data-theme="light"] .metric-bars.amber u { background: #936719 !important; }
html[data-theme="light"] .metric-bars.green u { background: #397a55 !important; }
html[data-theme="light"] :is(.metric-bars u,.status-bars u,.coverage-track i) { box-shadow: none !important; }
html[data-theme="light"] .donut-chart { box-shadow: 0 0 0 1px #bcc8cf !important; filter: saturate(.72); }

/* Botões, etiquetas e estados com preenchimento sólido. */
html[data-theme="light"] .btn-primary {
  border-color: #9d252e !important;
  background: #a92b34 !important;
  color: #fff !important;
  box-shadow: none !important;
}
html[data-theme="light"] .btn-primary:hover { border-color: #842029 !important; background: #94262f !important; box-shadow: 0 3px 8px rgba(88,24,30,.16) !important; }
html[data-theme="light"] .tag-green { border-color: #9bbda8 !important; background: #e5eee8 !important; color: #2f6848 !important; }
html[data-theme="light"] .tag-amber { border-color: #cdb886 !important; background: #f1ead9 !important; color: #7b5818 !important; }
html[data-theme="light"] .tag-red { border-color: #d1a1a5 !important; background: #f2e4e6 !important; color: #8d2b33 !important; }
html[data-theme="light"] .tag-blue { border-color: #a9bad0 !important; background: #e7ecf2 !important; color: #345b86 !important; }
html[data-theme="light"] .tag-purple { border-color: #b8afd0 !important; background: #ece9f1 !important; color: #594c7d !important; }
html[data-theme="light"] :is(.tag-gray,.tag-line) { border-color: #c4ced4 !important; background: #edf1f3 !important; color: #53646e !important; }

/* Formulários, abas, tabelas e modais sem pontos escuros residuais. */
html[data-theme="light"] :is(.filter-bar,.filters,.toolbar,.table-toolbar,.control-bar,.phase-client-filter,.phase-registration-grid,.panel-head,.card-head,.drawer-head,.modal-head,.modal-actions) {
  background: #f2f5f6 !important;
}
html[data-theme="light"] :is(input,select,textarea,.multi-filter > summary,.filter-bar details > summary,.search-wrap,.global-line-control select) {
  background: #fbfcfc !important;
}
html[data-theme="light"] :is(.program-tabs button,.split-tabs button,.purchase-tabs button,.pagination button,.table-footer button,.multi-actions button) {
  background: #f2f5f6 !important;
}
html[data-theme="light"] :is(.program-tabs button.active,.split-tabs button.active,.purchase-tabs button.active) {
  border-color: #b98589 !important;
  background: #eee3e4 !important;
  color: #83262e !important;
}
html[data-theme="light"] :is(.data-table th,thead,.mini-head) { background: #e4eaed !important; }
html[data-theme="light"] :is(.drawer,.modal) { background: #edf2f4 !important; }
html[data-theme="light"] :is(.drawer-section,.drawer-summary > div,.detail-box,.drawer-profile,.manager-access-list > div,.management-programs > div,.scope-list > div,.decision-item,.agenda-day,.schedule-card,.program-type-manager form,.saved-types article,.export-field-grid label,.model-field-grid label,.saved-report-models article,.model-sort-builder,.export-sort-builder,.phase-saved-card,.report-columns label,.permission-grid label,.empty-inline) {
  background: #f8fafb !important;
  box-shadow: none !important;
}

html[data-theme="light"] .status-dot.online {
  background: #397a55 !important;
  box-shadow: 0 0 0 3px rgba(57,122,85,.12) !important;
}
