/* 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: 2340;
  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; }
