/* Zahren 0.14 · tema claro executivo completo */
html[data-theme="light"] {
  color-scheme: light;
  --exec-canvas: #e9eef2;
  --exec-canvas-2: #f3f6f8;
  --exec-header: #f8fafb;
  --exec-panel: #ffffff;
  --exec-panel-2: #f5f8fa;
  --exec-panel-3: #eaf0f4;
  --exec-border: #c7d2da;
  --exec-border-soft: #dde5ea;
  --exec-text: #17232d;
  --exec-muted: #61717d;
  --exec-soft: #405360;
  --exec-red: #d91f2a;
  --exec-cyan: #007f88;
  --exec-blue: #1769c2;
  --exec-green: #147a3f;
  --exec-amber: #a96d00;
  --exec-purple: #604cc4;
  --canvas: var(--exec-canvas);
  --card: var(--exec-panel);
  --ink: var(--exec-text);
  --muted: var(--exec-muted);
  --soft: #74838e;
  --line: var(--exec-border);
  --shadow: 0 5px 16px rgba(31,48,61,.08);
  --shadow-lg: 0 24px 64px rgba(28,43,54,.22);
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 17% -12%,rgba(50,102,133,.12),transparent 32%),
    radial-gradient(circle at 91% 2%,rgba(217,31,42,.07),transparent 25%),
    linear-gradient(180deg,#f0f4f6 0%,#e9eef2 48%,#edf1f4 100%) fixed !important;
  color: var(--exec-text) !important;
  scrollbar-color: #a8b5be #e9eef2;
}

/* Navegação e barra global */
html[data-theme="light"] .sidebar.top-navigation {
  border-bottom-color: #b9c6ce !important;
  background: linear-gradient(180deg,rgba(255,255,255,.99),rgba(244,247,249,.99)) !important;
  color: #17232d !important;
  box-shadow: 0 6px 20px rgba(33,49,61,.10) !important;
}
html[data-theme="light"] .top-navigation .brand { border-right-color: #d3dce2 !important; }
html[data-theme="light"] .top-navigation .brand > div:last-child strong { color: #15222c !important; }
html[data-theme="light"] .nav-menu-trigger { color: #53636e !important; }
html[data-theme="light"] .nav-menu-group:hover > .nav-menu-trigger,
html[data-theme="light"] .nav-menu-group.open > .nav-menu-trigger,
html[data-theme="light"] .nav-menu-group.active > .nav-menu-trigger { background: rgba(31,48,61,.045) !important; color: #14212a !important; }
html[data-theme="light"] .nav-submenu { border-color: #bcc9d1 !important; background: rgba(252,253,254,.995) !important; box-shadow: 0 18px 42px rgba(35,52,64,.18) !important; }
html[data-theme="light"] .top-navigation .nav-item { color: #4e606c !important; }
html[data-theme="light"] .top-navigation .nav-item span { color: #788995 !important; }
html[data-theme="light"] .top-navigation .nav-item em { background: #e8eef2 !important; color: #556873 !important; }
html[data-theme="light"] .top-navigation .nav-item:hover { border-color: #cad5dc !important; background: #eef3f6 !important; color: #121f28 !important; }
html[data-theme="light"] .top-navigation .nav-item.active { border-color: rgba(217,31,42,.30) !important; background: rgba(217,31,42,.08) !important; color: #b91b24 !important; }
html[data-theme="light"] .top-navigation .connection-card { border-left-color: #d0dae0 !important; }
html[data-theme="light"] .top-navigation .connection-line { color: #32434e !important; }
html[data-theme="light"] .top-navigation .connection-card p { color: #73828c !important; }

html[data-theme="light"] .topbar { border-bottom-color: #c8d3da !important; background: rgba(244,247,249,.97) !important; box-shadow: 0 5px 16px rgba(39,56,68,.08) !important; }
html[data-theme="light"] :is(.search-wrap,.global-line-control select,.theme-toggle,.avatar) { border-color: #bcc9d1 !important; background: #fff !important; color: #263741 !important; }
html[data-theme="light"] .search-wrap input { color: #1b2a34 !important; }
html[data-theme="light"] .search-wrap input::placeholder { color: #7e8c96 !important; }
html[data-theme="light"] .search-wrap kbd { border-color: #d2dbe1 !important; background: #eef3f6 !important; color: #657681 !important; }
html[data-theme="light"] .global-line-control { color: #53646f !important; }
html[data-theme="light"] .sync-meta { color: #465863 !important; }
html[data-theme="light"] .sync-meta small { color: #7d8b95 !important; }
html[data-theme="light"] :is(.theme-toggle,.avatar):hover { border-color: #d91f2a !important; background: #fff4f5 !important; color: #b61922 !important; }

/* Cabeçalhos e superfícies universais */
html[data-theme="light"] :is(.page-heading,.page-heading.without-page-actions,.page-heading.many-page-actions) { border-color: #c8d3da !important; background: linear-gradient(110deg,#fff 0%,#f7f9fa 72%,#fdf4f4 100%) !important; box-shadow: 0 6px 17px rgba(32,49,61,.07) !important; }
html[data-theme="light"] .page-heading h1 { color: #14212b !important; }
html[data-theme="light"] .page-heading p { color: #61717d !important; }
html[data-theme="light"] .page-heading .scope-chip { border-color: #b9d5d8 !important; background: #e9f6f6 !important; color: #08747b !important; }

html[data-theme="light"] :is(
  .panel,.card,.table-card,.chart-card,.chart-panel,.operational-snapshot,.mass-toolbar,
  .filter-result-indicator,.coverage-banner,.program-guard,.rule-note,.program-batch,
  .program-type-card,.program-card,.batch-card,.shortage-card,.purchase-card,.aging-card,
  .report-model-card,.setting-card,.settings-card,.summary-card,.sync-card,
  .sync-map-grid article,.decision-tile,.decision-snapshot article,.mirror-tracking-kpis > article,
  .ptn-indicator-grid > button,.snapshot-cards > article,.finalized-mini-card,.drawer-section,
  .drawer-summary > div,.detail-box,.drawer-profile,.empty-state,.section-empty,.export-context,
  .export-help,.flow-map,.parts-update-scope
) { border-color: #c9d4db !important; background: linear-gradient(145deg,#fff,#f8fafb) !important; color: #24343e !important; box-shadow: 0 5px 15px rgba(35,52,64,.07) !important; }
html[data-theme="light"] :is(.panel-head,.card-head) { border-bottom-color: #dde5ea !important; background: linear-gradient(90deg,#f5f8fa,rgba(255,255,255,.35)) !important; }
html[data-theme="light"] :is(.panel-head h2,.card-head h2,.section-title h4,.drawer-section-head h4) { color: #1b2a34 !important; }
html[data-theme="light"] :is(.panel-head p,.card-head p,.section-title > span,.drawer-section-head span) { color: #6a7a85 !important; }

/* Indicadores */
html[data-theme="light"] :is(.kpi-card,.kpi-card.metric-card-button) { border-color: #c8d3da !important; background: radial-gradient(circle at 88% 82%,color-mix(in srgb,currentColor 9%,transparent),transparent 36%),linear-gradient(145deg,#fff,#f4f7f9) !important; box-shadow: 0 5px 15px rgba(35,52,64,.07) !important; }
html[data-theme="light"] .kpi-number { color: #16242e !important; }
html[data-theme="light"] .kpi-breakdown { color: #62737e !important; }
html[data-theme="light"] .kpi-symbol { background: color-mix(in srgb,currentColor 9%,#fff) !important; }
html[data-theme="light"] .kpi-link { color: #667782 !important; }
html[data-theme="light"] .kpi-card:hover { background: linear-gradient(145deg,#fff,#edf3f6) !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) { border-color: #c9d4db !important; background: linear-gradient(145deg,#fff,#f6f9fa) !important; color: #23343e !important; box-shadow: 0 5px 15px rgba(35,52,64,.06) !important; }
html[data-theme="light"] :is(.manager-summary span,.management-kpis span,.phase-kpis span,.capacity-kpis span) { color: #687984 !important; }
html[data-theme="light"] :is(.manager-summary strong,.management-kpis strong,.phase-kpis strong,.capacity-kpis strong) { color: #15242e !important; }
html[data-theme="light"] :is(.manager-summary small,.management-kpis small,.phase-kpis small,.capacity-kpis small) { color: #748590 !important; }

/* Filtros, seleção e botões */
html[data-theme="light"] :is(.filter-bar,.filters,.toolbar,.table-toolbar,.control-bar,.phase-client-filter,.phase-registration-grid) { border-color: #c9d4db !important; background: linear-gradient(145deg,#fff,#f5f8fa) !important; }
html[data-theme="light"] :is(.filter-bar input,.filter-bar select,.filter-bar details > summary,.filters input,.filters select,input,select,textarea,.multi-filter > summary) { border-color: #bdcad2 !important; background: #fff !important; color: #33454f !important; }
html[data-theme="light"] .multi-filter > div { border-color: #bdcad2 !important; background: #fff !important; box-shadow: 0 15px 34px rgba(38,54,66,.18) !important; }
html[data-theme="light"] :is(.multi-filter > div > label,.filter-bar .multi-filter > div > label) { border-bottom-color: #e0e7eb !important; color: #42545f !important; }
html[data-theme="light"] .multi-filter > div > label:hover { background: #edf3f6 !important; }
html[data-theme="light"] .multi-actions { border-color: #d4dde2 !important; background: #f3f6f8 !important; }
html[data-theme="light"] .multi-actions button { border-color: #c2ced5 !important; background: #fff !important; color: #40525e !important; }
html[data-theme="light"] .mass-toolbar.active { border-color: rgba(0,127,136,.42) !important; background: linear-gradient(90deg,rgba(0,127,136,.09),#fff 36%,#f7f9fa) !important; }
html[data-theme="light"] .mass-toolbar strong { color: #1e2e38 !important; }
html[data-theme="light"] .mass-toolbar span { color: #697a84 !important; }
html[data-theme="light"] .mass-toolbar .btn:disabled { border-color: #d0d9df !important; background: #e7edf1 !important; color: #87959e !important; }
html[data-theme="light"] .filter-result-indicator strong { color: #1b2a34 !important; }
html[data-theme="light"] .filter-result-indicator span { color: #6b7b86 !important; }
html[data-theme="light"] :is(.btn-secondary,.btn-ghost,.btn-excel,.btn-clear-filters) { border-color: #bfcbd3 !important; background: linear-gradient(180deg,#fff,#edf2f5) !important; color: #354751 !important; }
html[data-theme="light"] :is(.btn-secondary,.btn-ghost,.btn-excel,.btn-clear-filters):hover { border-color: #889aa6 !important; background: #e8eef2 !important; color: #172832 !important; }

/* Aging e carteira */
html[data-theme="light"] .snapshot-heading strong { color: #20313b !important; }
html[data-theme="light"] .snapshot-cards > button { border-color: #c9d4db !important; background: radial-gradient(circle at 95% 5%,color-mix(in srgb,var(--snapshot-tone) 10%,transparent),transparent 42%),linear-gradient(145deg,#fff,#f3f7f9) !important; box-shadow: 0 4px 13px rgba(35,52,64,.06) !important; }
html[data-theme="light"] .snapshot-cards > button > span { color: #5d6f7a !important; }
html[data-theme="light"] .snapshot-cards > button > strong { color: #16252f !important; }
html[data-theme="light"] .snapshot-cards > button > small { color: #71828c !important; }
html[data-theme="light"] .snapshot-icon { background: color-mix(in srgb,var(--snapshot-tone) 9%,#fff) !important; }
html[data-theme="light"] .snapshot-cards > button > u { background: #dce5ea !important; }
html[data-theme="light"] .snapshot-cards > button:hover { background: linear-gradient(145deg,#fff,#eaf1f4) !important; }
html[data-theme="light"] .picking-client-summary { border-color: #bdcad2 !important; background: linear-gradient(130deg,#edf3f6,#f8fafb) !important; }
html[data-theme="light"] .picking-client-title strong { color: #172832 !important; }
html[data-theme="light"] .picking-client-title small { color: #687a85 !important; }
html[data-theme="light"] .client-picking-cards > button { border-color: #c5d1d8 !important; background: linear-gradient(145deg,#fff,#eef3f6) !important; }
html[data-theme="light"] .client-picking-cards > button .client-card-name span { color: #1c2d37 !important; }
html[data-theme="light"] .client-picking-cards > button .client-card-name small { color: #70818c !important; }

/* Tabelas e gráficos */
html[data-theme="light"] :is(.panel > .table-wrap,.table-wrap) { border-color: #cbd5db !important; background: #fff !important; }
html[data-theme="light"] :is(.data-table th,thead,.mini-head) { background: #e8eef2 !important; color: #485b66 !important; }
html[data-theme="light"] :is(.data-table th,th) { border-bottom-color: #cbd5dc !important; color: #4c5e69 !important; }
html[data-theme="light"] :is(.data-table td,td) { border-bottom-color: #e0e7eb !important; color: #3b4d58 !important; }
html[data-theme="light"] :is(.data-table td strong,.mini-table strong,.history-list strong) { color: #1b2b35 !important; }
html[data-theme="light"] .data-table tbody tr:nth-child(even) { background: rgba(50,72,86,.022) !important; }
html[data-theme="light"] :is(.data-table tbody tr:hover,tbody tr:hover) { background: rgba(23,105,194,.065) !important; }
html[data-theme="light"] :is(.mini-table > div:not(.mini-head),.history-list > div) { border-bottom-color: #e0e7eb !important; background: #fff !important; color: #3d4f5a !important; }
html[data-theme="light"] :is(.pagination,.table-footer) { border-top-color: #d5dfe4 !important; background: #f7f9fa !important; color: #61727d !important; }
html[data-theme="light"] :is(.pagination button,.table-footer button) { border-color: #c4d0d7 !important; background: #fff !important; color: #41535e !important; }
html[data-theme="light"] .chart-grid-line { stroke: #cfdae0 !important; }
html[data-theme="light"] :is(.chart-card svg text,.chart-panel svg text) { fill: #657681 !important; }
html[data-theme="light"] :is(.chart-legend,.chart-series-legend) { color: #5d6f7a !important; }
html[data-theme="light"] .donut-chart { box-shadow: 0 0 0 1px #c5d0d7,0 0 18px rgba(35,52,64,.10); }
html[data-theme="light"] .donut-chart::after { background: #fff !important; box-shadow: inset 0 0 0 1px #d1dbe1; }
html[data-theme="light"] .donut-chart strong { color: #1d2d37 !important; }
html[data-theme="light"] .donut-legend div { border-bottom-color: #e1e7eb; color: #40525d !important; }
html[data-theme="light"] :is(.donut-legend div > strong,.metric-bars em) { color: #1d2d37 !important; }
html[data-theme="light"] :is(.donut-legend small,.metric-bars small) { color: #6b7c87 !important; }
html[data-theme="light"] :is(.metric-bars i,.status-bars i,.client-meter,.coverage-track) { background: #dce5ea !important; }
html[data-theme="light"] .insight-card { background: linear-gradient(145deg,#f5f8fa,#e9f1f3 62%,#e3f1ef) !important; }
html[data-theme="light"] .insight-card h2 { color: #182832 !important; }
html[data-theme="light"] .insight-card p { color: #576a76 !important; }

/* Gavetas, modais e áreas administrativas */
html[data-theme="light"] :is(.drawer-backdrop,.modal-backdrop) { background: rgba(29,43,53,.42) !important; }
html[data-theme="light"] :is(.drawer,.modal) { border-color: #bfcbd3 !important; background: #f2f6f8 !important; color: #263741 !important; }
html[data-theme="light"] :is(.drawer-head,.modal-head,.modal-actions) { border-color: #cbd6dc !important; background: linear-gradient(180deg,#fff,#eef3f6) !important; }
html[data-theme="light"] :is(.drawer-head h2,.modal-head h2) { color: #172731 !important; }
html[data-theme="light"] .icon-btn { border-color: #bdcad2 !important; background: #fff !important; color: #3d505b !important; }
html[data-theme="light"] :is(
  fieldset,.report-columns,.permission-grid,.drawer-profile-grid label,.user-base-fields label,
  .activity-grid label,.sync-map-grid article,.manager-access-list > div,.management-programs > div,
  .scope-list > div,.decision-item,.agenda-day,.schedule-card,.count-list > div,.drawer-hero,
  .program-type-manager form,.saved-types article,.export-field-grid label,.program-archive,
  .program-archive select,.model-field-grid label,.saved-report-models article,.drawer-profile,
  .activity-list article,.model-sort-builder,.export-sort-builder,.phase-saved-card,
  .report-columns label,.permission-grid label,.empty-inline
) { border-color: #c9d4db !important; background: linear-gradient(145deg,#fff,#f5f8fa) !important; color: #354751 !important; box-shadow: 0 4px 13px rgba(35,52,64,.055) !important; }
html[data-theme="light"] :is(.manager-access-list strong,.management-programs strong,.scope-list strong,.saved-report-models strong,.activity-list strong) { color: #1b2c36 !important; }
html[data-theme="light"] :is(.manager-access-list small,.management-programs span,.scope-list span,.saved-report-models span,.saved-report-models small,.activity-list small) { color: #687a85 !important; }

html[data-theme="light"] :is(.program-tabs,.split-tabs,.purchase-tabs) { border-color: #c9d4db !important; background: transparent !important; }
html[data-theme="light"] :is(.program-tabs button,.split-tabs button,.purchase-tabs button) { border-color: #c5d1d8 !important; background: #f5f8fa !important; color: #536570 !important; }
html[data-theme="light"] :is(.program-tabs button.active,.split-tabs button.active,.purchase-tabs button.active) { border-color: rgba(217,31,42,.42) !important; background: rgba(217,31,42,.08) !important; color: #9f1820 !important; }
html[data-theme="light"] :is(.program-tabs button b,.split-tabs button b,.purchase-tabs button b) { border-color: #cad5dc !important; background: #e8eef2 !important; color: #52646f !important; }
html[data-theme="light"] :is(.program-tabs button.active b,.split-tabs button.active b,.purchase-tabs button.active b) { border-color: rgba(217,31,42,.30) !important; background: rgba(217,31,42,.10) !important; color: #b31a23 !important; }

html[data-theme="light"] :is(.program-tab-note,.fixed-columns-note,.eligibility-note,.workforce-bottleneck) { border-color: rgba(169,109,0,.34) !important; border-left-color: #bd7c00 !important; background: linear-gradient(90deg,#fff4d8,#fff 44%,#f8fafb) !important; color: #71500d !important; }
html[data-theme="light"] :is(.program-tab-note strong,.fixed-columns-note strong,.eligibility-note strong,.workforce-bottleneck strong) { color: #805700 !important; }
html[data-theme="light"] :is(.audit-failures,.phase-source-banner.is-error) { border-color: rgba(217,31,42,.34) !important; border-left-color: #d91f2a !important; background: linear-gradient(90deg,#fff0f1,#fff 44%,#f8fafb) !important; color: #9f2028 !important; }
html[data-theme="light"] .toast { border-color: #bcc9d1 !important; background: #fff !important; color: #20313b !important; box-shadow: 0 14px 34px rgba(35,52,64,.18) !important; }
