/* Visão executiva da Visão geral (24/11/2026). Cartões usam `.kpi` / `.executive-kpis` e o gráfico usa as
   classes `sales-*` do gráfico de Vendas: aqui só o que é próprio da seção. Tokens de styles.css (claro/escuro). */
.executive-overview { display: grid; gap: 0; margin-bottom: 6px; }
.exo-provisional { color: var(--amber); font-weight: 700; }

.exo-delta { font-weight: 650; }
.exo-delta small { font-weight: 500; color: var(--muted); }
.exo-delta.good { color: var(--green); }
.exo-delta.bad { color: var(--red); }
.exo-delta.neutral { color: var(--muted); font-weight: 500; }
.exo-kpi { cursor: pointer; }
.exo-kpi:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
.exo-loading { color: var(--muted); font-weight: 600; animation: exo-pulse 1.2s ease-in-out infinite; }
@keyframes exo-pulse { 50% { opacity: .45; } }

.exo-grid-main { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 12px; margin-bottom: 12px; }
.exo-grid-wide { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); }
.exo-panel { min-width: 0; padding: 15px; }
.exo-sales-panel { padding: 0; overflow: hidden; }
.exo-sales-heading { flex-wrap: wrap; }
.exo-sales-heading p { font-size: 10px; }
.exo-legend { flex: 1 1 320px; }
.exo-legend .sales-legend-item { cursor: pointer; }
.exo-legend .sales-legend-item.unavailable { cursor: default; }
.exo-sales-chart { min-height: 0; padding-bottom: 8px; }
.exo-sales-chart svg { height: auto; aspect-ratio: 1200 / 380; max-height: 340px; }
.exo-count { min-width: 26px; text-align: center; font-weight: 700; font-size: 11px; color: var(--red); background: var(--red-soft); border-radius: 999px; padding: 2px 8px; }

.exo-attention { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 330px; overflow: auto; }
.exo-attention li { padding: 10px 12px; border-radius: 9px; background: var(--surface-muted); border-left: 3px solid var(--line-strong); }
.exo-attention li.tone-danger { border-left-color: var(--red); }
.exo-attention li.tone-warning { border-left-color: var(--amber); }
.exo-attention li.tone-good { border-left-color: var(--green); }
.exo-attention strong { display: block; font-size: 12px; color: var(--ink); }
.exo-attention p { margin: 3px 0 0; font-size: 10px; color: var(--muted); line-height: 1.45; }
.exo-action { margin-top: 7px; font: inherit; font-size: 10px; font-weight: 650; color: var(--blue); background: none; border: 1px solid var(--line); border-radius: 7px; padding: 3px 9px; cursor: pointer; }
.exo-action:hover { background: var(--blue-soft); border-color: transparent; }

.exo-table-wrap { overflow-x: auto; }
.exo-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.exo-table th, .exo-table td { padding: 8px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; color: var(--ink); }
.exo-table thead th { font-size: 10px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 700; background: var(--surface-muted); }
.exo-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.exo-table tbody tr { cursor: pointer; }
.exo-table tbody tr:hover, .exo-table tbody tr:focus-visible { background: var(--blue-soft); outline: none; }
.exo-table tfoot th, .exo-table tfoot td { font-weight: 750; border-bottom: 0; border-top: 2px solid var(--line-strong); }
.exo-store-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); margin-right: 8px; }
.exo-store-dot.good { background: var(--green); } .exo-store-dot.warn { background: var(--amber); } .exo-store-dot.bad { background: var(--red); }
.exo-flag { display: inline-block; margin: 2px 0 0 16px; font-size: 9px; font-weight: 650; color: var(--amber); background: var(--amber-soft); border-radius: 999px; padding: 1px 6px; }
.exo-bar-cell { display: grid; grid-template-columns: 44px auto; align-items: center; gap: 8px; justify-content: end; }
.exo-bar-cell span { display: block; height: 6px; border-radius: 3px; background: #22bce8; opacity: .7; justify-self: end; }
.exo-mal { font-weight: 750; }
.exo-mal.good { color: var(--green); } .exo-mal.bad { color: var(--red); }

.exo-dept { display: grid; gap: 9px; }
.exo-dept-row { display: grid; grid-template-columns: minmax(90px, 1.1fr) minmax(50px, 1.2fr) 82px 92px; align-items: center; gap: 8px; font-size: 12px; }
.exo-dept-name { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exo-dept-track { height: 8px; background: var(--surface-muted); border-radius: 4px; overflow: hidden; }
.exo-dept-track span { display: block; height: 100%; background: #22bce8; border-radius: 4px; }
.exo-dept-value { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.exo-dept-margin { text-align: right; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
.exo-dept-margin.bad { color: var(--red); }
.exo-dept-margin small { font-weight: 500; color: var(--muted); }

.exo-state { padding: 18px; margin-bottom: 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); display: flex; align-items: center; gap: 10px; font-size: 12px; }
.exo-state.error { color: var(--red); border-color: var(--red); background: var(--red-soft); }
.exo-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--blue); animation: exo-spin .8s linear infinite; }
@keyframes exo-spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .exo-grid-main, .exo-grid-wide { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .exo-dept-row { grid-template-columns: minmax(80px, 1fr) 70px 64px; }
  .exo-dept-track { display: none; }
}
@media (prefers-reduced-motion: reduce) { .exo-loading, .exo-spinner { animation: none; } }
.exo-chart-state { display: flex; align-items: center; gap: 10px; min-height: 220px; justify-content: center; color: var(--muted); font-size: 12px; }
.exo-legend .sales-legend-item.unavailable { opacity: .55; }
