@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ================================================================
   Painel INCTOP — estilo compartilhado (painel, Equipe, Meus
   resultados, login e a casca da planta). Marca BoxWise: verde #16A34A + preto #0E1013 (21/10/2026).
   ================================================================ */
:root {
  color-scheme: dark;
  /* paleta da página de vendas (conheca/, 20/10/2026) */
  --bg: #0e1013; --bg2: #12151a; --card: #161a20; --card2: #1b2028;
  --line: rgba(255, 255, 255, 0.08); --line2: rgba(255, 255, 255, 0.14);
  --tx: #f5f7fa; --mut: #94a3b8; --mut2: #64748b;
  --blue: #22c55e; --blue2: #16a34a; --grad: linear-gradient(180deg, #1fb257, #138a3e);
  --green: #34d399; --red: #f87171; --amber: #fbbf24;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* nomes antigos (o resto do arquivo e as páginas usam estes) apontando pra paleta nova */
  --navy: var(--blue);
  --navy-dark: var(--tx);
  --navy-light: rgba(34, 197, 94, 0.12);
  --navy-grad: var(--grad);
  --gray-light: var(--card2);
  --border: var(--line);
  --card-bg: var(--card);
  --input-bg: var(--bg2);
  --hover: rgba(255, 255, 255, 0.04);
  --text: var(--tx);
  --text-muted: var(--mut);
  --ok: var(--green);
  --ok-bg: rgba(52, 211, 153, 0.12);
  --pending-bg: rgba(251, 191, 36, 0.12);
  --pending-text: var(--amber);
  --progress-bg: rgba(91, 155, 255, 0.13);
  --progress-text: #93c5fd;
  --danger: var(--red);
  --danger-bg: rgba(248, 113, 113, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
  --shadow-hover: 0 16px 36px -16px rgba(0, 0, 0, 0.9);
  --shadow-btn: 0 8px 24px -8px rgba(22, 163, 74, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  --ring: 0 0 0 3px rgba(34, 197, 94, 0.3);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 480px at 100% -10%, rgba(22, 163, 74, 0.12), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(22, 163, 74, 0.06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: clip; /* o fundo do cabeçalho usa 100vw; clip não quebra o sticky */
}
::selection { background: rgba(34, 197, 94, 0.3); }
.hidden { display: none !important; }

/* ---- Animações base ---- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.45); } 80%, 100% { box-shadow: 0 0 0 7px rgba(248, 113, 113, 0); } }
@keyframes shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }

/* ---- Login "hero" (26/10/2026): vídeo do 3D de um projeto + cartão à direita ----
   Medidas em --u (tela de referência 1672×941, como o prompt Cutora), cores e fonte
   da BoxWise. Celular em pé: vídeo e título em cima, cartão embaixo. */
.ah { --u: max(.62px, min(100vw / 1672, 100dvh / 941)); position: fixed; inset: 0; display: flex; overflow: hidden; background: var(--bg, #0e1013); }
.ah-media { position: absolute; inset: 0; }
.ah-media img, .ah-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.ah-media img, .ah-media video { filter: brightness(.58) saturate(.9) contrast(1.05); }
.ah-media video { opacity: 0; transition: opacity .8s ease; }
.ah-media video.on { opacity: 1; }
.ah-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(14,16,19,.92) 0, rgba(14,16,19,.55) calc(520 * var(--u)), rgba(14,16,19,.15) calc(900 * var(--u)), transparent 70%),
  linear-gradient(180deg, rgba(14,16,19,.75) 0, transparent calc(180 * var(--u))),
  linear-gradient(0deg, rgba(14,16,19,.92) 0, transparent calc(460 * var(--u))),
  radial-gradient(ellipse at 15% 100%, rgba(34,197,94,.18), transparent 55%); }
.ah-hero { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: calc(57 * var(--u)) calc(40 * var(--u)) calc(70 * var(--u)) calc(92.5 * var(--u)); min-width: 0; color: #fff; }
.ah-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; animation: ahUp .7s var(--ease, ease) both; }
.ah-logo { display: flex; align-items: center; gap: calc(14 * var(--u)); text-decoration: none; }
.ah-logo .mark { width: calc(48 * var(--u)); height: calc(48 * var(--u)); border-radius: calc(12 * var(--u)); overflow: hidden; display: block; box-shadow: var(--shadow-btn); }
.ah-logo .mark img { width: 100%; height: 100%; display: block; }
.ah-word { height: calc(34 * var(--u)); width: auto; display: block; }
.ah-back { color: var(--accent, #22c55e); font-size: calc(17.4 * var(--u)); font-weight: 600; text-decoration: none; white-space: nowrap; }
.ah-back:hover { text-decoration: underline; }
.ah-pitch h2 { margin: 0; font-size: calc(62 * var(--u)); line-height: calc(70 * var(--u)); letter-spacing: calc(-2.4 * var(--u)); font-weight: 700; color: #fff; }
.ah-pitch h2 span { display: block; overflow: hidden; }
.ah-pitch h2 span i { display: block; font-style: normal; animation: ahWipe .8s var(--ease, ease) both; }
.ah-pitch h2 span:nth-child(1) i { animation-delay: .25s; }
.ah-pitch h2 span:nth-child(2) i { animation-delay: .37s; }
.ah-pitch h2 span:nth-child(3) i { animation-delay: .49s; color: var(--accent, #22c55e); }
.ah-pitch p { margin: calc(19 * var(--u)) 0 0; font-size: calc(20 * var(--u)); line-height: calc(27.5 * var(--u)); color: rgba(255,255,255,.82); max-width: calc(640 * var(--u)); animation: ahUp .7s .6s var(--ease, ease) both; }
.ah-dots { display: flex; gap: calc(9 * var(--u)); margin-top: calc(35.5 * var(--u)); animation: ahUp .7s .7s var(--ease, ease) both; }
.ah-dots button { width: calc(9 * var(--u)); height: calc(9 * var(--u)); min-width: 7px; min-height: 7px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.55); cursor: pointer; transition: width .3s var(--ease, ease), background .3s; }
.ah-dots button.on { width: calc(34.5 * var(--u)); min-width: 24px; background: var(--accent, #22c55e); }
.ah-panel { position: relative; width: calc(742.4 * var(--u)); margin: calc(18 * var(--u)) calc(18 * var(--u)) calc(22.5 * var(--u)) 0; display: flex; animation: ahCard .8s .1s var(--ease, ease) both; }
.ah-card { flex: 1; background: var(--card, #161a20); border: 1px solid var(--line2, rgba(255,255,255,.1)); border-radius: calc(20 * var(--u)); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8);
  display: flex; flex-direction: column; justify-content: center; padding: calc(40 * var(--u)) calc(91.7 * var(--u)) calc(40 * var(--u)) calc(96.2 * var(--u)); overflow-y: auto; }
.ah-card > * { max-width: calc(559 * var(--u)); width: 100%; animation: ahUp .6s var(--ease, ease) both; }
.ah-card > *:nth-child(1) { animation-delay: .35s; } .ah-card > *:nth-child(2) { animation-delay: .42s; }
.ah-card > *:nth-child(3), .ah-card > *:nth-child(4) { animation-delay: .5s; } .ah-card > *:nth-child(5), .ah-card > *:nth-child(6) { animation-delay: .58s; }
.ah-card > *:nth-child(7) { animation-delay: .66s; } .ah-card > *:nth-child(8) { animation-delay: .74s; } .ah-card > *:nth-child(n+9) { animation-delay: .82s; }
.ah-card h1 { font-size: calc(50.6 * var(--u)); letter-spacing: calc(-1.9 * var(--u)); font-weight: 700; margin: 0; color: var(--text); }
.ah-lead, .ah-card .auth-note { font-size: calc(19 * var(--u)); color: var(--text-muted); margin: calc(10 * var(--u)) 0 calc(26 * var(--u)); line-height: 1.45; }
.ah-card label { display: block; font-size: calc(17.4 * var(--u)); font-weight: 600; margin: calc(18 * var(--u)) 0 calc(8 * var(--u)); color: var(--text); }
.ah-card input { width: 100%; height: calc(66 * var(--u)); min-height: 44px; border: 1px solid var(--border); border-radius: calc(10 * var(--u)); padding: 0 calc(18 * var(--u)); font-size: max(15px, calc(17 * var(--u))); font-family: inherit; background: var(--input-bg); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.ah-card input:focus { outline: none; border-color: var(--navy); box-shadow: var(--ring); }
.ah-pass { position: relative; }
.ah-pass input { padding-right: calc(58 * var(--u)); }
.ah-eye { position: absolute; right: calc(10 * var(--u)); top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--text-muted); cursor: pointer; padding: 8px; display: grid; place-items: center; }
.ah-eye:hover { color: var(--text); }
.ah-eye .ah-eye-slash { opacity: 0; transition: opacity .2s; }
.ah-eye.on .ah-eye-slash { opacity: 1; }
.ah-row { display: flex; justify-content: space-between; align-items: center; margin-top: calc(16 * var(--u)); font-size: max(13px, calc(16 * var(--u))); }
.ah-row a, .ah-foot a { color: var(--accent, #22c55e); font-weight: 600; cursor: pointer; text-decoration: none; }
.ah-row a:hover, .ah-foot a:hover { text-decoration: underline; }
.ah-card .auth-btn { height: calc(66 * var(--u)); min-height: 46px; border-radius: 999px; margin-top: calc(32 * var(--u)); font-size: max(15px, calc(18 * var(--u))); padding: 0; display: flex; align-items: center; justify-content: center; }
.ah-card .auth-btn:hover { box-shadow: 0 14px 30px -12px rgba(34,197,94,.55); }
.ah-foot { margin-top: calc(26 * var(--u)); font-size: max(13px, calc(16 * var(--u))); color: var(--text-muted); text-align: center; }
.ah-card .auth-err { margin-top: 10px; }
.ah-card .ah-remember { display: flex; align-items: center; gap: 8px; margin: 0; width: auto; font-size: inherit; font-weight: 500; color: var(--text-muted); cursor: pointer; }
.ah-card .ah-remember input { width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; accent-color: var(--accent, #22c55e); cursor: pointer; }
.ah-card .ah-mlogo, .ah-mb, .ah-card .ah-mback { display: none; }
@keyframes ahUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ahWipe { from { transform: translateY(105%); } to { transform: none; } }
@keyframes ahCard { from { opacity: 0; transform: translateY(18px) scale(.99); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ah *, .ah { animation: none !important; } .ah-media video { display: none; } }
/* tablet em pé / janela estreita: vídeo + título em cima, cartão embaixo */
@media (min-width: 761px) and (max-aspect-ratio: 1/1) and (min-height: 501px), (min-width: 761px) and (max-width: 980px) and (min-height: 501px) {
  .ah { --u: max(.62px, min(100vw / 390, 100dvh / 844)); flex-direction: column; }
  .ah-media { bottom: auto; height: 42%; }
  .ah-hero { flex: 0 0 42%; padding: calc(20 * var(--u)) calc(20 * var(--u)) calc(18 * var(--u)); }
  .ah-logo .mark { width: calc(36 * var(--u)); height: calc(36 * var(--u)); border-radius: calc(10 * var(--u)); }
  .ah-word { height: calc(24 * var(--u)); }
  .ah-back { font-size: calc(13.5 * var(--u)); }
  .ah-pitch h2 { font-size: calc(27 * var(--u)); line-height: calc(31 * var(--u)); letter-spacing: calc(-.9 * var(--u)); }
  .ah-pitch p { font-size: calc(13.5 * var(--u)); line-height: calc(19 * var(--u)); margin-top: calc(8 * var(--u)); }
  .ah-dots { margin-top: calc(12 * var(--u)); }
  .ah-panel { width: auto; flex: 1; margin: 0 calc(10 * var(--u)) calc(10 * var(--u)); min-height: 0; }
  .ah-card { padding: calc(22 * var(--u)) calc(20 * var(--u)); justify-content: flex-start; border-radius: calc(18 * var(--u)); }
  .ah-card > * { max-width: none; }
  .ah-card h1 { font-size: calc(26 * var(--u)); letter-spacing: calc(-.8 * var(--u)); }
  .ah-lead, .ah-card .auth-note { font-size: calc(13.5 * var(--u)); margin: calc(4 * var(--u)) 0 calc(6 * var(--u)); }
  .ah-card label { font-size: calc(13 * var(--u)); margin: calc(10 * var(--u)) 0 calc(5 * var(--u)); }
  .ah-card input { height: calc(44 * var(--u)); min-height: 40px; }
  .ah-card .auth-btn { height: calc(46 * var(--u)); min-height: 42px; margin-top: calc(14 * var(--u)); }
  .ah-row { margin-top: calc(10 * var(--u)); }
  .ah-foot { margin-top: calc(14 * var(--u)); }
}
@media (max-aspect-ratio: 1/1) and (max-height: 700px), (max-width: 980px) and (min-height: 501px) and (max-height: 700px) { .ah-pitch p { display: none; } }
/* celular (em pé ou deitado): a tela antiga, só o cartão no meio (26/10/2026, a pedido) */
@media (max-width: 760px), (max-height: 500px) {
  .ah { position: static; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; overflow: visible; }
  .ah-media, .ah-hero { display: none; }
  .ah-panel { width: 100%; max-width: 400px; margin: 0; flex: none; display: block; animation: none; }
  .ah-card { display: block; padding: 32px 30px; border-radius: 20px; overflow: visible; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(34,197,94,.06); animation: rise .5s var(--ease) both; }
  .ah-card > * { max-width: none; animation: none; }
  .ah-card .ah-mlogo { display: flex; }
  .ah-dk, .ah-lead { display: none; }
  .ah-mb { display: inline; }
  .ah-card .ah-mback { display: block; }
  .ah-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -.025em; margin: 4px 0 18px; }
  .ah-card .auth-note { font-size: 13.5px; margin: 0 0 12px; }
  .ah-card label { font-size: 12.5px; font-weight: 500; color: var(--mut); margin: 14px 0 6px; }
  .ah-card input { height: auto; min-height: 0; padding: 13px 14px; border-color: var(--line2); border-radius: 12px; font-size: 16px; }
  .ah-pass input { padding-right: 46px; }
  .ah-eye { right: 4px; }
  .ah-row { margin-top: 12px; font-size: 13px; }
  .ah-card .auth-btn { height: auto; min-height: 0; padding: 12px; border-radius: var(--radius-sm); margin-top: 22px; font-size: 14.5px; display: block; }
  .ah-foot { margin-top: 16px; font-size: 13px; }
}

/* ---- Telas de login / aguardando ---- */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.auth-card {
  width: 100%; max-width: 400px; background: var(--card);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line2); border-radius: 20px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(34, 197, 94, 0.06);
  padding: 32px 30px; animation: rise .5s var(--ease) both;
}
.auth-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth-logo .mark {
  width: 42px; height: 42px; border-radius: 12px; background: var(--navy-grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
  box-shadow: var(--shadow-btn); letter-spacing: .02em;
}
.auth-logo div b { display: block; font-size: 15px; color: var(--navy-dark); }
.auth-logo div span { font-size: 12.5px; color: var(--text-muted); }
.auth-note { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; margin: 0 0 12px; }
.auth-card h1 { font-size: 22px; letter-spacing: -.02em; margin: 4px 0 18px; }
.auth-card label { display: block; font-size: 12.5px; font-weight: 600; margin: 14px 0 6px; color: var(--text); }
.auth-card input {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 13px;
  font-size: 14px; font-family: inherit; background: var(--input-bg); color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.auth-card input:focus { outline: none; border-color: var(--navy); box-shadow: var(--ring); }
.auth-btn {
  position: relative; overflow: hidden;
  width: 100%; margin-top: 22px; background: var(--navy-grad); color: #fff; border: none;
  border-radius: var(--radius-sm); padding: 12px; font-size: 14.5px; font-weight: 700; cursor: pointer;
  font-family: inherit; box-shadow: var(--shadow-btn);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s;
}
.auth-btn:hover { filter: brightness(1.08); }
.auth-btn:active { transform: translateY(0) scale(.98); }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.auth-switch { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 16px; }
.auth-switch a { color: var(--navy); font-weight: 600; cursor: pointer; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-err { color: var(--danger); font-size: 13px; margin-top: 10px; min-height: 16px; }

.pending-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center;
}
.pending-card {
  max-width: 400px; background: var(--card); border: 1px solid var(--line2); border-radius: 20px; padding: 32px 30px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); animation: rise .5s var(--ease) both;
}
.pending-card .icon { font-size: 40px; margin-bottom: 12px; animation: pop .5s var(--spring) both .1s; color: var(--navy); display: flex; justify-content: center; }
/* ícones de linha (icones.js) no lugar dos emojis */
.ic { flex-shrink: 0; vertical-align: -3px; }
.tool-link .ic { opacity: .85; }
.spin { display: inline-block; width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--navy-light); border-top-color: var(--navy); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.theme-toggle { color: var(--navy-dark); }
.pending-card h2 { font-size: 19px; letter-spacing: -.01em; margin: 0 0 8px; color: var(--navy-dark); }
.pending-card p { font-size: 14px; color: var(--text-muted); }
.pending-card button {
  margin-top: 18px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 18px; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--navy-dark); font-family: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.pending-card button:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: var(--line2); }
.pending-card a { color: var(--navy); font-weight: 600; }

/* ---- Estrutura das páginas ---- */
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px 80px; }
header.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 0 0 22px; padding: 14px 0;
  animation: rise .4s var(--ease) both;
}
/* fundo de vidro ocupando a largura toda da tela, atrás do cabeçalho */
header.top::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  z-index: -1; background: rgba(14, 16, 19, 0.8);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
/* com o menu lateral, a faixa ocupa só a área do conteúdo (antes passava 128 px da tela e a página rolava pro lado) */
body.has-sidenav header.top::before { width: calc(100vw - var(--sn-w)); }
@media (min-width: 901px) { body.has-sidenav.sn-is-mini header.top::before { width: calc(100vw - var(--sn-mini)); } }
@media (max-width: 900px) { body.has-sidenav header.top::before { width: 100vw; } }
html { overflow-x: clip; } /* nada passa da largura da tela */
header.top h1 { font-size: 20px; margin: 0; color: var(--navy-dark); font-weight: 800; letter-spacing: -.02em; }
header.top .sub { font-size: 12.5px; color: var(--text-muted); margin-top: 1px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 12px; background: var(--navy-grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0;
  box-shadow: var(--shadow-btn); letter-spacing: .02em;
}
.whoami { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.whoami-id { display: inline-flex; flex-direction: column; line-height: 1.15; }
.whoami-id .tenant { font-size: 10.5px; font-weight: 600; color: var(--navy); letter-spacing: .01em; }
.whoami .avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--navy-grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3);
}
.logout-link { color: var(--navy-dark); cursor: pointer; font-weight: 600; padding: 6px 8px; border-radius: 8px; transition: background .2s; }
.logout-link:hover { background: var(--navy-light); }
.tool-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--navy-dark); font-weight: 600; text-decoration: none; padding: 8px 13px;
  border: 1px solid var(--border); border-radius: 999px; white-space: nowrap;
  background: var(--card-bg); font-size: 13px; cursor: pointer; font-family: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s, background .2s, color .2s;
}
.tool-link:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); border-color: var(--line2); }
.tool-link:active { transform: translateY(0) scale(.97); }
.tool-link:focus-visible { outline: none; box-shadow: var(--ring); }
.tool-link.active { border-color: rgba(34, 197, 94, 0.35); color: var(--navy); background: var(--navy-light); }
.tool-link:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: none; }
.tool-link:disabled:hover { background: var(--card-bg); }

/* ---- Painéis e formulários ---- */
.panel {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px;
  animation: rise .5s var(--ease) both;
}
.wrap > .panel:nth-of-type(2) { animation-delay: .04s; }
.wrap > .panel:nth-of-type(3) { animation-delay: .08s; }
.wrap > .panel:nth-of-type(4) { animation-delay: .12s; }
.wrap > .panel:nth-of-type(5) { animation-delay: .16s; }
.panel h2 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 14px; color: var(--navy-dark); }
label { display: block; font-size: 12.5px; font-weight: 600; margin: 12px 0 6px; color: var(--text); }
input[type="text"], input[type="number"], input[type="date"], textarea, select {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: 14px; font-family: inherit; background: var(--input-bg); color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
input[type="text"]:hover, input[type="number"]:hover, input[type="date"]:hover, textarea:hover, select:hover { border-color: var(--line2); }
textarea { resize: vertical; min-height: 60px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--navy); background: var(--input-bg); box-shadow: var(--ring); }
select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.file-row {
  margin-top: 10px; border: 1.5px dashed var(--line2); border-radius: 14px; padding: 18px;
  text-align: center; background: var(--gray-light); cursor: pointer; font-weight: 600; color: var(--navy-dark);
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.file-row:hover { border-color: var(--navy); background: var(--navy-light); }
.file-row input { display: none; }
.file-row.dragover { border-color: var(--navy); background: var(--navy-light); transform: scale(1.01); }
/* arrastar arquivo em cima de um botão de anexar (arrastar.js) */
label.dragover:not(.file-row), [data-drop].dragover { outline: 2px dashed var(--navy); outline-offset: 3px; background: var(--navy-light); }
.file-row .hint { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; font-weight: 400; }
.file-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { display: flex; align-items: center; gap: 6px; background: var(--navy-light); color: var(--navy-dark); border-radius: 999px; padding: 5px 10px 5px 9px; font-size: 12.5px; max-width: 220px; animation: pop .3s var(--spring) both; }
.chip span.name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip button { background: none; border: none; cursor: pointer; color: var(--navy-dark); font-size: 14px; line-height: 1; padding: 0; transition: transform .2s; }
.chip button:hover { transform: scale(1.25); }

/* ---- Botões ---- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: var(--radius-sm); padding: 10px 18px;
  font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { background: var(--navy-grad); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary::after, .auth-btn::after {
  content: ''; position: absolute; top: 0; left: 0; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-120%) skewX(-20deg); pointer-events: none;
}
.btn-primary:hover::after, .auth-btn:hover::after { animation: shine .75s var(--ease); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary:disabled::after { display: none; }
.btn-ghost { background: var(--card-bg); color: var(--navy-dark); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.btn-ghost:hover { border-color: var(--line2); box-shadow: var(--shadow-hover); }
.btn-ghost:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-sm { padding: 7px 13px; font-size: 12.5px; border-radius: 9px; }
.btn-danger { color: var(--danger); border-color: rgba(248, 113, 113, 0.4); }
.btn-danger:hover { background: var(--danger-bg); border-color: var(--danger); }
.btn-row { margin-top: 16px; display: flex; gap: 10px; align-items: center; }
.err { color: var(--danger); font-size: 13px; margin-top: 8px; }

/* ---- Abas ---- */
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; padding: 5px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; width: fit-content; max-width: 100%; }
.tab {
  padding: 8px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; background: transparent; color: var(--text-muted);
  display: flex; align-items: center; gap: 7px; user-select: none;
  transition: background .25s var(--ease), color .25s, box-shadow .25s, transform .2s var(--ease);
}
.tab:hover { color: var(--navy-dark); background: var(--navy-light); }
.tab:active { transform: scale(.96); }
.tab.active { background: var(--navy-grad); color: #fff; box-shadow: var(--shadow-btn); }
.tab .count { background: rgba(255,255,255,0.25); border-radius: 999px; padding: 0 7px; font-size: 11.5px; min-width: 20px; text-align: center; transition: background .25s; }
.tab:not(.active) .count { background: var(--gray-light); color: var(--text-muted); }
.tab-revision.blink { color: var(--danger); animation: revisionBlink 1.2s infinite; }
.tab-revision.blink .count { background: var(--danger); color: #fff; }
@keyframes revisionBlink { 0%, 100% { background: transparent; } 50% { background: var(--danger-bg); } }

.revision-note { margin-top: 12px; background: var(--danger-bg); border: 1px solid rgba(248, 113, 113, 0.35); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; color: var(--danger); }
.revision-note b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.btn-warn { color: var(--danger); border-color: rgba(248, 113, 113, 0.4); }
.btn-warn:hover { background: var(--danger-bg); border-color: var(--danger); }

/* ---- Cartões dos estudos ---- */
.card {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--line2); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card-title { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 3px; }
.card-desc { font-size: 13.5px; color: var(--text); margin: 4px 0 0; white-space: pre-wrap; }
.badge { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge.pendente { background: var(--pending-bg); color: var(--pending-text); }
.badge.andamento { background: var(--progress-bg); color: var(--progress-text); }
.badge.concluido { background: var(--ok-bg); color: var(--ok); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13px; }
.fact { display: flex; gap: 5px; }
.fact b { color: var(--text-muted); font-weight: 600; }
.approve-tag { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.approve-tag.sim { background: var(--ok-bg); color: var(--ok); }
.approve-tag.nao { background: var(--danger-bg); color: var(--danger); }
.approve-tag.definir { background: var(--gray-light); color: var(--text-muted); }
.meta { font-size: 12px; color: var(--text-muted); margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.att-img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; border: 1px solid var(--border); cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s; }
.att-img:hover { transform: scale(1.05); box-shadow: var(--shadow-hover); }
.att-file { display: flex; align-items: center; gap: 6px; width: 76px; height: 76px; border-radius: 12px; border: 1px solid var(--border); background: var(--gray-light); color: var(--navy-dark); text-decoration: none; font-size: 11px; text-align: center; padding: 6px; flex-direction: column; justify-content: center; transition: transform .25s var(--ease), box-shadow .25s; }
.att-file:hover { transform: scale(1.05); box-shadow: var(--shadow-hover); }
.att-file svg { width: 22px; height: 22px; }
.card-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.empty { text-align: center; color: var(--text-muted); padding: 40px 10px; font-size: 14px; }
.lightbox { position: fixed; inset: 0; background: rgba(5, 6, 8, 0.85); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; animation: pop .3s var(--ease) both; }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 16px) scale(.96);
  background: var(--card2); color: var(--tx); border: 1px solid var(--line2); padding: 11px 20px; border-radius: 12px;
  font-size: 13.5px; font-weight: 500; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); z-index: 60;
  opacity: 0; pointer-events: none; max-width: calc(100vw - 32px);
  transition: opacity .25s var(--ease), transform .35s var(--spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

.approval-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 10px; margin: 0 -10px; border-radius: 12px; border-bottom: 1px solid var(--border); transition: background .2s; }
.approval-row:hover { background: var(--hover); }
.approval-row:last-child { border-bottom: none; }
.approval-row .who b { display: block; font-size: 13.5px; }
.approval-row .who span { font-size: 12px; color: var(--text-muted); }
.approval-actions { display: flex; gap: 6px; }

/* ---- Equipe e acessos ---- */
.access-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.access-head h2 { margin: 0; }
.access-count { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.reviews-head-r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.access-count.last-ct { color: var(--tx); }
.access-count.last-ct b { font-weight: 700; }
.access-sub { font-size: 13px; color: var(--text-muted); margin: 6px 0 10px; }
.access-row { display: flex; align-items: center; gap: 12px; padding: 12px 10px; margin: 0 -10px; border-radius: 12px; border-bottom: 1px solid var(--border); transition: background .2s; }
.access-row:hover { background: var(--hover); }
.access-row:last-child { border-bottom: none; }
.access-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--navy-light); color: var(--navy-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.access-who { flex: 1; min-width: 0; }
.access-who b { display: block; font-size: 14px; }
.access-who span { display: block; font-size: 12.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.access-pill { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.access-pill.on { background: var(--ok-bg); color: var(--ok); }
.access-pill.off { background: var(--gray-light); color: var(--text-muted); }
.access-pill.admin { background: var(--navy-light); color: var(--navy-dark); }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; margin: 0; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #2a3038; border-radius: 26px; cursor: pointer; transition: background .3s var(--ease); }
.switch span::before {
  content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff;
  border-radius: 50%; transition: transform .35s var(--spring), width .2s var(--ease); box-shadow: 0 2px 5px rgba(0,0,0,0.18);
}
.switch span:active::before { width: 24px; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:checked + span:active::before { transform: translateX(14px); }
.switch input:disabled + span { opacity: 0.55; cursor: default; }
.switch input:focus-visible + span { box-shadow: var(--ring); }

/* ---- Documentos gerados pela planta ---- */
.docs-filters { display: grid; grid-template-columns: 210px 1fr; gap: 8px; margin-bottom: 6px; }
.docs-filters.with-consultant { grid-template-columns: 190px 210px 1fr; }
@media (max-width: 560px) { .docs-filters, .docs-filters.with-consultant { grid-template-columns: 1fr; } }
.docs-more { display: flex; justify-content: center; padding-top: 12px; }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 12px 10px; margin: 0 -10px; border-radius: 12px; border-bottom: 1px solid var(--border); transition: background .2s; }
.doc-row:hover { background: var(--hover); }
.doc-row:last-child { border-bottom: none; }
.doc-type { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; min-width: 88px; text-align: center; flex-shrink: 0; }
.doc-type.proposta { background: var(--navy-light); color: var(--navy-dark); }
.doc-type.contrato { background: var(--ok-bg); color: var(--ok); }
.doc-type.analise { background: var(--progress-bg); color: var(--progress-text); }
.doc-type.tecnico { background: var(--gray-light); color: var(--text-muted); }
.doc-type.video { background: var(--pending-bg); color: var(--pending-text); }
.doc-type.apresentacao { background: var(--navy-light); color: var(--navy-dark); }
.doc-type.parceiros { background: var(--gray-light); color: var(--text-muted); }
.doc-main { flex: 1; min-width: 0; }
.doc-main b { display: block; font-size: 14px; }
.doc-main span { display: block; font-size: 12.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-main .doc-summary { font-size: 12px; }
@media (max-width: 560px) {
  .doc-row { flex-wrap: wrap; }
  .doc-row .tool-link { width: 100%; justify-content: center; }
}

/* ---- Equipe: função e remover ---- */
.role-select { width: auto; padding: 7px 30px 7px 10px; font-size: 12.5px; margin: 0; flex-shrink: 0; border-radius: 9px; }
.remove-link { background: none; border: none; color: var(--danger); font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 5px 8px; border-radius: 8px; flex-shrink: 0; font-family: inherit; transition: background .2s; }
.remove-link:hover { background: var(--danger-bg); }
.access-pill.manager { background: var(--progress-bg); color: var(--progress-text); }
@media (max-width: 560px) {
  .access-row { flex-wrap: wrap; }
  .access-row .access-who { flex-basis: calc(100% - 50px); }
}

/* ---- Conferência de contratos ---- */
.review-row { padding: 14px 0; border-bottom: 1px solid var(--border); }
.review-row:last-child { border-bottom: none; padding-bottom: 2px; }
.review-top { display: flex; align-items: center; gap: 12px; }
.review-status { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; min-width: 98px; text-align: center; flex-shrink: 0; }
.review-status.pending { background: var(--pending-bg); color: var(--pending-text); }
.review-status.approved { background: var(--ok-bg); color: var(--ok); }
.review-status.returned { background: var(--danger-bg); color: var(--danger); }
.review-status.generated { background: var(--gray-light); color: var(--text-muted); }
.review-status.partial { background: var(--progress-bg); color: var(--progress-text); }
.review-details { display: grid; grid-template-columns: 150px 1fr; gap: 5px 12px; margin: 12px 0 0; padding: 12px 14px; background: var(--gray-light); border-radius: 12px; font-size: 12.5px; }
.review-details dt { color: var(--text-muted); }
.review-details dd { margin: 0; word-break: break-word; }
.review-note { margin-top: 8px; font-size: 12.5px; color: var(--danger); }
.review-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.review-return { display: flex; gap: 8px; margin-top: 10px; animation: rise .3s var(--ease) both; }
.review-return input { margin: 0; flex: 1; }
.review-toggle { background: none; border: none; color: var(--navy); font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 0; margin-top: 8px; font-family: inherit; }
.review-toggle:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .review-top { flex-wrap: wrap; }
  .review-details { grid-template-columns: 1fr; }
  .review-details dt { margin-top: 4px; }
  .review-return { flex-direction: column; }
}

/* ---- Página Equipe / Meus resultados ---- */
.tool-badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 2px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; line-height: 18px; text-align: center; animation: pop .35s var(--spring) both, ping 2s 1s infinite; }
/* Tabela cabe inteira no painel (sem barra de rolagem): títulos quebram em
   duas linhas e no celular cada consultor vira um cartão. */
.stats-scroll { border-radius: 12px; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.stats-table th { text-align: left; vertical-align: bottom; font-size: 10.5px; line-height: 1.3; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; padding: 8px 8px 10px; border-bottom: 1px solid var(--border); }
.stats-table td { padding: 11px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; transition: background .2s; }
.stats-table td:first-child { white-space: normal; min-width: 110px; }
.stats-table tbody tr:hover td { background: var(--hover); }
.stats-table td:first-child { font-weight: 600; }
.stats-table tfoot td { font-weight: 700; border-bottom: none; background: var(--gray-light); }
.stats-table tfoot td:first-child { background: var(--gray-light); border-radius: 10px 0 0 10px; }
.stats-table tfoot td:last-child { border-radius: 0 10px 10px 0; }
.access-head .role-select { align-self: center; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 8px 0 16px; }
.kpi {
  position: relative; overflow: hidden;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; min-width: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  animation: rise .45s var(--ease) both;
}
.kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--navy-grad); opacity: .8; }
.kpi:nth-child(2) { animation-delay: .05s; }
.kpi:nth-child(3) { animation-delay: .1s; }
.kpi:nth-child(4) { animation-delay: .15s; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--line2); }
.kpi span { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); }
.kpi b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--navy-dark); margin: 4px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.kpi small { display: block; font-size: 11.5px; color: var(--text-muted); }
/* caixinha do resumo que é botão (filtra a lista) */
button.kpi-btn { font: inherit; color: inherit; text-align: left; width: 100%; cursor: pointer; }
button.kpi-btn:focus-visible { outline: none; box-shadow: var(--ring); }
button.kpi-btn:active { transform: scale(.98); }
.kpi-btn.selected { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14); }
.kpi-btn.selected.bad { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.14); }
.kpi.ok { background: linear-gradient(180deg, rgba(52, 211, 153, 0.08), var(--card-bg) 70%); border-color: rgba(52, 211, 153, 0.3); }
.kpi.ok::before { background: var(--ok); }
.kpi.ok b { color: var(--ok); }
@media (max-width: 700px) { .kpis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) {
  .kpis { gap: 8px; }
  .kpi { padding: 12px 12px 12px 14px; }
  .kpi b { font-size: 16px; white-space: normal; overflow-wrap: anywhere; }
}
.stats-table small { display: block; font-size: 11px; color: var(--text-muted); font-weight: 400; }
.stats-table .muted { color: var(--text-muted); }
.stats-table input.pct-input { width: 58px; min-width: 58px; padding: 6px 8px; margin: 0; font-size: 13px; text-align: right; }
@media (max-width: 900px) {
  .stats-table, .stats-table tbody, .stats-table tfoot, .stats-table tr, .stats-table td { display: block; width: 100%; }
  .stats-table thead { display: none; }
  .stats-table tr { border: 1px solid var(--border); border-radius: 12px; padding: 4px 12px; margin-bottom: 10px; }
  .stats-table tfoot tr { background: var(--gray-light); }
  .stats-table td { padding: 9px 0; text-align: right; white-space: normal; background: none !important; border-radius: 0 !important; }
  .stats-table td::after { content: ''; display: block; clear: both; }
  .stats-table tr td:last-child { border-bottom: none; }
  .stats-table td:first-child { font-size: 14px; padding-top: 10px; }
  .stats-table td[data-label]::before { content: attr(data-label); float: left; font-size: 12px; font-weight: 500; color: var(--text-muted); text-align: left; padding-right: 12px; }
  .stats-table td:first-child { text-align: left; }
  .stats-table td.empty-cell { display: none; }
  .stats-table small { display: inline; margin-left: 6px; }
}
.sale-row { padding: 16px 0; border-bottom: 1px solid var(--border); }
.sale-row:last-child { border-bottom: none; padding-bottom: 2px; }
.sale-top { display: flex; align-items: center; gap: 12px; }
.dl-corner { margin-left: auto; flex-shrink: 0; text-align: right; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--border, rgba(255,255,255,.1)); line-height: 1.2; }
.dl-corner small { display: block; font-size: 11px; color: var(--text-muted); }
.dl-corner b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.dl-corner.ok b { color: var(--ok); }
.dl-corner.soon b { color: var(--pending-text); }
.dl-corner.late b { color: var(--danger); }
.dl-corner.wait { border-style: dashed; }
.pay-list { list-style: none; margin: 10px 0 0; padding: 10px 14px; background: var(--gray-light); border-radius: 12px; font-size: 12.5px; }
.pay-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 3px 0; }
.sale-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.sale-actions:empty { display: none; }
.sale-actions input[type=date] { width: auto; margin: 0; padding: 6px 9px; font-size: 12.5px; }
.pay-field { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.sale-actions input.pay-pct { width: 66px; margin: 0; padding: 6px 8px; font-size: 13px; text-align: right; }
.pay-preview { font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .sale-top { flex-wrap: wrap; }
  .dl-corner { margin-left: 0; text-align: left; flex-basis: 100%; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; padding: 5px 10px; }
  .dl-corner b { font-size: 15px; }
  .pay-list li { flex-wrap: wrap; }
}
.sale-terms { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 8px; font-size: 12.5px; color: var(--text-muted); }
.sale-terms label { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; font-size: 12.5px; color: var(--text-muted); }
.sale-terms .mode-select, .sale-actions .pay-kind { width: auto; margin: 0; padding: 5px 30px 5px 9px; font-size: 12.5px; }
.sale-actions input.pay-vehicle { width: 190px; margin: 0; padding: 6px 9px; font-size: 12.5px; }
.pay-item-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pay-item-actions input.sold-date { width: auto; margin: 0; padding: 4px 7px; font-size: 12px; }
.warn-text { color: var(--pending-text); font-weight: 600; }
.neg-summary { margin-top: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; font-size: 12.5px; display: grid; gap: 5px; background: var(--hover); }
.neg-summary > div > span:first-child { color: var(--text-muted); }
.neg-summary .review-toggle { margin: 0 0 0 8px; }
.neg-summary input.sold-date { width: auto; margin: 0 4px; padding: 4px 7px; font-size: 12px; }
.neg-form { margin-top: 12px; padding: 14px 16px; background: var(--navy-light); border: 1px solid rgba(34, 197, 94, 0.12); border-radius: 14px; font-size: 13px; animation: rise .35s var(--ease) both; }
.neg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 14px; margin-top: 10px; }
.neg-grid label { margin: 0; font-size: 12px; font-weight: 600; color: var(--navy-dark); }
.neg-grid input, .neg-grid select { margin: 5px 0 0; padding: 8px 10px; font-size: 13px; background: var(--input-bg); }
.neg-hint { margin: 10px 0 0; font-size: 12.5px; color: var(--text-muted); }
.neg-hint:empty { display: none; }
@media (max-width: 700px) { .neg-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .neg-grid { grid-template-columns: 1fr; } }

/* ---- Celular ---- */
@media (max-width: 560px) {
  .wrap { padding: 0 14px 80px; }
  /* no celular o cabeçalho rola junto (fixo, ele comeria 1/3 da tela) */
  header.top { position: relative; margin: 0 0 16px; padding: 12px 0; }
  header.top h1 { font-size: 18px; }
  .brand .logo { width: 36px; height: 36px; border-radius: 10px; }
  .whoami { gap: 6px; }
  .whoami .tool-link { padding: 7px 11px; font-size: 12.5px; }
  .panel { padding: 16px; border-radius: 14px; }
  .tabs { width: 100%; border-radius: 16px; }
}

/* Quem pede menos movimento no sistema não vê animação nenhuma. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .tab-revision.blink { background: var(--danger-bg); }
}

/* ---- Pós-venda ---- */
.muted { color: var(--text-muted); }
.kpi.bad { background: linear-gradient(180deg, rgba(248, 113, 113, 0.08), var(--card-bg) 70%); border-color: rgba(248, 113, 113, 0.3); }
.kpi.bad::before { background: var(--danger); }
.kpi.bad b { color: var(--danger); }
.kpi.warn { background: linear-gradient(180deg, rgba(251, 191, 36, 0.08), var(--card-bg) 70%); border-color: rgba(251, 191, 36, 0.3); }
.kpi.warn::before { background: #fbbf24; }
.kpi.warn b { color: #fbbf24; }
.kpi-btn.selected.warn { border-color: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.14); }
#kpis.kpis { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { #kpis.kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { #kpis.kpis { grid-template-columns: 1fr 1fr; } #kpis.kpis > :last-child { grid-column: 1 / -1; } }
.upcoming-back { background: none; border: 0; padding: 0 0 0 10px; color: var(--accent, #22c55e); font: inherit; font-size: 11px; text-transform: none; letter-spacing: 0; cursor: pointer; }
.upcoming-back:hover { text-decoration: underline; }
.upcoming-title { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin: 4px 0 6px; }
.upcoming-row { display: grid; grid-template-columns: 10px 170px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; font-size: 13px; transition: background .2s; }
.upcoming-row:hover { background: var(--hover); }
button.upcoming-row { width: calc(100% + 20px); background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.upcoming-row:focus-visible { outline: 2px solid var(--primary, #16A34A); outline-offset: -2px; }
.order-card.flash { animation: pedidoFlash 1.8s ease-out; }
@keyframes pedidoFlash { 0%, 30% { box-shadow: 0 0 0 3px var(--primary, #16A34A); } 100% { box-shadow: 0 0 0 0 transparent; } }
.upcoming-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.upcoming-row.soon .dot { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, .18); }
.upcoming-row.late .dot { background: var(--danger); box-shadow: 0 0 0 3px rgba(248, 113, 113, .18); }
.upcoming-row .u-what { font-weight: 600; }
.upcoming-row .u-who { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upcoming-row .u-when { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.upcoming-row.late .u-when { color: var(--danger); }
.upcoming-row.soon .u-when { color: var(--pending-text); }
@media (max-width: 640px) {
  .upcoming-row { grid-template-columns: 10px 1fr; }
  .upcoming-row .u-who, .upcoming-row .u-when { grid-column: 2; }
}

.drop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drop-grid .file-row { margin-top: 0; display: block; }
@media (max-width: 560px) { .drop-grid { grid-template-columns: 1fr; } }
.parse-note { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--ok-bg); color: var(--ok); font-size: 13px; font-weight: 500; animation: rise .3s var(--ease) both; }
.parse-note.warn { background: var(--pending-bg); color: var(--pending-text); }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; margin-top: 6px; }
.form-grid .span2 { grid-column: span 2; }
.form-grid .span3 { grid-column: span 3; }
.form-grid label { margin-top: 12px; }
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .span3 { grid-column: span 2; }
}
@media (max-width: 460px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2, .form-grid .span3 { grid-column: auto; }
}
.deadline-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 13px; }

.order-card {
  padding: 16px 18px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--card-bg);
  transition: box-shadow .25s var(--ease), border-color .25s, transform .25s var(--ease);
}
.order-card:hover { box-shadow: var(--shadow-hover); border-color: var(--line2); }
.order-card.is-late { border-color: rgba(248, 113, 113, .35); box-shadow: inset 3px 0 0 var(--danger); }
.order-models { margin-top: 8px; font-size: 12.5px; color: var(--text); }
.chips-dl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
/* quanto o cliente já pagou (cartão do pedido) */
.paid-line { margin-top: 10px; min-height: 26px; }
.paid-line .pl-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 8px; font-size: 11.5px; color: var(--text-muted); }
.paid-line .pl-top span { white-space: nowrap; }
.paid-line .pl-top span:first-child { font-weight: 600; color: var(--ok); }
.paid-line .fin-bar { height: 4px; margin-top: 4px; }
.chip-dl { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--gray-light); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.chip-dl::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.chip-dl.ok { background: var(--ok-bg); color: var(--ok); }
.chip-dl.soon { background: var(--pending-bg); color: var(--pending-text); }
.chip-dl.late { background: var(--danger-bg); color: var(--danger); }

.stepper { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 14px 0 4px; padding: 0; counter-reset: step; }
.stepper li { position: relative; padding-top: 22px; text-align: center; font-size: 11.5px; color: var(--text-muted); }
.stepper li::before { content: ''; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: var(--card-bg); border: 2px solid var(--line2); z-index: 1; transition: all .3s var(--ease); }
.stepper li::after { content: ''; position: absolute; top: 10px; left: -50%; width: 100%; height: 2px; background: var(--line2); }
.stepper li:first-child::after { display: none; }
.stepper li b { display: block; font-weight: 600; color: var(--text-muted); }
.stepper li span { display: block; font-size: 11px; margin-top: 1px; font-variant-numeric: tabular-nums; }
.stepper li.done::before { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 0 3px rgba(52, 211, 153, .15); }
.stepper li.done::after { background: var(--ok); }
.stepper li.done b { color: var(--text); }
.stepper li.current::before { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(34, 197, 94, .15); animation: ping-navy 2s infinite; }
.stepper li.current b { color: var(--navy); }
@keyframes ping-navy { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .35); } 80%, 100% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } }
@media (max-width: 560px) {
  .stepper li { font-size: 10px; }
  .stepper li b { font-weight: 600; line-height: 1.2; }
}

.order-files { display: grid; gap: 6px; margin-top: 12px; padding: 10px 12px; background: var(--gray-light); border-radius: 12px; }
.file-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; }
.fg-title { width: 110px; flex-shrink: 0; font-weight: 600; color: var(--text-muted); }
.fg-empty { color: var(--text-muted); }
.file-pill { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--card-bg); overflow: hidden; max-width: 100%; transition: box-shadow .2s, transform .2s var(--ease); }
.file-pill:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.fp-name { border: none; background: none; padding: 5px 10px; font-size: 12px; font-weight: 600; color: var(--navy-dark); cursor: pointer; font-family: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.fp-name:disabled { opacity: .5; cursor: wait; }
.fp-x { border: none; border-left: 1px solid var(--border); background: none; padding: 5px 9px; font-size: 14px; line-height: 1; color: var(--text-muted); cursor: pointer; transition: background .2s, color .2s; }
.fp-x:hover { background: var(--danger-bg); color: var(--danger); }
.order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.order-actions .sale-actions { margin-top: 12px; }
.order-actions > .review-toggle { margin-top: 12px; }
.file-pick { cursor: pointer; }
/* botões de enviar arquivo avisam que dá pra arrastar (17/11/2026, pedido do João) — só com mouse */
@media (hover: hover) and (pointer: fine) {
  /* ::before com order (o ::after do botão primário já é o brilho) */
  label.file-pick:not(.pz-photo-pick)::before, label.cd-file::before { content: 'ou arraste'; order: 99; font-weight: 500; font-size: .86em; opacity: .72; white-space: nowrap; }
  label.file-pick:not(.pz-photo-pick)::before { margin-left: -2px; }
}
.order-private { margin-top: 4px; }
.private-box { margin-top: 4px; animation: rise .3s var(--ease) both; }
@media (max-width: 560px) {
  .order-card { padding: 14px; }
  .fg-title { width: 100%; }
}
.setting-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; background: var(--gray-light); border-radius: 12px; }
.setting-row .access-who span { white-space: normal; }
.seg-light { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.seg-light button { flex: 1 1 180px; padding: 9px 12px; border: none; border-radius: 9px; background: transparent; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: background .25s var(--ease), color .2s, box-shadow .25s, transform .15s; }
.seg-light button:hover { color: var(--navy-dark); background: rgba(255, 255, 255, .06); }
.seg-light button:active { transform: scale(.97); }
.seg-light button.active { background: var(--card2); color: var(--navy-dark); box-shadow: 0 0 0 1px var(--line2); }
.start-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--text-muted); }
.entry-box { margin-top: 12px; padding: 12px 14px; border: 1px dashed rgba(251, 191, 36, .45); background: var(--pending-bg); border-radius: 12px; font-size: 13px; animation: rise .3s var(--ease) both; }
.entry-box > b { display: block; margin-bottom: 8px; color: var(--pending-text); }
.eb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin: 0 0 8px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.eb-head b { color: var(--pending-text); }
.eb-tog { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.eb-tog svg { transition: transform .2s var(--ease); transform: rotate(180deg); }
.eb-head:hover .eb-tog { color: var(--text); }
.entry-box.min { padding-top: 9px; padding-bottom: 9px; }
.entry-box.min .eb-head { margin-bottom: 0; }
.entry-box.min .eb-tog svg { transform: none; }
.entry-box.min .eb-body { display: none; }
.seg-light.seg-sm { max-width: 520px; }
.seg-light.seg-sm button { flex: 1 1 150px; padding: 7px 10px; font-size: 12.5px; }
.entry-box .sale-actions { margin-top: 10px; }

/* ---- Visualizador de arquivos (pós-venda) ---- */
.fp-dl { font-size: 12px; }
.fp-dl:hover { background: var(--navy-light); color: var(--navy-dark); }
.viewer { position: fixed; inset: 0; z-index: 70; display: none; flex-direction: column; background: rgba(5, 6, 8, .88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.viewer.open { display: flex; animation: fadeIn .2s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.viewer-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: rgba(22, 26, 32, .97); border-bottom: 1px solid var(--line); box-shadow: 0 4px 20px rgba(0, 0, 0, .4); }
.viewer-name { flex: 1; min-width: 0; }
.viewer-name b { display: block; font-size: 14px; color: var(--navy-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-name span { display: block; font-size: 12px; color: var(--text-muted); }
.viewer-close { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 10px; background: var(--card-bg); font-size: 22px; line-height: 1; color: var(--text-muted); cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease); }
.viewer-close:hover { background: var(--danger-bg); color: var(--danger); transform: scale(1.05); }
.viewer-body { flex: 1; overflow: auto; padding: 16px 12px 40px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.viewer-body canvas, .viewer-body img { max-width: 100%; background: #fff; border-radius: 4px; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); animation: rise .3s var(--ease) both; }
.viewer-body img { max-height: none; height: auto; }
.viewer-loading { margin: auto; color: #fff; font-size: 15px; font-weight: 500; }
@media (max-width: 560px) { .viewer-bar { padding: 8px 10px; } .viewer-body { padding: 10px 6px 30px; } }
.order-filters { grid-template-columns: 180px 250px 1fr; }
/* busca + caixinhas no quadro do título; pedidos fora dele (05/11/2026) */
.docs-filters.order-filters { margin: 14px 0 0; }
/* a lista dos pedidos fica fora do quadro da busca */
.order-list-out { margin-top: 6px; }
.order-filters input#orderSearch, .order-filters input[type="text"] { padding-left: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 13px center; }
@media (max-width: 760px) { .order-filters { grid-template-columns: 1fr 1fr; } .order-filters input { grid-column: span 2; } }
@media (max-width: 460px) { .order-filters { grid-template-columns: 1fr; } .order-filters input { grid-column: auto; } }

/* ---- Pátio (produção, ficha do container, briefing) ---- */
.type-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.type-chips:empty { display: none; }
.type-label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-right: 2px; }
.back-link { display: inline-block; margin-bottom: 10px; color: var(--navy); font-size: 13px; font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.unit-list { margin-top: 12px; border-top: 1px solid var(--border); }
.unit-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 4px 12px; padding: 11px 8px; margin: 0 -8px; border-bottom: 1px solid var(--border); border-radius: 10px; color: inherit; text-decoration: none; transition: background .2s; }
.unit-row:last-child { border-bottom: none; }
.unit-row:hover { background: var(--hover); }
.u-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; background: var(--gray-light); }
.u-main { min-width: 0; }
.u-main b { display: block; font-size: 14px; color: var(--text); }
.u-main > span { display: block; font-size: 12.5px; color: var(--text-muted); }
.u-bar { display: block; height: 5px; border-radius: 3px; background: var(--gray-light); margin-top: 6px; overflow: hidden; }
.u-bar i { display: block; height: 100%; border-radius: 3px; background: var(--navy-grad); }
@media (max-width: 560px) {
  .unit-row { grid-template-columns: 40px 1fr; }
  .unit-row .chip-dl { grid-column: 2; justify-self: start; }
}
.setup-list { display: grid; gap: 8px; margin: 14px 0 6px; }
.setup-row { display: grid; grid-template-columns: 28px 170px auto 1fr 34px; align-items: center; gap: 8px; padding: 8px 10px; background: var(--gray-light); border-radius: 12px; }
.setup-row select { margin: 0; padding: 8px 10px; }
.setup-n { font-weight: 800; color: var(--navy-dark); text-align: center; }
.setup-check { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; white-space: nowrap; }
.setup-check input { width: 18px; height: 18px; }
.setup-x { border: 1px solid var(--border); border-radius: 9px; background: var(--card-bg); height: 34px; }
@media (max-width: 640px) {
  .setup-row { grid-template-columns: 28px 1fr 34px; }
  .setup-row select, .setup-row .setup-check { grid-column: 2; }
  .setup-row .setup-x { grid-column: 3; grid-row: 1; }
}
.ficha-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.ficha-title { flex: 1 1 260px; min-width: 0; }
.ficha-title .eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.ficha-title h2 { margin: 3px 0 8px; font-size: 20px; letter-spacing: -.02em; }
.ficha-title .chips-dl { margin-top: 0; }
.ficha-head .sale-actions { margin-top: 0; }
.ficha-prog { display: grid; gap: 8px; padding: 12px 14px; margin-bottom: 12px; background: var(--gray-light); border-radius: 12px; }
.prog-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.prog-top span { color: var(--text-muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.segbar { display: flex; gap: 2px; height: 10px; }
.segbar i { flex-basis: 0; border-radius: 3px; background: var(--card-bg); border: 1px solid var(--border); }
.segbar i.done { background: var(--ok); border-color: var(--ok); }
.segbar i.current { background: var(--navy); border-color: var(--navy); }
.callout { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; margin-bottom: 12px; border-radius: 12px; font-size: 18px; animation: rise .3s var(--ease) both; }
.callout > div { flex: 1; min-width: 0; font-size: 13.5px; }
.callout b { display: block; }
.callout > div > span { display: block; font-size: 13px; color: var(--text); opacity: .9; }
.callout.ok { background: var(--ok-bg); color: var(--ok); }
.callout.warn { background: var(--pending-bg); color: var(--pending-text); }
.callout.bad { background: var(--danger-bg); color: var(--danger); }
.callout.info { background: var(--progress-bg); color: var(--progress-text); }
.stage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.st { border-radius: 12px; background: var(--card-bg); border: 1px solid var(--border); }
.st.next { background: transparent; border-style: dashed; }
.st.current { border: 2px solid var(--navy); box-shadow: var(--shadow); }
.st.end { background: transparent; border: none; }
.st-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: none; border-radius: 11px; background: transparent; text-align: left; font-family: inherit; color: inherit; }
button.st-row { cursor: pointer; }
button.st-row:hover { background: var(--hover); }
.st-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: var(--gray-light); }
.st.done .st-ic { background: var(--ok-bg); }
.st.current .st-ic { background: var(--navy-light); }
.st-ic .ic, .u-ic .ic { width: 19px; height: 19px; color: var(--navy-dark); }
.st.done .st-ic .ic { color: var(--ok); }
.callout > span[aria-hidden] .ic { width: 20px; height: 20px; }
.st-t { flex: 1; min-width: 0; }
.st-t b { display: block; font-size: 14px; }
.st-t > span { display: block; font-size: 12.5px; color: var(--text-muted); }
.st-d { flex: none; font-size: 12.5px; font-weight: 700; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-d.ok { color: var(--ok); }
.st-d s { font-weight: 500; opacity: .75; }
.tag { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--progress-bg); color: var(--progress-text); vertical-align: 1px; }
.t-bad { color: var(--danger); }
.t-warn { color: var(--pending-text); }
.st .items { display: grid; padding: 0 12px 8px; }
.item { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--border); }
.item-q { font-weight: 600; font-size: 15px; line-height: 1.35; }
.okbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.okbar button { min-height: 50px; border-radius: 11px; border: 1.5px solid var(--border); background: var(--card-bg); font-family: inherit; font-weight: 800; font-size: 15px; color: var(--text-muted); cursor: pointer; transition: transform .15s var(--ease), background .2s, border-color .2s; }
.okbar button:active { transform: scale(.97); }
.okbar button.ok.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.okbar button.nok.on { background: var(--danger); border-color: var(--danger); color: #fff; }
.okbar button.na.on { background: var(--text-muted); border-color: var(--text-muted); color: #fff; }
textarea.note-nok { min-height: 60px; margin: 0; border-color: var(--danger); }
.ro { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.ro .r { flex: none; min-width: 42px; padding: 2px 6px; border-radius: 6px; text-align: center; font-size: 11.5px; font-weight: 800; }
.r.ok { background: var(--ok-bg); color: var(--ok); }
.r.nok { background: var(--danger-bg); color: var(--danger); }
.r.na, .r.none { background: var(--gray-light); color: var(--text-muted); }
.ro small { display: block; margin-top: 3px; color: var(--pending-text); font-size: 12.5px; }
.st-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 12px; }
.st-actions .span2 { grid-column: 1 / -1; }
.st-actions .btn { min-height: 48px; font-size: 15px; }
.st-actions .btn-big { min-height: 56px; font-size: 16px; }
.st .hint { margin: 6px 12px 12px; font-size: 12.5px; color: var(--text-muted); }
.st .callout { margin: 4px 12px 12px; }
.pendbox { display: grid; gap: 8px; padding: 12px 14px; margin-bottom: 12px; border-radius: 12px; background: var(--pending-bg); }
.pendbox > b { color: var(--pending-text); }
.pend { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--card-bg); }
.pend > span { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; }
.pend small { display: block; font-weight: 500; color: var(--text-muted); }
.review-box { padding: 14px; margin-bottom: 12px; border: 1px solid rgba(34, 197, 94, .25); border-radius: 14px; background: rgba(34, 197, 94, 0.06); animation: rise .3s var(--ease) both; }
.review-box > b { display: block; color: var(--navy-dark); }
.timer { display: flex; align-items: center; gap: 14px; color: var(--progress-text); }
.timer .clock { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.timer span { display: block; font-size: 13px; color: var(--text); }
.brief-head { flex-wrap: wrap; align-items: center; row-gap: 12px; margin-bottom: 8px; }
.brief-title { font-size: 13px; line-height: 1.4; color: var(--text-muted); margin-top: 4px; }
.brief-seg { min-width: 240px; }
.brief-sec { padding: 10px 0 6px; border-top: 1px solid var(--border); }
.brief-sec:first-of-type { border-top: none; }
.brief-sec .upcoming-row { text-decoration: none; color: inherit; }
.brief-empty { margin: 2px 0 6px; font-size: 12.5px; }
table.week-grid { border-collapse: separate; border-spacing: 3px; width: 100%; min-width: 560px; font-size: 12px; }
.week-grid th { padding: 4px; font-size: 11.5px; font-weight: 600; color: var(--text-muted); text-align: center; }
.week-grid thead th.today { color: var(--navy); }
.week-grid tbody th { text-align: left; white-space: nowrap; padding-right: 8px; }
.week-grid tbody th b { display: block; color: var(--text); font-size: 12.5px; }
.week-grid tbody th small { font-weight: 500; }
.week-grid td { height: 48px; padding: 3px; border-radius: 8px; text-align: center; vertical-align: middle; background: var(--gray-light); }
.week-grid td span { display: block; font-size: 16px; line-height: 1.1; }
.week-grid td small { display: block; font-size: 10.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week-grid td.current { background: var(--navy-light); }
.week-grid td.done { background: var(--ok-bg); }
.week-grid td.rain { box-shadow: inset 0 -3px 0 var(--progress-text); }
.week-grid td.today { outline: 2px solid var(--navy); outline-offset: -2px; }
.week-grid td.none { background: transparent; border: 1px dashed var(--border); }
.week-grid td.none small { color: var(--text-muted); font-weight: 500; }
.patio-filters { margin: 0; }
.patio-filters select, .patio-filters input { margin: 0; }
.filter-note { margin: 8px 0 0; }
.filter-note:empty { display: none; }
#filterBar { padding: 14px 16px; }
@media (max-width: 560px) { .patio-filters { grid-template-columns: 1fr; } }
.compras-table th, .compras-table td { text-align: left; }
.compras-table td:nth-child(2) { white-space: normal; min-width: 160px; }
.compras-table td small { display: block; color: var(--text-muted); font-size: 11.5px; }
.compras-table tr.row-late td { color: var(--danger); }
.compras-table tr.row-late td small { color: var(--danger); opacity: .8; }
.print-only { display: none; }
@media print {
  body { background: #fff !important; }
  header.top, .no-print, .tabs, .toast, .viewer { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .panel { box-shadow: none; border: none; padding: 0; animation: none; }
  .print-only { display: block; font-size: 11px; color: #555; margin-bottom: 8px; }
  .upcoming-row { grid-template-columns: 14px 160px 1fr auto; padding: 3px 0; margin: 0; }
  .upcoming-row .dot { width: 11px; height: 11px; border-radius: 2px; background: #fff !important; border: 1.3px solid #000; box-shadow: none !important; }
  .week-grid td { border: 1px solid #ccc; }
}

/* ---- Pátio simples (04/11/2026): aba Hoje com tarefas por cor, abas grandes, ficha enxuta ---- */
.patio-page .tabs { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; gap: 4px; }
.patio-page .tabs.tabs-5 { grid-template-columns: repeat(5, 1fr); }
.tab.tab-big { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 9px 4px; min-height: 58px; text-align: center; }
.tab-big .tab-ic { display: grid; place-items: center; line-height: 0; }
.tab-big .tab-l { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.tab .count.late, .tab:not(.active) .count.late { background: var(--danger); color: #fff; }
.hj-top { display: grid; gap: 10px; }
.hj-hi { font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: -6px; }
.hj-count { font-size: 20px; letter-spacing: -.01em; line-height: 1.25; }
.hj-count b { font-weight: 800; }
.hj-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.hj-pills:empty { display: none; }
.hj-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.hj-pill i, .hj-legend i, .hj-h i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.hj-pill.late { background: var(--danger-bg); color: var(--danger); }
.hj-pill.today { background: var(--pending-bg); color: var(--pending-text); }
.hj-pill.ok { background: var(--ok-bg); color: var(--ok); }
.late > i { background: var(--danger); }
.today > i { background: var(--amber, #f59e0b); }
.ok > i { background: var(--ok); }
.wait > i { background: var(--text-muted); }
.hj-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: 12px; color: var(--text-muted); }
.hj-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hj-sec { margin: 0 0 14px; }
.hj-h { display: flex; align-items: center; gap: 8px; margin: 18px 2px 8px; font-size: 15px; font-weight: 800; color: var(--text); }
.hj-h > span { padding: 1px 8px; border-radius: 999px; background: var(--gray-light); color: var(--text-muted); font-size: 12px; font-weight: 700; }
.hj-h.late { color: var(--danger); }
button.hj-toggle { width: 100%; border: none; background: none; padding: 0; font-family: inherit; cursor: pointer; text-align: left; }
.hj-toggle small { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--navy); }
.hj-hsub { margin: -4px 2px 8px; font-size: 12.5px; color: var(--text-muted); }
.hj-card { margin-bottom: 8px; border-radius: 14px; background: var(--card-bg); border: 1px solid var(--border); border-left: 6px solid var(--border); overflow: hidden; animation: rise .3s var(--ease) both; }
.hj-card.lvl-late { border-left-color: var(--danger); }
.hj-card.lvl-today { border-left-color: var(--amber, #f59e0b); }
.hj-card.lvl-ok { border-left-color: var(--ok); }
.hj-card.lvl-wait { opacity: .8; }
.hj-main { display: flex; align-items: center; gap: 12px; padding: 12px 12px 10px; color: inherit; text-decoration: none; }
a.hj-main:hover { background: var(--hover); }
.hj-ic { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--gray-light); }
.hj-ic .ic { width: 22px; height: 22px; color: var(--navy-dark); }
.lvl-late .hj-ic { background: var(--danger-bg); }
.lvl-late .hj-ic .ic { color: var(--danger); }
.lvl-today .hj-ic { background: var(--pending-bg); }
.lvl-today .hj-ic .ic { color: var(--pending-text); }
.lvl-ok .hj-ic { background: var(--ok-bg); }
.lvl-ok .hj-ic .ic { color: var(--ok); }
.hj-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.hj-txt b { font-size: 16px; line-height: 1.3; }
.hj-who { font-size: 13.5px; font-weight: 600; color: var(--text); opacity: .85; }
.hj-sub { font-size: 12.5px; color: var(--text-muted); }
.hj-go { flex: none; color: var(--text-muted); line-height: 0; }
.hj-btns { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 12px; }
.btn.btn-task { flex: 1 1 140px; min-height: 48px; font-size: 15px; justify-content: center; }
@media (min-width: 761px) { .btn.btn-task { flex: 0 1 240px; } }
.lvl-wait .hj-main { padding: 9px 12px; }
.lvl-wait .hj-ic { width: 36px; height: 36px; border-radius: 10px; }
.lvl-wait .hj-txt b { font-size: 14px; }
.tag-new { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .02em; vertical-align: 1px; }
/* ficha: etapas feitas / próximas recolhidas numa linha */
.st-fold { list-style: none; }
.fold-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 1px dashed var(--border); border-radius: 12px; background: transparent; font-family: inherit; color: inherit; text-align: left; cursor: pointer; min-height: 52px; }
.fold-btn:hover { background: var(--hover); }
.fold-car { flex: none; color: var(--text-muted); line-height: 0; }
.okbar button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
@media (max-width: 600px) {
  .patio-page .tabs { grid-template-columns: repeat(4, 1fr); }
  .patio-page .tabs.tabs-5 { grid-template-columns: repeat(5, 1fr); }
  .patio-page .tab.tab-big { padding: 8px 2px; min-height: 56px; }
  .patio-page .tab-big .tab-l { font-size: 11.5px; }
  .hj-count { font-size: 18px; }
  .hj-legend { font-size: 11.5px; }
}

/* ---- Equipe: uso da planta ---- */
.usage-row { cursor: pointer; }
.usage-row:focus-visible td { background: var(--hover); outline: none; }
.usage-caret { display: inline-block; margin-right: 6px; color: var(--text-muted); transition: transform .2s var(--ease); }
.usage-row.open .usage-caret { transform: rotate(90deg); }
.usage-flag { display: block; margin-top: 3px; color: var(--amber); font-weight: 600; }
.usage-detail td { white-space: normal; background: var(--hover); padding: 12px 14px 14px; }
.usage-detail:hover td { background: var(--hover); }
.usage-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; animation: rise .25s var(--ease) both; }
.usage-cols h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.usage-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.usage-cols li { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
.usage-cols li b { display: block; font-size: 13px; }
.usage-cols li span { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.usage-cols li a { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--navy); }
.usage-cols p { margin: 0; font-size: 12.5px; }
@media (max-width: 900px) {
  .usage-cols { grid-template-columns: 1fr; }
  .usage-detail td { text-align: left; padding: 10px 0; }
  .stats-table .usage-flag { display: block; margin-left: 0; }
}

/* ---- Pós-venda: pedido cancelado ---- */
.review-status.canceled { background: rgba(148, 163, 184, 0.12); color: var(--mut); }
.order-card.is-canceled { opacity: .72; }
.order-card.is-canceled .doc-main b { text-decoration: line-through; text-decoration-color: rgba(107,114,128,.6); }
.review-toggle.danger-link { color: var(--danger); }

/* ================================================================
   Tema único escuro desde 20/10/2026 (igual à página de vendas): o
   botão de tema do menu some (o antigo modo escuro virou o padrão).
   ================================================================ */
.theme-toggle, #themeToggle { display: none !important; }

/* nº de contrato repetido: o nome do cliente é o que identifica */
.dup-name { font-size: 17px; letter-spacing: -.01em; color: var(--navy-dark); }
.dup-warn { display: block; margin-top: 4px; padding: 5px 10px; border-radius: 8px; background: var(--pending-bg); color: var(--pending-text); font-size: 12px; font-weight: 700; }
.ficha-title .dup-warn { display: inline-block; margin: 2px 0 6px; }
.doc-main .dup-warn { color: var(--pending-text); font-size: 12px; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; }

/* ---- Pátio no celular: tudo mais compacto e fácil de tocar ---- */
@media (max-width: 600px) {
  .patio-page .wrap { padding: 0 12px 60px; }
  .patio-page header.top { margin-bottom: 12px; padding: 10px 0; }
  .patio-page header.top .sub { display: none; }
  .patio-page .panel { padding: 14px; margin-bottom: 12px; border-radius: 14px; }
  /* resumo: 4 números pequenos em 2×2 */
  .patio-page .kpis { gap: 8px; margin: 6px 0 10px; }
  .patio-page .kpi { padding: 9px 11px; border-radius: 12px; }
  .patio-page .kpi span { font-size: 11.5px; }
  .patio-page .kpi b { font-size: 18px; margin: 2px 0 0; }
  .patio-page .kpi small { font-size: 11px; line-height: 1.3; }
  .patio-page .access-head h2 { font-size: 15px; }
  .patio-page .access-count { font-size: 11.5px; }
  /* abas numa linha só, do tamanho da tela */
  .patio-page .tabs { display: grid; width: 100%; gap: 4px; border-radius: 14px; margin-bottom: 12px; }
  .patio-page .tab { text-align: center; border-radius: 10px; }
  /* briefing: Hoje / Semana / Mês lado a lado, imprimir ao lado */
  .patio-page .brief-head > .sale-actions { width: 100%; flex-wrap: nowrap; gap: 8px; }
  .patio-page .brief-seg { min-width: 0; flex: 1; flex-wrap: nowrap; }
  .patio-page .brief-seg button { flex: 1 1 0; padding: 9px 4px; }
  .patio-page .brief-head .btn-sm { flex: none; padding: 9px 10px; }
  /* itens: título e data na mesma linha, cliente embaixo sem cortar */
  .patio-page .upcoming-row { grid-template-columns: 10px 1fr auto; gap: 2px 10px; padding: 9px 8px; align-items: start; }
  .patio-page .upcoming-row .dot { margin-top: 5px; }
  .patio-page .upcoming-row .u-what { grid-column: 2; line-height: 1.3; }
  .patio-page .upcoming-row .u-when { grid-column: 3; grid-row: 1; font-size: 12px; text-align: right; }
  .patio-page .upcoming-row .u-who { grid-column: 2 / -1; white-space: normal; overflow: visible; font-size: 12.5px; line-height: 1.35; }
  .patio-page .brief-sec { padding: 8px 0 4px; }
  /* cartões de pedido e containers */
  .patio-page .order-card { padding: 12px; }
  .patio-page .stepper li { font-size: 9.5px; }
  .patio-page .unit-row { padding: 10px 6px; margin: 0 -6px; gap: 2px 10px; grid-template-columns: 36px 1fr; }
  .patio-page .u-ic { width: 36px; height: 36px; font-size: 17px; }
  .patio-page .order-actions .sale-actions .btn { flex: 1 1 auto; }
  .patio-page .ficha-title h2 { font-size: 18px; }
  .patio-page .ficha-head .sale-actions { width: 100%; }
  .patio-page .ficha-head .sale-actions .btn { flex: 1; }
  .patio-page .st-row { padding: 8px 10px; gap: 10px; }
  .patio-page .st .items { padding: 0 10px 6px; }
  .patio-page .st-actions { padding: 4px 10px; }
  .patio-page .compras-table td, .patio-page .compras-table th { padding: 8px 6px; }
  /* no celular a coluna do tipo some (12 m / 6 m já dizem a quantidade) */
  .patio-page .compras-clientes th:nth-child(2), .patio-page .compras-clientes td:nth-child(2) { display: none; }
  .patio-page .compras-clientes td:first-child { min-width: 0; }
}

/* ================================================================
   Menu lateral (13/10/2026) — nav.js. Todas as páginas menos a planta.
   ================================================================ */
:root { --sn-w: 256px; --sn-mini: 76px; }
.side-nav {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sn-w); z-index: 40;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card-bg); border-right: 1px solid var(--border); box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
  transition: width .25s var(--ease), transform .3s var(--ease), box-shadow .3s;
}
body.has-sidenav { padding-left: var(--sn-w); transition: padding-left .25s var(--ease); }
body.has-sidenav header.top .brand .logo { display: none; } /* o logo fica no menu */
body.has-sidenav .wrap { max-width: 1200px; } /* com o menu do lado, o conteúdo usa mais da tela */
.sn-brand { display: flex; align-items: center; gap: 11px; padding: 18px 16px 12px; }
.sn-logo {
  width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0; color: #fff; background: var(--navy-grad);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-btn);
}
.sn-brand-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sn-brand-t b { font-size: 14.5px; font-weight: 800; color: var(--navy-dark); letter-spacing: -.01em; white-space: nowrap; }
.sn-brand-t small { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-close { display: none; }
.sn-groups { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 12px 12px; scrollbar-width: thin; }
.sn-group { margin-top: 10px; }
.sn-gh {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: none; background: none; cursor: pointer; padding: 7px 8px; border-radius: 8px;
  font: inherit; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted);
}
.sn-gh:hover { color: var(--navy-dark); }
.sn-gh:focus-visible { outline: none; box-shadow: var(--ring); }
.sn-gh .ic { transition: transform .25s var(--ease); flex-shrink: 0; }
.sn-group.closed .sn-gh .ic { transform: rotate(-90deg); }
.sn-group.closed .sn-items { display: none; }
.sn-link {
  position: relative; display: flex; align-items: center; gap: 12px; margin: 3px 0; padding: 10px 12px;
  border-radius: 12px; border: 1px solid transparent; color: var(--text); text-decoration: none;
  font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s, border-color .2s;
}
.sn-link .sn-ic { display: flex; color: var(--text-muted); flex-shrink: 0; transition: color .2s; }
.sn-link .sn-t { overflow: hidden; text-overflow: ellipsis; }
.sn-link:hover { background: var(--gray-light); }
.sn-link:hover .sn-ic { color: var(--navy); }
.sn-link:focus-visible { outline: none; box-shadow: var(--ring); }
.sn-link.active { background: var(--navy-light); border-color: rgba(34, 197, 94, 0.22); color: var(--navy-dark); font-weight: 700; }
.sn-link.active .sn-ic { color: var(--navy); }
.sn-link.active::before { content: ''; position: absolute; left: -1px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--navy); }
.sn-link .tool-badge { margin-left: auto; }
.sn-foot { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-top: 1px solid var(--border); }
.sn-clock { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: 12px; background: var(--gray-light); border: 1px solid var(--border); }
.sn-clock b { font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; color: var(--navy-dark); font-variant-numeric: tabular-nums; }
.sn-clock > span { font-size: 11.5px; color: var(--text-muted); }
.sn-clock-x {
  position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 7px; border: none; padding: 0;
  background: transparent; color: var(--text-muted); display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; transition: opacity .2s, background .2s;
}
.sn-clock:hover .sn-clock-x, .sn-clock-x:focus-visible { opacity: 1; }
.sn-clock-x:hover { background: var(--navy-light); color: var(--navy-dark); }
@media (hover: none) { .sn-clock-x { opacity: .7; } }
.sn-online { display: flex; align-items: center; gap: 7px; margin-top: 3px; }
.sn-online i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18); }
.sn-online em { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.sn-online.off i { background: var(--danger); box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18); }
.sn-user { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 4px; }
.sn-user .avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; background: var(--navy-grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px;
}
.sn-user .whoami-id { min-width: 0; font-size: 13px; font-weight: 600; color: var(--text); }
.sn-user .whoami-id > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-btns { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.sn-btn {
  height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--card-bg); color: var(--navy-dark);
  display: flex; align-items: center; justify-content: center; cursor: pointer; font: inherit;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.sn-btn:hover { background: var(--navy-light); border-color: rgba(34, 197, 94, 0.3); }
.sn-btn:active { transform: scale(.95); }
.sn-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.sn-burger, .sn-scrim { display: none; }

/* encolhido: só os ícones (computador) */
@media (min-width: 901px) {
  body.has-sidenav.sn-is-mini { padding-left: var(--sn-mini); }
  body.sn-is-mini .side-nav { width: var(--sn-mini); }
  body.sn-is-mini .sn-brand { justify-content: center; padding: 18px 0 12px; }
  body.sn-is-mini .sn-brand-t, body.sn-is-mini .sn-t, body.sn-is-mini .sn-gh, body.sn-is-mini .sn-clock,
  body.sn-is-mini .sn-user .whoami-id { display: none; }
  body.sn-is-mini .sn-groups { padding: 4px 10px 12px; }
  body.sn-is-mini .sn-group + .sn-group { border-top: 1px solid var(--border); padding-top: 6px; }
  body.sn-is-mini .sn-group.closed .sn-items { display: block; }
  body.sn-is-mini .sn-link { justify-content: center; padding: 11px 0; }
  body.sn-is-mini .sn-link .tool-badge { position: absolute; top: 2px; right: 4px; margin: 0; }
  body.sn-is-mini .sn-foot { padding: 12px 10px; }
  body.sn-is-mini .sn-user { justify-content: center; padding: 0; }
  body.sn-is-mini .sn-btns { grid-auto-flow: row; }
}
/* celular e tablet: o menu vira gaveta */
@media (max-width: 900px) {
  body.has-sidenav { padding-left: 0; }
  .side-nav { width: min(290px, 86vw); transform: translateX(-102%); box-shadow: none; z-index: 60; }
  body.sn-open .side-nav { transform: none; box-shadow: 12px 0 40px rgba(0, 0, 0, 0.25); }
  .sn-scrim {
    display: block; position: fixed; inset: 0; z-index: 59; background: rgba(0, 0, 0, 0.55);
    opacity: 0; pointer-events: none; transition: opacity .25s;
  }
  body.sn-open .sn-scrim { opacity: 1; pointer-events: auto; }
  .sn-close {
    display: flex; margin-left: auto; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
    background: var(--card-bg); color: var(--navy-dark); align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
  }
  .sn-mini { display: none !important; }
  .sn-burger {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0;
    border-radius: 12px; border: 1px solid var(--border); background: var(--card-bg); color: var(--navy-dark); cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  }
}
@media print {
  .side-nav, .sn-scrim, .sn-burger { display: none !important; }
  body.has-sidenav { padding-left: 0 !important; }
}

/* ================================================================
   Recibos (Pós-venda) e Finanças — 16/10/2026
   Vários recibos por pedido, parcelas previstas e o resumo do mês.
   ================================================================ */
.fin-bar { position: relative; display: flex; height: 6px; border-radius: 999px; background: var(--gray-light); overflow: hidden; margin-top: 6px; }
.fin-bar i { display: block; height: 100%; background: var(--ok); transition: width .5s var(--ease); }
.fin-bar i.goods { background: repeating-linear-gradient(135deg, #fbbf24 0 4px, rgba(251, 191, 36, .45) 4px 8px); }
.fin-bar.big { height: 8px; margin-top: 10px; }
.pays-box .fin-bar { background: var(--card-bg); }

/* formulário de recibo (cartão do pedido e Finanças) */
.rc-form, .plan-edit { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--card-bg); animation: rise .3s var(--ease) both; }
.entry-box .rc-form { margin-top: 10px; }
.rc-title { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--navy-dark); margin-bottom: 8px; }
.rc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 10px; align-items: end; }
.rc-grid .rc-file { grid-column: 1 / -1; justify-self: start; max-width: 100%; }
.rc-grid .rc-file span { display: inline-flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70vw; }
.rc-form > .rc-file { display: inline-flex; max-width: 100%; margin-bottom: 10px; }
.rc-form > .rc-file span { display: inline-flex; align-items: center; gap: 6px; }
.rc-list { display: grid; gap: 10px; }
.rc-list .rc-grid + .rc-grid { padding-top: 10px; border-top: 1px dashed var(--border); }
.rc-fname { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--navy-dark); }
.rc-fname[hidden] { display: none; }
.rc-fname > span { display: inline-flex; align-items: center; gap: 6px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-fname .rc-x { width: 30px; height: 30px; flex: none; color: var(--text-muted); cursor: pointer; font-size: 16px; line-height: 1; }
.rc-f { display: block; margin: 0; font-size: 11.5px; font-weight: 600; color: var(--text-muted); min-width: 0; }
.rc-f > span { display: block; margin-bottom: 4px; }
.rc-f input, .rc-f select { margin: 0; padding: 7px 9px; font-size: 13px; }
.rc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
@media (max-width: 700px) { .rc-grid { grid-template-columns: 1fr 1fr; } .rc-grid .rc-wide { grid-column: 1 / -1; } }

/* recibos escolhidos no cadastro do pedido */
.rc-rows { margin-top: 10px; display: grid; gap: 8px; }
.rc-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 150px 140px 130px 34px; gap: 8px; align-items: end; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--gray-light); animation: rise .3s var(--ease) both; }
.rc-name { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--navy-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; align-self: center; }
.rc-x { border: 1px solid var(--border); border-radius: 9px; height: 34px; background: var(--card-bg); }
.rc-sum { font-size: 12.5px; font-weight: 600; color: var(--text-muted); padding: 2px 2px 0; }
.rc-sum.ok { color: var(--ok); }
.rc-sum.soon { color: var(--pending-text); }
@media (max-width: 700px) {
  .rc-row { grid-template-columns: 1fr 1fr; }
  .rc-name { grid-column: 1 / -1; }
  .rc-x { grid-column: 2; justify-self: end; width: 34px; }
}

/* "Recibos e pagamentos" no cartão do pedido */
.order-pays { margin-top: 2px; }
.pays-box { margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: var(--gray-light); animation: rise .3s var(--ease) both; display: grid; gap: 10px; }
.pays-box > .btn { justify-self: start; }
.pays-note { margin: 0; font-size: 12.5px; color: var(--text-muted); }
.pe-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px; }
.pe-top span { font-variant-numeric: tabular-nums; font-weight: 600; }
.pe-top em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-left: auto; }
.pe-top em.ok { color: var(--ok); }
.pe-top em.soon { color: var(--pending-text); }
.pays-goods { display: grid; gap: 6px; }
.pg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; border-radius: 10px; background: var(--card-bg); border: 1px solid var(--border); }
.pg-ic { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--pending-bg); color: var(--pending-text); flex-shrink: 0; }
.pg-t { flex: 1 1 200px; min-width: 0; }
.pg-t b { display: block; font-size: 13px; }
.pg-t small { display: block; font-size: 11.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-row .pay-field input { width: auto; margin: 0; padding: 6px 9px; font-size: 12.5px; }
.pays-list { display: grid; gap: 4px; }
.pl-row { display: grid; grid-template-columns: 52px 120px 1fr auto; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: var(--card-bg); border: 1px solid var(--border); font-size: 12.5px; }
.pl-d { font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.pl-v { font-weight: 700; font-variant-numeric: tabular-nums; }
.pl-r { color: var(--text-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-a { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.pl-a:empty { display: none; }
.pl-a .fp-x:first-child { border-left: none; }
.pl-edit { display: grid; grid-template-columns: 150px 140px 130px minmax(0, 1fr); gap: 8px; align-items: end; padding: 10px; border-radius: 10px; background: var(--card-bg); border: 1px solid var(--navy); }
.pl-edit .rc-actions { grid-column: 1 / -1; margin-top: 2px; }
@media (max-width: 560px) {
  .pl-row { grid-template-columns: 46px 1fr auto; }
  .pl-r { grid-column: 1 / -1; grid-row: 2; white-space: normal; }
  .pl-edit { grid-template-columns: 1fr 1fr; }
}

/* ---- Página Finanças ---- */
.fin-head { align-items: center; flex-wrap: wrap; }
.month-pick { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--border); border-radius: 12px; background: var(--gray-light); }
.month-pick b { min-width: 150px; text-align: center; font-size: 13.5px; color: var(--navy-dark); }
.mp-btn { width: 32px; height: 32px; border: none; border-radius: 9px; background: transparent; color: var(--navy-dark); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.mp-btn:hover:not(:disabled) { background: var(--card-bg); }
.mp-btn:disabled { opacity: .35; cursor: default; }
/* Finanças: período (28/10/2026) */
.period-pick { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.period-pick select { width: auto; padding: 9px 12px; border-radius: 12px; }
.period-prod { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); cursor: pointer; white-space: nowrap; }
.period-prod input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent, #22c55e); }
@media (max-width: 700px) { .period-pick { margin-left: 0; width: 100%; } .period-pick select { flex: 1; } }
.kpis.kpis-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .kpis.kpis-3 { grid-template-columns: 1fr 1fr; } .kpis.kpis-3 > :first-child { grid-column: 1 / -1; } }
.fin-split { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 800px) { .fin-split { grid-template-columns: 1fr; gap: 14px; } }
.fin-chart { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; height: 150px; }
.fc-col { display: grid; grid-template-rows: 16px 1fr 18px; gap: 4px; padding: 0; border: none; background: none; cursor: pointer; font-family: inherit; min-width: 0; }
.fc-v { font-size: 10px; font-weight: 700; color: var(--text-muted); text-align: center; white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; }
.fc-bar { display: flex; align-items: flex-end; height: 100%; border-radius: 8px; background: var(--gray-light); overflow: hidden; }
.fc-bar i { display: block; width: 100%; background: linear-gradient(180deg, rgba(34, 197, 94, .55), rgba(22, 163, 74, .3)); border-radius: 8px 8px 0 0; transition: height .5s var(--ease); }
.fc-m { font-size: 11px; font-weight: 600; color: var(--text-muted); text-align: center; text-transform: capitalize; }
.fc-col.on .fc-bar i { background: var(--navy-grad); }
.fc-col.on .fc-m, .fc-col.on .fc-v { color: var(--navy-dark); }
.fc-col:hover .fc-bar { box-shadow: inset 0 0 0 1px var(--border); }
.fc-col:focus-visible { outline: none; }
.fc-col:focus-visible .fc-bar { box-shadow: var(--ring); }
.fin-upcoming .upcoming-row { grid-template-columns: 10px minmax(0, 1.25fr) minmax(0, 1fr) auto; width: 100%; border: none; background: none; font-family: inherit; color: inherit; text-align: left; cursor: pointer; margin: 0; }
.fin-empty { font-size: 13px; margin: 6px 0; }
@media (max-width: 640px) { .fin-upcoming .upcoming-row { grid-template-columns: 10px 1fr; } }
.fin-methods { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.fin-methods:empty { display: none; }
.fin-days { display: grid; }
.fd-day { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin: 12px 0 4px; }
.fd-day:first-child { margin-top: 0; }
.fd-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 34px; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; transition: background .2s; }
.fd-row:hover { background: var(--hover); }
.fd-ic { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--ok-bg); color: var(--ok); }
.fd-t { border: none; background: none; padding: 0; text-align: left; font-family: inherit; color: inherit; cursor: pointer; min-width: 0; }
.fd-t b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-t small { display: block; font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-t:hover b { color: var(--navy); }
.fd-v { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ok); white-space: nowrap; }
.fd-file.fp-x { border: 1px solid var(--border); border-radius: 999px; height: 30px; }
@media (max-width: 560px) { .fd-row { grid-template-columns: 32px minmax(0, 1fr) auto; } .fd-file { display: none; } }

.fin-card { padding-bottom: 14px; }
.fin-top { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; border: none; background: none; text-align: left; font-family: inherit; color: inherit; cursor: pointer; }
.fin-amt { text-align: right; flex-shrink: 0; }
.fin-amt b { display: block; font-size: 15px; font-weight: 800; color: var(--navy-dark); font-variant-numeric: tabular-nums; }
.fin-amt span { display: block; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.fin-chev { color: var(--text-muted); display: flex; flex-shrink: 0; }
.fin-sub { margin-top: 6px; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.fin-detail-in { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); display: grid; gap: 8px; animation: rise .3s var(--ease) both; }
.fin-detail-in > .upcoming-title { margin-top: 6px; }
.fin-plan { display: grid; gap: 4px; }
.fp-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) minmax(130px, auto) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--gray-light); font-size: 12.5px; }
.fp-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line2); }
.fp-row.pago .fp-dot { background: var(--ok); border-color: var(--ok); }
.fp-row.parcial .fp-dot { background: linear-gradient(90deg, var(--ok) 50%, transparent 50%); border-color: var(--ok); }
.fp-row.late .fp-dot { background: var(--danger); border-color: var(--danger); box-shadow: 0 0 0 3px rgba(248, 113, 113, .15); }
.fp-l b { display: block; font-size: 13px; }
.fp-l small, .fp-v small { display: block; font-size: 11.5px; color: var(--text-muted); }
.fp-v { text-align: right; font-variant-numeric: tabular-nums; }
.fp-s { justify-self: end; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--card-bg); color: var(--text-muted); white-space: nowrap; }
.fp-row.pago .fp-s { background: var(--ok-bg); color: var(--ok); }
.fp-row.parcial .fp-s { background: var(--pending-bg); color: var(--pending-text); }
.fp-row.late .fp-s { background: var(--danger-bg); color: var(--danger); }
@media (max-width: 560px) {
  .fp-row { grid-template-columns: 12px minmax(0, 1fr) auto; }
  .fp-s { grid-column: 2 / -1; justify-self: start; }
  .fin-top .doc-main span { white-space: normal; }
}
.pe-rows { display: grid; gap: 8px; }
.pe-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 140px 34px; gap: 8px; align-items: end; }
.pe-x { height: 34px; border: 1px solid var(--border); border-radius: 9px; background: var(--card-bg); }
span.pe-x { border: none; background: none; }
.pe-ph { display: flex; align-items: center; height: 34px; font-size: 12px; font-weight: 500; }
.pe-sum { margin: 8px 0 0; font-size: 12.5px; font-weight: 600; }
.pe-sum.ok { color: var(--ok); }
.pe-sum.warn { color: var(--pending-text); }
@media (max-width: 560px) {
  .pe-row { grid-template-columns: 1fr 1fr; padding-bottom: 8px; border-bottom: 1px dashed var(--border); }
  .pe-row .rc-wide { grid-column: 1 / -1; }
  .pe-x { grid-column: 2; justify-self: end; width: 34px; }
}

/* Finanças · gastos (16/10/2026): 5 números no topo, barras recebido × gasto,
   lista de gastos do mês e resultado do pedido. Os 5 números usam o mesmo grid do
   Pós-venda no celular; no computador 3 em cima e 2 embaixo (o #kpis do Pós-venda atropelava). */
@media (min-width: 701px) {
  /* 3 em cima e 2 embaixo, preenchendo a largura toda (28/10/2026, a pedido) */
  #kpis.kpis.kpis-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  #kpis.kpis.kpis-5 > * { grid-column: span 2; }
  #kpis.kpis.kpis-5 > :nth-child(n+4) { grid-column: span 3; }
}
.kpi.kpi-out::before { background: linear-gradient(180deg, #a7afbb, #7d8693); }
.fc-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; min-height: 0; }
.fc-bar.out i { background: linear-gradient(180deg, #5b6472, #454d59); }
.fc-col.on .fc-bar.out i { background: linear-gradient(180deg, #a7afbb, #7d8693); }
.fc-legend { display: flex; gap: 14px; margin-top: 8px; font-size: 11.5px; color: var(--text-muted); }
.fc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fc-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--navy-grad); }
.fc-legend i.out { background: #7d8693; }
#expensesPanel .access-head { align-items: center; flex-wrap: wrap; }
#expensesPanel .access-head h2 { margin-right: auto; }
#expSlot .rc-form { margin: 10px 0 12px; }
.ex-form .rc-grid .rc-wide { grid-column: span 2; }
.ex-form .rc-grid .rc-file { grid-column: 1 / -1; }
@media (max-width: 700px) { .ex-form .rc-grid .rc-wide { grid-column: 1 / -1; } }
.ex-row { grid-template-columns: 32px minmax(0, 1fr) auto auto; }
.ex-ic { background: var(--gray-light); color: var(--text-muted); }
.ex-t button { border: none; background: none; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; max-width: 100%; display: block; }
.ex-t button:hover b { color: var(--navy); }
.fd-v.ex-v { color: var(--navy-dark); }
.ex-a { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.ex-a .fp-x:first-child { border-left: none; }
.ex-list .ex-row { margin: 0; background: var(--card-bg); border: 1px solid var(--border); padding: 7px 10px; }
.ex-list { gap: 4px; }
.ex-list + .review-actions { margin-top: 4px; }
.ex-list .rc-form { margin: 0; }
.ex-result { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ex-result span { padding: 8px 10px; border-radius: 10px; background: var(--gray-light); min-width: 0; }
.ex-result small { display: block; font-size: 11px; color: var(--text-muted); }
.ex-result b { display: block; font-size: 14px; font-weight: 800; color: var(--navy-dark); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-result .pos b { color: var(--ok); }
.ex-result .neg b { color: var(--danger); }
@media (max-width: 700px) { .ex-result { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .ex-row { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .ex-a { grid-column: 2 / -1; justify-self: start; }
  .ex-t small, .ex-t b { white-space: normal; }
  .ex-list .ex-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ex-list .ex-ic { display: none; }
  .ex-list .ex-a { grid-column: 1 / -1; }
}

/* Página Gastos (16/10/2026): gasto por tipo com barra, pedidos com lucro previsto */
.gx-cats { display: grid; gap: 4px; }
.gx-cat { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; background: none; font-family: inherit; color: inherit; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.gx-cat:hover { background: var(--gray-light); }
.gx-cat.on { border-color: var(--navy); background: var(--gray-light); }
.gx-cat:focus-visible { outline: none; box-shadow: var(--ring); }
.gx-ic { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--gray-light); color: var(--text-muted); }
.gx-l { min-width: 0; }
.gx-l b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-bar { display: block; height: 6px; margin-top: 6px; border-radius: 99px; background: var(--gray-light); overflow: hidden; }
.gx-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #7d8693, #a7afbb); }
.gx-v { text-align: right; font-variant-numeric: tabular-nums; }
.gx-v b { display: block; font-size: 13.5px; font-weight: 800; color: var(--navy-dark); white-space: nowrap; }
.gx-v small { display: block; font-size: 11.5px; color: var(--text-muted); }
.gx-filters { grid-template-columns: 240px minmax(0, 1fr); }
@media (max-width: 560px) { .gx-filters { grid-template-columns: 1fr; } }
.gx-obar i { background: linear-gradient(90deg, #7d8693, #a7afbb); }
.gx-pos { color: var(--ok); }
.gx-neg { color: var(--danger); }

/* Pós-venda: vendedor reconhecido no contrato (19/10/2026) */
.seller-hint { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 12px; font-weight: 600; color: var(--ok); line-height: 1.3; }
.seller-hint.warn { color: var(--amber); }

/* Foto do perfil + coroa do 1º em vendas do mês (19/10/2026, nav.js / coroa.js) */
.sn-user button.avatar { border: 0; padding: 0; cursor: pointer; position: relative; overflow: visible; font: inherit; font-weight: 700; font-size: 12.5px; }
.sn-user button.avatar:focus-visible { outline: none; box-shadow: var(--ring); }
.sn-user .avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.sn-user .avatar.crowned { box-shadow: 0 0 0 2px #F5B301; margin-top: 8px; }
.sn-user .av-crown { position: absolute; left: 50%; top: -14px; width: 22px; height: 15px; transform: translateX(-50%) rotate(-8deg); filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); pointer-events: none; }
.sn-user .av-one { position: absolute; left: -5px; bottom: -4px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px; background: #F5B301; color: #3a2a00; border: 2px solid var(--card-bg); font-size: 10px; font-weight: 800; line-height: 12px; text-align: center; pointer-events: none; }

/* Campeão de vendas do mês (Painel, premio.js) */
.pz-panel .access-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pz-stage { display: flex; align-items: center; justify-content: center; gap: 40px; padding: 18px 8px 8px; flex-wrap: wrap; }
.pz-leaders { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.pz-leader { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pz-face { position: relative; width: 120px; height: 120px; border-radius: 50%; background: var(--navy-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 800; box-shadow: 0 0 0 4px #F5B301, 0 10px 24px rgba(201, 138, 0, .25); margin-top: 26px; }
.pz-face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pz-crown { position: absolute; left: 50%; top: -40px; width: 58px; height: 39px; transform: translateX(-50%) rotate(-8deg); filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.pz-one { position: absolute; left: -4px; bottom: 2px; min-width: 34px; height: 34px; border-radius: 17px; background: #F5B301; color: #3a2a00; border: 3px solid var(--card-bg); font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pz-name { font-size: 17px; color: var(--text); text-align: center; max-width: 180px; }
.pz-empty { max-width: 220px; text-align: center; color: var(--text-muted); font-size: 14px; }
.pz-prize { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; max-width: 260px; }
.pz-prize small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-top: 6px; }
.pz-prize b { font-size: 17px; color: var(--navy-dark); }
.pz-prize-img { width: 200px; height: 150px; border-radius: 16px; border: 1px solid var(--border); background: var(--navy-light); color: var(--navy-dark); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pz-prize-img img { width: 100%; height: 100%; object-fit: cover; }
.pz-rules { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: var(--navy-light); font-size: 13.5px; color: var(--text); }
.pz-rules ul { margin: 6px 0 0; padding-left: 18px; }
.pz-rules li + li { margin-top: 3px; }
.pz-form { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.pz-photo-pick { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.pz-photo-pick.dragover .pz-prize-img { outline: 2px dashed var(--navy); }
.pz-fields { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 10px; }
.pz-fields input, .pz-fields textarea { width: 100%; box-sizing: border-box; }
.pz-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 560px) { .pz-stage { gap: 22px; } .pz-face { width: 104px; height: 104px; font-size: 38px; } .pz-prize-img { width: 170px; height: 128px; } }

/* Foto de perfil ao lado dos nomes (fotos.js) */
.face { display: inline-flex !important; margin: 0 2px 0 0 !important; align-items: center; justify-content: center; vertical-align: middle; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--navy-light); color: var(--navy-dark); font-size: 10px; font-weight: 700; font-style: normal; line-height: 1; }
.face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.access-avatar .face { width: 100% !important; height: 100% !important; font-size: 13px !important; background: none; }
/* estatísticas do campeão (só contagens) */
.pz-stats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 320px; }
.pz-stats span { display: flex; flex-direction: column; align-items: center; min-width: 84px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--card-bg); font-size: 11.5px; color: var(--text-muted); line-height: 1.25; text-align: center; }
.pz-stats b { font-size: 20px; color: var(--navy-dark); }

/* Comissões (20/10/2026): Meus resultados + página Comissões (comissao.js) */
.view-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.view-pick .view-lbl { font-weight: 700; color: var(--navy-dark); font-size: 14px; }
.view-pick .access-sub { flex-basis: 100%; margin: 0; }
.pct-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; margin: 4px 0 12px; border-radius: 12px; background: var(--navy-light); }
.pct-general { font-weight: 700; color: var(--navy-dark); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.pct-hint { font-size: 12.5px; flex-basis: 100%; }
.pct-field { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.pct-field input { width: 72px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--input-bg); font: inherit; text-align: right; }
.cm-bar { height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; margin-top: 6px; }
.cm-bar i { display: block; height: 100%; background: var(--ok); border-radius: 3px; }
.cm-row .pay-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cm-empty { margin: 8px 0 0; font-size: 13px; }
.cm-note { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--text); }
.cm-note small { font-weight: 400; color: var(--text-muted); }
.cm-note textarea, .cm-fixform textarea, .cm-answerform textarea { width: 100%; box-sizing: border-box; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: 13px; background: var(--input-bg); resize: vertical; }
.cm-fixes { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.cm-fix { padding: 8px 12px; border-radius: 10px; background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .25); font-size: 13px; }
.cm-fix.done { background: var(--navy-light); border-color: var(--border); }
.cm-fix p { margin: 4px 0 0; }
.cm-answer { color: var(--navy-dark); }
.cm-fixform { margin-top: 10px; }
.cm-fixbtn { margin-top: 8px; }
.cm-pay-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--navy-light); }
.cm-pay-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.cm-pay-form input { padding: 7px 9px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: var(--card-bg); }
.cm-quick { display: flex; gap: 6px; }

/* ================================================================
   Visual da página de vendas (20/10/2026) — mesmos botões, abas,
   etiquetas, campos e cartões da conheca/. Fica no fim pra valer
   por cima das regras antigas.
   ================================================================ */
html { scrollbar-color: #2a3038 transparent; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3 { letter-spacing: -.025em; }
header.top h1 { font-size: 22px; font-weight: 800; letter-spacing: -.025em; }
header.top .sub { color: var(--mut); }
.panel h2 { font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; }
.panel, .card, .kpi, .order-card { border-radius: var(--radius); border-color: var(--line); }
.card:hover, .kpi:hover, .order-card:hover { border-color: var(--line2); }
.mono, .eyebrow { font-family: var(--mono); }

/* etiquetas pequenas: letra mono maiúscula com espaçamento (o .eyebrow da página) */
.eyebrow, .ficha-title .eyebrow, .upcoming-title, .fd-day, .stats-table th, .sn-gh, .sn-brand-t small,
.sn-online em, .usage-cols h4, .pz-prize small, .revision-note b, .rc-f > span {
  font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow, .ficha-title .eyebrow { color: var(--blue); }
/* números, datas e códigos pequenos */
.access-count, .meta, .st-d, .pl-d, .pl-v, .fc-v, .fc-m, .chip-dl, .pe-top span,
.timer .clock, .sn-clock > span, .fp-v small, .stats-table small, .fin-sub, .fin-amt span, .rc-sum {
  font-family: var(--mono); letter-spacing: 0;
}
.access-count, .meta { font-size: 11.5px; }
/* selos de situação: fundo escuro com um tom da cor, texto na cor */
.badge, .doc-type, .review-status, .access-pill, .approve-tag, .fp-s, .tag, .r {
  font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: 0;
  border-radius: 7px; border: 1px solid transparent;
}
.badge.pendente, .review-status.pending, .fp-row.parcial .fp-s { border-color: rgba(251, 191, 36, .3); }
.badge.andamento, .review-status.partial, .doc-type.analise, .access-pill.manager, .tag { border-color: rgba(147, 197, 253, .3); }
.badge.concluido, .review-status.approved, .doc-type.contrato, .access-pill.on, .approve-tag.sim, .fp-row.pago .fp-s { border-color: rgba(52, 211, 153, .3); }
.review-status.returned, .approve-tag.nao, .fp-row.late .fp-s { border-color: rgba(248, 113, 113, .35); }
.doc-type.proposta, .doc-type.apresentacao, .access-pill.admin { color: #93c5fd; border-color: rgba(147, 197, 253, .3); }
.doc-type.tecnico, .access-pill.off, .approve-tag.definir, .review-status.generated, .review-status.canceled { border-color: var(--line2); }
.doc-type.video { border-color: rgba(251, 191, 36, .3); }
.chip-dl { border: 1px solid var(--line2); font-size: 11px; }
.chip-dl.ok { border-color: rgba(52, 211, 153, .3); }
.chip-dl.soon { border-color: rgba(251, 191, 36, .3); }
.chip-dl.late { border-color: rgba(248, 113, 113, .35); }
.tab .count { font-family: var(--mono); font-size: 10.5px; }
.tool-badge { font-family: var(--mono); font-weight: 600; }

/* botões: 48 px / raio 12; pequenos 38 px / raio 10; toque encolhe de leve */
.btn { min-height: 48px; padding: 0 22px; border-radius: 12px; font-size: 15px; font-weight: 600; gap: 8px;
  transition: transform .15s, filter .15s, background .15s, border-color .15s, color .15s; }
.btn:hover { transform: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary::after, .auth-btn::after { display: none; }
.btn-ghost { background: rgba(255, 255, 255, .03); color: var(--tx); border: 1px solid var(--line2); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); border-color: var(--line2); box-shadow: none; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn-danger, .btn-warn { color: var(--red); border-color: rgba(248, 113, 113, .4); }
.btn-danger:hover, .btn-warn:hover { background: var(--danger-bg); border-color: var(--red); }
.tool-link { min-height: 38px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; color: var(--tx);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line2); box-shadow: none;
  transition: transform .15s, background .15s, border-color .15s, color .15s; }
.tool-link:hover { transform: none; background: rgba(255, 255, 255, .07); border-color: var(--line2); box-shadow: none; }
.tool-link:active { transform: scale(.98); }
.tool-link.active { background: rgba(34, 197, 94, .12); color: var(--blue); border-color: rgba(34, 197, 94, .4); }
.tool-link:disabled:hover { background: rgba(255, 255, 255, .03); }
.auth-btn { height: 48px; padding: 0 22px; border-radius: 12px; background: var(--grad); font-size: 15px; font-weight: 600; box-shadow: var(--shadow-btn); }
.auth-btn:hover { transform: none; }
.auth-btn:active { transform: scale(.98); }
.pending-card button { min-height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .03); border-color: var(--line2); color: var(--tx); }
.pending-card button:hover { transform: none; background: rgba(255, 255, 255, .07); box-shadow: none; border-color: var(--line2); }
.logout-link:hover { background: rgba(255, 255, 255, .06); }
.review-toggle, .back-link, .auth-switch a, .pending-card a { color: var(--blue); }

/* abas: trilho escuro, aba escolhida um tom acima com contorno (como na página) */
.tabs { gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.tab { min-height: 38px; padding: 0 14px; border-radius: 9px; font-size: 14px; color: var(--mut); }
.tab:hover { color: var(--tx); background: rgba(255, 255, 255, .04); }
.tab:active { transform: scale(.98); }
.tab.active { background: var(--card2); color: var(--tx); box-shadow: 0 0 0 1px var(--line2); }
.tab.active .count { background: rgba(34, 197, 94, .18); color: var(--blue); }
.tab:not(.active) .count { background: rgba(255, 255, 255, .06); color: var(--mut); }

/* campos: fundo um tom abaixo do cartão, borda visível, foco azul */
input[type="text"], input[type="number"], input[type="date"], input[type="email"], input[type="password"],
input[type="tel"], input[type="search"], input[type="month"], input[type="time"], input[type="datetime-local"], textarea, select {
  background-color: var(--input-bg); color: var(--tx); border-color: var(--line2); border-radius: 10px;
}
input[type="text"]:hover, input[type="number"]:hover, input[type="date"]:hover, textarea:hover, select:hover { border-color: rgba(255, 255, 255, .22); }
input:focus, textarea:focus, select:focus { border-color: var(--blue); background-color: var(--input-bg); box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: #6b7a90; opacity: 1; }
input:disabled, textarea:disabled, select:disabled {
  color: var(--mut); -webkit-text-fill-color: var(--mut); background-color: rgba(255, 255, 255, .02); border-color: var(--line); cursor: not-allowed; opacity: 1;
}
select option, select optgroup { background: var(--card); color: var(--tx); }
input[type="date"]::-webkit-calendar-picker-indicator, input[type="month"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(.8); cursor: pointer; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--blue2); }
/* autopreenchimento do Chrome/Safari: sem fundo amarelo/branco */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus,
textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-text-fill-color: var(--tx); caret-color: var(--tx);
  -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset; box-shadow: 0 0 0 1000px var(--input-bg) inset;
  transition: background-color 9999s ease-out 0s;
}
.file-row { border-color: var(--line2); background: rgba(255, 255, 255, .02); }
.file-row:hover, .file-row.dragover { border-color: var(--blue); background: rgba(34, 197, 94, .08); }

/* listas, tabelas e caixas internas */
.stats-table tfoot td, .stats-table tfoot td:first-child { background: var(--card2); }
.switch span { background: #2a3038; }
.stepper li::before { background: var(--card); }
.stepper li::after { background: #2a3038; }
.fc-col.on .fc-bar i { background: var(--grad); }
.okbar button.ok.on, .okbar button.nok.on, .okbar button.na.on { color: #0e1013; }
.toast { box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7); }

/* cabeçalho e menu lateral */
header.top::before { background: rgba(14, 16, 19, 0.8); border-bottom-color: var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.side-nav { background: var(--bg2); border-right-color: var(--line); box-shadow: none; }
.sn-brand-t b { font-weight: 700; letter-spacing: -.01em; }
.sn-brand-t small { color: var(--mut2); font-size: 9.5px; }
.sn-gh { color: var(--mut2); }
.sn-gh:hover { color: var(--tx); }
.sn-link { color: var(--mut); border-radius: 10px; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.sn-link:hover { background: rgba(255, 255, 255, .04); color: var(--tx); }
.sn-link:active { transform: scale(.98); }
.sn-link:hover .sn-ic { color: var(--blue); }
.sn-link.active { background: var(--card2); border-color: var(--line2); color: var(--tx); font-weight: 600; }
.sn-link.active .sn-ic { color: var(--blue); }
.sn-link.active::before { background: var(--blue); }
.sn-clock { background: var(--card); border-color: var(--line); }
.sn-btn { background: rgba(255, 255, 255, .03); border-color: var(--line2); color: var(--tx); border-radius: 10px; }
.sn-btn:hover { background: rgba(255, 255, 255, .07); border-color: var(--line2); }
.sn-btn:active { transform: scale(.98); }
@media (max-width: 900px) {
  body.sn-open .side-nav { box-shadow: 12px 0 40px rgba(0, 0, 0, .6); }
  .sn-close, .sn-burger { background: rgba(255, 255, 255, .03); border-color: var(--line2); color: var(--tx); box-shadow: none; border-radius: 10px; }
}

/* login e telas de espera */
.auth-logo div b { color: var(--tx); font-weight: 700; }
.auth-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -.025em; }
.auth-card label { color: var(--mut); font-weight: 500; }
.auth-card input { padding: 13px 14px; border-color: var(--line2); border-radius: 12px; font-size: 15px; }
.pending-card h2 { font-weight: 800; letter-spacing: -.02em; }
.spin { border-color: rgba(34, 197, 94, .18); border-top-color: var(--blue); }

@media print {
  :root { color-scheme: light; }
  body { color: #000 !important; }
}
/* logo da plataforma: o mesmo desenho da página de vendas, sem caixa em volta */
.brand .logo, .auth-logo .mark, .sn-logo { background: none; box-shadow: none; }
.doc-type.analise { background: rgba(167, 139, 250, .12); color: #c4b5fd; border-color: rgba(196, 181, 253, .3); }
.st-d, .chip-dl { font-weight: 500; }

/* Marca BoxWise (21/10/2026): ícone "bw" e logo escrito (marca/) */
.bw-mark { width: 100%; height: 100%; border-radius: inherit; display: block; object-fit: cover; }
.sn-logo, .auth-logo .mark, .brand .logo { overflow: hidden; }
.sn-logo { width: 38px; height: 38px; border-radius: 10px; }
.bw-word { display: block; line-height: 0; }
.bw-word img { height: 19px; width: auto; display: block; }
.sn-brand-t .bw-word { margin: 2px 0 5px; }
.auth-logo .bw-word img { height: 22px; }
.auth-logo .bw-word { margin-bottom: 6px; }

/* Plano de 1 pessoa (consultor autônomo, 21/10/2026): o Painel mostra só os
   atalhos e os documentos — campeão de vendas, conferências e
   erros/sugestões são da INCTOP / de equipe */
.solo-start { display: none; }
body.plano-solo .solo-start { display: block; }
body.plano-solo #prizePanel, body.plano-solo #feedbackPanel, body.plano-solo #reviewsPanel { display: none !important; }
.solo-sub { color: var(--text-muted); margin: 4px 0 14px; }
.solo-acts { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 520px) { .solo-acts .btn { flex: 1 1 100%; text-align: center; } }
/* botão dentro dos cartões de aviso (compra, cadastro pronto): texto branco, não cor de link */
.pending-card a.btn-primary, .pending-card a.btn-primary:hover { color: #fff; }
/* menu: item fora do plano (21/10/2026) — aparece com cadeado e explica como libera */
.sn-link.sn-lock { opacity: .55; cursor: help; }
.sn-link.sn-lock:hover { opacity: .8; }
.sn-lk { margin-left: auto; display: inline-flex; color: var(--text-muted); }
.sn-tip { display: flex; gap: 8px; align-items: flex-start; margin: 2px 4px 8px 12px; padding: 9px 11px; border-radius: 10px; border: 1px solid rgba(34, 197, 94, .3); background: rgba(22, 163, 74, .08); font-size: 12px; line-height: 1.45; color: var(--text-muted); }
.sn-tip svg { flex: none; margin-top: 2px; color: var(--blue); }
.sn-tip a { color: var(--blue); font-weight: 600; white-space: nowrap; }
body.sn-is-mini .sn-lk, body.sn-is-mini .sn-tip { display: none; }
/* Meus resultados do consultor autônomo (22/10/2026): lançar o que recebeu */
.cm-recv { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 4px; font-size: 13px; color: var(--text-muted); }
.cm-other { display: inline-flex; gap: 6px; align-items: center; }
.cm-other input { width: 120px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 10px; font: inherit; font-size: 13px; background: var(--input-bg); color: var(--text); }
@media (max-width: 520px) { .cm-recv .btn { flex: 1 1 100%; } .cm-other { flex: 1 1 100%; } .cm-other input { flex: 1; width: auto; } }
/* Uso do plano (22/10/2026, uso.js): clientes do período contra o limite */
.uso-meter { margin: 12px 0 4px; }
.uso-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: var(--text-muted); }
.uso-top b { color: var(--text); }
.uso-top small { font-size: 11.5px; }
.uso-bar { height: 8px; margin-top: 6px; border-radius: 99px; background: var(--card2); overflow: hidden; }
.uso-bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); transition: width .4s var(--ease); }
.uso-meter.quase .uso-bar i { background: var(--amber); }
.uso-meter.cheio .uso-bar i { background: var(--red); }
.uso-msg { margin: 8px 0 0; font-size: 12.5px; color: var(--text-muted); }
.uso-msg a { color: var(--blue); font-weight: 600; }
.uso-lista { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.uso-lista span { font-size: 12px; padding: 4px 9px; border-radius: 99px; border: 1px solid var(--border); background: var(--card2); }
.auth-back { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
/* Plataforma → Uso (22/10/2026) */
.us-top { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 12px; }
.us-kpi { font-size: 13px; color: var(--text-muted); } .us-kpi b { font-size: 18px; color: var(--text); margin-right: 4px; }
.us-top select { width: auto; margin: 0; }
.us-chk { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; }
.us-tab-wrap { overflow-x: auto; }
.us-tab { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.us-tab th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); padding: 8px; border-bottom: 1px solid var(--border); }
.us-tab td { padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.us-tab td small { display: block; color: var(--text-muted); font-size: 11.5px; }
.us-on { color: var(--green); font-weight: 600; } .us-off { color: var(--text-muted); }
.us-vazio { text-align: center; color: var(--text-muted); padding: 18px !important; }
/* ficha da pessoa e gráficos (17/11/2026) — uma cor só por gráfico, texto nas cores de texto */
.us-linha { cursor: pointer; }
.us-linha:hover td, .us-linha:focus-visible td { background: var(--hover); outline: none; }
.us-h { margin: 22px 0 8px; font-size: 15px; } .us-h small { font-weight: 400; color: var(--text-muted); font-size: 12.5px; margin-left: 6px; }
.us-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 4px 0 14px; }
.us-kpis > div { background: var(--card2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.us-kpis b { display: block; font-size: 22px; line-height: 1.15; color: var(--text); font-variant-numeric: tabular-nums; }
.us-kpis span { font-size: 12px; color: var(--text-muted); }
.us-graf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.us-card { background: var(--card2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; min-width: 0; margin-bottom: 12px; }
.us-graf .us-card { margin-bottom: 0; }
.us-card-larga { grid-column: 1 / -1; }
.us-card h3 { margin: 0; font-size: 14px; } .us-sub { margin: 2px 0 12px; font-size: 12px; color: var(--text-muted); }
.us-bars { display: grid; gap: 7px; }
.us-bar { display: grid; grid-template-columns: minmax(90px, 38%) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 12.5px; }
.us-bar-k { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.us-bar-t { height: 12px; display: block; }
.us-bar-t i { display: block; height: 100%; background: var(--blue); border-radius: 0 4px 4px 0; }
.us-bar:hover .us-bar-t i { background: var(--blue2); }
.us-bar-v { color: var(--text-muted); font-weight: 600; font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.us-cols { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; align-items: end; height: 120px; border-bottom: 1px solid var(--border); }
.us-col { height: 100%; display: flex; align-items: flex-end; }
.us-col i { display: block; width: 100%; background: var(--blue); border-radius: 3px 3px 0 0; min-height: 0; }
.us-col:hover i { background: var(--blue2); }
.us-col:hover { background: var(--hover); }
.us-cols-eixo { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.us-cols-max { margin: 6px 0 0; font-size: 11.5px; color: var(--text-muted); }
.us-vazio-g { font-size: 13px; color: var(--text-muted); margin: 6px 0; }
.us-pessoa { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; align-items: flex-end; margin-bottom: 10px; }
.us-pessoa h3 { margin: 0; font-size: 18px; } .us-pessoa .us-sub { margin: 2px 0 0; }
.us-hist { list-style: none; margin: 0 0 10px; padding: 0; font-size: 13px; }
.us-hist li { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.us-hist li.us-hd { display: block; padding: 12px 0 4px; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); border-bottom: none; }
.us-hh { color: var(--text-muted); font-variant-numeric: tabular-nums; min-width: 42px; }
@media (max-width: 720px) {
  .us-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .us-graf { grid-template-columns: 1fr; }
  .us-bar { grid-template-columns: minmax(80px, 42%) minmax(0, 1fr) auto; }
}

/* ---- Contratos (24/11/2026): controle dos contratos gerados ---- */
.ct-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 12px; }
.ct-counts { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-count { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text-muted); font: inherit; font-size: 13px; cursor: pointer; }
.ct-count b { font-size: 17px; color: var(--text); }
.ct-count i { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; }
.ct-c-pendente i { background: #fbbf24; }
.ct-c-fechou i { background: #22c55e; }
.ct-c-declinou i { background: #f87171; }
.ct-count.on { border-color: var(--accent, #22c55e); box-shadow: 0 0 0 2px rgba(34,197,94,.2); }
.ct-last { font-size: 13px; color: var(--text-muted); }
.ct-last b { color: var(--text); font-size: 15px; }
.ct-filters { display: block; margin-bottom: 8px; }
.ct-filters input { width: 100%; max-width: 420px; }
.ct-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 12px 12px 10px; margin-bottom: 8px; border: 1px solid var(--border); border-left: 4px solid #94a3b8; border-radius: 12px; background: var(--card-bg); }
.ct-row.ct-s-pendente { border-left-color: #fbbf24; }
.ct-row.ct-s-fechou { border-left-color: #22c55e; }
.ct-row.ct-s-declinou { border-left-color: #f87171; }
.ct-row.ct-gap { border-style: dashed; border-left-style: solid; background: transparent; opacity: .85; }
.ct-no { font-family: var(--mono); font-size: 17px; font-weight: 700; text-align: center; color: var(--text); }
.ct-who { min-width: 0; }
.ct-who b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.ct-who .ct-city { font-weight: 400; color: var(--text-muted); }
.ct-who small { display: block; color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.ct-link { margin-top: 4px; padding: 0; border: 0; background: none; color: var(--accent, #22c55e); font: inherit; font-size: 12px; cursor: pointer; }
.ct-vers { margin: 6px 0 0; padding-left: 18px; font-size: 12px; color: var(--text-muted); }
.ct-vers li { padding: 2px 0; }
.ct-vers a { margin-left: 8px; }
.ct-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ct-sit { display: flex; gap: 6px; }
.ct-btn { padding: 7px 12px; border-radius: 9px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ct-btn:hover:not(:disabled) { color: var(--text); }
.ct-btn:disabled { cursor: default; opacity: .45; }
.ct-btn.on:disabled { opacity: 1; }
.ct-btn.ct-pendente.on { background: rgba(251,191,36,.16); border-color: #fbbf24; color: #fbbf24; }
.ct-btn.ct-fechou.on { background: rgba(34,197,94,.16); border-color: #22c55e; color: #22c55e; }
.ct-btn.ct-declinou.on { background: rgba(248,113,113,.16); border-color: #f87171; color: #f87171; }
.ct-auto { font-size: 11.5px; color: var(--text-muted); }
.ct-acts { display: flex; align-items: center; gap: 14px; font-size: 12.5px; }
.ct-sig { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); cursor: pointer; }
.ct-sig input { width: 16px; height: 16px; margin: 0; accent-color: #22c55e; }
.ct-signed { color: #22c55e; }
.ct-open, .ct-vers a { color: var(--accent, #22c55e); font-weight: 600; text-decoration: none; }
.ct-open:hover, .ct-vers a:hover { text-decoration: underline; }
.ct-note { font-size: 12px; margin-top: 12px; }
@media (max-width: 760px) {
  .ct-row { grid-template-columns: 44px minmax(0, 1fr); gap: 8px 10px; }
  .ct-side { grid-column: 1 / -1; align-items: stretch; }
  .ct-sit .ct-btn { flex: 1; }
  .ct-acts { justify-content: space-between; }
  .ct-auto { text-align: right; }
}

/* Avisos (28/10/2026): cartões no canto de cima, à direita */
.avisos-box { position: fixed; top: 16px; right: 16px; z-index: 65; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.aviso-card { pointer-events: auto; background: var(--card-bg, #161a20); border: 1px solid var(--accent, #22c55e); border-radius: 14px; padding: 14px 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); animation: rise .35s var(--ease) both; }
.aviso-card b { display: block; color: var(--accent, #22c55e); font-size: 14px; margin-bottom: 4px; }
.aviso-card p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text); }
.aviso-acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.aviso-acts a, .aviso-acts button { font: inherit; font-size: 13px; font-weight: 600; border-radius: 9px; padding: 7px 12px; cursor: pointer; text-decoration: none; }
.aviso-acts a { background: var(--accent, #22c55e); color: #06130a; }
.aviso-acts button { background: transparent; border: 1px solid var(--border); color: var(--text); }
@media print { .avisos-box { display: none; } }

/* Voltar ao topo (28/10/2026): acima do botão "Erro ou sugestão" */
.to-top { position: fixed; right: 18px; bottom: 78px; z-index: 55; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--card-bg, #161a20); color: var(--text);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35); cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s, border-color .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--accent, #22c55e); color: var(--accent, #22c55e); }
.to-top.no-fab { bottom: 18px; }
@media (max-width: 640px) { .to-top { right: 13px; bottom: 68px; width: 42px; height: 42px; } .to-top.no-fab { bottom: 12px; } }
@media print { .to-top { display: none; } }

/* ---------- Pátio: vários pátios e o mapa (06/11/2026) ---------- */
.yard-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0 4px; }
.yard-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); color: var(--tx); font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.yard-chip small { color: var(--mut); font-weight: 500; font-family: var(--mono); font-size: 11.5px; }
.yard-chip.on { background: var(--grad); border-color: transparent; color: #fff; }
.yard-chip.on small { color: rgba(255, 255, 255, .85); }
.yard-chip.add { border-style: dashed; color: var(--mut); background: transparent; }
.yard-chip:focus-visible { outline: none; box-shadow: var(--ring); }
.map-empty { text-align: center; padding: 34px 20px; margin-top: 14px; }
.map-empty h2 { margin: 10px 0 6px; font-size: 18px; }
.map-empty p { max-width: 460px; margin: 0 auto 16px; }
.map-empty-ic { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--navy-light); color: var(--blue); }
.map-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; margin-top: 14px; }
.map-side .map-panel { padding: 14px; margin: 0 0 12px; }
.map-panel h3 { margin: 0 0 10px; font-size: 13px; color: var(--mut); font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.map-n { font-family: var(--mono); color: var(--tx); background: var(--card2); border-radius: 6px; padding: 1px 7px; font-size: 12px; }
.map-help { margin: -4px 0 10px; color: var(--mut); font-size: 12.5px; }
.map-item { border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; margin-bottom: 8px; background: var(--bg2); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.map-item .sw { width: 8px; align-self: stretch; min-height: 30px; border-radius: 4px; flex: none; }
.map-item .tx { flex: 1; min-width: 120px; }
.map-item b { font-weight: 600; display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-item small { color: var(--mut); font-size: 12px; }
.map-item-btns { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; padding-left: 18px; }
.map-empty-tx { margin: 2px 0; color: var(--mut2); font-size: 12.5px; }
.map-legend { display: grid; gap: 8px; font-size: 12.5px; color: var(--mut); }
.map-legend span { display: flex; align-items: center; gap: 8px; }
.map-legend i { width: 16px; height: 10px; border-radius: 3px; display: inline-block; }
.map-legend i.late { background: transparent; border: 2px solid var(--red); }
.map-cfg { display: grid; gap: 8px; }
.map-cfg .btn { justify-content: flex-start; }
.map-cfg .map-del { color: var(--red); }
.map-dims { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.map-dims label { display: grid; gap: 4px; font-size: 12px; color: var(--mut); }
.map-dims input { width: 100%; }
.map-canvas { position: relative; }
.mapbox { position: relative; background: #0b0d10; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
#pmap { display: block; width: 100%; height: min(72vh, 660px); touch-action: none; user-select: none; -webkit-user-select: none; cursor: default; }
#pmap .map-u { cursor: grab; }
.map-tools { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.map-loading { font-size: 12px; color: var(--mut); background: rgba(18, 21, 26, .94); border-radius: 8px; padding: 5px 9px; }
.map-scalebar { position: absolute; left: 12px; bottom: 12px; background: rgba(18, 21, 26, .94); border: 1px solid var(--line2); border-radius: 8px; padding: 6px 10px; font-family: var(--mono); font-size: 11.5px; color: var(--mut); pointer-events: none; }
.map-scalebar div { height: 4px; border: 2px solid var(--tx); border-top: 0; margin-top: 4px; }
.map-hint { position: absolute; right: 12px; bottom: 12px; background: rgba(18, 21, 26, .94); border: 1px solid var(--line2); border-radius: 8px; padding: 6px 10px; font-size: 12px; color: var(--mut); pointer-events: none; }
.map-sheet { position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px; width: min(540px, calc(100% - 24px)); background: var(--card); border: 1px solid var(--line2); border-radius: 16px; padding: 14px 16px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .8); }
.map-sheet-hd { display: flex; gap: 10px; align-items: flex-start; }
.map-sheet-hd > div { flex: 1; min-width: 0; }
.map-sheet-hd b { font-size: 15.5px; }
.map-sheet-hd small { display: block; color: var(--mut); margin-top: 2px; font-size: 12.5px; }
.map-x { background: none; border: 0; color: var(--mut); padding: 2px; cursor: pointer; line-height: 0; }
.map-stage { margin: 12px 0; padding: 10px 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.map-stage .row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.map-stage .row span { color: var(--mut); white-space: nowrap; }
.map-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.map-scale-ctl { display: flex; gap: 12px; align-items: center; margin: 12px 0; }
.map-scale-ctl input[type=range] { flex: 1; accent-color: #ec4899; }
.map-scale-ctl label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mut); white-space: nowrap; }
.map-scale-ctl input[type=number] { width: 84px; }
.yard-ask { position: fixed; inset: 0; background: rgba(0, 0, 0, .62); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 60; }
.yard-ask-box { background: var(--card); border: 1px solid var(--line2); border-radius: 18px; padding: 20px; width: min(420px, 100%); box-shadow: var(--shadow); }
.yard-ask-box h2 { margin: 0 0 4px; font-size: 18px; }
.yard-ask-box p { margin: 0 0 16px; color: var(--mut); font-size: 13.5px; }
.yard-ask-opts { display: grid; gap: 10px; }
.yard-ask-opts .btn { justify-content: flex-start; gap: 10px; padding: 14px 16px; font-size: 15px; }
.yard-ask-foot { margin-top: 12px; text-align: right; }
@media (max-width: 860px) {
  .map-grid { grid-template-columns: 1fr; }
  #pmap { height: 62vh; }
  .map-sheet { position: static; transform: none; width: auto; margin: 0; border-radius: 0; border-width: 1px 0 0; box-shadow: none; padding: 14px; }
  .map-scale-ctl { flex-wrap: wrap; }
  .map-hint { display: none; }
  .yard-chip { padding: 7px 13px; font-size: 13px; }
}
.unit-other { margin: 6px 2px 0; font-size: 12.5px; color: var(--mut); }

.map-nofoto { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.map-nofoto .map-empty-ic { width: 42px; height: 42px; border-radius: 12px; flex: none; }
.map-nofoto > div { flex: 1; min-width: 170px; }
.map-nofoto b { display: block; font-size: 14px; }
.map-nofoto small { display: block; color: var(--mut); font-size: 12.5px; margin-top: 2px; }

/* Pátio: cards agrupados por cliente (06/11/2026) */
.hj-group .hj-ghead { padding-bottom: 6px; }
.hj-rows { display: grid; padding: 0 12px 10px 70px; }
.hj-row { border-top: 1px solid var(--border); padding: 8px 0; }
.hj-row:first-child { border-top: 0; }
.hj-rmain { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
a.hj-rmain:hover b { text-decoration: underline; }
.hj-ric { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--gray-light); }
.hj-ric .ic { width: 18px; height: 18px; color: var(--navy-dark); }
.lvl-late .hj-ric { background: var(--danger-bg); } .lvl-late .hj-ric .ic { color: var(--danger); }
.lvl-today .hj-ric { background: var(--pending-bg); } .lvl-today .hj-ric .ic { color: var(--pending-text); }
.lvl-ok .hj-ric { background: var(--ok-bg); } .lvl-ok .hj-ric .ic { color: var(--ok); }
.hj-rtxt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.hj-rtxt b { font-size: 14.5px; line-height: 1.3; }
.hj-rtxt small { font-size: 12.5px; color: var(--text-muted); }
.hj-row .hj-btns { padding: 8px 0 0 40px; }
.map-group { display: block; padding: 10px 12px; }
.map-ghead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.map-ghead b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-ghead small { color: var(--mut); font-size: 12px; white-space: nowrap; }
.map-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
.map-row .sw { width: 6px; align-self: stretch; min-height: 26px; border-radius: 3px; flex: none; }
.map-row .tx { flex: 1; min-width: 120px; }
.map-row .tx b { font-size: 13px; font-weight: 600; }
.map-row .map-item-btns { padding-left: 16px; }
@media (max-width: 860px) {
  .hj-rows { padding-left: 12px; }
}

/* ---------- Pátio: diário de obra (17/11/2026) ---------- */
.patio-page .tabs.tabs-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 600px) { .patio-page .tabs.tabs-6 { grid-template-columns: repeat(3, 1fr); } }
.dia-top { display: grid; gap: 6px; }
.dia-nav { display: flex; align-items: center; gap: 10px; }
.btn.dia-arrow { width: 52px; height: 52px; padding: 0; justify-content: center; flex: none; }
.btn.dia-arrow:disabled { opacity: .3; }
.dia-when { flex: 1; text-align: center; display: grid; gap: 2px; }
.dia-when b { font-size: 22px; letter-spacing: -.01em; }
.dia-when small { color: var(--text-muted); font-size: 13px; }
.dia-salvo { margin: 0; text-align: center; font-size: 12.5px; color: var(--text-muted); }
.dia-salvo.ok { color: var(--ok); }
.dia-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.dia-h .ic { color: var(--text-muted); flex: none; }
.dia-h small { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--text-muted); text-align: right; }
.dia-opts { display: grid; gap: 8px; }
.dia-3 { grid-template-columns: repeat(3, 1fr); }
.dia-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 10px 6px; border: 2px solid var(--border); border-radius: 14px; background: var(--gray-light); color: var(--text); font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-align: center; }
.dia-opt .ic { color: var(--text-muted); flex: none; }
.dia-opt.on { border-color: var(--ok); background: var(--ok-bg); }
.dia-opt.on .ic { color: var(--ok); }
.dia-sm .dia-opt { min-height: 52px; font-size: 14px; }
.dia-q { margin: 14px 0 8px; font-size: 14px; font-weight: 700; }
.dia-step { display: flex; align-items: center; justify-content: center; gap: 18px; }
.btn.dia-stepb { width: 64px; height: 64px; padding: 0; justify-content: center; font-size: 30px; font-weight: 700; border-radius: 16px; }
.btn.dia-stepb:disabled { opacity: .35; }
.dia-num { display: grid; justify-items: center; min-width: 90px; }
.dia-num b { font-size: 40px; line-height: 1; }
.dia-num small { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.dia-andou { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dia-andou li { display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px; background: var(--gray-light); }
.dia-andou b { font-size: 14px; }
.dia-andou span { font-size: 13px; color: var(--text-muted); }
.dia-vazio { margin: 0; font-size: 13.5px; color: var(--text-muted); }
.dia-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.dia-chips .dia-opt { flex-direction: row; justify-content: flex-start; min-height: 54px; font-size: 14px; text-align: left; gap: 10px; padding: 10px 12px; }
@media (min-width: 761px) { .dia-chips { grid-template-columns: repeat(4, 1fr); } }
.dia-obs { width: 100%; min-height: 84px; font-size: 15px; resize: vertical; box-sizing: border-box; }
.dia-fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 761px) { .dia-fotos { grid-template-columns: repeat(6, 1fr); } }
.dia-fotos > .dia-vazio { grid-column: 1 / -1; }
.dia-foto { position: relative; }
.dia-thumb { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--gray-light); cursor: pointer; }
.dia-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dia-fx { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; display: grid; place-items: center; cursor: pointer; line-height: 0; }
.dia-add { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed var(--border); border-radius: 12px; background: transparent; color: var(--text-muted); font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 6px; text-align: center; }
.dia-add:hover, .dia-row:hover { background: var(--hover); }
.dia-rows { display: grid; gap: 6px; }
.dia-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: transparent; color: inherit; font-family: inherit; text-align: left; cursor: pointer; }
.dia-row.on { border-color: var(--ok); background: var(--ok-bg); }
.dia-rd { display: grid; min-width: 52px; }
.dia-rd b { font-size: 14px; }
.dia-rd small { font-size: 12px; color: var(--text-muted); }
.dia-ri { width: 20px; line-height: 0; color: var(--text-muted); flex: none; }
.dia-rt { font-size: 13px; }
.dia-row.falta .dia-rt { color: var(--text-muted); font-style: italic; }
.dia-big { max-width: 100%; max-height: 80vh; display: block; margin: auto; border-radius: 8px; }

/* Recibos: travas (17/11/2026) — recibo repetido (vermelho, não salva) e quem pagou (aviso) */
.rc-note { grid-column: 1 / -1; display: grid; gap: 6px; }
.rc-note[hidden] { display: none; }
.rc-n { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: 13px; line-height: 1.4; }
.rc-n svg { flex: none; margin-top: 2px; }
.rc-n-bad { background: var(--danger-bg); color: var(--danger); font-weight: 600; }
.rc-n-warn { background: var(--pending-bg); color: var(--pending-text); }
.rc-n-ok { background: var(--ok-bg); color: var(--ok); }
.pl-pag { color: var(--pending-text); }

/* Pátio: anotação por cliente no diário (17/11/2026) */
.patio-page .dia-nbusca { width: 100%; margin-bottom: 10px; }
.patio-page .dia-nchips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.patio-page .dia-nchip { min-height: 44px; padding: 8px 14px; flex: 0 1 auto; }
.patio-page .dia-nchip[hidden] { display: none; }
.patio-page .dia-etps { display: grid; gap: 8px; margin-bottom: 12px; }
.patio-page .dia-etp { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; text-align: left;
  border: 1px solid var(--line2); border-radius: 12px; background: var(--card2); color: var(--tx); cursor: pointer; font: inherit; }
.patio-page .dia-etp-ic { flex: none; display: inline-flex; color: var(--mut); }
.patio-page .dia-etp-t { display: grid; gap: 2px; min-width: 0; flex: 1; }
.patio-page .dia-etp-t small { color: var(--mut); font-size: 13px; }
.patio-page .dia-etp .dia-sug { display: none; flex: none; font-style: normal; font-size: 12px; font-weight: 600; color: var(--amber); }
.patio-page .dia-etp.sug { border-style: dashed; border-color: var(--amber); }
.patio-page .dia-etp.sug .dia-sug { display: inline; }
.patio-page .dia-etp.on { border-color: var(--blue); background: var(--navy-light); }
.patio-page .dia-etp.on .dia-etp-ic, .patio-page .dia-etp.on small { color: var(--blue); }
.patio-page .dia-etp.off { cursor: default; opacity: .65; }
.patio-page .dia-nsalvar { width: 100%; justify-content: center; }
.patio-page .dia-notas { display: grid; gap: 8px; margin-top: 14px; }
.patio-page .dia-nota { position: relative; padding: 10px 44px 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); }
.patio-page .dia-nota-t { display: grid; gap: 4px; min-width: 0; }
.patio-page .dia-nota-t p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.patio-page .dia-nota-t small { display: block; color: var(--mut); font-size: 12.5px; line-height: 1.5; }
.patio-page .dia-nota-t small svg { vertical-align: -2px; margin-right: 4px; }
.patio-page .dia-nota .dia-nx { position: absolute; top: 8px; right: 8px; }
@media (max-width: 600px) { .patio-page .dia-etp .dia-sug { display: none !important; } .patio-page .dia-etp.sug .dia-etp-t small::after { content: ' · o texto fala disso'; color: var(--amber); } }

/* Pátio por cliente (17/11/2026): cartão da chegada, caixinha, aba do cliente embaixo do mapa */
button.hj-card { display: block; width: 100%; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
button.hj-card .hj-main { padding: 12px; }
button.hj-card:hover { background: var(--hover); }
.hj-cheg-t { font-size: 12.5px; font-weight: 600; color: var(--green, #22c55e); }
.cheg-box { max-height: calc(100vh - 32px); overflow-y: auto; }
.cheg-sec { display: grid; gap: 8px; margin-bottom: 16px; }
.cheg-sec > b { font-size: 13.5px; }
.cheg-folha { justify-content: flex-start; gap: 10px; min-height: 48px; }
.cheg-vazio { margin: 0 !important; }
.yard-ask-opts .btn.on { border-color: var(--green, #22c55e); color: var(--green, #22c55e); }
.cheg-go { width: 100%; justify-content: center; min-height: 52px; gap: 8px; }
.cheg-hint { margin: 8px 0 0 !important; font-size: 12.5px !important; }
.map-main { display: grid; gap: 14px; min-width: 0; }
.map-legend i.fix { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 1px solid rgba(0, 0, 0, .6); }
.map-cli { border-top: 4px solid var(--cc, var(--line2)); }
.mc-hd { display: flex; align-items: center; gap: 12px; }
.mc-num { flex: none; padding: 6px 10px; border-radius: 10px; font-weight: 800; font-size: 15px; }
.mc-who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mc-who b { font-size: 16px; }
.mc-who small { color: var(--mut); font-size: 12.5px; }
.mc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mc-acts:empty { display: none; }
.mc-sec { margin-top: 16px; }
.mc-sec h4 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; font-size: 13px; color: var(--mut); text-transform: uppercase; letter-spacing: .03em; }
.mc-etapa, .mc-cont { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 12px; background: var(--card2); margin-bottom: 8px; flex-wrap: wrap; }
.mc-etapa.div { border-color: var(--amber); background: rgba(245, 158, 11, .08); }
.mc-etapa.div .mc-ic { color: var(--amber); }
.mc-etapa.off { opacity: .65; }
.mc-ic { flex: none; display: inline-flex; color: var(--mut); }
.mc-t { flex: 1; min-width: 150px; display: grid; gap: 2px; }
.mc-t small { color: var(--mut); font-size: 12.5px; }
.mc-etapa .btn { min-height: 44px; }
.mc-cont.on { border-color: #fff; }
.mc-sw { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.mc-btns { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; padding-left: 42px; }
.mc-btns .btn { min-height: 40px; flex: 1 1 auto; justify-content: center; }
.patio-page .dia-etp.div { border-color: var(--amber); }
.patio-page .dia-etp.div small { color: var(--amber); }
@media (max-width: 600px) { .mc-btns { padding-left: 0; } .mc-etapa .btn { width: 100%; justify-content: center; } }

/* Pátio: planilha do João (24/11/2026) */
.patio-page .tabs.tabs-7 { grid-template-columns: repeat(7, 1fr); }
@media (max-width: 600px) { .patio-page .tabs.tabs-7 { grid-template-columns: repeat(4, 1fr); } }
.setup-cor { grid-column: auto; }
.pl-panel { margin-bottom: 14px; }
.pl-hd h2 { margin: 0 0 4px; font-size: 18px; }
.pl-hd p { margin: 0 0 14px; color: var(--mut); font-size: 13.5px; }
.pl-h3 { margin: 0 0 10px; font-size: 14px; }
.pl-h3 small { color: var(--mut); font-weight: 400; margin-left: 6px; }
.pl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line2); border-radius: 12px; }
.pl-t { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; white-space: nowrap; }
.pl-t th, .pl-t td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.pl-t thead th { position: sticky; top: 0; background: var(--card2); color: var(--mut); font-size: 12px; font-weight: 600; z-index: 1; }
.pl-t tbody tr:last-child > * { border-bottom: 0; }
.pl-t tfoot > tr > * { border-top: 1px solid var(--line2); border-bottom: 0; font-weight: 700; background: var(--bg2); }
.pl-t .pl-fix { position: sticky; left: 0; background: var(--card); z-index: 2; max-width: 180px; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid var(--line); }
.pl-t thead .pl-fix { background: var(--card2); z-index: 3; }
.pl-t tfoot .pl-fix { background: var(--bg2); }
.pl-main tbody th.pl-fix { font-weight: 600; }
.pl-num { text-align: right !important; font-variant-numeric: tabular-nums; }
.pl-res td, .pl-res thead th:not(.pl-fix) { text-align: center; }
.pl-res td, .pl-res th { padding: 4px 8px; }
.pl-res .pl-n { min-height: 32px; min-width: 36px; }
.pl-n { min-width: 40px; min-height: 36px; padding: 4px 10px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card2); color: var(--tx); font: inherit; font-weight: 700; cursor: pointer; }
.pl-n:hover { border-color: var(--green); }
.pl-n.on { background: var(--green); border-color: var(--green); color: #052e16; }
.pl-z { color: var(--mut); opacity: .5; }
.pl-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.pl-bar input { flex: 1 1 220px; min-height: 44px; }
.pl-and { min-width: 190px; min-height: 36px; padding: 4px 8px; border-radius: 9px; font-size: 13px; font-weight: 600; border: 1px solid var(--line2); background: var(--card2); color: var(--tx); }
.pl-and.a-fin, .pl-and.a-entregue { border-color: var(--green); color: var(--green); }
.pl-and.a-pend, .pl-and.a-contato, .pl-and.a-nao { border-color: var(--amber); color: var(--amber); }
.pl-and.a-prod { border-color: #60a5fa; color: #60a5fa; }
.pl-and.a-cancel { border-color: var(--red); color: var(--red); }
.pl-mao { display: block; color: var(--mut); font-size: 11px; margin-top: 2px; }
.pl-main tr.a-cancel > td, .pl-main tr.a-cancel > th { opacity: .6; }
.pl-ct { font-style: italic; color: var(--mut); }
.pl-ok { color: var(--green); }
.pl-vazio { text-align: center !important; color: var(--mut); padding: 20px !important; }
.pl-nota { margin: 10px 0 0; color: var(--mut); font-size: 12.5px; }
