/* ATLAS Growth — tokens do Design System (ATLAS_DESIGN_SYSTEM.md) e componentes base.
   Layout: sidebar escura fixa + área de trabalho clara; no celular vira navegação inferior. */
/* Poppins servida pelo próprio ATLAS (sem pedir nada à internet). Fonte: @fontsource/poppins 5.2.7, licença SIL OFL 1.1 (wwwroot/fonts/OFL.txt). */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/poppins-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/poppins-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/poppins-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/poppins-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #F3F5F9; --surface: #FFFFFF; --surface-2: #F7F9FC; --line: #E0E5EC; --line-2: #C8D0DC;
  --ink: #282A3C; --ink-2: #464C60; --muted: #677084;
  --brand: #0069AD; --brand-ink: #0069AD; --brand-2: #0094D4; --brand-3: #00A7F1; --brand-soft: #E5F0F9;
  --amber: #FFC107; --amber-soft: #FFF4D1; --amber-ink: #7A5200;
  --good: #1E7F4F; --good-soft: #E2F3E9; --bad: #B42318; --bad-soft: #FCEBE9;
  --side: #1E2638; --side-ink: #C5CEDD; --side-mute: #8C97AB; --side-hover: #2A3449;
  --shadow: 0 1px 2px rgba(30,38,56,.06), 0 6px 20px rgba(30,38,56,.07);
  --chart-pos: #0069AD; --chart-neg: #D9480F; --grid: #E5E9EF;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10131A; --surface: #191D27; --surface-2: #1F2431; --line: #2A303E; --line-2: #3A4254;
    --ink: #E8EBF2; --ink-2: #C2C8D4; --muted: #98A1B3;
    --brand: #1A74B5; --brand-ink: #62B6F2; --brand-2: #2FA5E0; --brand-soft: #163049;
    --amber-soft: #3A3013; --amber-ink: #FFD666;
    --good: #4CC38A; --good-soft: #14301F; --bad: #F97066; --bad-soft: #3A1B19;
    --side: #0B0E14; --side-ink: #B3BDCD; --side-mute: #76829A; --side-hover: #1A2030;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.35);
    --chart-pos: #2B86C8; --chart-neg: #D9611F; --grid: #283040;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-ink); }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand-3); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Estrutura */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100%; }
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; padding: 18px 12px; gap: 4px; position: sticky; top: 0; height: 100vh; }
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; }
.logo small { display: block; font-weight: 500; font-size: 11px; color: var(--side-mute); letter-spacing: .6px; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--side-ink); text-decoration: none; font-weight: 500; }
.nav:hover { background: var(--side-hover); }
.nav[aria-current="page"] { background: var(--brand); color: #fff; }
.nav svg { width: 18px; height: 18px; flex: none; }
.side .who { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--side-hover); font-size: 12.5px; color: var(--side-mute); display: flex; flex-direction: column; gap: 6px; }
.side .who b { color: var(--side-ink); font-weight: 600; }
.side .who a, .side .who button { color: var(--side-ink); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; text-decoration: underline; font-size: 12.5px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 24px; }
.top h1 { font-size: 18px; font-weight: 600; margin-right: auto; }
.top label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.view { padding: 20px 24px 96px; display: flex; flex-direction: column; gap: 18px; min-width: 0; max-width: 1400px; }
.bnav { display: none; }

/* Controles */
.sel, .inp { border: 1px solid var(--line-2); background: var(--surface); border-radius: 8px; padding: 7px 10px; min-height: 38px; max-width: 100%; }
textarea.inp { min-height: 76px; width: 100%; resize: vertical; }
.inp[aria-invalid="true"], .sel[aria-invalid="true"] { border-color: var(--bad); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); padding: 7px 14px; min-height: 38px; cursor: pointer; font-weight: 500; white-space: nowrap; text-decoration: none; color: var(--ink); }
.btn:hover { border-color: var(--brand-2); }
.btn.pri { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.pri:hover { filter: brightness(1.08); }
.btn.dan { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.btn.dan.solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--brand-ink); }
.btn.sm { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* Formulários */
.fg { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fg > span:first-child { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.fg .inp, .fg .sel { width: 100%; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fgrid .full { grid-column: 1 / -1; }
.req { color: var(--bad); }
.field-error, .err { color: var(--bad); font-size: 12.5px; }
.help { color: var(--muted); font-size: 12.5px; }
.chk { display: flex; gap: 8px; align-items: flex-start; }
.chk input { margin-top: 3px; }
.search-select { margin-bottom: 6px; }
.qrbox { align-self: flex-start; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; line-height: 0; }
.qrbox .qr { display: block; max-width: 100%; height: auto; }
.code { font-family: ui-monospace, Consolas, monospace; font-size: 15px; letter-spacing: 1px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; word-break: break-all; user-select: all; }

/* Superfícies */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0; }
.card h2 { font-size: 15px; font-weight: 600; }
.card .hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sub, .muted { color: var(--muted); }
.sub, .small { font-size: 12.5px; }
.lbl { font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 600; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: flex-start; }
.kpi .v { font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi .v.nd { font-size: 16px; color: var(--muted); font-weight: 500; }
.kpi .d { font-size: 12px; color: var(--muted); }

/* Selos */
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 99px; padding: 1px 9px; font-size: 11.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.p-ok { background: var(--good-soft); color: var(--good); }
.p-warn { background: var(--amber-soft); color: var(--amber-ink); }
.p-bad { background: var(--bad-soft); color: var(--bad); }
.p-info { background: var(--brand-soft); color: var(--brand-ink); }
.p-mute { background: var(--surface-2); color: var(--muted); border-color: var(--line); }

/* Tabelas */
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
tr.inactive td { color: var(--muted); }
.pager { display: flex; align-items: center; gap: 10px; justify-content: flex-end; font-size: 13px; color: var(--muted); }

/* Avisos */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 8px; font-size: 13px; }
.alert .x { flex: 1; }
.alert.warn { background: var(--amber-soft); color: var(--amber-ink); }
.alert.info { background: var(--brand-soft); color: var(--brand-ink); }
.alert.bad { background: var(--bad-soft); color: var(--bad); }
.alert.ok { background: var(--good-soft); color: var(--good); }
.alert ul { margin: 0; padding-left: 18px; }
.empty { padding: 28px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.empty b { color: var(--ink); font-weight: 600; font-size: 15px; }

/* Skeleton (carregamento) */
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; border-radius: 6px; min-height: 14px; }
@media (prefers-reduced-motion: no-preference) { .skeleton { animation: sk 1.2s linear infinite; } }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Diálogo e drawer */
dialog { border: 0; padding: 0; border-radius: 14px; box-shadow: var(--shadow); background: var(--surface); color: var(--ink); width: min(520px, calc(100% - 32px)); }
dialog::backdrop { background: rgba(10,14,22,.45); }
dialog .dh, .drw .dh { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
dialog .dh h2, .drw .dh h2 { font-size: 16px; font-weight: 600; flex: 1; }
dialog .db, .drw .db { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
dialog .df, .drw .df { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
dialog.drw { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(480px, 100%); border-radius: 0; display: none; flex-direction: column; }
dialog.drw[open] { display: flex; }
dialog.drw .db { overflow: auto; flex: 1; }
.close { border: 0; background: none; cursor: pointer; font-size: 22px; line-height: 1; color: var(--muted); padding: 0 4px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 10px; z-index: 95; box-shadow: var(--shadow); font-size: 13.5px; max-width: calc(100% - 32px); }

/* Login */
.auth { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.auth .box { width: min(400px, 100%); display: flex; flex-direction: column; gap: 18px; }
.auth .logo { color: var(--ink); justify-content: center; padding: 0; }
.auth .logo small { color: var(--muted); }

@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .top { padding: 10px 16px; }
  .view { padding: 16px 16px 110px; }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--side); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); justify-content: space-around; }
  .bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--side-ink); font-size: 10.5px; padding: 4px 0; text-decoration: none; }
  .bnav a[aria-current="page"] { color: #fff; }
  .bnav svg { width: 20px; height: 20px; }
}
@media (max-width: 640px) {
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .top h1 { font-size: 16px; width: 100%; }
}
.navlist { display: flex; flex-direction: column; gap: 2px; }
.card-title { font-size: 18px; font-weight: 600; }
.validation-summary-valid { display: none; }
.alert.validation-summary-errors ul { margin: 0; padding-left: 18px; }
/* O ASP.NET gera um <li style="display:none"> vazio que a CSP bloqueia: esconder pelo CSS. */
.validation-summary-errors li:empty { display: none; }
a.card { color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--brand-2); }

/* Utilitários */
.minw0 { min-width: 0; }
.mt8 { margin-top: 8px; }
.mb6 { margin-bottom: 6px; }
.strong { font-weight: 600; }
.pre { white-space: pre-wrap; }
.warn-text { color: var(--amber-ink); }
.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sel.sm { min-height: 32px; padding: 4px 8px; font-size: 13px; }

/* Ficha */
.fhd { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.title-lg { font-size: 21px; font-weight: 600; }
.facts { display: flex; gap: 6px 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 4px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs.flat { border-bottom: 0; }
.tab { border: 0; background: none; padding: 10px 14px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; }
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { color: var(--brand-ink); border-bottom-color: var(--brand-ink); }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kv > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.kv .v { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* Linha do tempo */
.tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tl .it { display: grid; grid-template-columns: 116px 14px minmax(0, 1fr); gap: 10px; padding: 8px 0; }
.tl .dt { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.tl .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--brand-2); }
.tl .dot.c { background: var(--good); }
.tl .dot.x { background: var(--bad); }
.tl .dot.s { background: var(--amber); }

/* Kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(236px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 240px; }
.col.over { border-color: var(--brand-2); background: var(--brand-soft); }
.col h3 { font-size: 13px; font-weight: 600; display: flex; gap: 6px; align-items: baseline; }
.col h3 .muted { font-weight: 500; font-size: 12px; }
.col .sum { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: -6px; }
.kc { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 5px; }
.kc[draggable="true"] { cursor: grab; }
.kc:hover { border-color: var(--brand-2); }
.kc.dragging { opacity: .5; }
.kc .o { font-weight: 600; font-size: 13px; line-height: 1.3; color: var(--ink); text-decoration: none; }
.kc .o:hover { color: var(--brand-ink); text-decoration: underline; }
.kc .tt { font-size: 12.5px; color: var(--ink-2); }
.kc .ln { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.kc .move { margin-top: 4px; }
.kc .move .sel { flex: 1; min-width: 0; }
.js .kc .move [data-move-submit] { display: none; }
.av { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-size: 10.5px; font-weight: 700; flex: none; }

@media (max-width: 960px) { .kv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 640px) {
  .kanban { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); }
  .col { min-height: 0; }
  .tl .it { grid-template-columns: 84px 12px minmax(0, 1fr); }
}
.mobile-only { display: none; }
@media (max-width: 640px) { .desk-only { display: none; } .mobile-only { display: inline; } }

/* Atividades */
.card.list { padding: 4px 16px; }
.act { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.act:last-child { border-bottom: 0; }
.act .t { font-weight: 500; }
.act .meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.tipo { font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--brand-ink); background: var(--brand-soft); border-radius: 6px; padding: 2px 7px; flex: none; margin-top: 2px; }
.down { color: var(--bad); }
.up { color: var(--good); }
fieldset.sec { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 12px; margin: 0; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); }
fieldset.sec legend { padding: 0 4px; }
.next { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
textarea.inp.tall { min-height: 180px; }
.nav .cnt { margin-left: auto; background: var(--bad); color: #fff; font-size: 11px; border-radius: 99px; padding: 0 7px; font-weight: 600; }
.kc .ln.down, .act .meta .down { color: var(--bad); }

/* Contratos */
.mrrline { display: grid; grid-template-columns: repeat(12, minmax(78px, 1fr)); gap: 4px; overflow-x: auto; }
.mrrline div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 6px; font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.mrrline div b { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
dialog.drw.wide { width: min(760px, 100%); }
.item-row { padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.item-row:last-of-type { border-bottom: 0; }
details summary { cursor: pointer; color: var(--brand-ink); }

/* Indicadores */
.eq { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.eq span:not(.pill) { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; }
.eq span small { display: block; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.eq i { font-style: normal; color: var(--muted); font-weight: 600; }
a[aria-current="page"] { font-weight: 600; text-decoration: none; }

/* Gráficos (SVG desenhado no servidor) */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart text.val, .chart text.strong { fill: var(--ink); font-weight: 600; }
.chart .gl { stroke: var(--grid); stroke-width: 1; }
.chart .axis { stroke: var(--line-2); }
.chart .bar rect { fill: var(--chart-pos); opacity: .5; }
.chart .bar.sel rect, .chart .bar:hover rect { opacity: 1; }
.chart rect.pos { fill: var(--chart-pos); }
.chart rect.neg { fill: var(--chart-neg); }
.kpis.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1200px) { .kpis.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kpis.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
td.r, th.r { white-space: nowrap; }

/* Importação */
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 6px 12px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); }
.step b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--ink-2); font-size: 11px; }
.step.on { color: var(--brand-ink); border-color: var(--brand-2); background: var(--brand-soft); }
.step.on b { background: var(--brand); color: #fff; }
.step.ok b { background: var(--good); color: #fff; }
.counts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.counts div { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--surface); }
.counts b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.card.narrow { max-width: 720px; }
@media (max-width: 640px) { .counts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
