/* =====================================================================
   AM Financeira: tokens e componentes no visual do Workius.
   Medidas em referencias/DESIGN-WORKIUS.md (lidas ao vivo em 13/11/2026).
   Código próprio: nada de arquivo, logo ou marca do Workius.
   ===================================================================== */
@font-face { font-family: "Satoshi"; src: url("../vendor/fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../vendor/fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../vendor/fonts/satoshi-700.woff2") format("woff2"); font-weight: 600 900; font-display: swap; }

:root {
  --accent: #3b82f6;
  --accent-forte: color-mix(in srgb, var(--accent) 82%, #000);
  --accent-10: color-mix(in srgb, var(--accent) 10%, transparent);
  --accent-30: color-mix(in srgb, var(--accent) 30%, transparent);
  --fg: #171717;
  --app: #ffffff;
  --card: #f5f6f8;
  --borda: rgba(15,23,42,.06);
  --card-2: #ffffff;
  --sidebar: #121218;
  --raio: 20px;
  --s400: #94a3b8; --s500: #64748b; --s600: #475569; --s700: #334155; --s800: #1e293b; --s900: #0f172a;
  --s100: #f1f5f9; --s200: #e2e8f0;
  --verde: #059669; --verde-bg: #d1fae5; --vermelho: #ef4444; --vermelho-bg: #fee2e2;
  --ambar: #d97706; --ambar-bg: #fef3c7; --violeta: #7c3aed; --violeta-bg: #ede9fe;
  --linha: rgba(0,0,0,.05);
  --mola: cubic-bezier(.34,1.56,.64,1);
  color-scheme: light;
}
.dark {
  --app: #0c0c0e; --card: #18181b; --borda: rgba(255,255,255,.06); --card-2: #232328; --fg: #f4f4f5;
  --s400: #71717a; --s500: #a1a1aa; --s600: #a1a1aa; --s700: #d4d4d8; --s800: #e4e4e7; --s900: #fafafa;
  --s100: #27272a; --s200: #3f3f46;
  --verde-bg: rgba(16,185,129,.15); --vermelho-bg: rgba(239,68,68,.15); --ambar-bg: rgba(245,158,11,.15); --violeta-bg: rgba(139,92,246,.15);
  --accent-10: color-mix(in srgb, var(--accent) 18%, transparent);
  --linha: rgba(255,255,255,.07);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
html { scrollbar-color: color-mix(in srgb, var(--accent) 45%, transparent) transparent; scrollbar-width: thin; -webkit-text-size-adjust: 100%; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }
body { font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--app); color: var(--fg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-size: 15px; line-height: 1.45; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
.ic { flex-shrink: 0; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- barra lateral ---------- */
.sb { position: fixed; z-index: 50; top: 0; left: 0; bottom: 0; width: 280px; background: var(--sidebar); color: rgba(255,255,255,.6); display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .3s ease; }
.sb.aberta { transform: none; }
.sb-veu { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .3s; }
.sb-veu.on { opacity: 1; pointer-events: auto; }
@media (min-width: 1024px) {
  .sb { transform: none; margin: 12px; width: 240px; height: calc(100vh - 24px); height: calc(100dvh - 24px); border-radius: 16px; }
  .sb-veu { display: none; }
}
.sb-logo { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; flex-shrink: 0; }
.marca { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.marca-q { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.marca small { display: block; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.4); letter-spacing: .08em; text-transform: uppercase; margin-top: 1px; }
.sb-fechar { color: rgba(255,255,255,.6); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; }
@media (min-width: 1024px) { .sb-fechar { display: none; } }
.sb-perfil { margin: 4px 12px 8px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); text-align: left; }
.sb-perfil .q { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.sb-perfil small { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; color: rgba(255,255,255,.35); letter-spacing: .06em; }
.sb-perfil b { display: block; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.9); }
.sb-nav { flex: 1; overflow-y: auto; padding: 4px 12px 12px; scrollbar-width: none; }
.sb-nav::-webkit-scrollbar { display: none; }
.sb-grupo { margin-top: 12px; }
.sb-grupo + .sb-grupo { border-top: 1px solid rgba(255,255,255,.06); padding-top: 12px; }
.sb-tit { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.3); padding: 0 12px; margin-bottom: 6px; }
.sb-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.6); margin-bottom: 2px; min-height: 44px; transition: background .2s, color .2s; }
.sb-item .qi { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.sb-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.sb-item.ativo { background: var(--accent); color: #fff; box-shadow: 0 6px 10px -4px var(--accent-30), 0 3px 5px -3px var(--accent-30); }
.sb-item.ativo .qi { background: rgba(255,255,255,.2); }
.sb-item .badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.sb-pe { border-top: 1px solid rgba(255,255,255,.06); padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.sb-pe .av { width: 36px; height: 36px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.sb-pe b { display: block; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-pe small { display: block; font-size: 12px; color: rgba(255,255,255,.4); }
.sb-pe > div { min-width: 0; flex: 1; }
.sb-sair { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: rgba(255,255,255,.5); }
.sb-sair:hover { color: #f87171; background: rgba(255,255,255,.06); }

/* ---------- conteúdo ---------- */
.ct { min-height: 100vh; min-height: 100dvh; }
@media (min-width: 1024px) { .ct { margin-left: 264px; } }
.hd { height: 60px; display: flex; align-items: center; gap: 8px; padding: 0 12px; position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--app) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@media (min-width: 1024px) { .hd { padding: 0 24px; } }
.hd-menu { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: var(--s700); }
@media (min-width: 1024px) { .hd-menu, .hd-logo { display: none !important; } }
.hd-logo { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--s800); }
.hd-logo .marca-q { width: 30px; height: 30px; }
.hd-ola { display: none; }
@media (min-width: 1024px) { .hd-ola { display: block; } }
.hd-ola p { font-size: 15px; font-weight: 500; color: var(--s700); }
.hd-ola p b { color: var(--accent); font-weight: 600; }
.hd-ola small { display: block; font-size: 13px; color: var(--s400); text-transform: capitalize; }
.hd-acoes { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.hd-bt { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: var(--s500); position: relative; -webkit-tap-highlight-color: transparent; }
@media (hover: none) { .hd-bt:hover, .hd-bt:focus, .hd-bt:active { background: none; } }
.hd-bt:hover { background: var(--card); color: var(--s800); }
.hd-bt .ponto { position: absolute; top: 10px; right: 11px; width: 7px; height: 7px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 2px var(--app); }
.hd-sep { width: 1px; height: 20px; background: var(--s200); margin: 0 4px; }
.mn { padding: 16px 16px 96px; max-width: 1760px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 640px) { .mn { padding: 20px; } }
@media (min-width: 1024px) { .mn { padding: 24px; } }
@media (min-width: 1920px) { .mn { padding: 24px 40px; } }

/* ---------- cabeçalho de página ---------- */
.pg-cab { display: flex; flex-direction: column; gap: 4px; }
.pg-cab h1 { font-size: 24px; font-weight: 700; color: var(--s800); letter-spacing: -.02em; line-height: 1.2; }
.pg-cab p { font-size: 15px; color: var(--s400); }
.pg-cab .voltar { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--s500); margin-bottom: 4px; min-height: 32px; }
.barra { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.busca { position: relative; width: 100%; }
@media (min-width: 640px) { .busca { width: 256px; } }
.busca .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--s400); }
.busca input { width: 100%; height: 40px; border-radius: 999px; background: var(--card); border: 1px solid transparent; padding: 0 16px 0 40px; font-size: 15px; outline: none; }
.busca input:focus { border-color: var(--accent); background: var(--card-2); }
.abas { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--card); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.abas::-webkit-scrollbar { display: none; }
.aba { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--s500); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: background .2s, color .2s; }
.aba:hover { color: var(--s800); }
.aba.on { background: var(--card-2); color: var(--s800); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.dark .aba.on { background: #2a2a30; }
.aba .n { font-size: 12px; color: var(--s400); }
.sel { height: 40px; border-radius: 999px; background: var(--card); border: 1px solid transparent; padding: 0 32px 0 14px; font-size: 14px; font-weight: 600; color: var(--s600); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; max-width: 100%; }

/* ---------- botões ---------- */
.bt { height: 40px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; font-weight: 600; white-space: nowrap; transition: transform .2s var(--mola), background .2s, box-shadow .2s; }
.bt:active { transform: scale(.97); }
.bt-p { background: var(--accent); color: #fff; }
.bt-p:hover { background: var(--accent-forte); }
.bt-s { background: var(--card-2); color: var(--s700); box-shadow: inset 0 0 0 1px var(--s200); }
.bt-s:hover { background: var(--card); }
.bt-t { color: var(--accent); padding: 0 10px; }
.bt-v { background: var(--verde); color: #fff; }
.bt-pq { height: 36px; font-size: 13px; padding: 0 12px; }
.bt-ml { margin-left: auto; }
.bt[disabled] { opacity: .5; pointer-events: none; }
.bt-ic { width: 40px; padding: 0; }

/* ---------- cards ---------- */
.bento { background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); padding: 20px; transition: transform .35s var(--mola), box-shadow .35s var(--mola); min-width: 0; }
@media (min-width: 640px) { .bento { padding: 24px; } }
.bento.mexe:hover { transform: translateY(-2px); box-shadow: 0 2px 8px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.04); }
.dark .bento.mexe:hover { box-shadow: 0 1px 3px rgba(0,0,0,.2), 0 4px 12px rgba(0,0,0,.15); }
.bento.mexe:active { transform: scale(.985); }
.bento.azul { background: var(--accent); color: #fff; border-color: transparent; }
.bento.p3 { padding: 12px; }
.cc { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.cc .q { width: 32px; height: 32px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.cc h2 { font-size: 15px; font-weight: 600; color: var(--s800); }
.cc small { display: block; font-size: 12px; color: var(--s400); }
.cc .ver { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--s600); background: var(--s100); border-radius: 12px; padding: 6px 12px; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.q-azul { background: var(--accent-10); color: var(--accent); }
.q-violeta { background: var(--violeta-bg); color: var(--violeta); }
.q-vermelho { background: var(--vermelho-bg); color: var(--vermelho); }
.q-verde { background: var(--verde-bg); color: var(--verde); }
.q-ambar { background: var(--ambar-bg); color: var(--ambar); }
.q-branco { background: var(--card-2); color: var(--accent); }

/* ---------- grades ---------- */
.g { display: grid; gap: 20px; grid-template-columns: minmax(0,1fr); }
@media (min-width: 768px) { .g-md2 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1536px) { .g-l1 { grid-template-columns: repeat(12, minmax(0,1fr)); } .g-l1 > :nth-child(1) { grid-column: span 4; } .g-l1 > :nth-child(2) { grid-column: span 5; } .g-l1 > :nth-child(3) { grid-column: span 3; } }
@media (min-width: 768px) and (max-width: 1535px) { .g-l1 > :nth-child(1) { grid-column: 1 / -1; } }
@media (min-width: 1280px) { .g-75 { grid-template-columns: 7fr 5fr; } .g-57 { grid-template-columns: 5fr 7fr; } .g-84 { grid-template-columns: 8fr 4fr; } }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
@media (min-width: 1536px) { .kpis { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.kpi { background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); padding: 16px; min-width: 0; display: flex; flex-direction: column; }
@media (min-width: 640px) { .kpi { padding: 20px; } }
.kpi-c { display: flex; align-items: center; gap: 10px; }
.kpi-c .q { width: 32px; height: 32px; border-radius: 12px; background: var(--card-2); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.kpi-c span { font-size: 13px; font-weight: 600; color: var(--s700); line-height: 1.25; }
@media (min-width: 640px) { .kpi-c span { font-size: 15px; } }
.stat { letter-spacing: -.02em; font-weight: 400; line-height: 1.15; font-size: clamp(1.125rem, 5.4vw, 1.875rem); color: var(--s900); margin-top: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 640px) { .stat { margin-top: 16px; } }
@media (min-width: 1920px) { .stat { font-size: 2.25rem; } }
.kpi small { font-size: 12px; color: var(--s400); margin-top: 4px; }
.kpi.azul { background: var(--accent); }
.kpi.azul .q { background: rgba(255,255,255,.2); color: #fff; }
.kpi.azul span, .kpi.azul .stat { color: #fff; }
.kpi.azul small { color: rgba(255,255,255,.75); }

/* ---------- lista ---------- */
.lista { display: flex; flex-direction: column; gap: 6px; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; width: 100%; text-align: left; transition: background .2s; min-height: 56px; }
.li:hover { background: var(--card-2); }
.li .lic { width: 40px; height: 40px; border-radius: 12px; display: none; place-items: center; flex-shrink: 0; }
@media (min-width: 640px) { .li .lic { display: grid; } }
.li .lt { min-width: 0; flex: 1; }
.li .lt b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; font-weight: 600; color: var(--s800); line-height: 1.3; }
@media (min-width: 640px) { .li .lt b { -webkit-line-clamp: 1; } }
.li .lt b code { font: 600 12px/1 "Satoshi", sans-serif; color: var(--s400); margin-left: 6px; letter-spacing: .02em; }
.li .lt small { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--s400); margin-top: 3px; flex-wrap: wrap; }
.av-i { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-10); color: var(--accent); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; flex-shrink: 0; }
.li .prazo { display: none; align-items: center; gap: 4px; font-size: 12px; color: var(--s400); white-space: nowrap; }
@media (min-width: 768px) { .li .prazo { display: flex; } }
.li .prazo.atraso { color: var(--vermelho); font-weight: 600; }
.li .val { font-size: 15px; font-weight: 700; color: var(--s800); text-align: right; white-space: nowrap; }
@media (min-width: 640px) { .li .val { width: 104px; } }
.li .chip { display: none; }
@media (min-width: 640px) { .li .chip { display: inline-flex; } }
.li .chev { color: var(--s400); }
.chip { height: 24px; border-radius: 999px; padding: 0 10px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; background: var(--s100); color: var(--s600); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.sem::before { display: none; }
.c-azul { background: var(--accent-10); color: #1d4ed8; } .dark .c-azul { color: #93c5fd; }
.c-verde { background: var(--verde-bg); color: #047857; } .dark .c-verde { color: #6ee7b7; }
.c-vermelho { background: var(--vermelho-bg); color: #b91c1c; } .dark .c-vermelho { color: #fca5a5; }
.c-ambar { background: var(--ambar-bg); color: #b45309; } .dark .c-ambar { color: #fcd34d; }
.c-violeta { background: var(--violeta-bg); color: #6d28d9; } .dark .c-violeta { color: #c4b5fd; }
.c-cinza { background: var(--s100); color: var(--s600); }

/* item pequeno (painel) */
.lp { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; width: 100%; text-align: left; min-height: 48px; }
.lp:hover { background: var(--card-2); }
.lp .q { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.lp .lt { flex: 1; min-width: 0; }
.lp b { display: block; font-size: 13px; font-weight: 600; color: var(--s700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp small { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--s400); }
.lp .val { font-size: 13px; font-weight: 700; color: var(--s800); white-space: nowrap; }

/* ---------- vazio / carregando ---------- */
.vazio { padding: 40px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vazio .q { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; background: var(--s100); color: var(--s500); margin-bottom: 8px; }
.vazio b { font-size: 15px; font-weight: 500; color: var(--s500); }
.vazio small { font-size: 13px; color: var(--s400); }
.vazio .bt-t { margin-top: 6px; }
.esq { border-radius: 12px; background: linear-gradient(90deg, var(--s100), var(--card-2), var(--s100)); background-size: 200% 100%; animation: esq 1.2s infinite linear; height: 56px; }
@keyframes esq { to { background-position: -200% 0; } }

/* ---------- card azul (comissões) ---------- */
.fin-chip { display: inline-flex; border-radius: 8px; background: rgba(255,255,255,.15); color: rgba(255,255,255,.8); font-size: 12px; font-weight: 600; padding: 4px 8px; }
.fin-leg { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 2px; }
.fin-linha { display: flex; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 16px; padding-top: 12px; font-size: 13px; color: rgba(255,255,255,.85); }
.fin-linha i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.barras { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin-top: 18px; }
.barras div { flex: 1; border-radius: 999px; background: rgba(255,255,255,.35); min-height: 4px; }
.barras div.at { background: #fff; }
.meses { display: flex; gap: 6px; margin-top: 6px; }
.meses span { flex: 1; text-align: center; font-size: 11px; color: rgba(255,255,255,.6); }
.meses span.at { color: #fff; font-weight: 700; }
.caixas { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 16px; }
.caixas > div { border-radius: 12px; background: rgba(255,255,255,.1); padding: 8px 12px; min-width: 0; }
.caixas small { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.7); }
.caixas b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 640px) { .caixas b { font-size: 15px; } }

/* mini estatística */
.mini { background: var(--card-2); border-radius: 16px; padding: 12px; min-width: 0; }
.mini small { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--s400); }
.mini b { display: block; font-size: 24px; font-weight: 300; color: var(--s800); margin-top: 4px; line-height: 1.15; }
.mini span { font-size: 12px; color: var(--s400); }

/* funil */
.funil { display: flex; flex-direction: column; gap: 10px; }
.funil-l { display: grid; grid-template-columns: 96px minmax(0,1fr) 64px; gap: 10px; align-items: center; font-size: 13px; }
.funil-l span { color: var(--s600); font-weight: 600; }
.funil-l .tr { height: 10px; border-radius: 999px; background: var(--card-2); overflow: hidden; }
.funil-l .tr i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.funil-l b { text-align: right; color: var(--s800); font-weight: 700; }
.funil-l b small { font-weight: 500; color: var(--s400); margin-left: 4px; font-size: 12px; }

/* rodapé de totais */
.totais { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--linha); margin-top: 16px; padding-top: 12px; gap: 8px; }
.totais small { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--s400); letter-spacing: .04em; }
.totais b { font-size: 15px; font-weight: 600; color: var(--s800); }
.t-verde { color: var(--verde) !important; } .t-vermelho { color: var(--vermelho) !important; }

/* ---------- detalhe / formulários ---------- */
.det-cab { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.det-cab .q { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-10); color: var(--accent); flex-shrink: 0; }
.det-cab .t { flex: 1; min-width: 200px; }
.det-cab h1 { font-size: 22px; font-weight: 700; color: var(--s800); letter-spacing: -.02em; line-height: 1.2; }
.det-cab p { font-size: 14px; color: var(--s400); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.det-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.etapas { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; scroll-padding: 4px; }
.etapas::-webkit-scrollbar { display: none; }
.etapa { flex: 1; min-width: 92px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--s400); }
.etapa i { height: 6px; border-radius: 999px; background: var(--s200); }
.etapa.feita i { background: var(--accent); }
.etapa.agora { color: var(--accent); }
.etapa.agora i { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-10); }
.dl { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 16px; }
@media (min-width: 640px) { .dl { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.dl small { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--s400); letter-spacing: .04em; }
.dl b { display: block; font-size: 15px; font-weight: 600; color: var(--s800); margin-top: 2px; overflow-wrap: anywhere; }
.conta { display: flex; flex-direction: column; }
.conta div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--linha); font-size: 14px; color: var(--s600); }
.conta div b { color: var(--s800); font-weight: 600; white-space: nowrap; }
.conta div.tot { border-bottom: 0; border-top: 1px solid var(--s200); margin-top: 4px; font-weight: 700; color: var(--s800); font-size: 15px; }
.conta div.tot b { font-size: 17px; }
.hist { display: flex; flex-direction: column; }
.hist > div { display: flex; gap: 12px; padding: 10px 0; position: relative; }
.hist > div::before { content: ""; position: absolute; left: 13px; top: 38px; bottom: -4px; width: 2px; background: var(--s200); }
.hist > div:last-child::before { display: none; }
.hist .q { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; position: relative; z-index: 1; }
.hist p { font-size: 14px; color: var(--s700); }
.hist small { font-size: 12px; color: var(--s400); }
.chk { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card-2); min-height: 52px; }
.chk .q { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.chk .lt { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--s700); }
.chk .lt small { display: block; font-size: 12px; font-weight: 500; color: var(--s400); }
.pilha { display: flex; flex-direction: column; gap: 8px; }
.msg { background: var(--card-2); border-radius: 16px; padding: 14px; font-size: 14px; color: var(--s700); white-space: pre-wrap; line-height: 1.5; }
.aviso { display: flex; gap: 10px; align-items: flex-start; border-radius: 14px; padding: 12px 14px; font-size: 14px; background: var(--ambar-bg); color: #92400e; }
.dark .aviso { color: #fcd34d; }
.aviso.azul { background: var(--accent-10); color: #1e40af; }
.dark .aviso.azul { color: #93c5fd; }

/* ---------- modal ---------- */
.md-fundo { position: fixed; inset: 0; z-index: 80; background: rgba(15,23,42,.45); display: flex; align-items: flex-end; justify-content: center; padding: 0; opacity: 0; transition: opacity .2s; }
.md-fundo.on { opacity: 1; }
@media (min-width: 640px) { .md-fundo { align-items: center; padding: 24px; } }
.md { background: var(--app); width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; border-radius: 24px 24px 0 0; padding: 20px; transform: translateY(16px); transition: transform .3s var(--mola); }
.md-fundo.on .md { transform: none; }
@media (min-width: 640px) { .md { border-radius: 24px; padding: 24px; } }
.md-c { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.md-c h2 { font-size: 18px; font-weight: 700; color: var(--s800); flex: 1; }
.md-x { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--s500); }
.md-x:hover { background: var(--card); }
.form { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
@media (min-width: 640px) { .form.d2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .form .cheio { grid-column: 1 / -1; } }
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo label { font-size: 13px; font-weight: 600; color: var(--s600); }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 44px; border-radius: 12px; background: var(--card); border: 1px solid transparent; padding: 10px 14px; font-size: 15px; outline: none; transition: border-color .2s, background .2s; }
.campo textarea { min-height: 84px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--accent); background: var(--card-2); box-shadow: 0 0 0 4px var(--accent-10); }
.campo .dica { font-size: 12px; color: var(--s400); }
.md-pe { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.liga { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--s700); cursor: pointer; }
.liga input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------- tabela ---------- */
.tab-w { overflow-x: auto; }
.tab { width: 100%; border-collapse: collapse; font-size: 14px; }
.tab th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--s400); padding: 8px 10px; white-space: nowrap; }
.tab td { padding: 10px; border-top: 1px solid var(--linha); color: var(--s700); white-space: nowrap; }
.tab td.n, .tab th.n { text-align: right; }
.tab tr.tot td { font-weight: 700; color: var(--s800); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 99; background: var(--s900); color: var(--app); padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 600; opacity: 0; transition: opacity .25s, transform .3s var(--mola); pointer-events: none; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- login ---------- */
.lg { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.lg-card { width: 100%; max-width: 400px; background: var(--card-2); border: 1px solid var(--borda); box-shadow: 0 2px 8px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.04); border-radius: 24px; padding: 32px 24px; }
@media (min-width: 640px) { .lg-card { padding: 40px 36px; } }
.lg-card .marca { color: var(--s800); justify-content: center; margin-bottom: 24px; }
.lg-card .marca small { color: var(--s400); }
.lg-card h1 { font-size: 22px; font-weight: 700; text-align: center; color: var(--s800); }
.lg-card > p { font-size: 14px; text-align: center; color: var(--s400); margin: 4px 0 24px; }
.senha { position: relative; }
.senha input { padding-right: 48px; }
.senha button { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; color: var(--s400); }
.lg-demo { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--linha); display: flex; flex-direction: column; gap: 8px; }
.lg-demo small { font-size: 12px; color: var(--s400); text-align: center; }
.lg-erro { color: var(--vermelho); font-size: 13px; font-weight: 600; text-align: center; min-height: 18px; }

/* celular: campos com 16px (iPhone não dá zoom ao tocar) */
@media (max-width: 767px) {
  .campo input, .campo select, .campo textarea, .busca input, .sel, .chk input { font-size: 17px; }
}
/* celular: abas e etapas sem faixa correndo de lado */
@media (max-width: 639px) {
  .abas { flex-wrap: wrap; justify-content: center; border-radius: 20px; overflow: visible; }
  .etapas { overflow: visible; }
  .etapa { min-width: 0; font-size: 0; gap: 0; }
  .etapa.agora { font-size: 12px; gap: 6px; flex: 2.2; text-align: center; }
}
.det-cab p .sep + .sep::before { content: "·"; margin-right: 8px; color: var(--s400); }

/* ---------- celular: centralizado (regra do Caio) ---------- */
@media (max-width: 1023px) {
  .pg-cab, .vazio { text-align: center; align-items: center; }
  .barra { justify-content: center; }
  .barra .bt-ml { margin-left: 0; }
  .det-cab { flex-direction: column; text-align: center; }
  .det-cab p { justify-content: center; }
  .det-acoes { justify-content: center; }
  .cc { justify-content: flex-start; }
}
/* Quadro (kanban) das propostas */
.visao { flex-shrink: 0; }
.kb { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; min-width: 0; }
.kb-col { background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 240px; scroll-snap-align: start; transition: background .2s, border-color .2s; }
.kb-col.alvo { border-color: var(--accent); background: var(--accent-10); }
.kb-cab { display: flex; align-items: center; gap: 8px; padding: 4px 4px 0; font-size: 15px; color: var(--s800); flex-wrap: wrap; }
.kb-cab .n { min-width: 24px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--card-2); font-size: 13px; font-weight: 700; color: var(--s600); display: inline-grid; place-items: center; }
.kb-cab small { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--s500); }
.kb-ponto { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.kb-ponto.c-cinza { background: var(--s400); } .kb-ponto.c-violeta { background: var(--violeta); } .kb-ponto.c-verde { background: var(--verde); } .kb-ponto.c-ambar { background: var(--ambar); } .kb-ponto.c-azul { background: var(--accent); }
.kb-nota { font-size: 13px; color: var(--s400); padding: 0 4px; }
.kb-lista { display: flex; flex-direction: column; gap: 8px; }
.kb-card { display: flex; flex-direction: column; gap: 4px; background: var(--card-2); border: 1px solid var(--borda); border-radius: 16px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(15,23,42,.04); cursor: grab; transition: box-shadow .2s, transform .2s; -webkit-tap-highlight-color: transparent; }
.kb-card:hover { box-shadow: 0 2px 8px rgba(15,23,42,.06), 0 8px 20px rgba(15,23,42,.05); }
.kb-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.kb-card.arrasta { opacity: .5; }
.kb-card b { font-size: 15px; font-weight: 600; color: var(--s800); line-height: 1.3; }
.kb-card small { font-size: 13px; color: var(--s500); line-height: 1.35; }
.kb-topo, .kb-pe { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kb-topo code { font: 600 12px/1 "Satoshi", sans-serif; color: var(--s400); }
.kb-topo .prazo { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--s400); white-space: nowrap; }
.kb-topo .prazo.atraso { color: var(--vermelho); font-weight: 600; }
.kb-pe { margin-top: 6px; }
.kb-pe .val { font-size: 14px; font-weight: 700; color: var(--s800); }
.kb-vazio { font-size: 13px; color: var(--s400); text-align: center; padding: 20px 0; }
@media (max-width: 639px) { .kb { grid-auto-columns: 82%; } }

/* Painel de resumo (abre ao tocar no cartão do Quadro) */
.rs-fundo { position: fixed; inset: 0; z-index: 70; background: rgba(15,23,42,.28); display: flex; justify-content: flex-end; align-items: flex-end; opacity: 0; transition: opacity .2s; }
.rs-fundo.on { opacity: 1; }
.rs { background: var(--app); width: 100%; max-height: 92vh; max-height: 92dvh; overflow-y: auto; border-radius: 24px 24px 0 0; padding: 20px; display: flex; flex-direction: column; gap: 16px; transform: translateY(24px); transition: transform .3s var(--mola); box-shadow: -8px 0 32px rgba(15,23,42,.12); }
.rs-fundo.on .rs { transform: none; }
@media (min-width: 768px) {
  .rs-fundo { align-items: stretch; }
  .rs { width: 460px; max-height: none; height: 100%; border-radius: 24px 0 0 24px; padding: 28px; transform: translateX(32px); }
}
.rs-cab { display: flex; align-items: flex-start; gap: 12px; }
.rs-cab > div { flex: 1; min-width: 0; }
.rs-cab small { font-size: 13px; font-weight: 600; color: var(--s400); }
.rs-cab h2 { font-size: 24px; font-weight: 700; color: var(--s900); line-height: 1.2; margin-top: 2px; }
.rs-etapa { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--s500); }
.rs-etapa > span:last-child { display: inline-flex; align-items: center; gap: 6px; }
.rs-etapa .atraso { color: var(--vermelho); font-weight: 700; }
.rs-trilha { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.rs-trilha li { font-size: 11px; color: var(--s400); text-align: center; display: flex; flex-direction: column; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-trilha li span { height: 8px; border-radius: 999px; background: var(--s200); }
.rs-trilha li.feito span { background: var(--accent); opacity: .45; }
.rs-trilha li.agora span { background: var(--accent); }
.rs-trilha li { color: transparent; }
.rs-trilha li.agora { color: var(--accent); font-weight: 700; overflow: visible; }
.rs-trilha li.agora:first-child { text-align: left; } .rs-trilha li.agora:last-child { text-align: right; direction: rtl; }
.rs-bts { display: flex; flex-direction: column; gap: 10px; }
.rs-bt { width: 100%; height: 56px; border-radius: 16px; font-size: 17px; font-weight: 700; justify-content: center; gap: 10px; }
.rs-wa { background: #16a34a; color: #fff; }
.rs-wa:hover { background: #15803d; }
.rs-aviso { font-size: 15px; }
.rs-dados { display: grid; gap: 2px; background: var(--card); border: 1px solid var(--borda); border-radius: 20px; padding: 8px 16px; }
.rs-dados div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linha); }
.rs-dados div:last-child { border-bottom: 0; }
.rs-dados dt { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--s500); flex-shrink: 0; }
.rs-dados dd { font-size: 16px; font-weight: 600; color: var(--s800); text-align: right; min-width: 0; }
@media (max-width: 767px) { .rs-cab { position: relative; text-align: center; padding: 0 44px; } .rs-cab .md-x { position: absolute; right: -8px; top: -6px; } .rs-etapa { justify-content: center; } .rs-sub { text-align: center; } }
.rs-sub { font-size: 15px; font-weight: 700; color: var(--s700); }
.rs-bancos, .rs-hist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rs-bancos li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--borda); border-radius: 16px; padding: 12px 14px; font-size: 15px; }
.rs-bancos li b { flex: 1; color: var(--s800); }
.rs-bancos li small { width: 100%; font-size: 14px; color: var(--s500); }
.rs-hist li { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--s700); padding-left: 14px; border-left: 3px solid var(--s200); }
.rs-hist li small { font-size: 12px; color: var(--s400); }

/* Logo personalizada */
.marca-img { display: block; max-height: 36px; max-width: 170px; width: auto; object-fit: contain; }
.lg-card .marca-img { max-height: 48px; margin: 0 auto; }
.hd-logo .marca-img { max-height: 30px; max-width: 140px; }

/* Tamanho da letra (Configurações) */
[data-letra="g"] .mn, [data-letra="g"] .rs, [data-letra="g"] .md { zoom: 1.1; }
[data-letra="gg"] .mn, [data-letra="gg"] .rs, [data-letra="gg"] .md { zoom: 1.2; }

/* Configurações */
.cf { display: flex; flex-direction: column; gap: 36px; max-width: 1000px; }
.cf-sec > h2 { font-size: 17px; font-weight: 700; color: var(--s800); }
.cf-sec > p.cf-d { font-size: 14px; color: var(--s500); margin-top: 2px; }
.cf-sec > p.cf-d a { color: var(--accent); font-weight: 600; }
.cf-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.cf-op { text-align: left; background: var(--card); border: 1px solid var(--borda); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 4px; min-height: 104px; transition: border-color .2s, background .2s; -webkit-tap-highlight-color: transparent; }
.cf-op:hover { border-color: var(--accent-30); }
.cf-op.on { border-color: var(--accent); background: var(--accent-10); box-shadow: 0 0 0 1px var(--accent) inset; }
.cf-op .qi { color: var(--accent); margin-bottom: 8px; }
.cf-op b { font-size: 16px; color: var(--s800); }
.cf-op small { font-size: 13px; color: var(--s500); }
.cf-op .aa { font-weight: 700; color: var(--s800); line-height: 1; margin-bottom: 8px; }
.cf-it { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--card); border: 1px solid var(--borda); border-radius: 18px; padding: 16px 18px; min-height: 76px; transition: border-color .2s; width: 100%; -webkit-tap-highlight-color: transparent; }
.cf-it:hover { border-color: var(--accent-30); }
.cf-it .q { width: 44px; height: 44px; border-radius: 12px; background: var(--card-2); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.cf-it.perigo .q { color: var(--vermelho); }
.cf-it b { display: block; font-size: 16px; color: var(--s800); }
.cf-it small { display: block; font-size: 13px; color: var(--s500); margin-top: 2px; }
.cf-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.cf-logo { background: var(--card); border: 1px solid var(--borda); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.cf-logo b { font-size: 15px; color: var(--s800); }
.cf-logo .caixa { height: 96px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; padding: 12px; }
.cf-logo .caixa.escura { background: #121218; color: rgba(255,255,255,.7); }
.cf-logo .caixa.clara { background: #fff; border: 2px dashed var(--s200); color: var(--s400); }
.cf-logo .caixa img { max-height: 64px; max-width: 100%; object-fit: contain; }
.cf-logo small { font-size: 12px; color: var(--s400); }
.cf-app { background: var(--card); border: 1px solid var(--borda); border-radius: 20px; padding: 20px; margin-top: 14px; display: flex; flex-direction: column; gap: 16px; }
.cf-app-cab { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cf-app-cab img { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; }
.cf-app-cab > div { flex: 1; min-width: 200px; }
.cf-app-cab b { font-size: 16px; color: var(--s800); }
.cf-app-cab p { font-size: 14px; color: var(--s500); margin-top: 2px; }
.cf-passos { list-style: none; padding: 4px 16px; display: flex; flex-direction: column; counter-reset: p; background: var(--card-2); border: 1px solid var(--borda); border-radius: 16px; }
.cf-passos li { counter-increment: p; display: flex; gap: 14px; padding: 8px 0; }
.cf-passos li + li { border-top: 1px solid var(--linha); }
.cf-passos li::before { content: counter(p); width: 30px; height: 30px; border-radius: 50%; background: var(--accent-10); color: var(--accent); font-weight: 700; font-size: 14px; display: grid; place-items: center; flex-shrink: 0; }
.cf-passos b { display: block; font-size: 15px; color: var(--s800); }
.cf-passos span { display: block; font-size: 14px; color: var(--s500); margin-top: 2px; line-height: 1.5; }
.cf-nota { font-size: 13px; color: var(--s400); }
.cf-cores { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; margin-top: 14px; }
.cf-bolas { display: grid; grid-template-columns: repeat(6, 44px); gap: 10px; }
.cf-bola { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; -webkit-tap-highlight-color: transparent; transition: transform .2s var(--mola); }
.cf-bola:hover { transform: scale(1.08); }
.cf-bola.on { box-shadow: 0 0 0 3px var(--app), 0 0 0 5px currentColor; }
.cf-hex { display: flex; flex-direction: column; gap: 10px; }
.cf-hex input { width: 140px; height: 44px; border-radius: 12px; background: var(--card); border: 1px solid var(--borda); padding: 0 14px; font-size: 16px; font-weight: 600; color: var(--s800); text-transform: uppercase; }
.cf-prev { background: var(--card); border: 1px solid var(--borda); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 200px; }
.cf-prev small { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--s400); text-transform: uppercase; }
.cf-prev .sb-item { background: var(--accent); color: #fff; border-radius: 12px; height: 44px; padding: 0 14px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
@media (max-width: 767px) {
  .cf-sec > h2, .cf-sec > p.cf-d { text-align: center; }
  .cf-op { align-items: center; text-align: center; }
  .cf-cores { justify-content: center; }
  .cf-app-cab { flex-direction: column; text-align: center; }
  .cf-app-cab .bt { width: 100%; }
  .cf-bolas { grid-template-columns: repeat(6, 40px); gap: 8px; } .cf-bola { width: 40px; height: 40px; }
  .cf-hex, .cf-prev { align-items: center; width: 100%; }
}

/* Assistente (balão) */
.ia-balao { position: fixed; right: 20px; bottom: 20px; z-index: 60; height: 60px; min-width: 60px; padding: 0 22px 0 18px; border-radius: 999px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; box-shadow: 0 8px 24px var(--accent-30), 0 2px 6px rgba(15,23,42,.15); transition: transform .3s var(--mola); -webkit-tap-highlight-color: transparent; }
.ia-balao:hover { transform: translateY(-2px) scale(1.02); }
.ia-balao[hidden] { display: none; }
@media (max-width: 639px) { .ia-balao { right: 16px; bottom: 16px; padding: 0; width: 60px; justify-content: center; } .ia-balao span { display: none; } }
.ia-painel { position: fixed; z-index: 75; right: 20px; bottom: 20px; width: 420px; height: min(680px, calc(100dvh - 40px)); background: var(--app); border: 1px solid var(--borda); border-radius: 24px; box-shadow: 0 16px 48px rgba(15,23,42,.18); display: flex; flex-direction: column; overflow: hidden; }
.ia-painel[hidden] { display: none; }
@media (max-width: 639px) { .ia-painel { inset: 0; width: auto; height: 100dvh; border-radius: 0; border: 0; } }
.ia-cab { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--linha); }
.ia-cab > div { flex: 1; min-width: 0; }
.ia-cab b { display: block; font-size: 17px; color: var(--s900); }
.ia-cab small { font-size: 13px; color: var(--s500); }
.ia-av { width: 36px; height: 36px; border-radius: 12px; background: var(--accent-10); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.ia-av.g { width: 56px; height: 56px; border-radius: 18px; }
.ia-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.ia-boas { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin: auto 0; padding: 12px 4px; }
.ia-boas b { font-size: 20px; color: var(--s900); }
.ia-boas p { font-size: 15px; color: var(--s500); line-height: 1.5; max-width: 320px; }
.ia-sug { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 10px; }
.ia-sug button { min-height: 48px; border-radius: 14px; background: var(--card); border: 1px solid var(--borda); font-size: 15px; font-weight: 600; color: var(--s700); padding: 10px 14px; text-align: center; transition: border-color .2s; -webkit-tap-highlight-color: transparent; }
.ia-sug button:hover { border-color: var(--accent); color: var(--accent); }
.ia-m { max-width: 88%; font-size: 16px; line-height: 1.5; padding: 10px 14px; border-radius: 18px; word-wrap: break-word; }
.ia-m.eu { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.ia-m.ela { align-self: flex-start; background: var(--card); border: 1px solid var(--borda); color: var(--s800); border-bottom-left-radius: 6px; }
.ia-m.ela .ia-li { display: block; padding-left: 14px; position: relative; }
.ia-m.ela .ia-li::before { content: ''; position: absolute; left: 2px; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.ia-m.aviso { align-self: stretch; max-width: none; display: flex; gap: 8px; align-items: flex-start; background: var(--ambar-bg); color: #92400e; font-size: 15px; }
.dark .ia-m.aviso { color: #fcd34d; }
.ia-m.pensando { display: inline-flex; gap: 5px; padding: 14px 16px; }
.ia-m.pensando i { width: 8px; height: 8px; border-radius: 50%; background: var(--s400); animation: ia-p 1.2s infinite ease-in-out; }
.ia-m.pensando i:nth-child(2) { animation-delay: .15s; } .ia-m.pensando i:nth-child(3) { animation-delay: .3s; }
@keyframes ia-p { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .ia-m.pensando i { animation: none; } }
.ia-card { align-self: stretch; background: var(--card-2); border: 2px solid var(--accent); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.ia-card.feito { border-color: var(--verde); } .ia-card.cancelado { border-color: var(--s200); opacity: .7; }
.ia-card > b { font-size: 16px; color: var(--s900); }
.ia-card dl { display: flex; flex-direction: column; gap: 4px; }
.ia-card dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.ia-card dt { color: var(--s500); flex-shrink: 0; }
.ia-card dd { color: var(--s800); font-weight: 600; text-align: right; min-width: 0; }
.ia-card-bts { display: flex; gap: 8px; }
.ia-card-bts .bt { flex: 1; height: 50px; font-size: 16px; justify-content: center; border-radius: 14px; }
.ia-ok { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--verde); }
.ia-ok a { color: var(--accent); }
.ia-nao { font-size: 15px; color: var(--s500); }
.ia-pe { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--linha); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.ia-pe textarea { flex: 1; min-height: 50px; max-height: 140px; resize: none; border-radius: 16px; background: var(--card); border: 1px solid var(--borda); padding: 13px 14px; font: inherit; font-size: 16px; color: var(--s800); outline: none; }
.ia-pe textarea:focus { border-color: var(--accent); background: var(--card-2); }
.ia-mic, .ia-env { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; -webkit-tap-highlight-color: transparent; }
.ia-mic { background: var(--card); border: 1px solid var(--borda); color: var(--s600); }
.ia-mic.on { background: var(--vermelho); border-color: var(--vermelho); color: #fff; animation: ia-p 1.2s infinite; }
.ia-env { background: var(--accent); color: #fff; }
.ia-env:disabled { opacity: .5; }
@media (max-width: 639px) { body.ia-on { overflow: hidden; } }
@media print { .ia { display: none; } }

@media print {
  .sb, .hd, .barra, .sb-veu, .no-print { display: none !important; }
  .ct { margin: 0; }
  body { background: #fff; }
  .bento, .kpi { break-inside: avoid; }
}

/* "Antes de ligar" (resumo sem IA) e defesa comercial */
.ligar { margin-bottom: 20px; }
.ligar-l { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.ligar-l li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.5; color: var(--s700); }
.ligar-l li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.rs-ligar { margin: 0; background: var(--card); border: 1px solid var(--borda); border-radius: 16px; padding: 14px 16px; }
.def-txt { width: 100%; min-height: 320px; font: inherit; font-size: 16px; line-height: 1.5; color: var(--s800); background: var(--card); border: 1px solid var(--borda); border-radius: 14px; padding: 14px; resize: vertical; }
.sub-t { font-size: 13px; font-weight: 700; color: var(--s500); margin: 16px 0 8px; }
.faixas { display: flex; flex-wrap: wrap; gap: 8px; }
.faixas span { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--borda); border-radius: 12px; padding: 8px 12px; min-width: 92px; }
.faixas small { font-size: 12px; color: var(--s500); }
.faixas b { font-size: 16px; color: var(--s800); }

/* Relatórios: ranking e PDF com a marca */
@media (min-width: 1024px) { .g-md3 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 768px) and (max-width: 1023px) { .g-md3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.sec-t { font-size: 17px; font-weight: 700; color: var(--s800); margin: 28px 0 14px; }
.pdf-folha { background: #fff; color: #171717; }
.pdf-cab { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid #e5e7eb; }
.pdf-cab img { max-height: 48px; max-width: 200px; object-fit: contain; }
.pdf-cab span { font-size: 13px; color: #64748b; }
.pdf-marca { font-size: 20px; color: var(--accent); }
.pdf-t { font-size: 24px; color: #1e293b; margin-top: 16px; }
.pdf-pe { margin-top: 20px; font-size: 12px; color: #64748b; }
@media (max-width: 1023px) { .sec-t { text-align: center; } }
.metas { display: grid; gap: 10px; margin-top: 14px; }
.meta { background: rgba(255,255,255,.12); border-radius: 14px; padding: 10px 12px; }
.meta-t { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: rgba(255,255,255,.9); }
.meta-t b { color: #fff; }
.meta-tr { height: 8px; border-radius: 99px; background: rgba(255,255,255,.22); margin: 8px 0 6px; overflow: hidden; }
.meta-tr i { display: block; height: 100%; border-radius: inherit; background: #fff; }
.meta small { font-size: 12px; color: rgba(255,255,255,.85); }

/* texto longo sem espaço (e-mail) quebra dentro da coluna */
.quebra{overflow-wrap:anywhere}
.dl .dl-cheio{grid-column:1/-1}

/* Relatórios: tabelas largas — uma por linha até 1399px; no celular cada linha vira um cartão (rótulo à esquerda, valor à direita) */
@media (min-width: 1400px) { .g-xl2 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 767px) {
  .tab-cart thead { display: none; }
  .tab-cart, .tab-cart tbody, .tab-cart tr, .tab-cart td { display: block; width: 100%; }
  .tab-cart tr { padding: 10px 0; border-top: 1px solid var(--linha); }
  .tab-cart tr:first-child { border-top: 0; }
  .tab-cart td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 2px; white-space: normal; text-align: right; }
  .tab-cart td::before { content: attr(data-r); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--s400); text-align: left; }
  .tab-cart td:first-child { font-weight: 700; color: var(--s800); font-size: 15px; }
}
@media (min-width: 1440px) { .g-xl3 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
