/* Portal Rede D'Or — Bugarin Tecnologia. CSS próprio, sem dependências externas. */

:root {
  --primaria: #14213d;
  --primaria-2: #1f3260;
  --acento: #0f7c72;
  --acento-claro: #e3f3f0;
  --fundo: #f6f5f2;
  --superficie: #ffffff;
  --superficie-2: #faf9f7;
  --borda: #e3e0da;
  --borda-forte: #cbc6bd;
  --texto: #1d1f24;
  --texto-2: #4d5058;
  --texto-3: #6d6f75;
  --foco: #2f6fdd;
  --serie-rededor: #3a62b0;
  --serie-seguros: #1a9e8f;
  --trilho: #ecebe7;
  --ok-fundo: #e2f3e8; --ok-texto: #17603a;
  --info-fundo: #e5edfb; --info-texto: #1f4e9c;
  --cinza-fundo: #ecebe8; --cinza-texto: #4c4f55;
  --aviso-fundo: #fcf0d6; --aviso-texto: #7a4f05;
  --erro-fundo: #fbe5e3; --erro-texto: #9b2c22;
  --raio: 10px;
  --sombra: 0 1px 2px rgba(20, 33, 61, .06), 0 1px 1px rgba(20, 33, 61, .04);
  --sombra-alta: 0 8px 24px rgba(20, 33, 61, .14);
  --fonte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primaria: #0d1529;
    --primaria-2: #1a2747;
    --acento: #4cc3b4;
    --acento-claro: #173a37;
    --fundo: #121418;
    --superficie: #1b1e24;
    --superficie-2: #20242b;
    --borda: #2e323a;
    --borda-forte: #444a55;
    --texto: #e8e7e4;
    --texto-2: #b9bac0;
    --texto-3: #9a9ca3;
    --foco: #7aa7ff;
    --serie-rededor: #6b8bd6;
    --serie-seguros: #229888;
    --trilho: #2a2e36;
    --ok-fundo: #173525; --ok-texto: #8fd8ab;
    --info-fundo: #1b2a48; --info-texto: #a9c4f5;
    --cinza-fundo: #2a2d33; --cinza-texto: #c3c4c8;
    --aviso-fundo: #3a2e12; --aviso-texto: #f1cd7c;
    --erro-fundo: #3d1d1a; --erro-texto: #f3a69d;
    --sombra: 0 1px 2px rgba(0, 0, 0, .4);
    --sombra-alta: 0 8px 24px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--fonte); font-size: 15px; line-height: 1.5;
  color: var(--texto); background: var(--fundo);
}
a { color: var(--acento); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5rem; font-weight: 650; }
h1 { font-size: 1.6rem; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; }
h3 { font-size: .95rem; margin-top: 1rem; }
h4 { font-size: .85rem; margin-top: .75rem; color: var(--texto-2); }
p { margin: 0 0 .75rem; }
small { font-size: .82em; }
code { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; border-radius: 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: -999px; top: 0; background: var(--superficie); padding: .5rem 1rem; z-index: 100; }
.pular:focus { left: 1rem; }
.muted { color: var(--texto-3); }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.centro { text-align: center; }
.direita { text-align: right; }
.bloco { display: block; color: var(--texto-3); }
.erro { color: var(--erro-texto); }
.espaco-topo { margin-top: 1.5rem; }

/* ---------- topo ---------- */
.topo { background: var(--primaria); color: #fff; position: sticky; top: 0; z-index: 20; }
.topo-in { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 1rem; min-height: 60px; }
.marca { display: flex; flex-direction: column; color: #fff; line-height: 1.1; margin-right: auto; }
.marca:hover { text-decoration: none; }
.marca-nome { font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.marca-por { font-size: .72rem; color: #b8c2d8; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav > a, .suspenso > summary {
  color: #dfe5f1; padding: .45rem .75rem; border-radius: 8px; font-weight: 500; cursor: pointer;
  list-style: none; display: flex; align-items: center; gap: .4rem; white-space: nowrap;
}
.suspenso > summary::-webkit-details-marker { display: none; }
.nav > a:hover, .suspenso > summary:hover { background: rgba(255, 255, 255, .08); text-decoration: none; color: #fff; }
.nav > a[aria-current="page"], .suspenso > summary[aria-current="page"] { background: rgba(255, 255, 255, .14); color: #fff; }
.suspenso { position: relative; }
.suspenso-lista {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: var(--superficie);
  border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra-alta);
  padding: .35rem; display: flex; flex-direction: column; z-index: 30;
}
.suspenso-lista.direita { left: auto; right: 0; min-width: 260px; }
.suspenso-lista a, .suspenso-lista .link-botao {
  color: var(--texto); padding: .5rem .7rem; border-radius: 6px; text-align: left; font: inherit;
}
.suspenso-lista a:hover, .suspenso-lista .link-botao:hover { background: var(--superficie-2); text-decoration: none; }
.suspenso-lista form { margin: 0; display: flex; }
.suspenso-info { padding: .4rem .7rem .55rem; font-size: .8rem; color: var(--texto-3); border-bottom: 1px solid var(--borda); margin-bottom: .25rem; overflow-wrap: anywhere; }
.link-botao { background: none; border: 0; cursor: pointer; width: 100%; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--acento); color: #fff;
  display: inline-grid; place-items: center; font-size: .8rem; font-weight: 700;
}
.menu-botao { display: none; }

/* ---------- conteúdo ---------- */
.conteudo { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 24px 16px 48px; }
.rodape {
  max-width: 1280px; width: 100%; margin: 0 auto; padding: 16px; display: flex; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; color: var(--texto-3); font-size: .8rem; border-top: 1px solid var(--borda);
}
.cabecalho { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.cabecalho .sub { color: var(--texto-2); margin: .15rem 0 0; max-width: 72ch; }
.migalhas { font-size: .85rem; color: var(--texto-3); margin-bottom: .5rem; }
.migalhas span[aria-hidden] { margin: 0 .3rem; }
.numero-grande { font-family: var(--mono); font-size: 1.45rem; font-weight: 600; word-break: break-all; }

.cartao {
  background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio);
  box-shadow: var(--sombra); padding: 20px; margin-bottom: 20px; min-width: 0;
}
.cartao.sem-padding { padding: 0; overflow: hidden; }
.cartao.estreito { max-width: 640px; }
.cartao-titulo { padding: 16px 20px 0; }
.cartao-cab { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.cartao-cab h2 { margin: 0; }
.grade-2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grade-2.iguais { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grade-2 > .cartao { margin-bottom: 0; }
.grade-2 + .grade-2, .grade-2 + section, .kpis + .grade-2 { margin-top: 20px; }
.coluna-principal, .coluna-lateral { min-width: 0; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi {
  background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra);
  padding: 16px 18px; display: flex; flex-direction: column; gap: .2rem;
}
.kpi-rotulo { font-size: .8rem; color: var(--texto-2); font-weight: 500; }
.kpi-valor { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; color: var(--texto); font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi-nota { font-size: .8rem; color: var(--texto-3); }

.faixa-equipe {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: 10px 12px; margin-bottom: 20px;
  background: var(--superficie-2); border: 1px dashed var(--borda-forte); border-radius: var(--raio);
}
.faixa-titulo { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--texto-3); margin-right: .25rem; }
.pend { padding: .3rem .65rem; border-radius: 999px; background: var(--superficie); border: 1px solid var(--borda); color: var(--texto-2); font-size: .85rem; }
.pend strong { color: var(--texto); }
.pend.atencao { background: var(--aviso-fundo); border-color: transparent; color: var(--aviso-texto); }
.pend.atencao strong { color: inherit; }
.pend.alerta { background: var(--erro-fundo); border-color: transparent; color: var(--erro-texto); }
.pend.alerta strong { color: inherit; }
.pend:hover { text-decoration: none; border-color: var(--borda-forte); }

/* ---------- gráficos ---------- */
.grafico svg { width: 100%; height: auto; display: block; }
.grafico .grade-linha { stroke: var(--borda); stroke-width: 1; }
.grafico .grade-linha.base { stroke: var(--borda-forte); }
.grafico .eixo { fill: var(--texto-3); font-size: 11px; font-family: var(--fonte); }
.grafico .alvo { fill: transparent; }
.grafico .coluna:hover .alvo { fill: var(--superficie-2); }
.serie-rededor { fill: var(--serie-rededor); background: var(--serie-rededor); }
.serie-seguros { fill: var(--serie-seguros); background: var(--serie-seguros); }
.legenda { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; font-size: .82rem; color: var(--texto-2); }
.legenda li { display: flex; align-items: center; gap: .4rem; }
.amostra { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tabela-alternativa { margin-top: .75rem; font-size: .85rem; }
.tabela-alternativa summary { cursor: pointer; color: var(--texto-2); }
.destaque { font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; }

.barras-h { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.barras-h li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(60px, 1fr) 7.5em; align-items: center; gap: .6rem; font-size: .88rem; }
.barras-h-rotulo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--texto); }
.barras-h-trilho { background: var(--trilho); border-radius: 3px; height: 8px; overflow: hidden; }
.barras-h-trilho svg { width: 100%; height: 8px; display: block; }
.barras-h-trilho rect { fill: var(--acento); }
.barras-h-valor { font-variant-numeric: tabular-nums; text-align: right; color: var(--texto-2); white-space: nowrap; }

/* ---------- tabelas ---------- */
.tabela-rolagem { position: relative; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabela { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabela th {
  text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--texto-3);
  font-weight: 600; padding: .7rem .9rem; border-bottom: 1px solid var(--borda); background: var(--superficie-2); white-space: nowrap;
}
.tabela td { padding: .65rem .9rem; border-bottom: 1px solid var(--borda); vertical-align: top; }
.tabela tbody tr:last-child td { border-bottom: 0; }
.tabela tbody tr:hover { background: var(--superficie-2); }
.tabela.compacta td, .tabela.compacta th { padding: .45rem .7rem; }
.tabela th.num, .tabela td.num { text-align: right; }
.tabela .check { width: 36px; }
.tabela .numero { font-family: var(--mono); font-size: .88rem; }
.empresa-cel { min-width: 220px; }
.empresa-cel small { display: block; color: var(--texto-3); font-family: var(--mono); font-size: .76rem; }
.erro-cel { color: var(--erro-texto); font-size: .8rem; min-width: 220px; }
.motivo-cel { font-size: .82rem; color: var(--texto-2); min-width: 220px; }
.linha-alerta td { background: var(--erro-fundo); }
.tabela tbody tr.linha-alerta:hover td { background: var(--erro-fundo); }
.linha-inativa td { color: var(--texto-3); }
.tabela-rodape {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .75rem .9rem; border-top: 1px solid var(--borda); font-size: .85rem; color: var(--texto-2);
}
.barra-acoes { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .75rem .9rem; border-bottom: 1px solid var(--borda); background: var(--superficie-2); }
.barra-acoes span { font-size: .85rem; color: var(--texto-2); margin-right: auto; }

.paginacao { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.paginacao a, .paginacao span { padding: .3rem .6rem; border-radius: 6px; }
.paginacao a { border: 1px solid var(--borda); color: var(--texto); }
.paginacao a:hover { background: var(--superficie-2); text-decoration: none; }
.paginacao .desab { color: var(--texto-3); opacity: .6; }
.pag-atual { color: var(--texto-2); }

/* ---------- badges e ícones ---------- */
.badge {
  display: inline-block; padding: .12rem .55rem; border-radius: 999px; font-size: .76rem; font-weight: 600;
  white-space: nowrap; vertical-align: middle; line-height: 1.5;
}
.badge.grande { font-size: .9rem; padding: .3rem .8rem; }
.badge-enviado { background: var(--ok-fundo); color: var(--ok-texto); }
.badge-historico, .badge-neutro { background: var(--cinza-fundo); color: var(--cinza-texto); }
.badge-pendente { background: var(--info-fundo); color: var(--info-texto); }
.badge-revisar { background: var(--aviso-fundo); color: var(--aviso-texto); }
.badge-fora { background: var(--erro-fundo); color: var(--erro-texto); }
.av { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .8rem; font-weight: 700; }
.av-sem { color: var(--texto-3); }
.av-nao { background: var(--erro-fundo); color: var(--erro-texto); }
.av-ja { background: var(--cinza-fundo); color: var(--cinza-texto); }
.av-rel { background: var(--aviso-fundo); color: var(--aviso-texto); }
.contador { background: rgba(255, 255, 255, .25); border-radius: 999px; padding: 0 .45rem; font-size: .8rem; margin-left: .25rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-block; background: var(--acento-claro); color: var(--texto); padding: .2rem .6rem; border-radius: 999px; font-size: .82rem; }

/* ---------- botões e formulários ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem 1rem; border-radius: 8px; border: 1px solid var(--borda-forte); background: var(--superficie);
  color: var(--texto); font: inherit; font-weight: 550; font-size: .9rem; cursor: pointer; white-space: nowrap; line-height: 1.2;
}
.botao:hover { background: var(--superficie-2); text-decoration: none; }
.botao.primario { background: var(--primaria); border-color: var(--primaria); color: #fff; }
.botao.primario:hover { background: var(--primaria-2); }
.botao.perigo { background: var(--erro-fundo); border-color: transparent; color: var(--erro-texto); }
.botao.fantasma { border-color: transparent; background: transparent; color: var(--texto-2); }
.botao.pequeno { padding: .35rem .7rem; font-size: .82rem; }
.botao.largo { width: 100%; }
@media (prefers-color-scheme: dark) {
  .botao.primario { background: #2c4a8a; border-color: #2c4a8a; }
  .botao.primario:hover { background: #3a5ca3; }
}

.form { display: flex; flex-direction: column; gap: .9rem; }
.campo { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.campo label, .campo .rotulo { font-size: .82rem; font-weight: 600; color: var(--texto-2); }
.campo-check { flex-direction: row; align-items: center; gap: .55rem; }
.campo-check label { font-size: .92rem; font-weight: 500; color: var(--texto); }
.campo .ajuda { color: var(--texto-3); }
.campo.com-erro input, .campo.com-erro textarea, .campo.com-erro select { border-color: var(--erro-texto); }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: .92rem; color: var(--texto); background: var(--superficie);
  border: 1px solid var(--borda-forte); border-radius: 8px; padding: .5rem .65rem; min-height: 38px;
}
textarea { resize: vertical; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--acento); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--foco); outline-offset: 0; border-color: var(--foco); }
.form-inline { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .4rem; }
.form-inline input[type=text] { flex: 1 1 160px; min-height: 32px; padding: .3rem .5rem; font-size: .82rem; }
.acoes-linha { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0; }

.filtros {
  background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra);
  padding: 14px 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: .75rem;
}
.filtros-linha { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: .75rem; align-items: end; }
.filtros-linha .busca { grid-column: span 2; }
.filtros.compacto .filtros-linha { grid-template-columns: minmax(150px, 260px) auto; justify-content: start; }
.filtros-mais summary { cursor: pointer; font-size: .85rem; color: var(--texto-2); font-weight: 600; margin-bottom: .5rem; }
.filtros-acoes { display: flex; gap: .5rem; flex-wrap: wrap; }

.mensagens { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.msg { padding: .7rem 1rem; border-radius: 8px; background: var(--info-fundo); color: var(--info-texto); font-size: .9rem; margin-bottom: 1rem; }
.mensagens .msg { margin-bottom: 0; }
.msg-success { background: var(--ok-fundo); color: var(--ok-texto); }
.msg-warning { background: var(--aviso-fundo); color: var(--aviso-texto); }
.msg-error { background: var(--erro-fundo); color: var(--erro-texto); }

.vazio { padding: 2rem 1.25rem; text-align: center; color: var(--texto-2); }
.vazio p:last-child { margin-bottom: 0; }
.cartao > .vazio { padding: 1rem 0; text-align: left; }
.nota { font-size: .85rem; color: var(--texto-3); }

/* ---------- detalhe ---------- */
.dados { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: .9rem 1.25rem; }
.dados div { min-width: 0; }
.dados dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--texto-3); font-weight: 600; }
.dados dd { margin: .1rem 0 0; word-break: break-word; }
.dados dd small { display: block; color: var(--texto-3); }
.partes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.partes h3 { margin-top: 0; }
.lista-partes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.lista-partes small { color: var(--texto-3); }
.linha-tempo { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--borda); }
.linha-tempo li { position: relative; padding: 0 0 1rem .75rem; }
.linha-tempo li::before {
  content: ""; position: absolute; left: calc(-1rem - 6px); top: .35rem; width: 10px; height: 10px;
  border-radius: 50%; background: var(--superficie); border: 2px solid var(--acento);
}
.linha-tempo time { font-size: .78rem; color: var(--texto-3); font-variant-numeric: tabular-nums; }
.mov-texto { font-size: .9rem; word-break: break-word; }
.lista-simples { list-style: none; margin: 0 0 1rem; padding: 0; }
.lista-simples li { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--borda); }
.lista-simples li > a { min-width: 0; overflow-wrap: anywhere; }
.lista-simples li:last-child { border-bottom: 0; }
.lista-simples li > span { color: var(--texto-3); font-size: .85rem; flex-shrink: 0; white-space: nowrap; text-align: right; }
.botoes-avaliacao { display: flex; flex-direction: column; gap: .5rem; }
.av-botao { justify-content: flex-start; }
.av-botao.av-nao:hover { background: var(--erro-fundo); }
.av-botao.av-ja:hover { background: var(--cinza-fundo); }
.av-botao.av-rel:hover { background: var(--aviso-fundo); }
.avaliacoes, .solicitacoes { list-style: none; margin: 0; padding: 0; }
.avaliacoes li, .solicitacoes li { padding: .75rem 0; border-bottom: 1px solid var(--borda); display: flex; flex-direction: column; gap: .25rem; }
.avaliacoes li:last-child, .solicitacoes li:last-child { border-bottom: 0; }
.avaliacoes small, .solicitacoes small { color: var(--texto-3); }
.sol-linha { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; align-items: center; }
.comentario { background: var(--superficie-2); border-radius: 6px; padding: .5rem .7rem; margin: .25rem 0 0; font-size: .88rem; }
.comentario.resposta { background: var(--acento-claro); }
.numeros-soltos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .25rem .75rem; font-family: var(--mono); font-size: .85rem; }
.senha-gerada { border: 2px solid var(--acento); }
.senha-gerada .senha { font-size: 1.2rem; padding: .25rem .5rem; background: var(--acento-claro); border-radius: 6px; user-select: all; }

/* ---------- entrar ---------- */
.pagina-entrar { background: linear-gradient(160deg, var(--primaria) 0%, var(--primaria-2) 55%, var(--acento) 140%); }
.pagina-entrar .conteudo { display: grid; place-items: center; padding-top: 8vh; }
.pagina-entrar .rodape { color: #b8c2d8; border-top-color: rgba(255, 255, 255, .12); }
.entrar-caixa {
  width: 100%; max-width: 400px; background: var(--superficie); border-radius: 14px; padding: 32px 28px;
  box-shadow: var(--sombra-alta);
}
.entrar-marca { display: flex; flex-direction: column; margin-bottom: 1rem; }
.entrar-marca .marca-nome { font-size: 1.5rem; color: var(--texto); }
.entrar-marca .marca-por { color: var(--texto-3); font-size: .8rem; }
.entrar-texto { color: var(--texto-2); font-size: .92rem; }

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  .grade-2, .grade-2.iguais { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .menu-botao {
    display: inline-flex; align-items: center; gap: .4rem; background: transparent; color: #fff;
    border: 1px solid rgba(255, 255, 255, .3); border-radius: 8px; padding: .4rem .7rem; font: inherit; cursor: pointer;
  }
  .topo-in { flex-wrap: wrap; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: .75rem; }
  .nav.aberto { display: flex; }
  .sem-js .nav { display: flex; }
  .suspenso-lista, .suspenso-lista.direita { position: static; box-shadow: none; margin: .25rem 0 .5rem; }
  .filtros-linha .busca { grid-column: 1 / -1; }
  .partes { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.35rem; }
  .conteudo { padding-top: 16px; }
  .cartao { padding: 16px; }
  .kpi-valor { font-size: 1.7rem; }
  .filtros-linha { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cabecalho .botao { width: 100%; }
  .barras-h li { grid-template-columns: minmax(0, 1fr) 60px 6.5em; }
}
@media print {
  .topo, .filtros, .rodape, .paginacao, .botao { display: none !important; }
  body { background: #fff; }
  .cartao { box-shadow: none; }
}

/* ---------- temas, novidade, recolhíveis ---------- */
.badge-novo { background: var(--acento); color: #fff; }
@media (prefers-color-scheme: dark) { .badge-novo { color: #0d1529; } }
.chip.pequeno { font-size: .76rem; padding: .1rem .5rem; margin: 0 .25rem .2rem 0; color: var(--texto); }
a.chip:hover { text-decoration: none; filter: brightness(.96); }
.temas-cel { min-width: 180px; max-width: 320px; }
.mais { font-size: .76rem; color: var(--texto-3); white-space: nowrap; cursor: help; }
.link-mais { display: inline-block; margin-top: .75rem; font-size: .88rem; }
.titulo-secao { margin: 8px 0 12px; font-size: 1.15rem; }
.form.estreito { max-width: 560px; }
details.recolhivel > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
details.recolhivel > summary::-webkit-details-marker { display: none; }
details.recolhivel > summary h2 { margin: 0; }
details.recolhivel > summary::before { content: "▸"; color: var(--texto-3); transition: transform .15s; }
details.recolhivel[open] > summary::before { transform: rotate(90deg); }
details.recolhivel[open] > summary { margin-bottom: .75rem; }

/* tendências: últimos 90 dias contra os 90 anteriores */
.variacao { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.var-sobe { color: #b45309; }
.var-desce { color: #0b7285; }
.destaques { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.destaques li { display: flex; gap: .75rem; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--borda, #e2e8f0); padding-bottom: .6rem; }
.destaques li:last-child { border-bottom: 0; padding-bottom: 0; }
.destaques .de-para { color: var(--texto-3, #64748b); font-size: .9rem; }
.mudancas-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.mudancas-grade h3 { margin-top: 0; }
.badge-urgente { background: #fef3c7; color: #92400e; }
