/* A marca Atendizer no site do cliente (18/11/2026). O desenho e as cores vêm do guia da marca: A em grafite (aqui, a cor do texto,
   para valer no claro e no escuro), balão em cinza #7C8189, pontinhos brancos. As peças saem de marca.js. Animações curtas, e
   nenhuma com prefers-reduced-motion. */
:root { --atz-balao: #7c8189; --atz-ponto: #ffffff; }

/* Logo e símbolo */
.marca .atz-logo { display: block; height: 30px; width: auto; color: var(--tinta); overflow: visible; }
.atz-logo .atz-a-esq, .atz-logo .atz-a-dir, .atz-simbolo .atz-a-esq, .atz-simbolo .atz-a-dir { fill: none; stroke: currentColor; stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
.atz-logo .atz-nome { fill: currentColor; }
.atz-balao { fill: var(--atz-balao); stroke: var(--atz-balao); stroke-width: 1.6; stroke-linejoin: round; }
.atz-p { fill: var(--atz-ponto); }
.atz-simbolo { display: block; color: var(--tinta); overflow: visible; }
.atz-so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 1. Digitando: o indicador de carregamento padrão. Os pontinhos sobem e descem um depois do outro (0,15 s entre eles). */
.atz-digitando { display: inline-flex; align-items: center; vertical-align: middle; }
.atz-digitando svg { display: block; width: 46px; height: auto; overflow: visible; }
.atz-digitando .atz-p, .atz-simbolo.atz-digitando .atz-p { transform-box: fill-box; transform-origin: center; animation: atz-pula 1.2s ease-in-out infinite; }
.atz-digitando .atz-p2, .atz-simbolo.atz-digitando .atz-p2 { animation-delay: 0.15s; }
.atz-digitando .atz-p3, .atz-simbolo.atz-digitando .atz-p3 { animation-delay: 0.3s; }
@keyframes atz-pula { 0%, 60%, 100% { transform: translateY(0); opacity: 0.55; } 30% { transform: translateY(-3px); opacity: 1; } }
/* No alto de todo bloco de carregamento (os esqueletos continuam embaixo). */
.carregando > .atz-digitando { display: flex; justify-content: center; margin: 0 0 18px; }
.imp-lendo .atz-digitando svg, .wz-sobre .atz-digitando svg, .wz-selo .atz-digitando svg { width: 30px; }
.wz-selo .atz-digitando { margin-right: 6px; }

/* 2. O balão vira a barra: abertura do site (tela de entrada) e símbolo em modo 'abertura'. Uma vez, em cerca de 1,2 s. */
.atz-abertura .atz-a-esq, .atz-abertura .atz-a-dir { stroke-dasharray: 100; stroke-dashoffset: 100; animation: atz-traca 0.42s ease-out forwards; }
.atz-abertura .atz-a-dir { animation-delay: 0.22s; }
.atz-abertura .atz-balao { opacity: 0; transform: translateX(-46px); animation: atz-desliza 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards; }
.atz-abertura .atz-p { opacity: 0; animation: atz-aparece 0.2s ease-out forwards; }
.atz-abertura .atz-p1 { animation-delay: 0.95s; }
.atz-abertura .atz-p2 { animation-delay: 1.03s; }
.atz-abertura .atz-p3 { animation-delay: 1.11s; }
@keyframes atz-traca { to { stroke-dashoffset: 0; } }
@keyframes atz-desliza { to { opacity: 1; transform: none; } }
@keyframes atz-aparece { to { opacity: 1; } }

/* 3. Pontinhos viram tique: confirmação curta nos avisos de sucesso que já existiam. */
.atz-tique { display: inline-block; width: 30px; height: auto; vertical-align: -4px; margin-right: 8px; overflow: visible; flex: none; }
.atz-tique .atz-tq { fill: none; stroke: var(--atz-ponto); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.atz-tique .atz-p { opacity: 0; }
.atz-tique.atz-vai .atz-p { opacity: 1; transform-box: view-box; transform-origin: 51px 63px; animation: atz-junta 0.35s ease-in 0.15s forwards; }
.atz-tique.atz-vai .atz-tq { stroke-dashoffset: 1; animation: atz-traca 0.3s ease-out 0.5s forwards; }
@keyframes atz-junta { to { transform: scale(0.2); opacity: 0; } }
/* aviso com o tique: o tique fica à esquerda, o texto ao lado */
.atz-com-tique { position: relative; }
.pg-feito.atz-com-tique > .atz-tique, .cp-feito.atz-com-tique > .atz-tique { margin-bottom: 6px; }

/* 4. Estado vazio: o símbolo com os pontinhos parados, em cima do título. Os de erro (role="alert") ficam sem. */
.estado:not([role='alert']) > h2:first-child::before,
.estado-vazio > h2:first-child::before {
  content: '';
  display: block;
  width: 44px;
  height: 52px;
  margin: 0 auto 14px;
  background: url('/site/marca/atendizer-simbolo.svg') center / contain no-repeat;
  opacity: 0.9;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='claro']) .estado:not([role='alert']) > h2:first-child::before,
  :root:not([data-theme='claro']) .estado-vazio > h2:first-child::before { background-image: url('/site/marca/atendizer-simbolo-escuro.svg'); }
}
:root[data-theme='escuro'] .estado:not([role='alert']) > h2:first-child::before,
:root[data-theme='escuro'] .estado-vazio > h2:first-child::before { background-image: url('/site/marca/atendizer-simbolo-escuro.svg'); }

/* 5. Tela de entrada: o logo se monta enquanto o site carrega. Some quando a primeira tela desenha, então nunca atrasa o uso. */
.atz-entrada { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: var(--painel); }
.atz-entrada .atz-simbolo { width: 64px; height: auto; }
.atz-entrada .atz-digitando { opacity: 0; animation: atz-aparece 0.3s ease-out 1.6s forwards; }

@media (prefers-reduced-motion: reduce) {
  .atz-digitando .atz-p, .atz-simbolo .atz-p, .atz-abertura .atz-a-esq, .atz-abertura .atz-a-dir, .atz-abertura .atz-balao, .atz-abertura .atz-p,
  .atz-tique.atz-vai .atz-p, .atz-tique.atz-vai .atz-tq, .atz-entrada .atz-digitando { animation: none; }
  .atz-digitando .atz-p { opacity: 0.8; }
  .atz-abertura .atz-a-esq, .atz-abertura .atz-a-dir { stroke-dashoffset: 0; }
  .atz-abertura .atz-balao, .atz-abertura .atz-p, .atz-entrada .atz-digitando { opacity: 1; transform: none; }
  .atz-tique.atz-vai .atz-p { opacity: 0; }
  .atz-tique.atz-vai .atz-tq { stroke-dashoffset: 0; }
}
