/* KidsCheck — interface moderna */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primaria: #6366f1;
  --primaria-escura: #4f46e5;
  --grad: linear-gradient(135deg, #6366f1, #8b5cf6);
  --verde: #10b981;
  --verde-escuro: #059669;
  --vermelho: #ef4444;
  --laranja: #f59e0b;
  --fundo: #f4f5fb;
  --card: #ffffff;
  --texto: #0f172a;
  --texto-suave: #64748b;
  --borda: #e5e7f0;
  --raio: 16px;
  --sombra: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -12px rgba(15, 23, 42, .12);
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1000px 400px at 80% -10%, rgba(139, 92, 246, .08), transparent),
    radial-gradient(800px 300px at 10% -10%, rgba(99, 102, 241, .08), transparent),
    var(--fundo);
  color: var(--texto);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---------- topo ---------- */
.topo {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--borda);
  position: sticky; top: 0; z-index: 20;
}
.topo-inner {
  max-width: 1180px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.logo {
  font-size: 1.15rem; font-weight: 800; text-decoration: none;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-flex; align-items: center; gap: 6px;
}
.logo-icone { -webkit-text-fill-color: initial; }
.logo-img { height: 36px; width: auto; display: block; }
.portal-logo { max-height: 64px; width: auto; margin-bottom: 8px; }
.menu { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; }
.menu a {
  padding: 8px 14px; border-radius: 99px; text-decoration: none;
  color: var(--texto-suave); font-weight: 600; font-size: .92rem;
  transition: all .15s;
}
.menu a:hover { background: #eef0fb; color: var(--texto); }
.menu a.ativo { background: var(--grad); color: #fff; box-shadow: 0 4px 12px -4px rgba(99, 102, 241, .5); }
.topo-user { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.user-info { display: flex; flex-direction: column; text-align: right; line-height: 1.25; font-size: .92rem; }
.user-info small { color: var(--texto-suave); }

/* ---------- layout ---------- */
.conteudo { max-width: 1180px; margin: 0 auto; padding: 28px 16px 70px; }
.pagina-cabecalho {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 22px;
}
h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1.1rem; font-weight: 700; margin: 18px 0 12px; }
.card h2:first-child { margin-top: 0; }
.card {
  background: var(--card); border: 1px solid var(--borda);
  border-radius: var(--raio); padding: 22px; margin-bottom: 16px;
  box-shadow: var(--sombra);
}
.duas-colunas { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
.tres-colunas { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .duas-colunas, .tres-colunas { grid-template-columns: 1fr; } }
.centro { text-align: center; justify-content: center !important; display: block; }
div.centro { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.oculto { display: none !important; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: 12px; border: 1px solid var(--borda);
  background: var(--card); color: var(--texto); font-size: .95rem; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: all .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--sombra); }
.btn-primario { background: var(--grad); border: none; color: #fff; box-shadow: 0 6px 16px -6px rgba(99, 102, 241, .6); }
.btn-entrada { background: linear-gradient(135deg, #10b981, #059669); border: none; color: #fff; font-size: 1.05rem; }
.btn-saida { background: linear-gradient(135deg, #f59e0b, #d97706); border: none; color: #fff; }
.btn-perigo { background: #fef2f2; border-color: #fecaca; color: var(--vermelho); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--texto-suave); }
.btn-sm { padding: 6px 10px; font-size: .84rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-arquivo { position: relative; overflow: hidden; }

/* ---------- formulários ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form:not(.form-larga) { max-width: 560px; }
.form label, .painel-info label, .rotulo { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
input, select, textarea {
  padding: 11px 13px; border: 1.5px solid var(--borda); border-radius: 12px;
  font-size: 1rem; font-family: inherit; background: #fff; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primaria);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .12);
}
fieldset { border: 1.5px solid var(--borda); border-radius: var(--raio); padding: 16px; }
legend { font-weight: 700; padding: 0 8px; }
.form-acoes { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.busca { display: flex; gap: 8px; margin-bottom: 18px; max-width: 560px; align-items: end; }
.busca.sem-margem { margin-bottom: 0; }
.rotulo-inline { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; }
.form-inline select { padding: 6px 8px; font-size: .85rem; border-radius: 8px; width: auto; max-width: 180px; }
.form-grid { display: grid; grid-template-columns: 1fr 220px; gap: 20px; align-items: start; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-col { display: flex; flex-direction: column; gap: 14px; }
.form-col-foto { align-items: center; text-align: center; }
.form-linha { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- tabelas ---------- */
.tabela-wrap { overflow-x: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--borda); vertical-align: middle; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texto-suave); background: #fafbff; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbff; }
.acoes { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ---------- componentes ---------- */
.alerta { padding: 13px 16px; border-radius: 12px; margin-bottom: 14px; font-weight: 500; }
.alerta-erro { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alerta-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge { padding: 3px 10px; border-radius: 99px; font-size: .76rem; font-weight: 700; white-space: nowrap; display: inline-block; }
.badge-ok { background: #d1fae5; color: #047857; }
.badge-off { background: #eef0f6; color: var(--texto-suave); }
.badge-atencao { background: #fef3c7; color: #b45309; }
.vazio { color: var(--texto-suave); text-align: center; padding: 26px; }
.obs { color: #b45309; font-weight: 600; }
.dica { color: var(--texto-suave); font-size: .88rem; margin-bottom: 10px; }

/* ---------- fotos ---------- */
.foto-mini { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; display: flex; align-items: center; justify-content: center; background: #eef0f6; font-size: 1.4rem; flex-shrink: 0; }
.foto-crianca { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.foto-crianca-grande { width: 130px; height: 130px; border-radius: 18px; object-fit: cover; flex-shrink: 0; box-shadow: var(--sombra); }
.foto-preview { width: 150px; height: 150px; border-radius: 18px; object-fit: cover; box-shadow: var(--sombra); }
.foto-vazia { display: flex; align-items: center; justify-content: center; background: #eef0f6; font-size: 2.2rem; }

/* ---------- login ---------- */
.card-login { max-width: 400px; margin: 9vh auto 0; text-align: center; padding: 34px 30px; }
.logo-grande { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 6px; }
.subtitulo { color: var(--texto-suave); margin-bottom: 22px; line-height: 1.5; }
.card-login .form { text-align: left; }

/* ---------- dashboard ---------- */
.cards-resumo { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 26px; max-width: 640px; }
.resumo { text-align: center; margin-bottom: 0; }
.resumo-numero { display: block; font-size: 2.5rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.resumo-atencao .resumo-numero { background: linear-gradient(135deg, #f59e0b, #d97706); -webkit-background-clip: text; background-clip: text; }
.resumo-rotulo { color: var(--texto-suave); font-weight: 600; font-size: .9rem; }
.grade-criancas { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-bottom: 16px; }
.card-crianca { display: flex; gap: 12px; align-items: center; margin-bottom: 0; padding: 16px; }
.card-pendente { border: 1.5px solid #fcd34d; background: #fffdf5; }
.card-crianca-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card-crianca-info small { color: var(--texto-suave); }
.codigo strong { color: var(--primaria); letter-spacing: .12em; }

/* ---------- check-in ---------- */
#leitor-qr, #leitor-facial { border-radius: 14px; overflow: hidden; margin-bottom: 10px; background: #0f172a; }
#video-facial { width: 100%; display: block; }
#resultados-busca, .resultados-flutuantes { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.item-busca {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1.5px solid var(--borda); border-radius: 12px; background: #fff;
  font-size: 1rem; font-weight: 600; cursor: pointer; text-align: left; transition: all .15s;
}
.item-busca:hover { border-color: var(--primaria); background: #f6f7ff; }
.painel-crianca { border: 2px solid var(--primaria); }
.painel-flex { display: flex; gap: 22px; flex-wrap: wrap; }
.painel-info { flex: 1; min-width: 250px; display: flex; flex-direction: column; gap: 12px; }

.modal {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .6);
  display: flex; align-items: center; justify-content: center; z-index: 60; padding: 16px;
  backdrop-filter: blur(3px);
}
.modal-conteudo { max-width: 420px; width: 100%; text-align: center; max-height: 92vh; overflow-y: auto; }
.modal-conteudo .form { text-align: left; }
.codigo-grande {
  font-size: 3rem; font-weight: 800; letter-spacing: .22em; color: var(--primaria);
  background: #f6f7ff; border: 2px dashed #c7d2fe; border-radius: 16px; padding: 16px; margin: 14px 0;
  text-align: center;
}
.camera-modal { max-width: 520px; }
.camera-video { width: 100%; border-radius: 14px; background: #0f172a; margin: 10px 0; }

/* ---------- vínculos de responsáveis ---------- */
.lista-vinculos { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.vinculo-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1.5px solid var(--borda); border-radius: 14px; background: #fafbff;
}
.vinculo-card.inativo { opacity: .55; }
.vinculo-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vinculo-info small { color: var(--texto-suave); }
.vinculo-acoes { display: flex; gap: 5px; flex-wrap: wrap; }

/* ---------- crachá cartão ---------- */
.cracha-wrap { max-width: 560px; margin: 0 auto; text-align: center; }
.seletor-modo { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.cartao {
  width: 428px; max-width: 100%; margin: 0 auto 14px; border-radius: 18px; overflow: hidden;
  background: #fff; border: 1px solid var(--borda); box-shadow: 0 16px 40px -16px rgba(15, 23, 42, .3);
  text-align: left; aspect-ratio: 856 / 540; display: flex; flex-direction: column;
}
.cartao-faixa {
  background: var(--grad); color: #fff; padding: 10px 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.cartao-logo { font-weight: 800; }
.cartao-org { font-size: .8rem; opacity: .95; text-align: right; }
.cartao-corpo { flex: 1; display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.cartao-foto { width: 86px; height: 86px; border-radius: 14px; object-fit: cover; }
.cartao-dados { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cartao-nome { font-size: 1.15rem; font-weight: 800; }
.cartao-dados small { color: var(--texto-suave); font-size: .78rem; }
.cartao-qr { width: 108px; height: 108px; }
.cartao-rodape { background: #fafbff; border-top: 1px solid var(--borda); font-size: .7rem; color: var(--texto-suave); padding: 6px; text-align: center; }

.etiqueta {
  width: 220px; margin: 0 auto 14px; padding: 14px; border: 1.5px dashed #94a3b8; border-radius: 12px;
  background: #fff; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.etiqueta-qr { width: 180px; height: 180px; }
.etiqueta-nome { font-size: .95rem; text-align: center; }

/* ---------- comprovante (bobina 80mm) ---------- */
.comprovante-wrap { max-width: 420px; margin: 0 auto; }
.comprovante {
  width: 302px; /* ~80mm */ margin: 0 auto 16px; background: #fff; padding: 18px 16px;
  border: 1px solid var(--borda); border-radius: 8px; box-shadow: var(--sombra);
  font-family: 'Courier New', monospace; font-size: .85rem; text-align: center;
}
.comp-topo { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.comp-topo strong { font-size: 1rem; }
.comp-linha { color: #94a3b8; overflow: hidden; white-space: nowrap; }
.comp-item { display: flex; justify-content: space-between; gap: 10px; margin: 6px 0; text-align: left; }
.comp-codigo { margin: 12px 0 8px; display: flex; flex-direction: column; }
.comp-codigo strong { font-size: 2.2rem; letter-spacing: .3em; }
.comp-qr { width: 150px; height: 150px; margin: 6px auto; }
.comp-rodape { margin-top: 8px; color: #475569; }

/* ---------- portal do responsável ---------- */
.portal-body { background: linear-gradient(180deg, #eef0fb, var(--fundo) 300px); }
.portal { max-width: 520px; }
.portal-topo { text-align: center; margin-bottom: 22px; }
.portal-topo h1 { margin-top: 6px; }
.portal-crianca { display: flex; flex-direction: column; gap: 12px; }
.portal-crianca-topo { display: flex; gap: 12px; align-items: center; }
.portal-qr summary { cursor: pointer; font-weight: 600; color: var(--primaria); padding: 6px 0; }
.portal-qr-img { display: block; width: 240px; max-width: 100%; margin: 10px auto; }

/* ---------- animações ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.7); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.fade-up { animation: fadeUp .45s cubic-bezier(.2, .7, .3, 1) both; }
.conteudo > .card, .grade-criancas > *, .cards-resumo > * { animation: fadeUp .45s cubic-bezier(.2, .7, .3, 1) both; }
.stagger { animation: fadeUp .5s cubic-bezier(.2, .7, .3, 1) both; }
.stagger:nth-child(2) { animation-delay: .06s; }
.stagger:nth-child(3) { animation-delay: .12s; }
.stagger:nth-child(4) { animation-delay: .18s; }
.grade-orgs .stagger:nth-child(n) { animation-delay: calc(var(--i, 0) * .05s); }
.btn-grande { padding: 15px 20px; font-size: 1.05rem; margin-bottom: 10px; }

/* ---------- form grid 2 col ---------- */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-grid-2 { grid-template-columns: 1fr; } }
.sem-margem { margin-bottom: 0 !important; }

/* ---------- cards de organização (admin) ---------- */
.cards-resumo-admin { max-width: 100%; }
.grade-orgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.org-card { margin-bottom: 0; transition: transform .18s, box-shadow .18s; }
.org-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -16px rgba(99, 102, 241, .3); }
.org-inativa { opacity: .6; }
.org-card-topo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.org-avatar {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
}
.org-card-titulo { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.org-card-titulo small { color: var(--texto-suave); }
.org-metricas { display: flex; gap: 8px; padding: 14px 0; border-top: 1px solid var(--borda); border-bottom: 1px solid var(--borda); margin-bottom: 14px; }
.org-metricas > div { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.org-metricas strong { font-size: 1.1rem; }
.org-metricas span { font-size: .72rem; color: var(--texto-suave); text-transform: uppercase; letter-spacing: .04em; }
.org-card-acoes { display: flex; gap: 8px; }
.org-card-acoes form { flex: 1; }
.org-card-acoes .btn { width: 100%; }

/* ---------- switch ---------- */
.switch-linha { flex-direction: row !important; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; }
.switch-linha input { appearance: none; width: 46px; height: 26px; border-radius: 99px; background: #cbd5e1; position: relative; cursor: pointer; transition: background .2s; flex-shrink: 0; border: none; }
.switch-linha input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch-linha input:checked { background: var(--verde); }
.switch-linha input:checked::after { transform: translateX(20px); }

/* ---------- gateway / cobrança ---------- */
.gateway-config summary { cursor: pointer; padding: 4px 0; }
.gateway-config .form { margin-top: 16px; }
.cobranca-card { display: flex; gap: 26px; flex-wrap: wrap; }
.cobranca-info { display: flex; flex-direction: column; gap: 14px; min-width: 200px; }
.cobranca-info .dica { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.valor-grande { font-size: 1.8rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cobranca-pix { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.pix-qr { width: 240px; height: 240px; }
.cobranca-pix textarea { font-family: monospace; font-size: .8rem; word-break: break-all; }

/* ---------- gráfico de barras ---------- */
.grafico-barras { display: flex; align-items: flex-end; gap: 8px; height: 200px; padding-top: 20px; overflow-x: auto; }
.barra-col { flex: 1; min-width: 34px; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 4px; }
.barra { width: 70%; max-width: 42px; border-radius: 8px 8px 0 0; background: var(--grad); min-height: 4px; animation: barraSobe .6s cubic-bezier(.2,.7,.3,1) both; transition: filter .15s; }
.barra-col:hover .barra { filter: brightness(1.1); }
@keyframes barraSobe { from { height: 0 !important; } }
.barra-valor { font-weight: 700; font-size: .85rem; color: var(--primaria); }
.barra-label { font-size: .68rem; color: var(--texto-suave); white-space: nowrap; }
.pill-num { display: inline-block; min-width: 28px; text-align: center; padding: 2px 8px; border-radius: 99px; background: #eef0fb; color: var(--primaria); font-weight: 700; }

.filtro-periodo { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }

/* ---------- timeline (histórico) ---------- */
.timeline { display: flex; flex-direction: column; gap: 12px; }
.timeline-item { display: flex; gap: 16px; margin-bottom: 0; align-items: flex-start; }
.tl-foto { flex-shrink: 0; }
.tl-corpo { flex: 1; min-width: 0; }
.tl-cabecalho { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tl-cabecalho strong { font-size: 1.05rem; }
.tl-eventos { display: flex; flex-direction: column; gap: 8px; }
.tl-evento { display: flex; gap: 12px; align-items: baseline; padding-left: 14px; position: relative; }
.tl-evento::before { content: ''; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 50%; }
.tl-entrada::before { background: var(--verde); }
.tl-saida::before { background: var(--laranja); }
.tl-hora { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--texto); min-width: 42px; }
.tl-desc { color: var(--texto-suave); font-size: .92rem; }
.tl-desc strong { color: var(--texto); }
.tl-obs { background: #fffbeb; color: #b45309; padding: 6px 10px; border-radius: 8px; font-size: .85rem; margin-left: 14px; }

/* ---------- portal: passos do check-in ---------- */
.aviso-suave { background: #f0f4ff; border-color: #dbe4ff; color: #3730a3; text-align: center; }
#ck-leitor-qr, #ck-leitor-facial { border-radius: 14px; overflow: hidden; margin: 10px 0; background: #0f172a; }
#ck-video { width: 100%; display: block; }
.ck-nome { font-size: 1.3rem; font-weight: 800; margin: 12px 0; }
.sucesso-check { font-size: 3.5rem; animation: pop .5s cubic-bezier(.2,.7,.3,1) both; }
#ck-confirmar .foto-crianca-grande { margin: 0 auto; }

/* ---------- métodos de check-in (cards) ---------- */
.h2-sub { font-size: .82rem; font-weight: 600; color: var(--texto-suave); }
.metodos-checkin .metodo-card { display: flex; flex-direction: column; margin-bottom: 0; transition: transform .18s, box-shadow .18s; }
.metodo-card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -18px rgba(99,102,241,.35); }
.metodo-cabecalho { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.metodo-cabecalho h2 { margin: 0; font-size: 1.05rem; }
.metodo-icone {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.metodo-icone-qr { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); }
.metodo-icone-facial { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.metodo-icone-busca { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.leitor-area { border-radius: 14px; overflow: hidden; margin-bottom: 12px; background: #0f172a; }
.leitor-area video { width: 100%; display: block; }
.metodo-acoes { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.status-facial {
  text-align: center; font-weight: 600; font-size: .9rem; color: var(--primaria);
  background: #f6f7ff; border-radius: 10px; padding: 8px; margin-bottom: 10px;
}
.btn-cancelar { background: #fef2f2; border-color: #fecaca; color: var(--vermelho); }

/* ---------- selo de reconhecimento facial (lista de crianças) ---------- */
.selo-facial { margin-top: 4px; font-size: .72rem; }

/* ---------- card de pendente (painel) ---------- */
.card-pendente {
  background: linear-gradient(180deg, #fffdf5, #fff); border: 1.5px solid #fcd34d;
  border-radius: var(--raio); padding: 16px; margin-bottom: 0;
  box-shadow: 0 10px 26px -16px rgba(217, 119, 6, .35);
}
.pendente-topo { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.pendente-info { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pendente-info strong { font-size: 1.05rem; }
.pendente-meta { font-size: .82rem; color: var(--texto-suave); }
.pendente-selo { align-self: flex-start; }
.pendente-acoes { display: flex; gap: 8px; }
.pendente-acoes .btn { flex: 1; }

/* ---------- modal de responsáveis ---------- */
.mr-lista { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; text-align: left; }
.mr-item {
  display: flex; gap: 12px; align-items: center; padding: 12px;
  border: 1px solid var(--borda); border-radius: 14px; background: #fafbff;
}
.mr-dados { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mr-dados small { color: var(--texto-suave); line-height: 1.5; }

/* ---------- impressão ---------- */
@media print {
  .topo, .nao-imprimir { display: none !important; }
  body { background: #fff; }
  .conteudo { padding: 0; max-width: none; }
  .card, .comprovante, .cartao, .etiqueta { box-shadow: none; }
  .comprovante { border: none; width: 100%; padding: 0; }
  .cartao { box-shadow: none; border: 1px solid #cbd5e1; }
}
