/* Janelinha «Faciais deste cadastro» (js/entrega-faciais.js, item 578, 17/10/2026). Só tokens da paleta (acompanha as 6 paletas × 3 modos). Camada 2340: acima das gavetas e da bandeja de avisos, abaixo dos popups (2350+)
   e dos avisos rápidos (4000) — ver a escala no topo de css/style.css. Não é modal: não escurece nem trava a tela. */
.ef-pilha {
  position: fixed; right: 16px; bottom: 16px; z-index: var(--z-resultado);
  display: flex; flex-direction: column; gap: 10px;
  width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 32px); pointer-events: none;
}
.ef-cartao {
  pointer-events: auto; display: flex; flex-direction: column; min-height: 0; max-height: min(52vh, 460px);
  background: var(--card-bg); color: var(--text); border: 1px solid var(--border); border-left: 4px solid var(--warning);
  border-radius: 12px; box-shadow: 0 12px 32px color-mix(in srgb, var(--text) 20%, transparent); padding: 12px 14px 10px; font-size: 13px;
  animation: toast-entrada .15s ease-out;
}
.ef-cartao.ef-tudo-ok { border-left-color: var(--success); }
.ef-cartao.ef-tem-erro { border-left-color: var(--danger); }
.ef-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ef-tit { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ef-pessoa { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ef-sub { color: var(--text-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ef-fechar { flex: 0 0 auto; min-width: 32px; min-height: 32px; padding: 0; border: 0; background: transparent; color: var(--text-muted); font-size: 15px; border-radius: 8px; cursor: pointer; }
.ef-fechar:hover { color: var(--text); background: var(--surface-2); }
.ef-resumo { display: flex; align-items: center; gap: 10px; margin: 8px 0 6px; }
.ef-contagem { font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.ef-barra { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.ef-barra > i { display: block; height: 100%; background: var(--success); transition: width .3s ease; }
.ef-corpo { overflow-y: auto; min-height: 0; flex: 1 1 auto; padding-right: 2px; }
.ef-secao + .ef-secao { margin-top: 8px; }
.ef-secao h4 { margin: 0 0 3px; font-size: 11.5px; letter-spacing: .02em; text-transform: uppercase; color: var(--text-muted); }
.ef-secao .ef-n { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--surface-2); text-align: center; }
.ef-sec-falta h4 { color: var(--amber-text); }
.ef-secao ul { list-style: none; margin: 0; padding: 0; }
.ef-linha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 8px; padding: 5px 0; border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.ef-linha:first-child { border-top: 0; }
.ef-nome { min-width: 0; flex: 1 1 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ef-nome small { color: var(--text-muted); }
.ef-dica { flex: 1 1 100%; color: var(--text-muted); font-size: 11.5px; line-height: 1.35; }
.ef-erro .ef-dica { color: var(--red-text); }
.ef-rodape { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.ef-estado { color: var(--text-muted); font-size: 11.5px; line-height: 1.35; }
.ef-detalhes { flex: 0 0 auto; min-height: 32px; padding: 4px 12px; font-size: 12px; }
html.mob-celular .ef-pilha { left: 12px; right: 12px; width: auto; bottom: calc(86px + env(safe-area-inset-bottom)); }
html.mob-celular .ef-cartao { max-height: min(30vh, 260px); }
@media (prefers-reduced-motion: reduce) { .ef-cartao { animation: none; } .ef-barra > i { transition: none; } }
/* 26/10/2026 (popups-sem-sobreposicao.js): quando o balão de resultado não deixa altura útil acima do cartão, o cartão se recolhe (só cabeçalho e contagem); volta sozinho quando o balão sai. */
.ef-cartao.ef-recolhido .ef-corpo, .ef-cartao.ef-recolhido .ef-rodape { display: none; }
.ef-cartao.ef-recolhido { padding-bottom: 8px; }

/* =====================================================================================================================================
   1.5.236 (DIREÇÃO A, seção 2, aprovada pelo Alan em 22/11/2026): o CARTÃO ÚNICO DE RESULTADO (js/entrega-faciais.js).
   Embaixo da coluna da esquerda (o JS põe left/width medidos), nunca sobre o Reconhecimento facial e o Log; celular: largura total menos 16 px
   de cada lado, acima da barra do celular. Título com ✓ ↻ ⏳ ✕, barra, linha de resumo, «Ver faciais»/«Ver detalhes» e ✕ com 44 px.
   Entrada de baixo para cima em 200 ms; com «reduzir movimento», só opacidade. Camada --z-resultado (escala única de css/style.css).
   ===================================================================================================================================== */
.ef-pilha { left: 16px; right: auto; bottom: 16px; width: min(560px, calc(100vw - 32px)); }
.ef-cartao { max-height: min(70vh, 560px); animation: ef-entrar 200ms cubic-bezier(0.23, 1, 0.32, 1) both; }
.ef-cartao.ef-saindo { animation: ef-sair 200ms cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes ef-entrar { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes ef-sair { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(16px); } }
.ef-cab { align-items: center; }
.ef-titulo { font-size: 15px; line-height: 1.25; }
.ef-cartao.ef-tudo-ok .ef-titulo { color: var(--green-text, var(--success)); }
.ef-cartao.ef-tem-erro .ef-titulo { color: var(--red-text, var(--danger)); }
.ef-cartao.ef-tem-espera .ef-titulo { color: var(--amber-text, var(--warning)); }
.ef-pessoa { font-size: 13px; font-weight: 600; color: var(--text); }
.ef-fechar { min-width: 44px; min-height: 44px; font-size: 18px; }
.ef-linha-resumo { font-size: 13px; font-weight: 600; margin: 2px 0 4px; }
.ef-fecha { font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.ef-acao { overflow-y: auto; min-height: 0; max-height: 34vh; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); font-size: 13px; }
.ef-acao .balao-resultado-secao + .balao-resultado-secao { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.ef-corpo { max-height: 30vh; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.ef-rodape { justify-content: flex-end; flex-wrap: wrap; }
.ef-rodape:empty { display: none; }
.ef-rodape button, .ef-detalhes { min-height: 44px; padding: 0 16px; font-size: 13px; }
.ef-dica { font-size: 12px; }
.ef-reserva { flex: none; pointer-events: none; }
html.mob-celular .ef-pilha { left: 16px; right: 16px; width: auto; }
@media (max-width: 767px) {
  .ef-pilha { left: 16px !important; right: 16px !important; width: auto !important; }
  .ef-rodape { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .ef-cartao { animation: ef-entrar-opacidade 120ms linear both; }
  .ef-cartao.ef-saindo { animation: ef-sair-opacidade 120ms linear both; }
}
@keyframes ef-entrar-opacidade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ef-sair-opacidade { from { opacity: 1; } to { opacity: 0; } }
