/* Tour guiado (onboarding) do gestor e do colaborador — 14/10/2026. Motor em assets/ds/tour.js; roteiros em core/Onboarding/Tours.php.
   Funciona também nas telas antigas (legacy-shell.css), por isso toda cor tem valor de reserva além do token. */
.abt-veu { position: fixed; inset: 0; z-index: 9990; pointer-events: auto; }
.abt-foco { position: fixed; z-index: 9991; border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 4px var(--ab-honey-500, #FFC52C), 0 0 0 9999px rgba(30, 28, 27, .62);
  transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease; }
.abt-foco.abt-sem-alvo { box-shadow: 0 0 0 9999px rgba(30, 28, 27, .62); width: 0 !important; height: 0 !important; }
.abt-balao { position: fixed; z-index: 9992; width: min(380px, calc(100vw - 32px)); background: #fff; color: #2E2C2B;
  border-radius: 14px; box-shadow: 0 18px 48px rgba(0, 0, 0, .28); padding: 18px 20px 16px; font-family: var(--font-body, "Assistant", system-ui, sans-serif);
  font-size: 15px; line-height: 1.5; }
.abt-balao:focus { outline: none; }
.abt-balao .abt-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.abt-balao .abt-passo { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A6510; }
.abt-balao .abt-fechar { border: 0; background: transparent; font-size: 22px; line-height: 1; color: #62605F; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.abt-balao .abt-fechar:hover, .abt-balao .abt-fechar:focus-visible { background: #F1EEE8; outline: none; }
.abt-balao h3 { font-family: var(--font-display, "Poppins", system-ui, sans-serif); font-weight: 800; font-size: 19px; line-height: 1.2; margin: 0 0 6px; }
.abt-balao p { margin: 0; }
.abt-balao .abt-barra { height: 4px; border-radius: 999px; background: #EFEBE4; margin: 14px 0 12px; overflow: hidden; }
.abt-balao .abt-barra span { display: block; height: 100%; background: var(--ab-honey-500, #FFC52C); border-radius: 999px; transition: width .25s ease; }
.abt-balao .abt-acoes { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.abt-balao .abt-acoes .abt-dir { display: flex; gap: 8px; margin-left: auto; }
.abt-btn { font: 700 14px var(--font-body, "Assistant", system-ui, sans-serif); border-radius: 8px; padding: 8px 14px; cursor: pointer; border: 1px solid transparent; }
.abt-btn--prim { background: var(--ab-honey-500, #FFC52C); color: #2E2C2B; }
.abt-btn--prim:hover { background: #E8B328; }
.abt-btn--sec { background: #fff; color: #2E2C2B; border-color: #DCD6CC; }
.abt-btn--sec:hover { border-color: #2E2C2B; }
.abt-link { border: 0; background: transparent; color: #62605F; font: 600 13px var(--font-body, "Assistant", system-ui, sans-serif); text-decoration: underline; cursor: pointer; padding: 4px 0; }
.abt-link:hover { color: #2E2C2B; }
.abt-btn:focus-visible, .abt-link:focus-visible { outline: 3px solid #7B2E93; outline-offset: 2px; }

/* convite para o tour da tela (quando o de boas-vindas já foi feito) */
.abt-convite { position: fixed; right: 24px; bottom: 24px; z-index: 9980; width: min(340px, calc(100vw - 32px)); background: #2E2C2B; color: #fff;
  border-radius: 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, .3); padding: 16px 18px; font-family: var(--font-body, "Assistant", system-ui, sans-serif); font-size: 14px; }
.abt-convite b { display: block; font-size: 16px; margin-bottom: 4px; }
.abt-convite .abt-acoes { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.abt-convite .abt-link { color: #D9D4CC; }
.abt-convite .abt-link:hover { color: #fff; }

/* menu do item "Tour guiado" na barra lateral */
.abt-menu { position: fixed; z-index: 9985; background: #fff; color: #2E2C2B; border-radius: 12px; box-shadow: 0 14px 40px rgba(0, 0, 0, .28); padding: 8px; min-width: 260px;
  font-family: var(--font-body, "Assistant", system-ui, sans-serif); }
.abt-menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: 8px; font: 600 14px var(--font-body, "Assistant", system-ui, sans-serif); color: inherit; cursor: pointer; }
.abt-menu button:hover, .abt-menu button:focus-visible { background: #FFF4D6; outline: none; }
.abt-menu small { display: block; font-weight: 400; color: #62605F; font-size: 12.5px; }
.v2-side nav a.abt-item, .menu-left nav a.abt-item { cursor: pointer; }

@media (max-width: 720px) {
  .abt-balao { max-height: calc(100vh - 32px); overflow-y: auto; }   /* a posição no celular vem do tour.js (rodapé da área visível) */
  .abt-convite { right: 16px; left: 16px; bottom: 16px; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .abt-foco, .abt-balao .abt-barra span { transition: none; } }

/* botão fixo das telas antes do login (criação da conta), onde não há barra lateral */
.abt-fixo { position: fixed; left: 16px; bottom: 16px; z-index: 9970; border: 1px solid #E4E0DA; background: #fff; color: #2E2C2B; font: 700 14px var(--font-body, "Assistant", system-ui, sans-serif);
  border-radius: 999px; padding: 10px 16px; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); cursor: pointer; }
.abt-fixo:hover { background: var(--ab-honey-100, #fff6db); }
body:has(.abt-convite) .abt-fixo, body:has(.abt-balao) .abt-fixo { display: none; }   /* o convite e o balão ocupam o canto: o botão volta quando saem */
