/* Barra de abas do app (celular). Usada pelas telas de campo (/app/*) e, no
   celular, por todas as páginas logadas do painel (base.html). Variáveis com
   fallback porque o painel não carrega app-shell.css. */
/* ── Barra de abas ─────────────────────────────────────────────────────── */
.app-tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  width: 100%;
  max-width: 480px;
  transform: translateX(-50%);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--ui-surface);
  border-top: 1px solid var(--ui-border);
}
@media (min-width: 520px) {
  /* Só nas telas de campo, que viram um "celular" no meio da tela. */
  .app-tabbar.is-framed { bottom: 24px; border-radius: 0 0 28px 28px; }
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--app-tabbar-h, 64px);
  border: 0;
  background: none;
  color: var(--ui-text-muted);
  font: 600 11px var(--ui-font-sans);
  text-decoration: none;
  cursor: pointer;
}
.tab svg { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--ui-primary); }


/* Botão central "Novo": destaque redondo na cor da marca. */
.tab-new .tab-new-dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -18px;
  border-radius: 50%;
  background: var(--ui-primary);
  color: var(--ui-primary-on);
  box-shadow: 0 6px 16px color-mix(in oklch, var(--ui-primary) 35%, transparent);
}
.tab-new .tab-new-dot svg { width: 26px; height: 26px; }
.tab-new[aria-current="page"] .tab-new-dot { background: var(--ui-primary-active); }
