/* ChatPeak — protótipo do painel novo (11/10/2026)
   Nada aqui mexe no painel de verdade. Cores em variáveis: tema (claro/escuro) × cor de destaque. */

/* ---------- Tokens ---------- */
:root {
  --faixa: 0px; /* a faixa "Protótipo" saiu; fica a variável para um aviso no topo, se precisar */
  --font: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px;
  --side: 260px;
  --top: 68px;
  --t: .18s cubic-bezier(.2,.7,.3,1);

  /* tema claro (padrão) */
  --bg: #f4f5f9;
  --surface: #ffffff;
  --surface-2: #f1f2f7;
  /* Linhas ESCURAS de propósito (pedido do Luiz, 12/09 e 11/10): no fundo branco a linha clara some.
     --line = divisória e borda de cartão (~2:1). --line-2 = borda de botão, campo e chave (≥3:1, régua WCAG 1.4.11). */
  --surface-3: #d6d9e4;
  --line: #a9afbf;
  --line-2: #7a8197;
  --ink: #161927;
  --ink-2: #444b63;
  --ink-3: #636a82;
  --shadow: 0 1px 2px rgba(22,25,39,.05), 0 4px 16px rgba(22,25,39,.06);
  --shadow-lg: 0 12px 40px rgba(22,25,39,.16);
  --veil: rgba(14,16,28,.58);

  --ok: #0b7a53; --ok-soft: #e1f4ec; --ok-ink: #075c3e;
  /* 11/10: o amarelo com marrom saiu (Luiz achou feio). Atenção agora é laranja avermelhado, sobre pêssego. */
  --warn: #d9480f; --warn-soft: #ffece3; --warn-ink: #b5360f;
  --bad: #c42b3e; --bad-soft: #fde9ec; --bad-ink: #951b2c;
  --info: #1f62d0; --info-soft: #e5eefc; --info-ink: #16489c;

  /* destaque padrão: azul cobalto (frio e sóbrio, o que mais passa confiança) */
  --brand: #1e5bd8; --brand-2: #1849b4; --brand-soft: #e7eefc; --brand-ink: #173f99; --on-brand: #ffffff;
  /* conversa com cara de WhatsApp, e com contorno visível (11/10) */
  --chat-fundo: #efeae2; --bolha-cli: #ffffff; --bolha-borda: #a59f93; --bolha-sai: #d9fdd3; --bolha-sai-borda: #6fae68;
  color-scheme: light;
}
:root[data-cor="grafite"] { --brand:#262a36; --brand-2:#151821; --brand-soft:#eceef3; --brand-ink:#262a36; }
:root[data-cor="coral"]   { --brand:#c63d24; --brand-2:#a8321c; --brand-soft:#fdece8; --brand-ink:#932a17; }

:root[data-theme="dark"] {
  --bg: #0c0e16;
  --surface: #151824;
  --surface-2: #1b1f2e;
  --surface-3: #2c3245;
  --line: #444d6b;
  --line-2: #646d8a;
  --ink: #eef0f7;
  --ink-2: #b9bed2;
  --ink-3: #9198b1;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  --shadow-lg: 0 14px 44px rgba(0,0,0,.55);
  --veil: rgba(3,4,10,.72);
  --ok: #3ccf91; --ok-soft: rgba(60,207,145,.13); --ok-ink: #6fe0b0;
  --warn: #ff7a45; --warn-soft: rgba(255,122,69,.15); --warn-ink: #ff9a70;
  --bad: #ff6b7d; --bad-soft: rgba(255,107,125,.14); --bad-ink: #ff95a2;
  --info: #6aa1ff; --info-soft: rgba(106,161,255,.14); --info-ink: #94bbff;
  --brand: #6e9bff; --brand-2: #8fb2ff; --brand-soft: rgba(110,155,255,.16); --brand-ink: #a9c4ff; --on-brand: #0c0e16;
  --chat-fundo: #0b141a; --bolha-cli: #202c33; --bolha-borda: #3b4a54; --bolha-sai: #005c4b; --bolha-sai-borda: #2a8a74;
  color-scheme: dark;
}
:root[data-theme="dark"][data-cor="grafite"] { --brand:#e7e9f1; --brand-2:#ffffff; --brand-soft:rgba(231,233,241,.12); --brand-ink:#e7e9f1; }
:root[data-theme="dark"][data-cor="coral"]   { --brand:#ff8a73; --brand-2:#ffa391; --brand-soft:rgba(255,138,115,.15); --brand-ink:#ffb3a4; }

/* ---------- Design "Legado" (12/10, Luiz): as cores do painel de hoje, com a estrutura e as telas novas.
   Cores tiradas do painel real (/var/www/chatpeak-painel). As linhas ficam escuras como no resto do protótipo,
   porque linha clara demais é o erro que o Luiz mais cobra. ---------- */
:root[data-design="legado"] {
  --bg: #ececef; --surface: #ffffff; --surface-2: #f4f4f5; --surface-3: #dcdce1;
  --line: #a1a1aa; --line-2: #71717a; --ink: #18181b; --ink-2: #3f3f46; --ink-3: #52525b;
  --brand: #6d28d9; --brand-2: #5b21b6; --brand-soft: #efe9fd; --brand-ink: #5b21b6; --on-brand: #ffffff;
  --r: 12px; --r-lg: 16px;
}
:root[data-design="legado"][data-theme="dark"] {
  --bg: #0f0f12; --surface: #17171b; --surface-2: #1f1f24; --surface-3: #2d2d34;
  --line: #4a4a55; --line-2: #75757f; --ink: #f4f4f5; --ink-2: #c0c0c8; --ink-3: #a6a6b0;
  --brand: #a892ff; --brand-2: #c2b4ff; --brand-soft: rgba(124,92,255,.16); --brand-ink: #c2b4ff; --on-brand: #0f0f12;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 650; }
p { margin: 0; }
a { color: var(--brand-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
svg.i { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 16px; height: 16px; }
svg.i.lg { width: 24px; height: 24px; }
svg.i.xl { width: 32px; height: 32px; }
.muted { color: var(--ink-3); }
.soft { color: var(--ink-2); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Faixa do protótipo ---------- */
.proto-faixa {
  position: fixed; top: 0; left: 0; right: 0; height: 30px; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #1a1d29; color: #f2f3f8; font-size: 13.5px; font-weight: 600; letter-spacing: .01em;
}
.proto-faixa b { color: #ffd166; font-weight: 700; }
.proto-faixa button { background: #ffd166; color: #1a1d29; border: 0; border-radius: 6px; padding: 2px 10px; font-weight: 700; font-size: 13px; cursor: pointer; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; padding-top: var(--faixa); }
.side {
  position: sticky; top: var(--faixa); height: calc(100vh - var(--faixa)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-right: 1px solid var(--line); padding: 16px 14px 20px;
  display: flex; flex-direction: column; gap: 4px; scrollbar-width: thin;
}
.marca { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
.marca-logo { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; }
.marca-logo svg { width: 22px; height: 22px; }
.marca b { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.loja-sel {
  display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--surface-2); margin-bottom: 10px; cursor: pointer; text-align: left; width: 100%;
}
.loja-sel .av { width: 34px; height: 34px; border-radius: 9px; font-weight: 700; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.loja-sel .t { flex: 1; min-width: 0; }
.loja-sel .t b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loja-sel .t span { font-size: 13px; color: var(--ink-3); }
.nav-grupo { margin-top: 10px; }
.nav-grupo > .nav-tit { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 6px 10px 4px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink-2); font-size: 15.5px; font-weight: 550; text-align: left; cursor: pointer;
  transition: background var(--t), color var(--t); position: relative; text-decoration: none;
}
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.nav-item.on::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand); }
.nav-item .cont { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; font-size: 12.5px; font-weight: 700; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); }
.nav-item .tranca { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.nav-item .tranca svg { width: 14px; height: 14px; }
.nav-item .novo { margin-left: auto; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; padding: 2px 7px; border-radius: 6px; background: var(--info-soft); color: var(--info-ink); }
.side-pe { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topo {
  position: sticky; top: var(--faixa); z-index: 20; height: var(--top); display: flex; align-items: center; gap: 14px;
  padding: 0 28px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topo-tit { min-width: 0; flex: 1; display: flex; align-items: center; gap: 12px; }
.topo-tit h1 { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo-tit .sub { font-size: 14.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo-acoes { display: flex; align-items: center; gap: 8px; }
.busca-btn {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; min-width: 230px; border: 1px solid var(--line-2);
  background: var(--surface); border-radius: 10px; color: var(--ink-3); cursor: pointer; font-size: 15px;
}
.busca-btn kbd { margin-left: auto; font-family: var(--font); font-size: 12px; border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; color: var(--ink-3); }
.ico-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink-2); cursor: pointer; position: relative;
}
.ico-btn:hover { color: var(--ink); background: var(--surface-2); }
.ico-btn .ponto { position: absolute; top: 7px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--bad); border: 2px solid var(--surface); }
.robo-pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 20px; font-weight: 700; font-size: 14.5px; border: 1px solid transparent; cursor: pointer; }
.robo-pill.on { background: var(--ok-soft); color: var(--ok-ink); }
.robo-pill.off { background: var(--warn-soft); color: var(--warn-ink); }
.robo-pill .luz { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.ajuda-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-weight: 650; font-size: 14.5px; cursor: pointer; white-space: nowrap; }
.ajuda-btn:hover { color: var(--brand-ink); border-color: var(--brand); }

.conteudo { padding: 26px 28px 80px; width: 100%; max-width: 1280px; margin: 0 auto; }
.conteudo.largo { max-width: none; }
.conteudo.cheio { padding: 0; max-width: none; height: calc(100vh - var(--faixa) - var(--top)); }

/* ---------- Componentes ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card-p { padding: 20px 22px; }
.card-h { display: flex; align-items: center; gap: 12px; padding: 18px 22px 0; }
.card-h h3 { flex: 1; }
.card-b { padding: 16px 22px 20px; }
.grade { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g-21 { grid-template-columns: minmax(0,2fr) minmax(0,1fr); }
.g-12 { grid-template-columns: minmax(0,1fr) minmax(0,2fr); }
.linha { display: flex; align-items: center; gap: 10px; }
.linha.wrap { flex-wrap: wrap; }
.entre { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 12px; }
.espaco { flex: 1; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; } .mb20 { margin-bottom: 20px; }
.secao-tit { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; }
.secao-tit h2 { font-size: 18px; }
.secao-tit .linha-fina { flex: 1; height: 1px; background: var(--line); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px;
  border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font-weight: 650; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background var(--t), border-color var(--t), transform .06s;
  text-decoration: none;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn.pri { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.pri:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.perigo { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line-2)); }
.btn.perigo:hover { background: var(--bad-soft); }
.btn.fantasma { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.fantasma:hover { background: var(--surface-2); color: var(--ink); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 14px; border-radius: 9px; }
.btn.xs { height: 30px; padding: 0 10px; font-size: 13.5px; border-radius: 8px; gap: 6px; }
.btn.lg { height: 50px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.btn.bloco { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.so-icone { width: 42px; padding: 0; }
.btn.sm.so-icone { width: 34px; }

.selo { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 13.5px; font-weight: 700; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); }
.selo.ok { background: var(--ok-soft); color: var(--ok-ink); }
.selo.warn { background: var(--warn-soft); color: var(--warn-ink); }
.selo.bad { background: var(--bad-soft); color: var(--bad-ink); }
.selo.info { background: var(--info-soft); color: var(--info-ink); }
.selo.brand { background: var(--brand-soft); color: var(--brand-ink); }
.selo .p { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.selo svg { width: 14px; height: 14px; }

.kpi { padding: 18px 20px; }
.kpi .rot { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-2); font-weight: 600; }
.kpi .rot svg { color: var(--ink-3); }
.kpi .val { font-family: var(--display); font-size: 30px; font-weight: 700; margin-top: 8px; letter-spacing: -.02em; }
.kpi .val small { font-size: 16px; font-weight: 600; color: var(--ink-3); margin-right: 2px; }
.kpi .det { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.kpi .det .sobe { color: var(--ok); font-weight: 700; }
.kpi .det .desce { color: var(--bad); font-weight: 700; }

.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line-2); }
.seg button { height: 34px; padding: 0 14px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-2); font-weight: 650; font-size: 14.5px; cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.abas { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.abas button { height: 44px; padding: 0 14px; border: 0; background: none; color: var(--ink-3); font-weight: 650; font-size: 15.5px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.abas button.on { color: var(--ink); border-bottom-color: var(--brand); }
.abas button .cont { font-size: 12.5px; background: var(--surface-3); color: var(--ink-2); padding: 1px 7px; border-radius: 10px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 14.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.chip.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.chip .cont { font-size: 12.5px; opacity: .8; }

.campo { display: flex; flex-direction: column; gap: 6px; }
.campo > label, .campo > .rot { font-size: 14.5px; font-weight: 650; color: var(--ink); }
.campo .dica { font-size: 14px; color: var(--ink-3); }
.entrada, select.entrada, textarea.entrada {
  height: 44px; width: 100%; padding: 0 13px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); font-size: 16px; transition: border-color var(--t), box-shadow var(--t);
}
textarea.entrada { height: auto; min-height: 96px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.entrada:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.entrada::placeholder { color: color-mix(in srgb, var(--ink-3) 85%, transparent); }
select.entrada { appearance: none; 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='%23808799' stroke-width='2' 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 12px center; padding-right: 38px; }
.entrada-pre { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); overflow: hidden; }
.entrada-pre:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.entrada-pre span { display: grid; place-items: center; padding: 0 12px; background: var(--surface-2); color: var(--ink-3); font-weight: 650; border-right: 1px solid var(--line); }
.entrada-pre input { border: 0; outline: none; background: transparent; height: 42px; padding: 0 12px; width: 100%; font-size: 16px; }
.form-g { display: grid; gap: 16px; }
.form-g.c2 { grid-template-columns: 1fr 1fr; }
.form-g.c3 { grid-template-columns: 1fr 1fr 1fr; }

.chave { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.chave input { position: absolute; opacity: 0; pointer-events: none; }
.chave .trilho { width: 46px; height: 26px; border-radius: 13px; background: var(--line-2); position: relative; transition: background var(--t); flex: 0 0 auto; }
.chave .trilho::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform var(--t); }
.chave input:checked + .trilho { background: var(--brand); }
.chave input:checked + .trilho::after { transform: translateX(20px); }
.chave input:focus-visible + .trilho { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
.chave .txt { font-weight: 650; font-size: 14.5px; color: var(--ink-2); min-width: 70px; }
.opcao-linha { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.opcao-linha:first-child { border-top: 0; padding-top: 4px; }
.opcao-linha .t { flex: 1; }
.opcao-linha .t b { display: block; font-size: 16px; }
.opcao-linha .t span { font-size: 14.5px; color: var(--ink-3); }

.escolha-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.escolha { position: relative; display: flex; gap: 12px; padding: 16px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; text-align: left; align-items: flex-start; }
.escolha:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line-2)); }
.escolha.on { border-color: var(--brand); background: var(--brand-soft); }
.escolha .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); flex: 0 0 auto; }
.escolha.on .ic { background: var(--brand); color: var(--on-brand); }
.escolha b { display: block; font-size: 15.5px; }
.escolha span { font-size: 14px; color: var(--ink-3); display: block; margin-top: 2px; }
.escolha .marcado { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); opacity: 0; }
.escolha.on .marcado { opacity: 1; }

.tabela { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabela th { text-align: left; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabela td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tbody tr { cursor: pointer; transition: background var(--t); }
.tabela tbody tr:hover { background: var(--surface-2); }
.tabela .dir { text-align: right; }
.tabela .nome b { display: block; font-weight: 650; }
.tabela .nome span { font-size: 14px; color: var(--ink-3); }

.lista-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); cursor: pointer; transition: background var(--t); }
.lista-item:first-child { border-top: 0; }
.lista-item:hover { background: var(--surface-2); }
.lista-item .t { flex: 1; min-width: 0; }
.lista-item .t b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lista-item .t span { font-size: 14px; color: var(--ink-3); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14.5px; flex: 0 0 auto; color: #fff; }
.av.sm { width: 32px; height: 32px; font-size: 13px; }
.av.lg { width: 56px; height: 56px; font-size: 19px; }

.barra { height: 10px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.barra > i { display: block; height: 100%; border-radius: 6px; background: var(--brand); transition: width .5s; }
.barra.ok > i { background: var(--ok); }
.barra.warn > i { background: var(--warn); }

.vazio { text-align: center; padding: 44px 20px; }
.vazio .ic { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.vazio .ic svg { width: 30px; height: 30px; }
.vazio h3 { margin-bottom: 6px; }
.vazio p { color: var(--ink-3); max-width: 420px; margin: 0 auto 16px; }

.aviso { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--info-soft); color: var(--info-ink); font-size: 15px; }
.aviso.ok { background: var(--ok-soft); color: var(--ok-ink); }
.aviso.warn { background: var(--warn-soft); color: var(--warn-ink); }
.aviso.bad { background: var(--bad-soft); color: var(--bad-ink); }
.aviso.neutro { background: var(--surface-2); color: var(--ink-2); }
.aviso svg { margin-top: 1px; }
.aviso b { color: inherit; }
.aviso .t { flex: 1; }

.dica-i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--surface-3); color: var(--ink-3); cursor: help; font-size: 12px; font-weight: 800; position: relative; vertical-align: -3px; margin-left: 4px; padding: 0; }
.dica-i:hover, .dica-i:focus { background: var(--brand-soft); color: var(--brand-ink); }
.balao { position: fixed; z-index: 90; max-width: 280px; padding: 10px 12px; border-radius: 10px; background: #1b1e2b; color: #f3f4f9; font-size: 14px; line-height: 1.45; box-shadow: var(--shadow-lg); pointer-events: none; }

/* ---------- Gaveta, janela, avisos ---------- */
.fundo { position: fixed; inset: 0; background: var(--veil); z-index: 70; opacity: 0; transition: opacity var(--t); }
.fundo.on { opacity: 1; }
.gaveta {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); z-index: 71; background: var(--surface);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1);
}
.gaveta.on { transform: none; }
.gaveta.larga { width: min(760px, 100vw); }
.gaveta-h { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.gaveta-h h2 { flex: 1; font-size: 19px; }
.gaveta-b { flex: 1; overflow-y: auto; padding: 20px 22px 28px; }
.gaveta-p { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface); }
.janela {
  position: fixed; left: 50%; top: 50%; z-index: 72; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 60px);
  transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: transform var(--t), opacity var(--t);
  background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
}
.janela.on { transform: translate(-50%, -50%); opacity: 1; }
.janela.larga { width: min(820px, calc(100vw - 32px)); }
.janela-b { padding: 26px 28px; overflow-y: auto; }
.janela-p { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 28px 22px; }
.avisos { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 95; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 10px 8px 16px; border-radius: 12px; background: #1b1e2b; color: #f3f4f9; box-shadow: var(--shadow-lg); font-size: 15px; font-weight: 550; animation: subir .22s ease-out; max-width: calc(100vw - 32px); }
.toast svg { color: #6fe0b0; }
.toast button { background: transparent; border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 8px; height: 32px; padding: 0 12px; font-weight: 700; cursor: pointer; }
@keyframes subir { from { transform: translateY(10px); opacity: 0; } }

/* ---------- Paleta de busca ---------- */
.paleta { position: fixed; top: 12vh; left: 50%; transform: translateX(-50%); z-index: 80; width: min(640px, calc(100vw - 24px)); background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.paleta-in { display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.paleta-in input { flex: 1; height: 60px; border: 0; outline: none; background: transparent; font-size: 18px; }
.paleta-res { max-height: 56vh; overflow-y: auto; padding: 8px; }
.paleta-res .g { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 10px 12px 4px; }
.paleta-res button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; text-align: left; cursor: pointer; font-size: 15.5px; }
.paleta-res button.on, .paleta-res button:hover { background: var(--brand-soft); color: var(--brand-ink); }
.paleta-res button span { color: var(--ink-3); font-size: 14px; margin-left: auto; }

/* ---------- Notificações ---------- */
.notif { position: fixed; top: calc(var(--faixa) + var(--top) - 6px); right: 20px; z-index: 75; width: min(400px, calc(100vw - 24px)); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.notif-h { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.notif-h b { flex: 1; font-size: 16px; }
.notif .lista-item { align-items: flex-start; }
.notif .lista-item .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; }
.notif .lista-item .t span { white-space: normal; }

/* ---------- Painel do protótipo ---------- */
.proto-btn { position: fixed; left: 18px; bottom: 18px; z-index: 65; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 22px; background: #1a1d29; color: #fff; border: 2px solid #ffd166; font-weight: 700; font-size: 14.5px; cursor: pointer; box-shadow: var(--shadow-lg); }
.proto-painel { position: fixed; left: 18px; bottom: 72px; z-index: 66; width: 330px; max-height: calc(100vh - 130px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 18px; }
.proto-painel h3 { margin-bottom: 4px; }
.proto-painel .grupo { margin-top: 16px; }
.proto-painel .grupo > b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 8px; }
.proto-painel .chips .chip { height: 34px; font-size: 14px; }
.amostra { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); }

/* ---------- Bloqueio por plano ---------- */
.trancado { position: relative; }
.trancado .previa { filter: blur(3px) saturate(.6); opacity: .5; pointer-events: none; user-select: none; max-height: 520px; overflow: hidden; }
.trancado .oferta { position: absolute; left: 50%; top: 90px; transform: translateX(-50%); width: min(520px, calc(100% - 32px)); z-index: 2; text-align: center; padding: 30px 28px; }
.trancado .oferta .ic { width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.trancado .oferta ul { text-align: left; margin: 16px auto; padding: 0; list-style: none; max-width: 380px; }
.trancado .oferta li { display: flex; gap: 10px; padding: 5px 0; font-size: 15px; }
.trancado .oferta li svg { color: var(--ok); margin-top: 2px; }

/* ---------- Tutorial (holofote) ---------- */
.tour-buraco { position: fixed; z-index: 100; border-radius: 12px; box-shadow: 0 0 0 4000px var(--veil); pointer-events: none; transition: all .32s cubic-bezier(.2,.8,.2,1); outline: 3px solid color-mix(in srgb, var(--brand) 85%, #fff); outline-offset: 3px; }
.tour-buraco.sem-alvo { width: 0 !important; height: 0 !important; left: 50% !important; top: 40% !important; outline: 0; }
.tour-trava { position: fixed; z-index: 101; background: transparent; }
.tour-cartao {
  position: fixed; z-index: 102; width: min(380px, calc(100vw - 24px)); background: var(--surface); color: var(--ink);
  border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.35); padding: 20px 20px 16px; transition: top .32s cubic-bezier(.2,.8,.2,1), left .32s cubic-bezier(.2,.8,.2,1), opacity .2s;
}
.tour-cartao .passo { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--brand-ink); text-transform: uppercase; letter-spacing: .05em; }
.tour-cartao h3 { font-size: 19px; margin: 8px 0 6px; }
.tour-cartao p { font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
.tour-cartao .faca { margin-top: 12px; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 650; font-size: 15px; }
.tour-cartao .faca svg { animation: cutuca 1.2s ease-in-out infinite; }
@keyframes cutuca { 50% { transform: translateX(3px); } }
.tour-cartao .rodape { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.tour-cartao .bolinhas { display: flex; gap: 5px; flex: 1; }
.tour-cartao .bolinhas i { width: 8px; height: 8px; border-radius: 4px; background: var(--line-2); transition: width .2s, background .2s; }
.tour-cartao .bolinhas i.on { width: 22px; background: var(--brand); }
.tour-cartao .bolinhas i.feito { background: color-mix(in srgb, var(--brand) 45%, var(--line-2)); }
.tour-cartao .fechar { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; }
.tour-cartao .fechar:hover { background: var(--surface-2); color: var(--ink); }
.tour-cartao .seta { position: absolute; width: 16px; height: 16px; background: var(--surface); transform: rotate(45deg); border-radius: 3px; }
.tour-cartao.fim { text-align: center; }
.tour-cartao.fim .ic { width: 58px; height: 58px; border-radius: 50%; margin: 4px auto 6px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }

/* ---------- Início ---------- */
.boas { display: flex; align-items: center; gap: 22px; padding: 24px 26px; }
.boas h2 { font-size: 24px; }
.anel { width: 86px; height: 86px; flex: 0 0 auto; position: relative; }
.anel svg { width: 86px; height: 86px; transform: rotate(-90deg); }
.anel b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 20px; }
.passos-lista { display: flex; flex-direction: column; }
.passo-item { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-top: 1px solid var(--line); }
.passo-item:first-child { border-top: 0; }
.passo-item .bola { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; color: var(--ink-3); font-weight: 700; font-size: 14px; flex: 0 0 auto; }
.passo-item.feito .bola { background: var(--ok); border-color: var(--ok); color: #fff; }
.passo-item .t { flex: 1; min-width: 0; }
.passo-item .t b { display: block; font-size: 16px; }
.passo-item.feito .t b { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.passo-item .t span { font-size: 14.5px; color: var(--ink-3); }
.atalhos { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.atalho { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; box-shadow: var(--shadow); }
.atalho:hover { border-color: var(--brand); }
.atalho .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.atalho b { font-size: 15.5px; }
.atalho span { font-size: 14px; color: var(--ink-3); margin-top: -6px; }

/* ---------- Gráficos ---------- */
.grafico { width: 100%; height: 220px; }
.grafico text { font-family: var(--font); font-size: 12px; fill: var(--ink-3); }
.legenda { display: flex; gap: 16px; font-size: 14px; color: var(--ink-2); }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- Atendimento ---------- */
.inbox { display: grid; grid-template-columns: 340px minmax(0,1fr) 300px; height: 100%; border-top: 0; }
.inbox-lista { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--surface); }
.inbox-filtros { padding: 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.inbox-itens { flex: 1; overflow-y: auto; }
.conv { display: flex; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.conv:hover { background: var(--surface-2); }
.conv.on { background: var(--brand-soft); }
.conv .t { flex: 1; min-width: 0; }
.conv .t .l1 { display: flex; align-items: center; gap: 6px; }
.conv .t .l1 b { flex: 1; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .t .l1 span { font-size: 13px; color: var(--ink-3); }
.conv .t .l2 { font-size: 14px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.conv .t .l3 { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.conv .t .l3 .selo { height: 22px; font-size: 12.5px; padding: 0 8px; }
.conv .nao-lida { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); margin-top: 6px; }
.chat { display: flex; flex-direction: column; min-height: 0; background: var(--chat-fundo); }
.chat-h { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-h .t { flex: 1; min-width: 0; }
.chat-h .t b { display: block; }
.chat-h .t span { font-size: 14px; color: var(--ink-3); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 22px 26px; display: flex; flex-direction: column; gap: 10px; }
.bolha { max-width: 70%; padding: 9px 13px; border-radius: 12px; font-size: 15.5px; line-height: 1.45; position: relative; border: 1px solid var(--bolha-borda); box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.bolha .h { display: block; font-size: 12.5px; margin-top: 4px; opacity: .7; text-align: right; }
.bolha.cli { align-self: flex-start; background: var(--bolha-cli); color: var(--ink); border-top-left-radius: 3px; }
.bolha.robo { align-self: flex-end; background: var(--bolha-sai); color: var(--ink); border-color: var(--bolha-sai-borda); border-top-right-radius: 3px; }
.bolha.voce { align-self: flex-end; background: var(--bolha-sai); color: var(--ink); border-color: var(--bolha-sai-borda); border-top-right-radius: 3px; }
.bolha.nota { align-self: center; max-width: 80%; background: #fff8db; color: #5c4a00; border-color: #c9b25a; font-size: 14.5px; border-radius: 10px; }
.bolha .quem { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 2px; opacity: .8; }
.chat-dia { align-self: center; font-size: 13px; color: var(--ink-3); background: var(--surface); padding: 3px 12px; border-radius: 12px; border: 1px solid var(--line); }
.chat-faixa { display: flex; align-items: center; gap: 12px; padding: 10px 18px; background: var(--warn-soft); color: var(--warn-ink); font-size: 14.5px; font-weight: 600; }
.chat-faixa.robo { background: var(--ok-soft); color: var(--ok-ink); }
.chat-escrever { padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-escrever .caixa { display: flex; align-items: flex-end; gap: 8px; border: 1px solid var(--line-2); border-radius: 14px; padding: 6px 6px 6px 12px; background: var(--surface); }
.chat-escrever textarea { flex: 1; border: 0; outline: none; resize: none; background: transparent; min-height: 40px; max-height: 140px; padding: 9px 0; font-size: 16px; line-height: 1.45; }
.rapidas { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.rapidas button { flex: 0 0 auto; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px dashed var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; }
.rapidas button:hover { border-color: var(--brand); color: var(--brand-ink); }
.rapidas.foco button { border-style: solid; border-color: var(--brand); color: var(--brand-ink); }
.rapidas button { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rapidas button.rp-ed { display: inline-flex; align-items: center; gap: 6px; border-style: solid; color: var(--ink-2); }
.rp-linha { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.rp-linha textarea { flex: 1; resize: vertical; min-height: 56px; }
/* 14/10: desenho das áreas de entrega no mapa */
.ponto-area { background: #fff; border: 3px solid #1e5bd8; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.45); cursor: grab; }
.ponto-area.primeiro { border-color: #f59e0b; }
.cor-area { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.inbox-lado { border-left: 1px solid var(--line); background: var(--surface); overflow-y: auto; padding: 20px; }
.inbox-lado .bloco { padding: 14px 0; border-top: 1px solid var(--line); }
.inbox-lado .bloco:first-child { border-top: 0; padding-top: 0; }
.inbox-lado .bloco > b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 8px; }
.etapas-funil { display: flex; flex-wrap: wrap; gap: 6px; }
.etapas-funil button { height: 32px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.etapas-funil button.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* ---------- Quadro (kanban) ---------- */
.quadro { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.coluna { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; min-height: 160px; }
.coluna.alvo { outline: 2px dashed var(--brand); outline-offset: -2px; background: var(--brand-soft); }
.coluna-h { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; }
.coluna-h b { flex: 1; font-size: 15.5px; }
.coluna-h .cap { font-size: 13.5px; color: var(--ink-3); font-weight: 650; }
.cartao { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 13px; margin-bottom: 8px; cursor: grab; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.cartao:active { cursor: grabbing; }
.cartao.arrastando { opacity: .45; }
.cartao b { display: block; font-size: 15px; }
.cartao span { font-size: 14px; color: var(--ink-3); }
.cartao .pe { display: flex; align-items: center; gap: 8px; margin-top: 8px; }

/* ---------- Produtos ---------- */
.prod { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--line); }
.prod:first-child { border-top: 0; }
.prod .foto { width: 54px; height: 54px; border-radius: 12px; background: var(--surface-3); flex: 0 0 auto; background-size: cover; background-position: center; display: grid; place-items: center; color: var(--ink-3); }
.prod .t { flex: 1; min-width: 0; }
.prod .t b { display: block; font-size: 16px; }
.prod .t span { font-size: 14px; color: var(--ink-3); }
.prod.pausado .t b, .prod.pausado .foto { opacity: .5; }
.preco-ed { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; height: 40px; background: var(--surface); }
.preco-ed span { padding: 0 8px 0 11px; color: var(--ink-3); font-weight: 650; font-size: 14.5px; }
.preco-ed input { width: 76px; border: 0; outline: none; background: transparent; font-weight: 700; font-size: 16px; height: 100%; }
.preco-ed:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.menu-mais { position: fixed; z-index: 85; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; }
.menu-mais button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 8px; text-align: left; cursor: pointer; font-size: 15px; }
.menu-mais button:hover { background: var(--surface-2); }
.menu-mais button.perigo { color: var(--bad); }
.grupo-prod-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.grupo-prod-h b { flex: 1; font-size: 16px; }
.alca { cursor: grab; color: var(--ink-3); display: grid; place-items: center; }

/* ---------- Mapa ---------- */
.mapa { height: 420px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.leaflet-container { font-family: var(--font); }

/* ---------- Robô (teste) ---------- */
.fone { width: 100%; max-width: 360px; margin: 0 auto; border-radius: 34px; border: 10px solid #1a1d29; background: #e9e4dc; overflow: hidden; display: flex; flex-direction: column; height: 560px; box-shadow: var(--shadow-lg); }
:root[data-theme="dark"] .fone { background: #0f1218; border-color: #2a2f3d; }
.fone-h { background: #075e54; color: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.fone-h .av { background: #fff; color: #075e54; }
.fone-h b { display: block; font-size: 15px; }
.fone-h span { font-size: 12.5px; opacity: .85; }
.fone-msgs { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.fone-msgs .m { max-width: 82%; padding: 8px 11px; border-radius: 10px; font-size: 15px; line-height: 1.4; background: #fff; color: #111; align-self: flex-start; box-shadow: 0 1px 1px rgba(0,0,0,.08); white-space: pre-line; }
.fone-msgs .m.eu { align-self: flex-end; background: #d9fdd3; }
:root[data-theme="dark"] .fone-msgs .m { background: #1f2c34; color: #e9edef; }
:root[data-theme="dark"] .fone-msgs .m.eu { background: #005c4b; }
.fone-msgs .digitando { align-self: flex-start; background: #fff; padding: 10px 14px; border-radius: 10px; display: flex; gap: 4px; }
.fone-msgs .digitando i { width: 7px; height: 7px; border-radius: 50%; background: #999; animation: pula 1s infinite; }
.fone-msgs .digitando i:nth-child(2) { animation-delay: .15s; } .fone-msgs .digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes pula { 30% { transform: translateY(-4px); opacity: .6; } }
.fone-in { display: flex; gap: 8px; padding: 8px; background: transparent; }
.fone-in input { flex: 1; height: 42px; border-radius: 21px; border: 0; padding: 0 16px; background: #fff; color: #111; outline: none; font-size: 15px; }
:root[data-theme="dark"] .fone-in input { background: #1f2c34; color: #e9edef; }
.fone-in button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #00a884; color: #fff; display: grid; place-items: center; cursor: pointer; }
.sugestoes-teste { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }

/* ---------- Nota fiscal / contrato ---------- */
.doc-previa { background: #fff; color: #1b1e2b; border-radius: 10px; border: 1px solid #a9afbf; padding: 24px 26px; font-size: 14px; line-height: 1.55; box-shadow: var(--shadow); }
.doc-previa h4 { font-family: var(--font); font-size: 15px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.doc-previa .campo-v { background: #fff3c4; padding: 0 4px; border-radius: 4px; font-weight: 700; overflow-wrap: anywhere; }
.doc-previa table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.doc-previa td { border: 1px solid #a9afbf; padding: 6px 8px; font-size: 13.5px; }
.etapas-assist { display: flex; gap: 8px; margin-bottom: 22px; }
.etapas-assist .e { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.etapas-assist .e i { height: 5px; border-radius: 3px; background: var(--line-2); }
.etapas-assist .e.on i, .etapas-assist .e.feito i { background: var(--brand); }
.etapas-assist .e span { font-size: 13px; font-weight: 650; color: var(--ink-3); }
.etapas-assist .e.on span { color: var(--brand-ink); }
.linha-tempo { position: relative; padding-left: 22px; }
.linha-tempo::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.linha-tempo .ev { position: relative; padding: 0 0 16px; }
.linha-tempo .ev::before { content: ''; position: absolute; left: -21px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--brand); }
.linha-tempo .ev b { display: block; font-size: 15px; }
.linha-tempo .ev span { font-size: 14px; color: var(--ink-3); }
.mensal { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.mensal .m { border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 14px; }
.mensal .m b { display: block; font-size: 14.5px; }
.mensal .m.pago { background: var(--ok-soft); border-color: transparent; color: var(--ok-ink); }
.mensal .m.atrasado { background: var(--bad-soft); border-color: transparent; color: var(--bad-ink); }
.mensal .m.aberto { background: var(--surface-2); }

/* ---------- Planos ---------- */
.planos { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.plano { padding: 22px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.plano.atual { border: 2px solid var(--brand); }
.plano .tarja { position: absolute; top: -12px; left: 20px; }
.plano .preco { font-family: var(--display); font-size: 30px; font-weight: 700; }
.plano .preco small { font-size: 15px; color: var(--ink-3); font-weight: 600; }
.plano ul { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 7px; }
.plano li { display: flex; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.plano li svg { color: var(--ok); margin-top: 2px; }
.matriz { width: 100%; border-collapse: collapse; }
.matriz th, .matriz td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: center; font-size: 14.5px; }
.matriz th:first-child, .matriz td:first-child { text-align: left; }
.matriz thead th { font-size: 13.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
/* 17/10 (Planos e recursos): a chave fica presa à própria célula (a caixinha escondida não estica a página no celular) e o nome do recurso não quebra no meio da palavra */
.matriz .chave { position: relative; }
.matriz td:first-child { min-width: 160px; }
.matriz td:first-child b { overflow-wrap: normal; }

/* ---------- Ajuda ---------- */
.tutoriais { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tut { display: flex; flex-direction: column; gap: 10px; padding: 18px; cursor: pointer; text-align: left; }
.tut:hover { border-color: var(--brand); }
.tut .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.tut .pe { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); margin-top: auto; }
.tut.feito .ic { background: var(--ok-soft); color: var(--ok); }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 650; font-size: 16px; display: flex; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { margin-left: auto; transition: transform var(--t); color: var(--ink-3); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: 0 0 16px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- Barra do celular ---------- */
.barra-cel { display: none; }
.folha-mais { display: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .inbox { grid-template-columns: 300px minmax(0,1fr); }
  .inbox-lado { display: none; }
  .atalhos { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .busca-btn { min-width: 0; }
  .busca-btn .txt, .busca-btn kbd { display: none; }
}
@media (max-width: 960px) {
  .planos { grid-template-columns: minmax(0,1fr); }
  .g3, .g-21, .g-12, .robo-grade { grid-template-columns: minmax(0,1fr) !important; }
  .robo-grade > div[style*="sticky"] { position: static !important; }
}
@media (max-width: 860px) {
  :root { --top: 60px; }
  .app { grid-template-columns: minmax(0,1fr); }
  .side { display: none; }
  .topo { padding: 0 16px; gap: 8px; }
  .topo-tit h1 { font-size: 20px; }
  .topo-tit .sub { display: none; }
  .topo-acoes .busca-btn, .topo-acoes .robo-pill .rt { display: none; }
  .robo-pill { padding: 0 12px; }
  .ajuda-btn .rt { display: none; }
  .ajuda-btn { width: 36px; padding: 0; justify-content: center; }
  .conteudo { padding: 18px 16px 110px; }
  .conteudo.cheio { height: calc(100vh - var(--faixa) - var(--top) - 68px); }
  .g2, .planos[style] { grid-template-columns: minmax(0,1fr) !important; }
  .form-g.c2, .form-g.c3 { grid-template-columns: minmax(0,1fr); }
  .boas { flex-direction: column; align-items: flex-start; padding: 20px; }
  .inbox { grid-template-columns: minmax(0,1fr); }
  .inbox.lendo .inbox-lista { display: none; }
  .inbox:not(.lendo) .chat { display: none; }
  .bolha { max-width: 86%; }
  .chat-msgs { padding: 16px 12px; }
  .barra-cel {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: 68px; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .barra-cel button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12.5px; font-weight: 650; color: var(--ink-3); cursor: pointer; }
  .barra-cel button.on { color: var(--brand-ink); }
  .barra-cel button.on svg { background: var(--brand-soft); border-radius: 12px; width: 44px; padding: 0 10px; }
  .folha-mais.on { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 72; max-height: 82vh; overflow-y: auto; background: var(--surface); border-radius: 22px 22px 0 0; padding: 10px 16px 30px; box-shadow: var(--shadow-lg); }
  .folha-mais .puxador { width: 44px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 4px auto 12px; }
  .folha-mais .grade-mais { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .folha-mais .grade-mais button { border: 1px solid var(--line); background: var(--surface-2); border-radius: 14px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 650; color: var(--ink-2); cursor: pointer; text-align: center; position: relative; }
  .folha-mais .grade-mais button.on { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }
  .folha-mais .grade-mais button .tranca-mini { position: absolute; top: 6px; right: 6px; color: var(--ink-3); }
  .folha-mais h4 { font-family: var(--font); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 14px 4px 8px; }
  .proto-btn { bottom: 80px; left: 12px; height: 40px; padding: 0 12px; font-size: 13.5px; }
  .proto-painel { left: 8px; right: 8px; width: auto; bottom: 128px; max-height: calc(100vh - 200px); }
  .avisos { bottom: 84px; }
  .tabela.responsiva thead { display: none; }
  .tabela.responsiva, .tabela.responsiva tbody, .tabela.responsiva tr, .tabela.responsiva td { display: block; width: 100%; }
  .tabela.responsiva tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .tabela.responsiva td { border: 0; padding: 3px 0; }
  .tabela.responsiva td.dir { text-align: left; }
  .tabela.responsiva td[data-r]::before { content: attr(data-r) ': '; color: var(--ink-3); font-size: 14px; }
  .tour-cartao { left: 12px !important; right: 12px; width: auto; }
  .tour-cartao .seta { display: none; }
  .gaveta { width: 100vw; }
  /* 21/10/2026: no celular, gaveta com muitos botões (OS, pedido) cortava os da esquerda. Agora quebram em linhas de dois. */
  .gaveta-p { flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
  .gaveta-p > .espaco { display: none; }
  .gaveta-p > .btn { flex: 1 1 calc(50% - 4px); min-width: 0; justify-content: center; }
  .mapa { height: 340px; }
  .prod { flex-wrap: wrap; }
  .prod .acoes-prod { width: 100%; justify-content: flex-end; }
  .kpi .val { font-size: 26px; }
  .quadro { grid-auto-columns: 82vw; }
  .proto-faixa { font-size: 12.5px; }
  .proto-faixa .rt { display: none; }
}
@media (max-width: 520px) {
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .atalhos { grid-template-columns: repeat(2, minmax(0,1fr)); }
  h1 { font-size: 22px; }
  .seg button { padding: 0 10px; }
  .janela-b { padding: 22px 20px; }
  .janela-p { padding: 14px 20px 20px; flex-wrap: wrap; }
}

/* ---------- Ajustes da 1ª conferência ---------- */
.nav-item > span:not(.cont):not(.tranca):not(.novo) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proto-btn { left: auto; right: 18px; }
.proto-painel { left: auto; right: 18px; }
.escolha > div:last-child { padding-right: 16px; min-width: 0; }
.escolha .selo { display: inline-flex; }
.quadro.ped { grid-auto-columns: minmax(200px, 1fr); }
.prod .foto { border: 1px solid var(--line); }
.rotulo-area { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px; font-family: var(--font); font-weight: 700; font-size: 13px; box-shadow: var(--shadow); padding: 3px 8px; }
.rotulo-area::before { display: none; }
@media (max-width: 860px) { .proto-btn { right: 12px; left: auto; } .proto-painel { left: 8px; right: 8px; } .quadro.ped { grid-auto-columns: 78vw; } }
.conv .t .l3 .selo { font-size: 13px; }
.nav-grupo > .nav-tit { font-size: 13px; }
.nav-item .novo { font-size: 12px; }
.fone-h span { font-size: 13px; }
.escolha .selo { font-size: 13px !important; }
@media (max-width: 860px) { .barra-cel button { font-size: 13px; } }
.bolha .h, .bolha .quem { font-size: 13px; }

/* ---------- Ajustes do celular (2ª conferência) ---------- */
.entre.wrap { flex-wrap: wrap; }
#conteudo:focus { outline: none; }
.inbox-lista, .chat, .inbox-lado { min-width: 0; }
.btn.bloco { white-space: normal; height: auto; min-height: 42px; padding-top: 9px; padding-bottom: 9px; line-height: 1.3; }
.kpi { min-width: 0; }
.kpi .val { overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .hr-tab thead { display: none; }
  .hr-tab, .hr-tab tbody { display: block; }
  .hr-tab tr { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: center; }
  .hr-tab td { display: block; border: 0; padding: 0; }
  .hr-tab td[colspan] { grid-column: 1 / -1; }
  /* 14/10: a chave da entrega ocupa a linha toda, para "das" e "até" ficarem lado a lado */
  .hr-tab td.hr-ent { grid-column: 1 / -1; }
  .hr-tab td[data-r]::before { content: attr(data-r); display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 4px; }
  .hr-tab td:nth-child(2) { justify-self: end; }
  .hr-tab input.entrada { width: 100% !important; }
  .topo-acoes { gap: 6px; }
  .ico-btn { width: 38px; height: 38px; }
  .conteudo > .entre, .conteudo > div > .entre { flex-wrap: wrap; }
  .seg { flex-wrap: wrap; }
}
@media (max-width: 860px) { .conteudo .entre > .linha { flex-wrap: wrap; } .conteudo .entre > .linha > .btn { flex: 1 1 auto; } }
@media (max-width: 520px) { .passo-item { flex-wrap: wrap; } .passo-item > .btn, .passo-item > .selo { margin-left: 46px; } }
.fundo { pointer-events: none; }
.fundo.on { pointer-events: auto; }
@media (max-width: 860px) { .conteudo .entre.wrap > .abas { flex: 1 1 100%; margin-bottom: 4px !important; } .conteudo .entre.wrap > .abas + .btn { margin-bottom: 16px !important; } }
@media (max-width: 860px) { .conteudo .entre.wrap > .abas { flex: 1 1 100% !important; } }
@media (max-width: 520px) { .kpi { padding: 14px 14px; } .kpi .val { font-size: 22px; white-space: nowrap; overflow-wrap: normal; } .kpi .val small { font-size: 14px; } .kpi .rot { font-size: 14px; } }
.cartao .selo { color: var(--ink-2); }
.conteudo.cheio > .pg { height: 100%; }
@media (max-width: 520px) { .passo-item .t { flex: 1 1 calc(100% - 46px); } }
@media (max-width: 860px) { .avisos { width: calc(100vw - 24px); } .toast { width: 100%; } }
.ico-btn .ponto.azul { background: var(--brand); }

/* 11/10: quem fala, em cada bolha, fica claro sem pintar a bolha inteira */
.bolha .quem { color: var(--ink-2); opacity: 1; }
.bolha.robo .quem { display: flex; width: fit-content; align-items: center; gap: 4px; }
:root[data-theme="dark"] .bolha.nota { background: #3a3215; color: #f3e3a0; border-color: #6b5c25; }
.chat-dia { background: var(--surface); border-color: var(--line); color: var(--ink-2); }

/* ---------- Conversas, 11/10: menos cor, etapa em texto, "Precisa de você" em destaque ---------- */
.seg-cheio { display: flex; width: 100%; }
.seg-cheio button { flex: 1 1 auto; min-width: 0; padding: 0 6px; font-size: 14px; white-space: nowrap; }
.cont-seg { font-size: 12.5px; color: var(--ink-3); font-weight: 700; margin-left: 2px; }
.seg button.on .cont-seg { color: var(--brand-ink); }
.canal-ic { display: inline-grid; place-items: center; color: var(--ink-3); }
.fase { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.fase .p { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.fase.info .p { background: var(--info); } .fase.brand .p { background: var(--brand); } .fase.ok .p { background: var(--ok); }
.fase-novo { font-size: 13px; font-weight: 700; color: var(--info-ink); }
.pill-voce { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 12px; background: var(--alerta); color: #fff; font-size: 13px; font-weight: 700; }
.pill-voce svg { width: 13px; height: 13px; }
.chip.chip-voce.on { background: var(--alerta); border-color: var(--alerta); color: #fff; }
.conv .t .l3 { align-items: center; gap: 10px; }
.selo.etq { padding-right: 4px; gap: 4px; }
.tira-etq { border: 0; background: transparent; color: inherit; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0; }
.tira-etq:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.tira-etq svg { width: 12px; height: 12px; }
textarea.obs { min-height: 110px; font-size: 15px; overflow-wrap: anywhere; }
.bolha.nota .link-btn { border: 0; background: none; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
:root { --alerta: #c4410f; }
:root[data-theme="dark"] { --alerta: #c4410f; }

/* ---------- Agenda, 11/10: cada compromisso inteiro, sem invadir a casa do lado ---------- */
.ag-cab { display: grid; grid-template-columns: 64px repeat(7, 1fr); border-bottom: 1px solid var(--line); }
.ag-dia-cab { padding: 10px 6px; text-align: center; border-left: 1px solid var(--line); }
.ag-dia-cab span { display: block; font-size: 13.5px; color: var(--ink-3); font-weight: 650; }
.ag-dia-cab b { font-family: var(--display); font-size: 20px; }
.ag-dia-cab.hoje b { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--on-brand); }
.ag-corpo { display: grid; grid-template-columns: 64px repeat(7, 1fr); position: relative; }
.ag-horas div { font-size: 13px; color: var(--ink-3); text-align: right; padding: 3px 8px 0 0; border-top: 1px solid var(--line); box-sizing: border-box; }
.ag-col { position: relative; border-left: 1px solid var(--line); background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px); }
.ag-ev { position: absolute; display: flex; flex-direction: column; justify-content: flex-start; text-align: left; overflow: hidden; padding: 4px 7px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--brand) 55%, var(--line-2)); border-left: 4px solid var(--brand); background: var(--brand-soft); color: var(--ink); cursor: pointer; font: inherit; z-index: 1; }
.ag-ev:hover { z-index: 3; box-shadow: var(--shadow-lg); }
.ag-ev b { font-size: 13px; color: var(--brand-ink); white-space: nowrap; }
.ag-ev span { font-size: 13.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-ev span.duas { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ag-mes-cab { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line); }
.ag-mes-cab div { padding: 10px; font-size: 13.5px; font-weight: 700; color: var(--ink-3); text-align: center; }
.ag-mes-grade { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ag-mes-dia { min-height: 112px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; cursor: pointer; min-width: 0; }
.ag-mes-dia:nth-child(7n) { border-right: 0; }
.ag-mes-dia > b { font-size: 14px; }
.ag-mes-dia.fora { background: var(--surface-2); }
.ag-mes-dia.fora > b { color: var(--ink-3); }
.ag-mes-dia.hoje > b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--on-brand); }
.ag-mes-ev { border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line-2)); background: var(--brand-soft); color: var(--ink); border-radius: 6px; padding: 2px 6px; font: inherit; font-size: 13px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.ag-mes-ev span { font-weight: 700; color: var(--brand-ink); }
.ag-mes-mais { border: 0; background: none; color: var(--brand-ink); font-weight: 700; font-size: 13px; text-align: left; padding: 2px 4px; cursor: pointer; }
@media (max-width: 860px) { .ag-mes-dia { min-height: 70px; padding: 4px; } .ag-mes-ev { font-size: 0; padding: 0; height: 8px; border-radius: 4px; } .ag-mes-ev span { font-size: 0; } }
.ag-ev.cheio { background: var(--surface); border-style: dashed; border-left-style: solid; }

/* ---------- Pedidos e cardápio, 11/10 ---------- */
.tempo-ped { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.tempo-ped svg { width: 14px; height: 14px; }
.tempo-ped.atrasado { color: var(--alerta); }
.alca-prod { cursor: grab; padding: 6px 2px; margin-left: -8px; color: var(--ink-3); display: grid; place-items: center; border-radius: 6px; }
.alca-prod:hover { color: var(--ink); background: var(--surface-2); }
.prod.arrastando { opacity: .45; }
.prod.alvo-cima { box-shadow: inset 0 3px 0 var(--brand); }
.prod.alvo-baixo { box-shadow: inset 0 -3px 0 var(--brand); }
.cont-btn { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--alerta); color: #fff; font-size: 12.5px; font-weight: 800; }
.lc-linha { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); }
.lc-nome { flex: 1; min-width: 0; font-weight: 650; }
.lc-qtd { width: 130px; }
.lc-qtd input { height: 36px; }
.lc-novo { display: grid; grid-template-columns: 2fr 80px 70px 1.4fr auto; gap: 8px; }
@media (max-width: 860px) { .lc-novo { grid-template-columns: 1fr 1fr; } .lc-novo input:first-child { grid-column: 1 / -1; } .lc-linha { flex-wrap: wrap; } .lc-nome { flex: 1 1 100%; } }

/* ---------- Início, 11/10: meta, 5 números e gráficos ---------- */
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.meta { display: flex; align-items: center; gap: 22px; padding: 18px 22px; }
.meta-l { display: flex; flex-direction: column; min-width: 130px; }
.meta-pct { font-family: var(--display); font-size: 34px; line-height: 1.1; }
.meta-c { flex: 1; min-width: 0; }
.meta-barra { height: 12px; }
.graf-caixa { width: 100%; overflow: hidden; }
.graf { display: block; max-width: 100%; height: auto; }
.graf text { font-family: var(--font); font-size: 13px; fill: var(--ink-3); }
.graf .graf-col { cursor: default; }
.graf .graf-col.on path { opacity: .82; }
.graf .graf-col.on rect { fill: color-mix(in srgb, var(--ink) 5%, transparent); }
.balao-graf { pointer-events: none; min-width: 150px; }
.balao-graf .lin { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.balao-graf .lin b { margin-left: auto; padding-left: 12px; }
.balao-graf .lin i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.balao-graf .tot { border-top: 1px solid rgba(255,255,255,.2); padding-top: 4px; }
@media (max-width: 1180px) { .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .meta { flex-wrap: wrap; gap: 12px; } .meta .meta-c { flex: 1 1 100%; order: 3; } .meta > .btn { margin-left: auto; } }
.passos-feitos { margin-top: 6px; }
.passos-feitos > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14.5px; border: 1px solid var(--line); }
.passos-feitos > summary::-webkit-details-marker { display: none; }
.passos-feitos > summary:hover { background: var(--surface-2); }
.passos-feitos > summary svg { color: var(--ok); }
.passos-feitos[open] > summary { margin-bottom: 4px; }
.meta-c .entre > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 860px) { .meta { padding: 16px; } .meta-c .entre { flex-direction: column; align-items: flex-start; gap: 4px; } }
/* escuro: texto em cima do fundo escuro precisa de um laranja mais claro; a bolha que sai é verde-escura */
:root[data-theme="dark"] .tempo-ped.atrasado { color: #ff8a5c; }
:root[data-theme="dark"] .bolha.voce .quem, :root[data-theme="dark"] .bolha.robo .quem { color: #d7dbe8; }

/* ---------- Rodada 2 (11/10): promoções, site, financeiro, ajuda ---------- */
.carimbos { display: inline-flex; gap: 3px; flex-wrap: wrap; max-width: 150px; }
.carimbos i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--line-2); background: transparent; }
.carimbos i.on { background: var(--brand); border-color: var(--brand); }
.carimbos.grande { gap: 8px; max-width: 260px; justify-content: center; }
.carimbos.grande i { width: 30px; height: 30px; border-width: 2px; }
.estrelas { display: inline-flex; gap: 2px; }
.estrelas .i { width: 18px; height: 18px; stroke: currentColor; }
.passos-num { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); line-height: 1.5; }
.passos-num b { color: var(--ink); }
.lista-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lista-check li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.lista-check li svg { flex: none; margin-top: 2px; color: var(--ok); }
.lista-check.nao li svg { color: var(--bad); }
.mini-foto { position: relative; width: 64px; height: 64px; border-radius: 10px; background: var(--surface-3) center/cover; border: 1px solid var(--line); }
.mini-foto button { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.mini-foto button svg { width: 13px; height: 13px; }
.carimbos { flex-wrap: nowrap; max-width: none; }
.carimbos i { width: 10px; height: 10px; }
.tab-fid td[data-r="Carimbos"] b { white-space: nowrap; }
.carimbos.grande { flex-wrap: wrap; }
.carimbos.grande i { width: 30px; height: 30px; }
.fin-topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.seta-fin { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.seta-fin.entrada { background: var(--ok-soft); color: var(--ok-ink, var(--ok)); }
.seta-fin.saida { background: var(--bad-soft); color: var(--bad-ink); }
.tab-fin td { vertical-align: middle; }
.canto-fin { position: sticky; bottom: 20px; display: flex; justify-content: flex-end; margin-top: 16px; pointer-events: none; z-index: 5; }
.canto-fin .btn { pointer-events: auto; box-shadow: var(--shadow-lg); background: var(--surface); }
@media (max-width: 860px) { .canto-fin { bottom: 86px; } .fin-topo > div { width: 100%; } .fin-topo .seg { width: 100%; } .fin-topo .seg button { flex: 1; padding: 0 6px; } }
.canto-fin { bottom: 76px; }
@media (max-width: 860px) { .canto-fin { bottom: 136px; } }
#flTipo { display: flex; width: 100%; } #flTipo button { flex: 1; }
.linha-tempo.regua .ev.off { opacity: .55; }
.linha-tempo.regua .chips .chip { height: 30px; font-size: 13.5px; padding: 0 10px; gap: 5px; }
.linha-tempo.regua .chips .chip svg { width: 14px; height: 14px; }
.bola-ck { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn-ink); flex: none; }
.bola-ck.ok { background: var(--ok-soft); color: var(--ok); }
.fer-linha { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.fer-linha:first-child { border-top: 0; }
.fer-data { display: flex; flex-direction: column; }
.fer-data span { font-size: 13px; color: var(--ink-3); text-transform: capitalize; }
.fer-nome { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.fer-acao .seg button { padding: 0 10px; font-size: 14px; }
.bolha-teste { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; padding: 10px 14px; line-height: 1.5; }
.ag-dia-cab em { display: block; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--bad-ink); }
.ag-dia-cab.fechado b { color: var(--bad-ink); }
.ag-mes-dia.fechado { background: repeating-linear-gradient(135deg, transparent 0 8px, color-mix(in srgb, var(--bad) 8%, transparent) 8px 16px); }
.ag-fer { display: block; font-size: 12.5px; font-weight: 700; color: var(--bad-ink); margin: 2px 0 4px; line-height: 1.3; }
.previa-pagar { display: flex; flex-direction: column; gap: 10px; }
.previa-pagar .op { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; }
.previa-pagar .op.on { border: 2px solid var(--brand); background: var(--brand-soft); }
.previa-pagar .op > div { flex: 1; display: flex; flex-direction: column; }
.previa-pagar .op span:not(.radio) { font-size: 14px; color: var(--ink-2); }
.previa-pagar .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.previa-pagar .op.on .radio { border: 5px solid var(--brand); }
@media (max-width: 860px) { .fer-linha { grid-template-columns: 60px minmax(0, 1fr); } .fer-acao { grid-column: 1 / -1; } .fer-acao .seg { width: 100%; } .fer-acao .seg button { flex: 1; padding: 0 4px; } }
.nivel { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.nivel svg { width: 13px; height: 13px; }
.nivel.mexe { color: var(--ok-ink, var(--ok)); }
.nivel.ve { color: var(--info-ink); }
.nivel.nao { color: var(--ink-3); font-weight: 600; }
.matriz-perm th, .matriz-perm td { padding: 9px 12px; }
.perm-linha { padding: 10px 16px; border-top: 1px solid var(--line); gap: 12px; flex-wrap: wrap; }
.perm-linha:first-child { border-top: 0; }
.perm-linha .seg button { padding: 0 12px; }
.nav-item.acende { background: color-mix(in srgb, var(--alerta) 13%, var(--surface)); color: var(--ink); box-shadow: inset 0 0 0 2px var(--alerta); animation: acende 1.4s ease-in-out infinite; }
@keyframes acende { 50% { box-shadow: inset 0 0 0 2px var(--alerta), 0 0 0 4px color-mix(in srgb, var(--alerta) 22%, transparent); } }
@media (prefers-reduced-motion: reduce) { .nav-item.acende { animation: none; } }
body.acendendo .side { z-index: 75; }
.tut-item .t span { white-space: normal; }
.ajuda-topo h2 { font-size: 24px; }
.so-cel { display: none !important; }
.ia-msgs { display: flex; flex-direction: column; gap: 10px; max-height: 52vh; overflow-y: auto; padding: 4px 2px; }
.ia-m { align-self: flex-start; max-width: 88%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 14px; line-height: 1.5; }
.ia-m.eu { align-self: flex-end; background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); border-radius: 14px 14px 4px 14px; }
.ia-cartao { border: 2px solid color-mix(in srgb, var(--brand) 45%, var(--line)); }
@media (max-width: 860px) { .so-cel { display: flex !important; } .so-cel button { flex: 1; } .esconde-cel { display: none !important; } }
/* selo dentro do texto de uma linha da lista não herda o cinza claro do "span" da linha */
.lista-item .t .selo { color: var(--ink-2); font-size: 13.5px; display: inline-flex; overflow: visible; }
.lista-item .t .selo.ok { color: var(--ok-ink); } .lista-item .t .selo.warn { color: var(--warn-ink); } .lista-item .t .selo.bad { color: var(--bad-ink); }
.lista-item .t .selo.info { color: var(--info-ink); } .lista-item .t .selo.brand { color: var(--brand-ink); }
@media (max-width: 860px) { [data-tour="rel-periodo"] { width: 100%; } [data-tour="rel-periodo"] button { flex: 1; padding: 0 4px; font-size: 13.5px; white-space: normal; line-height: 1.15; } }
.opcao-linha .t { min-width: 0; } .opcao-linha .t span { overflow-wrap: anywhere; }
@media (max-width: 860px) { .tabela.responsiva td.td-acao:empty { display: none; } }
/* 14/10: cor fixa nos dois temas, igual ao "Com você" — no escuro o --warn-ink é claro e o branco sumia (2,1:1) */
.chip.chip-sacola.on { background: #b5360f; border-color: #b5360f; color: #fff; }
.pill-sacola { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 12px; background: var(--warn-soft); color: var(--warn-ink); font-size: 13px; font-weight: 700; border: 1px solid color-mix(in srgb, var(--warn-ink) 35%, transparent); }
.pill-sacola svg { width: 13px; height: 13px; }
.faixa-sacola { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--warn-soft); color: var(--warn-ink); border-bottom: 1px solid color-mix(in srgb, var(--warn-ink) 30%, transparent); }
.faixa-sacola .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.faixa-sacola .t span { font-size: 14px; color: var(--ink-2); }
.faixa-sacola .t .tiny { font-size: 13px; color: var(--ink-2); }
.ag-dia-cab.hoje.fechado b { color: var(--on-brand); }

/* ---------- painel novo: carregando ---------- */
.carregando { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 60px 20px; color: var(--ink-2); font-weight: 600; }
.gira { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--brand); animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gira { animation-duration: 2s; } }

/* 12/10/2026: botão dentro de aviso (fundo colorido) perdia a borda no tema escuro (2,75:1). Um degrau mais forte, nos dois temas e no Legado. */
.aviso .btn:not(.pri):not(.perigo) { border-color: color-mix(in srgb, var(--line-2) 65%, var(--ink) 35%); }

/* 13/10/2026 (Luiz): Reunião de configuração com dias e horas grandes ("as datas estão muito pequenas, meio escondido")
   e o "gratuita" no topo. Borda dos botões = --line-2 (controle, >=3:1), igual ao .chip. */
.reu-gratis { font-size: 16px; align-items: center; }
.reu-gratis svg { width: 24px; height: 24px; margin-top: 0; flex: 0 0 24px; }
.reu-rotulo { font-size: 16px; font-weight: 700; margin: 4px 0 10px; color: var(--ink); }
.reu-dias { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-bottom: 22px; }
.reu-dia { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px 10px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.reu-dia .reu-sem { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.reu-dia .reu-num { font-family: var(--display); font-size: 30px; line-height: 1.1; font-weight: 700; }
.reu-dia .reu-mes { font-size: 15px; color: var(--ink-2); }
.reu-dia:hover, .reu-hora:hover { border-color: var(--brand); }
.reu-dia.on, .reu-hora.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.reu-dia.on .reu-sem, .reu-dia.on .reu-mes { color: var(--on-brand); }
.reu-horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-bottom: 18px; }
.reu-hora { height: 50px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
@media (max-width: 640px) { .reu-dias { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .reu-dia { padding: 10px 2px 8px; } .reu-dia .reu-num { font-size: 26px; } .reu-horas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 13/10/2026: Promoções → Cupons. O código no quadro tracejado é o do protótipo; cupom encerrado fica em
   fundo cinza (sem opacidade: o texto continua com o contraste de leitura). */
.cupom-codigo { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: .04em; margin-top: 12px; padding: 10px; border: 2px dashed var(--line-2); border-radius: 10px; text-align: center; word-break: break-all; }
.cupom-cartao.apagado { background: var(--surface-2); }

/* ---------- 15/10/2026 (Luiz: "tá muito torto"): consertos de encaixe ----------
   Conversas: com o menu (260px), as 3 colunas só cabem a partir de ~1400px. Em 1200-1280px a conversa
   ficava com 300px: nome e telefone quebravam letra a letra e o link passava da bolha.
   A lista fica com 340px (abaixo disso o "Finalizado 1" do filtro não cabe); entre 861 e 1180, 320px com a letra do filtro menor. */
@media (min-width: 1321px) and (max-width: 1440px) { .inbox { grid-template-columns: 340px minmax(0,1fr) 260px; } }
@media (min-width: 1181px) and (max-width: 1320px) { .inbox { grid-template-columns: 340px minmax(0,1fr); } .inbox-lado { display: none; } }
@media (min-width: 861px) and (max-width: 1180px) { .inbox { grid-template-columns: 320px minmax(0,1fr); } .inbox-filtros .seg-cheio button { font-size: 13px; padding: 0 3px; } }
.chat-h .t b, .chat-h .t span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-h > .btn { flex: none; }
.bolha { overflow-wrap: anywhere; }
#msgIn::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* respostas rápidas: a que não cabe some aos poucos na borda (antes era cortada seca) */
.rapidas { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
/* Agenda: "3 compromissos" passava da borda da casa estreita */
.ag-ev b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ag-ev.cheio b { white-space: normal; line-height: 1.25; }
/* Financeiro: a setinha verde (.seta-fin.entrada) pegava o estilo das caixas de digitar (.entrada): borda e enchimento */
.seta-fin.entrada { border: 0; padding: 0; font-size: inherit; }
/* filtros com número: o número menor ficava acima da linha do texto (parecia expoente) */
.chip .cont { font-size: inherit; }

/* 15/10/2026 (Luiz): o seletor de período do Financeiro fica no MEIO do espaço livre, com as setas menores e juntas
   (no ano, "2026" não fica mais com as setas lá longe). */
.fin-nav { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.fin-nav .btn.so-icone { width: 30px; height: 30px; border-radius: 8px; }
.fin-nav .btn.so-icone svg.i.sm { width: 14px; height: 14px; }
.fin-nav-t { text-align: center; white-space: nowrap; padding: 0 4px; }
.fin-nav-mes { min-width: 136px; }
.fin-nav-hoje { min-width: 112px; }
.fin-nav-ano { min-width: 40px; }
.fin-nav input.entrada { width: 172px; height: 38px; padding: 0 10px; } /* 23/10: com 150px o ano cobria o calendário */

/* 15/10/2026: o quadro de vários compromissos mostra cada um (hora + nome) */
.ag-ev.cheio .ag-item { display: -webkit-box; -webkit-box-orient: vertical; font-size: 13px; line-height: 1.35; white-space: normal; overflow: hidden; overflow-wrap: anywhere; color: var(--ink); flex: none; }
.ag-ev.cheio .ag-item i { font-style: normal; font-weight: 700; color: var(--brand-ink); }
.ag-ev.cheio .ag-mais { display: block; font-size: 12.5px; font-weight: 700; color: var(--brand-ink); }
.ag-ev.cheio .ag-item.um { display: block; white-space: nowrap; text-overflow: ellipsis; }

/* 17/10/2026 (teste geral): palavra comprida sem espaço (e-mail de fornecedor, endereço de site, código) não estoura o cartão
   nem passa da tela do celular. Só quebra quando a palavra não cabe: texto comum continua igual. */
.card h3, .card b, .card strong, .card .linha.small, .card p, .card .t span { overflow-wrap: anywhere; }
.card .entre > div:first-child { min-width: 0; }
@media (max-width: 760px) { .tabela td { overflow-wrap: anywhere; } }
.card .selo { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* 23/10/2026 (Luiz): Financeiro em dois lados. A chave Pagamentos | Recebimentos fica no topo e troca a página inteira;
   o resultado do mês fica no fim. No celular a tela ficou mais curta (pedido do Luiz: "tá muito ruim no telefone"). */
.fin-alerta { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--bad-soft); color: var(--bad-ink); font-size: 12.5px; font-weight: 800; }
/* os três cartões filtram a lista; o escolhido fica com a borda azul, sem mudar de tamanho */
.fin-kpi { cursor: pointer; transition: border-color var(--t), box-shadow var(--t); }
.fin-kpi:hover { border-color: var(--brand); }
.fin-kpi.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.fin-kpi:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.fin-limpar svg { width: 14px; height: 14px; }
/* notebook (até 1500px): o "Link de pagamento" (só no simulador) fica só com o ícone, para o período caber numa linha */
@media (min-width: 861px) and (max-width: 1500px) { .fin-link-t { display: none; } .fin-link { padding: 0 12px; } }
/* nada pula ao trocar Pagamentos e Recebimentos: os botões são os mesmos nos dois lados (as setas ficam no meio do espaço livre,
   como em 15/10), e a faixa de vencidos tem altura fixa */
@media (min-width: 861px) {
  .fin-topo > .fin-acoes { display: flex; gap: 8px; }
  .fin-aviso { min-height: 64px; align-items: center; }
}
.fin-aviso { align-items: center; }
/* submenu do menu lateral (Financeiro: Pagamentos e Recebimentos) */
.nav-item.aberto { background: transparent; color: var(--ink); font-weight: 700; }
.nav-item.aberto::before { content: none; }
#side .nav-item > span.nav-seta { flex: none; margin-left: auto; display: inline-grid; color: var(--ink-3); }
.nav-sub { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 6px 21px; padding-left: 10px; border-left: 2px solid var(--line-2); }
.nav-subitem { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font-size: 15px; font-weight: 550; text-align: left; cursor: pointer; position: relative; }
.nav-subitem:hover { background: var(--surface-2); color: var(--ink); }
.nav-subitem.on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.nav-subitem.on::before { content: ''; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 2px; background: var(--brand); }
.nav-subitem > span:first-child { flex: 1; min-width: 0; }
.folha-mais .grade-mais.duas { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grade-mais button .fin-alerta { position: absolute; top: 6px; right: 6px; }
.fin-busca { max-width: 280px; flex: 1; min-width: 180px; }
.fin-res-l { padding: 10px 0; border-bottom: 1px solid var(--line); }
.fin-res-t { padding-top: 12px; font-size: 18px; }
@media (max-width: 860px) {
  /* topo: o período, as setas (no meio) e os botões de lançar, cada um na sua linha e sempre no mesmo lugar */
  .fin-topo { gap: 10px; }
  .fin-topo > .fin-nav { justify-content: center; }
  /* período livre no celular (23/10, Luiz: "o De e o até têm que ficar do lado"): cada data na largura toda, com o "De" e o "até"
     grudados do lado esquerdo da caixa, como o ícone da caixa de busca; as duas caixas alinhadas com os botões de baixo */
  .fin-nav.fin-nav-faixa { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px 0; align-items: stretch; }
  .fin-nav.fin-nav-faixa > :nth-child(1) { grid-area: 1 / 1; }
  .fin-nav.fin-nav-faixa > :nth-child(2) { grid-area: 1 / 2; }
  .fin-nav.fin-nav-faixa > :nth-child(3) { grid-area: 2 / 1; }
  .fin-nav.fin-nav-faixa > :nth-child(4) { grid-area: 2 / 2; }
  .fin-nav.fin-nav-faixa > :nth-child(1), .fin-nav.fin-nav-faixa > :nth-child(3) { display: grid; place-items: center; height: 44px; margin: 0; padding: 0; font-size: 15px; font-weight: 650; color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--line-2); border-right: 1px solid var(--line); border-radius: 10px 0 0 10px; }
  .fin-nav.fin-nav-faixa input.entrada { width: 100%; height: 44px; padding: 0 12px; border-left: 0; border-radius: 0 10px 10px 0; text-align: center; } /* Luiz: "deixa a data ali centralizada" */
  .fin-nav.fin-nav-faixa > .btn { grid-area: 3 / 1 / 4 / 3; }
  .fin-nav.fin-nav-faixa > #finFaixaErro { grid-area: 4 / 1 / 5 / 3; }
  .fin-nav.fin-nav-faixa > #finFaixaErro:empty { display: none; }
  .fin-topo > .fin-acoes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .fin-acoes .btn { justify-content: center; }
  .fin-acoes .btn:first-child:nth-last-child(3) { grid-column: 1 / -1; }
  .fin-aviso { min-height: 76px; }
  /* três números: o primeiro grande; os outros dois lado a lado */
  .grade.fin-kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 10px; }
  .fin-kpis > :first-child { grid-column: 1 / -1; }
  .fin-kpis > :not(:first-child) .val { font-size: 19px; }
  .fin-kpis > :not(:first-child) .kpi-per { display: none; }
  .fin-busca { max-width: none; flex-basis: 100%; }
  .fin-chips { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .fin-chips .chip { justify-content: center; }
  /* cada lançamento em duas linhas: nome e valor; data, situação e botão (sem os rótulos "Data:" e "Valor:") */
  .tabela.responsiva.tab-fin tr { display: grid; grid-template-columns: 40px auto minmax(0, 1fr) auto; grid-template-areas: "lanc lanc lanc valor" ". data sit acao"; row-gap: 6px; align-items: center; padding: 12px 14px; }
  .tabela.responsiva.tab-fin td { padding: 0; width: auto; }
  .tabela.responsiva.tab-fin td[data-r]::before { content: none; }
  .tabela.responsiva.tab-fin td:nth-child(1) { grid-area: data; margin-right: 8px; font-size: 14px; }
  .tabela.responsiva.tab-fin td:nth-child(2) { grid-area: lanc; min-width: 0; }
  .tabela.responsiva.tab-fin td:nth-child(3) { grid-area: sit; min-width: 0; }
  .tabela.responsiva.tab-fin td:nth-child(4) { grid-area: valor; text-align: right; padding-left: 10px; }
  .tabela.responsiva.tab-fin td:nth-child(5) { grid-area: acao; padding-left: 10px; display: block; }
  .tabela.responsiva.tab-fin td.fin-data-rep { display: none; }
  .tab-fin .btn.sm { height: 32px; }
  /* "Para onde foi o dinheiro?" deixa de flutuar por cima da lista */
  .canto-fin { position: static; }
  .canto-fin .btn { width: 100%; justify-content: center; box-shadow: none; }
}

/* DEMONSTRAÇÃO: a faixa "Demonstração" do topo ocupa 30px (no painel de verdade ela não existe e --faixa é 0) */
:root { --faixa: 30px; }
