/* =====================================================================
   Identidade Prospectamos (tokens de prospectamos.com.br): azul-marinho + azul vivo,
   Poppins nos títulos, Inter no texto, botões em pílula. Carrega depois do styles.css.
   Também traz o visual do setor Clientes (clientes.js), com prefixo cx-.
   ===================================================================== */
:root {
  --primary: #0063fe; --primary-dark: #0050d0; --primary-soft: #0063fe1a; --on-primary: #fff;
  --ink: #0c1b2e; --muted: #5b6678; --line: #dde3ec; --line-strong: #c9d2df; --bg: #f4f7fb; --surface: #fff;
  --side: #04152f; --side-ink: #dbe6f7; --side-accent: #0e2a54; --lilac: #c9dcff; --sage: #3b8bff; --sage-soft: #c9dcff;
  --blue: #0063fe; --navy: #04152f; --blue-2: #3b8bff; --blue-soft: #eaf2ff;
  --gradient-brand: linear-gradient(135deg, #0063fe 0%, #2a7bff 100%);
  --stage-off: #e6eefc; --stage-off-ink: #34445e;
  --shadow-card: 0 2px 10px rgba(4,21,47,.06); --shadow-bold: 0 12px 30px rgba(4,21,47,.12);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Poppins", "Inter", sans-serif;
}
body { font-family: var(--font-sans); }
h1, h2, h3, .h1, .pg-title h1 { font-family: var(--font-display); color: var(--navy); letter-spacing: -.015em; }
::selection { background: #c9dcff; color: #04152f; }

/* Botões em pílula, como no site */
.btn { border-radius: 999px; font-weight: 600; }
.btn.icon { border-radius: 999px; }
.btn.primary { background: var(--blue); box-shadow: 0 8px 20px rgba(0,99,254,.22); }
.btn.primary:hover { background: #0057e0; filter: none; }
.input { border-radius: 12px; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,99,254,.15); }
a.link, .link { color: var(--blue); }

/* Menu lateral escuro (gradiente marinho do site) */
body #sidebar, body.menu-clean #sidebar {
  background: radial-gradient(120% 60% at 100% 0%, #0e2a54 0%, #04152f 55%, #031026 100%) !important;
  border-right-color: #04152f;
}
#sidebar .nav-item.active, #sidebar .sec-items .nav-item.active { background: linear-gradient(90deg, rgba(0,99,254,.34), rgba(0,99,254,.10)); color: #fff; }

/* Marca: ícone em quadrado branco + "Prospect" branco e "amos" azul */
.brand { border-bottom-color: rgba(255,255,255,.1); }
.brand-logo.pa-brand { display: flex; align-items: center; justify-content: flex-start; gap: 12px; height: auto; padding: 6px 6px; background: none; border-radius: 12px; }
.pa-tile { width: 40px; height: 40px; border-radius: 11px; background: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 6px 18px rgba(0,0,0,.28); transition: transform .25s ease; }
.pa-tile img { width: 28px; height: 28px; display: block; }
.brand:hover .pa-tile { transform: rotate(-6deg) scale(1.05); }
.brand:hover .brand-logo.pa-brand { transform: none; }
.brand-logo .pa-wm, .brand-logo .pa-wm.logo-full { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; color: #fff; white-space: nowrap; max-height: none; filter: none; display: inline; }
.pa-wm b { color: #3b8bff; font-weight: 700; }
.collapsed .brand-logo.pa-brand { justify-content: center; padding: 0; }
.collapsed .brand-logo .pa-wm { display: none; }
@media (min-width: 761px) and (max-width: 1100px) { #sidebar .brand-logo .pa-wm { display: none; } #sidebar .brand-logo.pa-brand { justify-content: center; padding: 0; } }
@media (max-width: 760px) { #sidebar .brand-logo .pa-wm, body.collapsed #sidebar .brand-logo .pa-wm { display: inline; } }
.auth-brand .brand-logo .pa-wm { color: #04152f; }
.auth-brand .pa-tile { box-shadow: 0 4px 14px rgba(4,21,47,.15); border: 1px solid #dde3ec; }

/* Base de conhecimento: capa sem foto, no azul-marinho da marca */
.kb-hero.cx-kbhero { background: radial-gradient(90% 120% at 100% 0%, #0e2a54 0%, #04152f 60%, #031026 100%); }
.kb-hero.cx-kbhero::before, .kb-hero.cx-kbhero::after { display: none; }
.kb-logo { background: #fff; transform: none; box-shadow: 0 10px 26px rgba(0,0,0,.3); }
.kb-eyebrow, .kb2-eyebrow { letter-spacing: .12em; }
@media (max-width: 760px) { .kb-hero.cx-kbhero { padding-top: 28px; background: #04152f; } }

/* ================= Setor Clientes ================= */
.cx .cx-ph { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cx .cx-ph h2 { margin: 0; }
.cx-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.cx-hdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); flex: none; margin-right: 6px; vertical-align: middle; }
.cx-av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--c, #0063fe); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.cx-av.sm { width: 28px; height: 28px; border-radius: 9px; font-size: 13px; }
.cx-av.lg { width: 54px; height: 54px; border-radius: 16px; font-size: 23px; }
.cx-n { font-style: normal; font-size: 12px; background: var(--blue-soft); color: var(--blue); border-radius: 999px; padding: 1px 9px; margin-left: 6px; font-family: var(--font-sans); }
.late { color: #d1352b !important; font-weight: 600; }
.cx .empty-mini { color: var(--muted); padding: 14px 0; }

/* linhas de lista */
.cx-row { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; cursor: pointer; color: inherit; text-decoration: none; }
.cx-row + .cx-row { border-top: 1px solid var(--line); }
.cx-row:hover { background: #f2f7ff; }
.cx-row > div { flex: 1; min-width: 0; }
.cx-row b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-row small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-chn { width: 28px; height: 28px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.cx-card .cx-chn { width: 22px; height: 22px; border-radius: 7px; }

/* faixa de etapas (visão geral) */
.cx-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cx-sp { background: #f6f9fe; border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-width: 0; position: relative; }
.cx-spn { position: absolute; top: 8px; right: 10px; font-size: 11px; color: var(--muted); }
.cx-sp > b { display: block; font-family: var(--font-display); font-size: 13px; color: var(--navy); }
.cx-sp > em { display: block; font-style: normal; font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--blue); line-height: 1.2; }
.cx-spl a { display: block; font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 2px 0; }
.cx-spl a:hover { color: var(--blue); }
.cx-spl small { color: var(--muted); font-size: 11.5px; }
@media (max-width: 1100px) { .cx-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cx-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* cartões da carteira */
.cx-cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cx-ccard { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; color: inherit; text-decoration: none; box-shadow: var(--shadow-card); border-top: 4px solid var(--c); transition: transform .15s, box-shadow .15s; }
.cx-ccard:hover { transform: translateY(-2px); box-shadow: var(--shadow-bold); }
.cx-ccard.off { opacity: .6; }
.cx-ch { display: flex; align-items: center; gap: 10px; }
.cx-ch > div { flex: 1; min-width: 0; }
.cx-ch b { display: block; font-family: var(--font-display); font-size: 15.5px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-ch small { color: var(--muted); font-size: 12.5px; }
.cx-ch .cx-av { background: var(--c); }
.cx-steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cx-steps i { height: 6px; border-radius: 4px; background: #e6eefc; }
.cx-steps i.d { background: #9cc0ff; }
.cx-steps i.on { background: var(--blue); }
.cx-cm { display: flex; gap: 6px; flex-wrap: wrap; }
.cx-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cx-meta small { display: block; color: var(--muted); font-size: 11.5px; }
.cx-meta b { font-family: var(--font-display); font-size: 17px; color: var(--navy); }
.cx-meta b em { font-style: normal; font-size: 13px; color: var(--muted); font-weight: 500; }

/* quadros (clientes por etapa e leads por etapa) */
.cx-board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
.cx-col { flex: 0 0 240px; background: #eef3fa; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; max-height: calc(100vh - 260px); min-height: 160px; transition: background .15s, border-color .15s; }
.cx-board.leads .cx-col { flex-basis: 232px; }
.cx-col.over { background: #e1ecff; border-color: var(--blue); }
.cx-colh { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.cx-colh i { width: 9px; height: 9px; border-radius: 50%; background: var(--sc, var(--blue)); flex: none; }
.cx-colh b { font-family: var(--font-display); font-size: 13px; color: var(--navy); flex: 1; }
.cx-colh em { font-style: normal; font-size: 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; color: var(--muted); }
.cx-colb { padding: 8px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.cx-empty { color: var(--muted); font-size: 12.5px; text-align: center; padding: 18px 6px; border: 1.5px dashed var(--line-strong); border-radius: 10px; }
.cx-card { position: relative; display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 11px; color: inherit; text-decoration: none; cursor: grab; box-shadow: 0 1px 2px rgba(4,21,47,.05); border-left: 3px solid var(--c, transparent); }
.cx-card.lead { border-left-color: transparent; }
.cx-card:hover { border-color: #9cc0ff; box-shadow: 0 6px 16px rgba(4,21,47,.08); }
.cx-card.dragging { opacity: .45; }
.cx-card b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 24px; }
.cx-card small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.cx-card .cx-own { position: absolute; top: 8px; right: 8px; }
.cx-card .cx-own .avatar { width: 20px; height: 20px; font-size: 10px; }
.cx-cf { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.cx-cf .cx-own { position: static; margin-left: auto; }
.cx-cf .due { color: #b26a00; font-weight: 600; }
.cx-cf .cx-meet { color: #0050d0; font-weight: 600; }
.cx-cf .ic { vertical-align: -2px; }

/* página do cliente */
.cx-head { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow-card); border-left: 5px solid var(--c); flex-wrap: wrap; }
.cx-head .cx-av { background: var(--c); }
.cx-ht { flex: 1; min-width: 220px; }
.cx-ht h1 { font-size: 24px; margin: 0 0 4px; }
.cx-hm { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 13px; }
.cx-hm .ic { vertical-align: -2px; }
.cx-hact { display: flex; gap: 8px; flex-wrap: wrap; }
.cx-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.cx-tab { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; color: var(--muted); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; }
.cx-tab:hover { color: var(--navy); }
.cx-tab.on { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.cx-tab em { font-style: normal; font-size: 11.5px; background: var(--blue-soft); color: var(--blue); border-radius: 999px; padding: 0 7px; }
.cx-jbar { margin-left: 6px; overflow-x: auto; }
.cx-jbar .st { min-width: 104px; cursor: pointer; }
.cx-why { margin-top: 12px; background: #fff7e8; border: 1px solid #f6dfb0; border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.cx-why ul { margin: 4px 0 0; padding-left: 18px; }

/* checklists da jornada */
.cx-ck { list-style: none; margin: 8px 0 0; padding: 0; }
.cx-ck li { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 13.5px; }
.cx-ck li.done span { color: var(--muted); text-decoration: line-through; }
.cx-ck li span { flex: 1; }
.cx-jgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 16px; }
.cx-jcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; }
.cx-jcard.cur { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,99,254,.12); }
.cx-jcard.past { background: #f8fbff; }
.cx-jh { display: flex; gap: 10px; align-items: flex-start; }
.cx-jh > div { flex: 1; }
.cx-jh b { display: block; font-family: var(--font-display); color: var(--navy); }
.cx-jh small { color: var(--muted); font-size: 12.5px; }
.cx-jh em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--blue); background: var(--blue-soft); padding: 1px 9px; border-radius: 999px; }
.cx-jn { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #e6eefc; color: var(--navy); font-weight: 700; font-size: 13px; }
.cx-jcard.cur .cx-jn { background: var(--blue); color: #fff; }
.cx-jcard.past .cx-jn { background: #0f9d64; color: #fff; }
.cx-jmeta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 8px; }
.cx-jmeta .ic { vertical-align: -2px; }
.cx-jf { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }

/* funil da prospecção */
.cx-funnel { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.cx-fn { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; position: relative; }
.cx-fn small { display: block; color: var(--muted); font-size: 12px; }
.cx-fn b { font-family: var(--font-display); font-size: 22px; color: var(--navy); }
.cx-fn em { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 11.5px; color: var(--blue); font-weight: 600; }
@media (max-width: 900px) { .cx-funnel { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cx-tools { flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cx-tools .list-search { min-width: 200px; }

/* gaveta do lead */
.cx-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cx-log { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.cx-addnote { display: flex; gap: 8px; margin: 6px 0 10px; }
.cx-addnote .input { flex: 1; }
.cx-li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.cx-li p { flex-basis: 100%; margin: 2px 0 0; color: var(--ink); }
.cx-li small { color: var(--muted); font-size: 12px; }
.cx-lev { font-weight: 600; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #eef3fa; color: var(--navy); }
.cx-lev.ev-contato { background: #e6f0ff; color: #0050d0; }
.cx-lev.ev-resposta, .cx-lev.ev-qualificado { background: #efe9fd; color: #5b3cc4; }
.cx-lev.ev-reuniao, .cx-lev.ev-realizada { background: #fff1dc; color: #a35a00; }
.cx-lev.ev-oportunidade, .cx-lev.ev-ganho { background: #e3f7ee; color: #0b7a4d; }
.cx-lev.ev-perdido { background: #fdecea; color: #c0322a; }

/* acompanhamento */
.cx-fu { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.cx-fu:first-of-type { border-top: 0; }
.cx-fu > div { flex: 1; min-width: 0; }
.cx-fui { width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.cx-fuh { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cx-fuh small { color: var(--muted); }
.cx-fuh .icon-btn { margin-left: auto; }
.cx-fu p { margin: 4px 0 0; font-size: 13.5px; white-space: pre-line; }
.cx-next { color: #0050d0; font-weight: 500; }

/* relatórios */
.cx-wtop { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.cx-wtop h2 { margin: 0 0 4px; }
.cx-wact { display: flex; gap: 8px; flex-wrap: wrap; }
.cx-mgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cx-mgrid > div, .cx-mgrid > label { background: #f6f9fe; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.cx-mgrid small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.cx-mgrid b { font-family: var(--font-display); font-size: 22px; color: var(--navy); }
.cx-mgrid.edit { margin-bottom: 12px; }
.cx-mgrid.edit .input { width: 100%; min-width: 0 !important; font-weight: 600; }
.cx-mgrid.edit > label { min-width: 0; }
@media (max-width: 700px) { .cx-mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cx-wst { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.cx-wst.enviado { background: #e3f7ee; border-color: #b9ecc9; color: #0b7a4d; }
.cx-wst.rascunho { background: #fff4e0; border-color: #f6dfb0; color: #a35a00; }
.cx-wst.miss { color: #c0322a; border-style: dashed; }

/* dados */
.cx-dr { display: grid; grid-template-columns: 170px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.cx-dr:first-of-type { border-top: 0; }
.cx-dr small { color: var(--muted); }
.wk-pgrid.one { grid-template-columns: 1fr; }
@media (max-width: 760px) { .cx-dr { grid-template-columns: 1fr; gap: 2px; } .cx-head { padding: 14px; } .cx-ht h1 { font-size: 20px; } .cx-col { max-height: none; } }

/* Capa da Base de conhecimento: fundo marinho limpo, sem a foto e os brilhos da marca antiga */
.kb-first { background: radial-gradient(70% 90% at 92% 0%, rgba(0,99,254,.38), transparent 60%), radial-gradient(60% 70% at 0% 100%, rgba(59,139,255,.18), transparent 60%), linear-gradient(140deg, #04152f 0%, #0a1f44 60%, #0e2a54 100%) !important; box-shadow: 0 24px 60px rgba(4,21,47,.28); }
.kb-first::before { content: none !important; }
.kb-first::after { opacity: .14 !important; background-image: radial-gradient(circle, rgba(255,255,255,.9) 1px, transparent 1.5px) !important; }
.kb-hero h1, .kb-hero.cx-kbhero h1 { font-family: var(--font-display) !important; font-style: normal !important; font-weight: 700 !important; letter-spacing: -.025em; }
.kb-hero .kb-eyebrow { color: #6aa7ff; }
.cx-fn small { padding-right: 34px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .cx-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cx-hact { width: 100%; } .cx-hact .btn { flex: 1; justify-content: center; } .cx-head .cx-av.lg { width: 44px; height: 44px; font-size: 19px; } }

/* ---- Funis de prospecção (funil próprio de cada cliente) ---- */
.cx-funnel { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)) !important; }
.cx-fn.lost { background: #fdf3f2; border-color: #f6d4d0; }
.cx-fn.lost b { color: #c0322a; }
.cx-fpick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; }
.cx-fp { display: flex; align-items: center; gap: 9px; flex: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px 8px 8px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.cx-fp:hover { border-color: #9cc0ff; }
.cx-fp.on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,99,254,.14); }
.cx-fp .cx-av { background: var(--c); }
.cx-fp b { display: block; font-size: 13.5px; white-space: nowrap; }
.cx-fp small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.cx-fbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.cx-fbar .ic { vertical-align: -2px; }
.cx-fsteps { display: flex; flex-wrap: wrap; gap: 4px; }
.cx-fsteps i { font-style: normal; font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--sc) 14%, #fff); color: color-mix(in srgb, var(--sc) 75%, #04152f); border: 1px solid color-mix(in srgb, var(--sc) 30%, #fff); }
.cx-ftpl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; padding: 10px 12px; background: #f6f9fe; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.cx-ftpl .pill { border: 1px solid var(--line); background: #fff; color: var(--navy); padding: 4px 12px; font-size: 12.5px; }
.cx-ftpl .pill:hover { border-color: var(--blue); color: var(--blue); }
.cx-ftpl select { max-width: 220px; }
.cx-frh, .cx-fr { display: grid; grid-template-columns: 34px minmax(0, 1.3fr) minmax(0, 1.2fr) 44px 30px 30px 30px; gap: 6px; align-items: center; }
.cx-frh { font-size: 11.5px; color: var(--muted); font-weight: 600; padding: 0 2px 4px; }
.cx-frh span:nth-child(5) { grid-column: span 3; }
.cx-fr { padding: 5px 0; border-top: 1px solid var(--line); }
.cx-fcol { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: #fff; cursor: pointer; }
.cx-fcnt { text-align: center; font-size: 12px; font-weight: 600; color: var(--navy); background: #eef3fa; border-radius: 999px; padding: 2px 0; }
.cx-fr .icon-btn:disabled { opacity: .3; cursor: default; }
@media (max-width: 640px) { .cx-frh { display: none; } .cx-fr { grid-template-columns: 34px 1fr 30px 30px 30px; } .cx-fr select { grid-column: 2 / -1; grid-row: 2; } .cx-fcnt { display: none; } }
.modal:has(#cx-frows) { width: min(780px, calc(100vw - 32px)); max-width: none; }

/* ---- Envio do relatório semanal ---- */
.cx-sendch { display: grid; grid-template-columns: 1fr; gap: 6px; margin-bottom: 8px; }
.cx-sc { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #f6f9fe; cursor: pointer; margin-top: 6px; }
.cx-sc input { width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.cx-sc b { display: block; font-size: 14px; }
.cx-sc small { display: block; color: var(--muted); font-size: 12.5px; }
.cx-sc small.bad { color: #b26a00; }
.cx-sci { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); flex: none; }
.cx-sci.wa { background: #e3f7ee; color: #0b7a4d; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; text-decoration: underline; cursor: pointer; font-size: inherit; }
.cx-emprev { margin: 4px 0 10px; font-size: 13px; }
.cx-emprev summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.cx-emprev pre { white-space: pre-wrap; font: 12.5px/1.5 var(--font-sans); background: #f6f9fe; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; max-height: 220px; overflow: auto; }
.cx-sendalt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; padding-top: 8px; border-top: 1px dashed var(--line); }
.cx-sends { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; color: #0b7a4d; }
.cx-tdact { white-space: nowrap; }
.cx-tdact .btn + .btn { margin-left: 4px; }

/* =====================================================================
   Ajustes de UX (menu lateral, logo, ícones e capa)
   ===================================================================== */
/* Logo do topo: sem moldura. Ao passar o mouse, focar ou clicar, vira um "botão" branco e o
   "Prospect" fica azul-marinho para continuar legível (o "amos" segue azul). */
#sidebar .brand .brand-logo.pa-brand,
#sidebar .brand:hover .brand-logo.pa-brand { border: 0; box-shadow: none; transform: none; background: transparent; padding: 8px 10px; border-radius: 14px; transition: background .18s ease, box-shadow .18s ease; }
#sidebar .brand { outline: none; }
#sidebar .brand:hover .brand-logo.pa-brand,
#sidebar .brand:focus-visible .brand-logo.pa-brand,
#sidebar .brand:active .brand-logo.pa-brand { background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.28); }
#sidebar .brand:hover .pa-wm, #sidebar .brand:focus-visible .pa-wm, #sidebar .brand:active .pa-wm { color: #04152f; }
#sidebar .brand:hover .pa-wm b, #sidebar .brand:focus-visible .pa-wm b, #sidebar .brand:active .pa-wm b { color: #0063fe; }
#sidebar .brand:hover .pa-tile, #sidebar .brand:focus-visible .pa-tile, #sidebar .brand:active .pa-tile { box-shadow: 0 0 0 1px #dde3ec; }
#sidebar .brand:focus-visible .brand-logo.pa-brand { box-shadow: 0 0 0 3px #6aa7ff, 0 8px 22px rgba(0,0,0,.28); }
#sidebar .brand:active .pa-tile { transform: scale(.96); }
/* linha divisória abaixo do logo, neutra (era lilás) */
#sidebar .brand::before { background: rgba(255,255,255,.12) !important; box-shadow: none !important; }

/* Ícone de Projetos internos: o P da marca em versão clara, num quadradinho escuro */
img.ic-logo { background: #0a1f44; border-radius: 8px; padding: 3px; box-sizing: border-box; box-shadow: inset 0 0 0 1px rgba(106,167,255,.35); filter: none !important; object-fit: contain; }
.sec.cur img.ic-logo { background: #0063fe; box-shadow: none; }

/* Capa da Base de conhecimento no padrão da Mivõ: foto à direita, degradê marinho à esquerda para o texto.
   A foto é o arquivo capa-base.jpg na pasta do site; sem ele, fica só o fundo marinho. */
.kb-hero.cx-kbhero.has-img { background: linear-gradient(90deg, rgba(4,21,47,.97) 0%, rgba(4,21,47,.86) 38%, rgba(4,21,47,.22) 72%, rgba(4,21,47,0) 100%), var(--kb-img) 66% 38% / cover no-repeat, #04152f !important; }
.kb-first:has(.cx-kbhero.has-img) { background: #04152f !important; }
@media (max-width: 760px) {
  .kb-hero.cx-kbhero.has-img { align-items: flex-end; padding-top: 52vw; background: linear-gradient(180deg, rgba(4,21,47,0) 28%, #04152f 60%), var(--kb-img) center top / 100% auto no-repeat, #04152f !important; }
}
#sidebar .brand .pa-wm, #sidebar .brand .pa-wm b { transition: color .18s ease; }
/* capa: enquadra os rostos e funde a base da foto com os cartões */
.kb-hero.cx-kbhero.has-img { background: linear-gradient(180deg, rgba(4,21,47,0) 55%, rgba(4,21,47,.9) 100%), linear-gradient(90deg, rgba(4,21,47,.97) 0%, rgba(4,21,47,.86) 38%, rgba(4,21,47,.22) 72%, rgba(4,21,47,0) 100%), var(--kb-img) 72% 18% / cover no-repeat, #04152f !important; }

/* ---- Quadro do funil de prospecção: etapas em destaque ---- */
.cx-board.pf { gap: 14px; padding-bottom: 14px; }
.cx-board.pf .pf-col { flex: 0 0 256px; background: color-mix(in srgb, var(--sc) 6%, #f6f9fe); border: 1px solid color-mix(in srgb, var(--sc) 20%, #e3e9f2); border-radius: 18px; overflow: hidden; }
.cx-board.pf .pf-col.over { background: color-mix(in srgb, var(--sc) 14%, #fff); border-color: var(--sc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sc) 22%, transparent); }
.cx-board.pf .pf-h { position: relative; display: flex; align-items: center; gap: 10px; margin: 8px 8px 4px; padding: 11px 26px 11px 11px; border: 0; border-radius: 12px 0 0 12px; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--sc) 92%, #04152f), color-mix(in srgb, var(--sc) 66%, #04152f));
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); text-shadow: 0 1px 2px rgba(4,21,47,.25); }
.cx-board.pf .pf-n { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); font: 700 13px var(--font-display); text-shadow: none; }
.cx-board.pf .pf-t { flex: 1; min-width: 0; }
.cx-board.pf .pf-t b { display: block; font: 700 14.5px/1.2 var(--font-display); letter-spacing: -.01em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-board.pf .pf-t small { display: block; margin-top: 2px; font-size: 11.5px; color: rgba(255,255,255,.88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-board.pf .pf-due { background: rgba(255,255,255,.24); border-radius: 999px; padding: 0 6px; font-weight: 700; }
.cx-board.pf .pf-c { font: 700 21px/1 var(--font-display); font-style: normal; color: #fff; background: none; border: 0; padding: 0; flex: none; }
/* descartados: fora do fluxo, em tom apagado */
.cx-board.pf .pf-col.lost { background: #f7f8fa; border-color: #e3e7ee; }
.cx-board.pf .pf-col.lost .pf-h { background: #eceff4; color: #5b6678; text-shadow: none; clip-path: none; border-radius: 12px; padding-right: 12px; }
.cx-board.pf .pf-col.lost .pf-n { background: #fff; box-shadow: inset 0 0 0 1px #d7dde6; color: #c0322a; }
.cx-board.pf .pf-col.lost .pf-t b, .cx-board.pf .pf-col.lost .pf-c { color: #445066; }
.cx-board.pf .pf-col.lost .pf-t small { color: #6b7788; }
.cx-board.pf .pf-col.lost .cx-card { opacity: .82; }
/* cartões com a cor da etapa */
.cx-board.pf .cx-card.lead { border-left: 3px solid var(--sc); transition: transform .12s ease, box-shadow .12s ease, border-color .12s; }
.cx-board.pf .cx-card.lead:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(4,21,47,.09); border-color: color-mix(in srgb, var(--sc) 45%, #dde3ec); border-left-color: var(--sc); }
.cx-board.pf .cx-empty { border-color: color-mix(in srgb, var(--sc) 35%, #d7dde6); color: color-mix(in srgb, var(--sc) 60%, #5b6678); background: rgba(255,255,255,.5); }
.cx-board.pf .cx-colb { padding: 6px 8px 10px; }
@media (prefers-reduced-motion: reduce) { .cx-board.pf .cx-card.lead { transition: none; } .cx-board.pf .cx-card.lead:hover { transform: none; } }
.cx-board.pf .pf-dueb { margin: 0 10px 2px; padding: 4px 9px; border-radius: 8px; font-size: 11.5px; font-weight: 600; color: #8a5200; background: #fff4e0; border: 1px solid #f6dfb0; display: flex; align-items: center; gap: 5px; }
.cx-board.pf .pf-col.lost .pf-dueb { display: none; }

/* Tela de login: título na Poppins da marca (sem a serifada itálica da Mivõ) */
#auth-root h1, #auth-root h2, .auth-card h1 { font-family: var(--font-display) !important; font-style: normal !important; font-weight: 700 !important; color: #04152f !important; letter-spacing: -.02em; }
