:root {
  color-scheme: light;
  --ground: #E9ECF1; --surface: #fff; --raised: #F2F4F8; --active: #E2E6ED;
  --border: #B9C0CC; --rule: #D5DAE3; --control: #8A93A3;
  --text: #0B0D10; --muted: #3F4650; --primary: #0B0D10;
  --accent: #D9500A; --accent-ink: #8F3A06; --gold: #F5A623; --gold-soft: #FFF4DE;
  --positive: #14653D; --positive-soft: #E6F4EC; --danger: #A3160C; --danger-soft: #FDECEA;
  --radius-card: 10px; --radius-control: 8px; --radius-chip: 6px;
  --titulo: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --texto: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--ground); color: var(--text); font: 15px/1.5 var(--texto); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
[hidden] { display: none !important; }
.visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.botao { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-control); padding: 9px 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.botao:hover { background: var(--raised); }
.botao.primario { background: var(--primary); border-color: var(--primary); color: #fff; }
.botao.primario:hover { background: #2a2d31; }
.botao:disabled { opacity: .55; cursor: wait; }
.botao.pequeno { padding: 6px 10px; font-size: 14px; }
.erro { color: var(--danger); font-size: 14px; margin: 0; min-height: 0; }
.erro:empty { display: none; }
input, select, textarea { border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface); padding: 9px 12px; }
input:focus, select:focus, textarea:focus, .botao:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-caixa { width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 32px; display: grid; gap: 14px; }
.login-logo { height: 34px; justify-self: start; }
.login h1 { font-family: var(--titulo); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.login label { display: grid; gap: 6px; font-weight: 500; font-size: 14px; }

/* Estrutura */
.painel { display: grid; grid-template-columns: 330px 1fr; gap: 16px; padding: 16px; height: 100vh; }
.lateral { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); display: flex; flex-direction: column; overflow: hidden; }
.principal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

.marca { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; }
.marca-simbolo { width: 38px; height: auto; }
.marca div { display: grid; line-height: 1.15; }
.marca strong { font-size: 16px; }
.marca span { color: var(--muted); font-size: 13px; }
.sair { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; }
.sair:hover { color: var(--text); }

.busca { display: grid; gap: 10px; padding: 0 18px 16px; border-bottom: 1px solid var(--rule); }
.caixa-campos { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.campo { display: flex; align-items: center; gap: 10px; padding: 0 12px; border-top: 1px solid var(--rule); }
.campo:first-child { border-top: 0; }
.campo svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.campo input { border: 0; border-radius: 0; padding: 12px 0; width: 100%; background: transparent; }
.campo input:focus { outline: none; }
.campo:focus-within { background: var(--raised); }
.campo kbd { font: 12px var(--mono); color: var(--muted); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; }
.caixa-ajustes { border: 1px solid var(--border); border-radius: var(--radius-card); }
.ajuste { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; border-top: 1px solid var(--rule); }
.ajuste:first-child { border-top: 0; }
.ajuste.coluna { display: grid; gap: 10px; }
.ajuste-linha { display: flex; justify-content: space-between; align-items: center; }
.ajuste b { display: block; font-size: 14px; font-weight: 600; }
.ajuste span { display: block; font-size: 12px; color: var(--muted); }
.ajuste output { font: 600 14px var(--mono); }
.chips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-control); padding: 6px 11px; font-size: 14px; cursor: pointer; }
.chips button:hover { background: var(--raised); }
.chips button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border: 0; padding: 0; border-radius: 4px; background: var(--active); accent-color: var(--primary); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary); cursor: pointer; }
.dica { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.custo { margin: 0; font-size: 13px; color: var(--accent-ink); }

.buscas-topo { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 8px; gap: 8px; }
.buscas-topo h2 { font-size: 15px; }
.auditor { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; text-align: right; }
.auditor::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--control); flex: none; }
.auditor.ligado::before { background: var(--positive); }
.auditor.parado::before { background: var(--gold); }
.buscas { list-style: none; margin: 0; padding: 0 12px 12px; overflow: auto; display: grid; gap: 6px; align-content: start; }
.buscas li { position: relative; }
.buscas .b-abrir { width: 100%; text-align: left; border: 1px solid var(--rule); background: var(--surface); border-radius: var(--radius-control); padding: 10px 40px 10px 12px; cursor: pointer; display: grid; gap: 2px; }
.buscas .b-abrir:hover { background: var(--raised); }
.buscas .b-abrir[aria-pressed="true"] { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.b-excluir { position: absolute; top: 8px; right: 8px; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 4px; font-size: 12px; }
.b-excluir svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
.b-excluir:hover { color: var(--danger); background: var(--danger-soft); }
.b-excluir.confirmar { color: #fff; background: var(--danger); font-weight: 600; padding: 4px 8px; }
.buscas .b-nome { font-weight: 600; font-size: 14px; }
.buscas .b-info { font-size: 12px; color: var(--muted); }
.buscas .b-erro { font-size: 12px; color: var(--danger); }

/* Topo da área principal */
.topo { display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px 14px; align-items: flex-start; }
.topo h1 { font-family: var(--titulo); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.topo h1::first-letter { text-transform: uppercase; }
.subtitulo { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.acoes { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.numeros { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0 24px; border: 1px solid var(--border); border-radius: var(--radius-card); }
.numero { padding: 14px 16px; border-left: 1px solid var(--rule); }
.numero:first-child { border-left: 0; }
.numero b { display: block; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.numero span { font-size: 12px; color: var(--muted); }

.filtros { display: flex; justify-content: space-between; gap: 12px; padding: 14px 24px 10px; flex-wrap: wrap; }
.abas { display: flex; gap: 6px; flex-wrap: wrap; }
.aba { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-control); padding: 7px 12px; cursor: pointer; font-size: 14px; }
.aba:hover { background: var(--raised); }
.aba[aria-selected="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.aba .contagem { opacity: .7; margin-left: 4px; font-variant-numeric: tabular-nums; }
.filtros-direita { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filtros-direita select, .filtros-direita input[type="search"] { padding: 7px 10px; font-size: 14px; }
.filtros-direita input[type="search"] { width: 220px; }
.so-celular { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); cursor: pointer; }

/* Tabela */
.tabela-caixa { flex: 1; overflow: auto; padding: 0 12px 12px; }
.tabela { width: 100%; border-collapse: collapse; }
.tabela th { position: sticky; top: 0; background: var(--surface); text-align: left; font-weight: 400; font-size: 13px; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); z-index: 1; }
.tabela td { padding: 11px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; font-size: 14px; }
.tabela tbody tr { cursor: pointer; }
.tabela tbody tr:hover { background: var(--raised); }
.tabela .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.t-nome { font-weight: 600; min-width: 150px; }
.t-sub { font-size: 12px; color: var(--muted); }
.t-tel { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.t-tel a { color: var(--text); text-decoration: none; }
.t-tel a:hover { text-decoration: underline; }
.t-tel small { font-family: var(--texto); font-size: 10px; letter-spacing: .04em; color: var(--positive); font-weight: 600; margin-left: 4px; }
.t-site { color: var(--text); font-size: 13px; text-decoration: none; max-width: 180px; display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.t-site:hover { text-decoration: underline; }
.t-maps { color: var(--muted); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; }
.t-maps:hover { background: var(--active); color: var(--text); }
.t-maps svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.alternar { display: inline-flex; background: var(--active); border-radius: var(--radius-control); padding: 3px; }
.alternar button { border: 0; background: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 14px; color: var(--muted); }
.alternar button.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

.mapa-caixa { flex: 1; position: relative; isolation: isolate; z-index: 0; margin: 0 24px 20px; border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; min-height: 420px; }
#mapa { position: absolute; inset: 0; }
.legenda { position: absolute; left: 12px; bottom: 12px; z-index: 500; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-control); padding: 8px 12px; display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.ponto { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.ponto.A { background: var(--primary); }
.ponto.B, .ponto.C { background: var(--danger); }
.ponto.D { background: var(--gold); }
.ponto.fila { background: #9AA0A8; }
.ponto.descartado { background: #D5D8DD; }
.leaflet-popup-content { font: 14px/1.4 var(--texto); margin: 12px 14px; min-width: 220px; }
.pop-nome { font-weight: 700; font-size: 15px; }
.pop-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.pop-selo { margin-top: 8px; }
.pop-linhas { display: grid; gap: 4px; margin-top: 8px; }
.pop-linhas a { color: var(--text); }
.pop-abrir { margin-top: 10px; width: 100%; }
.vazio { text-align: center; color: var(--muted); padding: 40px 0; }

.selo { display: inline-block; border-radius: var(--radius-chip); padding: 3px 8px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--active); color: var(--text); }
.selo.escuro { background: var(--primary); color: #fff; }
.selo.ouro { background: var(--gold-soft); color: var(--accent-ink); }
.selo.verde { background: var(--positive-soft); color: var(--positive); }
.selo.vermelho { background: var(--danger-soft); color: var(--danger); }
.selo.claro { background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-weight: 500; }
.prio { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 700; font-size: 13px; }
.prio.A { background: var(--accent); color: #fff; }
.prio.B { background: var(--gold); color: var(--text); }
.prio.C { background: var(--active); color: var(--muted); }

/* Ficha */
.ficha-fundo { position: fixed; inset: 0; background: rgba(21, 23, 26, .28); z-index: 1100; }
.ficha { position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100%); background: var(--surface); overflow: auto; padding: 26px 28px 40px; box-shadow: -12px 0 40px rgba(0, 0, 0, .12); z-index: 1101; }
.ficha-fechar { position: absolute; top: 14px; right: 16px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }
.ficha h2 { font-family: var(--titulo); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; padding-right: 32px; }
.ficha h3 { font-size: 15px; margin: 24px 0 10px; }
.ficha .linha-selos { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 4px; align-items: center; }
.ficha .meta { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.ficha .meta a { color: var(--text); }
.ficha .angulo { background: var(--gold-soft); border-radius: var(--radius-control); padding: 12px 14px; margin: 16px 0 0; }
.controles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.controles label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.controles .largo { grid-column: 1 / -1; }
.controles textarea { min-height: 64px; resize: vertical; }
.mensagem { border: 1px solid var(--border); border-radius: var(--radius-control); padding: 12px 14px; margin-bottom: 10px; }
.mensagem-topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.mensagem-topo b { font-size: 14px; }
.mensagem-topo div { display: flex; gap: 6px; }
.mensagem p { margin: 0; white-space: pre-wrap; font-size: 14px; }
.blocos { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.blocos li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; border-radius: var(--radius-control); background: var(--raised); }
.blocos .bl-nome { font-weight: 600; font-size: 14px; }
.blocos .bl-pontos { font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 600; }
.blocos .bl-pontos.problema { color: var(--danger); }
.blocos .bl-ev { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.lista { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.provas { font-size: 13px; color: var(--muted); }
.aviso-fila { background: var(--raised); border-radius: var(--radius-control); padding: 12px 14px; margin-top: 16px; font-size: 14px; color: var(--muted); }

.aviso { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--radius-control); font-size: 14px; z-index: 1200; }

@media (max-width: 1360px) {
  .tabela th, .tabela td { padding-left: 8px; padding-right: 8px; }
  .t-site { max-width: 130px; }
}
@media (max-width: 1100px) {
  .numeros { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .numero:nth-child(4) { border-left: 0; }
  .numero:nth-child(n+4) { border-top: 1px solid var(--rule); }
}
@media (max-width: 860px) {
  .painel { grid-template-columns: 1fr; height: auto; padding: 16px; }
  .lateral { max-height: none; }
  .buscas { max-height: 260px; }
  .principal { min-height: 80vh; }
  .topo { flex-direction: column; padding: 18px 16px 12px; }
  .numeros { margin: 0 16px; }
  .filtros { padding: 12px 16px 8px; }
  .filtros-direita input[type="search"] { width: 100%; }
  .tabela-caixa { padding: 0 4px 8px; }
  .tabela th:nth-child(5), .tabela td:nth-child(5), .tabela th:nth-child(9), .tabela td:nth-child(9) { display: none; }
  .mapa-caixa { margin: 0 16px 16px; min-height: 60vh; }
  .acoes { justify-content: flex-start; }
  .ficha { padding: 22px 16px 32px; }
  .controles { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numero:nth-child(n) { border-left: 0; border-top: 1px solid var(--rule); }
  .numero:nth-child(even) { border-left: 1px solid var(--rule); }
  .numero:nth-child(-n+2) { border-top: 0; }
  .tabela th:nth-child(4), .tabela td:nth-child(4) { display: none; }
}
.ajuste .chips { flex-wrap: nowrap; }
.ajuste .chips button { padding: 5px 10px; }
@media (min-width: 861px) and (max-width: 1360px) {
  .painel { grid-template-columns: 300px 1fr; }
  .tabela .t-sub { font-size: 11px; }
}
.buscas-topo h2 { white-space: nowrap; }
a.botao { text-decoration: none; color: var(--text); display: inline-block; }
a.botao.primario { color: #fff; }
.ajuste output { white-space: nowrap; }

/* País, cidades e bairros com sugestões */
.campo select { border: 0; padding: 12px 0; width: 100%; background: transparent; border-radius: 0; cursor: pointer; }
.campo select:focus { outline: none; }
.campo-etiquetas { position: relative; flex-wrap: wrap; row-gap: 6px; padding-top: 6px; padding-bottom: 6px; }
.campo-etiquetas svg { align-self: center; }
.campo-etiquetas input { flex: 1; min-width: 110px; padding: 6px 0; }
.campo-etiquetas input:disabled { background: transparent; cursor: not-allowed; }
.etiquetas { display: contents; }
.etiqueta { display: inline-flex; align-items: center; gap: 4px; background: var(--active); border-radius: var(--radius-chip); padding: 3px 4px 3px 8px; font-size: 13px; font-weight: 500; max-width: 100%; }
.etiqueta button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 16px; line-height: 1; padding: 0 4px; border-radius: 4px; }
.etiqueta button:hover { background: var(--control); color: var(--text); }
.sugestoes { position: absolute; left: -1px; right: -1px; top: calc(100% + 4px); z-index: 50; list-style: none; margin: 0; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-control); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); max-height: 300px; overflow: auto; }
.sugestoes li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.sugestoes li b { font-weight: 600; }
.sugestoes li span { color: var(--muted); font-size: 12px; text-align: right; }
.sugestoes li[aria-selected="true"], .sugestoes li:hover { background: var(--raised); }
.caixa-campos { overflow: visible; }
.campo:first-child { border-radius: var(--radius-card) var(--radius-card) 0 0; }
.campo:last-child { border-radius: 0 0 var(--radius-card) var(--radius-card); }
.lateral-pe { margin-top: auto; padding: 10px 18px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--rule); }

/* Auditor: estado e botão "Auditar agora" */
.auditor-caixa { margin: 12px 12px 0; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--radius-control); background: var(--raised); display: grid; gap: 6px; }
.auditor-linha { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.auditor-caixa .auditor { font-size: 13px; color: var(--text); text-align: left; }
.auditor-nota { margin: 0; font-size: 12px; color: var(--muted); }

/* Lateral remodelada (05/11/2026): a lateral rola inteira, "Nova busca" abre e fecha,
   e a lista de buscas ocupa o espaço que sobra, sem caixinha com rolagem própria */
.lateral-corpo { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.nova-busca { padding: 0 18px; border-bottom: 1px solid var(--rule); }
.nova-busca-abrir { width: 100%; display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-control); padding: 11px 12px; cursor: pointer; font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.nova-busca-abrir:hover { background: var(--raised); }
.nova-busca-abrir svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nova-busca-abrir span { flex: 1; text-align: left; }
.nova-busca-abrir .seta { transition: transform .15s; }
.nova-busca-abrir[aria-expanded="true"] { margin-bottom: 10px; }
.nova-busca-abrir[aria-expanded="true"] .seta { transform: rotate(180deg); }
.nova-busca-abrir[aria-expanded="false"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.nova-busca-abrir[aria-expanded="false"]:hover { background: #2a2d31; }
.nova-busca .busca { padding: 0 0 16px; border-bottom: 0; }
.auditor-caixa { margin: 12px 18px 0; padding: 8px 12px; }
.auditor-nota { font-size: 11px; }
.buscas-topo { padding: 16px 18px 8px; }
.buscas-topo h2 { font-size: 15px; }
.buscas-topo h2 span { color: var(--muted); font-weight: 500; }
.buscas { overflow: visible; max-height: none !important; padding: 0 18px 16px; gap: 8px; }
.buscas .b-abrir { padding: 12px 40px 12px 14px; gap: 4px; }
.buscas .b-nome { font-size: 15px; }
.buscas .b-info { font-size: 12.5px; }
.lateral-pe { margin-top: 0; }

/* Contraste reforçado (08/11/2026) */
.lateral, .principal { border-color: var(--control); box-shadow: 0 1px 3px rgba(11, 13, 16, .12); }
.botao { border-color: var(--control); }
.botao.primario:hover { background: #262b33; }
input, select, textarea { border-color: var(--control); }
h3 { margin: 18px 0 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ligacao { border: 1px solid var(--accent); border-left-width: 5px; background: var(--gold-soft); border-radius: var(--radius-control); padding: 12px 14px; }
.ligacao .lista { margin: 0 0 8px; }
.ligacao .fatos { color: var(--text); font-size: 14px; }

#qtd-livre { width: 78px; padding: 5px 8px; font-size: 14px; }

/* Seleção: auditar só as empresas escolhidas (09/11/2026) */
.tabela th.sel, .tabela td.sel { width: 36px; padding-right: 0; text-align: center; cursor: pointer; }
.tabela .sel input { width: 17px; height: 17px; margin: 0; padding: 0; accent-color: var(--accent); cursor: pointer; vertical-align: middle; }
.tabela tbody tr.marcada { background: var(--gold-soft); }
.tabela tbody tr.marcada:hover { background: #FFEBC4; }
.selecao { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 24px 10px; padding: 10px 14px; border: 1px solid var(--accent); border-left-width: 5px; border-radius: var(--radius-control); background: var(--gold-soft); font-size: 14px; }
.selecao-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.modo { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--control); border-radius: var(--radius-control); overflow: hidden; background: var(--surface); }
.modo button { border: 0; background: none; padding: 7px 6px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--muted); }
.modo button + button { border-left: 1px solid var(--control); }
.modo button:hover { background: var(--raised); color: var(--text); }
.modo button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.modo button:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
@media (max-width: 860px) { .selecao { margin: 0 16px 10px; } }

/* Login com a identidade da marca (09/11/2026): fundo escuro estático com brilhos ouro e laranja,
   grade, anéis, faixas da seta e o KV grande, tudo decorativo (aria-hidden) */
.login { position: relative; overflow: hidden; isolation: isolate; background: #0B0D10; color: #fff; grid-template-rows: auto 1fr auto; place-items: center; padding: 24px 16px; }
.login-fundo { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.lf-brilho { position: absolute; border-radius: 50%; filter: blur(90px); }
.lf-brilho-ouro { width: 620px; height: 620px; left: -180px; top: -220px; background: radial-gradient(circle, rgba(245, 166, 35, .55), rgba(245, 166, 35, 0) 70%); }
.lf-brilho-laranja { width: 760px; height: 760px; right: -260px; bottom: -320px; background: radial-gradient(circle, rgba(232, 96, 14, .6), rgba(232, 96, 14, 0) 70%); }
.lf-grade { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 85%); mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 85%); }
.lf-simbolo { position: absolute; width: min(1100px, 120vw); right: -22vw; top: 50%; transform: translateY(-46%) rotate(-8deg); opacity: .07; filter: saturate(1.2); }
.lf-aneis { position: absolute; width: 560px; height: 560px; right: 6vw; top: -170px; opacity: .55; }
.lf-faixas { position: absolute; width: 420px; height: 420px; left: -40px; bottom: -40px; opacity: .75; }
.lf-pontos { position: absolute; width: 200px; left: 7vw; top: 22vh; opacity: .35; }
.lf-grao { position: absolute; inset: 0; opacity: .18; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }

.login-topo { justify-self: start; display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .01em; padding: 4px 8px; }
.login-topo-simbolo { width: 34px; height: auto; }
.login-caixa { position: relative; max-width: 400px; padding: 36px 34px 32px; gap: 16px; border: 0; border-radius: 16px; color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); }
.login-caixa::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: 16px 16px 0 0; background: linear-gradient(90deg, #FFDB5C, #F5A623 40%, #E8600E); }
.login-logo { height: 40px; }
.login-titulo { display: grid; gap: 4px; }
.login-titulo p { margin: 0; color: var(--muted); font-size: 14px; }
.login h1 { font-size: 28px; }
.login-caixa input { padding: 11px 12px; }
.login-entrar { margin-top: 4px; padding: 12px 14px; border: 0; color: #0B0D10; font-weight: 700; background: linear-gradient(135deg, #FFC93C, #F5A623 45%, #E8600E); }
.botao.primario.login-entrar:hover { background: linear-gradient(135deg, #FFD45F, #F7AF3A 45%, #EE6F22); }
.login-pe { margin: 0; font-size: 12px; color: rgba(255, 255, 255, .55); letter-spacing: .04em; }
@media (max-width: 640px) {
  .lf-aneis { width: 360px; height: 360px; right: -120px; top: -140px; }
  .lf-faixas { width: 260px; height: 260px; }
  .lf-pontos { display: none; }
  .lf-simbolo { width: 160vw; right: -60vw; }
  .login-caixa { padding: 30px 22px 26px; }
}
