/*
PAC Control Tower — B4F Residual Contrast Recovery R2R7
Scoped fixes only. No app.py/callback/ID/business-logic/layout changes.
*/
:root{
  --pac-b4f-r2r7-text:#101828;
  --pac-b4f-r2r7-muted:#475467;
  --pac-b4f-r2r7-surface:#FFFFFF;
  --pac-b4f-r2r7-border:#D0D5DD;
}

/* Clientes & Rutas: light executive summary only */
body #page-customers-routes .cr1936-summary-section > h1,
body #page-customers-routes .cr1936-summary-section > h2,
body #page-customers-routes .cr1936-summary-section > h3,
body #page-customers-routes .cr1936-summary-section > h4,
body #page-customers-routes .cr1936-summary-section > p,
body #page-customers-routes .cr1936-summary-section > .section-header-row h1,
body #page-customers-routes .cr1936-summary-section > .section-header-row h2,
body #page-customers-routes .cr1936-summary-section > .section-header-row h3,
body #page-customers-routes .cr1936-summary-section > .section-header-row h4,
body #page-customers-routes .cr1936-summary-section > .section-header-row p{
  color:var(--pac-b4f-r2r7-text)!important;
  opacity:1!important;
  text-shadow:none!important;
  -webkit-text-fill-color:var(--pac-b4f-r2r7-text)!important;
}
body #page-customers-routes .cr1936-summary-section > p,
body #page-customers-routes .cr1936-summary-section > .section-header-row p{
  color:var(--pac-b4f-r2r7-muted)!important;
  -webkit-text-fill-color:var(--pac-b4f-r2r7-muted)!important;
}
body #page-customers-routes .cr1936-summary-section > div:not(.kpi-grid):not(.operational-kpi-grid):not(.cr1936-insight-grid):not(.cr1936-card) > h1,
body #page-customers-routes .cr1936-summary-section > div:not(.kpi-grid):not(.operational-kpi-grid):not(.cr1936-insight-grid):not(.cr1936-card) > h2,
body #page-customers-routes .cr1936-summary-section > div:not(.kpi-grid):not(.operational-kpi-grid):not(.cr1936-insight-grid):not(.cr1936-card) > h3,
body #page-customers-routes .cr1936-summary-section > div:not(.kpi-grid):not(.operational-kpi-grid):not(.cr1936-insight-grid):not(.cr1936-card) > h4,
body #page-customers-routes .cr1936-summary-section > div:not(.kpi-grid):not(.operational-kpi-grid):not(.cr1936-insight-grid):not(.cr1936-card) > p{
  color:var(--pac-b4f-r2r7-text)!important;
  opacity:1!important;
  text-shadow:none!important;
  -webkit-text-fill-color:var(--pac-b4f-r2r7-text)!important;
}
body #page-customers-routes .cr1936-summary-section > div:not(.kpi-grid):not(.operational-kpi-grid):not(.cr1936-insight-grid):not(.cr1936-card) > p{
  color:var(--pac-b4f-r2r7-muted)!important;
  -webkit-text-fill-color:var(--pac-b4f-r2r7-muted)!important;
}

/* Executive anomaly center: shared anomaly summary helpers */
body #page-executive-anomaly-center .v1756-agent-summary,
body #page-executive-anomaly-center .v1756-agent-summary-card{
  color:var(--pac-b4f-r2r7-text)!important;
  text-shadow:none!important;
}
body #page-executive-anomaly-center .v1756-agent-summary h1,
body #page-executive-anomaly-center .v1756-agent-summary h2,
body #page-executive-anomaly-center .v1756-agent-summary h3,
body #page-executive-anomaly-center .v1756-agent-summary h4,
body #page-executive-anomaly-center .v1756-agent-summary p,
body #page-executive-anomaly-center .v1756-agent-summary li,
body #page-executive-anomaly-center .v1756-agent-summary strong,
body #page-executive-anomaly-center .v1756-agent-summary-card h1,
body #page-executive-anomaly-center .v1756-agent-summary-card h2,
body #page-executive-anomaly-center .v1756-agent-summary-card h3,
body #page-executive-anomaly-center .v1756-agent-summary-card h4,
body #page-executive-anomaly-center .v1756-agent-summary-card p,
body #page-executive-anomaly-center .v1756-agent-summary-card li,
body #page-executive-anomaly-center .v1756-agent-summary-card strong{
  color:var(--pac-b4f-r2r7-text)!important;
  opacity:1!important;
  text-shadow:none!important;
  -webkit-text-fill-color:var(--pac-b4f-r2r7-text)!important;
}
body #page-executive-anomaly-center .v1756-agent-summary p,
body #page-executive-anomaly-center .v1756-agent-summary li,
body #page-executive-anomaly-center .v1756-agent-summary-card p,
body #page-executive-anomaly-center .v1756-agent-summary-card li{
  color:var(--pac-b4f-r2r7-muted)!important;
  -webkit-text-fill-color:var(--pac-b4f-r2r7-muted)!important;
}

/* Action Center: first light KPI only */
body .page-action-center #v150-action-kpis > div:first-child{
  background:var(--pac-b4f-r2r7-surface)!important;
  background-image:none!important;
  border-color:var(--pac-b4f-r2r7-border)!important;
  color:var(--pac-b4f-r2r7-text)!important;
  text-shadow:none!important;
}
body .page-action-center #v150-action-kpis > div:first-child,
body .page-action-center #v150-action-kpis > div:first-child *{
  color:var(--pac-b4f-r2r7-text)!important;
  opacity:1!important;
  text-shadow:none!important;
  -webkit-text-fill-color:var(--pac-b4f-r2r7-text)!important;
}
body .page-action-center #v150-action-kpis > div:first-child p,
body .page-action-center #v150-action-kpis > div:first-child small{
  color:var(--pac-b4f-r2r7-muted)!important;
  -webkit-text-fill-color:var(--pac-b4f-r2r7-muted)!important;
}
