/* ==========================================================================
   PORTAL FCC — Painel Administrativo
   --------------------------------------------------------------------------
   Visual sóbrio: fonte Inter, pesos 400–700, maiúsculas só em rótulos
   pequenos (cabeçalho de tabela, títulos de seção do menu, selos).
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #003b4c;
  --primary-hover: #002a37;
  --primary-light: #e8f3f7;
  --accent: #d25d00;
  --bg: #f5f7fa;
  --white: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-forte: #cbd5e1;
  --red: #dc2626;
  --green: #059669;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* Base de 13px: todos os tamanhos em rem (inclusive os escritos direto no
   HTML) ficam proporcionalmente menores. */
html { font-size: 13px; }

body, input, select, textarea, button, p, h1, h2, h3, h4, table, th, td,
span:not(.material-symbols-outlined) { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }

body {
  margin: 0; background: var(--bg); color: var(--text); font-size: 12.5px; line-height: 1.45;
  overflow: hidden; -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01';
}
.hidden { display: none !important; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* ---------- Tela de login ---------- */
#tela-pin {
  position: fixed; inset: 0; z-index: 9000;
  background: linear-gradient(160deg, #003b4c 0%, #001c24 100%);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.pin-card {
  background: var(--white); border-radius: 10px; padding: 32px 30px; width: 100%; max-width: 380px;
  text-align: center; box-shadow: 0 20px 40px -12px rgba(0,0,0,.45); border-top: 3px solid var(--accent);
}
.pin-logo { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 10px; display: block; }
.pin-card h2 { margin: 0 0 4px; color: var(--primary); font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.pin-card p { margin: 0 0 20px; color: var(--text-muted); font-size: .9rem; font-weight: 400; }
.pin-card input {
  width: 100%; padding: 12px; font-size: 1.1rem; text-align: center; letter-spacing: 2px;
  border: 1px solid var(--border-forte); border-radius: var(--radius); font-weight: 600; color: var(--primary); outline: none;
}
.pin-card input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.pin-card button {
  width: 100%; margin-top: 14px; padding: 11px; background: var(--primary); color: #fff; border: none;
  border-radius: var(--radius); font-weight: 600; font-size: .95rem; cursor: pointer; transition: background .15s;
}
.pin-card button:hover { background: var(--primary-hover); }
.pin-card button:disabled { opacity: .6; cursor: not-allowed; }
#pin-erro { color: var(--red); font-weight: 500; font-size: .85rem; margin-top: 12px; min-height: 20px; }

.pin-card input.campo-login-admin {
  font-size: .95rem; text-align: left; letter-spacing: normal; font-weight: 400; padding: 10px 12px; color: var(--text);
}
.btn-google-admin {
  width: 100%; padding: 10px; background: #fff; color: #3c4043; border: 1px solid var(--border-forte);
  border-radius: var(--radius); font-weight: 500; font-size: .92rem; cursor: pointer; transition: background .15s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-google-admin:hover { background: var(--bg); }
/* ".pin-card button" é mais específico e pintaria este botão de azul-escuro */
.pin-card .btn-google-admin { background: #fff; color: #3c4043; margin-top: 0; border: 1px solid var(--border-forte); }
.pin-card .btn-google-admin:hover { background: var(--bg); }
.divisor-ou-admin { text-align: center; color: var(--text-muted); font-size: .75rem; font-weight: 500; margin: 16px 0; position: relative; }
.divisor-ou-admin span { background: var(--white); padding: 0 10px; position: relative; z-index: 1; }
.divisor-ou-admin::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.links-login-admin { display: flex; justify-content: space-between; margin-top: 12px; font-size: .8rem; font-weight: 500; flex-wrap: wrap; gap: 8px; }
.links-login-admin a { color: var(--accent); cursor: pointer; text-decoration: none; }
.links-login-admin a:hover { text-decoration: underline; }

/* ---------- Estrutura ---------- */
.app { display: flex; height: 100vh; width: 100%; overflow: hidden; }

.sidebar {
  width: 236px; background: var(--white); display: flex; flex-direction: column;
  border-right: 1px solid var(--border); z-index: 100; flex-shrink: 0;
}
.sidebar-header {
  padding: 14px 16px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border); background: var(--white);
}
.logo-admin { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; }
.marca-admin { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.marca-admin strong { font-size: .95rem; font-weight: 700; color: var(--primary); letter-spacing: .02em; }
.marca-admin small { font-size: .72rem; font-weight: 500; color: var(--text-muted); }

.sidebar-menu { flex: 1; overflow-y: auto; padding: 8px 0 16px; }
.sidebar-menu::-webkit-scrollbar { width: 4px; }
.sidebar-menu::-webkit-scrollbar-thumb { background: var(--border-forte); border-radius: 4px; }

.menu-titulo {
  padding: 14px 18px 6px; font-size: .68rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.menu-subtitulo {
  padding: 10px 18px 3px 30px; font-size: .64rem; font-weight: 600; color: #94a3b8;
  text-transform: uppercase; letter-spacing: .06em;
}
.menu-item {
  padding: 7px 14px; margin: 1px 8px; display: flex; align-items: center; gap: 9px;
  color: #475569; cursor: pointer; transition: background .15s, color .15s; border-radius: var(--radius);
  font-weight: 500; font-size: .9rem;
}
.menu-item:hover { background: var(--bg); color: var(--primary); }
.menu-item.ativo { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.menu-item .material-symbols-outlined { font-size: 17px; color: inherit; opacity: .85; }

.menu-btn {
  padding: 8px 12px; font-size: .82rem; font-weight: 500; color: var(--white);
  background: var(--primary); border: 1px solid var(--primary); cursor: pointer; margin: 4px 12px; border-radius: var(--radius);
  display: flex; justify-content: space-between; align-items: center; transition: background .15s; width: calc(100% - 24px);
}
.menu-btn:hover { background: var(--primary-hover); }

.divisor { border-bottom: 1px solid var(--border); margin: 8px 16px; }

.conteudo { flex: 1; display: flex; flex-direction: column; background: var(--bg); overflow: hidden; height: 100vh; min-width: 0; }

.topo {
  background: var(--white); padding: 0 24px; min-height: 56px; display: flex;
  justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); flex-shrink: 0; gap: 12px;
}
.titulo-pagina { font-weight: 600; font-size: 1.15rem; color: var(--text); letter-spacing: -.01em; }
.acoes-topo { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.corpo { padding: 20px 24px 10px; flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* ---------- Botões ---------- */
.btn {
  padding: 6px 12px; border-radius: var(--radius); border: 1px solid var(--border-forte); background: var(--white);
  color: var(--text); cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 500;
  transition: background .15s, border-color .15s; font-size: .86rem; line-height: 1.4; white-space: nowrap;
}
.btn .material-symbols-outlined { font-size: 17px; }
.btn:hover { background: var(--bg); border-color: #94a3b8; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-verde { background: var(--green); border-color: var(--green); color: #fff; }
.btn-verde:hover { background: #047857; border-color: #047857; }
.btn-azul { background: var(--white); border-color: var(--border-forte); color: var(--primary); }

.btn-icone {
  background: transparent; border: 1px solid transparent; color: var(--primary); cursor: pointer;
  padding: 5px; border-radius: var(--radius); transition: background .15s; display: flex; align-items: center; justify-content: center;
}
.btn-icone:hover { background: var(--bg); }

.btn-bloco {
  padding: 9px 14px; border-radius: var(--radius); font-weight: 600; font-size: .88rem; cursor: pointer;
  text-align: center; width: 100%; transition: background .15s, border-color .15s; border: 1px solid transparent;
}
.btn-principal { background: var(--primary); color: var(--white); border-color: var(--primary); width: auto !important; }
.btn-principal:hover { background: var(--primary-hover); }
.btn-secundario { background: var(--white); border-color: var(--border-forte); color: var(--text); }
.btn-secundario:hover { background: var(--bg); }
.btn-ativar { background: #ecfdf5; color: #047857; border-color: #6ee7b7; }
.btn-ativar:hover { background: #d1fae5; }
.btn-suspender { background: #fffbeb; color: #b45309; border-color: #fcd34d; }
.btn-suspender:hover { background: #fef3c7; }

/* ---------- Controles ---------- */
.controles { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-shrink: 0; }

.busca {
  display: flex; align-items: center; background: var(--white); border-radius: var(--radius);
  padding: 0 12px; border: 1px solid var(--border-forte); transition: border-color .15s, box-shadow .15s;
  width: 100%; max-width: 420px; flex: 1;
}
.busca:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.busca .material-symbols-outlined { font-size: 19px; color: var(--text-muted); }
.busca input { border: none; background: transparent; padding: 8px; width: 100%; outline: none; color: var(--text); font-size: .92rem; font-weight: 400; }

.btn-atualizar {
  background: var(--white); color: var(--primary); width: 36px; height: 36px; border-radius: var(--radius);
  border: 1px solid var(--border-forte); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s; flex-shrink: 0;
}
.btn-atualizar:hover { background: var(--bg); }

/* ---------- Cards de estatística ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; flex-shrink: 0; }
.stat {
  background: var(--white); padding: 12px 16px; border-radius: 8px; display: flex;
  align-items: center; gap: 14px; border: 1px solid var(--border); box-shadow: var(--shadow);
}
.stat-icone {
  width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--primary); background: var(--primary-light); flex-shrink: 0;
}
.stat .stat-icone .material-symbols-outlined { font-size: 20px; color: inherit; font-weight: 400; line-height: 1; }
.stat-icone.dinheiro { color: #047857; background: #ecfdf5; }
.stat h3 { margin: 0; font-size: .72rem; color: var(--text-muted); font-weight: 500; }
.stat span { display: block; font-size: 1.45rem; font-weight: 700; color: var(--text); line-height: 1.25; font-variant-numeric: tabular-nums; }

/* ---------- Tabela ---------- */
.tabela-wrap {
  background: var(--white); border-radius: 8px; border: 1px solid var(--border);
  overflow: auto; flex: 1; min-height: 0; box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; min-width: 980px; }
th {
  background: #f8fafc; color: var(--text-muted); font-weight: 600; font-size: .7rem; padding: 10px 14px;
  text-align: left; border-bottom: 1px solid var(--border); cursor: pointer; text-transform: uppercase; letter-spacing: .05em;
  position: sticky; top: 0; z-index: 10; white-space: nowrap;
}
th:hover { color: var(--primary); }
td { padding: 8px 12px; color: var(--text); font-size: .9rem; font-weight: 400; vertical-align: middle; border-bottom: 1px solid #f1f5f9; }
tr:hover td { background: #f8fbfd; }

.tabela-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
.tabela-wrap::-webkit-scrollbar-track { background: transparent; margin-top: 38px; }
.tabela-wrap::-webkit-scrollbar-thumb { background: var(--border-forte); border-radius: 10px; }
.tabela-wrap::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.acoes-linha { display: flex; gap: 4px; justify-content: center; align-items: center; }

/* Lista de Filiados: letras menores e o nome com a maior parte da largura (as outras colunas têm tamanho fixo) */
#vista-filiados table { min-width: 860px; table-layout: fixed; }
#vista-filiados th { padding: 8px 10px; font-size: .64rem; }
#vista-filiados td { padding: 6px 10px; font-size: .82rem; }
#vista-filiados .col-marca { width: 34px; text-align: center; padding-left: 6px; padding-right: 6px; }
#vista-filiados .col-visivel { width: 58px; text-align: center; }
#vista-filiados .col-situacao { width: 108px; }
#vista-filiados .col-anuidade { width: 88px; }
#vista-filiados .col-genero { width: 92px; }
#vista-filiados .col-local { width: 150px; }
#vista-filiados .col-data { width: 92px; }
#vista-filiados .col-acoes { width: 136px; text-align: center; }
#vista-filiados td .selo { font-size: .64rem; padding: 1px 7px; }
#vista-filiados .acoes-linha { gap: 3px; }
#vista-filiados .acoes-linha .btn-icone { padding: 4px; }
.fil-nome { font-size: .84rem; font-weight: 600; text-transform: uppercase; overflow-wrap: anywhere; }
.fil-sub { font-size: .7rem; }
.fil-dado { font-size: .76rem !important; overflow-wrap: anywhere; }

.paginacao { display: flex; justify-content: center; gap: 6px; margin-top: 12px; padding-bottom: 5px; flex-shrink: 0; flex-wrap: wrap; }
.pag-btn {
  background: var(--white); border: 1px solid var(--border-forte); color: var(--text); min-width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: var(--radius);
  font-weight: 500; font-size: .86rem; transition: background .15s; padding: 0 8px;
}
.pag-btn:hover { background: var(--bg); }
.pag-btn.ativo { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ---------- Selos ---------- */
.selo {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .7rem;
  font-weight: 600; letter-spacing: .02em; white-space: nowrap; line-height: 1.6;
}
.selo-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.selo-pend { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.selo-devendo { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.clicavel { cursor: pointer; }
.clicavel:hover { filter: brightness(.96); }

/* ---------- Interruptor ---------- */
.switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: #e2e8f0; transition: .2s; border-radius: 30px; }
.slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background: #fff; transition: .2s; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
input:checked + .slider { background: var(--primary); }
input:checked + .slider:before { transform: translateX(16px); }

/* ---------- Aviso flutuante ---------- */
.toast {
  position: fixed; bottom: 24px; right: 24px; background: #0f172a; color: var(--white);
  padding: 11px 16px; border-radius: 8px; z-index: 5000; font-weight: 500; font-size: .9rem;
  box-shadow: var(--shadow-md); max-width: 440px; cursor: pointer; border-left: 4px solid var(--accent);
}
.toast.toast-erro { background: #7f1d1d; border-left-color: #fca5a5; }

/* ---------- Barra de progresso (servidor trabalhando) ---------- */
#barra-progresso {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9500; pointer-events: none;
  opacity: 0; transition: opacity .2s .25s; overflow: hidden; background: rgba(210, 93, 0, .15);
}
#barra-progresso::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 35%; background: var(--accent);
  animation: progresso 1.1s ease-in-out infinite;
}
@keyframes progresso { from { left: -35%; } to { left: 100%; } }
body.ocupado #barra-progresso { opacity: 1; }
body.ocupado { cursor: progress; }

/* ---------- Modais ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .6); z-index: 4000;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); padding: 20px;
}
.modal {
  background: var(--white); width: 100%; max-width: 980px; display: flex; flex-direction: column;
  border-radius: 10px; overflow: hidden; max-height: 94vh; box-shadow: 0 24px 48px -12px rgba(0,0,0,.3);
  animation: surge .15s ease-out;
}
@keyframes surge { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.modal-topo {
  background: var(--white); padding: 14px 22px; display: flex; border-bottom: 1px solid var(--border);
  justify-content: space-between; align-items: center; flex-shrink: 0; border-top: 3px solid var(--primary);
}
.modal-topo span { font-size: 1.05rem; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.modal-topo span .material-symbols-outlined { color: var(--primary); font-size: 20px; }
.fechar {
  background: transparent; border: 1px solid transparent; color: var(--text-muted);
  width: 32px; height: 32px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer; transition: background .15s, color .15s;
}
.fechar:hover { background: #fef2f2; color: var(--red); }

.modal-corpo { flex: 1; padding: 22px; overflow-y: auto; overflow-x: hidden; }
.modal-layout { display: flex; gap: 24px; }
.modal-esq { flex: 0 0 180px; padding-right: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; border-right: 1px solid var(--border); }
.modal-dir { flex: 1; min-width: 0; }

.foto-preview { width: 140px; height: 140px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); cursor: zoom-in; background: var(--bg); }

.secao {
  font-weight: 600; color: var(--primary); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em;
  margin: 16px 0 10px; border-bottom: 1px solid var(--border); padding-bottom: 6px;
}
.secao-alerta { background: #fffbeb; color: #b45309; padding: 4px 10px; border-radius: var(--radius); display: inline-block; border: 1px solid #fde68a; }

.grade { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 14px; margin-bottom: 16px; }
.campo { display: flex; flex-direction: column; gap: 4px; }
.campo.col2 { grid-column: span 2; }
.campo.col4 { grid-column: span 4; }
.campo label { font-size: .78rem; font-weight: 500; color: var(--text-muted); }
.campo input, .campo select {
  padding: 7px 10px; border: 1px solid var(--border-forte); border-radius: var(--radius);
  font-size: .92rem; background: #fff; width: 100%; color: var(--text); font-weight: 400; transition: border-color .15s, box-shadow .15s;
}
.campo input:focus, .campo select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); outline: none; }
.campo input:disabled, .campo select:disabled { background: var(--bg); color: var(--text-muted); }

.caixa-anuidade { width: 100%; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--border-forte); text-align: center; }
.caixa-anuidade .rotulo { font-size: .72rem; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }

/* ---------- Situações extras ---------- */
.selo-vencido { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.selo-bloq { background: #1f2937; color: #fecaca; border: 1px solid #1f2937; }
.stat-icone.alerta { color: #b91c1c; background: #fef2f2; }
.btn-bloquear { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.btn-bloquear:hover { background: #fee2e2; }
.btn-desbloquear { background: #f1f5f9; color: #0f172a; border-color: #cbd5e1; }
.btn-vermelho { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.btn-vermelho:hover { background: #fee2e2; border-color: #fca5a5; }

.caixa-bloqueio {
  width: 100%; background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius);
  padding: 10px; font-size: .8rem; color: #7f1d1d; font-weight: 400; text-align: left;
}
.caixa-bloqueio strong { display: block; font-size: .72rem; font-weight: 600; color: #b91c1c; margin-bottom: 4px; }

.historico { width: 100%; margin-top: 10px; font-size: .78rem; text-align: left; }
.historico div { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--border); font-weight: 400; }
.historico div:last-child { border-bottom: none; }

/* ---------- Vistas (Filiados / Anuidades / Recados) ---------- */
.vista { display: flex; flex-direction: column; flex: 1; min-height: 0; }
/* Telas sem tabela própria (dashboard, configurações...) rolam inteiras: nada fica cortado embaixo */
.vista { overflow-y: auto; }
/* Tela que não carregou: aviso com "Tentar de novo" (no lugar do "Carregando...") */
/* Ficha do coach: atletas ligados a ele */
.link-atletas-coach { color: #6d28d9; font-weight: 700; font-size: .75rem; text-decoration: underline; cursor: pointer; }
.atletas-coach { border: 1px solid var(--border); border-radius: 8px; max-height: 260px; overflow-y: auto; }
.atletas-coach button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: 0;
  border-bottom: 1px solid #f1f5f9; padding: 6px 10px; cursor: pointer; font-size: .86rem; color: var(--text); }
.atletas-coach button:last-child { border-bottom: 0; }
.atletas-coach button:hover { background: var(--bg); color: var(--primary); }
.atletas-coach .ac-nome { flex: 1; min-width: 0; }
.atletas-coach small { color: var(--text-muted); }
.atletas-coach .selo { font-size: .66rem; }
.atletas-coach-vazio { font-size: .82rem; color: var(--text-muted); padding: 8px 2px; }
.atletas-coach-titulo { font-size: .76rem; font-weight: 600; color: var(--text-muted); margin: 10px 0 4px; }
/* Processo disciplinar (janela do painel) */
.proc-etapas { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; }
.proc-etapa { flex: 1; min-width: 110px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: .76rem; color: var(--text-muted); background: #fff; }
.proc-etapa b { display: block; color: var(--text); font-size: .8rem; }
.proc-etapa.feita { background: #ecfdf5; border-color: #a7f3d0; }
.proc-etapa.feita b { color: #047857; }
.proc-etapa.atual { background: #fffbeb; border-color: #f59e0b; }
.proc-etapa.atual b { color: #b45309; }
.proc-caixa { border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin: 8px 0 14px; background: #fff; }
.proc-caixa .botoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.proc-caixa textarea, .proc-caixa input[type="text"] { width: 100%; padding: 7px 10px; border: 1px solid var(--border-forte); border-radius: var(--radius); font-size: .88rem; margin-top: 4px; }
.proc-caixa textarea { min-height: 80px; }
.proc-caixa label.rot { display: block; font-size: .76rem; font-weight: 600; color: var(--text-muted); margin-top: 8px; }
.proc-link { font-family: ui-monospace, Consolas, monospace; font-size: .72rem; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; overflow-wrap: anywhere; margin-top: 8px; }
.proc-selo-interno { background: #f1f5f9; color: #475569; font-size: .66rem; font-weight: 700; padding: 1px 6px; border-radius: 10px; }
.proc-selo-atleta { background: #eff6ff; color: #1d4ed8; font-size: .66rem; font-weight: 700; padding: 1px 6px; border-radius: 10px; }
.proc-email-ok { color: #047857; font-size: .72rem; }
.proc-email-nao { color: #b45309; font-size: .72rem; }

/* Protestos técnicos */
.prot-filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.prot-filtros button { border: 1px solid var(--border-forte); background: #fff; border-radius: 999px; padding: 5px 14px; font-size: .8rem; cursor: pointer; color: var(--text); }
.prot-filtros button.ativo { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.prot-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.prot-texto { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: .86rem; white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0 8px; }
.prot-decisao { border-left: 4px solid var(--primary); background: #f8fafc; border-radius: 0 8px 8px 0; padding: 10px 12px; margin: 6px 0 10px; font-size: .86rem; }
.prot-decisao.indeferido { border-left-color: #b91c1c; }
.prot-decisao.deferido { border-left-color: #047857; }
.prot-decisao b { display: block; margin-bottom: 4px; }
.prot-form { border: 1px solid #f59e0b; background: #fffbeb; border-radius: 8px; padding: 12px; margin: 10px 0; }
.prot-form textarea { width: 100%; min-height: 110px; padding: 8px 10px; border: 1px solid var(--border-forte); border-radius: var(--radius); font-size: .88rem; margin: 6px 0 8px; }
.prot-form .botoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.prot-linha-tempo { border-left: 2px solid var(--border-forte); margin: 6px 0 0 6px; padding-left: 14px; }
.prot-passo { position: relative; padding: 0 0 12px; font-size: .84rem; }
.prot-passo::before { content: ''; position: absolute; left: -20px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.prot-passo .quando { font-weight: 600; }
.prot-passo .quem { color: var(--text-muted); }
.prot-passo .texto { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.prot-passo .auditoria { font-size: .7rem; color: var(--text-muted); font-family: ui-monospace, Consolas, monospace; margin-top: 2px; }
.prot-integridade { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.prot-integridade.ok { background: #ecfdf5; color: #047857; }
.prot-integridade.quebrada { background: #fef2f2; color: #b91c1c; }
@media (max-width: 760px) { .prot-grade { grid-template-columns: 1fr; } }
/* ---------- Equipe do Painel ---------- */
#vista-equipe { gap: 14px; padding-bottom: 24px; }
#vista-equipe > * { flex: none; }
.eq-grade { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
.eq-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 16px 18px; box-shadow: var(--shadow); }
.eq-titulo { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .98rem; font-weight: 600; color: var(--text); }
.eq-titulo .material-symbols-outlined { font-size: 20px; color: var(--primary); }
.eq-contagem { padding: 1px 8px; border-radius: 999px; background: var(--primary-light); color: var(--primary); font-size: .72rem; font-weight: 600; }
.eq-contagem:empty { display: none; }
.eq-ajuda { margin: 0 0 12px; font-size: .82rem; color: var(--text-muted); line-height: 1.5; font-weight: 400; }
.eq-form { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr; gap: 10px 12px; margin-bottom: 10px; }
.eq-card > .btn { display: inline-flex; }
.btn.eq-primario { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; padding: 8px 16px; }
.btn.eq-primario:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.eq-dicas { margin: 10px 0 14px; padding-left: 18px; font-size: .8rem; color: var(--text-muted); line-height: 1.5; }
.eq-dicas li { margin-bottom: 5px; }
.eq-status { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: .82rem; font-weight: 500; line-height: 1.4; }
.eq-status .material-symbols-outlined { font-size: 18px; flex: none; }
.eq-status.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.eq-status.falta { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* Listas (quem tem acesso / convites): linhas em grade, sem tabela */
.eq-linha { display: grid; grid-template-columns: minmax(0, 2.2fr) 70px minmax(0, 1.7fr) minmax(0, 1.4fr) minmax(90px, auto);
  gap: 12px; align-items: center; padding: 10px 2px; border-top: 1px solid var(--border); }
.eq-linha.convite { grid-template-columns: minmax(0, 2fr) 70px minmax(0, 1.5fr) minmax(0, 1.5fr) auto; }
.eq-cab { border-top: none; padding: 2px 2px 6px; font-size: .68rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.eq-pessoa { display: flex; align-items: center; gap: 10px; min-width: 0; }
.eq-avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; }
.eq-avatar.pendente { background: #fffbeb; color: #b45309; }
.eq-pessoa .nome { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.eq-pessoa .email { color: var(--text-muted); font-size: .78rem; overflow-wrap: anywhere; }
.eq-voce { margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); color: var(--text-muted); font-size: .68rem; font-weight: 500; }
.eq-sub { color: var(--text-muted); font-size: .78rem; line-height: 1.45; }
.eq-envio { display: flex; align-items: flex-start; gap: 6px; font-size: .78rem; color: var(--text-muted); line-height: 1.4; }
.eq-envio .material-symbols-outlined { font-size: 16px; flex: none; margin-top: 1px; }
.eq-envio.ok .material-symbols-outlined { color: #047857; }
.eq-envio.erro { color: #b91c1c; }
.eq-acoes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.eq-acoes .btn { font-size: .76rem; padding: 5px 9px; }
.eq-acoes .btn .material-symbols-outlined { font-size: 15px; }
.eq-acoes .btn.perigo { color: var(--red); border-color: #fecaca; }
.eq-acoes .btn.perigo:hover { background: #fef2f2; border-color: var(--red); }
.eq-funcoes { display: flex; flex-wrap: wrap; gap: 6px; }
.eq-funcoes label { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid var(--border-forte);
  border-radius: 999px; font-size: .75rem; cursor: pointer; white-space: nowrap; background: #fff; user-select: none; }
.eq-funcoes label:has(input:checked) { background: var(--primary-light); border-color: var(--primary); color: var(--primary); font-weight: 600; }
.eq-funcoes input { accent-color: var(--primary); margin: 0; }
.eq-rotulo { display: none; }
@media (max-width: 1000px) {
  .eq-grade, .eq-form { grid-template-columns: 1fr; }
  .eq-linha, .eq-linha.convite { grid-template-columns: 1fr; gap: 8px; padding: 12px 2px; }
  .eq-cab { display: none; }
  .eq-acoes { justify-content: flex-start; }
  .eq-rotulo { display: inline; color: var(--text-muted); font-size: .72rem; margin-right: 4px; }
}

/* Tela de entrada: aviso de quem chegou pelo link do convite */
.aviso-convite { background: var(--primary-light); border: 1px solid #b6d7e2; color: var(--primary); border-radius: 8px;
  padding: 10px 12px; font-size: .84rem; text-align: left; margin: -6px 0 16px; line-height: 1.45; }
.falha-carga { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 24px 12px;
  color: #b91c1c; font-weight: 600; font-size: .88rem; text-align: center; }
#vista-dashboard { padding-bottom: 24px; }

.seletor-ano {
  padding: 6px 10px; border: 1px solid var(--border-forte); border-radius: var(--radius);
  font-weight: 600; font-size: .9rem; color: var(--text); background: var(--white); cursor: pointer;
}

.lista-recados { overflow-y: auto; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding-bottom: 10px; }
.recado {
  background: var(--white); border: 1px solid var(--border); border-left: 3px solid #3b82f6;
  border-radius: 8px; padding: 14px 16px; box-shadow: var(--shadow);
}
.recado.importante { border-left-color: var(--red); }
.recado.evento { border-left-color: var(--accent); }
.recado.inativo { opacity: .55; }
.recado-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.recado-titulo { font-weight: 600; font-size: .98rem; color: var(--text); }
.recado-meta { font-size: .76rem; color: var(--text-muted); font-weight: 400; margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.recado-texto { font-size: .9rem; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.recado-acoes { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }

.vazio { text-align: center; padding: 40px 20px; color: var(--text-muted); font-weight: 400; background: var(--white); border-radius: 8px; border: 1px dashed var(--border-forte); }

.campo textarea {
  padding: 8px 10px; border: 1px solid var(--border-forte); border-radius: var(--radius); font-size: .92rem;
  width: 100%; color: var(--text); font-weight: 400; min-height: 150px; resize: vertical; font-family: inherit; line-height: 1.5;
}
.campo textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); outline: none; }
.linha-check { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: .88rem; color: var(--text); cursor: pointer; }
.linha-check input { width: 16px; height: 16px; accent-color: var(--primary); }
.modal.pequeno { max-width: 620px; }

/* ---------- Valores financeiros ---------- */
.stat-sub { display: block; font-size: .72rem; color: var(--text-muted); font-weight: 400; margin-top: 2px; }
.stat.destaque { border: 1px solid #6ee7b7; background: #f0fdf4; }
.stat.destaque span:not(.material-symbols-outlined):not(.stat-sub) { color: #047857; }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.num.liquido { font-weight: 600; color: #047857; }
td.num.taxa { color: #b91c1c; }

/* ---------- Dashboard ---------- */
.grade-dash { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.card-dash {
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  padding: 14px 16px; box-shadow: var(--shadow);
}
.card-dash h3 { margin: 0 0 12px; font-size: .88rem; font-weight: 600; color: var(--text); }
.barra-linha { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.barra-linha:last-child { margin-bottom: 0; }
.barra-rotulo { width: 130px; flex-shrink: 0; font-size: .8rem; font-weight: 400; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barra-fundo { flex: 1; height: 8px; background: #eef2f6; border-radius: 6px; overflow: hidden; }
.barra-preenchida { height: 100%; background: var(--primary); border-radius: 6px; transition: width .4s; }
.barra-valor { width: 34px; flex-shrink: 0; text-align: right; font-size: .84rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.dash-vazio { color: var(--text-muted); font-size: .84rem; font-weight: 400; padding: 6px 0; }
td.num.pendente { color: var(--text-muted); font-style: italic; font-weight: 400; }

.aviso-faixa {
  display: flex; align-items: center; gap: 10px; background: #eff6ff; border: 1px solid #bfdbfe;
  color: #1e3a8a; padding: 8px 12px; border-radius: var(--radius); font-size: .84rem; font-weight: 400;
  margin-bottom: 12px; flex-shrink: 0; flex-wrap: wrap;
}

/* ---------- Entidades ---------- */
.selo-roxo { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.dados-leitura { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 20px; font-size: .88rem; margin-bottom: 8px; }
.dados-leitura div { padding: 4px 0; border-bottom: 1px dashed var(--border); }
.dados-leitura b { color: var(--text-muted); font-size: .72rem; font-weight: 500; display: block; }
.docs-entidade { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.doc-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--border-forte); border-radius: var(--radius); text-decoration: none; color: var(--primary); font-weight: 500; font-size: .86rem; background: #fff; }
.doc-item:hover { border-color: var(--primary); background: var(--primary-light); }
.doc-item.faltando { border-style: dashed; border-color: #fca5a5; color: #b91c1c; background: #fef2f2; cursor: default; }
.doc-item small { display: block; color: var(--text-muted); font-weight: 400; font-size: .74rem; }
.lista-sugestoes { max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.lista-sugestoes label { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: .86rem; font-weight: 400; }
.lista-sugestoes label:last-child { border-bottom: none; }
.lista-sugestoes label:hover { background: var(--primary-light); }
.lista-sugestoes label.parecido { background: #f0fdf4; }
.lista-sugestoes input { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--primary); }
.lista-sugestoes small { color: var(--text-muted); font-weight: 400; margin-left: auto; text-align: right; }

/* ---------- Configurações ---------- */
.cartao-config {
  background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 20px;
  box-shadow: var(--shadow); margin-bottom: 16px; max-width: 760px;
}
.cartao-config-topo { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.cartao-config-topo .material-symbols-outlined {
  font-size: 22px; color: var(--primary); background: var(--primary-light); border-radius: 8px; padding: 8px;
}
.cartao-config-topo h3 { margin: 0; color: var(--text); font-weight: 600; font-size: 1rem; }
.cartao-config-topo p { margin: 2px 0 0; color: var(--text-muted); font-weight: 400; font-size: .86rem; }

.valor-linha { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.valor-linha label { width: 100%; font-size: .78rem; font-weight: 500; color: var(--text-muted); margin-bottom: -6px; }
.valor-campo {
  display: flex; align-items: center; border: 1px solid var(--border-forte); border-radius: var(--radius);
  padding: 0 12px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.valor-campo:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.valor-campo span { font-weight: 500; color: var(--text-muted); font-size: 1rem; }
.valor-campo input {
  border: none; outline: none; font-size: 1.3rem; font-weight: 600; color: var(--text);
  width: 140px; padding: 7px 6px; font-variant-numeric: tabular-nums;
}

.cfg-simulacao { margin-top: 14px; font-size: .86rem; font-weight: 400; color: var(--text); background: var(--bg); border-radius: var(--radius); padding: 8px 12px; }
.cfg-simulacao:empty { display: none; }
.cfg-regras { margin: 14px 0 0; padding-left: 18px; color: var(--text-muted); font-size: .84rem; font-weight: 400; }
.cfg-regras li { margin-bottom: 4px; }
.cfg-origem { margin-top: 10px; font-size: .78rem; color: var(--text-muted); font-weight: 400; }

.tabela-historico { width: 100%; min-width: 0; border-collapse: collapse; }
.tabela-historico th { position: static; cursor: default; }
.tabela-historico td { padding: 8px 14px; }

/* ---------- Check-in (QR Code da carteirinha) ---------- */
.checkin {
  display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 16px;
  flex: 1; min-height: 0; overflow-y: auto; align-content: start; padding-bottom: 10px;
}
.checkin-evento {
  grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px;
}
.checkin-evento select { padding: 8px 10px; border: 1px solid var(--border-forte); border-radius: var(--radius); font-size: .95rem; font-family: inherit; }
.checkin-evento-info { font-size: .88rem; color: var(--text-muted); padding-bottom: 6px; }
.checkin-evento-info strong { color: var(--text); font-size: 1.05rem; }
.checkin-leitor { display: flex; flex-direction: column; gap: 10px; }
.checkin-video { position: relative; aspect-ratio: 1 / 1; background: #0f172a; border-radius: 10px; overflow: hidden; }
.checkin-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.checkin-mira {
  position: absolute; inset: 18%; border: 2px solid rgba(255,255,255,.9); border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(15,23,42,.35); pointer-events: none;
}
.checkin-camera-off {
  position: absolute; inset: 0; z-index: 2; background: #0f172a; color: #cbd5e1; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px;
}
.checkin-camera-off .material-symbols-outlined { font-size: 52px; color: #fff; }
.checkin-camera-off p { margin: 0; font-size: .92rem; max-width: 260px; }
.checkin-camera-off .btn-principal { background: var(--accent); border-color: var(--accent); padding: 10px 22px; }
.checkin-camera-off .btn-principal:hover { background: #b34f00; }
.checkin-controles { display: flex; gap: 6px; flex-wrap: wrap; }
.checkin-manual label { display: block; font-size: .78rem; font-weight: 500; color: var(--text-muted); margin-bottom: 4px; }
.checkin-manual-linha { display: flex; gap: 6px; }
.checkin-manual input {
  flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--border-forte); border-radius: var(--radius);
  font-size: .92rem; font-family: inherit; color: var(--text);
}
.checkin-manual input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); outline: none; }

.checkin-lado { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.checkin-resultado { background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.checkin-resultado.vazio-ck { padding: 40px 20px; text-align: center; color: var(--text-muted); border-style: dashed; box-shadow: none; }
.ck-carregando { padding: 40px 20px; text-align: center; color: var(--text-muted); }
.ck-faixa { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-size: 1.2rem; font-weight: 700; color: #fff; }
.ck-faixa .material-symbols-outlined { font-size: 30px; }
.ck-ok .ck-faixa { background: #059669; }
.ck-alerta .ck-faixa { background: #d97706; }
.ck-negado .ck-faixa { background: #dc2626; }
.ck-ok { border-color: #6ee7b7; }
.ck-alerta { border-color: #fcd34d; }
.ck-negado { border-color: #fca5a5; }
.ck-pessoa { display: flex; gap: 16px; padding: 16px 18px; align-items: flex-start; }
.ck-foto {
  width: 112px; height: 112px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border); background: var(--bg); cursor: zoom-in;
}
.ck-sem-foto { display: flex; align-items: center; justify-content: center; color: #94a3b8; cursor: default; }
.ck-sem-foto .material-symbols-outlined { font-size: 52px; }
.ck-dados { flex: 1; min-width: 0; }
.ck-dados strong { display: block; font-size: 1.25rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.ck-dados > span { color: var(--text-muted); font-size: .92rem; }
.ck-dados dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 10px 0 0; font-size: .9rem; }
.ck-dados dt { color: var(--text-muted); }
.ck-dados dd { margin: 0; font-weight: 500; }
.ck-msg { padding: 10px 18px 14px; font-size: .88rem; color: var(--text-muted); border-top: 1px solid var(--border); }
.checkin-historico { max-height: 340px; overflow-y: auto; }
.checkin-historico .ck-item {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid #f1f5f9; font-size: .86rem;
}
.checkin-historico .ck-item:last-child { border-bottom: none; }

/* ---------- Eventos e inscrições ---------- */
.texto-ajuda { margin: 0 0 14px; color: var(--text-muted); font-size: .88rem; max-width: 900px; }
.evento-item { display: flex; gap: 14px; align-items: flex-start; border-left-color: var(--accent); }
.evento-thumb { width: 120px; height: 80px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: var(--bg); border: 1px solid var(--border); }
.evento-thumb-vazio { display: flex; align-items: center; justify-content: center; color: #94a3b8; }
.evento-thumb-vazio .material-symbols-outlined { font-size: 30px; }
.evento-selos { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.evento-acoes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.campo label small { font-weight: 400; color: var(--text-muted); }
@media (max-width: 900px) {
  .evento-item { flex-direction: column; }
  .evento-thumb { width: 100%; height: 140px; }
}

/* ---------- Acessibilidade: foco visível no teclado ---------- */
.btn:focus-visible, .btn-bloco:focus-visible, .menu-item:focus-visible, .pag-btn:focus-visible,
.menu-btn:focus-visible, .btn-icone:focus-visible, .fechar:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1200px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; left: -250px; height: 100%; transition: left .25s; box-shadow: 0 0 30px rgba(0,0,0,.2); }
  .sidebar.aberta { left: 0; }
  .stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .controles { flex-direction: column; align-items: stretch; }
  .busca { max-width: none; }
  .topo { flex-wrap: wrap; padding: 10px 14px; }
  .corpo { padding: 14px; }
  .modal-layout { flex-direction: column; }
  .modal-esq { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 16px; }
  .grade { grid-template-columns: 1fr; }
  .grade-dash { grid-template-columns: 1fr; }
  .checkin { grid-template-columns: 1fr; }
  .ck-foto { width: 88px; height: 88px; }
  .campo.col2, .campo.col4 { grid-column: span 1; }
  .toast { right: 12px; left: 12px; bottom: 12px; max-width: none; }
  .btn-menu { display: flex !important; }
}
.btn-menu { display: none; }


/* ---- Certificados prontos no Google Drive ---- */
.titulo-secao-drive { display:flex; align-items:center; gap:8px; margin:28px 0 6px; font-size:1rem; color:var(--primary); }
.titulo-secao-drive .material-symbols-outlined { color:#1a73e8; }
.drive-conta { display:flex; align-items:center; gap:8px; flex-wrap:wrap; background:#eef4fe; border:1px solid #c6dafc; border-radius:8px; padding:8px 12px; margin-bottom:12px; }
.drive-conta code { font-size:.8rem; word-break:break-all; background:#fff; padding:3px 6px; border-radius:4px; }
.drive-conta .material-symbols-outlined { color:#1a73e8; font-size:18px; }
.drive-form { display:grid; grid-template-columns: 1.4fr 1fr auto; gap:10px; align-items:end; margin-bottom:14px; }
@media (max-width: 760px) { .drive-form { grid-template-columns: 1fr; } }

/* ---- Evento: camisetas e termos ---- */
.ev-bloco { border-top: 1px dashed var(--border); padding-top: 12px; }
.ev-termos { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ip-camisetas { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; background: #f5f3ff; border: 1px solid #ddd6fe; color: #4c1d95; border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; font-size: .84rem; }
.ip-camisetas .material-symbols-outlined { font-size: 18px; color: #7c3aed; }
.termos-linha { margin-top: 6px; font-size: .72rem; color: var(--text-muted); white-space: nowrap; }
.termos-linha a { color: var(--primary); font-weight: 600; }

/* ---- Check-in e camisetas ---- */
.ck-modos, .ck-placar, .ck-lista-card { grid-column: 1 / -1; }
.ck-modos { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ck-modos-rotulo { font-size: .82rem; color: var(--text-muted); font-weight: 600; }
.ck-modo { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--border); background: var(--white); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; color: var(--text); }
.ck-modo.ativo { border-color: var(--primary); background: var(--primary); color: #fff; }
#ck-modo-CAMISETA.ativo { border-color: #7c3aed; background: #7c3aed; }
.ck-placar { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.ck-placar-item { display: flex; gap: 10px; align-items: center; background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 10px; padding: 10px 14px; }
.ck-placar-item > .material-symbols-outlined { font-size: 28px; }
.ck-placar-item small { display: block; font-size: .74rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.ck-placar-item strong { font-size: 1.5rem; line-height: 1.1; }
.ck-placar-item strong span { font-size: .9rem; color: var(--text-muted); font-weight: 600; }
.ck-placar-item em { display: block; font-style: normal; font-size: .74rem; color: var(--text-muted); }
.ck-placar-item.verde { border-left-color: #059669; } .ck-placar-item.verde > .material-symbols-outlined { color: #059669; }
.ck-placar-item.amarelo { border-left-color: #d97706; } .ck-placar-item.amarelo > .material-symbols-outlined { color: #d97706; }
.ck-placar-item.roxo { border-left-color: #7c3aed; } .ck-placar-item.roxo > .material-symbols-outlined { color: #7c3aed; }
.ck-entregar { margin: 0 18px 12px; background: #f5f3ff; border: 2px dashed #7c3aed; border-radius: 10px; padding: 10px 14px; font-size: 1.6rem; font-weight: 800; color: #4c1d95; text-align: center; }
.ck-entregar small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .8px; color: #7c3aed; }
.ck-lista-card { margin-top: 4px; }
.checkin > * { min-width: 0; }
.ck-lista-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ck-lista-topo h3 { display: flex; align-items: center; gap: 6px; margin: 0; }
.ck-lista-topo h3 small { font-weight: 500; color: var(--text-muted); font-size: .78rem; }
.ck-lista-controles { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ck-tamanhos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; font-size: .82rem; }
.ck-tamanhos-rotulo { color: var(--text-muted); font-weight: 600; }
.ck-lista-vazia { text-align: center; padding: 26px; color: var(--text-muted); }
.ck-feito { color: #047857; font-weight: 700; font-size: .84rem; }
.ck-desfazer { font-size: .72rem; color: var(--text-muted); }
.ck-cinza { color: var(--text-muted); }
.ck-itens { font-size: .86rem; }
.ck-marcar { padding: 5px 10px; font-size: .78rem; }
.ck-roxo { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.ck-roxo:hover { background: #6d28d9; }
.ck-linha-presente td { background: #f0fdf4; }
.ck-links { grid-column: 1 / -1; background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 10px; padding: 10px 14px; }
.ck-links summary { cursor: pointer; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ck-links summary small { font-weight: 500; color: var(--text-muted); font-size: .8rem; }
.ck-links-ajuda { font-size: .84rem; color: var(--text-muted); margin: 10px 0; max-width: 900px; }
.ck-links-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.ck-link-card { border: 1px solid var(--border); border-top: 4px solid #059669; border-radius: 10px; padding: 12px 14px; min-width: 0; }
.ck-link-card.ck-link-CAMISETA { border-top-color: #7c3aed; }
.ck-link-card h4 { margin: 0 0 8px; font-size: .95rem; display: flex; align-items: center; gap: 6px; }
.ck-link-card p { margin: 0 0 10px; font-size: .84rem; color: var(--text-muted); }
.ck-link-corpo { display: flex; gap: 12px; align-items: flex-start; }
.ck-link-corpo > div { flex: 1; min-width: 0; }
.ck-link-qr { width: 118px; height: 118px; border: 1px solid var(--border); border-radius: 8px; flex-shrink: 0; }
.ck-link-url { width: 100%; padding: 7px 8px; border: 1px solid var(--border-forte); border-radius: var(--radius); font: inherit; font-size: .76rem; color: var(--text-muted); background: #f8fafc; }
.ck-link-corpo small { display: block; margin: 4px 0 8px; font-size: .76rem; color: var(--text-muted); }
.ck-link-acoes { display: flex; flex-wrap: wrap; gap: 6px; }
.ck-link-acoes .btn { padding: 5px 9px; font-size: .78rem; text-decoration: none; }
.ck-link-card.vencido { opacity: .75; }
@media (max-width: 520px) { .ck-link-corpo { flex-direction: column; } }
.ck-ao-vivo { color: #059669; font-weight: 700; animation: ck-pisca 2s ease-in-out infinite; }
@keyframes ck-pisca { 50% { opacity: .35; } }

.ei-secao { font-size: .82rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .6px; margin: 14px 0 8px; padding-top: 10px; border-top: 1px dashed var(--border); }
.ei-secao small { text-transform: none; letter-spacing: 0; color: var(--text-muted); font-weight: 500; }
.ei-cam-grade { display: flex; flex-wrap: wrap; gap: 8px; }
.ei-cam-grade label { display: flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: .85rem; }
.ei-cam-grade input { width: 56px; padding: 4px 6px; }

.drive-regras { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; font-size: .86rem; }
.drive-regras summary { cursor: pointer; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 6px; }
.drive-regras ol { margin: 10px 0 6px 18px; display: flex; flex-direction: column; gap: 6px; }
.drive-regras code { background: #f1f5f9; border-radius: 4px; padding: 1px 5px; font-size: .8rem; }
.drive-regras p { color: var(--text-muted); margin: 6px 0 0; }

/* ---- Padronização de nomes ---- */
.padrao-barra { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.padrao-barra .busca { max-width: 280px; }
.padrao-novo { display: flex; gap: 6px; flex: 1; min-width: 260px; }
.padrao-novo input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--border-forte); border-radius: var(--radius); font: inherit; font-size: .88rem; }
.padrao-formas { max-width: 420px; }
.padrao-forma { display: inline-block; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 6px; padding: 1px 7px; margin: 2px 2px 2px 0; font-size: .76rem; }
.padrao-forma.igual { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.padrao-forma b { font-weight: 700; opacity: .7; margin-left: 2px; }

/* ---- Inscritos do evento (página própria) ---- */
.ip-topo { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-shrink: 0; }
.ip-titulo { min-width: 0; }
.ip-titulo h2 { margin: 0; font-size: 1.15rem; color: var(--primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .8rem; color: var(--text-muted); margin-top: 3px; }
.ip-resumo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; flex-shrink: 0; }
.ip-card { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 8px; padding: 8px 12px; min-width: 0; }
.ip-card > .material-symbols-outlined { font-size: 22px; color: var(--primary); }
.ip-card small { display: block; font-size: .7rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.ip-card b { display: block; font-size: 1.2rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ip-card em { display: block; font-style: normal; font-size: .72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-card.verde { border-left-color: #059669; } .ip-card.verde > .material-symbols-outlined { color: #059669; }
.ip-card.amarelo { border-left-color: #d97706; } .ip-card.amarelo > .material-symbols-outlined { color: #d97706; }
.ip-camisetas { flex-shrink: 0; margin-bottom: 10px; }
.ip-abas { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 10px; flex-shrink: 0; }
.ip-aba { border: none; background: none; font: inherit; font-size: .86rem; font-weight: 600; color: var(--text-muted); padding: 8px 12px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ip-aba span { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: #f1f5f9; font-size: .74rem; margin-left: 4px; }
.ip-aba:hover { color: var(--primary); }
.ip-aba.ativa { color: var(--primary); border-bottom-color: var(--primary); }
.ip-aba.ativa span { background: var(--primary); color: #fff; }
.ip-barra { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; flex-shrink: 0; }
.ip-barra .busca { max-width: 360px; flex: 1 1 220px; }
.ip-contagem { margin-left: auto; font-size: .82rem; color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.ip-tabela table { min-width: 640px; }
.ip-linha { cursor: pointer; }
.ip-linha:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ip-linha.aberta td { background: var(--primary-light); }
.ip-nome { font-weight: 600; }
.ip-sub { font-size: .76rem; color: var(--text-muted); margin-top: 1px; }
.ip-filiado { display: inline-block; background: #ecfdf5; color: #047857; border-radius: 999px; padding: 0 6px; font-size: .68rem; font-weight: 700; }
.ip-cinza { color: #cbd5e1; }
.ip-presente { color: #059669; font-size: 20px; }
.ip-presente-txt { color: #047857; font-weight: 600; }
.ip-alerta-txt { color: #b45309; font-weight: 600; }
.ip-seta { width: 28px; color: #cbd5e1; text-align: right; }
.ip-linha:hover .ip-seta { color: var(--primary); }
.ip-vazio { text-align: center; padding: 34px !important; color: var(--text-muted); }
.ip-reticencias { align-self: center; color: var(--text-muted); padding: 0 2px; }
.pag-btn:disabled { opacity: .4; cursor: default; }

.ip-fundo { position: fixed; inset: 0; background: rgba(15, 23, 42, .25); z-index: 90; }
.ip-detalhe {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: var(--white); z-index: 91;
  box-shadow: -10px 0 30px rgba(15, 23, 42, .18); display: flex; flex-direction: column; animation: ip-entra .18s ease-out;
}
@keyframes ip-entra { from { transform: translateX(30px); opacity: 0; } }
.ip-detalhe-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 16px 18px 10px; border-bottom: 1px solid var(--border); }
.ip-detalhe-topo h3 { margin: 0; font-size: 1.05rem; color: var(--text); }
.ip-detalhe-acoes { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 18px; border-bottom: 1px solid var(--border); background: #f8fafc; }
.ip-detalhe-corpo { flex: 1; overflow-y: auto; padding: 4px 18px 20px; }
.ipd-secao { padding: 12px 0 4px; border-bottom: 1px dashed var(--border); }
.ipd-secao:last-child { border-bottom: none; }
.ipd-secao h4 { margin: 0 0 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: .6px; color: var(--primary); }
.ipd-linha { display: grid; grid-template-columns: 130px 1fr; gap: 8px; padding: 4px 0; font-size: .86rem; }
.ipd-linha > span { color: var(--text-muted); }
.ipd-linha > div { min-width: 0; overflow-wrap: anywhere; }
.ipd-linha small { color: var(--text-muted); }
.ipd-linha a { color: var(--primary); font-weight: 600; margin-left: 4px; }
.ipd-texto { margin: 0; font-size: .86rem; white-space: pre-wrap; }
.ipd-docs { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
@media (max-width: 900px) {
  .ip-resumo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-contagem { margin-left: 0; }
  #vista-inscritos { overflow-y: auto; }
  #vista-inscritos .ip-tabela { flex: none; min-height: auto; }
  .ipd-linha { grid-template-columns: 110px 1fr; }
}

/* Situação e check-in clicáveis na página de inscritos */
.ip-sit { display: inline-flex; align-items: center; gap: 1px; cursor: pointer; font-family: inherit; padding-right: 4px; }
.ip-sit .material-symbols-outlined { font-size: 15px; opacity: .6; }
.ip-sit:hover { filter: brightness(.95); box-shadow: 0 0 0 2px rgba(0, 59, 76, .12); }
.ip-sit:hover .material-symbols-outlined { opacity: 1; }
.ip-ck { border: none; background: none; cursor: pointer; padding: 4px; border-radius: 999px; line-height: 0; color: #cbd5e1; }
.ip-ck .material-symbols-outlined { font-size: 22px; }
.ip-ck:hover { background: #ecfdf5; color: #059669; }
.ip-ck.on { color: #059669; }
.ip-ck.on:hover { background: #fef2f2; color: #b91c1c; }
.ip-ck.bloqueado { color: #e2e8f0; }
.ip-ck.bloqueado:hover { background: none; color: #cbd5e1; cursor: not-allowed; }
.ip-menu { position: fixed; z-index: 95; width: 310px; background: var(--white); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 14px 34px rgba(15, 23, 42, .2); padding: 6px; }
.ip-menu-titulo { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); padding: 6px 10px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-menu button { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; border: none; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; font: inherit; color: var(--text); }
.ip-menu button:hover:not(:disabled), .ip-menu button:focus-visible { background: var(--primary-light); outline: none; }
.ip-menu button:disabled { opacity: .45; cursor: not-allowed; }
.ip-menu button > .material-symbols-outlined { font-size: 20px; color: var(--primary); margin-top: 1px; }
.ip-menu button b { display: block; font-size: .86rem; font-weight: 600; }
.ip-menu button small { display: block; font-size: .74rem; color: var(--text-muted); margin-top: 1px; }
.ip-menu button.perigo b, .ip-menu button.perigo > .material-symbols-outlined { color: #b91c1c; }
.ip-menu button.perigo:hover:not(:disabled) { background: #fef2f2; }
.ipd-cancelada { display: flex; gap: 10px; margin-top: 12px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 8px; padding: 10px 12px; font-size: .84rem; }
.ipd-cancelada .material-symbols-outlined { color: #b91c1c; }

/* Números de competição */
.ip-col-num { width: 54px; text-align: center; font-variant-numeric: tabular-nums; }
td.ip-col-num b { font-size: .95rem; color: var(--primary); }
.ip-sem-nome { color: #b45309; font-style: italic; font-weight: 500; }
.ip-numeracao { display: inline-flex; align-items: center; gap: 4px; border: 1px dashed var(--border-forte); background: var(--white); border-radius: 999px; padding: 1px 9px; font: inherit; font-size: .74rem; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.ip-numeracao .material-symbols-outlined { font-size: 15px; }
.ip-numeracao.fixa { border-style: solid; border-color: #a7f3d0; color: #047857; background: #ecfdf5; }
.ip-numeracao:hover { border-color: var(--primary); color: var(--primary); }
.ip-numero-grande { display: inline-block; background: var(--primary); color: #fff; border-radius: 8px; padding: 1px 10px; font-weight: 800; font-size: .95rem; letter-spacing: .5px; }
.nu-situacao { display: flex; gap: 10px; align-items: flex-start; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; border-radius: 8px; padding: 10px 12px; font-size: .86rem; }
.nu-situacao.fixa { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.ck-numero { margin: 0 18px 12px; background: var(--primary); color: #fff; border-radius: 10px; padding: 8px 14px; font-size: 2.4rem; font-weight: 800; text-align: center; letter-spacing: 2px; line-height: 1.1; }
.ck-numero small { display: block; font-size: .7rem; letter-spacing: .8px; text-transform: uppercase; font-weight: 700; opacity: .8; }
.ck-num { display: inline-block; min-width: 34px; text-align: center; background: var(--primary-light); color: var(--primary); border-radius: 6px; padding: 0 5px; font-weight: 800; font-size: .82rem; font-variant-numeric: tabular-nums; }

/* Importação de filiados (planilha / Google Planilhas) */
.imp-intro { font-size: .86rem; color: var(--text-muted); margin: 0 0 14px; }
.imp-origens { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.imp-origem { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.imp-origem h4 { margin: 0; font-size: .95rem; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 6px; }
.imp-origem p { margin: 0; font-size: .82rem; color: var(--text-muted); }
.imp-link { display: flex; gap: 6px; width: 100%; }
.imp-link input { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--border-forte); border-radius: var(--radius); font-size: .86rem; }
.imp-link input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); outline: none; }
.imp-dica { font-size: .76rem !important; }
.imp-dica code { background: var(--white); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; font-size: .74rem; word-break: break-all; }
.btn-link { background: none; border: none; color: var(--primary); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.btn-secundario-mini { font-size: .8rem; }
.imp-guia { margin-top: 16px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.imp-guia summary { cursor: pointer; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 6px; font-size: .88rem; }
.imp-guia p { font-size: .82rem; color: var(--text-muted); }
.imp-tabela { width: 100%; border-collapse: collapse; font-size: .8rem; }
.imp-tabela th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); border-bottom: 2px solid var(--border); padding: 6px 8px; }
.imp-tabela td { border-bottom: 1px solid var(--border); padding: 6px 8px; vertical-align: top; }
.imp-tabela td:first-child { font-weight: 600; white-space: nowrap; }
.imp-origem-lida { font-size: .82rem; color: var(--text-muted); margin-bottom: 10px; }
.imp-resumo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.imp-card { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--white); cursor: pointer; text-align: left; font: inherit; }
.imp-card b { display: block; font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.imp-card span { font-size: .78rem; color: var(--text-muted); }
.imp-card.novo b { color: var(--green); }
.imp-card.existe b { color: var(--primary); }
.imp-card.repetida b { color: #b45309; }
.imp-card.problema b { color: var(--red); }
.imp-card.ativo { outline: 2px solid var(--primary); outline-offset: -1px; }
.imp-colunas { font-size: .78rem; color: var(--text-muted); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.imp-chip { display: inline-block; border-radius: 999px; padding: 1px 8px; background: var(--primary-light); color: var(--primary); font-weight: 500; }
.imp-chip.ignorada { background: #f1f5f9; color: var(--text-muted); text-decoration: line-through; }
.imp-abas { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.imp-aba { border: 1px solid var(--border); background: var(--white); border-radius: 999px; padding: 3px 11px; font: inherit; font-size: .8rem; cursor: pointer; color: var(--text); }
.imp-aba.ativo { background: var(--primary); border-color: var(--primary); color: #fff; }
.imp-lista { max-height: 42vh; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.imp-lista table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.imp-lista th { position: sticky; top: 0; background: var(--bg); text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); padding: 6px 8px; border-bottom: 1px solid var(--border); }
.imp-lista td { padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.imp-lista td.num { color: var(--text-muted); font-variant-numeric: tabular-nums; width: 48px; }
.imp-motivo { color: var(--text-muted); }
.imp-aviso { color: #b45309; display: block; }
.imp-vazio { padding: 24px; text-align: center; color: var(--text-muted); }
.imp-acoes { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }
.imp-ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 10px; padding: 12px 14px; margin-top: 12px; white-space: pre-line; font-size: .88rem; }
@media (max-width: 760px) {
  .imp-origens { grid-template-columns: 1fr; }
  .imp-resumo { grid-template-columns: 1fr 1fr; }
}

/* Configurações: cobrança da anuidade por ano */
.cfg-cobranca { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.cfg-cobranca-linha { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; cursor: pointer; font-size: .9rem; }
.cfg-cobranca-linha input { width: 18px; height: 18px; }
.cfg-cobranca-linha em { margin-left: auto; font-style: normal; font-size: .75rem; font-weight: 600; border-radius: 999px; padding: 2px 10px; }
.cfg-cobranca-linha em.sim { background: #ecfdf5; color: #047857; }
.cfg-cobranca-linha em.nao { background: #fff7ed; color: #c2410c; }

/* Filiados: seleção e ações em lote */
.barra-lote { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }
.barra-lote-info { display: flex; align-items: center; gap: 8px; color: #1e3a8a; font-size: .86rem; }
.barra-lote-acoes { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-perigo { color: #b91c1c; border-color: #fca5a5; }
.btn-perigo:hover { background: #fef2f2; border-color: #ef4444; }
tr.linha-marcada td { background: #eff6ff; }
.lixeira-lote { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; font-size: .86rem; }
.lixeira-lote small { display: block; color: var(--text-muted); margin-top: 2px; }
.lixeira-botoes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; }
.lixeira-esvaziar { text-align: right; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }


/* Dashboard: equipes, coaches e números por evento */
.stat-sub { display: block; font-size: .7rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; line-height: 1.3; }
.dash-nota { font-size: .75rem; color: var(--text-muted); margin: 8px 0 0; }
.dash-eventos { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 18px; }
.dash-eventos-topo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.dash-eventos-topo h2 { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }
.dash-eventos-topo select { max-width: 460px; }
.dash-ev-titulo { font-size: .9rem; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dash-ev-base { margin-left: auto; font-size: .72rem; color: var(--text-muted); background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; }
.dash-tabela { width: 100%; border-collapse: collapse; font-size: .8rem; }
.dash-tabela th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); border-bottom: 1px solid var(--border); padding: 4px 6px; }
.dash-tabela td { border-bottom: 1px solid var(--border); padding: 5px 6px; vertical-align: top; }
.dash-tabela .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-tabela tr.total td { font-weight: 700; border-bottom: none; }
.dash-tabela td small { display: block; color: var(--text-muted); font-size: .7rem; font-weight: 400; }
.padrao-contagem { font-size: .82rem; color: var(--text-muted); margin: -4px 0 10px; }

/* Competição: cidade de cada resultado (ranking por cidades) */
.comp-res-topo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .82rem; color: var(--primary); margin-bottom: 6px; }
.comp-res-topo .btn { margin-left: auto; }
.comp-sem-cidade { color: #b91c1c; font-weight: 600; }
.comp-com-cidade { color: #047857; font-weight: 600; }
.comp-cidade { white-space: nowrap; }
.comp-cidade .btn-icone { display: inline-flex; vertical-align: middle; padding: 2px; }
.comp-origem { display: block; font-size: .66rem; color: var(--text-muted); }
.comp-so-sem { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--text-muted); cursor: pointer; }
.comp-atleta { display: flex; align-items: flex-start; gap: 4px; }
.comp-atleta .btn-icone { padding: 2px; flex-shrink: 0; }
.comp-atleta .btn-icone.ligado { color: #047857; }
.comp-ligado { display: block; font-size: .66rem; color: #047857; font-weight: 600; }

/* Ligar resultado ao filiado */
.lig-resultado { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: .88rem; margin-bottom: 10px; }
.lig-resultado small { color: var(--text-muted); }
.lig-ligado { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46;
  border-radius: 8px; padding: 8px 12px; font-size: .84rem; margin-bottom: 10px; }
.lig-ligado .btn { margin-left: auto; }
.lig-busca { display: flex; gap: 8px; margin-bottom: 8px; }
.lig-busca input { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--border-forte); border-radius: var(--radius); font-size: .92rem; }
.lig-busca input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); outline: none; }
.lig-todas { display: flex; align-items: flex-start; gap: 6px; font-size: .8rem; color: var(--text-muted); margin-bottom: 12px; cursor: pointer; }
.lig-todas input { margin-top: 2px; }
.lig-titulo { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); margin-bottom: 6px; }
.lig-vazio { font-size: .84rem; color: var(--text-muted); padding: 10px 0; }
.lig-item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; font-size: .86rem; }
.lig-item > div { flex: 1; min-width: 0; }
.lig-item small { display: block; font-size: .74rem; color: var(--text-muted); margin-top: 2px; }
.lig-item.atual { border-color: #6ee7b7; background: #ecfdf5; }
.lig-item .btn { flex-shrink: 0; }
.lig-tag { display: inline-block; font-size: .66rem; font-weight: 600; padding: 1px 6px; border-radius: 10px; background: #fee2e2; color: #b91c1c; vertical-align: middle; }
.lig-tag.ok { background: #d1fae5; color: #065f46; }
