/* ============================================================
   Autentiva — Área do cliente (/app). Produto: fonte de SISTEMA,
   tokens, dark mode (prefers-color-scheme). Shell (sidebar + topbar)
   + componentes. Status = tokens fixos (ícone + texto + cor juntos);
   a marca do cliente entra depois (cabeçalho/preview). Sem Manrope.
   ============================================================ */

.app { font-family: var(--fonte); color: var(--texto); background: var(--fundo); }

/* ---------- Shell ---------- */
.app__grid { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.app__main { min-width: 0; }

.side {
  position: sticky; top: 0; align-self: start; height: 100vh;
  display: flex; flex-direction: column; gap: var(--e-2);
  background: var(--superficie); border-right: 1px solid var(--borda);
  padding: var(--e-4);
}
.side__marca { display: inline-flex; align-items: center; gap: 10px; padding: 8px; color: var(--texto); text-decoration: none; }
.side__marca svg { color: var(--autentiva-primaria); flex: none; }
.side__nome { font-weight: 800; letter-spacing: -.02em; font-size: var(--t-h3); }
.side__nav { display: flex; flex-direction: column; gap: 2px; margin-top: var(--e-2); }
.side__sep { margin: var(--e-3) 8px var(--e-2); font-size: var(--t-rotulo); text-transform: uppercase; letter-spacing: .08em; color: var(--texto-suave); font-weight: 700; }

.nav-item {
  display: flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 0 12px; border-radius: var(--r-med);
  color: var(--texto-suave); text-decoration: none; font-weight: 600; font-size: var(--t-peq);
  transition: background .12s, color .12s;
}
.nav-item svg { width: 20px; height: 20px; flex: none; }
.nav-item:hover { background: var(--fundo); color: var(--texto); }
.nav-item--ativo { background: color-mix(in srgb, var(--autentiva-primaria) 12%, transparent); color: var(--autentiva-primaria); }

.side__rodape { margin-top: auto; padding-top: var(--e-4); border-top: 1px solid var(--borda); }

/* Avatares (iniciais ou foto) */
.avatar {
  flex: none; display: grid; place-items: center; overflow: hidden;
  width: 34px; height: 34px; border-radius: var(--r-med);
  background: var(--autentiva-primaria); color: #fff;
  font-weight: 800; font-size: var(--t-peq); line-height: 1; text-transform: uppercase;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--user { border-radius: 50%; background: var(--autentiva-secundaria); }
.avatar--sm { width: 26px; height: 26px; font-size: var(--t-rotulo); border-radius: var(--r-peq); }
.avatar--lg { width: 72px; height: 72px; font-size: 1.75rem; border-radius: var(--r-gra); }

/* Seletor de empresa (workspace switcher, dropdown nativo <details>) */
.switch { position: relative; }
.switch__btn {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 10px; padding: 8px;
  border: 1px solid var(--borda); border-radius: var(--r-med); background: var(--fundo);
  transition: border-color .12s, background .12s;
}
.switch__btn::-webkit-details-marker { display: none; }
.switch__btn:hover { border-color: var(--autentiva-primaria); }
.switch__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.switch__nome { font-weight: 700; font-size: var(--t-peq); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switch__sub { color: var(--texto-suave); font-size: var(--t-rotulo); }
.switch__chevron { flex: none; color: var(--texto-suave); }

.switch__menu {
  position: absolute; bottom: calc(100% + 8px); left: 0; right: 0; z-index: 20;
  background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--r-gra);
  box-shadow: var(--sombra-2); padding: 8px;
}
.switch__rot { font-size: var(--t-rotulo); text-transform: uppercase; letter-spacing: .06em; color: var(--texto-suave); font-weight: 700; padding: 6px 8px; }
.switch__item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: none; border: 0; border-radius: var(--r-med); padding: 7px 8px;
  font: inherit; font-size: var(--t-peq); font-weight: 600; color: var(--texto); cursor: pointer;
}
.switch__item:hover { background: var(--fundo); }
.switch__item-nome { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switch__item--ativo { color: var(--autentiva-primaria); }
.switch__check { flex: none; color: var(--autentiva-primaria); }

.switch__acao {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--r-med);
  color: var(--texto); text-decoration: none; font-size: var(--t-peq); font-weight: 600;
}
.switch__acao:hover { background: var(--fundo); color: var(--autentiva-primaria); }
.switch__mais { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-med); border: 1px dashed var(--borda); color: var(--autentiva-primaria); }

.switch__user { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--r-med); text-decoration: none; color: var(--texto); }
.switch__user:hover { background: var(--fundo); }

.switch__sep { height: 1px; background: var(--borda); margin: 8px 0; }
.switch__sair {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: none; border: 0; padding: 8px; border-radius: var(--r-med);
  color: var(--texto-suave); font: inherit; font-size: var(--t-peq); font-weight: 600; cursor: pointer;
}
.switch__sair:hover { background: var(--fundo); color: var(--status-invalido); }

/* Editar avatar (conta) */
.avatar-edit { display: flex; align-items: center; gap: var(--e-5); margin-bottom: var(--e-5); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: var(--e-3);
  padding: var(--e-4) var(--e-6);
  background: color-mix(in srgb, var(--fundo) 86%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--borda);
}
.topbar__titulo { font-size: var(--t-h2); font-weight: 800; letter-spacing: -.02em; margin: 0; }
.topbar__acoes { margin-left: auto; display: flex; align-items: center; gap: var(--e-3); }
.conteudo { padding: var(--e-6); max-width: 1160px; }

/* Aviso de confirmação de e-mail */
.aviso-email {
  display: flex; align-items: center; justify-content: space-between; gap: var(--e-4); flex-wrap: wrap;
  margin-bottom: var(--e-5); padding: 12px var(--e-5); border-radius: var(--r-med);
  background: var(--status-suspeito-superficie); color: var(--status-suspeito);
  font-size: var(--t-peq); font-weight: 600;
}
.aviso-email__acao { background: none; border: 0; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* Botão hambúrguer (mobile) */
.side__abrir { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--borda); border-radius: var(--r-med); background: var(--superficie); color: var(--texto); cursor: pointer; }
.side__toggle { position: absolute; opacity: 0; pointer-events: none; }
.side__backdrop { display: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--r-med);
  font-family: inherit; font-weight: 600; font-size: var(--t-peq); text-decoration: none; cursor: pointer;
  transition: background .12s, border-color .12s, color .12s, transform .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--primario { background: var(--autentiva-primaria); color: #fff; }
.btn--primario:hover { background: var(--autentiva-primaria-escura); }
.btn--ghost { background: var(--superficie); color: var(--texto); border-color: var(--borda); }
.btn--ghost:hover { border-color: var(--autentiva-primaria); color: var(--autentiva-primaria); }
.btn--perigo { background: var(--status-invalido); color: #fff; }
.btn--perigo:hover { background: var(--status-invalido-forte); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: var(--t-rotulo); }
.btn--bloco { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; pointer-events: none; }

/* ---------- Cartões / grids ---------- */
.card { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--r-gra); padding: var(--e-6); box-shadow: var(--sombra-1); }
.card--pad0 { padding: 0; overflow: hidden; }
.card__tit { font-size: var(--t-h3); font-weight: 700; margin: 0 0 var(--e-4); }
.stack > * + * { margin-top: var(--e-5); }
.grid { display: grid; gap: var(--e-5); }
.grid--metr { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: 1.55fr 1fr; align-items: start; }

/* Métricas */
.metr { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--r-gra); padding: var(--e-5); }
.metr__lab { color: var(--texto-suave); font-size: var(--t-peq); font-weight: 600; }
.metr__val { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.metr__pe { color: var(--texto-suave); font-size: var(--t-rotulo); margin-top: 2px; }

/* Cota */
.cota2 { margin-top: var(--e-4); }
.cota2__cab { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: var(--t-peq); }
.cota2__num { color: var(--texto-suave); font-variant-numeric: tabular-nums; }
.cota2__track { height: 10px; border-radius: var(--r-pill); background: var(--fundo); border: 1px solid var(--borda); overflow: hidden; }
.cota2__fill { height: 100%; background: var(--autentiva-primaria); border-radius: var(--r-pill); }
.cota2--alta .cota2__fill { background: var(--status-suspeito-forte); }

/* Tendência (barras) */
.trend { display: flex; align-items: flex-end; gap: 5px; height: 128px; }
.trend__col { flex: 1; display: flex; align-items: flex-end; height: 100%; border-radius: 5px; }
.trend__col:hover { background: var(--fundo); }
.trend__bar { width: 100%; background: var(--autentiva-primaria-clara); border-radius: 5px 5px 0 0; min-height: 3px; transition: background .12s; }
.trend__col:hover .trend__bar { background: var(--autentiva-primaria); }
.trend__eixo { display: flex; justify-content: space-between; color: var(--texto-suave); font-size: var(--t-rotulo); margin-top: 8px; }

/* Pills de status: ícone + texto + cor (nunca cor sozinha) */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 5px; border-radius: var(--r-pill); font-size: var(--t-rotulo); font-weight: 700; white-space: nowrap; }
.pill__i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 11px; line-height: 1; }
.pill--valido { background: var(--status-valido-superficie); color: var(--status-valido); }
.pill--valido .pill__i { background: var(--status-valido-forte); }
.pill--suspeito { background: var(--status-suspeito-superficie); color: var(--status-suspeito); }
.pill--suspeito .pill__i { background: var(--status-suspeito-forte); }
.pill--invalido { background: var(--status-invalido-superficie); color: var(--status-invalido); }
.pill--invalido .pill__i { background: var(--status-invalido-forte); }
.pill--recolhido { background: var(--status-recolhido-superficie); color: var(--status-recolhido); }
.pill--recolhido .pill__i { background: var(--status-recolhido-forte); }

/* Tabelas */
.tab-wrap { overflow-x: auto; }
.paginacao { display: flex; align-items: center; justify-content: center; gap: var(--e-4); margin-top: var(--e-5); }
.paginacao__info { color: var(--texto-suave); font-size: var(--t-peq); }
.tabela { width: 100%; border-collapse: collapse; }
.tabela th { text-align: left; font-size: var(--t-rotulo); text-transform: uppercase; letter-spacing: .05em; color: var(--texto-suave); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--borda); white-space: nowrap; }
.tabela td { padding: 14px; border-bottom: 1px solid var(--borda); font-size: var(--t-peq); vertical-align: middle; }
.tabela tbody tr:last-child td { border-bottom: 0; }
.tabela tbody tr:hover { background: var(--fundo); }
.tabela a.lnk { color: var(--autentiva-primaria); font-weight: 600; text-decoration: none; }
.tabela a.lnk:hover { text-decoration: underline; }
.td-acoes { text-align: right; white-space: nowrap; }
.mono { font-family: var(--fonte-mono); letter-spacing: .02em; }
.num { font-variant-numeric: tabular-nums; }
.text-suave { color: var(--texto-suave); }

/* Formulários */
.form { max-width: 620px; }
.campo2 { margin-bottom: var(--e-5); }
.campo2 > label { display: block; font-weight: 600; font-size: var(--t-peq); margin-bottom: 6px; }
.campo2 input, .campo2 select, .campo2 textarea {
  width: 100%; min-height: 48px; padding: 11px 12px; font: inherit; font-size: var(--t-corpo);
  color: var(--texto); background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--r-med);
}
.campo2 textarea { min-height: 0; line-height: var(--lh-corpo); }
.campo2 input:focus, .campo2 select:focus, .campo2 textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--autentiva-primaria) 38%, transparent); outline-offset: 1px; border-color: var(--autentiva-primaria);
}
.campo2__ajuda { color: var(--texto-suave); font-size: var(--t-rotulo); margin-top: 5px; }
.campo2 ul.errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--status-invalido); font-size: var(--t-peq); font-weight: 600; }
.campo2--check { display: flex; align-items: center; gap: 10px; }
.campo2--check input { width: auto; min-height: auto; width: 20px; height: 20px; }
.campo2--check label { margin: 0; }
.form__acoes { display: flex; gap: var(--e-3); margin-top: var(--e-6); }

/* Estado vazio */
.vazio { text-align: center; padding: var(--e-14) var(--e-6); }
.vazio__i { width: 60px; height: 60px; margin: 0 auto var(--e-4); border-radius: var(--r-gra); display: grid; place-items: center; background: var(--autentiva-primaria-clara); color: var(--autentiva-primaria); }
.vazio__i svg { width: 30px; height: 30px; }
.vazio h3 { margin: 0 0 8px; font-size: var(--t-h3); }
.vazio p { color: var(--texto-suave); margin: 0 auto var(--e-6); max-width: 44ch; }

/* Alerta / banner */
.alerta { display: flex; gap: 12px; align-items: flex-start; padding: var(--e-4) var(--e-5); border-radius: var(--r-med); font-size: var(--t-peq); }
.alerta__i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; }
.alerta--suspeito { background: var(--status-suspeito-superficie); color: var(--status-suspeito); }
.alerta--suspeito .alerta__i { background: var(--status-suspeito-forte); }
.alerta--recolhido { background: var(--status-recolhido-superficie); color: var(--status-recolhido); }
.alerta--recolhido .alerta__i { background: var(--status-recolhido-forte); }

/* Badges / cabeçalho de página */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-pill); font-size: var(--t-rotulo); font-weight: 700; background: var(--autentiva-primaria-clara); color: var(--autentiva-primaria-escura); }
.badge--off { background: var(--status-recolhido-superficie); color: var(--status-recolhido); }

/* Barra de busca + filtro (listas) */
.filtro-bar { display: flex; gap: 8px; margin-bottom: var(--e-5); flex-wrap: wrap; }
.filtro-busca { flex: 1; min-width: 180px; min-height: 44px; padding: 0 14px; border: 1px solid var(--borda); border-radius: var(--r-med); background: var(--superficie); color: var(--texto); font: inherit; font-size: var(--t-peq); }
.filtro-status { min-height: 44px; padding: 0 10px; border: 1px solid var(--borda); border-radius: var(--r-med); background: var(--superficie); color: var(--texto); font: inherit; }
.pg-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--e-4); margin-bottom: var(--e-6); flex-wrap: wrap; }
.pg-head h2 { margin: 0; font-size: var(--t-h2); font-weight: 800; letter-spacing: -.02em; }
.pg-head p { color: var(--texto-suave); margin: 6px 0 0; }
.crumbs { color: var(--texto-suave); font-size: var(--t-peq); margin-bottom: var(--e-3); }
.crumbs a { color: var(--texto-suave); text-decoration: none; }
.crumbs a:hover { color: var(--autentiva-primaria); }

/* QR preview (momento herói) */
.qr-preview { display: flex; gap: var(--e-6); align-items: center; flex-wrap: wrap; }
.qr-box { width: 168px; height: 168px; background: #fff; border-radius: var(--r-med); padding: 12px; border: 1px solid var(--borda); flex: none; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-info__cod { font-family: var(--fonte-mono); font-size: var(--t-h3); letter-spacing: .04em; }

/* Chips de amostra de códigos */
.codigos { display: flex; flex-wrap: wrap; gap: 8px; }
.cod-chip { font-family: var(--fonte-mono); font-size: var(--t-rotulo); padding: 5px 10px; border: 1px solid var(--borda); border-radius: var(--r-peq); background: var(--fundo); }

/* Toasts (mensagens do Django) */
.toasts { position: fixed; top: 16px; right: 16px; z-index: 50; display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.toast { padding: 12px 16px; border-radius: var(--r-med); border: 1px solid var(--borda); border-left-width: 4px; background: var(--superficie); box-shadow: var(--sombra-2); font-size: var(--t-peq); font-weight: 600; }
.toast--success { border-left-color: var(--status-valido-forte); }
.toast--error { border-left-color: var(--status-invalido-forte); }
.toast--warning { border-left-color: var(--status-suspeito-forte); }
.toast--info, .toast--debug { border-left-color: var(--autentiva-primaria); }

/* Utils */
.spread { display: flex; align-items: center; justify-content: space-between; gap: var(--e-4); flex-wrap: wrap; }
.linhas > * + * { margin-top: var(--e-3); }
.dupla { display: grid; grid-template-columns: 1fr 1fr; gap: var(--e-4); }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: var(--e-6); background: var(--fundo); }
.login-card { width: min(100%, 400px); background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--r-gra); box-shadow: var(--sombra-2); padding: var(--e-8); }
.login-card__marca { display: inline-flex; align-items: center; gap: 10px; color: var(--texto); text-decoration: none; margin-bottom: var(--e-6); }
.login-card__marca svg { color: var(--autentiva-primaria); }
.login-card h1 { font-size: var(--t-h2); margin: 0 0 var(--e-6); letter-spacing: -.02em; }
.login-card .errorlist, .login-erro { list-style: none; padding: 12px 14px; margin: 0 0 var(--e-5); border-radius: var(--r-med); background: var(--status-invalido-superficie); color: var(--status-invalido); font-size: var(--t-peq); font-weight: 600; }
.login-card__pe { margin-top: var(--e-6); text-align: center; color: var(--texto-suave); font-size: var(--t-peq); }
.login-card__pe a { color: var(--autentiva-primaria); font-weight: 600; text-decoration: none; }

/* ---------- Responsivo (drawer) ---------- */
@media (max-width: 860px) {
  .app__grid { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 40; width: 264px; transform: translateX(-100%); transition: transform .2s ease; }
  .side__abrir { display: inline-flex; }
  .side__toggle:checked ~ .app__grid .side { transform: none; box-shadow: var(--sombra-2); }
  .side__toggle:checked ~ .app__grid .side__backdrop { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(10, 12, 20, .45); }
  .grid--metr { grid-template-columns: repeat(2, 1fr); }
  .grid--2, .dupla { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .app *, .btn { transition: none !important; } }

/* ============================================================
   Central de Ajuda
   ============================================================ */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.ajuda { max-width: 920px; }
.ajuda section { margin-bottom: var(--e-10); scroll-margin-top: 2rem; }
.ajuda h2 { font-size: var(--t-h2); font-weight: 800; letter-spacing: -.02em; margin: 0 0 var(--e-2); }
.ajuda section > .sub { color: var(--texto-suave); font-size: var(--t-peq); margin: 0 0 var(--e-5); }

.ajuda-hero {
  color: #fff; border-radius: var(--r-gra); padding: var(--e-8); margin-bottom: var(--e-8);
  background: radial-gradient(130% 130% at 90% -20%, #5A5CE0, var(--autentiva-primaria) 45%, var(--autentiva-primaria-escura));
}
.ajuda-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.ajuda-hero p { color: rgba(255,255,255,.9); margin: 0 0 var(--e-6); max-width: 52ch; }
.ajuda-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.ajuda-nav a { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: var(--r-pill); background: rgba(255,255,255,.16); color: #fff; text-decoration: none; font-size: var(--t-peq); font-weight: 600; }
.ajuda-nav a:hover { background: rgba(255,255,255,.28); }

.passos-ajuda { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--e-4); }
.passo-card { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--r-gra); padding: var(--e-5); }
.passo-card__n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--autentiva-primaria); color: #fff; font-weight: 800; margin-bottom: 12px; }
.passo-card h3 { font-size: var(--t-h3); margin: 0 0 6px; }
.passo-card p { color: var(--texto-suave); margin: 0; font-size: var(--t-peq); line-height: var(--lh-corpo); }

.ajuda-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--e-4); }
.ajuda-item { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--r-gra); padding: var(--e-5); }
.ajuda-item__i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-med); background: var(--autentiva-primaria-clara); color: var(--autentiva-primaria); margin-bottom: 12px; }
.ajuda-item h3 { font-size: var(--t-h3); margin: 0 0 6px; }
.ajuda-item p { color: var(--texto-suave); margin: 0; font-size: var(--t-peq); line-height: var(--lh-corpo); }
.ajuda-item b { color: var(--texto); }

.estados-ajuda { display: grid; gap: 10px; }
.estado-linha { display: flex; align-items: center; gap: var(--e-4); background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--r-med); padding: var(--e-4); }
.estado-linha p { margin: 0; color: var(--texto-suave); font-size: var(--t-peq); }

.ajuda-faq details { border: 1px solid var(--borda); border-radius: var(--r-med); margin-bottom: 8px; background: var(--superficie); }
.ajuda-faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; font-size: var(--t-peq); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ajuda-faq summary::-webkit-details-marker { display: none; }
.ajuda-faq summary::after { content: "+"; color: var(--autentiva-primaria); font-weight: 800; font-size: 1.2em; }
.ajuda-faq details[open] summary::after { content: "\2212"; }
.ajuda-faq details > p { margin: 0; padding: 0 16px 16px; color: var(--texto-suave); font-size: var(--t-peq); line-height: var(--lh-corpo); }

/* ============================================================
   Relatórios — seletor de período + barras horizontais
   ============================================================ */
.seg { display: inline-flex; border: 1px solid var(--borda); border-radius: var(--r-pill); overflow: hidden; }
.seg__op { padding: 7px 14px; font-size: var(--t-peq); font-weight: 600; color: var(--texto-suave); text-decoration: none; }
.seg__op + .seg__op { border-left: 1px solid var(--borda); }
.seg__op--on { background: var(--autentiva-primaria); color: #fff; }

.barlist { display: flex; flex-direction: column; gap: 12px; }
.barlist__row { display: grid; grid-template-columns: 132px 1fr auto; align-items: center; gap: 12px; }
.barlist__lab { font-size: var(--t-peq); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barlist__track { height: 10px; background: var(--fundo); border: 1px solid var(--borda); border-radius: var(--r-pill); overflow: hidden; }
.barlist__fill { height: 100%; background: var(--autentiva-primaria); border-radius: var(--r-pill); min-width: 2px; }
.barlist__num { font-size: var(--t-peq); font-weight: 700; min-width: 3ch; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .barlist__row { grid-template-columns: 96px 1fr auto; } }
