:root {
  color-scheme: light;
  --bg: #ffffff; --panel: #f4f5f7; --panel2: #eef0f3; --line: #dfe3e8;
  --txt: #1a1d23; --muted: #6b7280; --accent: #2563eb; --heading: #475569;
  --hover: #f1f3f5; --track: #e5e7eb;
  --ok: #16a34a; --warn: #b45309; --bad: #dc2626; --sidebar-w: 190px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--txt);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
.muted { color: var(--muted); }
.ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); }
.mc-azul { color: var(--accent); }
h1 { font-size: 16px; margin: 0; }
h2 { font-size: 14px; margin: 16px 0 7px; color: var(--heading); text-transform: uppercase; letter-spacing: .03em; }

.shell { display: flex; min-height: 100vh; }

/* sidebar */
.sidebar { width: var(--sidebar-w); flex-shrink: 0; background: var(--panel2);
  border-right: 1px solid var(--line); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; }
.brand { padding: 12px 18px; font-size: 15px; font-weight: 700; border-bottom: 1px solid var(--line); }
.brand-logo { display: block; width: 100%; max-width: 150px; height: auto; margin: 0 auto; }
.sidebar nav { padding: 6px; display: flex; flex-direction: column; gap: 1px; overflow-y: auto; flex: 1; }
.navhdr { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 10px 10px 4px; }
.nav { padding: 7px 10px; border-radius: 7px; color: #374151; cursor: pointer; font-size: 13.5px; }
.nav:hover { background: var(--hover); }
.nav.active { background: var(--accent); color: #fff; }
.sidefoot { padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; flex-shrink: 0; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }

/* content */
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 5; flex-wrap: wrap; }
.spacer { flex: 1; }
.burger { display: none; background: none; border: 1px solid var(--line); color: var(--txt); border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.btn { background: var(--panel); border: 1px solid var(--line); color: #374151; padding: 6px 12px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 14px; }
.btn:hover { border-color: var(--accent); }
.btn.ghost { background: transparent; }
main { padding: 16px 18px; }

.periodo { display: flex; gap: 6px; align-items: center; }
.periodo select, .periodo input, .toolbar input { background: var(--panel); color: var(--txt); border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; font: inherit; font-size: 14px; }

.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar input[type=search] { flex: 1; min-width: 160px; max-width: 340px; }
.toolbar.me-conectar input[type=text] { min-width: 160px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 14px; }
.card, .statcard { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.statlabel { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.statval { font-size: 21px; font-weight: 600; margin: 3px 0; }
.statsub { font-size: 12px; color: var(--muted); }
.soon { background: var(--panel); border: 1px dashed var(--line); border-radius: 12px; padding: 40px; text-align: center; font-size: 17px; }
.soon p { font-size: 14px; margin-top: 8px; }
.aviso { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 9px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }
.aviso ul { margin: 5px 0 0; padding-left: 18px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* overflow: visible nos dois eixos de propósito — "overflow-x: auto" sozinho força o
   navegador a tratar overflow-y como "auto" também (regra do spec de CSS), e isso vira sem
   querer um container de rolagem próprio pra tabela; o cabeçalho fixo (sticky) passa a
   colar relativo a ESSE container em vez da tela, e acaba grudando no meio dos produtos em
   vez de no topo da página. As células já quebram linha (não precisam mais de scroll lateral). */
.tablewrap { overflow: visible; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 7px 10px; text-align: left; white-space: normal; word-break: break-word; border-bottom: 1px solid var(--line); }
th { background: var(--panel2); color: var(--heading); position: sticky; top: 54px; z-index: 2;
     word-break: normal; overflow-wrap: normal; }
/* dentro de modal/painel lateral não tem topbar por cima, o cabeçalho gruda direto no topo
   da área que rola (o modal/drawer é seu próprio "scroll container") */
.modal-box th, .drawer-panel th { top: 0; }
tbody tr:hover { background: var(--hover); }
.tt { display: inline-block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

body.fullscreen .sidebar, body.fullscreen .burger { display: none; }

/* Estoque Full — pedido do usuário (2026-09-28): letras um pouco maiores nessa página
   especificamente (tabela densa de números, mais difícil de ler no tamanho padrão). */
.page[data-page="full"] table { font-size: 15px; }
.page[data-page="full"] th, .page[data-page="full"] td { padding: 9px 11px; }
.page[data-page="full"] .statlabel { font-size: 12px; }
.page[data-page="full"] .statval { font-size: 23px; }
.page[data-page="full"] .statsub { font-size: 13px; }
.page[data-page="full"] h2 { font-size: 15px; }

/* ── Recebimento (celular) ── */
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.chk { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.chk input { width: 18px; height: 18px; }
textarea { width: 100%; background: var(--panel); color: var(--txt); border: 1px solid var(--line); border-radius: 9px; padding: 9px; font: inherit; resize: vertical; }

.rc-tabs { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; }
.rc-tab { flex-shrink: 0; background: var(--panel); border: 1px solid var(--line); color: #374151; padding: 8px 16px; border-radius: 8px; cursor: pointer; font: inherit; }
.rc-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.rc-busca { display: flex; gap: 8px; margin-bottom: 12px; }
.rc-busca input { flex: 1; }
#rc-resultados { display: grid; gap: 8px; }
.rc-res { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; color: var(--txt); font: inherit; display: grid; gap: 2px; }
.rc-res:hover { border-color: var(--accent); }
.rc-res .muted { font-size: 12px; }

.rc-selo { border-radius: 10px; padding: 10px 14px; font-weight: 600; margin: 12px 0; }
.rc-selo.ok { background: #f0fdf4; border: 1px solid #86efac; color: var(--ok); }
.rc-selo.pend { background: #fffbeb; border: 1px solid #fde68a; color: var(--warn); }
.rc-cab { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 13px; }

#rc-slots { display: grid; gap: 12px; }
.rc-slot { background: var(--panel); border: 2px solid var(--line); border-radius: 12px; padding: 12px; }
.rc-slot.ok { border-color: var(--ok); }
.rc-slot-tit { font-weight: 600; margin-bottom: 8px; }
.rc-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.rc-thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; }
.rc-slot-btns { display: flex; gap: 8px; }
.rc-slot-btns .btn { flex: 1; min-height: 46px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rc-extra { margin-top: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.rc-cond { display: grid; gap: 4px; }
.rc-cond .chk { padding: 11px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; }
.rc-cond .chk input { width: 20px; height: 20px; }
.rc-salvar { display: flex; gap: 12px; align-items: center; margin: 14px 0 30px; flex-wrap: wrap; }
.rc-salvar .btn { min-height: 46px; font-size: 15px; padding: 0 22px; }

@media (max-width: 820px) {
  .rc-busca { flex-direction: column; }
  .rc-busca input, .rc-busca .btn { width: 100%; min-height: 44px; }
  .rc-cond { grid-template-columns: 1fr; }
}

/* ── MC Vendas: Ao vivo ── */
.av-filtros { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.av-filtros select { background: var(--panel); color: var(--txt); border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; font: inherit; font-size: 14px; }
#empresa-global { background: var(--panel); color: var(--txt); border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; font: inherit; font-size: 14px; font-weight: 600; }
.bars { display: grid; gap: 6px; margin-bottom: 12px; }
.bar { display: grid; grid-template-columns: 90px 1fr auto; gap: 8px; align-items: center; font-size: 12px; }
.bar-l { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.bar-t { background: var(--track); border-radius: 4px; height: 14px; overflow: hidden; }
.bar-f { background: var(--accent); height: 100%; }
.bar-v { white-space: nowrap; }
.fat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fat-head h2 { margin: 16px 0 7px; }
.fat-tabs { display: flex; gap: 4px; }
.tab-sm { background: var(--panel); border: 1px solid var(--line); color: #374151; padding: 3px 10px; border-radius: 6px; cursor: pointer; font: inherit; font-size: 11px; }
.tab-sm.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.vbars { display: flex; align-items: flex-end; gap: 4px; height: 160px; margin-bottom: 16px; padding: 8px 4px 0; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; overflow-x: auto; }
.vbar { flex: 1; min-width: 42px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.vbar-v { font-size: 10px; color: var(--muted); white-space: nowrap; margin-bottom: 2px; }
.vbar-t { width: 60%; flex: 1; display: flex; align-items: flex-end; background: var(--track); border-radius: 4px 4px 0 0; overflow: hidden; min-height: 2px; }
.vbar-f { width: 100%; background: var(--accent); }
.vbar.cur .vbar-f { background: #0284c7; }
.vbar-l { font-size: 10px; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { background: var(--panel); border: 1px solid var(--line); color: #374151; border-radius: 999px; padding: 4px 11px; cursor: pointer; font: inherit; font-size: 12px; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip span { opacity: .7; margin-left: 3px; }
.pager { display: flex; gap: 10px; align-items: center; margin-top: 10px; font-size: 13px; }
.mcc-c, .mcc-a { width: 90px; background: var(--panel2); color: var(--txt); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; font: inherit; }
.acao-manter { color: var(--ok); } .acao-escalar { color: #0284c7; }
.acao-reduzir, .acao-revisar { color: var(--warn); }
.acao-sem_margem { color: var(--muted); }
#ads-ideal p, #ads-margem p { margin: 6px 0; }
tr.tot td { border-top: 2px solid var(--line); background: var(--panel2); }
tr.has-estorno td { background: rgba(251, 191, 36, .10); }
.badge-estorno { color: var(--warn); font-weight: 600; white-space: nowrap; }
tr.promo-ok td { background: rgba(74, 222, 128, .08); }
tr.promo-warn td { background: rgba(251, 191, 36, .10); }
tr.promo-bad td { background: rgba(248, 113, 113, .10); }
tr.ads-verde td { background: rgba(74, 222, 128, .08); }
tr.ads-vermelho td { background: rgba(248, 113, 113, .10); }
tr.anun-amarelo td { background: rgba(251, 191, 36, .12); }
tr.anun-cinza td { background: rgba(148, 163, 184, .10); color: var(--muted); }
tr.promo-group-start td { border-top: 2px solid var(--line); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn:disabled:hover { border-color: var(--line); }
.promo-blocos .statcard { cursor: pointer; }
.promo-blocos .statcard:hover { border-color: var(--accent); }
.statcard-click { cursor: pointer; user-select: none; }
.statcard-click:hover { border-color: var(--accent); }
.statcard-click.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.dolar-badge { display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, #ecfdf5, #eff6ff); border: 1px solid #86efac;
  border-radius: 6px; padding: 4px 10px; color: var(--ok); font-size: 13px; }
.dolar-badge:hover { border-color: var(--accent); }
.dolar-badge b { font-weight: 600; }

/* Ao vivo — mais cor/vida (só nesta página; resto do app mantém o visual neutro) */
#av-cards.cards { --c1: #2563eb; --c2: #16a34a; --c3: #f59e0b; --c4: #9333ea; --c5: #db2777; }
#av-cards .statcard { border-top: 3px solid var(--c1); background: linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%);
  transition: transform .15s, box-shadow .15s; }
#av-cards .statcard:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(15, 23, 42, .18); }
#av-cards .statcard:nth-child(5n+2) { border-top-color: var(--c2); }
#av-cards .statcard:nth-child(5n+3) { border-top-color: var(--c3); }
#av-cards .statcard:nth-child(5n+4) { border-top-color: var(--c4); }
#av-cards .statcard:nth-child(5n+5) { border-top-color: var(--c5); }
#av-cards .statval { font-size: 23px; }
#av-canais .bar:nth-child(4n+1) .bar-f { background: #2563eb; }
#av-canais .bar:nth-child(4n+2) .bar-f { background: #16a34a; }
#av-canais .bar:nth-child(4n+3) .bar-f { background: #f59e0b; }
#av-canais .bar:nth-child(4n+4) .bar-f { background: #db2777; }
#av-modal .bar:nth-child(4n+1) .bar-f { background: #9333ea; }
#av-modal .bar:nth-child(4n+2) .bar-f { background: #0891b2; }
#av-modal .bar:nth-child(4n+3) .bar-f { background: #ea580c; }
#av-modal .bar:nth-child(4n+4) .bar-f { background: #16a34a; }
#av-canais .bar-t, #av-modal .bar-t { height: 16px; }
#av-anual.vbars .vbar-f { background: linear-gradient(180deg, #93c5fd, #2563eb); }
#av-anual.vbars .vbar.cur .vbar-f { background: linear-gradient(180deg, #fdba74, #ea580c); }
#av-mensal.card, #av-vs.card { border-left: 4px solid var(--ok); }
#av-mensal .statval { background: linear-gradient(90deg, var(--ok), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
#promo-modal .modal-box { width: min(1300px, 96vw); max-height: 92vh; }
#promo-modal-table { font-size: 12.5px; }
#promo-modal-table td:first-child, #promo-modal-table th:first-child { white-space: normal; min-width: 220px; }

/* Análise de Produtos */
.ap-tag { display: inline-block; padding: 1px 6px; border-radius: 5px; font-size: 10.5px;
  font-weight: 600; white-space: nowrap; margin: 1px 0; background: var(--panel2); color: var(--heading); }
.ap-tag-saudavel, .ap-tag-crescimento, .ap-tag-melhorou_recente, .ap-tag-merece_investimento { background: #f0fdf4; color: var(--ok); }
.ap-tag-sem_venda_7d, .ap-tag-atencao, .ap-tag-estoque_baixo { background: #fffbeb; color: var(--warn); }
.ap-tag-sem_venda_15d, .ap-tag-sem_venda_30d, .ap-tag-queda_recente, .ap-tag-sem_estoque,
.ap-tag-possivel_descontinuacao, .ap-tag-estoque_parado { background: #fef2f2; color: var(--bad); }
#ap-modal .modal-box { max-height: 92vh; overflow-y: auto; }

/* Login / esqueci-senha / redefinir-senha — landing de entrada com painel de marca */
:root {
  --navy-950: #060c1f; --navy-900: #0a1530; --navy-800: #101f45; --navy-700: #162a5c;
  --gold-400: #f2c14e; --gold-500: #e0a730; --gold-600: #c8871c;
}
.auth-body { background: var(--navy-950); overflow-x: hidden; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  overflow-x: hidden; }

/* painel esquerdo — marca + brilho */
.auth-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  padding: 56px 48px; color: #eef2ff;
  background: radial-gradient(circle at 50% 0%, var(--navy-700) 0%, var(--navy-900) 55%, var(--navy-950) 100%); }
.auth-hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none;
  animation: auth-pulse 7s ease-in-out infinite; }
.auth-hero-glow-1 { width: 420px; height: 420px; top: -140px; left: -120px;
  background: radial-gradient(circle, var(--gold-500) 0%, transparent 70%); }
.auth-hero-glow-2 { width: 480px; height: 480px; bottom: -180px; right: -160px;
  background: radial-gradient(circle, #2b4fc4 0%, transparent 70%); animation-delay: 2.5s; }
@keyframes auth-pulse { 0%, 100% { opacity: .4; transform: scale(1); } 50% { opacity: .7; transform: scale(1.08); } }
.auth-hero-sheen { position: absolute; inset: -50% -20%; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(242, 193, 78, .16) 48%, rgba(255, 255, 255, .28) 50%, rgba(242, 193, 78, .16) 52%, transparent 60%);
  animation: auth-sheen 6s ease-in-out infinite; }
@keyframes auth-sheen { 0% { transform: translateX(-30%) translateY(-10%); } 50% { transform: translateX(10%) translateY(6%); } 100% { transform: translateX(-30%) translateY(-10%); } }
.auth-hero-inner { position: relative; z-index: 1; max-width: 480px; min-width: 0; }
.auth-hero-nav { margin: 0 0 32px; }
.auth-hero-navlogo { display: block; width: 340px; max-width: 100%; height: auto; box-sizing: border-box;
  background: #fff; border-radius: 22px; padding: 22px 28px;
  box-shadow: 0 10px 34px -8px rgba(0, 0, 0, .55), 0 0 0 1px rgba(242, 193, 78, .35); }
.auth-hero-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700;
  color: var(--gold-400); margin: 0 0 10px; }
.auth-hero-title { font-size: 32px; line-height: 1.26; margin: 0 0 14px; font-weight: 800; color: #fff;
  letter-spacing: -.01em; }
.auth-hero-title span { background: linear-gradient(90deg, var(--gold-400), #ffe9b0);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero-sub { font-size: 16px; line-height: 1.6; color: #b8c2e0; margin: 0 0 28px; }

/* card "screenshot" do produto (estilo Bling/Magiic: mockup do painel na hero) —
   tudo em flex com min-width:0 e sem linhas que não quebram, de propósito: não pode
   forçar o card (nem a página) a ficar mais largo que a viewport e pedir scroll lateral. */
.auth-mock { position: relative; background: rgba(15, 24, 53, .72); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px; padding: 14px 16px 18px; margin: 0 0 30px; backdrop-filter: blur(6px);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(242, 193, 78, .06);
  transform: rotate(-1deg); max-width: 100%; overflow: hidden; }
.auth-mock-bar { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; }
.auth-mock-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .18); flex-shrink: 0; }
.auth-mock-title { margin-left: 8px; font-size: 12px; font-weight: 600; color: #8b96bd;
  letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-mock-body { display: flex; gap: 14px; min-width: 0; }
.auth-mock-nav { flex: 0 0 104px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.auth-mock-nav span { font-size: 12px; color: #92a0c7; padding: 6px 9px; border-radius: 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-mock-nav span.on { background: rgba(242, 193, 78, .16); color: #ffe9b0; font-weight: 600; }
.auth-mock-content { flex: 1; min-width: 0; }
.auth-mock-kpis { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 16px; }
.auth-mock-kpis > div { min-width: 0; }
.auth-mock-kpis small { display: block; font-size: 11px; color: #7f8cb3; text-transform: uppercase;
  letter-spacing: .05em; margin: 0 0 3px; white-space: nowrap; }
.auth-mock-kpis strong { font-size: 18px; font-weight: 700; color: #fff; white-space: nowrap; }
.auth-mock-kpis .mock-ok { color: #4ade80; } .auth-mock-kpis .mock-warn { color: var(--gold-400); }
.auth-mock-chart { display: flex; align-items: flex-end; gap: 5px; height: 46px; min-width: 0; }
.auth-mock-chart span { flex: 1; height: var(--h); border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--gold-400), rgba(242, 193, 78, .25));
  animation: auth-bar-in .8s ease-out backwards; }
.auth-mock-chart span:nth-child(7) { background: linear-gradient(180deg, #fff, var(--gold-400)); }
.auth-mock-chart span:nth-child(1) { animation-delay: .05s; } .auth-mock-chart span:nth-child(2) { animation-delay: .1s; }
.auth-mock-chart span:nth-child(3) { animation-delay: .15s; } .auth-mock-chart span:nth-child(4) { animation-delay: .2s; }
.auth-mock-chart span:nth-child(5) { animation-delay: .25s; } .auth-mock-chart span:nth-child(6) { animation-delay: .3s; }
.auth-mock-chart span:nth-child(7) { animation-delay: .35s; }
@keyframes auth-bar-in { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }

.auth-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.auth-features li { display: flex; align-items: flex-start; gap: 12px; }
.auth-feature-ico { font-size: 18px; line-height: 1; flex-shrink: 0; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center; border-radius: 9px;
  background: rgba(242, 193, 78, .12); border: 1px solid rgba(242, 193, 78, .25); }
.auth-features strong { display: block; font-size: 15px; color: #fff; font-weight: 600; }
.auth-features small { display: block; font-size: 13px; color: #93a0c4; margin-top: 2px; }

.auth-hero-trust { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 28px 0 0;
  padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); }
.auth-hero-trust span { font-size: 12px; color: #7f8cb3; }
.auth-hero-trust b { font-size: 12.5px; font-weight: 700; color: #d7deef; padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; }
.auth-hero-trust i { width: 4px; }

/* painel direito — formulário */
.auth-panel { background: #f8fafc; display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; }
.auth-panel-inner { width: min(400px, 100%); position: sticky; top: 24px; }
.auth-panel-logo { display: block; width: 240px; max-width: 70%; height: auto; margin: 0 auto 22px; }
.authcard { width: 100%; display: flex; flex-direction: column; gap: 16px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; padding: 36px 32px; position: relative;
  box-shadow: 0 20px 50px -18px rgba(10, 21, 48, .22); }
.authcard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--gold-500), var(--navy-700)); }
.authcard-eyebrow { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--gold-600); }
.authcard-title { margin: 0 0 4px; font-size: 23px; font-weight: 700; color: var(--navy-900); }
.authcard-lead { margin: -6px 0 4px; }
.authcard-msg { margin: 0; }
.authcard label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; color: var(--txt); }
.authcard input { background: var(--panel2); border: 1.5px solid var(--line); color: var(--txt);
  border-radius: 10px; padding: 13px 14px; font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.authcard input:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(22, 42, 92, .13); }
.authcard .btn.primary { font-size: 16px; font-weight: 700; padding: 13px; border-radius: 10px; margin-top: 4px;
  background: linear-gradient(90deg, var(--navy-800), var(--navy-700)); border: none; letter-spacing: .01em;
  box-shadow: 0 8px 20px -6px rgba(16, 31, 69, .5); }
.authcard .btn.primary:hover { filter: brightness(1.12); }
.authcard p.muted { text-align: center; font-size: 14px; }

@media (max-width: 880px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-panel { order: -1; padding: 20px 16px 28px; }
  .auth-panel-inner { position: static; }
  .auth-panel-logo { width: 180px; margin-bottom: 14px; }
  .auth-hero { padding: 40px 28px 34px; }
  .auth-hero-title { font-size: 24px; }
  .auth-mock { transform: none; margin-bottom: 24px; }
  .auth-features { gap: 12px; }
  .auth-features li:nth-child(n+4) { display: none; }
  .auth-hero-trust { margin-top: 20px; padding-top: 16px; }
}

@media (max-width: 420px) {
  .auth-hero { padding: 32px 18px 28px; }
  .auth-mock { padding: 12px 12px 14px; }
  .auth-mock-body { gap: 8px; }
  .auth-mock-nav { flex-basis: 76px; }
  .auth-mock-nav span { font-size: 10.5px; padding: 5px 6px; }
  .auth-mock-kpis strong { font-size: 15px; }
}

/* botão de olho nos campos de senha */
.pwwrap { position: relative; display: flex; }
.pwwrap input { flex: 1; padding-right: 34px !important; }
.pw-toggle { position: absolute; right: 3px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 15px; line-height: 1;
  padding: 6px; color: var(--muted); }
.pw-toggle:hover { color: var(--txt); }

/* menu da conta no rodapé da barra lateral (clica no nome da conta ML pra ver e-mail/sair) */
.acct-menu { position: relative; }
.acct-trigger { background: none; border: none; color: inherit; font: inherit; cursor: pointer;
  padding: 0; display: flex; align-items: center; gap: 7px; }
.acct-trigger:hover { color: #000; }
.acct-drop { position: absolute; bottom: 100%; left: 0; margin-bottom: 8px; min-width: 220px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px;
  display: flex; flex-direction: column; gap: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.15); z-index: 20; }
.acct-drop-link { color: var(--txt); font-weight: 600; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.abc { padding: 1px 7px; border-radius: 5px; font-weight: 700; font-size: 12px; }
.abc-A { background: #f0fdf4; color: var(--ok); }
.abc-B { background: #fffbeb; color: var(--warn); }
.abc-C { background: #fef2f2; color: var(--bad); }

/* modal (Preços) */
.modal { position: fixed; inset: 0; z-index: 45; display: flex; align-items: center; justify-content: center; }
.modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.modal-box { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 18px; width: min(560px, 94vw); max-height: 90vh; overflow-y: auto; box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.otimo { background: #f0fdf4; border: 1px solid #86efac; border-radius: 9px; padding: 10px 14px; margin: 10px 0; }
.sim label { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.sim input { background: var(--panel); color: var(--txt); border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: inherit; width: 130px; }
.sim table td { border: 0; padding: 4px 8px; }

/* ── Tratativa (drawer) ── */
.btn.sm { padding: 3px 8px; font-size: 12px; }
h2 .btn { margin-left: 8px; vertical-align: middle; text-transform: none; letter-spacing: normal; }
.drawer { position: fixed; inset: 0; z-index: 40; }
.drawer-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.drawer-panel { position: absolute; right: 0; top: 0; height: 100%; width: min(420px, 100%);
  background: var(--bg); border-left: 1px solid var(--line); padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px;
  box-shadow: -8px 0 30px rgba(0,0,0,.12); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.dw-form { display: grid; gap: 8px; }
.dw-form select, .dw-form input { background: var(--panel); color: var(--txt); border: 1px solid var(--line); border-radius: 8px; padding: 9px; font: inherit; }
.dw-form .btn { min-height: 44px; }
.dw-log { display: grid; gap: 8px; }
.dw-item { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; font-size: 13px; }
.dw-item .muted { font-size: 12px; margin-top: 3px; }

/* mobile: tabelas viram cartão (spec §6) */
@media (max-width: 820px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 20; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .sidebar { transform: none; }
  .burger { display: block; }
  .grid2 { grid-template-columns: 1fr; }
  .tablewrap { overflow: visible; border: 0; }
  table, thead, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; padding: 4px 0; }
  td { border: 0; white-space: normal; display: flex; justify-content: space-between; gap: 12px; padding: 5px 12px; }
  td::before { content: attr(data-l); color: var(--muted); font-size: 12px; flex-shrink: 0; }
  td .tt { max-width: 60vw; text-align: right; }
  .btn, .periodo select, .toolbar input { min-height: 40px; }
}
