
/* ===================== 20/10/2026 — AVISOS NO CENTRO =====================
   Os avisos saíam no canto de baixo, em verde claro sobre fundo claro, e
   eram difíceis de ler. Agora aparecem no centro da tela, em cartão sólido,
   com a cor só na borda e no ícone. Mesma entrada e saída suaves. */
#toast-container {
  position: fixed; top: 50%; left: 50%; right: auto; bottom: auto;
  transform: translate(-50%, -50%);
  z-index: 10050;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: max-content; max-width: calc(100vw - 32px);
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--surface) !important; color: var(--text) !important;
  border: 1px solid var(--border) !important; border-left-width: 5px !important;
  border-radius: 14px;
  padding: 16px 22px;
  font-size: 0.95rem; font-weight: 600; line-height: 1.4;
  max-width: min(440px, calc(100vw - 32px));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.08);
  animation: toastIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.toast svg { width: 22px; height: 22px; }
.toast-success { border-left-color: var(--green) !important; }
.toast-success svg { color: var(--green); }
.toast-error { border-left-color: var(--red) !important; }
.toast-error svg { color: var(--red); }
.toast-info { border-left-color: var(--blue) !important; }
.toast-info svg { color: var(--blue); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px) scale(0.97); } }

/* ===================== 20/10/2026 — BARRA DO CELULAR SÓ COM ÍCONES =====================
   No celular o toque deixava o nome do ícone "preso" na tela. Fora do
   computador, o nome não aparece; no primeiro uso a legenda explica. */
@media (max-width: 760px), (hover: none) {
  .nav-tooltip { display: none !important; }
}
.nav-legenda {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 1200;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  padding: 18px 16px 16px;
  animation: toastIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.nav-legenda.saindo { animation: toastOut 0.25s ease forwards; }
.nav-legenda-titulo { font-weight: 800; font-size: 1rem; margin-bottom: 12px; }
.nav-legenda-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; margin-bottom: 14px; }
.nav-legenda-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: var(--text2); min-width: 0; }
.nav-legenda-item svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--text); }
.nav-legenda-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-legenda-ok { width: 100%; justify-content: center; }

/* ===================== 20/10/2026 — CLIENTES = CADASTRO =====================
   A página Clientes lista pessoas, não sessões. Cartões funcionam igual no
   computador e no celular. */
.cadastro-lista { display: flex; flex-direction: column; gap: 10px; }
.cadastro-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.cadastro-item .client-avatar-sm { flex-shrink: 0; }
.cadastro-info { flex: 1; min-width: 0; }
.cadastro-nome { font-weight: 700; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cadastro-sub { font-size: 0.8rem; color: var(--text3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cadastro-acoes { display: flex; gap: 6px; flex-shrink: 0; }
.cadastro-agendar { color: var(--green); background: var(--green-faded); }
@media (max-width: 560px) {
  .cadastro-item { flex-wrap: wrap; padding: 14px; }
  .cadastro-acoes { width: 100%; justify-content: flex-end; border-top: 1px solid var(--border); padding-top: 10px; }
}
.cadastro-abas {
  display: flex; gap: 6px; margin-bottom: 20px;
  background: var(--surface2); padding: 4px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.cadastro-abas .btn-tab { flex: 1; padding: 9px; font-size: 0.75rem; font-weight: 700; border-radius: 6px; text-transform: uppercase; }
#cadastro-modal textarea.form-input { resize: vertical; min-height: 76px; font-family: inherit; }
.cadastro-dica { font-size: 0.8rem; color: var(--text3); margin: 4px 0 0; }
.sessao-aviso {
  background: var(--green-faded); color: var(--text);
  border: 1px solid var(--green); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 0.85rem; font-weight: 600; margin-bottom: 14px;
}
.sessao-novo-cliente {
  background: none; border: none; padding: 2px 0 12px; margin-top: -4px;
  color: var(--text2); font-weight: 700; font-size: 0.82rem; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ===================== 20/10/2026 — FINALIZAR SESSÃO: − E + NO CONSUMO =====================
   Botões grandes o bastante para o dedo; o campo do meio ainda aceita digitar. */
.qtd-passos { display: inline-flex; align-items: center; gap: 6px; }
.qtd-btn {
  width: 36px; height: 36px; min-height: 36px !important; padding: 0;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  font-size: 1.2rem; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; user-select: none; -webkit-user-select: none;
  touch-action: manipulation; transition: transform 0.08s ease, background 0.15s ease;
}
.qtd-btn:active { transform: scale(0.9); background: var(--surface2); }
.qtd-passos .qtd-campo { width: 58px !important; text-align: center; padding: 4px 4px !important; }
.qtd-passos.pequeno { gap: 4px; }
.qtd-passos.pequeno .qtd-btn { width: 30px; height: 30px; min-height: 30px !important; font-size: 1rem; border-radius: 8px; }
.qtd-passos.pequeno .qtd-campo { width: 40px !important; }
.qtd-campo::-webkit-outer-spin-button, .qtd-campo::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qtd-campo[type=number] { -moz-appearance: textfield; appearance: textfield; }
