/* Portal Zetta — estilos. Casca: menu lateral + barra superior; conteúdo em grade de cartões. */
:root {
  --bg: #f5f6f3; --panel: #ffffff; --panel-2: #f3f4f0; --hover: #eef0eb; --border: #e2e1da; --fg: #15171a;
  --muted: #55544f; --faint: #8a8882; --grid: #ecebe5; --base-axis: #c3c2b7;
  --accent: #0d7a68; --accent-fg: #ffffff; --accent-soft: #e2f2ee; --focus: #0d7a68;
  --s1: #2a78d6; --s1-soft: #dce9f9; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s7: #6250d6;
  --cmp: #bdbcb4; --outros: #c9c8c0;
  --q1: #e8f1fc; --q2: #b7d3f6; --q3: #6da7ec; --q4: #2a78d6; --q5: #184f95;
  --ok: #006300; --ok-mark: #0ca30c; --bad: #c42f2f; --bad-mark: #d03b3b; --warn-mark: #e69b00;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --r: 12px; --sh: 0 1px 2px rgba(20, 24, 28, .05), 0 1px 1px rgba(20, 24, 28, .03);
  --lat: 232px;
  --azul: #2a78d6; --violeta: #6d5bd0; --verde: #10966b; --laranja: #e4672d; --ciano: #0a93a8; --rosa: #d0457c; --ambar: #c98a00; --vermelho: #d03b3b;
  --cinza: #8a8882; --esmeralda: #17a673; --esmeralda-esc: #0f6e56; --esmeralda-soft: #e3f5ee; --vinho: #8e1b2e;
  color-scheme: light;
}
/* Tema claro é o padrão; o escuro vale só quando o usuário escolhe (data-theme="dark" no <html>). */
:root[data-theme="dark"] {
  --bg: #0f0f0e; --panel: #1a1a19; --panel-2: #222220; --hover: #262624; --border: #2f2f2c; --fg: #f0efec;
  --muted: #c3c2b7; --faint: #8f8d86; --grid: #2a2a28; --base-axis: #3d3d3a;
  --accent: #34b39b; --accent-fg: #0f1a17; --accent-soft: #173029; --focus: #34b39b;
  --s1: #3987e5; --s1-soft: #1c2c40; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s7: #9085e9;
  --cmp: #55544f; --outros: #4a4945;
  --q1: #1d2a3a; --q2: #184f95; --q3: #256abf; --q4: #3987e5; --q5: #86b6ef;
  --ok: #3cbf3c; --ok-mark: #0ca30c; --bad: #ec7272; --bad-mark: #d03b3b; --warn-mark: #fab219;
  --azul: #4b93ec; --violeta: #9284ec; --verde: #2fb488; --laranja: #f07c45; --ciano: #2db3c7; --rosa: #e2689a; --ambar: #e0a52a; --vermelho: #e66767;
  --cinza: #8f8d86; --esmeralda: #2cc28b; --esmeralda-esc: #6fe0b5; --esmeralda-soft: #15342a; --vinho: #ff8f9d;
  --sh: none; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 14px; line-height: 1.45; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; }

/* ---------------------------------------------------------------- casca */
.app { display: grid; grid-template-columns: var(--lat) minmax(0, 1fr); min-height: 100vh; }
.lateral { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--panel); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; z-index: 40; }
.marca { display: flex; align-items: center; gap: 10px; padding: 2px 8px 14px; }
.marca .logo { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.marca b { display: block; font-size: 16px; line-height: 1.1; }
.marca small { color: var(--muted); font-size: 12px; }
.nav-grupo { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 14px 10px 4px; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 8px;
  color: var(--muted); font-weight: 550; cursor: pointer; text-decoration: none; }
.nav-item svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { background: var(--hover); color: var(--fg); }
.nav-item[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.nav-item.breve { cursor: default; opacity: .62; }
.nav-item.breve:hover { background: none; color: var(--muted); }
.nav-item .selo-breve { margin-left: auto; font-size: 10px; font-weight: 700; border: 1px solid var(--border); border-radius: 999px; padding: 0 6px; color: var(--faint); }
.lateral .rodape { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.lateral .rodape .lnk { font-size: 12px; text-align: left; }
.ponto { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); margin-right: 6px; vertical-align: 0; }
.ponto.ok { background: var(--ok-mark); } .ponto.and { background: var(--warn-mark); animation: pulsa 1.2s infinite; } .ponto.falha { background: var(--bad-mark); }
@keyframes pulsa { 50% { opacity: .35; } }

.corpo { min-width: 0; display: flex; flex-direction: column; }
.topo { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); }
.topo-in { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px max(16px, 2.2vw); }
.btn-menu { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 5px 8px; cursor: pointer; }
.btn-menu svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; display: block; }
.base-sel { display: flex; gap: 6px; align-items: center; min-width: 0; flex: 1 1 280px; max-width: 560px; }
.base-sel select, .base-sel input { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; min-width: 0; max-width: 100%; }
.base-sel select { flex: 1 1 auto; font-weight: 600; }
.base-sel input { width: 8rem; }
.sync-pill { display: flex; align-items: center; gap: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.usuario { margin-left: auto; }
.rot { font-size: 12px; color: var(--muted); }
.lnk { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.veu { display: none; }

@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .lateral { position: fixed; left: 0; top: 0; width: min(82vw, 280px); transform: translateX(-102%); transition: transform .2s; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
  .lateral.aberta { transform: none; }
  .veu.aberto { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 35; }
  .btn-menu { display: block; }
  .sync-pill { order: 5; width: 100%; white-space: normal; }
}

main { padding: 18px max(16px, 2.2vw) 48px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cab { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; justify-content: space-between; }
.cab h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.cab .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.cab .acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------- controles */
.seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; background: var(--panel-2); border: 1px solid var(--border); border-radius: 9px; padding: 2px; gap: 2px; }
.seg button { border: 0; background: none; padding: 4px 10px; border-radius: 7px; cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 550; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.chip { background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 3px 11px; cursor: pointer; font-size: 13px; white-space: nowrap; }
.chip:hover { border-color: var(--faint); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip.ativo { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); color: var(--fg); }
.chip.ativo b { font-weight: 650; }
.chip.ativo .x { margin-left: 6px; color: var(--muted); }
.btn { background: var(--accent); color: var(--accent-fg); border: 0; border-radius: 8px; padding: 6px 14px; cursor: pointer; font-weight: 600; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-sec { white-space: nowrap; background: var(--panel); color: var(--fg); border: 1px solid var(--border); border-radius: 8px; padding: 5px 12px; cursor: pointer; }
.btn-sec:hover { border-color: var(--faint); }
.btn-ico { background: none; border: 1px solid transparent; border-radius: 7px; padding: 2px 7px; cursor: pointer; color: var(--muted); font-size: 13px; }
.btn-ico:hover { border-color: var(--border); color: var(--fg); }

.barra-filtros { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; box-shadow: var(--sh); }
.barra-filtros .f { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.barra-filtros select, .barra-filtros input[type=date], .barra-filtros input[type=search] {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; max-width: 13rem; min-width: 0; }
.barra-filtros input[type=search] { width: 12rem; }
.barra-filtros .sep { width: 1px; align-self: stretch; background: var(--border); }
.filtros-ativos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 0; }
.filtros-ativos:empty { display: none; }
.fil-chips { display: flex; flex-wrap: wrap; gap: 4px; }

/* ---------------------------------------------------------------- cartões e KPIs */
.grade { display: grid; gap: 14px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; }
.c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: 1 / -1; }
@media (max-width: 1280px) { .c3 { grid-column: span 6; } .c4 { grid-column: span 6; } .c5, .c7 { grid-column: span 12; } .c8 { grid-column: span 12; } }
@media (max-width: 760px) { .grade > * { grid-column: 1 / -1 !important; } }
.cartao { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--sh);
  display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cartao-cab { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; }
.cartao h2 { margin: 0; font-size: 14px; font-weight: 650; }
.cartao h2 small { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 6px; }
.nota { margin: 0; font-size: 12px; color: var(--muted); }
.kpis { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr)); }
.kpi { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--sh);
  display: flex; flex-direction: column; gap: 2px; min-width: 0; position: relative; }
.kpi .t { font-size: 12px; color: var(--muted); font-weight: 550; display: flex; gap: 6px; align-items: center; }
.kpi .v { font-size: 22px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; letter-spacing: -.01em; }
.kpi .d { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.kpi.destaque { background: linear-gradient(135deg, var(--accent-soft), var(--panel) 70%); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.kpi.destaque .v { font-size: 26px; }
.var { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.var.up { color: var(--ok); } .var.down { color: var(--bad); } .var.zero { color: var(--muted); }
.up { color: var(--ok); } .down { color: var(--bad); }
.kpis.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kpis.k3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi .v { font-size: 19px; } }

/* ---------------------------------------------------------------- gráficos */
.graf { position: relative; width: 100%; min-height: 200px; }
.graf svg { display: block; overflow: visible; }
.graf text, svg.g text { fill: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.graf text.forte { fill: var(--fg); }
.graf text.rot-v { fill: var(--muted); }
.graf .alvo { cursor: pointer; }
.tip { position: fixed; pointer-events: none; background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.16); padding: 8px 11px; font-size: 12px; z-index: 60; min-width: 140px; max-width: 320px; }
.tip .h { font-weight: 650; margin-bottom: 4px; color: var(--fg); }
.tip .l { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.tip .l b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.tip .n { color: var(--faint); margin-top: 4px; font-size: 11px; }
.legenda { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legenda i.linha { height: 2px; border-radius: 1px; vertical-align: 3px; width: 14px; }
.vazio { color: var(--muted); font-size: 13px; padding: 24px 0; text-align: center; }
.esmaecido { opacity: .5; transition: opacity .2s; pointer-events: none; }

/* calendário */
.cal-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-cab b { font-size: 15px; text-transform: capitalize; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .dow { font-size: 11px; color: var(--faint); text-align: center; font-weight: 600; padding-bottom: 2px; }
.cal button { border: 1px solid var(--border); background: var(--panel); border-radius: 8px; padding: 4px 4px 5px; min-height: 48px; cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 2px; text-align: left; position: relative; overflow: hidden; }
.cal button .n { font-size: 11px; color: var(--muted); font-weight: 600; position: relative; }
.cal button .v { font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; position: relative; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal button .fundo { position: absolute; inset: 0; background: var(--s1); }
.cal button:hover { border-color: var(--faint); }
.cal button.sel { outline: 2px solid var(--fg); outline-offset: -1px; }
.cal button.hoje .n { color: var(--accent); }
.cal button:disabled { cursor: default; opacity: .4; background: var(--panel-2); }
.cal .fora { visibility: hidden; }


/* tabelas */
.tab-cab { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.busca { background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; width: min(100%, 15rem); }
.rolagem { max-height: 30rem; overflow: auto; border-top: 1px solid var(--border); }
.rolagem.baixa { max-height: 22rem; }
table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
th { position: sticky; top: 0; background: var(--panel); text-align: left; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--border); padding: 0; z-index: 1; white-space: nowrap; }
th button { background: none; border: 0; padding: 7px 10px; width: 100%; text-align: inherit; cursor: pointer; color: inherit; font-weight: inherit; }
th[aria-sort="ascending"] button::after { content: " ▲"; font-size: 9px; } th[aria-sort="descending"] button::after { content: " ▼"; font-size: 9px; }
td { padding: 6px 10px; border-bottom: 1px solid var(--grid); vertical-align: top; }
tbody tr:hover td { background: var(--hover); }
tr.clicavel { cursor: pointer; }
tr.sel td { background: var(--accent-soft); }
tfoot td { font-weight: 700; border-top: 1px solid var(--border); border-bottom: 0; position: sticky; bottom: 0; background: var(--panel); }
.num { text-align: right; white-space: nowrap; }
th.num { text-align: right; }
.barra { position: relative; }
.barra i { position: absolute; right: 0; top: 6px; height: 18px; background: var(--s1); opacity: .16; border-radius: 3px; }
.barra span { position: relative; }
td .mini { display: block; color: var(--faint); font-size: 11px; }
@media (max-width: 640px) { .estreito-some { display: none; } }

/* listas de ranking (HTML) */
.rank { display: flex; flex-direction: column; gap: 2px; }
.rank .item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 5px 6px; border-radius: 8px; cursor: default; }
.rank .item.clicavel { cursor: pointer; }
.rank .item.clicavel:hover { background: var(--hover); }
.rank .item.sel { background: var(--accent-soft); }
.rank .item.apagado { opacity: .45; }
.rank .nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.rank .nome .pos { color: var(--faint); font-variant-numeric: tabular-nums; margin-right: 6px; font-size: 12px; }
.rank .val { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; font-size: 13px; white-space: nowrap; }
.rank .trilho { grid-column: 1 / -1; height: 6px; background: var(--grid); border-radius: 3px; overflow: hidden; }
.rank .trilho i { display: block; height: 100%; background: var(--s1); border-radius: 3px; }
.rank .sub { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); }

/* início */
.ola { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: flex-end; justify-content: space-between; }
.ola h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.ola p { margin: 2px 0 0; color: var(--muted); }
.modulos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.modulo { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); padding: 14px; display: flex; gap: 12px; align-items: flex-start;
  text-align: left; cursor: pointer; box-shadow: var(--sh); transition: border-color .15s, transform .15s; }
.modulo:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); transform: translateY(-1px); }
.modulo .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.modulo .ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.modulo b { display: block; font-size: 14px; }
.modulo span { font-size: 12px; color: var(--muted); }
.modulo.breve { cursor: default; opacity: .6; }
.modulo.breve:hover { transform: none; border-color: var(--border); }
.progresso { height: 6px; background: var(--grid); border-radius: 3px; overflow: hidden; }
.progresso i { display: block; height: 100%; width: 40%; background: var(--accent); border-radius: 3px; animation: anda 1.4s ease-in-out infinite; }
@keyframes anda { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }

/* mapa por UF */
.uf-mapa { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; max-width: 360px; }
.uf-mapa .uf { aspect-ratio: 1.1; border-radius: 7px; border: 1px solid transparent; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; cursor: pointer; background: var(--panel-2); color: var(--faint); padding: 0; }
.uf-mapa .uf small { font-weight: 500; font-size: 9px; opacity: .9; }
.uf-mapa .uf.tem { color: var(--fg); }

.uf-mapa .uf.sel { outline: 2px solid var(--fg); outline-offset: 0; }
.uf-mapa .uf:disabled { cursor: default; }
.regiao { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.regiao.r21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 640px) { .regiao, .regiao.r21 { grid-template-columns: 1fr; } }
.escala { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--faint); }
.escala i { display: block; height: 8px; flex: 1; border-radius: 4px; background: linear-gradient(90deg, var(--q1), var(--q3), var(--q5)); max-width: 140px; }

/* árvore grupo › subgrupo */
.arvore { display: flex; flex-direction: column; }
.arvore .no { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 5px 4px; border-bottom: 1px solid var(--grid); font-size: 13px; }
.arvore .no.filho { padding-left: 22px; font-size: 12px; cursor: pointer; }
.arvore .no.filho:hover { background: var(--hover); }
.arvore .no.sel { background: var(--accent-soft); }
.arvore .seta { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0; width: 18px; }
.arvore .nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arvore .num { font-weight: 600; }
.arvore .mg { font-size: 11px; min-width: 52px; text-align: right; }

/* mapa de calor */
.calor { width: 100%; border-collapse: separate; border-spacing: 2px; font-size: 11px; }
.calor th { position: static; background: none; border: 0; font-weight: 600; color: var(--faint); padding: 2px 4px; text-align: center; }
.calor th.lin { text-align: right; white-space: nowrap; }
.calor td { border: 0; border-radius: 5px; text-align: center; padding: 6px 2px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calor td.tot, .calor th.tot { color: var(--muted); background: none; font-weight: 650; }

/* ABC */
.abc-cl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.abc-cl .cl { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.abc-cl .cl b { font-size: 18px; }
.abc-cl .cl .t { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.abc-cl .cl i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.abc-cl .cl small { color: var(--muted); font-size: 11px; }

/* modal de lista completa */
dialog.lista { width: min(860px, calc(100vw - 24px)); }
dialog.lista .dlg { max-height: 86vh; }
dialog.lista .rolagem { max-height: 62vh; }

.carregando { position: fixed; inset: auto 0 18px 0; display: flex; justify-content: center; pointer-events: none; z-index: 70; }
.carregando div { background: var(--fg); color: var(--bg); border-radius: 999px; padding: 8px 16px; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.erro { background: color-mix(in srgb, var(--bad) 10%, var(--panel)); border: 1px solid color-mix(in srgb, var(--bad) 40%, var(--border)); color: var(--fg); border-radius: var(--r); padding: 12px 14px; }

/* Perguntar */
.chat { display: grid; grid-template-rows: 1fr auto; gap: 12px; max-width: 980px; width: 100%; margin: 0 auto; min-height: calc(100vh - 150px); }
.msgs { display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 100%; min-width: 0; }
.msg.eu { align-self: flex-end; background: var(--fg); color: var(--bg); border-radius: 14px 14px 4px 14px; padding: 8px 14px; max-width: 80%; }
.msg.ia { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg.ia p { margin: 0; } .msg.ia ul { margin: 0; padding-left: 20px; }
.msg.ia .anexo { border-top: 1px solid var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.msg.ia .anexo h3 { margin: 0; font-size: 13px; font-weight: 650; }
details.sql summary { cursor: pointer; color: var(--muted); font-size: 12px; }
details.sql pre { white-space: pre-wrap; font-size: 12px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px; overflow-x: auto; margin: 6px 0 0; }
.entrada { display: flex; gap: 8px; position: sticky; bottom: 0; background: var(--bg); padding: 8px 0 4px; }
.entrada textarea { flex: 1; resize: vertical; min-height: 44px; max-height: 200px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font: inherit; color: inherit; }
.sugestoes { display: flex; flex-wrap: wrap; gap: 8px; }
.aviso { background: var(--panel); border: 1px dashed var(--border); border-radius: var(--r); padding: 14px 16px; color: var(--muted); }
.aviso b { color: var(--fg); }

/* Login */
.login-pg { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 28px; width: min(100%, 380px); display: flex; flex-direction: column; gap: 14px; box-shadow: var(--sh); }
.login h1 { margin: 0; font-size: 20px; } .login h1 b { color: var(--accent); }
/* Login ZettaBI (v29): degradê #5ce0e5 → #014ab0 só nesta tela; o resto do portal segue com o verde */
.login-pg { --zb-ciano: #5ce0e5; --zb-azul: #014ab0; --accent: var(--zb-azul); --accent-fg: #ffffff; --focus: var(--zb-azul);
  background: radial-gradient(90% 70% at 0% 0%, color-mix(in srgb, var(--zb-ciano) 22%, transparent), transparent 60%),
              radial-gradient(90% 70% at 100% 100%, color-mix(in srgb, var(--zb-azul) 14%, transparent), transparent 60%), var(--bg); }
.login-pg .login { position: relative; overflow: hidden; }
.login-pg .login::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--zb-ciano), var(--zb-azul)); }
.login .login-nome { font-size: 26px; font-weight: 800; letter-spacing: -.01em; width: fit-content; color: var(--zb-azul);
  background: linear-gradient(90deg, var(--zb-ciano), var(--zb-azul)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.login-pg .btn { padding: 9px 14px; } .login-pg .btn:hover:not(:disabled) { background: color-mix(in srgb, var(--zb-azul) 88%, var(--zb-ciano)); }
.login-pg input:focus { outline: none; border-color: var(--zb-azul); box-shadow: 0 0 0 3px color-mix(in srgb, var(--zb-ciano) 35%, transparent); }
:root[data-theme="dark"] .login-pg { --focus: var(--zb-ciano);
  background: radial-gradient(90% 70% at 0% 0%, color-mix(in srgb, var(--zb-ciano) 12%, transparent), transparent 60%),
              radial-gradient(90% 70% at 100% 100%, color-mix(in srgb, var(--zb-azul) 30%, transparent), transparent 60%), var(--bg); }
:root[data-theme="dark"] .login .login-nome { color: var(--zb-ciano); background-image: linear-gradient(90deg, var(--zb-ciano), color-mix(in srgb, var(--zb-azul) 60%, var(--zb-ciano))); }
:root[data-theme="dark"] .login-pg input:focus { border-color: var(--zb-ciano); }
.login label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.login input { background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; color: var(--fg); }
.login .msg-erro { color: var(--bad); font-size: 13px; min-height: 1.2em; margin: 0; }

/* Menu do usuário */
.menu-usuario { position: relative; }
.menu-usuario > button { background: none; border: 1px solid transparent; border-radius: 8px; padding: 4px 8px; cursor: pointer; color: var(--fg); display: flex; gap: 8px; align-items: center; }
.menu-usuario > button:hover { border-color: var(--border); }
.menu-usuario .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.menu-usuario .seta { font-size: 10px; color: var(--muted); }
.menu-lista { position: absolute; right: 0; top: calc(100% + 6px); background: var(--panel); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: 6px; min-width: 200px; z-index: 50; display: flex; flex-direction: column; }
.menu-lista button { background: none; border: 0; text-align: left; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.menu-lista button:hover { background: var(--panel-2); }
.menu-lista hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; width: 100%; }

/* Administração */
.subabas { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.subaba { background: none; border: 0; padding: 8px 12px; cursor: pointer; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subaba[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.selo { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.selo.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); }
.selo.erro { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--border)); }
.selo.andamento { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.selo.admin { color: var(--s7); border-color: color-mix(in srgb, var(--s7) 45%, var(--border)); }
.acoes-linha { display: flex; gap: 10px; flex-wrap: wrap; }
.barra-ferr { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.barra-ferr .filtros-adm { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.barra-ferr select, .barra-ferr input { background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 5px 8px; }
td.mono, .mono { font-family: Consolas, "Cascadia Mono", monospace; font-size: 12px; }
.resumo-adm { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.resumo-adm b { color: var(--fg); font-weight: 600; }

/* Diálogos */
dialog { border: 1px solid var(--border); border-radius: 14px; padding: 0; background: var(--panel); color: var(--fg); width: min(560px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(10, 16, 24, .45); }
.dlg { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.dlg h2 { margin: 0; font-size: 17px; }
.campo { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.campo input, .campo select { background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; color: var(--fg); }
.campo small { color: var(--muted); font-size: 12px; }
.duas { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.marcar { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.lista-bases { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 4px 12px; max-height: 210px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; background: var(--panel-2); }
.lista-bases label { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--fg); }
.dlg-acoes { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.btn-perigo { background: none; color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 45%, var(--border)); border-radius: 8px; padding: 6px 12px; cursor: pointer; margin-right: auto; }
.msg-erro { color: var(--bad); font-size: 13px; margin: 0; min-height: 1.2em; }
.aviso-ok { color: var(--ok); font-size: 13px; margin: 0; }

/* celular */
@media (max-width: 560px) {
  .cal button { min-height: 36px; }
  .cal button .v { display: none; }
  .kpi.destaque .v { font-size: 20px; }
  .base-sel .rot { display: none; }
  .base-sel input { width: 6.5rem; }
  .cab h1 { font-size: 20px; }
  main { padding-top: 14px; }
}


/* ================================================================ v3: cores, KPIs, filtros compactos */
.ico { display: inline-grid; place-items: center; flex: none; }
.ico svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* KPI com tinta da cor do indicador */
.kpi.tinta { --c: var(--azul); background: color-mix(in srgb, var(--c) 7%, var(--panel)); border-color: color-mix(in srgb, var(--c) 24%, var(--border)); }
.kpi .topo-k { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kpi .topo-k .ico { width: 28px; height: 28px; padding: 6px; border-radius: 8px; background: var(--c, var(--azul)); color: #fff; }
.kpi .topo-k .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.tinta .v { color: var(--fg); }
.kpi .v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; font-variant-numeric: tabular-nums; }
/* KPI sólido (gradiente), para o Resumo */
.kpi.solido { --c: var(--azul); color: #fff; border: 0; padding: 14px 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 92%, #fff), color-mix(in srgb, var(--c) 72%, #000)); box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 26%, transparent); }
.kpi.solido .t { color: rgba(255,255,255,.88); }
.kpi.solido .topo-k .ico { background: rgba(255,255,255,.2); }
.kpi.solido .v { color: #fff; font-size: 24px; }
.kpi.solido .d { color: rgba(255,255,255,.85); }
.kpi.solido .var { background: rgba(255,255,255,.2); color: #fff; padding: 1px 7px; border-radius: 999px; }
:root[data-theme="dark"] .kpi.solido { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 70%, #000), color-mix(in srgb, var(--c) 45%, #000)); }
.kpis.k3 .kpi .v, .kpis.k4 .kpi .v { font-size: clamp(18px, 1.55vw, 24px); }

/* cabeçalho de cartão com ícone colorido */
.cartao-cab h2 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cartao-cab h2 .ico, .tab-cab h2 .ico { width: 26px; height: 26px; padding: 5px; border-radius: 7px; background: color-mix(in srgb, var(--c, var(--azul)) 14%, var(--panel)); color: var(--c, var(--azul)); }
.cartao-cab h2 small, .tab-cab h2 small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab-cab h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 650; min-width: 0; }
.tab-cab .acoes-linha { flex-wrap: nowrap; margin-left: auto; align-items: center; }
.tab-cab .busca { width: 13rem; }
@media (max-width: 640px) { .tab-cab .acoes-linha { flex-wrap: wrap; margin-left: 0; } .tab-cab .busca { width: 100%; } }
td.cod { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* barra de filtros compacta (pílulas) */
.barra-filtros { position: relative; z-index: 20; padding: 8px 10px; gap: 8px; align-items: center; }
.bf-grupo { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.bf-fim { margin-left: auto; }
.fsel { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 32px; border: 1px solid var(--border); background: var(--panel-2); border-radius: 9px; padding: 0 4px 0 10px; font-size: 13px; max-width: 100%; cursor: pointer; }
.fsel:hover { border-color: var(--faint); }
.fsel .fr { color: var(--faint); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.fsel select { border: 0; background: transparent; padding: 0 2px; max-width: 9.5rem; min-width: 0; font-weight: 600; cursor: pointer; outline-offset: 0; }
.fsel select option { background: var(--panel); color: var(--fg); }
.fsel.on { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: var(--accent-soft); }
.fsel.datas { padding: 0 8px; gap: 6px; cursor: default; }
.fsel.datas input { border: 0; background: transparent; font-size: 13px; font-weight: 600; padding: 0; width: 8.4rem; }
.fsel.datas span { color: var(--faint); }
.fsel.busca-f { padding: 0 10px; cursor: text; }
.fsel.busca-f .ico { width: 15px; height: 15px; color: var(--faint); }
.fsel.busca-f input { border: 0; background: transparent; width: 12rem; font-size: 13px; padding: 0; outline-offset: 2px; }
.fsel.btn-f { font-weight: 600; gap: 6px; padding: 0 10px; }
.fsel.btn-f .seta { font-size: 9px; color: var(--faint); }
.pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 8px; min-width: 240px; cursor: default; display: flex; flex-direction: column; gap: 2px; }
.pop label { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 13px; cursor: pointer; }
.pop label:hover { background: var(--hover); }
.pop .acoes-pop { display: flex; justify-content: space-between; gap: 8px; padding: 6px 4px 2px; border-top: 1px solid var(--border); margin-top: 4px; }
.bolinha { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
@media (max-width: 760px) { .barra-filtros { position: static; } .bf-fim { margin-left: 0; } .fsel.busca-f input { width: 9rem; } }

/* selo de filial colorido */
.selo-fil { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.selo-fil .n { color: #fff; background: var(--c); border-radius: 6px; padding: 0 7px; font-size: 11px; line-height: 18px; }

/* pílulas de valor colorido (margem, dias parados) */
.pil { display: inline-block; padding: 1px 8px; border-radius: 999px; font-weight: 650; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pil.bom { background: color-mix(in srgb, var(--ok-mark) 16%, var(--panel)); color: var(--ok); }
.pil.ruim { background: color-mix(in srgb, var(--bad-mark) 15%, var(--panel)); color: var(--bad); }
.pil.medio { background: color-mix(in srgb, var(--warn-mark) 18%, var(--panel)); color: color-mix(in srgb, var(--warn-mark) 60%, var(--fg)); }
.pil.neutro { background: var(--panel-2); color: var(--muted); }

/* ranking com posição em círculo colorido */
.rank .item { grid-template-columns: auto minmax(0, 1fr) auto; }
.rank .pos-c { grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: color-mix(in srgb, var(--c, var(--azul)) 15%, var(--panel)); color: var(--c, var(--azul)); align-self: center; }
.rank .item:nth-child(-n+3) .pos-c { background: var(--c, var(--azul)); color: #fff; }
.rank .trilho, .rank .sub { grid-column: 2 / -1; }
.rank .trilho i { background: var(--c, var(--azul)); }
.rank.sem-pos .item { grid-template-columns: minmax(0, 1fr) auto; }
.rank.sem-pos .trilho, .rank.sem-pos .sub { grid-column: 1 / -1; }

/* alerta de custo suspeito */
.alerta { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--r); padding: 10px 14px; font-size: 13px;
  background: color-mix(in srgb, var(--warn-mark) 12%, var(--panel)); border: 1px solid color-mix(in srgb, var(--warn-mark) 45%, var(--border)); }
.alerta .ico { width: 22px; height: 22px; color: color-mix(in srgb, var(--warn-mark) 75%, var(--fg)); margin-top: 1px; }
.alerta b { font-weight: 650; }
.alerta .lnk { white-space: nowrap; }

/* blocos grandes de concentração */
.conc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.conc .b { border-radius: 10px; padding: 10px 12px; background: color-mix(in srgb, var(--c) 9%, var(--panel)); border: 1px solid color-mix(in srgb, var(--c) 22%, var(--border)); }
.conc .b b { display: block; font-size: 22px; color: var(--c); font-variant-numeric: tabular-nums; line-height: 1.2; }
.conc .b span { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.insights { display: flex; flex-direction: column; gap: 6px; }
.insight { display: flex; gap: 8px; align-items: flex-start; border-radius: 9px; padding: 7px 10px; font-size: 12.5px; background: color-mix(in srgb, var(--c) 9%, var(--panel)); border-left: 3px solid var(--c); }

/* legenda de quadrantes / classes */
.chip-leg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.chip-leg i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); display: inline-block; }

/* ABC com cores por classe */
.abc-cl .cl { background: color-mix(in srgb, var(--c) 8%, var(--panel)); border-color: color-mix(in srgb, var(--c) 30%, var(--border)); }
.abc-cl .cl b { color: var(--c); }

/* calendário mais leve */
.cal button { border-color: var(--grid); }
.cal button .v { font-size: 11.5px; }
.cal .fundo { opacity: 1; }

.cartao-cab h2 > span:not(.ico) { white-space: nowrap; }

.bf-toggle { display: none; align-items: center; gap: 6px; height: 32px; }
.bf-toggle .ico { width: 15px; height: 15px; }
@media (max-width: 760px) {
  .bf-toggle { display: inline-flex; }
  .barra-filtros:not(.aberta) .bf-dims, .barra-filtros:not(.aberta) .bf-fim { display: none; }
  .fsel.datas input { width: 7.6rem; }
}
@media (max-width: 560px) { .kpi .topo-k .t { white-space: normal; } }

/* ================================================================ v4: Resumo reestruturado */
.kpis.compacto { gap: 8px; }
.kpis.compacto .kpi { padding: 10px 12px; gap: 1px; border-radius: 11px; }
.kpis.compacto .kpi .topo-k .ico { width: 22px; height: 22px; padding: 4px; border-radius: 6px; }
.kpis.compacto .kpi .t { font-size: 11.5px; }
.kpis.compacto .kpi.solido .v, .kpis.compacto .kpi .v { font-size: clamp(15px, 1.12vw, 20px); letter-spacing: -.015em; }
.kpis.compacto { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis.compacto .kpi .d { font-size: 11px; }
.kpis.compacto .kpi.solido .var { padding: 0 6px; }

.cal.grande { gap: 5px; }
.cal.grande button { min-height: 66px; padding: 6px 7px; border-radius: 9px; }
.cal.grande button .n { font-size: 12px; }
.cal.grande button .v { font-size: 13px; }
.cal.grande button .q { position: relative; font-size: 10.5px; opacity: .85; font-variant-numeric: tabular-nums; }
.cal button.apagado { opacity: .28; }
.cal button.marcado { box-shadow: 0 0 0 2px var(--violeta); }
@media (max-width: 560px) { .cal.grande button { min-height: 40px; } .cal.grande button .q { display: none; } }

/* dia da semana: chips com média por dia */
.dows { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dows button { border: 1px solid var(--border); border-radius: 9px; padding: 6px 2px; background: var(--panel); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; }
.dows button b { font-size: 11px; color: var(--muted); }
.dows button span { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dows button[aria-pressed="true"] { outline: 2px solid var(--violeta); outline-offset: -1px; }
.destaque-l { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 7px 10px; border-radius: 9px; background: color-mix(in srgb, var(--verde) 10%, var(--panel)); border-left: 3px solid var(--verde); }
.destaque-l .ico { width: 16px; height: 16px; color: var(--verde); }

/* semana forte: colunas modernas */
.semanas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.sem { border: 0; background: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; }
.sem .val { font-size: 12px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sem .tubo { position: relative; height: 128px; border-radius: 12px; background: color-mix(in srgb, var(--violeta) 7%, var(--panel-2)); overflow: hidden; border: 1px solid var(--border); }
.sem .enche { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 10px 10px 11px 11px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--violeta) 70%, #fff), var(--violeta)); transition: height .4s; }
.sem.melhor .enche { background: linear-gradient(180deg, color-mix(in srgb, var(--verde) 65%, #fff), var(--verde)); }
.sem .pct { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.sem .pct.fora { color: var(--muted); text-shadow: none; }
.sem .coroa { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; color: var(--ambar); }
.sem .rot { text-align: center; font-size: 11px; color: var(--muted); line-height: 1.2; }
.sem .rot b { display: block; color: var(--fg); font-size: 12px; }
.sem[aria-pressed="true"] .tubo { outline: 2px solid var(--violeta); outline-offset: 1px; }
.sem.futura { cursor: default; opacity: .5; }
.mini-heat { border-collapse: separate; border-spacing: 3px; width: 100%; font-size: 11px; }
.mini-heat th { position: static; background: none; border: 0; color: var(--faint); font-weight: 600; padding: 0 4px; text-align: center; }
.mini-heat th.lin { text-align: left; width: 34px; }
.mini-heat td { height: 20px; border-radius: 5px; border: 0; padding: 0; text-align: center; font-size: 10px; font-weight: 700; }

/* ritmo do mês */
.ritmo-v { font-size: 26px; font-weight: 750; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.ritmo-barra { position: relative; height: 12px; border-radius: 6px; background: var(--grid); overflow: visible; margin: 18px 0 4px; }
.ritmo-barra .ok { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--azul) 70%, #fff), var(--azul)); }
.ritmo-barra .tempo { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--fg); border-radius: 1px; }
.ritmo-barra .tempo span { position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); white-space: nowrap; }
.ritmo-linhas { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.ritmo-linhas div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--grid); padding-bottom: 4px; }
.ritmo-linhas b { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* clientes por semana */
.cli-sem { table-layout: fixed; width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 11.5px; }
.cli-sem th { position: static; background: none; border: 0; color: var(--faint); font-weight: 600; padding: 2px 4px; text-align: center; }
.cli-sem th.nome-c { text-align: left; width: 38%; }
.cli-sem td { border: 0; border-radius: 6px; padding: 5px 2px; text-align: center; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.cli-sem td.nome-c { text-align: left; font-weight: 550; padding-left: 4px; color: var(--fg); }
.cli-sem td.tot { color: var(--fg); font-weight: 750; }
.cli-sem tr.clicavel:hover td.nome-c { color: var(--accent); text-decoration: underline; }
@media (max-width: 600px) {
  .kpis.compacto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis.compacto .kpi .v { font-size: 17px; }
}

/* ================================================================ v5: Detalhes (tom verde do BI) */
.ltop { display: flex; flex-direction: column; font-size: 12.5px; --c: var(--esmeralda); }
.ltop .lt-cab, .ltop .lt-lin { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 66px; gap: 10px; align-items: center; }
.ltop .nmb { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ltop .lt-cab { font-size: 10.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; padding: 0 4px 6px; border-bottom: 1px solid var(--border); }
.ltop .lt-lin { padding: 6px 4px; border-bottom: 1px solid var(--grid); border-radius: 6px; }
.ltop .lt-lin.clicavel { cursor: pointer; }
.ltop .lt-lin.clicavel:hover { background: var(--hover); }
.ltop .lt-lin.sel { background: var(--esmeralda-soft); }
.ltop .lt-lin.apagado { opacity: .45; }
.ltop .pos { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; background: var(--c); color: #fff; }
.ltop .lt-lin:nth-child(n+5) .pos { background: color-mix(in srgb, var(--c) 18%, var(--panel)); color: var(--c); }
.ltop .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ltop .br { height: 5px; border-radius: 3px; background: var(--grid); overflow: hidden; }
.ltop .br i { display: block; height: 100%; border-radius: 3px; background: var(--c); }
.ltop .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ltop .vl { font-weight: 650; }
.ltop .pt { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.ltop .pt b { font-weight: 600; color: var(--muted); font-size: 11.5px; }
.ltop .pt .var { font-size: 10.5px; }
.ltop .demais { border-bottom: 0; border-top: 1px solid var(--border); margin-top: 2px; color: var(--muted); font-weight: 650; text-transform: uppercase; font-size: 11px; letter-spacing: .03em; }
.chip-top { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 650; padding: 2px 9px; border-radius: 999px; background: var(--esmeralda-soft); color: var(--esmeralda-esc); white-space: nowrap; }

.leg-tab { display: flex; flex-direction: column; font-size: 12.5px; }
.leg-tab .item { display: grid; grid-template-columns: minmax(0, 1fr) auto 52px; gap: 8px; align-items: center; padding: 5px 4px; border-bottom: 1px solid var(--grid); border-radius: 6px; }
.leg-tab .item.clicavel { cursor: pointer; } .leg-tab .item.clicavel:hover { background: var(--hover); }
.leg-tab .item.sel { background: var(--accent-soft); } .leg-tab .item.apagado { opacity: .45; }
.leg-tab .nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leg-tab .valr { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.leg-tab .val { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* concentração: 4 indicadores iguais + 4 destaques iguais, preenchendo o cartão */
.conc2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; flex: 1; }
.conc2 .b { display: flex; flex-direction: column; justify-content: center; gap: 4px; border-radius: 12px; padding: 12px; background: var(--esmeralda-soft); border: 1px solid color-mix(in srgb, var(--esmeralda) 25%, var(--border)); text-align: center; }
.conc2 .b span { font-size: 10.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.conc2 .b b { font-size: clamp(20px, 1.8vw, 28px); color: var(--esmeralda-esc); font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.1; }
.conc2 .b small { color: var(--muted); font-size: 11px; }
.conc2 .b .mini { height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--esmeralda) 18%, var(--panel)); overflow: hidden; margin: 2px 10px 0; }
.conc2 .b .mini i { display: block; height: 100%; background: var(--esmeralda); border-radius: 3px; }
.ins2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; flex: 1; }
.ins2 .x { display: flex; gap: 8px; align-items: flex-start; border-radius: 10px; padding: 9px 10px; font-size: 12px; line-height: 1.35;
  background: color-mix(in srgb, var(--c) 9%, var(--panel)); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--border)); }
.ins2 .x .ico { width: 18px; height: 18px; color: var(--c); margin-top: 1px; }
.ins2 .x b { font-weight: 700; }
.card-cheio { display: flex; flex-direction: column; gap: 10px; }
.card-cheio > .corpo { flex: 1; display: flex; flex-direction: column; gap: 10px; }

.conc2.linha, .ins2.linha { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .conc2.linha, .ins2.linha { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.partes { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; }
.partes i { display: block; height: 100%; }

.btn-conc { display: inline-flex; align-items: center; gap: 6px; }
.btn-conc .ico { width: 16px; height: 16px; color: var(--esmeralda); }
.btn-conc[aria-pressed="true"] { background: var(--esmeralda-soft); border-color: color-mix(in srgb, var(--esmeralda) 45%, var(--border)); color: var(--esmeralda-esc); font-weight: 600; }

/* ================================================================ v6: Perfil */
.ins2.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 0; margin-top: auto; }
.ins2.tres small { font-size: 11px; }
@media (max-width: 760px) { .ins2.tres { grid-template-columns: 1fr; } }
.calor td { padding: 9px 2px; }
.abc-grid { display: grid; grid-template-columns: minmax(170px, .8fr) minmax(0, 2.4fr) minmax(240px, 1.3fr); gap: 16px; align-items: stretch; }
@media (max-width: 1100px) { .abc-grid { grid-template-columns: 1fr; } }
.abc-col { display: flex; flex-direction: column; gap: 8px; }
.abc-col .cl { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 3px; border-radius: 12px; padding: 10px 12px;
  background: color-mix(in srgb, var(--c) 9%, var(--panel)); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--border)); }
.abc-col .cl .t { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.abc-col .cl .letra { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 12px; }
.abc-col .cl .qtdc { font-size: 18px; color: var(--c); font-weight: 750; }
.abc-col .cl small { color: var(--muted); font-size: 11px; }
.abc-col .cl .mini { height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--c) 18%, var(--panel)); overflow: hidden; }
.abc-col .cl .mini i { display: block; height: 100%; background: var(--c); }

.ins2 .x .pilha { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ins2 .x .pilha small { color: var(--muted); font-size: 11px; }
.ins2 .x .pilha b { font-size: 13px; text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calor td { font-size: 11px; }

.kpis.compacto { grid-auto-rows: 1fr; }
.kpis.compacto .kpi { justify-content: center; gap: 4px; }

/* mapa de calor ocupa a altura do cartão (modo turno tem poucas linhas) */
.calor-box { flex: 1; display: flex; flex-direction: column; overflow-x: auto; min-height: 0; }
.calor.esticar { flex: 1; height: 100%; }
.calor.esticar tbody td { height: 44px; }
.calor.compacta td { padding: 3px 2px; height: 24px; font-size: 10.5px; }
.calor.compacta th { padding: 1px 4px; }

/* ============================================================ v7 · Financeiro */
.pos { color: var(--ok); } .neg { color: var(--bad); }
.fin-blocos { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 14px; }
@media (max-width: 1100px) { .fin-blocos { grid-template-columns: 1fr; } }
.fin-bloco { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--c); }
.fb-cab { display: flex; align-items: center; gap: 10px; }
.fb-cab h2 { margin: 0; font-size: 14px; flex: 1; }
.fb-cab .chip-top { white-space: nowrap; }
.fb-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--c) 14%, var(--panel)); color: var(--c); }
.fb-ico .ico { width: 18px; height: 18px; }
.fb-val { display: flex; flex-direction: column; gap: 2px; }
.fb-val small { font-size: 11.5px; color: var(--muted); }
.fb-val b { font-size: clamp(22px, 2.2vw, 28px); font-weight: 750; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.fb-barra { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--panel-2); gap: 2px; }
.fb-barra i { display: block; height: 100%; min-width: 2px; }
.fb-leg { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); margin-top: -4px; }
.fb-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.fb-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.fb-mini { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 7px 9px; border-radius: 10px; min-width: 0;
  background: color-mix(in srgb, var(--c) 8%, var(--panel)); border: 1px solid color-mix(in srgb, var(--c) 22%, var(--border)); font: inherit; color: inherit; }
.fb-mini.clicavel { cursor: pointer; }
.fb-mini.clicavel:hover { background: color-mix(in srgb, var(--c) 15%, var(--panel)); }
.fb-mini .r { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-mini b { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fb-mini small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-linhas { display: flex; flex-direction: column; gap: 2px; }
.fp-lin { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 4px 2px; border-bottom: 1px dashed var(--grid); font-size: 12.5px; }
.fp-lin .l { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fp-lin .r { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-lin .conta { display: flex; gap: 6px; font-size: 11px; font-variant-numeric: tabular-nums; }
.fp-lin .mais { color: var(--ok); } .fp-lin .menos { color: var(--bad); }
.fp-lin b { font-variant-numeric: tabular-nums; font-size: 14px; text-align: right; }
.fp-ciclo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding: 8px 10px; border-radius: 10px; background: var(--panel-2); }
.fp-ciclo div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fp-ciclo small { font-size: 10.5px; color: var(--muted); line-height: 1.2; }
.fp-ciclo b { font-size: 14px; font-variant-numeric: tabular-nums; }
.fx-rod { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 12px; color: var(--muted); margin-top: auto; }
.fx-rod > span { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.fx-rod .ico { width: 14px; height: 14px; color: var(--warn-mark); }
.ag { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ag-topo { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.ag-topo div { display: flex; flex-direction: column; gap: 2px; }
.ag-topo div:last-child { text-align: right; }
.ag-topo small { font-size: 11.5px; color: var(--muted); }
.ag-topo b { font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; }
.ag-barra { display: flex; height: 16px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--panel-2); }
.ag-barra i { display: block; height: 100%; min-width: 3px; }
.ag-lista { display: flex; flex-direction: column; }
.ag-lin { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto 42px; gap: 10px; align-items: center; padding: 8px 6px; border: 0; border-bottom: 1px solid var(--grid);
  background: none; font: inherit; font-size: 12.5px; color: inherit; text-align: left; cursor: pointer; border-radius: 6px; }
.ag-lin:hover:not(:disabled) { background: var(--hover); }
.ag-lin:disabled { opacity: .45; cursor: default; }
.ag-lin.sel { background: var(--esmeralda-soft); }
.ag-lin i { width: 10px; height: 10px; border-radius: 3px; }
.ag-lin .q { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.ag-lin b, .ag-lin .p { font-variant-numeric: tabular-nums; text-align: right; }
.ag-lin .p { color: var(--muted); font-size: 11.5px; }
.ag .nota { margin-top: auto; }
.cartao.cred .ltop { --c: var(--laranja); }
.cartao.cred .ltop .lt-lin.sel { background: color-mix(in srgb, var(--laranja) 14%, var(--panel)); }
.tab-sem-box { max-height: 330px; flex: 1; }
.tab-sem { width: 100%; border-collapse: collapse; font-size: 12px; }
.tab-sem th { position: sticky; top: 0; background: var(--panel); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); text-align: left; padding: 6px 6px; border-bottom: 1px solid var(--border); }
.tab-sem th.num, .tab-sem td.num { text-align: right; font-variant-numeric: tabular-nums; }
.tab-sem td { padding: 6px 6px; border-bottom: 1px solid var(--grid); white-space: nowrap; }
.tab-sem td .pil { margin-left: 6px; font-size: 10.5px; }
.tab-sem tr.vencidos td { background: color-mix(in srgb, var(--bad-mark) 7%, var(--panel)); font-style: italic; color: var(--muted); }
.tab-sem tr.atual td:first-child { font-weight: 650; }
.tab-sem tfoot td { font-weight: 700; border-top: 1px solid var(--border); border-bottom: 0; position: sticky; bottom: 0; background: var(--panel); }
.tit-sits { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 2px 0 8px; }
.tit-sits .chip { margin: 0; }
.fin-tit .mini-txt { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.fin-tit td .pil { font-size: 11px; }
.rodape-fin { margin-top: 14px; }
@media (max-width: 760px) {
  .fb-minis, .fp-ciclo { grid-template-columns: 1fr 1fr; }
}
.fin-tit td:nth-child(2) { min-width: 180px; }
.fb-sem { display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 78px; }
.fb-sem small { font-size: 11px; color: var(--muted); }
.fb-sem-b { flex: 1; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; align-items: stretch; }
.fb-sem-b .c { display: flex; flex-direction: column; gap: 3px; min-width: 0; cursor: default; }
.fb-sem-b .h { flex: 1; display: flex; align-items: flex-end; min-height: 34px; border-bottom: 1px solid var(--base-axis); }
.fb-sem-b .h i { display: block; width: 100%; border-radius: 4px 4px 0 0; }
.fb-sem-b span { font-size: 10px; color: var(--faint); text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.aviso-cob { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 12px; margin: 0 0 12px; border-radius: 10px; font-size: 12.5px;
  background: color-mix(in srgb, var(--warn-mark) 12%, var(--panel)); border: 1px solid color-mix(in srgb, var(--warn-mark) 35%, var(--border)); }
.aviso-cob .ico { width: 16px; height: 16px; color: var(--warn-mark); flex: none; }
.aviso-cob > span:not(.ico) { flex: 1; min-width: 220px; }

/* ============================================================ v8 · Pedidos */
.ped-kpis { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.ped-kg { display: flex; flex-direction: column; gap: 6px; }
.ped-kg > .rot { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.kpi.clicavel { cursor: pointer; }
.kpi.clicavel:hover { filter: brightness(.98); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 30%, transparent); }
.cart-top { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--grid); }
.cart-top > .rot { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); margin-bottom: 2px; }
.ct-lin { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 5px 6px; border: 0; border-radius: 6px;
  background: none; font: inherit; font-size: 12.5px; color: inherit; text-align: left; cursor: pointer; }
.ct-lin:hover { background: var(--hover); }
.ct-lin .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-lin .q { font-size: 11px; color: var(--faint); }
.ct-lin b { font-variant-numeric: tabular-nums; }
.st-lista { display: flex; flex-direction: column; gap: 4px; }
.st-lin { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "n q v" "b b b" "s s s"; gap: 3px 10px; padding: 8px 6px;
  border: 0; border-bottom: 1px solid var(--grid); background: none; font: inherit; font-size: 12.5px; color: inherit; text-align: left; cursor: pointer; border-radius: 6px; }
.st-lin:hover { background: var(--hover); }
.st-lin.sel { background: color-mix(in srgb, var(--violeta) 10%, var(--panel)); }
.st-lin.apagado { opacity: .45; }
.st-lin .st-nome { grid-area: n; display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-lin .st-nome i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.st-lin .q { grid-area: q; font-size: 11px; color: var(--faint); }
.st-lin b { grid-area: v; font-variant-numeric: tabular-nums; text-align: right; }
.st-lin .st-barra { grid-area: b; height: 6px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.st-lin .st-barra i { display: block; height: 100%; border-radius: 999px; }
.st-lin small { grid-area: s; font-size: 11px; color: var(--muted); }
.pil.st { background: color-mix(in srgb, var(--c) 16%, var(--panel)); color: color-mix(in srgb, var(--c) 70%, var(--fg)); }
dialog.ped { width: min(980px, calc(100vw - 24px)); }
dialog.ped .dlg { display: flex; flex-direction: column; gap: 12px; }
dialog.ped .tab-cab h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
dialog.ped .tab-cab h2 small { width: 100%; font-weight: 500; color: var(--muted); }
.pd-grade { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 760px) { .pd-grade { grid-template-columns: 1fr 1fr; } }
.pd-campo { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--panel-2); min-width: 0; }
.pd-campo small { font-size: 11px; color: var(--muted); }
.pd-campo b { font-size: 13px; overflow-wrap: anywhere; }
.pd-h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); margin: 12px 0 6px; }
dialog.ped table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
dialog.ped th { text-align: left; font-size: 11px; color: var(--faint); padding: 6px 8px; border-bottom: 1px solid var(--border); }
dialog.ped td { padding: 6px 8px; border-bottom: 1px solid var(--grid); }
dialog.ped .num { text-align: right; font-variant-numeric: tabular-nums; }
dialog.ped tfoot td { font-weight: 700; border-bottom: 0; }
.ped-tit td:nth-child(2) { min-width: 0; }
.ped-tit td:nth-child(3) { min-width: 200px; }
.ped-tit td .pil { white-space: nowrap; }
/* Pedidos · status e faturamento, pagamento */
.sf { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sf-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sf-tile { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 10px; font: inherit; color: inherit; cursor: pointer;
  background: color-mix(in srgb, var(--c) 9%, var(--panel)); border: 1px solid color-mix(in srgb, var(--c) 28%, var(--border)); border-left: 4px solid var(--c); }
.sf-tile:hover, .sf-tile.sel { background: color-mix(in srgb, var(--c) 16%, var(--panel)); }
.sf-tile small { font-size: 11px; color: var(--muted); }
.sf-tile b { font-size: 18px; font-variant-numeric: tabular-nums; }
.sf-tile span { font-size: 11px; color: var(--muted); }
.sf-rot { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); margin-top: 4px; }
.sf-lista { display: flex; flex-direction: column; }
.sf-lin { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto 36px; gap: 10px; align-items: center; padding: 8px 6px; border: 0; border-bottom: 1px solid var(--grid);
  background: none; font: inherit; font-size: 12.5px; color: inherit; text-align: left; cursor: pointer; border-radius: 6px; }
.sf-lin:hover:not(:disabled) { background: var(--hover); }
.sf-lin:disabled { cursor: default; }
.sf-lin.sel { background: color-mix(in srgb, var(--violeta) 10%, var(--panel)); }
.sf-lin.apagado { opacity: .45; }
.sf-lin > i { width: 10px; height: 10px; border-radius: 3px; }
.sf-lin .n { display: flex; flex-direction: column; min-width: 0; }
.sf-lin .n b { font-weight: 600; overflow-wrap: anywhere; }
.sf-lin .n small { font-size: 11px; color: var(--muted); }
.sf-lin .q { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.sf-lin .v { font-variant-numeric: tabular-nums; }
.sf-lin .p { font-size: 11.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.pg { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pg-lider { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; border-left: 4px solid var(--c);
  background: color-mix(in srgb, var(--c) 9%, var(--panel)); }
.pg-lider small { font-size: 11px; color: var(--muted); }
.pg-lider b { font-size: 16px; overflow-wrap: anywhere; }
.pg-lider span { font-size: 11.5px; color: var(--muted); }
.pg-barra { height: 12px; }
.pg-cab, .pg-lin { display: grid; grid-template-columns: 10px minmax(0, 1fr) 46px 70px 84px; gap: 8px; align-items: center; }
.pg-cab { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); padding: 0 4px 4px; border-bottom: 1px solid var(--border); }
.pg-cab .r, .pg-lin .r { text-align: right; }
.pg-lista { display: flex; flex-direction: column; }
.pg-lin { padding: 7px 4px; border-bottom: 1px solid var(--grid); font-size: 12.5px; }
.pg-lin > i { width: 10px; height: 10px; border-radius: 3px; }
.pg-lin .n { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pg-lin .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-lin .bar { height: 4px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.pg-lin .bar i { display: block; height: 100%; border-radius: 999px; }
.pg-lin .q { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pg-lin .r b { display: block; font-variant-numeric: tabular-nums; }
.pg-lin .r small { font-size: 10.5px; color: var(--muted); }
.aviso-banco { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px max(16px, 2.2vw) 0; padding: 10px 14px; border-radius: 10px; font-size: 13px;
  background: color-mix(in srgb, var(--bad-mark) 10%, var(--panel)); border: 1px solid color-mix(in srgb, var(--bad-mark) 35%, var(--border)); }
.aviso-banco > .ico { width: 18px; height: 18px; color: var(--bad); flex: none; }
.aviso-banco > div { flex: 1; min-width: 240px; }
.btn-link { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--panel); color: var(--muted); border-radius: 999px;
  padding: 5px 11px; font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.btn-link:hover { color: var(--fg); background: var(--hover); }
.btn-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .btn-link span { display: none; } .btn-link { padding: 6px; } }
.hist-cel, .dados-cel { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.dados-cel { align-items: flex-end; font-size: 12px; color: var(--muted); }
.dados-cel b { color: var(--fg); font-variant-numeric: tabular-nums; }
.sub-adm { margin: 0; font-size: 14px; }
/* celular: valores dos cartões sem cortar */
@media (max-width: 560px) {
  .kpis.k3 .kpi .v, .kpis.k4 .kpi .v, .kpi .v { font-size: clamp(15px, 4.6vw, 19px); letter-spacing: -.02em; }
  .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 10px 11px; }
}
@media (max-width: 370px) { .kpis.k3 .kpi .v, .kpis.k4 .kpi .v, .kpi .v { font-size: 14px; } }

/* ============================================================ v9 · Início */
#pg-inicio { display: flex; flex-direction: column; gap: 14px; }
#pg-inicio > .grade { margin: 0; }
.ini-h2 { margin: 8px 0 0; font-size: 15px; }
.heroi { position: relative; overflow: hidden; border-radius: 18px; padding: 22px 24px 18px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #1fb37f 0%, rgba(31,179,127,0) 55%), linear-gradient(135deg, #0b5d52 0%, #0f6e8c 55%, #1f4fa8 100%);
  box-shadow: 0 10px 30px rgba(13, 94, 82, .25); }
:root[data-theme="dark"] .heroi { background: radial-gradient(120% 140% at 100% 0%, #18946a 0%, rgba(24,148,106,0) 55%), linear-gradient(135deg, #0a3f39 0%, #0c4a60 55%, #173a7a 100%); }
.heroi::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.06); pointer-events: none; }
.heroi-topo { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: flex-start; justify-content: space-between; }
.heroi h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.heroi p { margin: 3px 0 0; color: rgba(255,255,255,.82); font-size: 13px; }
.heroi p b { color: #fff; }
.btn-heroi { border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.14); color: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.btn-heroi:hover { background: rgba(255,255,255,.24); }
.heroi-corpo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: end; margin-top: 16px; position: relative; z-index: 1; }
@media (max-width: 900px) { .heroi-corpo { grid-template-columns: 1fr; } }
.heroi-num .rot { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.75); font-weight: 700; }
.heroi-num .grande { display: block; font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.heroi .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-h { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); }
.chip-h.up { background: rgba(120, 255, 190, .2); }
.chip-h.down { background: rgba(255, 120, 120, .25); }
.ritmo-h { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.ritmo-trilho { position: relative; height: 10px; border-radius: 999px; background: rgba(255,255,255,.18); }
.ritmo-trilho .feito { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #b9f5dc, #fff); }
.ritmo-trilho .marca { position: absolute; top: -4px; width: 3px; height: 18px; border-radius: 2px; background: #ffd27a; transform: translateX(-1px); }
.ritmo-leg { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; font-size: 12px; color: rgba(255,255,255,.85); }
.ritmo-leg b { color: #fff; }
.heroi-graf { min-height: 150px; }
.heroi-leg { display: flex; gap: 14px; font-size: 11.5px; color: rgba(255,255,255,.85); margin-top: 2px; }
.heroi-leg i { display: inline-block; width: 16px; height: 0; border-top: 2.6px solid #fff; vertical-align: 3px; margin-right: 6px; }
.heroi-leg i.l0 { border-top: 2px dashed rgba(255,255,255,.7); }
.ini-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .ini-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ini-kpi { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 13px 14px 0; border-radius: var(--r); overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, var(--panel)), var(--panel)); border: 1px solid color-mix(in srgb, var(--c) 22%, var(--border)); box-shadow: var(--sh); }
.ik-topo { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.ik-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, var(--panel)); color: var(--c); }
.ik-ico .ico { width: 15px; height: 15px; }
.ini-kpi .v { font-size: clamp(19px, 1.7vw, 25px); font-weight: 750; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ini-kpi .d { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: 18px; }
.ik-spark { margin: 4px -14px 0; height: 42px; }
.dest-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .dest-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dest-grade { grid-template-columns: 1fr; } }
.dest { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: 12px; font: inherit; color: inherit;
  background: color-mix(in srgb, var(--c) 6%, var(--panel)); border: 1px solid color-mix(in srgb, var(--c) 22%, var(--border)); }
.dest.clicavel { cursor: pointer; }
.dest.clicavel:hover { background: color-mix(in srgb, var(--c) 12%, var(--panel)); transform: translateY(-1px); }
.dest-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--c); color: #fff; }
.dest-ico .ico { width: 18px; height: 18px; }
.dest-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dest-txt .rot { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c); }
.dest-txt .tit { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dest-txt .val { font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.dest-txt small { font-size: 11.5px; color: var(--muted); }
.hj-grade { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .hj-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hj-grade { grid-template-columns: 1fr; } }
.hj { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px 14px; border-radius: 12px; font: inherit; color: inherit; cursor: pointer;
  background: var(--panel); border: 1px solid var(--border); border-top: 3px solid var(--c); }
.hj:hover { background: var(--hover); }
.hj-topo { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.hj-topo .rot { flex: 1; }
.hj-topo .seta { color: var(--faint); }
.hj-ico { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, var(--panel)); color: var(--c); }
.hj-ico .ico { width: 14px; height: 14px; }
.hj .v { font-size: 21px; font-weight: 750; font-variant-numeric: tabular-nums; }
.hj small { font-size: 11.5px; color: var(--muted); }
.hj-barra { height: 5px; border-radius: 999px; background: var(--panel-2); overflow: hidden; margin-top: 4px; }
.hj-barra i { display: block; height: 100%; background: var(--c); border-radius: 999px; }
.vazio-hj { justify-content: flex-start; }
.cal-heat { display: grid; grid-template-columns: 30px repeat(20, minmax(0, 1fr)); gap: 4px; align-items: center; }
.cal-heat .mes { font-size: 10.5px; color: var(--faint); height: 14px; white-space: nowrap; }
.cal-heat .dia { font-size: 10.5px; color: var(--faint); }
.cal-heat i { display: block; aspect-ratio: 1; border-radius: 4px; background: var(--panel-2); max-height: 26px; }
.cal-heat i.zero { background: var(--panel-2); }
.cal-heat i.fut { background: transparent; border: 1px dashed var(--grid); }
.cal-heat i:not(.fut):hover { outline: 2px solid var(--fg); outline-offset: 1px; }
.heat-leg { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 11px; color: var(--faint); margin-top: auto; }
.heat-leg i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.heroi .chip-h, .heroi .chip-h.up, .heroi .chip-h.down { color: #fff; }
.fil-extra { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--grid); }
.fil-extra .rot { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }
.fil-partes { height: 12px; }
.fil-ritmos { display: flex; flex-direction: column; gap: 4px; }
.fr-lin { display: grid; grid-template-columns: minmax(70px, 120px) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 12px; }
.fr-nome { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.fr-spark { height: auto; min-height: 30px; }
.fr-tk { font-size: 11px; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cal-sem { display: grid; grid-template-columns: 30px repeat(20, minmax(0, 1fr)); gap: 4px; align-items: end; height: 54px; margin-top: 6px; }
.cal-sem .dia { font-size: 10.5px; color: var(--faint); align-self: end; }
.cs-col { height: 100%; display: flex; align-items: flex-end; }
.cs-col i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--esmeralda) 55%, var(--panel)); }
.cs-col.forte i { background: var(--laranja); }
.cs-col.parcial i { opacity: .45; }
.heat-rod { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 14px; margin-top: auto; }
.heat-rod .nota { margin: 0; }
.heat-rod .heat-leg { margin-top: 0; }

/* ============================================================ v10 · dica e ajuda */
.tip { min-width: 230px; max-width: 360px; padding: 0 !important; overflow: hidden; border-radius: 12px !important; box-shadow: 0 14px 34px rgba(0,0,0,.2) !important; font-size: 12.5px; }
.tip .h { margin: 0 !important; padding: 10px 14px 8px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--tc) 7%, var(--panel)); }
.tip .h > span { display: block; font-weight: 750; color: color-mix(in srgb, var(--tc) 80%, var(--fg)); font-size: 13px; line-height: 1.3; }
.tip .h small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; margin-top: 2px; }
.tip .ls { padding: 4px 14px 6px; }
.tip .l { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 4px 0; border-bottom: 1px dotted var(--grid); color: var(--muted); }
.tip .l:last-child { border-bottom: 0; }
.tip .l b { color: var(--fg); font-weight: 650; text-align: right; display: inline-flex; gap: 4px; align-items: baseline; flex-wrap: wrap; justify-content: flex-end; }
.tip .l.dest b { font-size: 13.5px; }
.tip .l .var { font-size: 11.5px; }
.tip hr { border: 0; border-top: 1px solid var(--border); margin: 3px 0; }
.tip .sec { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); padding: 6px 0 2px; }
.tip .n { margin: 0 !important; padding: 7px 14px 8px; border-top: 1px solid var(--border); background: var(--panel-2); color: var(--muted); font-size: 11px; display: flex; flex-direction: column; gap: 2px; }
.tip .n .rec { color: var(--faint); }
.tip .n .rec b { color: var(--muted); font-weight: 650; }
.btn-q { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); background: var(--panel); color: var(--muted); font: inherit; font-size: 12px; font-weight: 700;
  cursor: pointer; display: inline-grid; place-items: center; padding: 0; flex: none; }
.btn-q:hover { color: var(--accent); border-color: var(--accent); }
.cartao-cab .acoes-linha:empty { display: none; }
dialog.ajuda { width: min(980px, calc(100vw - 24px)); height: min(86vh, 760px); padding: 0; display: flex; flex-direction: column; }
dialog.ajuda:not([open]) { display: none; }
.aj-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.aj-cab h2 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.aj-q { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-fg); font-weight: 800; }
.aj-meio { flex: 1; display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 0; }
.aj-nav { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-right: 1px solid var(--border); background: var(--panel-2); overflow: auto; }
.aj-nav button { text-align: left; border: 0; background: none; font: inherit; font-size: 13px; padding: 7px 10px; border-radius: 8px; color: var(--muted); cursor: pointer; }
.aj-nav button:hover { background: var(--hover); color: var(--fg); }
.aj-nav button.on { background: var(--panel); color: var(--accent); font-weight: 650; box-shadow: var(--sh); }
.aj-corpo { overflow: auto; padding: 8px 24px 40px; scroll-behavior: smooth; }
.aj-sec { padding: 14px 0 8px; border-bottom: 1px solid var(--grid); }
.aj-sec h3 { margin: 0 0 8px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.aj-emo { font-size: 17px; }
.aj-sec p, .aj-sec li { font-size: 13.5px; line-height: 1.55; color: var(--fg); }
.aj-sec p { margin: 6px 0; }
.aj-sec ul { margin: 6px 0; padding-left: 20px; }
.aj-formula { margin: 8px 0; padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 8%, var(--panel)); border-left: 3px solid var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--fg); }
.aj-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 650; background: color-mix(in srgb, var(--c) 16%, var(--panel)); color: color-mix(in srgb, var(--c) 75%, var(--fg)); }
.aj-dica { margin: 8px 0; padding: 8px 12px; border-radius: 8px; background: var(--panel-2); font-size: 12.5px; color: var(--muted); }
@media (max-width: 760px) {
  .aj-meio { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .aj-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); padding: 8px; }
  .aj-nav button { white-space: nowrap; }
  .aj-corpo { padding: 4px 16px 30px; }
}

/* ============================================================ v11 · Detalhes (placar, ritmo, ponte) */
.placar { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(250px, 1.05fr) minmax(0, 1.25fr) minmax(0, 1.45fr); gap: 22px; align-items: stretch;
  padding: 18px 20px; margin-bottom: 14px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--esmeralda) 28%, var(--border));
  background: radial-gradient(90% 140% at 0% 0%, color-mix(in srgb, var(--esmeralda) 16%, var(--panel)) 0%, var(--panel) 62%); box-shadow: var(--sh); }
.placar.desce { border-color: color-mix(in srgb, var(--vermelho) 26%, var(--border));
  background: radial-gradient(90% 140% at 0% 0%, color-mix(in srgb, var(--vermelho) 10%, var(--panel)) 0%, var(--panel) 62%); }
.placar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--esmeralda), var(--ciano)); }
.placar.desce::before { background: linear-gradient(180deg, var(--vermelho), var(--laranja)); }
.pl-num { display: flex; flex-direction: column; gap: 6px; justify-content: center; min-width: 0; }
.pl-num .rot { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pl-num .grande { font-size: clamp(28px, 2.9vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--esmeralda-esc); }
.placar.desce .pl-num .grande { color: var(--fg); }
.pl-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pl-chip { font-size: 12.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.pl-chip.up { background: color-mix(in srgb, var(--ok-mark) 16%, var(--panel)); color: var(--ok); }
.pl-chip.down { background: color-mix(in srgb, var(--bad-mark) 14%, var(--panel)); color: var(--bad); }
.pl-dif { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.pl-sub { font-size: 11.5px; color: var(--faint); }
.pl-meio { display: flex; flex-direction: column; gap: 6px; min-width: 0; justify-content: flex-end; }
.pl-leg { display: flex; gap: 14px; font-size: 11px; color: var(--muted); }
.pl-leg i { display: inline-block; width: 16px; height: 0; vertical-align: 3px; margin-right: 5px; }
.pl-leg i.l1 { border-top: 2.6px solid var(--esmeralda); }
.pl-leg i.l0 { border-top: 2px dashed var(--muted); }
.pl-graf { min-height: 120px; }
.pl-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-content: center; }
.pl-st { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--c) 7%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--c) 18%, var(--border)); min-width: 0; }
.pl-st .r { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-st b { font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-st .v { font-size: 11px; min-height: 15px; }
@media (max-width: 1280px) { .placar { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } .pl-grade { grid-column: 1 / -1; grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 900px) { .placar { grid-template-columns: 1fr; } .pl-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pl-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } .placar { padding: 14px 14px 14px 18px; } }

.ritmo { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.rt-it { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-right: 1px solid var(--border); position: relative; min-width: 0; }
.rt-it:last-child { border-right: 0; }
.rt-it::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); opacity: .85; }
.rt-it .r { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-it b { font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt-it .s { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-it.var b { color: var(--c); }
.rt-it.proj { background: color-mix(in srgb, var(--c) 7%, var(--panel)); }
.rt-it.proj b { color: var(--c); }
@media (max-width: 760px) { .ritmo { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rt-it { border-bottom: 1px solid var(--border); } .rt-it.proj { grid-column: 1 / -1; } }

.pg-lin.clicavel { cursor: pointer; border-radius: 6px; }
.pg-lin.clicavel:hover { background: var(--hover); }
.pg-lin.sel { background: color-mix(in srgb, var(--laranja) 10%, var(--panel)); }
.pg-lin.apagado { opacity: .45; }
.pg-lin .tk { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.pg-lin .tkb { width: 100%; height: 3px; border-radius: 999px; background: var(--panel-2); overflow: hidden; display: flex; justify-content: flex-end; }
.pg-lin .tkb i { display: block; height: 100%; background: var(--violeta); opacity: .7; border-radius: 999px; }

.pt { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, 1fr); gap: 18px; align-items: start; flex: 1; }
.pt-graf { min-height: 290px; }
.pt-lado { display: flex; flex-direction: column; gap: 12px; }
.pt-bloco { display: flex; flex-direction: column; gap: 2px; }
.pt-rot { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 0 4px; }
.pt-rot.up { color: var(--ok); } .pt-rot.down { color: var(--bad); }
.pt-lin { display: grid; grid-template-columns: minmax(0, 1fr) 60px 74px; gap: 8px; align-items: center; padding: 5px 6px; border: 0; background: none; font: inherit; color: inherit;
  text-align: left; border-radius: 6px; cursor: pointer; font-size: 12.5px; }
.pt-lin:hover { background: var(--hover); }
.pt-lin.sel { background: var(--accent-soft); }
.pt-lin .nm { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pt-lin .nm .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-lin .bar { height: 6px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.pt-lin.alta .bar i { display: block; height: 100%; background: var(--esmeralda); border-radius: 999px; }
.pt-lin.queda .bar { display: flex; justify-content: flex-end; }
.pt-lin.queda .bar i { display: block; height: 100%; background: var(--vermelho); border-radius: 999px; }
.pt-lin b { text-align: right; font-variant-numeric: tabular-nums; }
.pt-lin.alta b { color: var(--ok); } .pt-lin.queda b { color: var(--bad); }
.pt-tag { flex: none; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 999px; }
.pt-tag.novo { background: color-mix(in srgb, var(--azul) 14%, var(--panel)); color: var(--azul); }
.pt-tag.perd { background: color-mix(in srgb, var(--bad-mark) 14%, var(--panel)); color: var(--bad); }
@media (max-width: 1100px) { .pt { grid-template-columns: 1fr; } }

.fs { display: flex; flex-direction: column; }
.fs-lin { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(70px, 1fr) auto; gap: 12px; align-items: center; padding: 9px 6px; border: 0; border-bottom: 1px solid var(--grid);
  background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 6px; }
.fs-lin:hover { background: var(--hover); }
.fs-lin.sel { background: color-mix(in srgb, var(--c) 10%, var(--panel)); }
.fs-lin.apagado { opacity: .45; }
.fs-nm { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fs-nm .bar { height: 5px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.fs-nm .bar i { display: block; height: 100%; background: var(--c); border-radius: 999px; }
.fs-g { height: 34px; min-width: 0; }
.fs-v { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.fs-v b { font-variant-numeric: tabular-nums; font-size: 13.5px; }
.fs-v span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.pg-det .pg-cab, .pg-det .pg-lin { grid-template-columns: 10px minmax(0, 1fr) 40px 64px 80px; }
.pg-det .pg-lin .nm { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
.fs-g { height: var(--hs, 34px); }
.pt-lin { grid-template-columns: minmax(0, 1fr) 40px 70px; }
.pl-chip.neutro { background: var(--panel-2); color: var(--muted); }
@media (min-width: 1281px) {
  .c6 .ltop .lt-cab, .c6 .ltop .lt-lin { grid-template-columns: 22px minmax(0, 1fr) auto 128px; }
  .c6 .ltop .pt { flex-direction: row; justify-content: flex-end; align-items: baseline; gap: 8px; }
  .c6 .ltop .lt-lin { padding: 8px 4px; }
}
.pt-lin { grid-template-columns: minmax(0, 1fr) 44px 86px; }
.pt-tag.fil { background: var(--panel-2); color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 700; }
.fs-lin { grid-template-columns: minmax(0, 1.1fr) minmax(70px, 1fr) 104px; }
.pt-graf { min-height: 280px; }
.fs-box { flex: 1; display: flex; flex-direction: column; }
.fs-box .fs { flex: 1; }
.fs-box .fs-lin { flex: 1 1 auto; max-height: 120px; }
.pl-eixo { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); margin-top: -2px; }
.pl-eixo .m { font-style: italic; }
.pl-graf { min-height: 112px; }

/* ============================================================ v12 · tabela compacta (Detalhes) */
.tab-compacta .rolagem { max-height: 25rem; border-top: 0; }
table.compacta { font-size: 12.5px; }
table.compacta th { background: var(--panel-2); border-bottom: 0; }
table.compacta th button { padding: 7px 10px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }
table.compacta th:first-child { border-radius: 8px 0 0 8px; } table.compacta th:last-child { border-radius: 0 8px 8px 0; }
table.compacta th[aria-sort="descending"] button, table.compacta th[aria-sort="ascending"] button { color: var(--fg); }
table.compacta td { padding: 5px 10px; vertical-align: middle; white-space: nowrap; }
table.compacta tbody tr:hover td { background: color-mix(in srgb, var(--c, var(--accent)) 6%, var(--panel)); }
table.compacta tbody tr.sel td { background: color-mix(in srgb, var(--c, var(--accent)) 12%, var(--panel)); }
table.compacta th.rk, table.compacta td.rk { width: 30px; padding-right: 0; text-align: center; }
table.compacta th.rk span { font-size: 10.5px; color: var(--faint); font-weight: 700; padding: 0 6px; }
table.compacta td.rk span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px; font-size: 10.5px; font-weight: 700;
  background: color-mix(in srgb, var(--c, var(--accent)) 14%, var(--panel)); color: color-mix(in srgb, var(--c, var(--accent)) 75%, var(--fg)); }
table.compacta tbody tr:nth-child(-n+3) td.rk span { background: var(--c, var(--accent)); color: #fff; }
table.compacta td.nome-t { max-width: 0; width: 38%; overflow: hidden; text-overflow: ellipsis; }
table.compacta td.nome-t .sub-i { margin-left: 8px; font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .02em; }
table.compacta td.barra { position: relative; min-width: 120px; padding-bottom: 10px; font-weight: 650; }
table.compacta td.barra i { top: auto; bottom: 2px; right: 10px; height: 3px; opacity: .75; background: var(--c, var(--accent)); border-radius: 999px; max-width: calc(100% - 20px); }
table.compacta td.part { color: var(--muted); font-size: 11.5px; }
table.compacta .pil { font-size: 10.5px; padding: 1px 7px; }
table.compacta .ult { display: inline-flex; align-items: center; gap: 6px; }
table.compacta .ult .dt { color: var(--muted); font-size: 11.5px; }
table.compacta tfoot td { background: var(--panel-2); padding: 7px 10px; white-space: nowrap; }
.tab-compacta .tab-cab .seg { margin-right: 4px; }
@media (max-width: 640px) { table.compacta td.nome-t { width: auto; max-width: 170px; } table.compacta td.nome-t .sub-i { display: none; } }

/* ============================================================ v13 · Início (equilíbrio) */
.ev-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.ev-st { display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; border-right: 1px solid var(--border); position: relative; min-width: 0; }
.ev-st:last-child { border-right: 0; }
.ev-st::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); opacity: .85; }
.ev-st .r { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-st b { font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-st .s { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .ev-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ev-st:nth-child(2) { border-right: 0; } .ev-st:nth-child(-n+2) { border-bottom: 1px solid var(--border); } }
.ev-graf { flex: 1; min-height: 220px; }

/* mapa de calor ocupa a altura do quadro */
.cal-heat { flex: 1; grid-template-rows: 14px repeat(7, minmax(16px, 1fr)); align-items: stretch; }
.cal-heat .dia { align-self: center; }
.cal-heat i { aspect-ratio: auto; max-height: 28px; min-height: 16px; height: 100%; }

/* listas de ranking: em quadros largos, participação e variação na mesma linha */
.ltop { container-type: inline-size; }
@container (min-width: 400px) {
  .lt-cab, .lt-lin { grid-template-columns: 22px minmax(0, 1fr) auto 118px !important; }
  .lt-lin .pt { flex-direction: row !important; justify-content: flex-end; align-items: baseline; gap: 8px; }
}

/* ============================================================ v14 · Pulso e Dia da semana */
.pulso-graf { flex: 1; min-height: 240px; }
.pl-leg2 i.pil-a, .pl-leg2 i.pil-b, .pl-leg2 i.pil-c { width: 8px !important; height: 14px !important; border-radius: 999px !important; }
.pl-leg2 i.pil-a { background: linear-gradient(180deg, var(--azul), var(--violeta)); }
.pl-leg2 i.pil-b { background: linear-gradient(180deg, color-mix(in srgb, var(--azul) 42%, var(--panel)), color-mix(in srgb, var(--violeta) 30%, var(--panel))); }
.pl-leg2 i.pil-c { background: linear-gradient(180deg, var(--esmeralda), var(--ciano)); }

.tr-box { flex: 1; display: flex; min-height: 240px; }
.trilhos { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: stretch; padding-top: 4px; }
.tr-col { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; cursor: default; }
.tr-trilho { position: relative; flex: 1; width: 100%; max-width: 58px; min-height: 150px; border-radius: 999px; overflow: hidden;
  background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--violeta) 7%, var(--panel)) 0 6px, color-mix(in srgb, var(--violeta) 11%, var(--panel)) 6px 7px); }
.tr-fill { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 999px; display: flex; justify-content: center; padding-top: 12px; min-height: 34px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--violeta) 70%, #fff) 0%, var(--violeta) 100%);
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--violeta) 60%, transparent); transition: height .5s ease; }
.tr-col.sel .tr-fill { background: linear-gradient(180deg, #ffb36b 0%, var(--laranja) 100%); box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--laranja) 70%, transparent); }
.tr-col.fraco .tr-fill { background: linear-gradient(180deg, color-mix(in srgb, var(--violeta) 35%, var(--panel)) 0%, color-mix(in srgb, var(--violeta) 55%, var(--panel)) 100%); box-shadow: none; }
.tr-val { font-size: 10px; font-weight: 800; color: #fff; letter-spacing: .02em; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.18); }
.tr-col.fraco .tr-val { color: var(--fg); text-shadow: none; }
.tr-nada { position: absolute; inset: 0; display: grid; place-items: center; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10.5px; color: var(--faint); }
.tr-rot { font-size: 12px; margin-top: 4px; }
.tr-col.sel .tr-rot { color: var(--laranja); }
.tr-sub { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; color: var(--muted); background: var(--panel-2); white-space: nowrap; }
.tr-sub.up { color: var(--ok); background: color-mix(in srgb, var(--ok-mark) 12%, var(--panel)); }
.tr-sub.down { color: var(--bad); background: color-mix(in srgb, var(--bad-mark) 10%, var(--panel)); }
.tr-col:hover .tr-trilho { outline: 2px solid color-mix(in srgb, var(--violeta) 35%, transparent); outline-offset: 2px; }
@media (max-width: 520px) { .trilhos { gap: 5px; } .tr-sub { padding: 1px 3px; font-size: 9.5px; } }
@media (max-width: 420px) { .tr-val { font-size: 8.5px; } }

/* ============================================================ v15 · Evolução mensal, Semana forte, cartões do Resumo */
.ev-leg i.pil-n, .ev-leg i.pil-b, .ev-leg i.pil-s, .ev-leg i.pil-p { width: 9px !important; height: 13px !important; border-radius: 4px 4px 2px 2px !important; }
.ev-leg i.pil-n { background: linear-gradient(180deg, var(--azul), color-mix(in srgb, var(--azul) 55%, var(--violeta))); }
.ev-leg i.pil-b { background: linear-gradient(180deg, var(--esmeralda), color-mix(in srgb, var(--esmeralda) 50%, var(--ciano))); }
.ev-leg i.pil-s { background: linear-gradient(180deg, color-mix(in srgb, var(--laranja) 85%, #fff), var(--laranja)); }
.ev-leg i.pil-p { background: transparent; border: 1.4px dashed var(--laranja); }

/* Semana forte: pílulas sobre trilho */
.semanas.sem2 { gap: 6px; }
.sem2 .sem { align-items: center; gap: 5px; }
.sem2 .sem .val { font-size: 12.5px; }
.sem2 .sem .tubo { width: 100%; max-width: 54px; height: 140px; border-radius: 999px; border: 0; overflow: hidden;
  background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--violeta) 7%, var(--panel)) 0 6px, color-mix(in srgb, var(--violeta) 11%, var(--panel)) 6px 7px); }
.sem2 .sem .enche { border-radius: 999px; display: flex; align-items: flex-start; justify-content: center; padding-top: 9px; min-height: 30px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--violeta) 68%, #fff) 0%, var(--violeta) 100%); box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--violeta) 60%, transparent); }
.sem2 .sem.melhor .enche { background: linear-gradient(180deg, color-mix(in srgb, var(--esmeralda) 70%, #fff) 0%, var(--esmeralda) 100%); box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--esmeralda) 65%, transparent); }
.sem2 .sem.parcial .enche { background: linear-gradient(180deg, color-mix(in srgb, var(--violeta) 40%, var(--panel)) 0%, color-mix(in srgb, var(--violeta) 70%, var(--panel)) 100%); }
.sem2 .sem .pct { position: static; font-size: 10.5px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.sem2 .sem .coroa { top: 8px; width: 16px; height: 16px; color: #fff; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); z-index: 1; }
.sem2 .sem.melhor .enche { padding-top: 28px; }
.sem2 .sem.futura .tubo { background: transparent; border: 1.5px dashed var(--border); }
.sem2 .sem.futura { opacity: .7; }
.sem2 .sem[aria-pressed="true"] .tubo { outline: 2px solid var(--violeta); outline-offset: 2px; }
.sem2 .sem:not(:disabled):hover .tubo { outline: 2px solid color-mix(in srgb, var(--violeta) 35%, transparent); outline-offset: 2px; }
.sem2 .sv { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; white-space: nowrap; min-height: 17px; }
.sem2 .sv.up { color: var(--ok); background: color-mix(in srgb, var(--ok-mark) 12%, var(--panel)); }
.sem2 .sv.down { color: var(--bad); background: color-mix(in srgb, var(--bad-mark) 10%, var(--panel)); }
.sem2 .sv.parc { color: var(--muted); background: var(--panel-2); font-weight: 600; }
.sem2 .sv.vazio { background: none; }

/* cartões do Resumo: cor pelo objetivo e números maiores */
.kpi.solido.grupo { --c2: var(--c); position: relative; justify-content: center; gap: 6px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--c) 94%, #fff) 0%, color-mix(in srgb, var(--c2) 78%, #000) 100%);
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--c) 55%, transparent); }
:root[data-theme="dark"] .kpi.solido.grupo { background: linear-gradient(140deg, color-mix(in srgb, var(--c) 62%, #000), color-mix(in srgb, var(--c2) 40%, #000)); }
.kpi.solido.grupo::after { content: ""; position: absolute; right: -26px; bottom: -36px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.kpi-grupo { position: absolute; top: 9px; right: 10px; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.16); padding: 2px 7px; border-radius: 999px; }
.res-kpis.kpis.compacto .kpi.solido .v { font-size: clamp(19px, 1.85vw, 31px); line-height: 1.1; letter-spacing: -.02em; }
.res-kpis.kpis.compacto .kpi .t { font-size: 12.5px; font-weight: 650; }
.res-kpis.kpis.compacto .kpi .topo-k { padding-right: 82px; }
.res-kpis.kpis.compacto .kpi .d { font-size: 11.5px; }
.res-kpis.kpis.compacto .kpi .topo-k .ico { width: 26px; height: 26px; padding: 5px; }
@media (max-width: 1500px) { .res-kpis .kpi-grupo { display: none; } .res-kpis.kpis.compacto .kpi .topo-k { padding-right: 0; } }
.res-grupos { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.res-grupos span { display: inline-flex; align-items: center; gap: 6px; }
.res-grupos span.neg { text-transform: none; font-weight: 500; letter-spacing: 0; color: var(--faint); }
.res-grupos i { width: 12px; height: 12px; border-radius: 4px; }
.res-kpis.kpis.compacto .kpi .d { white-space: nowrap; }
.ritmo-graf { flex: 1; min-height: 300px; }
