/* Visual do modelo "Dashboard Comercial – Proteção Veicular". Fonte Inter (OFL, ver assets/Inter-OFL.txt). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(assets/inter-latin.woff2) format('woff2'); }
:root {
  --fundo: #0F1115; --cartao: #171A20; --chip-hover: #1F232B; --borda: rgba(255,255,255,0.07); --borda-chip: rgba(255,255,255,0.10);
  --texto: #ECEEF2; --texto-2: #B6BDC9; --texto-3: #8F97A5; --guia: #262B34; --guia-base: #343A45;
  --accent: #DB7420; --seg2: #3987E5; --seg3: #199E70; --seg4: #8F97A5; --trilho: rgba(219,116,32,0.18);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--fundo); color: var(--texto); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 14px; line-height: 1.4; }
button, select, input { font-family: inherit; }
a { color: var(--texto-2); } a:hover { color: var(--texto); }

.pagina { min-height: 100vh; padding: 28px 3% 40px; max-width: 1440px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.cartao { padding: 22px; background: var(--cartao); border: 1px solid var(--borda); border-radius: 14px; min-width: 0; }
.sub { font-size: 13px; color: var(--texto-3); }

.topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.marca { display: flex; align-items: center; gap: 14px; }
.marca h1 { font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.logo { display: block; height: 46px; width: auto; }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: var(--cartao); border: 1px solid var(--borda-chip); border-radius: 10px; color: var(--texto); font-size: 13px; text-decoration: none; cursor: pointer; }
.chip:hover { background: var(--chip-hover); }
.chip:focus-within, .col:focus-visible { outline: 2px solid var(--texto); outline-offset: 2px; }
.chip .rot { color: var(--texto-3); }
.chip select, .chip input { appearance: none; background: transparent; border: 0; color: var(--texto); font-size: 13px; font-weight: 600; cursor: pointer; padding-right: 2px; color-scheme: dark; }
.chip select option { background: var(--cartao); color: var(--texto); font-weight: 400; }
.chip select:focus, .chip input:focus { outline: none; }
.chip .seta { flex: none; color: var(--texto-3); pointer-events: none; }
.sair { color: var(--texto-3); }
.nota-periodo { margin-top: -8px; font-size: 13px; color: var(--texto-3); }
.nota-periodo strong { color: var(--texto-2); font-weight: 600; }

.linha { display: flex; flex-wrap: wrap; gap: 16px; }
.rotulo { font-size: 13px; font-weight: 500; color: var(--texto-2); }
.kpi-grande { flex: 1.6 1 420px; display: flex; flex-direction: column; gap: 14px; }
.kpi-conteudo { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.numero-grande { font-size: 96px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.composicao { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.barra-comp { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; }
.barra-comp div { min-width: 0; }
.legenda { display: flex; flex-direction: column; gap: 8px; }
.legenda .item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ponto { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.legenda .nome { flex: 1; min-width: 0; color: var(--texto-2); }
.valor { font-weight: 600; color: var(--texto); font-variant-numeric: tabular-nums; }
.pct { width: 36px; text-align: right; color: var(--texto-3); font-variant-numeric: tabular-nums; font-size: 12px; }
.legenda .pct { font-size: 13px; }

.kpi { flex: 1 1 250px; display: flex; flex-direction: column; gap: 14px; }
.titulo-linha { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.titulo-linha.esq { justify-content: flex-start; align-items: baseline; gap: 10px; }
.titulo-linha h2 { font-size: 16px; font-weight: 600; }
.selo { flex: none; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--texto-2); padding: 2px 7px; border: 1px solid rgba(255,255,255,0.14); border-radius: 6px; }
.numero { font-size: 32px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.nome-lider { font-size: 28px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rodape { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; gap: 20px; }
.rodape > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rodape span { font-size: 12px; color: var(--texto-3); }
.rodape strong { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }

.evolucao { display: flex; flex-direction: column; gap: 20px; }
.graficos { display: flex; flex-wrap: wrap; gap: 28px 36px; }
.grafico { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.g-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.g-topo h3 { display: inline; font-size: 14px; font-weight: 600; }
.g-topo .sub { font-size: 12px; }
.g-topo strong { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.g-area { display: flex; gap: 8px; }
.eixo { position: relative; flex: none; width: 40px; height: 150px; }
.eixo span { position: absolute; right: 0; font-size: 11px; line-height: 14px; color: var(--texto-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plot { position: relative; flex: 1; min-width: 0; height: 150px; }
.guia { position: absolute; left: 0; right: 0; height: 1px; background: var(--guia); }
.guia.base { bottom: 0; background: var(--guia-base); }
.colunas { position: absolute; inset: 0; display: flex; align-items: stretch; }
.col { color: var(--texto); flex: 1 1 0px; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; padding: 0; margin: 0; border: 0; background: transparent; cursor: default; }
.barra { display: block; flex: none; width: 62%; max-width: 24px; background: var(--accent); border-radius: 4px 4px 0 0; transition: opacity .12s; }
.grafico.foco .col:not(.ativa) .barra { opacity: .4; }
.pico { font-size: 11px; line-height: 13px; font-weight: 600; white-space: nowrap; }
.meses { display: flex; padding-left: 48px; }
.meses span { flex: 1 1 0px; min-width: 0; text-align: center; font-size: 11px; line-height: 16px; color: var(--texto-3); }

.lista { flex: 1 1 280px; display: flex; flex-direction: column; gap: 18px; }
.lista h2 { font-size: 16px; font-weight: 600; }
.itens { display: flex; flex-direction: column; gap: 14px; }
.it { display: flex; flex-direction: column; gap: 8px; }
.it-linha { display: flex; align-items: baseline; gap: 10px; }
.it-nome { flex: 1; min-width: 0; font-size: 14px; display: flex; align-items: baseline; gap: 8px; overflow: hidden; text-overflow: ellipsis; }
.it-linha .valor { font-size: 14px; }
.uf { flex: none; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; background: var(--chip-hover); border: 1px solid var(--borda-chip); border-radius: 5px; padding: 1px 6px; }
.trilho { height: 6px; border-radius: 3px; background: var(--trilho); }
.trilho div { height: 6px; border-radius: 3px; background: var(--accent); }
.mais, .vazio { font-size: 12px; color: var(--texto-3); }
.nota { font-size: 12px; color: var(--texto-3); }

body.login { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.caixa-login { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.caixa-login label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--texto-2); }
.caixa-login input { padding: 11px 12px; background: var(--fundo); border: 1px solid var(--borda-chip); border-radius: 10px; color: var(--texto); font-size: 14px; }
.caixa-login input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.botao { min-height: 44px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; }
.erro { color: #F08A8A; font-size: 13px; }

@media (max-width: 600px) {
  .pagina { padding: 20px 16px 32px; }
  .numero-grande { font-size: 72px; }
  .filtros { width: 100%; }
  .chip { flex: 1 1 auto; }
}
