/* portal/static/estilo.css — GERADO por scripts/extrair_estilo_vendedor.py; não edite à mão.
   Trechos do Portal do Vendedor (portal-nf-vendedor, commit 98f63a1), com os mesmos nomes de classe.
   O que é só do Portal Link fica em estilo-link.css. */

/* ===== vendedor style.css 2-36: fontes, variáveis e box-sizing ===== */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/poppins-700.woff2") format("woff2"); }
:root {
  --navy: #303e6d;          /* navy institucional RB (extraído do logo) */
  --navy-2: #3a4a82;
  --brand: #303e6d;
  --brand-dark: #26315a;
  --brand-grad: linear-gradient(155deg, #3a4a82 0%, #2a3760 100%);
  --teal: #303e6d;          /* acento decorativo → navy institucional */
  --coral: #c98a2e;         /* alerta de pendência → âmbar (atenção) */
  --display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ink: #1b2533;
  --muted: #5b6878;
  --line: #e6e9ef;
  --line-2: #eef1f6;
  --bg: #eef2f7;
  --card: #ffffff;
  --ok: #137a52;
  --ok-bg: #e3f5ec;
  --warn: #9a6b00;
  --warn-bg: #fff3d6;
  --danger: #b3261e;
  --danger-bg: #fdeceb;
  --gray: #455160;
  --gray-bg: #eceff3;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16,36,64,.06), 0 8px 24px rgba(16,36,64,.08);
  --shadow-sm: 0 1px 2px rgba(16,36,64,.06), 0 2px 8px rgba(16,36,64,.05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }


/* ===== vendedor style.css 37-134: ícones, corpo, tipografia, formulários, botões e mensagens ===== */
/* Ícones de traço (sprite em _icons.html). Herdam a cor do texto. */
.ic { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.16em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font);
  margin: 0;
  background: linear-gradient(180deg, #f6f8fb 0%, var(--bg) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* iOS não deve reescalar o texto sozinho (evita tamanhos inconsistentes) */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ---------- Cartão / container ---------- */
.container {
  max-width: 560px;
  margin: 2.5rem auto;
  padding: 1.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Tipografia ---------- */
h1 { font-size: 1.45rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 1.25rem; color: var(--navy); }
h2 {
  font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 1.6rem 0 .7rem;
  padding-left: .6rem; border-left: 3px solid var(--brand);
}
h3 { font-size: .9rem; font-weight: 700; color: var(--gray); text-transform: uppercase;
     letter-spacing: .04em; margin: 1.1rem 0 .45rem; }
p { margin: 0 0 1rem; }
strong { color: var(--ink); }

/* ---------- Formulários ---------- */
label { display: block; margin-bottom: .35rem; font-size: .85rem; font-weight: 600; color: var(--gray); }
input[type=text], input[type=date], input[type=file], input[type=password], select {
  width: 100%;
  padding: .65rem .8rem;
  border: 1px solid #d3d9e3;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  margin-bottom: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47,111,237,.15);
}
input[type=file] { padding: .5rem .6rem; background: #fafbfd; cursor: pointer; }
input::placeholder { color: #9aa6b4; }

/* ---------- Botões ---------- */
.btn {
  display: block; width: 100%; padding: .75rem 1rem;
  background: var(--brand); color: #fff;
  border: 1px solid var(--brand); border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 600; font-family: inherit;
  cursor: pointer; text-align: center; text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background .15s, box-shadow .15s, transform .05s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn-outline { background: #fff; color: var(--navy); border: 1px solid #cdd5e0; box-shadow: none; }
.btn-outline:hover { background: var(--line-2); border-color: #b9c3d2; }
/* Micro-interação de press: feedback tátil instantâneo (transform → GPU). */
.btn:active, .sair:active, .chip:active, .btn-filtro:active { transform: scale(.97); }

/* ---------- Mensagens ---------- */
.erro {
  color: var(--danger); font-size: .9rem; margin-bottom: 1rem;
  padding: .7rem .9rem; background: var(--danger-bg);
  border: 1px solid #f3cbc8; border-left: 3px solid var(--danger); border-radius: var(--radius-sm);
}

/* ---------- Cabeçalho de página (título + ações) ---------- */
.topo { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.topo h1 { margin: 0; }
.sair {
  font-size: .85rem; font-weight: 600; color: var(--gray);
  background: #fff; border: 1px solid #cdd5e0; border-radius: 999px;
  padding: .4rem .9rem; cursor: pointer; text-decoration: none; font-family: inherit;
  transition: background .15s, border-color .15s;
}
.sair:hover { background: var(--line-2); border-color: #b9c3d2; }


/* ===== vendedor style.css 135-148: cartões e dicas ===== */
/* ---------- Cards de cobrança (RCA) ---------- */
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem; margin-bottom: 1rem; background: #fff; box-shadow: var(--shadow-sm);
}
.valor { font-size: 1.4rem; font-weight: 800; letter-spacing: -.01em; color: var(--navy); }
.info-box {
  background: var(--line-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1rem; font-size: .9rem; margin-bottom: 1.25rem;
}
.cob-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.cob-comp { font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: .15rem; }
.cob-warn { font-size: .85rem; color: var(--danger); margin: .6rem 0 0; }
.hint { font-size: .9rem; color: var(--muted); margin-bottom: 1.25rem; }

/* ===== vendedor style.css 150-161: selos ===== */
/* ---------- Badges ---------- */
.badge {
  display: inline-block; padding: .25rem .65rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  border: 1px solid transparent; white-space: nowrap;
}
.badge-aberta     { background: var(--warn-bg); color: var(--warn); border-color: #f0dca8; }
.badge-divergente { background: var(--danger-bg); color: var(--danger); border-color: #f3cbc8; }
.badge-enviada    { background: var(--ok-bg); color: var(--ok); border-color: #bfe6d2; }
.badge-cancelada,
.badge-substituida { background: var(--gray-bg); color: var(--gray); border-color: #d8dee6; }
.badge-recusada   { background: var(--danger-bg); color: var(--danger); border-color: #f3cbc8; }

/* ===== vendedor style.css 250-250: lista vazia ===== */
.vazio { color: var(--muted); font-size: .88rem; padding: .35rem 0 .8rem; }

/* ===== vendedor style.css 252-264: tabelas ===== */
/* ---------- Tabelas ---------- */
table.grid {
  width: 100%; border-collapse: separate; border-spacing: 0; font-size: .83rem;
  margin-bottom: 1rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
}
table.grid th, table.grid td { padding: .6rem .7rem; text-align: left; border-bottom: 1px solid var(--line-2); }
table.grid th {
  background: #f4f6fa; color: var(--gray); font-weight: 700;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
}
table.grid tbody tr:last-child td { border-bottom: none; }
table.grid tbody tr:hover td { background: #f7f9fc; }

/* ===== vendedor style.css 418-475: tela de sucesso ===== */
/* ---------- Tela de sucesso (NF enviada) ---------- */
.success-head { text-align: center; padding: .5rem 0 1rem; }
.checkmark {
  width: 92px; height: 92px; display: block; margin: 0 auto 1.1rem;
  border-radius: 50%; stroke-width: 3; stroke: var(--ok); stroke-miterlimit: 10;
  box-shadow: inset 0 0 0 0 var(--ok-bg);
  animation: ck-fill .5s ease-in-out .5s forwards, ck-scale .35s ease-in-out .95s both;
}
.checkmark-circle {
  stroke-dasharray: 166; stroke-dashoffset: 166; stroke-width: 3;
  stroke: var(--ok); fill: none;
  animation: ck-stroke .7s cubic-bezier(.65,0,.45,1) forwards;
}
.checkmark-check {
  stroke-dasharray: 48; stroke-dashoffset: 48; stroke: var(--ok);
  transform-origin: 50% 50%;
  animation: ck-stroke .35s cubic-bezier(.65,0,.45,1) .9s forwards;
}
@keyframes ck-stroke { 100% { stroke-dashoffset: 0; } }
@keyframes ck-scale { 0%, 100% { transform: none; } 50% { transform: scale(1.1); } }
@keyframes ck-fill { 100% { box-shadow: inset 0 0 0 48px var(--ok-bg); } }
.success-title {
  font-size: 1.3rem; color: var(--navy); margin: 0 0 .35rem;
  opacity: 0; animation: fadeUp .5s ease .7s forwards;
}
.success-sub { color: var(--muted); font-size: .92rem; margin: 0;
  opacity: 0; animation: fadeUp .5s ease .85s forwards; }

.summary {
  margin-top: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm); overflow: hidden;
}
.sum-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .7rem 1rem; border-bottom: 1px solid var(--line-2);
  opacity: 0; animation: fadeUp .45s ease forwards;
}
.sum-row:last-child { border-bottom: none; }
.sum-k { color: var(--muted); font-size: .85rem; }
.sum-v { font-weight: 600; text-align: right; word-break: break-word; }
.sum-valor { color: var(--ok); font-size: 1.05rem; font-weight: 800; }
.sum-chave { font-size: .8rem; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.sum-row:nth-child(1) { animation-delay: 1.0s; }
.sum-row:nth-child(2) { animation-delay: 1.08s; }
.sum-row:nth-child(3) { animation-delay: 1.16s; }
.sum-row:nth-child(4) { animation-delay: 1.24s; }
.sum-row:nth-child(5) { animation-delay: 1.32s; }
.sum-row:nth-child(6) { animation-delay: 1.40s; }
.sum-row:nth-child(7) { animation-delay: 1.48s; }
.sum-row:nth-child(8) { animation-delay: 1.56s; }
.sum-row:nth-child(9) { animation-delay: 1.64s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .checkmark, .checkmark-circle, .checkmark-check,
  .success-title, .success-sub, .sum-row { animation: none !important; opacity: 1 !important; }
  .checkmark-circle, .checkmark-check { stroke-dashoffset: 0; }
}

/* ===== vendedor style.css 482-484: fonte dos títulos ===== */
/* ===== Display type (geométrica) nos títulos/números ===== */
h1, h2, h3, .valor, .mini-num, .nf-valor, .sum-valor,
.auth-title, .authx-title, .authx-brand-name, .authx-welcome { font-family: var(--display); }

/* ===== vendedor style.css 486-573: tela de acesso (authx) ===== */
/* ===== Login redesenhado — card dividido com divisor ondulado (ref) ===== */
.authx {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  background: radial-gradient(1200px 600px at 15% -10%, #dbe7fb 0%, #eef3fb 45%, #e9f0fa 100%);
}
.authx-card {
  width: 100%; max-width: 940px; display: grid; grid-template-columns: 1.05fr 1fr;
  background: #fff; border-radius: 26px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(18, 42, 88, .20);
}
.authx-brand {
  position: relative; background: var(--brand-grad); color: #fff;
  padding: 2.8rem 2.6rem; display: flex; flex-direction: column; min-height: 540px;
}
.authx-wave { position: absolute; top: 0; right: -1px; height: 100%; width: 74px; display: block; }
.authx-brand-in { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; max-width: 30ch; }
.authx-logo {
  width: 96px; height: 96px; object-fit: contain; display: block;
}
.authx-brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: .03em; margin-top: 1rem; }
.authx-welcome { font-weight: 700; font-size: 1.75rem; line-height: 1.15; margin: .5rem 0 0; color: #fff; }
.authx-lead { font-size: .92rem; line-height: 1.6; color: rgba(255,255,255,.84); margin-top: .9rem; }
.authx-foot { margin-top: auto; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.66); }
.authx-motiv { margin-top: 1.3rem; }
.authx-motiv-label { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.authx-motiv-text { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: #fff; margin-top: .25rem; min-height: 1.5em; }
.authx-form { padding: 2.9rem 2.8rem; display: flex; flex-direction: column; justify-content: center; }
.authx-title { font-weight: 700; font-size: 1.85rem; color: var(--navy); margin: 0; }
.authx-sub { color: var(--muted); margin: .3rem 0 1.6rem; font-size: .95rem; }
.authx-form label { margin-top: .2rem; }
.authx-form input { background: #f3f6fc; border-color: #e4eaf4; }
.authx-form input:focus { background: #fff; }
.authx-form .btn { margin-top: .4rem; }
.authx-help { font-size: .8rem; color: var(--muted); text-align: center; margin: 1.3rem 0 0; }

/* Saídas depois de um login recusado: as duas alternativas viram botão, com o rótulo
   dizendo QUAL É O CASO da pessoa. A frase discreta no rodapé não segurava — três
   chamados em quatro dias vieram de gente presa entre Entrar e Primeiro acesso. */
.authx-saidas { margin: -.4rem 0 1.2rem; padding: .9rem 1rem; border-radius: 12px;
  background: rgba(48, 62, 109, .06); border: 1px solid rgba(48, 62, 109, .12); }
.authx-saidas-t { margin: 0 0 .7rem; font-size: .86rem; font-weight: 600; color: var(--txt); }
.authx-saidas .btn { display: block; width: 100%; margin-bottom: .5rem; font-size: .88rem;
  padding: .7rem 1rem; }
.authx-saidas .btn:last-child { margin-bottom: 0; }
/* Tablet: empilha o card mantendo o formato de cartão centralizado */
@media (max-width: 760px) {
  .authx-card { grid-template-columns: 1fr; max-width: 440px; }
  .authx-brand { min-height: 0; padding: 2.2rem; text-align: center; align-items: center; }
  .authx-brand-in { max-width: none; align-items: center; }
  .authx-wave { display: none; }
  .authx-logo { margin-left: auto; margin-right: auto; }
  .authx-welcome { font-size: 1.45rem; }
  .authx-form { padding: 2.2rem; }
}

/* Celular: layout app — header de marca enxuto + formulário curvo por cima (eco da onda) */
@media (max-width: 560px) {
  .authx { padding: 0; align-items: stretch; background: var(--brand-grad); }
  .authx-card {
    max-width: none; border-radius: 0; box-shadow: none;
    min-height: 100vh; min-height: 100dvh;
    grid-template-rows: auto 1fr;
  }
  .authx-brand {
    padding: 2.4rem 1.5rem 3.4rem;
    padding-top: max(2.4rem, env(safe-area-inset-top));
  }
  .authx-logo { width: 68px; height: 68px; }
  .authx-brand-name { margin-top: .7rem; }
  .authx-welcome { font-size: 1.3rem; margin-top: .15rem; }
  /* tira o marketing que empurra o login pra baixo no celular */
  .authx-lead, .authx-motiv, .authx-foot { display: none; }
  /* o formulário sobe sobre o header com o topo curvado — a "onda" no mobile */
  .authx-form {
    position: relative; z-index: 2; margin-top: -2.2rem;
    background: #fff; border-radius: 24px 24px 0 0;
    padding: 2rem 1.4rem;
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
    box-shadow: 0 -14px 34px rgba(18, 42, 88, .16);
  }
  .authx-title { font-size: 1.6rem; }
  .authx-sub { margin-bottom: 1.25rem; }
  /* inputs 16px = sem zoom automático no iOS; alvos de toque confortáveis */
  .authx-form input, .authx-form select { font-size: 16px; padding: .85rem .9rem; }
  .authx-form .btn { min-height: 50px; font-size: 1rem; }
  .authx-help { font-size: .9rem; margin-top: 1rem; }
  .authx-help a { display: inline-block; padding: .35rem .2rem; }
}

/* ===== vendedor style.css 575-633: estrutura com menu lateral, barra do topo e main ===== */
/* ===== App shell — portal com menu lateral ===== */
.app { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.side { background: var(--brand-grad); color: #fff; display: flex; flex-direction: column;
        padding: 1.4rem 1rem; gap: .3rem; position: sticky; top: 0; height: 100vh; }
.side-brand { display: flex; align-items: center; gap: .6rem; padding: .2rem .5rem 1rem; }
.side-logo { width: 54px; height: 54px; object-fit: contain; flex: none; }
.side-brand-name { font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.1; }
.side-user { display: flex; align-items: center; gap: .6rem; padding: .7rem; margin-bottom: .6rem;
             background: rgba(255,255,255,.10); border-radius: 14px; }
/* Avatar do menu lateral: a foto do vendedor é retrato, não ícone — círculo grande, anel
   claro para separar do fundo azul e selo de câmera indicando que dá para trocar. */
.side-avatar { position: relative; width: 54px; height: 54px; border-radius: 50%; flex: none;
               display: grid; place-items: center; font-weight: 700; font-size: 1.25rem;
               color: #fff; text-decoration: none;
               background: linear-gradient(150deg, rgba(255,255,255,.30), rgba(255,255,255,.14));
               box-shadow: 0 0 0 2px rgba(255,255,255,.38), 0 6px 16px rgba(0,0,0,.28);
               transition: box-shadow .15s, transform .15s; }
.side-avatar:hover, .side-avatar:focus-visible {
               box-shadow: 0 0 0 2px #fff, 0 8px 20px rgba(0,0,0,.34); transform: translateY(-1px); }
.side-avatar.tem-foto { background: rgba(255,255,255,.14); }
.side-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.side-avatar-selo { position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px;
                    padding: 4px; box-sizing: border-box; border-radius: 50%;
                    background: var(--coral); color: #fff;
                    fill: none; stroke: currentColor; stroke-width: 2;
                    stroke-linecap: round; stroke-linejoin: round;
                    box-shadow: 0 0 0 2px var(--brand-dark); }
.side-user-name { font-size: .85rem; font-weight: 600; }
.side-user-sub { font-size: .72rem; color: rgba(255,255,255,.7); }
.side-user-link { display: inline-block; margin-top: .25rem; font-size: .72rem; color: #cdd7ee;
                  text-decoration: none; border-bottom: 1px solid transparent; }
.side-user-link:hover, .side-user-link.is-active { color: #fff; border-bottom-color: rgba(255,255,255,.5); }
.nav { display: flex; flex-direction: column; gap: .2rem; }
.nav-item { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: 12px;
            color: rgba(255,255,255,.85); text-decoration: none; font-size: .9rem; font-weight: 500;
            transition: background .15s, color .15s; }
.nav-item .i { width: 1.3rem; height: 1.3rem; opacity: .92; }
.nav-item:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-item.is-active { background: #fff; color: var(--brand-dark); font-weight: 600; }
.nav-soon { margin-left: auto; font-size: .6rem; background: rgba(255,255,255,.2); color: #fff;
            padding: .1rem .45rem; border-radius: 999px; letter-spacing: .03em; }
.side-foot { margin-top: auto; }
.side-logout { width: 100%; display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem;
               border-radius: 12px; background: transparent; border: 1px solid rgba(255,255,255,.28);
               color: #fff; font: inherit; font-size: .85rem; cursor: pointer; }
.side-logout:hover { background: rgba(255,255,255,.12); }
.side-toggle { width: 100%; margin-bottom: .5rem; padding: .5rem .75rem; border-radius: 12px;
               background: transparent; border: 1px dashed rgba(255,255,255,.3); color: rgba(255,255,255,.85);
               font: inherit; font-size: .78rem; cursor: pointer; }
.side-toggle:hover { background: rgba(255,255,255,.1); }

/* Barra superior + overlay do drawer — só aparecem no mobile (ver @media) */
.topnav { display: none; }
.side-overlay { display: none; }

.main { padding: 1.8rem 2rem; background: radial-gradient(900px 500px at 100% -10%, #dde9fc 0, #eef3fb 55%); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.topbar h1 { margin: 0; font-size: 1.5rem; }
.topbar-date { font-size: .88rem; color: var(--muted); }

/* ===== vendedor style.css 635-646: avisos (pending e ok-banner) ===== */
.pending { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 1.3rem;
           border-radius: 16px; margin-bottom: 1.4rem; background: linear-gradient(120deg, #fff7e8, #ffefcf);
           border: 1px solid #f0dca8; }
.pending-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--coral); color: #fff;
               display: grid; place-items: center; font-size: 1.35rem; flex: none; }
.pending-txt { flex: 1; min-width: 220px; }
.pending-txt strong { color: #8a5a12; }
.pending .btn { width: auto; padding: .6rem 1.3rem; }
.ok-banner { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.3rem; border-radius: 16px;
             margin-bottom: 1.4rem; background: var(--ok-bg); border: 1px solid #bfe6d2; color: var(--ok); font-weight: 600; }
.pending-ico .ic { width: 24px; height: 24px; stroke-width: 2.1; }
.ok-banner .ic { width: 22px; height: 22px; color: var(--ok); flex: none; }

/* ===== vendedor style.css 676-678: cartão de formulário ===== */
.form-card { max-width: 600px; background: #fff; border: 1px solid var(--line);
             border-radius: 18px; box-shadow: var(--shadow-sm); padding: 1.7rem; }
.form-card .info-box { margin-bottom: 1.2rem; }

/* ===== vendedor style.css 706-733: envio: resumo, áreas de upload e voltar ===== */
/* Painel "Para a nota ser aceita" — acima do upload, coluna única */
.envio-card { margin-left: auto; margin-right: auto; }
.req-card { border: 1px solid #e7ebf3; border-radius: 14px; padding: .95rem 1.1rem 1.05rem;
  margin-bottom: 1.2rem; background: linear-gradient(180deg, #fbfcfe, #f5f8fd); }
.req-card .req-title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .7rem; }
.req-card .req-title .ic { width: 18px; height: 18px; color: var(--coral); }

/* Área de upload (dropzone) das telas de enviar NF / CORE */
.filedrop { position: relative; display: flex; flex-direction: column; align-items: center;
  gap: .45rem; text-align: center; padding: 1.7rem 1rem; margin-bottom: 1rem;
  border: 2px dashed #cdd5e6; border-radius: 14px; background: #fafbfe; cursor: pointer;
  transition: border-color .15s, background .15s; }
.filedrop:hover { border-color: #aeb9d8; background: #f4f7fd; }
.filedrop.has-file { border-style: solid; border-color: #2fbf71; background: #f0faf4; }
/* Faltou escolher o arquivo: a moldura vermelha acompanha o aviso escrito (loader.js). */
.filedrop.sem-arquivo { border-color: #e5484d; background: #fef4f4; }
.filedrop-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.filedrop-ic { width: 34px; height: 34px; color: var(--navy); }
.filedrop.has-file .filedrop-ic { color: #2fbf71; }
.filedrop-t { font-weight: 600; color: var(--ink); }
.filedrop-h { font-size: .8rem; color: var(--muted); word-break: break-word; }
/* Resumo da cobrança no topo do cartão de envio */
.envio-resumo { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem;
  flex-wrap: wrap; padding: .9rem 1.1rem; border-radius: 14px; margin-bottom: 1.1rem;
  background: linear-gradient(120deg, #f3f6fd, #e9eefb); border: 1px solid #dde4f4; }
.envio-resumo .er-comp { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.envio-resumo .er-valor { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--navy); }
.btn-voltar-ic { display: inline-flex; align-items: center; gap: .3rem; }

/* ===== vendedor style.css 749-804: estrutura no celular (gaveta) ===== */
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }

  /* Barra superior fixa: logo + botão de menu (hambúrguer) */
  .topnav {
    display: flex; align-items: center; gap: .7rem;
    position: sticky; top: 0; z-index: 30;
    background: var(--brand-grad); color: #fff;
    height: 56px; box-sizing: content-box;         /* altura fixa da barra */
    padding: 0 1rem;
    padding-top: env(safe-area-inset-top);         /* respeita o notch, sem variar a barra */
    box-shadow: 0 2px 12px rgba(18,42,88,.18);
  }
  .topnav-logo { width: 32px; height: 32px; object-fit: contain; flex: none; }
  .topnav-title { font-family: var(--display); font-weight: 700; font-size: 1rem; }
  .topnav-burger {
    width: 42px; height: 42px; flex: none; display: grid; align-content: center; gap: 5px;
    padding: 0 10px; background: transparent; border: 0; cursor: pointer;
  }
  /* Avatar na ponta direita da barra: no celular é o único lugar sempre visível, e é por
     ele que o vendedor chega em "Meus dados" para trocar a foto. */
  .topnav-eu { margin-left: auto; width: 36px; height: 36px; flex: none; border-radius: 50%;
               display: grid; place-items: center; overflow: hidden; text-decoration: none;
               color: #fff; font-weight: 700; font-size: .95rem; line-height: 1;
               background: rgba(255,255,255,.20);
               box-shadow: 0 0 0 1.5px rgba(255,255,255,.55); }
  .topnav-eu.is-active { box-shadow: 0 0 0 2px #fff; }
  .topnav-eu img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .topnav-burger span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
  body.drawer-open .topnav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.drawer-open .topnav-burger span:nth-child(2) { opacity: 0; }
  body.drawer-open .topnav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Menu lateral vira drawer deslizante (fora da tela até abrir) */
  .side {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 50;
    width: 82%; max-width: 320px; height: 100vh; height: 100dvh;
    padding: 1.4rem 1rem; overflow-y: auto;
    transform: translateX(-100%); transition: transform .25s ease;
    box-shadow: 0 0 40px rgba(0,0,0,.35);
  }
  body.drawer-open .side { transform: translateX(0); }

  /* Overlay que escurece o conteúdo com o menu aberto */
  .side-overlay {
    display: block; position: fixed; inset: 0; z-index: 40;
    background: rgba(12,20,40,.5);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  body.drawer-open .side-overlay { opacity: 1; visibility: visible; }
  body.drawer-open { overflow: hidden; }   /* trava o scroll do fundo */

  .nav-soon { display: inline-block; }     /* no drawer há espaço; mostra "em breve" */
  .quick, .teasers { grid-template-columns: 1fr; }
  .main { padding: 1.2rem; }
}

/* ===== vendedor style.css 806-815: selo do resultado ===== */
/* --- Selo de resultado do envio (aprovado / recusado) --------------------- */
.nf-result { display: flex; justify-content: center; margin: .3rem 0 1.1rem; }
.nf-badge { position: relative; width: clamp(84px, 26vw, 104px); height: clamp(84px, 26vw, 104px); }
.nf-badge-sm { width: clamp(58px, 17vw, 74px); height: clamp(58px, 17vw, 74px); }
.nf-badge svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .18)); }
.nf-star { position: absolute; color: #f2c14e; font-size: clamp(13px, 4vw, 17px); opacity: 0; }
.nf-star-1 { top: -4px; left: 4px; }
.nf-star-2 { top: 6px; right: -6px; }
.nf-star-3 { bottom: 6px; left: -6px; }
.nf-star-4 { bottom: -4px; right: 8px; }

/* ===== vendedor style.css 906-932: tabela que vira cartão no celular ===== */
/* ---------- Tabela vira cartão no celular ----------
   13 colunas num telefone viram texto ilegível: o nome do arquivo quebrava uma letra
   por linha. Com data-rot em cada célula, a linha passa a ser um cartão com o rótulo
   ao lado do valor — sem rolagem horizontal e sem letra miúda. */
@media (max-width: 760px) {
  .tab-rolavel { overflow-x: visible; }
  table.grid.cartoes { border: 0; background: transparent; font-size: .88rem; }
  table.grid.cartoes thead { display: none; }
  table.grid.cartoes, table.grid.cartoes tbody, table.grid.cartoes tr,
  table.grid.cartoes td { display: block; width: auto; min-width: 0; }
  table.grid.cartoes tr {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm); padding: .5rem .7rem; margin-bottom: .7rem;
  }
  table.grid.cartoes td {
    border: 0; padding: .25rem 0; text-align: left; white-space: normal;
    max-width: none !important; display: flex; gap: .6rem; align-items: baseline;
  }
  table.grid.cartoes td::before {
    content: attr(data-rot); flex: 0 0 8.5rem; color: var(--muted);
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  }
  table.grid.cartoes td:empty { display: none; }
  /* célula sem rótulo (ações) ocupa a linha toda */
  table.grid.cartoes td:not([data-rot])::before { content: none; }
  table.grid.cartoes td:not([data-rot]) { display: block; padding-top: .5rem; }
}

/* ===== vendedor style.css 991-997: campo inválido depois de mexer ===== */
/* Campo inválido: a borda vermelha aparece só DEPOIS que o vendedor interage (:user-invalid,
   não :invalid) — senão o formulário nasce todo vermelho antes de ele digitar nada. */
.form-card input:user-invalid,
.form-card select:user-invalid,
.form-card textarea:user-invalid { border-color: var(--danger); background: var(--danger-bg); }
.form-card input:user-invalid:focus,
.form-card select:user-invalid:focus { outline-color: var(--danger); }

/* ===== vendedor _loader.html <style>: carregamento do envio ===== */
  .nf-loader{position:fixed;inset:0;z-index:9999;display:flex;flex-direction:column;
    align-items:center;justify-content:center;gap:clamp(.9rem,3vh,1.5rem);color:#fff;
    padding:1.5rem;background:radial-gradient(120% 120% at 50% 0%,#3f508c 0%,#2a3760 70%)}
  .nf-loader[hidden]{display:none}
  .nf-ring{width:clamp(58px,15vmin,82px);height:clamp(58px,15vmin,82px)}
  .nf-ring-track{fill:none;stroke:rgba(255,255,255,.14);stroke-width:6}
  .nf-ring-arc{fill:none;stroke:#c98a2e;stroke-width:6;stroke-linecap:round;
    stroke-dasharray:80 203;filter:drop-shadow(0 0 6px rgba(201,138,46,.7))}
  .nf-title{font-family:var(--display,sans-serif);font-weight:700;
    font-size:clamp(1.05rem,4.6vw,1.35rem);text-align:center;max-width:22ch}
  .nf-check{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;
    gap:clamp(.55rem,1.8vh,.8rem);width:min(92vw,380px)}
  .nf-ci{display:flex;align-items:center;gap:.7rem;opacity:.4;
    transition:opacity .35s ease}
  .nf-ci.active,.nf-ci.done,.nf-ci.fail{opacity:1}
  .nf-ci-ico{width:26px;height:26px;flex:0 0 26px;border-radius:50%;
    border:2px solid rgba(255,255,255,.4);display:flex;align-items:center;
    justify-content:center;transition:background .25s ease,border-color .25s ease}
  .nf-ci.active .nf-ci-ico{border-color:#c98a2e}
  .nf-ci.done .nf-ci-ico{background:#2fbf71;border-color:#2fbf71}
  .nf-ci.fail .nf-ci-ico{background:#e5484d;border-color:#e5484d}
  .nf-ci.fail .nf-ci-tx{color:#ffd7d7}
  .nf-ci-ico svg{width:15px;height:15px}
  .nf-ci-tx{font-size:clamp(.88rem,3.6vw,1rem);line-height:1.25}
  .nf-bar{width:clamp(220px,72vw,340px);height:6px;border-radius:999px;
    background:rgba(255,255,255,.16);overflow:hidden;position:relative}
  .nf-bar[hidden]{display:none}
  .nf-bar-fill{position:absolute;top:0;left:0;height:100%;width:40%;border-radius:999px;
    background:linear-gradient(90deg,transparent,#c98a2e 30%,#fff 50%,#c98a2e 70%,transparent)}
  .nf-msg{margin:0;max-width:min(92vw,420px);text-align:center;line-height:1.4;
    font-size:clamp(.9rem,3.6vw,1rem);color:#ffe0e0}
  .nf-msg[hidden]{display:none}
  .nf-fechar{padding:.7rem 1.4rem;border-radius:12px;border:1px solid rgba(255,255,255,.5);
    background:transparent;color:#fff;font-weight:600;font-size:.95rem;cursor:pointer}
  .nf-fechar[hidden]{display:none}
  .nf-fechar:hover{background:rgba(255,255,255,.12)}
