/* =====================================================================
   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; }
/* "Reduzir movimento" do aparelho (o Mac do Caio usa): tira só o que SE MEXE (subir, deslizar, girar, animações);
   a troca suave de cor/fundo/sombra continua — sem ela o hover fica seco (Caio 24/11: "tá muito brusco"). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-property: background-color, color, border-color, box-shadow, opacity, filter !important; }
  .bento.mexe:hover, .bento.mexe:active, .cf-bola:hover, .ia-balao:hover, a.mini:hover, .kpi-link:hover, .li:hover .chev, .lp:hover .chev { transform: 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; } }
@media (hover: hover) { .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: 6px; margin: -6px; scroll-padding: 6px; }
.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 { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 40px 16px; overflow: hidden; background: radial-gradient(900px 600px at 0% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%), linear-gradient(160deg, var(--app) 30%, color-mix(in srgb, var(--accent) 7%, var(--app))); }
.lg-fundo { position: absolute; right: -14vw; top: 50%; width: min(1100px, 95vw); aspect-ratio: 196 / 100; transform: translateY(-46%); background: color-mix(in srgb, var(--accent) 7%, transparent); -webkit-mask: url("../img/simbolo.svg") center / contain no-repeat; mask: url("../img/simbolo.svg") center / contain no-repeat; pointer-events: none; }
.lg-caixa { position: relative; width: 100%; max-width: 448px; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.lg-logo .marca-img { max-height: 56px; max-width: min(320px, 62vw); }
.lg-card { width: 100%; background: var(--card-2); border: 1px solid var(--borda); box-shadow: 0 2px 8px rgba(15,23,42,.04), 0 16px 40px rgba(15,23,42,.06); border-radius: 20px; padding: 28px 24px; }
.lg-tit { font-size: 20px; line-height: 1.3; font-weight: 700; text-align: center; margin: 0 0 18px; color: var(--texto, inherit); }
@media (min-width: 640px) { .lg-card { padding: 32px 32px 28px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lg-in { position: relative; }
.lg-in > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--s400); pointer-events: none; }
.campo .lg-in input { min-height: 48px; padding-left: 44px; background: var(--card); border: 1px solid var(--borda); }
.lg-esq { display: flex; justify-content: flex-end; margin-top: 12px; }
.lg-link { color: var(--accent); font-size: 14px; font-weight: 600; min-height: 32px; }
.lg-link:hover { text-decoration: underline; }
.lg-cf { margin-top: 16px; min-height: 65px; }
.lg-entrar { width: 100%; height: 50px; margin-top: 8px; font-size: 16px; gap: 8px; border-radius: 12px; }
.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; }
}
/* celular, tablet e notebook com menu lateral (até 1099px): só a etapa atual com nome, as outras viram traço (barra nunca rola de lado) */
@media (max-width: 1099px) {
  .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: 190px; width: auto; object-fit: contain; }
.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)); } }

/* =====================================================================
   Ícones 3D (Caio, 18/11/2026): Flaticon sólido dentro de um bloco com volume
   (degradê da cor de destaque, luz no topo, sombra). Vermelho e verde só para
   situação (atrasado, aprovado); o resto segue a cor da marca. Nada de carnaval.
   ===================================================================== */
#tela:focus, [tabindex="-1"]:focus { outline: none; }
.ic.fi { display: inline-flex; flex-shrink: 0; }
.q, .li .lic {
  --t1: color-mix(in srgb, var(--accent) 45%, #fff); --t2: var(--accent); --t3: color-mix(in srgb, var(--accent) 65%, #0b1638);
  background: linear-gradient(160deg, var(--t1) 0%, var(--t2) 52%, var(--t3) 100%) !important; color: #fff !important;
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.55), inset 0 -3px 6px rgba(0,0,0,.14), 0 6px 14px -7px color-mix(in srgb, var(--t2) 80%, transparent);
  position: relative; overflow: hidden; isolation: isolate;
}
/* luz do topo só na borda (inset), não em faixa por dentro: a faixa "puxava" o centro do desenho para cima na régua e no olho */
.q .ic, .li .lic .ic { filter: drop-shadow(0 1px 1px rgba(0,0,0,.22)); }
.q.q-vermelho, .lic.q-vermelho, .cf-it.perigo .q { --t1: #fca5a5; --t2: #ef4444; --t3: #b91c1c; }
.q.q-verde, .lic.q-verde { --t1: #6ee7b7; --t2: #10b981; --t3: #047857; }
.vazio .q { --t1: #ffffff; --t2: var(--s100); --t3: var(--s200); color: var(--accent) !important; box-shadow: inset 0 1px 0 #fff, inset 0 -3px 6px rgba(15,23,42,.06), 0 8px 18px -10px rgba(15,23,42,.25); }
.vazio .q .ic { filter: none; }
.dark .vazio .q { --t1: #2a2a31; --t2: #1f1f25; --t3: #18181b; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 18px -10px rgba(0,0,0,.5); }
.kpi.azul .q { --t1: rgba(255,255,255,.42); --t2: rgba(255,255,255,.22); --t3: rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 14px -8px rgba(0,0,0,.35); }
.sb-item .qi { background: linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.03)); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); color: rgba(255,255,255,.78); }
.sb-item:hover .qi { color: #fff; }
.sb-item.ativo .qi { background: #fff; color: var(--accent); box-shadow: none; }

/* Dica ao passar o mouse (ou ao focar pelo teclado) */
[data-dica] { position: relative; }
[data-dica]::after { content: attr(data-dica); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); width: max-content; max-width: 240px; background: #121218; color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.4; letter-spacing: 0; text-transform: none; text-align: left; white-space: normal; padding: 8px 10px; border-radius: 10px; box-shadow: 0 10px 24px rgba(15,23,42,.22); pointer-events: none; z-index: 30; display: none; }
[data-dica]:hover::after, [data-dica]:focus-visible::after { display: block; transform: translate(-50%, 0); animation: dica .15s ease-out; }
@keyframes dica { from { opacity: 0; } }
@media (hover: none) { [data-dica]:hover::after { display: none; } }
[data-dica].dica-dir::after { left: auto; right: 0; transform: translate(0, 4px); }
[data-dica].dica-dir:hover::after, [data-dica].dica-dir:focus-visible::after { transform: none; }
.dark [data-dica]::after { background: #f4f4f5; color: #18181b; }

/* Painel: funil e números rápidos que respondem ao mouse */
.funil-l { grid-template-columns: 112px minmax(0,1fr) 40px; border-radius: 10px; padding: 6px 8px; margin: 0 -8px; transition: background .15s; cursor: default; }
.funil-l:hover { background: var(--card-2); }
.funil-l:hover .tr i { filter: brightness(1.08); }
.funil-l b { font-size: 15px; }
.funil-dica { font-size: 12px; color: var(--s400); margin-top: 2px; }
.totais > div { min-width: 0; }
.totais em { display: block; font-style: normal; font-size: 12px; color: var(--s400); line-height: 1.3; margin-top: 2px; }
a.mini { display: block; transition: transform .2s var(--mola), box-shadow .2s, background .2s; }
a.mini:hover { transform: translateY(-2px); box-shadow: 0 6px 16px -8px rgba(15,23,42,.25); }
a.mini:hover small { color: var(--accent); }
.barras div { cursor: default; background: transparent !important; position: relative; }
.barras div::before { content: ""; position: absolute; inset: 0 max(4px, 22%); border-radius: 7px 7px 4px 4px; background: rgba(255,255,255,.32); transition: background .15s; }
.barras div.at::before { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.barras div:hover::before { background: rgba(255,255,255,.7); }
.barras div.at:hover::before { background: #fff; }
.totais-tit { font-size: 12px; font-weight: 600; color: var(--s500); margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--linha); }
.totais-tit + .totais { border-top: 0; margin-top: 6px; padding-top: 0; }
.selo-filtro { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 6px 0 14px; border-radius: 999px; background: var(--accent-10); color: var(--accent); font-size: 13px; font-weight: 600; }
.selo-filtro button { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); }
.selo-filtro button:hover { background: var(--accent-10); }

/* Propostas: barra de ferramentas em 3 linhas (Caio 18/11: Nova proposta na linha dos filtros, busca maior) */
.pr-ferr { display: flex; flex-direction: column; gap: 10px; }
.pr-l1 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.busca.busca-g { flex: 1 1 320px; width: auto; max-width: 640px; }
.busca.busca-g input { height: 46px; font-size: 15px; background: var(--card-2); border: 1px solid var(--borda); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.busca.busca-g input:focus { box-shadow: 0 0 0 4px var(--accent-10); }
.pr-l3 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pr-l3 .bt-p { height: 40px; }
.pr-mais-bt .n { font-weight: 700; color: var(--accent); }
.pr-mais { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; padding: 14px !important; }
.pr-mais .sel { width: 100%; }
@media (max-width: 639px) { .pr-l3 .sel { flex: 1 1 calc(50% - 4px); min-width: 0; } .pr-l3 .bt-ml { margin-left: 0; flex: 1 1 100%; justify-content: center; } }
.kpi-link { color: inherit; transition: transform .2s var(--mola), box-shadow .2s; }
.kpi-link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -10px rgba(15,23,42,.25); }
.kpi[data-dica]::after { left: 16px; transform: translate(0, 4px); }
.kpi[data-dica]:hover::after { transform: none; }
.cli-n { display: none; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.cli-n small { font-size: 12px; color: var(--s400); }
@media (min-width: 768px) { .cli-n { display: flex; } }
.mais-w { display: flex; justify-content: center; padding: 12px 0 4px; }

/* Financeiro: lançamentos agrupados por operação */
.fin-g { border-radius: 14px; background: var(--card-2); margin-bottom: 8px; }
.fin-g > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; border-radius: 14px; }
.fin-g > summary::-webkit-details-marker { display: none; }
.fin-g > summary:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.fin-g > summary .q { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.fin-g > summary .lt { flex: 1; min-width: 0; }
.fin-g > summary .lt b { display: block; font-size: 14px; font-weight: 600; color: var(--s800); }
.fin-g > summary .lt small { font-size: 12px; color: var(--s400); }
.fin-g > summary .val { font-weight: 700; white-space: nowrap; }
.fin-g .fin-seta { color: var(--s400); transition: transform .2s; }
.fin-g[open] .fin-seta { transform: rotate(180deg); }
.fin-g > .lista { padding: 0 8px 8px; }
.fin-l { gap: 10px; }
.fin-l .chip { flex-shrink: 0; }
.fin-l.passa .val, .fin-l.passa b { opacity: .6; }
@media (max-width: 639px) { .fin-l { flex-wrap: wrap; } .fin-l .chip { order: 5; } .fin-g > summary .bt { display: none; } }
.fin-l .lt b { white-space: normal; overflow: visible; text-overflow: clip; }

/* Tarefas: grupos por prazo e botão Feito */
.tar-g { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--s500); margin: 14px 10px 6px; }
.tar-g:first-child { margin-top: 6px; }
.tar-g span { color: var(--s400); font-weight: 600; margin-left: 4px; }
.tar-l .bt { flex-shrink: 0; }
.tar-l.feita b { text-decoration: line-through; color: var(--s400); }
@media (max-width: 639px) { .tar-l { flex-wrap: wrap; } .tar-l .prazo { margin-left: 52px; } }

/* PDF dos relatórios (mais completo, 18/11) */
.pdf-folha { padding: 32px; }
.pdf-cab span { text-align: right; line-height: 1.4; }
.pdf-cab span b { color: #1e293b; font-size: 15px; }
.pdf-resumo { font-size: 15px; line-height: 1.6; color: #334155; margin-top: 8px; max-width: 80ch; }
.pdf-resumo b { color: #0f172a; }
.pdf-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 18px; }
@media (max-width: 767px) { .pdf-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.pdf-kpis > div { border: 1px solid #e5e7eb; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pdf-kpis small { font-size: 12px; color: #64748b; font-weight: 600; }
.pdf-kpis b { font-size: 20px; color: #0f172a; font-weight: 600; }
.pdf-kpis .dest { background: var(--accent); border-color: var(--accent); }
.pdf-kpis .dest small, .pdf-kpis .dest b, .pdf-kpis .dest .pdf-var { color: #fff; }
.pdf-var { font-size: 11.5px; font-weight: 600; }
.pdf-var.sobe { color: #059669; } .pdf-var.cai { color: #dc2626; }
.pdf-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.pdf-bloco { margin-top: 22px; min-width: 0; break-inside: avoid; }
.pdf-bloco h2 { font-size: 14px; font-weight: 700; color: #1e293b; margin-bottom: 10px; }
.pdf-evo { display: flex; align-items: flex-end; gap: 10px; height: 130px; border-bottom: 1px solid #e5e7eb; padding-bottom: 2px; }
.pdf-evo > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.pdf-evo i { display: block; width: 60%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: var(--accent); }
.pdf-evo .v { font-size: 12px; font-weight: 700; color: #1e293b; }
.pdf-evo small { font-size: 11.5px; color: #64748b; }
.pdf-leg { font-size: 11.5px; color: #94a3b8; margin-top: 6px; }
.pdf-fun { display: grid; grid-template-columns: 110px 1fr 36px; gap: 10px; align-items: center; font-size: 13px; color: #334155; margin: 8px 0; }
.pdf-fun i { height: 10px; border-radius: 99px; background: #eef2f7; overflow: hidden; display: block; }
.pdf-fun em { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.pdf-fun b { text-align: right; color: #0f172a; }
.pdf-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 22px; }
.pdf-mini > div { background: #f8fafc; border-radius: 12px; padding: 10px 12px; }
.pdf-mini small { display: block; font-size: 12px; color: #64748b; }
.pdf-mini b { font-size: 15px; color: #0f172a; }
.pdf-folha .tab td, .pdf-folha .tab th { color: #1e293b; }
@media print { .pdf-folha { padding: 0; border: 0; } .pdf-folha * { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .pdf-bloco, .pdf-kpis { break-inside: avoid; } }

/* Avisos da régua 18/11: toque ≥ 40px no tablet/celular e Configurações centralizada até 1024 (tablet = celular grande) */
@media (max-width: 1024px) {
  .aba { height: 40px; }
  .sb-logo .marca { min-height: 44px; }
  .pg-cab, .cf-sec h2, .cf-sec .cf-d { text-align: center; }
  .pg-cab { align-items: center; }
}
/* Régua 18/11 madrugada: busca sem zoom no iPhone, sombra do login dentro da margem, check da cor centralizado */
.busca.busca-g input { font-size: 16px; }
@media (max-width: 639px) { .lg-card { box-shadow: 0 2px 6px rgba(15,23,42,.05), 0 6px 12px -4px rgba(15,23,42,.06); } }
.cf-bola span { display: grid; place-items: center; line-height: 0; }
/* ícone da pessoa grande (Configurações): o ajuste da fonte não basta em 20px — sobe mais um pouco (régua 18/11) */
.cf-it .q .fi-sr-user::before { transform: translate(0em, -0.04em); }

/* Caixa do mês (jeito da nota do Adriano) */
.cx-conta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 15px; color: var(--s600); background: var(--card); border: 1px solid var(--borda); border-radius: 16px; padding: 12px 16px; }
.cx-conta b { color: var(--s900); font-weight: 700; } .cx-conta .op { color: var(--s400); font-weight: 700; }
.cx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.cx-g2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; } .cx-g2 > *, .cx-col > * { min-width: 0; }
@media (min-width: 1280px) { .cx-g2 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.cx-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cx-ops { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.cx-ops span { background: var(--card-2); border-radius: 12px; padding: 8px 12px; font-size: 13px; color: var(--s600); } .cx-ops b { color: var(--s900); }
.cx-tot { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tab-cx td small { display: block; font-size: 12px; color: var(--s400); margin-top: 2px; white-space: normal; }
.tab-cx td b { font-weight: 600; color: var(--s800); white-space: normal; }
.tab-cx td.cx-dia { color: var(--s400); font-variant-numeric: tabular-nums; width: 1%; }
.tab-cx td.n, .tab-cx th.n { text-align: right; }
.tab-cx tr.pula td { opacity: .55; }
.cx-acoes { white-space: nowrap; } .cx-acoes .bt + .bt { margin-left: 6px; }
@media (max-width: 767px) {
  .tab-cx thead { display: none; }
  .tab-cx tr { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 4px 10px; padding: 12px 0; border-top: 1px solid var(--linha); align-items: center; }
  .tab-cx td { border: 0; padding: 0; white-space: normal; }
  .tab-cx td:nth-child(n+3):not(.n) { grid-column: 2; }
  .tab-cx td.n { grid-column: 3; text-align: right; }
  .tab-contas td.cx-acoes { grid-column: 1 / -1; text-align: left; }
}

/* Hover suave no sistema todo (Caio 24/11: "tá muito brusco") — cor, fundo, borda, sombra e leve subida entram em 0,22s.
   Quem pede "reduzir movimento" no aparelho continua sem animação (regra global lá em cima). */
a, button, summary, .bt, .aba, .sb-item, .sb-item .qi, .sb-sair, .li, .lp, .lp .q, .li .lic, .kpi, .kpi-link, a.mini, .bento,
.kb-card, .cf-it, .cf-op, .cf-bola, .fin-g > summary, .funil-l, .chip, .selo-filtro button, .md-x, .rs-wa, .ia-sug button,
.busca input, .sel, .campo input, .campo select, .campo textarea, .tab tbody tr, .ic {
  transition-property: background-color, color, border-color, box-shadow, transform, opacity, filter;
  transition-duration: .22s;
  transition-timing-function: cubic-bezier(.25, .8, .25, 1);
}
.ia-balao { transition: transform .3s var(--mola), box-shadow .22s ease, background-color .22s ease; }
.tab tbody tr:hover td { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.tab tbody tr td { transition: background-color .22s ease; }
.li:hover .chev, .lp:hover .chev { transform: translateX(2px); }
.chev { transition: transform .22s ease, color .22s ease; display: inline-flex; }

/* Configurações → validação por etapas */
.cf-etapas { display: grid; gap: 8px; margin-top: 12px; }
.cf-etapa { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--borda); border-radius: 14px; background: var(--card); cursor: pointer; }
.cf-etapa:has(input:checked) { border-color: var(--accent); background: var(--card-2); }
.cf-etapa input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
.cf-etapa span { display: grid; gap: 2px; text-align: left; }
.cf-etapa small { color: var(--s500); font-size: 14px; }

/* Assistente: arquivos */
.ia-clip { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; background: var(--card); border: 1px solid var(--borda); color: var(--s600); -webkit-tap-highlight-color: transparent; }
.ia-clip:hover { color: var(--accent); border-color: var(--accent); }
.ia-anexos { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 0; border-top: 1px solid var(--linha); }
.ia-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 6px 6px 10px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--borda); font-size: 14px; color: var(--s700); }
.ia-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.ia-chip small { color: var(--s500); }
.ia-chip button { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--s500); }
.ia-chip button:hover { background: var(--card); color: var(--vermelho); }
.ia-arqs { display: grid; gap: 4px; }
.ia-arqs span { display: inline-flex; align-items: center; gap: 6px; word-break: break-word; }
.ia-arqs small { opacity: .8; }
.ia-painel.ia-solta { outline: 3px dashed var(--accent); outline-offset: -8px; }
@media (max-width: 380px) { .ia-pe { gap: 6px; padding: 10px; } .ia-clip, .ia-mic, .ia-env { width: 44px; height: 44px; } }
