/* Painel Regulatório Vet */
:root {
  color-scheme: light;
  --page: #f6f6f3;
  --surface-1: #fcfcfb;
  --surface-2: #f0efec;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --text-muted: #6f6d68;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);
  --tooltip-bg: #ffffff;
  --accent: #1c5cab;
  --accent-ink: #ffffff;
  --accent-soft: #e6effb;
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100;
  --series-5: #e87ba4; --series-6: #008300; --series-7: #6250d6; --series-8: #e34948;
  --seq-250: #b7d3f6;
  --good: #0ca30c; --good-text: #006300; --warning: #fab219; --critical: #d03b3b;
  --up: #006300; --down: #b42f2f;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #0d0d0d; --surface-1: #1a1a19; --surface-2: #242422;
    --text-primary: #f0efec; --text-secondary: #c3c2b7; --text-muted: #9a988f;
    --grid: #2c2c2a; --axis: #383835; --border: rgba(255, 255, 255, 0.10); --tooltip-bg: #242422;
    --accent: #5598e7; --accent-ink: #0b0b0b; --accent-soft: #1c2a3d;
    --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
    --series-5: #d55181; --series-6: #008300; --series-7: #9085e9; --series-8: #e66767;
    --seq-250: #184f95;
    --good-text: #0ca30c; --up: #0ca30c; --down: #e66767;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d; --surface-1: #1a1a19; --surface-2: #242422;
  --text-primary: #f0efec; --text-secondary: #c3c2b7; --text-muted: #9a988f;
  --grid: #2c2c2a; --axis: #383835; --border: rgba(255, 255, 255, 0.10); --tooltip-bg: #242422;
  --accent: #5598e7; --accent-ink: #0b0b0b; --accent-soft: #1c2a3d;
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
  --series-5: #d55181; --series-6: #008300; --series-7: #9085e9; --series-8: #e66767;
  --seq-250: #184f95;
  --good-text: #0ca30c; --up: #0ca30c; --down: #e66767;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text-primary); font: 15px/1.5 var(--font); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
small { color: var(--text-muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }

/* topo */
.topo { background: var(--surface-1); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.topo-in { max-width: 1320px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 24px; min-height: 56px; flex-wrap: wrap; }
.marca { font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.marca:hover { text-decoration: none; }
.marca-sinal { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); box-shadow: 6px 6px 0 -2px var(--series-3); }
.menu { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.menu a { color: var(--text-secondary); padding: 17px 10px 15px; border-bottom: 2px solid transparent; white-space: nowrap; font-size: 14px; }
.menu a:hover { color: var(--text-primary); text-decoration: none; }
.menu a.ativo { color: var(--text-primary); border-bottom-color: var(--accent); font-weight: 600; }
.menu .cad { font-size: 8px; color: var(--text-muted); vertical-align: middle; }
.conta { display: flex; align-items: center; gap: 12px; font-size: 14px; white-space: nowrap; }
.quem { color: var(--text-secondary); }

/* página */
.pagina { max-width: 1320px; margin: 0 auto; padding: 24px 16px 48px; }
.titulo { margin-bottom: 16px; }
.titulo h1 { font-size: 24px; }
.sub { color: var(--text-secondary); margin: 6px 0 0; max-width: 80ch; }
.rodape { max-width: 1320px; margin: 0 auto; padding: 16px 16px 32px; color: var(--text-muted); font-size: 12px; border-top: 1px solid var(--border); }

.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; min-width: 0; }
.card h2 { font-size: 15px; font-weight: 650; }
.card h3 { font-size: 14px; font-weight: 600; margin: 12px 0 8px; }
.card-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.card-topo h2 select { font: inherit; font-weight: 650; width: auto; display: inline-block; padding: 2px 6px; margin: 0 2px; }
.estreito { max-width: 460px; }
.nota { color: var(--text-muted); font-size: 13px; margin: 4px 0 10px; }
.vazio { color: var(--text-muted); font-size: 14px; }

.grade-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grade-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grade-2.larga-esq { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.grade-2 > .card, .grade-3 > .card { margin-bottom: 0; }
.grade-2 > div, .grade-3 > div { min-width: 0; }
.grade-2, .grade-3 { margin-bottom: 16px; }
.grade-2.sem-margem { margin-bottom: 0; }
.grade-2 > div > .card:last-child { margin-bottom: 0; }
@media (max-width: 960px) { .grade-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .grade-2, .grade-3, .grade-2.larga-esq { grid-template-columns: 1fr; } }

/* filtros */
.filtros { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; }
.filtros label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--text-muted); min-width: 150px; flex: 1 1 150px; max-width: 240px; }
.filtros select, .filtros input, .form input, .form textarea, .busca input, .form-linha input, .card-topo select {
  font: inherit; font-size: 14px; color: var(--text-primary); background: var(--surface-1);
  border: 1px solid var(--axis); border-radius: 6px; padding: 6px 8px; width: 100%; min-width: 0;
}
.filtros-acoes { display: flex; gap: 12px; align-items: center; font-size: 13px; padding-bottom: 4px; }
select:focus, input:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.btn, .btn-sm { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer; }
.btn { padding: 9px 16px; }
.btn-sm { padding: 6px 12px; font-size: 13px; white-space: nowrap; }
.btn:hover, .btn-sm:hover { filter: brightness(1.08); text-decoration: none; }
.btn-sm.sec { background: transparent; color: var(--accent); border: 1px solid var(--axis); }
.lnk { background: none; border: 0; color: var(--accent); font: inherit; font-size: 13px; cursor: pointer; padding: 0; }

.abas { display: inline-flex; background: var(--surface-2); border-radius: 8px; padding: 3px; gap: 2px; }
.abas a { padding: 5px 12px; border-radius: 6px; font-size: 13px; color: var(--text-secondary); }
.abas a.ativo { background: var(--surface-1); color: var(--text-primary); font-weight: 600; box-shadow: 0 0 0 1px var(--border); }
.abas a:hover { text-decoration: none; }
.abas-solo { margin-bottom: 16px; }

/* avisos e tags */
.aviso { border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; border: 1px solid var(--border); background: var(--surface-1); }
.aviso-ok { border-left: 4px solid var(--good); }
.aviso-info { border-left: 4px solid var(--accent); }
.aviso-erro { border-left: 4px solid var(--critical); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; }
.tag-up { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good-text); }
.tag-down { background: color-mix(in srgb, var(--critical) 14%, transparent); color: var(--down); }
.pill { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 99px; background: var(--surface-2); color: var(--text-secondary); margin: 2px 0; }
.sit { font-size: 12px; white-space: nowrap; }
.sit::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.sit.ok::before { background: var(--good); }
.sit.warn::before { background: var(--warning); }
.sit.crit::before { background: var(--critical); }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
@media (max-width: 760px) { .kpis { grid-template-columns: 1fr 1fr; } }
.kpi { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.kpi-rot { font-size: 13px; color: var(--text-secondary); }
.kpi-val { font-size: 30px; font-weight: 650; letter-spacing: -0.01em; margin: 2px 0; }
.kpi-delta { font-size: 12px; font-weight: 600; }
.kpi-delta span { font-weight: 400; color: var(--text-muted); }
.kpi-delta.up { color: var(--up); } .kpi-delta.down { color: var(--down); } .kpi-delta.eq { color: var(--text-muted); font-weight: 400; }
.mov { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* gráficos */
.grafico { margin: 0 0 16px; }
.grafico figcaption { margin-bottom: 10px; }
.grafico figcaption p { margin: 3px 0 0; color: var(--text-muted); font-size: 13px; }
.grafico-area { position: relative; width: 100%; }
.tabela-dados { margin-top: 10px; font-size: 13px; }
.tabela-dados summary { cursor: pointer; color: var(--text-muted); }
.tabela-dados table { margin-top: 8px; max-height: 260px; display: block; overflow: auto; }

/* ranking (barras horizontais) */
.ranking ol { list-style: none; margin: 10px 0 0; padding: 0; }
.ranking li { display: grid; grid-template-columns: minmax(0, 42%) 1fr auto; gap: 10px; align-items: center; padding: 3px 0; font-size: 13px; }
.ranking li a, .ranking .r-rot { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); }
.ranking li a:hover { color: var(--accent); }
.r-bar { height: 10px; background: transparent; position: relative; }
.r-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--series-1); border-radius: 0 4px 4px 0; }
.ranking li:hover .r-bar i { filter: brightness(1.1); }
.r-num { font-variant-numeric: tabular-nums; color: var(--text-secondary); min-width: 3ch; text-align: right; }

/* tabelas */
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { text-align: left; font-weight: 600; color: var(--text-secondary); border-bottom: 1px solid var(--axis); padding: 7px 8px; white-space: nowrap; background: var(--surface-1); position: sticky; top: 0; z-index: 1; }
td { border-bottom: 1px solid var(--grid); padding: 7px 8px; vertical-align: top; }
tr:hover td { background: color-mix(in srgb, var(--accent) 5%, transparent); }
tr.sel td { background: var(--accent-soft); }
td.lista { max-width: 260px; color: var(--text-secondary); }
td.delta.up { color: var(--up); font-weight: 600; } td.delta.down { color: var(--down); font-weight: 600; }
.tabela-rolagem { overflow: auto; max-height: 640px; border: 1px solid var(--grid); border-radius: 8px; }
.tabela-rolagem.curta { max-height: 380px; }
.tabela-rolagem.media { max-height: 520px; }
.tabela-rolagem table { border: 0; }
.lista-prod td { min-width: 80px; }
.matriz th.m, .matriz td.m { text-align: center; padding: 7px 3px; font-weight: 500; font-size: 11px; }
.matriz td:first-child { min-width: 220px; }
.pt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.pt.sim { background: var(--series-1); }
.pt.nao { border: 1.5px solid var(--axis); }

.paginas { display: flex; gap: 16px; align-items: center; justify-content: flex-end; margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.busca { display: flex; gap: 6px; flex: 1; max-width: 420px; }

/* formulários */
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-secondary); }
.form .btn { align-self: flex-start; }
.form-linha { display: flex; gap: 6px; flex-wrap: wrap; }
.form-linha input { width: auto; flex: 1 1 140px; }
.hp { position: absolute; left: -9999px; }
.pedido { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--grid); flex-wrap: wrap; }

@media (max-width: 600px) {
  .topo-in { gap: 8px 16px; padding-top: 8px; }
  .menu { order: 3; flex-basis: 100%; }
  .menu a { padding: 8px 10px 10px; }
  .filtros label { max-width: none; flex-basis: 45%; min-width: 0; }
  .ranking li { grid-template-columns: minmax(0, 48%) 1fr auto; }
  .kpi-val { font-size: 24px; }
}
@media (forced-colors: active) { .r-bar i, .pt.sim { background: CanvasText; } }

/* análise concorrencial */
.filtros label.largo { flex: 3 1 360px; max-width: 560px; }
.tag-crit { background: color-mix(in srgb, var(--critical) 14%, transparent); color: var(--down); }
.tag-warn { background: color-mix(in srgb, var(--warning) 22%, transparent); color: var(--text-primary); }
.tag-neutro { background: var(--surface-2); color: var(--text-secondary); font-weight: 500; }
.mini-bar { display: inline-block; width: 48px; height: 6px; background: var(--surface-2); border-radius: 3px; vertical-align: middle; margin-right: 4px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--series-1); }
.passos { margin: 8px 0 0; padding-left: 20px; font-size: 14px; color: var(--text-secondary); }
.passos li { margin-bottom: 8px; }
mark { background: color-mix(in srgb, var(--warning) 35%, transparent); color: inherit; padding: 0 2px; border-radius: 2px; }
.filtros select { max-width: 100%; }
@media (max-width: 600px) { .filtros label.largo { flex-basis: 100%; max-width: 100%; } }
.abas { flex-wrap: wrap; max-width: 100%; }
@media (max-width: 760px) { .card > table { display: block; overflow-x: auto; } }

/* menu "Mais" */
.mais { position: relative; }
.mais summary { list-style: none; cursor: pointer; color: var(--text-secondary); padding: 17px 10px 15px; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.mais summary::-webkit-details-marker { display: none; }
.mais summary::after { content: " ▾"; font-size: 11px; }
.mais.ativo summary { color: var(--text-primary); border-bottom-color: var(--accent); font-weight: 600; }
.mais-lista { position: absolute; right: 0; top: 100%; background: var(--surface-1); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px; min-width: 220px; z-index: 20; display: flex; flex-direction: column; }
.mais-lista a { padding: 8px 10px !important; border: 0 !important; border-radius: 6px; }
.mais-lista a:hover { background: var(--surface-2); }
.mais-lista a.ativo { background: var(--accent-soft); }
.menu { overflow: visible; }
.lk { color: inherit; } .lk:hover { color: var(--accent); }
.muted { color: var(--text-muted); }
.seguir { margin-left: 8px; }
.antes { color: var(--text-muted); text-decoration: line-through; }
.seta { color: var(--text-muted); padding: 0 4px; }
.titulo-acoes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 600px) { .menu { overflow-x: auto; } .mais-lista { position: fixed; right: 16px; top: 100px; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 99px; background: var(--surface-1); border: 1px solid var(--border); color: var(--text-secondary); font-size: 13px; }
.chip strong { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.chip:hover { text-decoration: none; border-color: var(--axis); }
.chip.ativo { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip.ativo strong { color: var(--accent-ink); }
.ficha { display: grid; grid-template-columns: minmax(120px, 30%) 1fr; gap: 8px 16px; margin: 10px 0 12px; font-size: 14px; }
.ficha dt { color: var(--text-muted); font-size: 13px; }
.ficha dd { margin: 0; }
.linha-tempo { display: flex; flex-wrap: wrap; gap: 10px 4px; margin-top: 10px; }
.linha-tempo span { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 42px; }
.linha-tempo small { font-size: 10px; }
.hist { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; }
.hist li { padding: 7px 0; border-bottom: 1px solid var(--grid); }
.h-quando { display: inline-block; min-width: 48px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
code { font-size: 12px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.lk { text-decoration: underline dotted; text-decoration-color: var(--axis); text-underline-offset: 3px; }
.lk:hover { text-decoration-color: var(--accent); }
.seguir .btn-sm { padding: 3px 9px; font-size: 12px; }
.titulo-acoes .seguir { margin-left: 4px; }

/* mapa de calor (rampa sequencial azul) */
:root { --hm-1:#cde2fb; --hm-2:#9ec5f4; --hm-3:#6da7ec; --hm-4:#3987e5; --hm-5:#256abf; --hm-6:#184f95; --hm-7:#0d366b; --hm-ink-claro:#0b0b0b; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) { --hm-1:#1c2a3d; --hm-2:#184f95; --hm-3:#1c5cab; --hm-4:#2a78d6; --hm-5:#5598e7; --hm-6:#86b6ef; --hm-7:#b7d3f6; --hm-ink-claro:#f0efec; } }
:root[data-theme="dark"] { --hm-1:#1c2a3d; --hm-2:#184f95; --hm-3:#1c5cab; --hm-4:#2a78d6; --hm-5:#5598e7; --hm-6:#86b6ef; --hm-7:#b7d3f6; --hm-ink-claro:#f0efec; }
.heatmap { border-collapse: separate; border-spacing: 2px; }
.heatmap th { position: static; background: none; border: 0; font-size: 11px; font-weight: 500; white-space: nowrap; padding: 4px; }
.heatmap thead th { vertical-align: bottom; height: 120px; }
.heatmap thead th span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); }
.heatmap tbody th { text-align: right; color: var(--text-secondary); }
.heatmap td { text-align: center; padding: 0; min-width: 52px; height: 32px; border: 0; border-radius: 4px; font-variant-numeric: tabular-nums; font-size: 12px; }
.heatmap td a { display: block; line-height: 32px; color: inherit; }
.heatmap td a:hover { text-decoration: none; outline: 2px solid var(--text-primary); border-radius: 4px; }
.heatmap tr:hover td { background-clip: padding-box; }
.hm-0 { background: var(--surface-2); color: var(--text-muted); }
.hm-1, .hm-2, .hm-3 { color: var(--hm-ink-claro); }
.hm-4, .hm-5, .hm-6, .hm-7 { color: #fff; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .hm-5, :root:where(:not([data-theme="light"])) .hm-6, :root:where(:not([data-theme="light"])) .hm-7 { color: #0b0b0b; } }
td.hm-1, i.hm-1 { background: var(--hm-1); } td.hm-2, i.hm-2 { background: var(--hm-2); } td.hm-3, i.hm-3 { background: var(--hm-3); }
td.hm-4, i.hm-4 { background: var(--hm-4); } td.hm-5, i.hm-5 { background: var(--hm-5); } td.hm-6, i.hm-6 { background: var(--hm-6); } td.hm-7, i.hm-7 { background: var(--hm-7); }
.legenda-seq { display: flex; align-items: center; gap: 2px; font-size: 12px; color: var(--text-muted); }
.legenda-seq i { width: 18px; height: 10px; border-radius: 2px; display: inline-block; }
.legenda-seq span { margin: 0 4px; }
.chips .sep { width: 1px; background: var(--axis); margin: 0 4px; }
.lista-check { max-height: 320px; overflow: auto; border: 1px solid var(--grid); border-radius: 8px; padding: 6px 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 12px; }
.lista-check label, .form label.check { flex-direction: row !important; align-items: center; gap: 6px; font-size: 13px; color: var(--text-primary); }
.lista-check input, .form label.check input { width: auto; }
.botoes { display: flex; flex-wrap: wrap; gap: 8px; }
.matriz-p thead th { height: 140px; }
.matriz-p tbody th { max-width: 320px; overflow: hidden; text-overflow: ellipsis; text-align: left; position: sticky; left: 0; background: var(--surface-1); z-index: 1; }
.matriz-p th.canto { vertical-align: bottom; text-align: left; font-weight: 600; color: var(--text-secondary); white-space: normal; min-width: 160px; }
.matriz-p td.tot { background: var(--surface-2); font-weight: 600; }
.matriz-p tfoot th, .matriz-p tfoot td { border-top: 1px solid var(--axis); }
.matriz-p td { min-width: 44px; }
.filtros .par { display: flex; gap: 4px; }
.tipos-ev { flex-basis: 100%; border: 1px solid var(--grid); border-radius: 8px; padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; }
.tipos-ev legend { font-size: 12px; color: var(--text-muted); padding: 0 4px; }
.tipos-ev label.check { flex-direction: row; flex: 0 0 auto; min-width: 0; max-width: none; align-items: center; gap: 4px; color: var(--text-primary); font-size: 13px; }
.tipos-ev input { width: auto; }

/* impressão / PDF */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  :root { --page: #fff; --surface-1: #fff; }
  body { background: #fff; font-size: 11px; }
  .topo, .filtros, .nao-imprimir, .rodape, .seguir, .tabela-dados summary { display: none !important; }
  .pagina { padding: 0; max-width: none; }
  .card, .kpi { border: 1px solid #ddd; box-shadow: none; padding: 10px 12px; margin-bottom: 10px; }
  .kpi, tr, .card h2 { break-inside: avoid; }
  .card h2 { break-after: avoid; }
  .kpis { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .kpi-val { font-size: 20px; }
  .grade-2 { grid-template-columns: 1fr 1fr; gap: 10px; }
  table { font-size: 10px; } td, th { padding: 4px 6px; }
  th { position: static; }
  .tabela-rolagem { max-height: none !important; overflow: visible; border: 0; }
  a { color: inherit; text-decoration: none; }
  .tag { border: 1px solid #ccc; }
}
