/* Resolvo — painel */
:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #142033;
  --ink-soft: #4b5a70;
  --muted: #6b7a90;
  --line: #e2e7ee;
  --line-strong: #c9d2de;
  --brand: #1f3a5f;
  --brand-ink: #ffffff;
  --accent: #2563eb;
  --accent-soft: #e8efff;
  --ok: #16794a;
  --ok-soft: #e4f6ec;
  --warn: #9a5b00;
  --warn-soft: #fff4dd;
  --bad: #b42318;
  --bad-soft: #fde8e6;
  --focus: 0 0 0 3px rgba(37, 99, 235, 0.35);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 32, 51, 0.06), 0 2px 8px rgba(20, 32, 51, 0.04);
  --nav-w: 248px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1520;
    --surface: #152030;
    --surface-2: #1a2738;
    --ink: #e8eef6;
    --ink-soft: #b8c4d4;
    --muted: #8b99ad;
    --line: #26354a;
    --line-strong: #34465f;
    --brand: #22405f;
    --accent: #6c9cff;
    --accent-soft: #1c2c4a;
    --ok: #4ccb8a;
    --ok-soft: #12321f;
    --warn: #f0b44c;
    --warn-soft: #382a10;
    --bad: #ff7b6e;
    --bad-soft: #3a1714;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6rem; }
h2 { font-size: 1.05rem; }
h3 { font-size: 0.95rem; color: var(--ink-soft); }
p { margin: 0 0 0.75rem; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
code.block { display: block; padding: 0.6rem 0.75rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); word-break: break-all; margin-bottom: 0.6rem; }
pre { overflow: auto; font-size: 0.8rem; background: var(--surface-2); padding: 0.75rem; border-radius: var(--radius-sm); }
.pre-wrap { white-space: pre-wrap; background: none; padding: 0.35rem 0 0; margin: 0; font-family: inherit; font-size: 0.88rem; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.lead { color: var(--ink-soft); max-width: 70ch; }
[hidden] { display: none !important; }

.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ── Botões e campos ───────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 40px; padding: 0 0.95rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.btn:hover { background: var(--surface-2); }
.btn:focus-visible, .input:focus-visible, .tab:focus-visible, .nav__link:focus-visible, .order:focus-visible { outline: none; box-shadow: var(--focus); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent); filter: brightness(1.07); }
.btn--danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn--danger-ghost { color: var(--bad); border-color: transparent; background: transparent; }
.btn--danger-ghost:hover { background: var(--bad-soft); }
.btn--small { min-height: 32px; padding: 0 0.7rem; font-size: 0.88rem; }
.btn--icon { padding: 0; width: 40px; }
.btn--icon.btn--small { width: 32px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.is-busy { position: relative; color: transparent !important; }
.btn.is-busy::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--line-strong); border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.input {
  width: 100%; min-height: 40px; padding: 0.45rem 0.7rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: inherit;
}
.input:disabled { background: var(--surface-2); color: var(--ink-soft); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.45; }
.input--short { max-width: 7rem; }
.input--auto { width: auto; }
.field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.9rem; min-width: 0; }
.field__label { font-weight: 600; font-size: 0.9rem; }
.field__hint { color: var(--muted); font-size: 0.82rem; }
.field--end { justify-content: flex-end; align-items: flex-start; }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.75rem 0.9rem 0; margin: 0 0 1rem; min-width: 0; }
.fieldset legend { font-weight: 600; font-size: 0.9rem; padding: 0 0.3rem; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.toggle { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 0.9rem; cursor: pointer; }
.toggle input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.toggle b { display: block; }
.toggle__hint { display: block; color: var(--muted); font-size: 0.85rem; }

/* ── Moldura ───────────────────────────── */
.shell { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); min-height: 100vh; }
.nav {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 1rem;
  padding: 1rem 0.75rem; background: var(--brand); color: var(--brand-ink); overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 0.6rem; padding: 0.25rem 0.5rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand__mark {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: #fff; color: var(--brand); font-weight: 900; position: relative;
}
.brand__mark::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: #3ccf91; border: 2px solid var(--brand); }
.brand--big { justify-content: center; font-size: 1.4rem; color: var(--ink); margin-bottom: 1rem; }
.brand--big .brand__mark { background: var(--brand); color: #fff; width: 40px; height: 40px; }
.brand--big .brand__mark::after { border-color: var(--surface); }
.company { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.7rem; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.08); }
.company__label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; }
.company__name { font-weight: 700; }
.company__select { width: 100%; background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 6px; padding: 0.35rem; font: inherit; font-weight: 700; }
.company__select option { color: #111; }
.company__role { font-size: 0.8rem; opacity: 0.75; }
.nav__links { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav__foot { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 0.6rem; }
.nav__link {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.6rem 0.7rem; border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.86); text-decoration: none; font-weight: 600; background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; text-align: left;
}
.nav__link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav__link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav__link.is-active { background: rgba(255, 255, 255, 0.16); color: #fff; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1.5rem; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__title { font-size: 1.25rem; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
.topbar__menu { display: none; }
.view { padding: 1.25rem 1.5rem 3rem; width: 100%; }
.scrim { display: none; }
.banner { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; padding: 0.7rem 1.5rem; }
.banner span { flex: 1; min-width: 14rem; }
.banner--warn { background: var(--warn-soft); color: var(--warn); }
body.is-local .main::before { content: "Ambiente local (dados de demonstração)"; display: block; text-align: center; font-size: 0.78rem; padding: 0.2rem; background: var(--accent-soft); color: var(--accent); }

/* ── Cartões, listas, tabelas ──────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1rem; box-shadow: var(--shadow); min-width: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.cards .card { margin: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grid2 .card { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 1rem; }
.card .actions { margin-bottom: 0; }
.actions--sticky { position: sticky; bottom: 0; padding: 0.75rem 0; background: linear-gradient(transparent, var(--bg) 35%); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.35rem 1rem; margin: 0 0 0.75rem; }
.kv dt { color: var(--muted); font-size: 0.88rem; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.linkline { display: flex; align-items: center; gap: 0.35rem; }
.linkline code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.table-wrap { overflow-x: auto; }
.table-wrap--tall { max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 0.5rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.table td { padding: 0.5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.table--form td { padding: 0.3rem; }
.table tr.is-warn td { background: var(--warn-soft); }
.list { list-style: none; margin: 0 0 0.6rem; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 0.5rem; }
.grouprow { display: grid; grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 1.6fr) 32px; gap: 0.5rem; align-items: center; }
.paygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 1rem; }

.chip { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line); white-space: nowrap; }
.chip .icon { width: 14px; height: 14px; }
.chip--ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip--warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip--bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip--muted { color: var(--muted); }
.badge { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 6px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--ink-soft); }
.badge--awaiting_review { background: var(--accent-soft); color: var(--accent); }
.badge--pending, .badge--processing, .badge--received { background: var(--warn-soft); color: var(--warn); }
.badge--retry_pending { background: var(--warn-soft); color: var(--warn); }
.badge--completed { background: var(--ok-soft); color: var(--ok); }
.badge--failed { background: var(--bad-soft); color: var(--bad); }
.badge--discarded { background: var(--surface-2); color: var(--muted); text-decoration: line-through; }
.note { padding: 0.65rem 0.8rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 0.75rem; font-size: 0.92rem; }
.note--ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.note--warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.note--bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.note .btn { margin: 0.25rem 0.25rem 0 0; }
.empty { padding: 2rem 1rem; text-align: center; color: var(--muted); }
.empty--center { max-width: 34rem; margin: 3rem auto; color: var(--ink); }
.skeleton { display: flex; flex-direction: column; gap: 0.7rem; }
.skeleton__line { height: 54px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Pedidos ───────────────────────────── */
.toolbar { display: flex; gap: 0.6rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 14rem; }
.search .icon { position: absolute; left: 0.7rem; top: 11px; color: var(--muted); }
.search .input { padding-left: 2.2rem; }
.tabs { display: flex; gap: 0.25rem; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 0.9rem; scrollbar-width: none; }
.tab { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.6rem 0.8rem; border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.tab__count { min-width: 1.4rem; padding: 0 0.35rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.75rem; line-height: 1.4rem; text-align: center; }
.tab--alert .tab__count { background: var(--bad); }
.orders { display: flex; flex-direction: column; gap: 0.6rem; }
.order {
  display: flex; gap: 1rem; padding: 0.85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: inherit; text-decoration: none; box-shadow: var(--shadow); transition: border-color 0.12s;
}
.order:hover { border-color: var(--line-strong); }
.order--issue { border-left: 4px solid var(--bad); }
.order__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.order__line { display: flex; gap: 0.6rem; align-items: center; justify-content: space-between; }
.order__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
.order__items { color: var(--ink-soft); }
.order__meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; align-items: center; color: var(--muted); font-size: 0.83rem; }
.order__error { color: var(--bad); font-size: 0.85rem; }
.order__side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; text-align: right; }
.order__total { font-size: 1.05rem; white-space: nowrap; }
.order__action { margin-top: 0.3rem; }

.detail__head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.detail__code { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--muted); font-size: 0.85rem; }
.detail__name { font-size: 1.35rem; margin: 0.1rem 0; }
.detail__status { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; }
.detail__atec { font-weight: 700; color: var(--ok); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0.75rem; padding: 0.35rem 0; border-bottom: 1px dashed var(--line); font-size: 0.9rem; }
.timeline__when { color: var(--muted); }
.tech summary { cursor: pointer; font-weight: 600; }
.channel.is-off { opacity: 0.7; }
.channel__head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }

/* ── Janelas e avisos ──────────────────── */
.dialog-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(10, 18, 30, 0.45); display: grid; place-items: center; padding: 1rem; }
.dialog { width: min(520px, 100%); max-height: calc(100vh - 2rem); display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25); }
.dialog--wide { width: min(900px, 100%); }
.dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); }
.dialog__head h2 { margin: 0; }
.dialog__body { padding: 1rem 1.1rem; overflow-y: auto; }
.dialog__footer { display: flex; justify-content: flex-end; gap: 0.5rem; padding: 0.8rem 1.1rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.dialog__footer:empty { display: none; }
#toasts { position: fixed; z-index: 60; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 0.5rem; width: min(480px, calc(100% - 2rem)); }
.toast { padding: 0.75rem 1rem; border-radius: var(--radius-sm); background: var(--ink); color: var(--surface); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); font-weight: 600; transition: opacity 0.3s, transform 0.3s; }
.toast--erro { background: var(--bad); color: #fff; }
.toast--out { opacity: 0; transform: translateY(6px); }

/* ── Login ─────────────────────────────── */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem 1rem; align-content: center; gap: 1rem; }
.auth__card { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 2rem 1.6rem; box-shadow: var(--shadow); }
.auth__title { text-align: center; font-size: 1.3rem; }
.auth__lead { text-align: center; color: var(--muted); }
.auth__links { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; margin-top: 1rem; font-size: 0.92rem; }
.auth__foot { color: var(--muted); font-size: 0.8rem; text-align: center; }
.form-error { color: var(--bad); font-weight: 600; }
.form-info { color: var(--ok); font-weight: 600; }
.boot { min-height: 100vh; display: grid; place-items: center; align-content: center; }
.boot-error { max-width: 36rem; margin: 4rem auto; padding: 1rem; }

/* ── Celular ───────────────────────────── */
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .nav { position: fixed; z-index: 40; left: 0; top: 0; width: min(84vw, 300px); transform: translateX(-102%); transition: transform 0.2s; }
  body.nav-open .nav { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(10, 18, 30, 0.4); }
  .topbar { padding: 0.6rem 1rem; }
  .topbar__menu { display: inline-flex; }
  .view { padding: 1rem 1rem 3rem; }
  .banner { padding: 0.7rem 1rem; }
  .grid2, .row2 { grid-template-columns: minmax(0, 1fr); }
  .grouprow { grid-template-columns: minmax(0, 1fr) 32px; }
  .grouprow .input:nth-child(2), .grouprow .input:nth-child(3) { grid-column: 1; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .order { flex-direction: column; gap: 0.5rem; }
  .order__side { flex-direction: row; align-items: center; justify-content: space-between; }
  .detail__status { align-items: flex-start; }
}

/* ── Ajuda ─────────────────────────────── */
.help-public { min-height: 100vh; background: var(--bg); }
.help-public .view { margin: 0; }
.help-public .brand { color: var(--ink); text-decoration: none; padding: 0; margin: 0; }
.help-public .brand__mark { background: var(--brand); color: #fff; }
.help-public .brand__mark::after { border-color: var(--bg); }
.topbar__help { color: var(--muted); }
.help__index { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem; }
.help__card { display: flex; gap: 0.8rem; align-items: flex-start; margin: 0; color: inherit; text-decoration: none; transition: border-color 0.12s; }
.help__card:hover { border-color: var(--line-strong); }
.help__card-title { display: block; margin-bottom: 0.2rem; }
.help__card-sub { display: block; }
.help__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); }
.help { width: 100%; }
.help__meta { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; margin: 0 0 1rem; }
.help__who { white-space: normal; margin: 0; }
.help__section h2 { font-size: 1.05rem; margin: 0 0 0.6rem; }
.help__section p { margin: 0 0 0.75rem; line-height: 1.55; }
.help__section > :last-child { margin-bottom: 0; }
.help__steps, .help__list { margin: 0 0 0.75rem; padding-left: 1.4rem; line-height: 1.55; }
.help__steps li, .help__list li { margin-bottom: 0.4rem; }
.help__steps li::marker { font-weight: 700; color: var(--accent); }
.help__table { margin-bottom: 0.75rem; }
.help__table tbody th { text-transform: none; letter-spacing: 0; font-size: 0.92rem; color: var(--ink); font-weight: 700; position: static; width: 34%; vertical-align: top; }
.help__table td { vertical-align: top; line-height: 1.5; }
.help code { font-size: 0.88em; padding: 0.05rem 0.3rem; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); }
.help__pager { display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.25rem; }
@media (max-width: 860px) {
  .help__table tbody th { width: auto; }
  .help__table tr { display: block; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
  .help__table th, .help__table td { display: block; border: 0; padding: 0.15rem 0.5rem; }
  .help__table thead { display: none; }
}

/* ── Filiais, números e atendimentos ───── */
.cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.kv dt { white-space: nowrap; }
.tab__count--muted { background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line); }
.banner-link { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-bottom: 0.9rem; }
.banner-link[hidden] { display: none; }
.banner-link span { flex: 1; }
.support { display: block; }
.support__reason { margin: 0.35rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.support .actions { margin: 0.6rem 0 0; }
.support__history { margin-top: 0.5rem; font-size: 0.88rem; }
.support__history summary { cursor: pointer; color: var(--muted); }

/* ── Logo ──────────────────────────────── */
.brand__picture { display: inline-flex; }
.brand__logo { width: 36px; height: 36px; flex: none; display: block; }
.brand--big .brand__logo { width: 52px; height: 52px; }
