/* BNI Sublime — visual limpo ao estilo Apple: fundo cinzento claro (ou cinzento escuro), detalhes no vermelho BNI.
   Base partilhada com o Gestão BNI e o Marketing BNI; os componentes próprios estão no fim. */

:root {
  --fundo: #f2f2f7;
  --lateral: #e9e9ee;
  --painel: #ffffff;
  --painel-2: #f9f9fb;
  --texto: #1d1d1f;
  --texto-2: #6e6e73;
  --texto-3: #8e8e93;
  --linha: #e3e3e8;
  --linha-forte: #d2d2d7;
  --hover: rgba(0, 0, 0, 0.045);
  --ativo: rgba(0, 0, 0, 0.075);
  --acento: #cf2030;
  --acento-texto: #ffffff;
  --bni: #cf2030;
  --bni-fundo: rgba(207, 32, 48, 0.09);
  --foco: rgba(207, 32, 48, 0.25);
  --amarelo: #8a6a00;
  --amarelo-fundo: rgba(255, 204, 0, 0.2);
  --verde: #1f8a3b;
  --verde-fundo: rgba(52, 199, 89, 0.13);
  --laranja: #b35c00;
  --laranja-fundo: rgba(255, 149, 0, 0.14);
  --vermelho: #d70015;
  --vermelho-fundo: rgba(255, 59, 48, 0.11);
  --azul: #0066cc;
  --azul-fundo: rgba(0, 113, 227, 0.1);
  --sombra: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 1px rgba(0, 0, 0, 0.02);
  --sombra-alta: 0 20px 60px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
  --raio: 14px;
  --raio-p: 10px;
  --logo-filtro: brightness(0);
  --largura-lateral: 264px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    --fundo: #2a2a2d;
    --lateral: #232326;
    --painel: #36363a;
    --painel-2: #3d3d41;
    --texto: #f5f5f7;
    --texto-2: #aeaeb2;
    --texto-3: #8e8e93;
    --linha: #47474b;
    --linha-forte: #56565a;
    --hover: rgba(255, 255, 255, 0.06);
    --ativo: rgba(255, 255, 255, 0.1);
    --acento: #e5323f;
    --acento-texto: #ffffff;
    --bni: #ff5a64;
    --bni-fundo: rgba(255, 90, 100, 0.14);
    --foco: rgba(255, 90, 100, 0.3);
    --amarelo: #ffd60a;
    --amarelo-fundo: rgba(255, 214, 10, 0.15);
    --verde: #32d74b;
    --verde-fundo: rgba(50, 215, 75, 0.15);
    --laranja: #ffa53a;
    --laranja-fundo: rgba(255, 159, 10, 0.16);
    --vermelho: #ff6961;
    --vermelho-fundo: rgba(255, 69, 58, 0.16);
    --azul: #4da3ff;
    --azul-fundo: rgba(10, 132, 255, 0.18);
    --sombra: 0 0 0 1px rgba(255, 255, 255, 0.04);
    --sombra-alta: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --logo-filtro: none;
    color-scheme: dark;
  }
}
:root[data-tema="escuro"] {
  --fundo: #2a2a2d;
  --lateral: #232326;
  --painel: #36363a;
  --painel-2: #3d3d41;
  --texto: #f5f5f7;
  --texto-2: #aeaeb2;
  --texto-3: #8e8e93;
  --linha: #47474b;
  --linha-forte: #56565a;
  --hover: rgba(255, 255, 255, 0.06);
  --ativo: rgba(255, 255, 255, 0.1);
  --acento: #e5323f;
  --acento-texto: #ffffff;
  --bni: #ff5a64;
  --bni-fundo: rgba(255, 90, 100, 0.14);
  --foco: rgba(255, 90, 100, 0.3);
  --amarelo: #ffd60a;
  --amarelo-fundo: rgba(255, 214, 10, 0.15);
  --verde: #32d74b;
  --verde-fundo: rgba(50, 215, 75, 0.15);
  --laranja: #ffa53a;
  --laranja-fundo: rgba(255, 159, 10, 0.16);
  --vermelho: #ff6961;
  --vermelho-fundo: rgba(255, 69, 58, 0.16);
  --azul: #4da3ff;
  --azul-fundo: rgba(10, 132, 255, 0.18);
  --sombra: 0 0 0 1px rgba(255, 255, 255, 0.04);
  --sombra-alta: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --logo-filtro: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--fundo);
  color: var(--texto);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: var(--bni); text-decoration: none; }
[hidden] { display: none !important; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Login ---------- */
.login {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.login-cartao {
  width: 100%;
  max-width: 380px;
  background: var(--painel);
  border-radius: 22px;
  padding: 36px 32px 28px;
  box-shadow: var(--sombra-alta);
  text-align: center;
}
.login-cartao h1 { font-size: 26px; letter-spacing: -0.03em; margin: 18px 0 2px; font-weight: 700; }
.login-cartao p.sub { color: var(--texto-2); margin: 0 0 26px; }
.login-cartao form { display: grid; gap: 10px; text-align: left; }
.login-cartao .rodape { color: var(--texto-3); font-size: 13px; margin: 18px 0 0; }
.erro-form { color: var(--vermelho); font-size: 14px; min-height: 20px; margin: 2px 0 0; }

/* ---------- Estrutura ---------- */
.app { display: flex; min-height: 100%; }
.lateral {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--largura-lateral);
  background: var(--lateral);
  border-right: 1px solid var(--linha);
  display: flex;
  flex-direction: column;
  z-index: 30;
  padding: 18px 12px 12px;
}
.lateral .marca { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
.lateral .marca img { height: 34px; }
.lateral nav { flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.nav-secao { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--texto-3); padding: 18px 10px 6px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  background: none;
  border-radius: 8px;
  color: var(--texto);
  font-size: 14.5px;
  cursor: pointer;
  text-align: left;
}
.nav-item:hover { background: var(--hover); }
.nav-item.ativo { background: var(--ativo); font-weight: 600; }
.nav-item svg.i { color: var(--texto-2); }
.nav-item.ativo svg.i { color: var(--bni); }
.nav-item .contador { margin-left: auto; background: var(--vermelho); color: #fff; font-size: 11.5px; font-weight: 600; border-radius: 10px; padding: 1px 7px; }
.nav-sub { padding-left: 28px; }
.nav-sub .nav-item { font-size: 14px; padding: 5px 10px; color: var(--texto-2); }
.nav-sub .nav-item.ativo { color: var(--texto); background: var(--hover); }
.lateral .rodape { border-top: 1px solid var(--linha); padding-top: 10px; margin-top: 8px; }
.eu { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.eu .nome { font-weight: 600; font-size: 14px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eu .papel { color: var(--texto-2); font-size: 12.5px; }
.eu .txt { min-width: 0; flex: 1; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--linha-forte); color: var(--texto); font-weight: 600; font-size: 12.5px;
}
.avatar.p { width: 26px; height: 26px; font-size: 11px; }
.rodape-botoes { display: flex; align-items: center; gap: 6px; padding: 4px 8px 0; }
.rodape-botoes .nav-item { justify-content: center; font-size: 13px; color: var(--texto-2); }
.rodape-botoes .so-icone { flex: none; width: 36px; height: 36px; padding: 0; }
.rodape-botoes .sair { flex: none; width: auto; padding: 0 4px 0 8px; }
/* by Ignição Criativa: chapado em cinzento (mais claro no modo escuro); mais escuro ao passar o rato */
.ig-logo { flex: 1; display: flex; justify-content: center; align-items: flex-end; gap: 3px; height: 36px; padding-bottom: 5px; border-radius: 10px; color: #8a8a8f; text-decoration: none; }
:root[data-tema="escuro"] .ig-logo { color: #a9a9ae; }
.ig-logo:hover { color: var(--texto-2); background: var(--hover); text-decoration: none; }
.ig-logo .by { font-size: 10.5px; font-style: italic; line-height: 1; margin-bottom: 9px; }
.ig-logo .marca { width: 73px; height: 26px; background-color: currentColor; -webkit-mask: url(/ignicao-mono.svg) center / contain no-repeat; mask: url(/ignicao-mono.svg) center / contain no-repeat; }

.principal { flex: 1; margin-left: var(--largura-lateral); min-width: 0; }
.topo-movel { display: none; }
.pagina { max-width: 1240px; margin: 0 auto; padding: 34px 40px 80px; }
.vel { display: none; }

@media (max-width: 900px) {
  .lateral { transform: translateX(-100%); transition: transform 0.25s ease; box-shadow: var(--sombra-alta); }
  .app.menu-aberto .lateral { transform: none; }
  .app.menu-aberto .vel { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.3); z-index: 25; }
  .principal { margin-left: 0; }
  .topo-movel {
    display: flex; align-items: center; gap: 10px;
    position: sticky; top: 0; z-index: 20;
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
    background: color-mix(in srgb, var(--fundo) 85%, transparent);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--linha);
  }
  .topo-movel img { height: 26px; }
  .topo-movel .contador { background: var(--vermelho); color: #fff; font-size: 11px; font-weight: 600; border-radius: 10px; padding: 1px 6px; margin-left: auto; }
  .pagina { padding: 20px 16px 80px; }
}

/* ---------- Cabeçalho de página ---------- */
.cabecalho { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.cabecalho h1 { font-size: 32px; line-height: 1.1; letter-spacing: -0.035em; margin: 0; font-weight: 700; }
.cabecalho .sub { color: var(--texto-2); margin: 6px 0 0; font-size: 15px; }
.cabecalho .acoes { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 600px) { .cabecalho h1 { font-size: 27px; } }

.segmentos {
  display: inline-flex; background: var(--ativo); border-radius: 9px; padding: 2px; gap: 2px; margin-bottom: 22px;
}
.segmentos button {
  border: 0; background: none; padding: 6px 16px; border-radius: 7px; font-size: 14px; cursor: pointer; color: var(--texto); font-weight: 500;
}
.segmentos button.ativo { background: var(--painel); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); font-weight: 600; }

/* ---------- Botões e campos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 980px; padding: 8px 16px;
  font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
  background: var(--ativo); color: var(--texto);
  transition: transform 0.08s ease, background 0.15s ease, opacity 0.15s;
}
.btn:hover { background: color-mix(in srgb, var(--ativo) 100%, var(--texto) 6%); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn.primario { background: var(--acento); color: var(--acento-texto); }
.btn.primario:hover { opacity: 0.88; background: var(--acento); }
.btn.perigo { background: var(--vermelho-fundo); color: var(--vermelho); }
.btn.verde { background: var(--verde-fundo); color: var(--verde); }
.btn.fantasma { background: none; color: var(--texto-2); }
.btn.fantasma:hover { background: var(--hover); color: var(--texto); }
.btn.grande { padding: 11px 18px; font-size: 15px; border-radius: 12px; width: 100%; }
.btn.p { padding: 5px 12px; font-size: 13px; }
.btn.icone { padding: 7px; border-radius: 50%; }
.btn.icone.p { padding: 5px; }

.campo { display: grid; gap: 6px; align-content: start; }
.campo > span { font-size: 13px; font-weight: 500; color: var(--texto-2); }
.entrada, select.entrada, textarea.entrada {
  width: 100%; padding: 10px 12px; border-radius: var(--raio-p);
  border: 1px solid var(--linha-forte); background: var(--painel); color: var(--texto); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 42px;
}
.entrada:focus { border-color: var(--bni); box-shadow: 0 0 0 4px var(--foco); }
select.entrada { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.entrada.p { padding: 6px 10px; min-height: 34px; font-size: 14px; }
.grelha-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .grelha-2 { grid-template-columns: 1fr; } }
.form { display: grid; gap: 14px; }

.interruptor { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.interruptor input { appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--linha-forte); position: relative; cursor: pointer; transition: background 0.2s; flex: none; margin: 0; }
.interruptor input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.2s; }
.interruptor input:checked { background: var(--bni); }
.interruptor input:checked::after { transform: translateX(18px); }

/* ---------- Cartões e listas ---------- */
.cartao { background: var(--painel); border-radius: var(--raio); box-shadow: var(--sombra); }
.cartao.pad { padding: 20px; }
.cartao h2, .secao-titulo { font-size: 19px; letter-spacing: -0.02em; margin: 0 0 4px; font-weight: 650; }
.secao-titulo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 30px 0 12px; }
.secao-titulo:first-child { margin-top: 0; }
.secao-titulo small { font-size: 14px; font-weight: 400; color: var(--texto-2); }
.muted { color: var(--texto-2); }
.pequeno { font-size: 13px; }

.lista { background: var(--painel); border-radius: var(--raio); box-shadow: var(--sombra); overflow: hidden; }
.lista > * + * { border-top: 1px solid var(--linha); }
.linha { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 52px; }
.linha .cresce { flex: 1; min-width: 0; }
.linha .titulo { font-weight: 550; }
.linha .meta { color: var(--texto-2); font-size: 13.5px; }
button.linha { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; }
button.linha:hover { background: var(--hover); }

.vazio { text-align: center; padding: 48px 20px; color: var(--texto-2); }
.vazio svg.i { width: 36px; height: 36px; stroke-width: 1.4; color: var(--texto-3); margin-bottom: 10px; }
.vazio h3 { color: var(--texto); margin: 0 0 6px; font-size: 17px; }
.vazio p { margin: 0 0 16px; }

.etiqueta {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 980px; font-size: 12.5px; font-weight: 500;
  background: var(--ativo); color: var(--texto-2); white-space: nowrap;
}
.etiqueta.verde { background: var(--verde-fundo); color: var(--verde); }
.etiqueta.laranja { background: var(--laranja-fundo); color: var(--laranja); }
.etiqueta.vermelho { background: var(--vermelho-fundo); color: var(--vermelho); }
.etiqueta.azul { background: var(--azul-fundo); color: var(--azul); }
.etiqueta.amarelo { background: var(--amarelo-fundo); color: var(--amarelo); }
.etiqueta.bni { background: var(--bni-fundo); color: var(--bni); }
.etiqueta.forte { background: var(--acento); color: var(--acento-texto); }
.etiquetas { display: flex; flex-wrap: wrap; gap: 5px; }

/* ---------- Modal ---------- */
.modal-fundo {
  position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.32);
  display: grid; place-items: center; padding: 24px;
  animation: aparecer 0.18s ease;
}
.modal {
  background: var(--painel); border-radius: 20px; box-shadow: var(--sombra-alta);
  width: 100%; max-width: 520px; max-height: calc(100vh - 48px); display: flex; flex-direction: column;
  animation: subir 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
.modal.largo { max-width: 820px; }
.modal > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 6px; }
.modal > header h2 { margin: 0; font-size: 21px; letter-spacing: -0.025em; }
.modal > header .sub { color: var(--texto-2); margin-top: 3px; font-size: 14.5px; }
.modal > .corpo { padding: 12px 22px 18px; overflow-y: auto; }
.modal > footer { display: flex; gap: 8px; justify-content: flex-end; align-items: center; padding: 14px 22px 18px; border-top: 1px solid var(--linha); flex-wrap: wrap; }
.modal > footer .esquerda { margin-right: auto; }
@keyframes aparecer { from { opacity: 0; } }
@keyframes subir { from { transform: translateY(14px) scale(0.98); opacity: 0; } }
@media (max-width: 640px) {
  .modal-fundo { padding: 0; place-items: end stretch; }
  .modal { border-radius: 18px 18px 0 0; max-height: 92vh; max-width: none; padding-bottom: env(safe-area-inset-bottom); }
}
.bloco { margin-top: 18px; }
.bloco:first-child { margin-top: 4px; }
.bloco > .rotulo-bloco { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--texto-3); font-weight: 600; margin-bottom: 8px; }
.lista.interna { box-shadow: none; border: 1px solid var(--linha); border-radius: 12px; background: var(--painel-2); }
.lista.interna .linha { min-height: 46px; padding: 8px 12px; }
.lista.interna select.entrada { max-width: 230px; }

/* ---------- Toasts ---------- */
#toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; pointer-events: none; }
.toast {
  background: var(--texto); color: var(--fundo); padding: 10px 18px; border-radius: 980px; font-size: 14px; font-weight: 500;
  box-shadow: var(--sombra-alta); animation: subir 0.2s ease; text-align: center;
}
.toast.erro { background: var(--vermelho); color: #fff; }

/* ---------- Tabelas simples ---------- */
.tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela th { text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--texto-3); padding: 8px 8px; border-bottom: 1px solid var(--linha); }
.tabela td { padding: 7px 8px; border-bottom: 1px solid var(--linha); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.rolar-x { overflow-x: auto; }

/* ---------- Diversos ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--linha-forte); background: var(--painel); border-radius: 980px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.chip:hover { background: var(--hover); }
.nota { background: var(--painel-2); border: 1px solid var(--linha); border-radius: 12px; padding: 12px 14px; color: var(--texto-2); font-size: 13.5px; }
.nota.aviso-nota { background: var(--laranja-fundo); border-color: transparent; color: var(--laranja); }
.pesquisa { position: relative; }
.pesquisa svg.i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--texto-3); width: 16px; height: 16px; }
.pesquisa .entrada { padding-left: 34px; min-height: 36px; border-radius: 10px; background: var(--painel); }
.senha-ver { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
.grelha-cartoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.pilha { display: grid; gap: 16px; max-width: 640px; }
.carregar { padding: 60px 0; text-align: center; color: var(--texto-3); }
.carregar::before { content: ""; display: inline-block; width: 22px; height: 22px; border: 2.5px solid var(--linha-forte); border-top-color: var(--texto-2); border-radius: 50%; animation: girar 0.8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.ola { font-size: 34px; }
@media (max-width: 600px) { .ola { font-size: 28px; } .so-desktop { display: none !important; } }
/* Indicadores */
.indicadores { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 14px; margin-bottom: 8px; }
@media (max-width: 420px) { .indicadores { grid-template-columns: 1fr 1fr; } .indicador .valor { font-size: 20px; } }
.indicador { background: var(--painel); border-radius: var(--raio); box-shadow: var(--sombra); padding: 16px 18px; display: grid; gap: 4px; color: inherit; min-width: 0; }
a.indicador:hover { background: color-mix(in srgb, var(--painel) 100%, var(--texto) 3%); }
.indicador .rotulo { color: var(--texto-2); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.indicador .rotulo svg.i { width: 15px; height: 15px; }
.indicador .valor { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; overflow-wrap: break-word; }
.indicador .valor small { font-size: 14px; font-weight: 500; color: var(--texto-2); letter-spacing: 0; }
.indicador .extra { color: var(--texto-3); font-size: 12.5px; }

/* Diversos */
.dados-lista { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; font-size: 14.5px; margin: 0; }
.dados-lista dt { color: var(--texto-2); }
.dados-lista dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .dados-lista { grid-template-columns: 1fr; } .dados-lista dd { margin-bottom: 6px; } }
.marcador { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--texto-3); }
.valor-num { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.cabecalho-voltar { display: inline-flex; align-items: center; gap: 4px; color: var(--bni); font-size: 15px; margin-bottom: 10px; }
.grelha-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .grelha-3 { grid-template-columns: 1fr; } }
.linha .acoes-linha { display: flex; gap: 6px; align-items: center; flex: none; }
.mes-grupo { font-size: 13px; font-weight: 600; color: var(--texto-3); text-transform: uppercase; letter-spacing: 0.04em; padding: 18px 4px 8px; }

/* Disposição em duas colunas (conteúdo + lateral direita) */
.mes-nav { display: flex; align-items: center; gap: 4px; }
.mes-nav .mes { font-size: 17px; font-weight: 600; min-width: 150px; text-align: center; text-transform: capitalize; }
.barra-ferramentas { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.duas-colunas { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
@media (max-width: 1180px) { .duas-colunas { grid-template-columns: 1fr; } .duas-colunas > aside { order: 2; } }
.lado-direito { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; position: sticky; top: 24px; min-width: 0; }
.lado-direito .btn { white-space: normal; justify-content: flex-start; text-align: left; }
.lado-direito .cartao h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--texto-3); margin: 0 0 12px; font-weight: 600; }
.resposta { display: flex; gap: 6px; margin-top: 10px; }

/* ---------- Marca ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--texto); }
.logo-selo {
  display: inline-grid; place-items: center; height: 30px; padding: 0 8px; border-radius: 8px;
  background: var(--bni); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: 0.02em;
}
.logo-texto { font-weight: 650; font-size: 17px; letter-spacing: -0.02em; }
.logo.grande .logo-selo { height: 46px; padding: 0 12px; border-radius: 12px; font-size: 21px; }
.logo.grande .logo-texto { font-size: 24px; }
.login-cartao { position: relative; overflow: hidden; }
.login-cartao::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--bni); }
.lateral .area { font-size: 11.5px; font-weight: 600; color: var(--texto-3); text-transform: uppercase; letter-spacing: 0.05em; padding: 0 10px 8px; }
.nav-grupo { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; padding: 14px 10px 4px; color: var(--texto); display: flex; align-items: center; gap: 8px; }
.nav-grupo::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--bni); }
.nav-item.grupo-link { font-size: 14px; }

/* Botões de alternar (tipo, categoria, nível) */
.alternar { display: flex; gap: 8px; flex-wrap: wrap; }
.alternar button { border: 1.5px solid var(--linha-forte); background: var(--painel); border-radius: 980px; padding: 8px 16px; cursor: pointer; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.alternar button.ativo { background: var(--acento); color: var(--acento-texto); border-color: var(--acento); }
.texto-livre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }


/* =====================================================================
   BNI Sublime — componentes próprios
   ===================================================================== */
.login { position: relative; }
.tema-login { position: absolute; top: 16px; right: 16px; }
.topo-login { position: absolute; top: 16px; right: 16px; display: flex; gap: 8px; align-items: center; }
.tutorial-login svg { color: var(--bni); }

/* Botão Atualizar (topo do menu) */
.bloco-atualizar { padding: 0 2px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--linha); }
.btn.atualizar { width: 100%; background: var(--bni); color: #fff; padding: 11px 16px; font-size: 15px; font-weight: 600; border-radius: 12px; }
.btn.atualizar:hover { opacity: 0.9; }
.btn.atualizar:disabled { opacity: 0.75; cursor: progress; }
.btn.atualizar.a-girar svg.i { animation: girar 0.9s linear infinite; }
.btn.atualizar.compacto { width: auto; padding: 8px 10px; border-radius: 10px; }
.quando-atualizou { text-align: center; color: var(--texto-3); font-size: 12.5px; margin-top: 7px; }
.topo-acao { margin-left: auto; }

.faixa { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; }
.faixa svg.i { margin-top: 1px; }

/* Imagens na identidade dos relatórios */
.moldura-id { border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra), 0 10px 30px rgba(0, 0, 0, 0.08); max-width: 1100px; }
.tela-id { display: block; width: 100%; height: auto; }
.numeros-semana { margin-top: 20px; max-width: 1100px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 700px) { .numeros-semana { grid-template-columns: 1fr 1fr; } }

/* Tabela de ONF na identidade (vermelho BNI, fundo claro) */
.tabela-id-moldura { background: linear-gradient(135deg, #fafafa, #ececec); border-radius: var(--raio); box-shadow: var(--sombra); overflow-x: auto; border-left: 6px solid #d0202f; max-width: 1100px; }
.tabela-id { width: 100%; border-collapse: collapse; font-family: Inter, -apple-system, sans-serif; color: #2b2b2b; font-size: 15px; min-width: 620px; }
.tabela-id th { background: #d0202f; color: #fff; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 12px 16px; white-space: nowrap; }
.tabela-id td { padding: 11px 16px; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.tabela-id tbody tr:nth-child(odd) td { background: rgba(255, 255, 255, 0.7); }
.tabela-id tr.novo-membro td { border-top: 1.5px solid rgba(0, 0, 0, 0.1); }
.tabela-id tbody tr:first-child td { border-top: 0; }
.tabela-id .membro { font-weight: 700; }
.tabela-id .muted { color: #6e6e6e; }
.tabela-id .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabela-id .valor { color: #d0202f; font-weight: 800; }
.tabela-id .tipo { display: inline-block; margin-left: 8px; font-size: 11.5px; font-weight: 600; color: #6e6e6e; background: rgba(0, 0, 0, 0.06); border-radius: 6px; padding: 1px 6px; vertical-align: 1px; }
.tabela-id tfoot td { border-top: 3px solid #d0202f; border-bottom: 0; font-weight: 800; font-size: 18px; padding: 16px; }
.tabela-id tfoot .total { color: #d0202f; font-size: 30px; font-weight: 900; letter-spacing: -0.03em; }
.tabela-id .vazio-linha { padding: 26px 16px; }
.por-membro { margin-top: 16px; max-width: 1100px; display: grid; gap: 10px; }
.por-membro h2 { margin-bottom: 4px; }
.linha-membro { display: grid; grid-template-columns: minmax(120px, 220px) 1fr auto; gap: 14px; align-items: center; font-size: 14.5px; }
.linha-membro .nome { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linha-membro small { color: var(--texto-3); font-weight: 500; }
.linha-membro .barra { height: 10px; background: var(--ativo); border-radius: 5px; overflow: hidden; }
.linha-membro .barra span { display: block; height: 100%; background: var(--bni); border-radius: 5px; }

/* Objetivos: realizado à esquerda, objetivo à direita */
.objetivos { max-width: 1100px; display: grid; gap: 22px; padding: 22px 24px; }
.obj-cabeca, .obj-barra { display: grid; grid-template-columns: 130px 1fr 130px; gap: 16px; align-items: center; }
.obj-cabeca { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--texto-3); margin-bottom: -10px; }
.obj-cabeca span:first-child { text-align: right; }
.obj-titulo { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 6px 146px; font-size: 15.5px; }
.obj-barra .real { text-align: right; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.obj-barra .objetivo { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; color: var(--texto); font-variant-numeric: tabular-nums; }
.trilho { position: relative; height: 22px; background: var(--ativo); border-radius: 11px; }
.enchimento { position: absolute; inset: 0 auto 0 0; border-radius: 11px; }
.hoje { position: absolute; top: -6px; bottom: -6px; width: 3px; margin-left: -1.5px; background: var(--texto); border-radius: 2px; }
.obj-linha.verde .real, .etiqueta.verde { color: var(--verde); }
.obj-linha.amarelo .real, .etiqueta.amarelo { color: var(--amarelo); }
.obj-linha.vermelho .real, .etiqueta.vermelho { color: var(--vermelho); }
.obj-linha.verde .enchimento, .ponto.verde { background: #1f9d55; }
.obj-linha.amarelo .enchimento, .ponto.amarelo { background: #e09b00; }
.obj-linha.vermelho .enchimento, .ponto.vermelho { background: #d0202f; }
.etiqueta { font-size: 12px; font-weight: 600; border-radius: 6px; padding: 1px 7px; background: var(--ativo); }
.legenda { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--texto-2); border-top: 1px solid var(--linha); padding-top: 14px; }
.legenda span { display: inline-flex; align-items: center; gap: 7px; }
.legenda .ponto { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legenda .traco { width: 3px; height: 14px; background: var(--texto); border-radius: 2px; display: inline-block; }
.explica { max-width: 760px; margin-top: 12px; }
@media (max-width: 600px) {
  .obj-cabeca, .obj-barra { grid-template-columns: 82px 1fr 82px; gap: 8px; }
  .obj-titulo { margin-left: 0; }
  .obj-barra .real, .obj-barra .objetivo { font-size: 16px; }
  .objetivos { padding: 18px 16px; }
}

/* Visitas */
.visita h3 { margin: 0 0 4px; font-size: 17px; letter-spacing: -0.02em; }
.visita p { margin: 0; }
.visita .convidou { margin-top: 10px; font-size: 13.5px; color: var(--texto-2); }
.visita { display: flex; flex-direction: column; }
.placa-linha { display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 14px; }
.placa-linha .tipo-placa { width: auto; min-height: 34px; padding: 4px 30px 4px 10px; font-size: 13.5px; }
.etiqueta-placa { color: var(--bni, #cf2030); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.acrescentar-pessoa { margin-bottom: 16px; }
.acrescentar-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }

/* Conta */
.pilha-form { display: grid; gap: 12px; align-content: start; }
.ok { color: var(--verde); }
.erro-txt { color: var(--vermelho); }

/* Filtro de semanas */
.filtro-semana { position: relative; display: inline-flex; align-items: center; }
.filtro-semana svg.i { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--bni); pointer-events: none; }
.filtro-semana select {
  appearance: none; border: 1px solid var(--linha-forte); background: var(--painel); border-radius: 980px;
  padding: 8px 34px 8px 36px; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--texto);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.filtro-semana select:focus { outline: none; box-shadow: 0 0 0 3px var(--foco); }
.cabecalho { align-items: flex-start; }
.nota.em-curso { background: var(--azul-fundo); border-color: transparent; color: var(--azul); }

/* Resultados BNI: grelha 2 × 2, com o botão de descarregar no canto de cada imagem */
.resultados { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; max-width: 1100px; }
@media (max-width: 760px) { .resultados { grid-template-columns: 1fr; } }
.resultado h2 { margin: 0 0 8px; font-size: 15.5px; letter-spacing: -0.02em; font-weight: 650; }
.resultado .bni { color: var(--bni); }
.resultado-img { position: relative; }
.descarregar-canto { position: absolute; right: 10px; bottom: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); padding: 7px 12px; font-size: 13px; }
.form-resultados input[type="month"] { max-width: 220px; }

/* Código de ética */
.etica-admin { margin-top: 18px; max-width: 1100px; display: grid; gap: 12px; }
.etica-admin h2 { margin: 0; }
.etica-numeros { display: flex; flex-wrap: wrap; gap: 6px; }
.etica-numeros .btn { min-width: 44px; background: var(--ativo); }
.etica-numeros .btn.primario { background: var(--acento); }

/* Prémio do Palestrante */
.premio-lista { margin-top: 18px; max-width: 1100px; padding: 8px 0; }
.premio-cab { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 20px 12px; border-bottom: 1px solid var(--linha); font-size: 14px; }
.premio-linha { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 20px; border-bottom: 1px solid var(--linha); font-size: 14.5px; }
.premio-linha:last-child { border-bottom: 0; }
.premio-n { width: 28px; height: 28px; border-radius: 50%; background: var(--bni); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.premio-nome { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.premio-para { font-size: 13px; }
.premio-data { font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .premio-linha { grid-template-columns: 30px minmax(0, 1fr) auto; } .premio-para { display: none; } }

/* Vários grupos: escolher o grupo, botão BNI Connect e páginas de gestão */
.escolher-grupo { display: block; padding: 0 2px 12px; }
.escolher-grupo select {
  width: 100%; appearance: none; border: 1px solid var(--linha-forte); background: var(--painel); color: var(--texto);
  border-radius: 10px; padding: 8px 32px 8px 12px; font-weight: 600; font-size: 14px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.bni-connect-botao { display: flex; align-items: center; gap: 8px; margin: 2px 8px 6px; padding: 7px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--texto); background: var(--painel); border: 1px solid var(--linha); }
.bni-connect-botao small { margin-left: auto; font-weight: 500; color: var(--texto-3); font-size: 12px; }
.bni-connect-botao .ponto { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.bni-connect-botao.ligado .ponto { background: var(--verde); }
.bni-connect-botao.desligado .ponto { background: var(--laranja); }
.bni-connect-botao:hover { background: var(--hover); }
.nota.estado-ligado { background: var(--verde-fundo); border-color: transparent; color: var(--verde); }
.duas-lado { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.botoes-linha { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.caixas-grupos { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.caixa { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; cursor: pointer; }
.lista-consultores { display: grid; }
.consultor { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--linha); }
.consultor-pesq { display: grid; gap: 2px; justify-items: start; }
.consultor-pesq .entrada { width: 76px; min-height: 30px; padding: 3px 8px; }
.consultor-quem { display: grid; min-width: 0; }
.consultor-quem b, .consultor-quem span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.escolher-grupos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.etiquetas-grupos { display: contents; }
.etiqueta-grupo { display: inline-flex; align-items: center; gap: 2px; background: var(--ativo); border-radius: 980px; padding: 3px 4px 3px 11px; font-size: 13px; font-weight: 550; }
.etiqueta-grupo button { border: 0; background: none; color: var(--texto-3); cursor: pointer; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; padding: 0; }
.etiqueta-grupo button:hover { background: var(--hover); color: var(--texto); }
.etiqueta-grupo button svg.i { width: 13px; height: 13px; }
.escolher-grupos select.juntar-grupo { width: auto; min-height: 30px; padding: 3px 28px 3px 10px; font-size: 13px; border-radius: 980px; }
.novo-consultor { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--linha); }
.novo-consultor h3 { margin: 0; font-size: 15px; }
.novo-consultor-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.contas-cartoes { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.contas-cartoes .duas-lado { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.contas-topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.contas-topo h2 { margin: 0; }
.contas-topo .pesquisa { width: min(320px, 100%); }
@media (max-width: 700px) {
  .consultor { grid-template-columns: minmax(0, 1fr) auto; }
  .consultor .escolher-grupos { grid-column: 1 / -1; grid-row: 2; }
}
.grelha-grupo { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

/* =====================================================================
   Folha de sala — A4 deitado, 1123 × 794 px (96 dpi). Medidas tiradas do modelo do Sublime.
   As páginas são sempre claras (são para imprimir), mesmo com o site em modo escuro.
   ===================================================================== */
.folha-previa { display: grid; gap: 18px; max-width: 1123px; }
.folha-caixa { position: relative; overflow: hidden; border-radius: 10px; box-shadow: var(--sombra), 0 10px 30px rgba(0, 0, 0, 0.1); background: #fff; }
.folha-caixa .folha-pagina { transform-origin: 0 0; position: absolute; top: 0; left: 0; }
.folha-palco { position: fixed; left: -30000px; top: 0; display: grid; gap: 0; }
.folha-edicao { max-width: 1123px; margin-bottom: 16px; display: grid; gap: 10px; }

.folha-pagina {
  width: 1123px; height: 794px; background: #fff; color: #1d1d1b; overflow: hidden; position: relative;
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif; letter-spacing: 0; line-height: 1.25; -webkit-font-smoothing: antialiased;
}
.folha-pagina p { margin: 0; }
.fs-vazio { background: #d9d9d9; display: inline-block; }
.fs-vazio.pessoa { background: #5aa9e6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Ccircle cx='12' cy='8' r='4.2'/%3E%3Cpath d='M3.5 22c0-5 3.8-8 8.5-8s8.5 3 8.5 8z'/%3E%3C/svg%3E") center 70% / 78% no-repeat; }

/* ---- frente: esquerda ---- */
.frente .fs-esq { position: absolute; left: 33px; top: 26px; width: 500px; bottom: 18px; }
.fs-inquerito { display: flex; align-items: center; gap: 10px; height: 50px; font-size: 13px; line-height: 1.1; }
.fs-inquerito .fs-qr, .fs-power .fs-qr { width: 50px; height: 50px; image-rendering: pixelated; }
.fs-rota { margin-top: 8px; background: #e9e9e9; border-radius: 26px 26px 26px 26px; padding: 9px 0 10px 14px; }
.fs-rota-titulo { color: #d0202f; text-align: center; font-size: 13.5px; letter-spacing: 0.08em; padding-right: 30px; margin-bottom: 6px; }
.fs-rota-linha { display: grid; grid-template-columns: 58px 1fr 112px; gap: 4px; height: 50px; margin-bottom: 4px; }
.fs-rota-linha:last-child { margin-bottom: 0; }
.fs-rota-linha > div { background: #d0202f; color: #fff; display: flex; align-items: center; }
.fs-rota-linha:first-of-type .fs-rota-dia { border-top-left-radius: 20px; }
.fs-rota-linha:last-child .fs-rota-dia { border-bottom-left-radius: 20px; }
.fs-rota-linha:first-of-type .fs-rota-formato { border-top-right-radius: 20px; }
.fs-rota-linha:last-child .fs-rota-formato { border-bottom-right-radius: 20px; }
.fs-rota-dia { justify-content: center; font-size: 26px; font-weight: 800; }
.fs-rota-pessoa { gap: 10px; padding: 0 10px; }
.fs-rota-foto { width: 38px; height: 38px; object-fit: cover; flex: none; }
.fs-rota-nome { display: grid; gap: 2px; min-width: 0; flex: 1; }
.fs-rota-nome b { font-size: 14px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-rota-nome small { font-size: 8px; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-rota-logo { width: 70px; height: 38px; background: #fff; flex: none; display: grid; place-items: center; overflow: hidden; }
.fs-rota-logo img { max-width: 66px; max-height: 36px; object-fit: contain; }
.fs-rota-formato { flex-direction: column; justify-content: center; font-size: 10.5px; letter-spacing: 0.04em; font-weight: 400; line-height: 1.15; }
.fs-rota-formato b { font-weight: 700; font-size: 11px; }
.fs-org { margin-top: 9px; font-size: 10.6px; line-height: 1.3; text-align: justify; display: grid; gap: 6px; }
.fs-org b { font-weight: 800; }
.fs-meio { display: grid; grid-template-columns: 312px 1fr; gap: 16px; margin-top: 10px; align-items: start; }
.fs-categorias { background: #e9e9e9; border-radius: 22px; overflow: hidden; }
.fs-cat-titulo { background: #d0202f; color: #fff; font-size: 11px; letter-spacing: 0.03em; padding: 9px 14px; border-radius: 22px 22px 0 0; }
.fs-cat-lista { display: grid; grid-template-columns: 1fr 1fr; padding: 7px 8px 9px 4px; }
.fs-cat-lista ul { margin: 0; padding-left: 20px; font-size: 8.8px; line-height: 1.3; }
.fs-glossario { color: #d0202f; }
.fs-glo-titulo { font-size: 11.2px; letter-spacing: 0.02em; line-height: 1.12; margin-bottom: 6px; }
.fs-glossario p { font-size: 8.4px; line-height: 1.2; margin-bottom: 5px; }
.fs-glossario b { font-weight: 700; }
.fs-power { position: absolute; left: 0; bottom: 22px; width: 318px; display: grid; grid-template-columns: 1fr 64px; gap: 12px; align-items: center; }
.fs-power p { font-size: 8.6px; line-height: 1.26; text-align: justify; }
.fs-power .fs-qr { width: 64px; height: 64px; }
.fs-credito { position: absolute; left: 0; bottom: 2px; font-size: 8.3px; }

/* ---- frente: coluna cinzenta ---- */
.fs-coluna { position: absolute; left: 572px; top: 0; width: 180px; height: 778px; background: #e9e9e9; border-radius: 0 0 22px 22px; padding: 26px 0 0; }
.fs-numero { text-align: center; font-size: 19px; font-weight: 800; letter-spacing: 0.02em; }
.fs-data { text-align: center; font-size: 16px; line-height: 1.25; margin: 6px 0 10px; font-weight: 400; }
.fs-cargos { display: grid; padding: 0 12px 6px; font-size: 9.3px; line-height: 1.24; }
.fs-cargos b { font-weight: 700; margin-top: 1px; }
.fs-secao { background: #d0202f; color: #fff; font-weight: 700; font-size: 11px; padding: 3px 12px; margin: 5px -4px 5px -4px; letter-spacing: 0.02em; }

/* ---- frente: direita ---- */
.frente .fs-dir { position: absolute; left: 764px; top: 14px; width: 338px; bottom: 16px; }
.fs-marca { display: flex; align-items: center; gap: 9px; height: 40px; }
.fs-marca img { height: 30px; }
.fs-marca-traco { width: 2px; height: 36px; background: #d0202f; }
.fs-marca-nome { color: #d0202f; font-weight: 800; font-size: 33px; letter-spacing: 0.01em; font-variant: small-caps; line-height: 1; text-transform: none; }
.fs-palestrante { position: relative; height: 196px; margin-top: 4px; }
.fs-pal-foto { position: absolute; right: 0; top: 0; width: 128px; height: 188px; object-fit: cover; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.fs-pal-texto { position: absolute; left: 0; top: 30px; width: 192px; }
.fs-pal-1 { font-size: 18px; font-weight: 800; letter-spacing: 0.01em; }
.fs-pal-2 { color: #d0202f; font-size: 36px; font-weight: 900; line-height: 1; margin-top: 10px; padding-bottom: 7px; border-bottom: 5px solid #d0202f; width: 130px; white-space: nowrap; }
.fs-pal-nome { background: #d0202f; color: #fff; font-weight: 800; font-size: 21px; line-height: 1.12; text-align: center; padding: 10px 8px; margin-top: 14px; width: 190px; letter-spacing: 0.02em; }
.fs-acerca { font-size: 9.2px; line-height: 1.3; text-align: justify; display: grid; gap: 6px; margin-top: 12px; }
.fs-acerca > b { font-weight: 800; margin-bottom: -4px; }
.fs-baixo { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 166px 1fr; gap: 9px; height: 300px; }
.fs-agenda { background: #d0202f; color: #fff; border-radius: 20px 20px 18px 18px; overflow: hidden; }
.fs-agenda-titulo { text-align: center; font-size: 9.4px; letter-spacing: 0.05em; padding: 8px 4px 6px; }
.fs-agenda-linha { display: grid; padding: 2px 7px 3px; border-top: 2px solid #fff; font-size: 9px; line-height: 1.15; }
.fs-agenda-linha b { font-weight: 800; }
.fs-acum { border: 3px solid #d0202f; border-radius: 18px; padding: 10px 10px 6px 12px; display: grid; align-content: start; gap: 4px; }
.fs-acum-topo { display: flex; gap: 7px; align-items: flex-start; color: #d0202f; font-weight: 800; font-size: 10.6px; line-height: 1.08; margin-bottom: 4px; }
.fs-acum-ico { width: 40px; height: 36px; flex: none; margin-top: 8px; }
.fs-acum-item { display: grid; }
.fs-acum-item b { color: #d0202f; font-size: 17px; font-weight: 800; line-height: 1.1; }
.fs-acum-item span { font-size: 9.4px; font-weight: 700; line-height: 1.15; }

/* ---- verso: membros ---- */
.verso { padding: 22px 16px 0 17px; }
.fs-m-colunas { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fs-m-cabeca, .fs-m-linha { display: grid; grid-template-columns: 18px 108px 262px 1fr; gap: 6px; align-items: center; }
.fs-m-cabeca { font-size: 9.4px; letter-spacing: 0.06em; text-align: center; line-height: 1.05; height: 24px; margin-bottom: 4px; }
.fs-m-linha { --alt: calc(680px / var(--linhas) - 6px); height: calc(680px / var(--linhas)); padding: 3px 0; }
.fs-m-num { font-size: 9.6px; text-align: center; }
.fs-m-logo { height: var(--alt); border: 1.5px solid #d0202f; display: grid; place-items: center; overflow: hidden; background: #fff; }
.fs-m-logo img { width: 104px; height: calc(var(--alt) - 4px); object-fit: contain; }
.fs-m-cartao { height: var(--alt); display: grid; grid-template-columns: var(--alt) 1fr; background: #c4161c; color: #fff; clip-path: polygon(0 0, 96% 0, 100% 12%, 99% 100%, 0 100%); border-radius: 0 0 8px 0; overflow: hidden; }
.fs-m-cartao.vaga { background: #d0202f; opacity: 0.92; }
.fs-m-foto { width: var(--alt); height: var(--alt); object-fit: cover; display: block; }
.fs-m-texto { display: grid; align-content: center; padding: 0 8px 0 10px; font-size: 10.5px; line-height: 1.12; min-width: 0; }
.fs-m-texto b { font-weight: 700; font-size: 11px; }
.fs-m-texto span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-m-email { font-size: 9.6px; }
.fs-m-pedido { height: var(--alt); background: #e9e7e7; }
.fs-aviso { position: absolute; left: 34px; right: 30px; bottom: 22px; font-style: italic; color: #6e6e6e; font-size: 14.5px; line-height: 1.2; letter-spacing: 0.04em; }

/* páginas de gestão da folha */
.rota { display: grid; gap: 8px; max-width: 760px; }
.rota-linha { display: grid; grid-template-columns: 150px 1fr 150px; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--linha); }
.rota-data { display: grid; }
.rota-data small { color: var(--texto-3); font-size: 12px; }
@media (max-width: 600px) { .rota-linha { grid-template-columns: 1fr 1fr; } .rota-data { grid-column: 1 / -1; } }
.membros-lista { max-width: 900px; overflow: hidden; }
.membro { border-top: 1px solid var(--linha); }
.membro:first-child { border-top: 0; }
.membro > summary { display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; list-style: none; }
.membro > summary::-webkit-details-marker { display: none; }
.membro[open] > summary { background: var(--hover); }
.membro > form, .membro > .botoes-linha { padding: 0 16px; }
.membro > .botoes-linha { padding-bottom: 14px; }
.membro > form { padding-top: 12px; }
.membro.inativo .membro-nome { opacity: 0.5; }
.membro-foto { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.membro-foto.vazio { display: grid; place-items: center; background: var(--ativo); color: var(--texto-3); }
.membro-nome { flex: 1; display: grid; min-width: 0; }
.membro-nome small { color: var(--texto-2); font-size: 12.5px; }
.membro-logo { width: 70px; height: 34px; object-fit: contain; background: #fff; border-radius: 4px; flex: none; }
.membro-logo.vazio { display: grid; place-items: center; font-size: 10.5px; color: var(--texto-3); background: var(--ativo); }
.membro.novo > summary { color: var(--bni); }
.secao-lideranca { display: grid; gap: 6px; padding-top: 8px; border-top: 1px solid var(--linha); }
.acum-campos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.barra-guardar { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--fundo) 30%); }
form.pilha-form > .cartao { max-width: 860px; }


/* =====================================================================
   Financeiro — trazido do Gestão BNI
   ===================================================================== */
/* ---------- Dinheiro ---------- */
.positivo { color: var(--verde); }
.negativo { color: var(--vermelho); }
.atencao { color: var(--laranja); }
.indicador.saldo { box-shadow: inset 0 3px 0 var(--bni), var(--sombra); }
.indicador .valor.positivo { color: var(--verde); }
.indicador .valor.negativo { color: var(--vermelho); }
.indicador .valor.atencao { color: var(--laranja); }
.barra { height: 6px; border-radius: 3px; background: var(--vermelho-fundo); overflow: hidden; display: flex; min-width: 80px; }
.barra > span { background: var(--verde); }
.barra > span.isento { background: var(--amarelo); }
.barra.vazia { background: var(--ativo); }


/* ---------- Trio no topo do grupo ---------- */
.trio-linha { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--texto-2); margin: -10px 0 20px; }
.trio-linha b { color: var(--texto); font-weight: 550; }

/* ---------- Reuniões e quotas ---------- */
.reuniao-linha .data { width: 58px; flex: none; text-align: center; line-height: 1.1; }
.reuniao-linha .data .d { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.reuniao-linha .data .m { font-size: 11.5px; text-transform: uppercase; color: var(--bni); font-weight: 600; letter-spacing: 0.04em; }
.reuniao-linha .barra { width: 100%; max-width: 220px; margin-top: 6px; }
.valores { text-align: right; display: grid; gap: 1px; flex: none; }
.valores .valor-num { font-size: 15px; }
.valores .pequeno { color: var(--texto-2); }
.quota { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px 16px; }
.quota .quem { display: flex; gap: 10px; align-items: center; min-width: 0; flex: 1 1 200px; }
.quota .controlos { margin-left: auto; }
.quota .quem .txt { min-width: 0; }
.quota .quem .nome { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quota .quem .empresa { font-size: 12.5px; color: var(--texto-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quota .controlos { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.quota .controlos .entrada.valor { width: 86px; text-align: right; }
.quota .controlos select.entrada, .quota .controlos .forma-vazia { width: 196px; }
@media (max-width: 760px) {
  .quota { grid-template-columns: 1fr; }
  .quota .controlos { justify-content: flex-start; }
  .quota .controlos select.entrada { width: auto; flex: 1; min-width: 160px; }
  .quota .controlos .forma-vazia { display: none; }
}
.estado-seg { display: inline-flex; background: var(--ativo); border-radius: 9px; padding: 2px; gap: 2px; }
.estado-seg button { border: 0; background: none; padding: 5px 11px; border-radius: 7px; font-size: 13px; cursor: pointer; color: var(--texto-2); font-weight: 500; }
.estado-seg button:disabled { cursor: default; }
.estado-seg button.ativo.pago { background: var(--verde); color: #fff; }
.estado-seg button.ativo.falta { background: var(--vermelho); color: #fff; }
.estado-seg button.ativo.isento { background: var(--amarelo); color: #1d1d1f; }
.avatar.pago { background: var(--verde-fundo); color: var(--verde); }
.avatar.falta { background: var(--vermelho-fundo); color: var(--vermelho); }
.avatar.isento { background: var(--amarelo-fundo); color: var(--amarelo); }

/* ---------- Entradas e saídas ---------- */
.mov-icone { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.mov-icone.entrada { background: var(--verde-fundo); color: var(--verde); }
.mov-icone.saida { background: var(--vermelho-fundo); color: var(--vermelho); }
.mov-icone.quotas { background: var(--bni-fundo); color: var(--bni); }
.mov-icone svg.i { width: 17px; height: 17px; }
.mov-icone.doc { background: var(--bni-fundo); color: var(--bni); }
.doc-linha { align-items: center; }
.doc-linha .doc-nome { color: inherit; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-linha .cresce { min-width: 0; }
.doc-miniatura { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; flex: none; background: var(--hover); display: block; }
.doc-miniatura img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doc-acoes { display: flex; gap: 2px; flex: none; }
.doc-lista-curta { display: grid; gap: 2px; margin: 0 -10px 10px; }
.doc-lista-curta .linha { padding: 8px 10px; }
.doc-lista-curta .doc-miniatura, .doc-lista-curta .mov-icone { width: 34px; height: 34px; }
.alternar button.entrada.ativo { background: var(--verde); border-color: var(--verde); color: #fff; }
.alternar button.saida.ativo { background: var(--vermelho); border-color: var(--vermelho); color: #fff; }
.alternar.chips-cat button { padding: 6px 13px; font-size: 13.5px; }
.historico-item { padding: 8px 0; font-size: 13.5px; }
.historico-item + .historico-item { border-top: 1px solid var(--linha); }
.historico-item .quando { color: var(--texto-3); font-size: 12px; }

/* ---------- Prestação de contas ---------- */
.relatorio { background: var(--painel); border-radius: var(--raio); box-shadow: var(--sombra); padding: 28px 30px; }
.relatorio .rel-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 2px solid var(--bni); padding-bottom: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.relatorio .rel-cab h2 { margin: 0; font-size: 24px; letter-spacing: -0.03em; }
.relatorio .rel-cab .sub { color: var(--texto-2); margin-top: 2px; }
.relatorio h3 { font-size: 15px; margin: 24px 0 8px; letter-spacing: -0.01em; }
.rel-blocos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .rel-blocos { grid-template-columns: 1fr 1fr; } .relatorio { padding: 20px 16px; } }
.rel-bloco { background: var(--painel-2); border: 1px solid var(--linha); border-radius: 12px; padding: 12px 14px; }
.rel-bloco .rot { font-size: 12px; color: var(--texto-2); }
.rel-bloco .v { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rel-duas { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .rel-duas { grid-template-columns: 1fr; } }
.tabela .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabela tfoot td { font-weight: 700; border-top: 1px solid var(--linha-forte); border-bottom: 0; }
.matriz th.r, .matriz td.r { text-align: center; width: 46px; padding-left: 2px; padding-right: 2px; }
.matriz td.nome { white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.marca-q { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700; }
.marca-q.pago { background: var(--verde-fundo); color: var(--verde); }
.marca-q.falta { background: var(--vermelho-fundo); color: var(--vermelho); }
.marca-q.isento { background: var(--amarelo-fundo); color: var(--amarelo); }
.rel-rodape { margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--linha); font-size: 12.5px; color: var(--texto-2); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.slides-previa { display: grid; gap: 14px; }
.slides-previa figure { margin: 0; display: grid; gap: 8px; }
.slides-previa img { width: 100%; border-radius: 10px; border: 1px solid var(--linha); background: #f5f5f7; }
.slides-previa figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; color: var(--texto-2); }

@media print {
  body.a-imprimir > *:not(#impressao) { display: none !important; }
  body.a-imprimir #impressao { display: block !important; }
  body.a-imprimir { background: #fff; }
  #impressao, #impressao * { color-scheme: light; }
  #impressao .relatorio {
    --painel: #fff; --painel-2: #f7f7f9; --texto: #1d1d1f; --texto-2: #555; --texto-3: #777; --linha: #e3e3e8; --linha-forte: #c9c9cf;
    --verde: #1f8a3b; --verde-fundo: rgba(52, 199, 89, 0.15); --vermelho: #c4001a; --vermelho-fundo: rgba(255, 59, 48, 0.12);
    --laranja: #b35c00; --amarelo: #7a5d00; --amarelo-fundo: rgba(255, 204, 0, 0.25); --bni: #cf2030;
    box-shadow: none; padding: 0; color: #1d1d1f; background: #fff; font-size: 12px;
  }
  #impressao .relatorio h3 { break-after: avoid; }
  #impressao .tabela tr { break-inside: avoid; }
  @page { size: A4; margin: 14mm; }
}
#impressao { display: none; }

/* ---------- Avisos ---------- */
.relatorio .legenda { border-top: 0; padding-top: 0; margin-top: 8px; gap: 6px 14px; font-size: 12.5px; }

/* Grupos e menus (super administrador) */
.grupos-admin { display: grid; gap: 12px; max-width: 980px; }
.grupo-admin { display: grid; gap: 10px; }
.grupo-admin-topo { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.grupo-admin h3 { margin: 0; font-size: 16.5px; letter-spacing: -0.02em; }
.grupo-admin p { margin: 2px 0 0; }
.bni-estado { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 980px; background: var(--laranja-fundo); color: var(--laranja); white-space: nowrap; }
.bni-estado.ligado { background: var(--verde-fundo); color: var(--verde); }
.menus-grupo { display: flex; flex-wrap: wrap; gap: 6px; }
.menu-interruptor { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--linha-forte); border-radius: 980px; padding: 4px 11px 4px 8px; font-size: 13px; cursor: pointer; }
.menu-interruptor:has(input:not(:checked)) { opacity: 0.55; text-decoration: line-through; }
.falta-membro { color: var(--laranja); font-weight: 600; }

/* ---------- Assistente do Diretor (public/assistente.js) ---------- */
.ad-duas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .ad-duas { grid-template-columns: 1fr; } }
.ad-barra-ferr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.ad-barra-ferr .entrada { width: auto; min-height: 36px; }
.ad-barra-ferr .pesquisa .entrada { width: 100%; }
.ad-cresce { flex: 1; min-width: 220px; }
.ad-empurra { margin-left: auto; }
.ad-rotulo-inline { display: inline-flex; align-items: center; gap: 8px; }
.ad-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ad-check input { accent-color: var(--acento); width: 16px; height: 16px; }
.chip.ativo { background: var(--texto); color: var(--fundo); border-color: var(--texto); }

/* funil */
.ad-funil-linha { display: grid; grid-template-columns: 150px 1fr 34px; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 6px 4px; border-radius: 8px; cursor: pointer; color: inherit; text-align: left; font-size: 14px; }
.ad-funil-linha:hover { background: var(--hover); }
.ad-funil-linha b { text-align: right; }
.ad-funil-barra { height: 10px; border-radius: 5px; background: var(--ativo); overflow: hidden; }
.ad-funil-barra span { display: block; height: 100%; border-radius: 5px; min-width: 2px; }
.ad-cor-novo { background: var(--texto-3); }
.ad-cor-contactado { background: var(--azul); }
.ad-cor-convidado { background: #e09b00; }
.ad-cor-faltou { background: #ff9500; }
.ad-cor-visitou { background: var(--bni); }
.ad-cor-candidatura { background: #34c759; }
.ad-cor-entrou { background: #1f8a3b; }
.ad-cor-perdido { background: var(--linha-forte); }
.ad-hoje { color: var(--laranja); font-weight: 600; }

/* cartões dos grupos */
.ad-grupo { display: grid; gap: 14px; }
.ad-grupo-topo { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ad-grupo-topo h3 { margin: 0 0 2px; font-size: 17px; }
.ad-grupo-topo > span { text-align: right; max-width: 45%; }
.ad-grande { font-size: 28px; letter-spacing: -0.03em; }
.ad-barra { height: 8px; border-radius: 4px; background: var(--ativo); overflow: hidden; margin-top: 6px; }
.ad-barra span { display: block; height: 100%; background: var(--bni); border-radius: 4px; }
.ad-barra span.cheia { background: #1f9d55; }
.ad-grupo-numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ad-grupo-numeros > div { background: var(--painel-2); border-radius: 10px; padding: 8px 10px; display: grid; }
.ad-grupo-numeros b { font-size: 18px; }
.ad-grupo-numeros span { font-size: 12px; color: var(--texto-2); }

/* comunicação */
.ad-msgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 420px) { .ad-msgs { grid-template-columns: 1fr; } }
.ad-msg { display: grid; gap: 12px; }
.ad-msg-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ad-msg-topo h3 { margin: 0; font-size: 16px; }
.ad-msg-texto { white-space: pre-wrap; font-size: 14px; line-height: 1.5; background: var(--painel-2); border: 1px solid var(--linha); border-radius: 10px; padding: 12px 14px; max-height: 260px; overflow-y: auto; overflow-wrap: anywhere; }

/* crescimento */
.ad-cats { display: grid; gap: 12px; }
.ad-cat { display: grid; grid-template-columns: 200px 1fr; gap: 10px; align-items: start; }
@media (max-width: 700px) { .ad-cat { grid-template-columns: 1fr; gap: 6px; } }
.ad-cat-nome { font-weight: 600; font-size: 13.5px; color: var(--texto-2); padding-top: 4px; }
.ad-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--verde-fundo); color: var(--verde); border-radius: 980px; padding: 4px 11px; font-size: 13px; cursor: default; }
.ad-chip.manual { background: var(--azul-fundo); color: var(--azul); }
.ad-chip button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; display: inline-flex; }
.ad-chip button svg.i { width: 13px; height: 13px; }
.ad-cat-titulo { margin: 20px 0 8px; font-size: 15px; }
.ad-falta { flex-wrap: wrap; }
.ad-falta-acoes { display: flex; gap: 6px; flex-wrap: wrap; }
.ad-pesquisa { scroll-margin-top: 80px; }
.ad-form-pesquisa { display: grid; grid-template-columns: 2fr 1.2fr 1.5fr auto; gap: 12px; align-items: end; }
@media (max-width: 900px) { .ad-form-pesquisa { grid-template-columns: 1fr 1fr; } .ad-form-botao { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ad-form-pesquisa { grid-template-columns: 1fr; } }
.ad-resultados:not(:empty) { margin-top: 18px; }
.ad-resultados-topo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.ad-empresa { display: flex; gap: 12px; padding: 12px 16px; align-items: flex-start; flex-wrap: wrap; }
.ad-empresa.ja-bni { opacity: 0.6; }
.ad-empresa .cresce { flex: 1; min-width: 240px; }
.ad-empresa .titulo { font-weight: 600; }
.ad-empresa .meta { color: var(--texto-2); font-size: 13.5px; margin-top: 2px; }
.ad-estrelas { display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--amarelo); }
.ad-estrelas svg.i { width: 13px; height: 13px; fill: currentColor; }
.ad-estrelas small { color: var(--texto-3); }
.ad-contactos { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-size: 13.5px; }
.ad-contactos a, .ad-contactos span a { display: inline-flex; align-items: center; gap: 4px; color: var(--azul); text-decoration: none; overflow-wrap: anywhere; }
.ad-contactos span { display: inline-flex; gap: 12px; flex-wrap: wrap; }
.ad-contactos svg.i { width: 14px; height: 14px; }
.ad-emp-acoes { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ad-emp-acoes a.etiqueta { text-decoration: none; }
.ad-rodape-acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }

/* CRM */
.ad-etapas .chip { white-space: nowrap; }
.ad-lead { flex-wrap: nowrap; }
.ad-lead .avatar { color: #fff; }
.ad-av-novo { background: var(--texto-3) !important; }
.ad-av-contactado { background: var(--azul) !important; }
.ad-av-convidado { background: #e09b00 !important; }
.ad-av-faltou { background: #ff9500 !important; }
.ad-av-visitou { background: var(--bni) !important; }
.ad-av-candidatura { background: #34c759 !important; }
.ad-av-entrou { background: #1f8a3b !important; }
.ad-av-perdido { background: var(--linha-forte) !important; color: var(--texto) !important; }
.ad-lead-dir { text-align: right; display: grid; gap: 3px; justify-items: end; flex: none; max-width: 45%; }
.ad-ficha { display: grid; grid-template-columns: 1.05fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 800px) { .ad-ficha { grid-template-columns: 1fr; } }
.ad-ficha-etapa { display: grid; gap: 10px; background: var(--painel-2); box-shadow: none; border: 1px solid var(--linha); }
.ad-ficha .botoes-linha { margin: 12px 0; }
.ad-registar { display: grid; gap: 10px; margin-top: 12px; background: var(--painel-2); box-shadow: none; border: 1px solid var(--linha); }
.ad-registar h3 { margin: 0; font-size: 15px; }
.ad-hist { display: grid; gap: 0; border-left: 2px solid var(--linha); margin-left: 6px; }
.ad-hist-item { padding: 4px 0 12px 14px; position: relative; font-size: 14px; }
.ad-hist-item::before { content: ""; position: absolute; left: -6px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--linha-forte); }
.ad-h-etapa::before { background: var(--bni); }
.ad-h-chamada::before, .ad-h-whatsapp::before, .ad-h-email::before, .ad-h-reuniao::before { background: var(--azul); }
.ad-mapa { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }

/* Categorias pretendidas (Definições da folha) */
.cat-pretendidas { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.cat-pretendidas .etiqueta-grupo.livre { background: transparent; border: 1px dashed var(--linha-forte); }
.cat-juntar { display: flex; gap: 8px; align-items: center; }
.cat-juntar .entrada { flex: 1; }
.ad-procuradas { margin-top: 10px; align-items: center; }

/* Pesquisas da Google de hoje (Crescimento do grupo) */
.ad-quota { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px 0 2px; font-size: 13.5px; color: var(--texto-2); }
.ad-quota svg.i { width: 15px; height: 15px; }
.ad-quota .esgotado { color: var(--vermelho); }
.ad-quota-linha { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ad-quota-linha .ad-quota { margin: 0; }
.ad-historico:not(:empty) { margin-top: 14px; padding: 14px; border: 1px solid var(--borda); border-radius: 12px; background: var(--fundo-2, var(--fundo)); }
.ad-historico h3 { margin: 0 0 10px; font-size: 15px; }
.ad-hist-pesquisa { display: flex; align-items: center; gap: 12px; }
.ad-aviso-resultados { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.ad-aviso-resultados > span { flex: 1 1 320px; }
.ad-aviso-botoes { display: flex; gap: 8px; flex-wrap: wrap; }
.pesquisas-grupo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 13.5px; }
.pesquisas-grupo .entrada { width: 90px; min-height: 32px; padding: 4px 8px; }

/* Tutorial */
.lateral .rodape .tutorial { margin: 0 0 6px; }
.tut-episodio { align-items: center; gap: 12px; flex-wrap: wrap; }
.tut-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--bni-fundo); color: var(--bni); font-weight: 700; font-size: 13px; }
.tut-episodio .cresce { min-width: 220px; }
.tut-acoes { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tut-acoes .entrada { width: 280px; min-height: 34px; }

/* Caixas que abrem e fecham pelo título (Crescimento do grupo) */
.recolhivel-titulo { cursor: pointer; user-select: none; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 2px; }
.recolhivel-titulo:focus-visible { outline: 2px solid var(--foco); outline-offset: 4px; border-radius: 6px; }
.recolhivel-seta { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 4px; border-radius: 6px; color: var(--texto-2); align-self: center; transition: transform .15s ease; transform: rotate(90deg); }
.recolhivel-titulo:hover .recolhivel-seta { background: var(--hover); color: var(--texto); }
.recolhivel-seta svg.i { width: 16px; height: 16px; }
.recolhivel.fechado .recolhivel-seta { transform: rotate(0deg); }
.recolhivel.fechado .recolhivel-corpo { display: none; }
.recolhivel.fechado .recolhivel-titulo { margin-bottom: 0; }

/* Rota: palestrante ou "Outro (escrever)…" */
.palestrante-escolha { display: grid; gap: 6px; }
.palestrante-escolha .entrada[hidden] { display: none; }

/* Contas › Pesquisas Google */
.titulo-icone { display: flex; align-items: center; gap: 8px; }
.titulo-icone svg.i { width: 20px; height: 20px; color: var(--acento); }
.pesq-resumo { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.pesq-num { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--linha); border-radius: var(--raio-p); background: var(--painel-2); }
.pesq-num b { font-size: 22px; font-weight: 700; }
.pesq-num.negativo b { color: var(--vermelho); }
.pesq-aviso { grid-column: 1 / -1; margin: 0; }
.pesq-tabela { min-width: 480px; max-width: 860px; }
.pesq-resumo { max-width: 860px; }
.pesq-tabela .pesq-caixa { width: 84px; padding: 6px 8px; }
.pesq-tabela td.esgotado { color: var(--vermelho); font-weight: 600; }
.pesq-tabela tr.inativo td { opacity: 0.6; }
.pesq-tabela th.pesq-sub { padding-top: 18px; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--texto-2); }
