/* css/crm2.css — repaginação do vendedor (crm2). Só vale com <html data-ui="crm2"> (js/crm2.js). Reaproveita o skin claro do layout "fieldops" (data-layout) e ajusta
   o menu (azul-escuro neutro, item ativo discreto), a barra superior e as telas novas (Início, Estoque, Comissões, Material de Apoio). Nada de lógica aqui. */
html[data-ui="crm2"] {
  --c2-nav: #181c25; --c2-nav-2: #20252f; --c2-nav-sel: #2a313c; --c2-nav-txt: #d5dae3; --c2-nav-mut: #8d96a6;
  --c2-bg: #fafafa; --c2-card: #fff; --c2-line: #e6e7eb; --c2-card-line: #d5d8de; --c2-txt: #16181d; --c2-mut: #6a7280; --c2-ok: #0a9b43; --c2-bad: #d92d20; --c2-pill: #f0f1f3;
  --c2-track: #f0f1f3; --c2-divisor: #f1f2f4;
}
html[data-ui="crm2"] body, html[data-ui="crm2"] #content, html[data-ui="crm2"] .page-body { background: var(--c2-bg); }
/* ---- menu lateral */
html[data-ui="crm2"] #sidebar { width: 252px; min-width: 252px; background: var(--c2-nav); }
html[data-ui="crm2"] #sidebar.collapsed { width: 64px; min-width: 64px; }
html[data-ui="crm2"] .sidebar-logo { display: none; }
html[data-ui="crm2"] #sidebar .sidebar-scroll > :not(#crm2-nav) { display: none !important; }
html[data-ui="crm2"] #crm2-nav { padding: 56px 0 14px; }
html[data-ui="crm2"] .c2-sec { padding: 18px 20px 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c2-nav-mut); }
html[data-ui="crm2"] .c2-item { color: var(--c2-nav-txt); font-size: 13.5px; font-weight: 500; padding: 9px 12px; margin: 2px 10px; border-radius: 10px; gap: 11px; }
html[data-ui="crm2"] .c2-item:hover { background: rgba(255,255,255,.06); color: #fff; }
html[data-ui="crm2"] .c2-item.active, html[data-ui="crm2"] .nav-item.c2-item.active { background: var(--c2-nav-sel); color: #fff; box-shadow: none; }
html[data-ui="crm2"] .c2-item:focus-visible { outline: 2px solid #5fe19a; outline-offset: 1px; }
html[data-ui="crm2"] .c2-foot { padding: 18px 20px; font-size: 12px; }
html[data-ui="crm2"] .c2-foot a { color: var(--c2-nav-mut); text-decoration: underline; }
html[data-ui="crm2"] .sidebar-user { border-top: 1px solid rgba(255,255,255,.07); background: var(--c2-nav); }
html[data-ui="crm2"] .sidebar-user-menu { background: var(--c2-nav-2); }
html[data-ui="crm2"] #sidebar.collapsed .c2-sec, html[data-ui="crm2"] #sidebar.collapsed .c2-foot { display: none; }
/* ---- barra superior (escura, faixa contínua com o menu) */
html[data-ui="crm2"] #app { position: relative; }
html[data-ui="crm2"] #crm2-topbar { position: sticky; top: 0; z-index: 40; height: 56px; min-height: 56px; display: flex; align-items: center; gap: 6px; padding: 0 16px 0 20px; background: var(--c2-nav); color: #fff; margin-left: 0; }
html[data-ui="crm2"] .c2-top-brand { font-weight: 800; font-size: 20px; letter-spacing: -.02em; display: none; }
html[data-ui="crm2"] .c2-top-btn { background: none; border: 0; color: #cdd3de; width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
html[data-ui="crm2"] .c2-top-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
html[data-ui="crm2"] .c2-menu { display: none; }
/* Voltar (js/crm2-voltar.js): seta + texto, à esquerda da barra; some nas telas raiz (sem tela de origem) */
html[data-ui="crm2"] .c2-top-btn.c2-voltar { width: auto; padding: 0 12px 0 8px; gap: 6px; font-size: 14px; font-weight: 600; color: #fff; background: rgba(255,255,255,.06); }
html[data-ui="crm2"] .c2-top-btn.c2-voltar[hidden] { display: none; }
html[data-ui="crm2"] .c2-top-btn.c2-voltar:focus-visible { outline: 2px solid #00cc44; outline-offset: 2px; }
html[data-ui="crm2"] #mobile-menu-btn { display: none !important; }
/* logo "ollem" no canto superior esquerdo do menu, sobre a faixa escura */
html[data-ui="crm2"] #sidebar::before { content: 'ollem'; position: absolute; left: 20px; top: 0; height: 56px; display: flex; align-items: center; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -.02em; z-index: 2; pointer-events: none; }
@media (min-width: 769px) { html[data-ui="crm2"] #sidebar { position: relative; } }
html[data-ui="crm2"] #sidebar.collapsed::before { content: ''; }
/* ---- páginas novas */
.c2-page { width: 100%; box-sizing: border-box; max-width: 920px; margin: 0 auto; padding: 28px 24px 64px; }
.c2-title { font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: var(--c2-txt, #16181d); margin: 0; }
.c2-sub { color: var(--c2-mut, #6a7280); font-size: 14px; margin: 4px 0 20px; }
.c2-h2 { font-size: 17px; font-weight: 650; color: var(--c2-txt, #16181d); margin: 0; }
.c2-card { background: var(--c2-card, #fff); color: var(--c2-txt, #16181d); border: 1px solid var(--c2-card-line, #d5d8de); border-radius: 18px; padding: 20px 22px; margin-bottom: 18px; box-shadow: none; }
.c2-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.c2-pill { background: var(--c2-pill, #f0f1f3); color: var(--c2-txt, #222); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.c2-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 0 0 22px; padding: 4px 4px 0; }
.c2-kpi { padding: 4px 8px 6px; }
.c2-kpi-ic { color: #4b5563; margin-bottom: 8px; }
.c2-kpi-l { font-size: 12px; color: var(--c2-mut); }
.c2-kpi-v { font-size: 26px; font-weight: 600; color: var(--c2-txt); margin-top: 6px; letter-spacing: -.01em; }
.c2-row { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 0; background: none; border: 0; border-top: 1px solid var(--c2-line); font: inherit; font-size: 14.5px; color: var(--c2-txt); cursor: pointer; text-align: left; }
.c2-row:first-of-type { border-top: 0; margin-top: 4px; }
.c2-row-r { display: inline-flex; align-items: center; gap: 8px; color: #4b5563; }
.c2-row-r b { background: #e9f8ef; color: var(--c2-ok); font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.c2-row-r b:empty { display: none; }
.c2-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 12px; }
.c2-quick button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px; background: none; border: 0; font: inherit; font-size: 14px; color: var(--c2-txt); cursor: pointer; border-radius: 12px; }
.c2-quick button:hover { background: #f4f5f7; }
.c2-row:focus-visible, .c2-quick button:focus-visible, .c2-prod-h:focus-visible, .c2-svc-h:focus-visible, .c2-tab:focus-visible, .c2-btn:focus-visible, .c2-btn-sec:focus-visible { outline: 2px solid #0a9b43; outline-offset: 2px; }
/* estoque */
.c2-est-kpis, .c2-com-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 6px 0 18px; }
.c2-est-kpis div, .c2-com-kpis div { display: flex; flex-direction: column; gap: 3px; }
.c2-est-kpis small, .c2-com-kpis small { font-size: 12.5px; color: var(--c2-mut); letter-spacing: .02em; }
.c2-est-kpis b, .c2-com-kpis b { font-size: 24px; font-weight: 650; color: var(--c2-txt); }
.c2-com-kpis b { font-size: 20px; }
.c2-est-kpis span { font-size: 13px; color: var(--c2-mut); }
.c2-ok { color: var(--c2-ok) !important; } .c2-bad { color: var(--c2-bad) !important; } .c2-na { color: var(--c2-mut) !important; }
.c2-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--c2-line); border-radius: 999px; padding: 0 16px; margin-bottom: 10px; background: #fff; color: var(--c2-mut); }
.c2-search input { flex: 1; border: 0; outline: 0; background: transparent; padding: 14px 0; font-size: 14.5px; color: var(--c2-txt); min-width: 0; }
.c2-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.c2-f2 select, .c2-sel, .c2-f select, .c2-f input, .c2-f textarea { border: 1px solid var(--c2-line); border-radius: 14px; padding: 12px 14px; font: inherit; font-size: 14.5px; background: #fff; color: var(--c2-txt); width: 100%; box-sizing: border-box; }
.c2-sel { max-width: 320px; margin-bottom: 18px; }
.c2-list-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 18px 0 8px; color: var(--c2-mut); font-size: 13.5px; }
.c2-prod-list { border: 1px solid var(--c2-line); border-radius: 14px; overflow: hidden; background: #fff; max-height: 62vh; overflow-y: auto; }
.c2-prod { border-top: 1px solid var(--c2-line); } .c2-prod:first-child { border-top: 0; }
.c2-prod-h, .c2-svc-h { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; color: var(--c2-txt); }
.c2-prod-h > span:first-child, .c2-svc-h > span:first-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.c2-prod-h small, .c2-svc-h small { color: var(--c2-mut); font-size: 12.5px; font-weight: 400; }
.c2-prod-s, .c2-svc-r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.c2-prod-s b, .c2-svc-r b { font-size: 17px; font-weight: 650; }
.c2-prod-s small { font-size: 10.5px; }
.c2-prod-h svg, .c2-svc-h svg { color: #6b7280; flex-shrink: 0; transition: transform .15s; } .c2-prod.open .c2-prod-h svg, .c2-svc.open .c2-svc-h svg { transform: rotate(180deg); }
.c2-prod-d { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 4px 16px 14px; font-size: 13.5px; color: var(--c2-txt); } .c2-prod-d small { display: block; color: var(--c2-mut); font-size: 11.5px; margin-bottom: 2px; }
.c2-empty { padding: 22px; text-align: center; color: var(--c2-mut); font-size: 14px; }
/* Página 9 — Controle de Estoque (30/10/2026): largura total (respeita a sidebar, margens de 24px), 3 indicadores em cartão,
   grade de 2 colunas de cartões expansíveis (1 coluna no celular). Só apresentação — o cálculo do saldo continua em crm2RenderEstoque. */
.c2-page.c2-page--est { max-width: none; }
.c2-est .c2-head { margin-bottom: 18px; }
.c2-est .c2-est-kpis { gap: 14px; margin: 0 0 18px; }
.c2-est .c2-est-kpis > .c2-est-kpi { background: var(--c2-card, #fff); border: 1px solid var(--c2-card-line, #d5d8de); border-radius: 16px; padding: 16px 18px; min-width: 0; }
.c2-est .c2-est-kpis > .c2-est-kpi b { font-size: 28px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.c2-est .c2-search { width: 100%; box-sizing: border-box; }
#page-crm2-estoque .c2-search input { -webkit-appearance: none; appearance: none; background: transparent; border: 0; box-shadow: none; }   /* vence a regra genérica de input do layout de campo */
#page-crm2-estoque .c2-f2 select { background-color: #fff; }
.c2-est .c2-search input::-webkit-search-cancel-button { cursor: pointer; }
.c2-est-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.c2-est-card { background: var(--c2-card, #fff); border: 1px solid var(--c2-card-line, #d5d8de); border-radius: 14px; min-width: 0; overflow: hidden; }
.c2-est-card[data-sit="neg"] { border-color: #f3b4ae; }
.c2-est-h { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; color: var(--c2-txt); border-radius: 14px; }
.c2-est-h:hover { background: #f8f9fa; }
.c2-est-h:focus-visible { outline: 2px solid #0a9b43; outline-offset: -2px; }
.c2-est-n { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.c2-est-n b { font-size: 14.5px; font-weight: 650; overflow-wrap: anywhere; }
.c2-est-n small { color: var(--c2-mut); font-size: 12.5px; }
.c2-est-s { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; flex-shrink: 0; }
.c2-est-s b { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.c2-est-s small { font-size: 11px; font-weight: 600; }
.c2-est-s.c2-na b { font-size: 14px; font-weight: 600; }
.c2-warn { color: #b4531c !important; }
.c2-est-chev { display: inline-flex; color: var(--c2-mut); flex-shrink: 0; transition: transform .15s ease; }
.c2-est-card.open .c2-est-chev { transform: rotate(180deg); }
.c2-est-d { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 2px 16px 14px; font-size: 13.5px; color: var(--c2-txt); border-top: 1px solid var(--c2-line); padding-top: 12px; }
.c2-est-d[hidden] { display: none; }
.c2-est-d small { display: block; color: var(--c2-mut); font-size: 11.5px; margin-bottom: 2px; }
.c2-est-d-full { grid-column: 1 / -1; }
.c2-est-vazio { grid-column: 1 / -1; border: 1px dashed var(--c2-card-line, #d5d8de); border-radius: 14px; }
@media (max-width: 860px) { .c2-est-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 768px) {
  .c2-est .c2-f2 { grid-template-columns: 1fr 1fr; }
  .c2-est .c2-est-kpis { gap: 8px; } .c2-est .c2-est-kpis > .c2-est-kpi { padding: 12px; } .c2-est .c2-est-kpis > .c2-est-kpi b { font-size: 22px; }
  .c2-est .c2-est-kpis small { font-size: 11px; }
}
@media (max-width: 420px) { .c2-est .c2-f2 { grid-template-columns: 1fr; } .c2-est-d { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .c2-est-chev { transition: none; } }
/* comissões */
.c2-lbl { display: block; font-size: 13px; color: var(--c2-mut); margin: 4px 0 6px; font-weight: 600; }
.c2-svc { border: 1px solid var(--c2-line); border-radius: 14px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.c2-svc-d { border-top: 1px solid var(--c2-line); padding: 14px 16px 16px; } .c2-svc-d h3 { font-size: 13px; margin: 0 0 8px; color: var(--c2-txt); }
.c2-tbl-wrap { overflow-x: auto; } .c2-svc-d table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 420px; }
/* Página 8 (30/10/2026) — Minhas Comissões em largura total (sem o teto de 920px das demais páginas novas), 3 cartões de KPI iguais */
.c2-page.c2-page--larga { max-width: none; }
.c2-com-head { margin-bottom: 6px; } .c2-com-head .c2-sub { margin-bottom: 8px; }
.c2-com .c2-com-kpis { gap: 14px; margin: 4px 0 22px; }
.c2-com .c2-com-kpi { background: #fff; border: 1px solid var(--c2-card-line, #d5d8de); border-radius: 16px; padding: 16px 18px; min-width: 0; }
.c2-com .c2-com-kpi b { font-size: 24px; overflow-wrap: anywhere; }
.c2-com .c2-svc-d table { min-width: 640px; } .c2-svc-d th.c2-num, .c2-svc-d td.c2-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c2-svc-d[hidden] { display: none; }
@media (max-width: 768px) { .c2-com .c2-com-kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .c2-com .c2-com-kpi:last-child { grid-column: 1 / -1; } .c2-com .c2-com-kpi b { font-size: 20px; } .c2-com .c2-sel { max-width: none; } }
@media (max-width: 359px) { .c2-com .c2-com-kpis { grid-template-columns: 1fr; } }
.c2-svc-d th { text-align: left; color: var(--c2-mut); font-weight: 500; font-size: 12px; padding: 4px 8px 6px 0; } .c2-svc-d td { padding: 6px 8px 6px 0; color: var(--c2-txt); border-top: 1px solid #f1f2f4; }
.c2-menu-wrap { position: relative; } .c2-pop { position: absolute; right: 0; top: 44px; z-index: 20; background: #fff; border: 1px solid var(--c2-line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 6px; min-width: 170px; } .c2-pop[hidden] { display: none; }
.c2-pop button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 8px; font: inherit; font-size: 13.5px; cursor: pointer; color: var(--c2-txt); } .c2-pop button:hover { background: #f4f5f7; }
.c2-btn, .c2-btn-sec { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 10px 18px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid var(--c2-line); background: #fff; color: var(--c2-txt); }
.c2-btn { background: #0a9b43; border-color: #0a9b43; color: #fff; } .c2-btn:hover { background: #088a3b; } .c2-btn[disabled] { opacity: .6; cursor: default; }
/* modal novo lead */
.c2-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(15,18,25,.5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.c2-modal-box { background: #fff; color: #16181d; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 20px; padding: 20px 22px 22px; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.c2-modal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; } .c2-modal-top h2 { margin: 0; font-size: 20px; }
.c2-x { background: none; border: 0; cursor: pointer; width: 34px; height: 34px; border-radius: 10px; color: #4b5563; } .c2-x:hover { background: #f1f2f4; }
.c2-f { display: block; font-size: 12.5px; font-weight: 600; color: #4b5563; margin-bottom: 12px; } .c2-f input, .c2-f select, .c2-f textarea { margin-top: 5px; font-weight: 400; }
.c2-modal-act { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.c2-dup { background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; border-radius: 12px; padding: 10px 12px; font-size: 13px; margin: -4px 0 12px; } .c2-dup[hidden] { display: none; } .c2-dup small { display: block; margin-top: 4px; color: #9a3412; }
/* Material de Apoio: abas */
.c2-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.c2-tab { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--c2-line); background: #fff; color: var(--c2-txt); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13.5px; cursor: pointer; }
.c2-tab.on { background: #111827; color: #fff; border-color: #111827; font-weight: 600; }
/* ---- mobile */
@media (max-width: 768px) {
  html[data-ui="crm2"] .c2-menu { display: inline-flex; }
  html[data-ui="crm2"] .c2-top-brand { display: inline; margin-left: 4px; }
  html[data-ui="crm2"] #crm2-topbar { padding: 0 10px; }
  html[data-ui="crm2"] .c2-top-btn.c2-voltar { padding: 0 10px 0 6px; }
  html[data-ui="crm2"] #sidebar { width: min(84vw, 300px); min-width: 0; }
  html[data-ui="crm2"] #sidebar::before { display: none; }
  html[data-ui="crm2"] #crm2-nav { padding-top: 14px; }
  .c2-page { padding: 18px 14px 96px; } .c2-card { padding: 16px; border-radius: 16px; }
  .c2-est-kpis, .c2-com-kpis { gap: 6px; } .c2-est-kpis b { font-size: 20px; } .c2-com-kpis b { font-size: 15px; } .c2-prod-d { grid-template-columns: 1fr; }
  .c2-f2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .c2-prod-h svg, .c2-svc-h svg { transition: none; } }
/* ---- Material de Apoio / telas legadas com cor escrita no próprio elemento (estilo inline para fundo escuro): no layout claro, reescreve só a COR (nunca layout/valor) */
html[data-ui="crm2"] #page-suporte [style*="color:rgba(255,255,255"], html[data-ui="crm2"] #page-suporte [style*="color: rgba(255,255,255"] { color: var(--c2-mut) !important; }
html[data-ui="crm2"] #page-suporte [style*="color:#fff"], html[data-ui="crm2"] #page-suporte [style*="color:#ffffff"], html[data-ui="crm2"] #page-suporte [style*="color: #fff"] { color: var(--c2-txt) !important; }
html[data-ui="crm2"] #page-suporte [style*="background:rgba(255,255,255"], html[data-ui="crm2"] #page-suporte [style*="background: rgba(255,255,255"] { background: #f4f5f7 !important; }
html[data-ui="crm2"] #page-suporte [style*="border:1px solid rgba(255,255,255"], html[data-ui="crm2"] #page-suporte [style*="border-bottom:1px solid rgba(255,255,255"], html[data-ui="crm2"] #page-suporte [style*="border-top:1px solid rgba(255,255,255"] { border-color: var(--c2-line) !important; }
html[data-ui="crm2"] #page-suporte .chart-card { background: #fff; border: 1px solid var(--c2-line); border-radius: 18px; box-shadow: none; }
html[data-ui="crm2"] #page-suporte h3, html[data-ui="crm2"] #page-suporte .page-title { color: var(--c2-txt); }
html[data-ui="crm2"] #page-suporte input, html[data-ui="crm2"] #page-suporte select { background: #fff; color: var(--c2-txt); border: 1px solid var(--c2-line); border-radius: 12px; }
html[data-ui="crm2"] #page-suporte [style*="color:#e6edf3"], html[data-ui="crm2"] #page-suporte [style*="color:#c9d1d9"], html[data-ui="crm2"] #page-suporte [style*="color:white"] { color: var(--c2-txt) !important; }
html[data-ui="crm2"] #page-suporte [style*="color:#00CC44"], html[data-ui="crm2"] #page-suporte [style*="color:#00cc44"], html[data-ui="crm2"] #page-suporte [style*="color:#00e050"] { color: var(--c2-ok) !important; }
/* ---- KPIs: no crm2 os blocos coloridos do layout de teste viram cartões brancos discretos (verde só como acento de sucesso) */
html[data-ui="crm2"][data-layout="fieldops"] .kpi-grid > .kpi-card:not(.kpi-card--compact), html[data-ui="crm2"][data-layout="fieldops"] .kpi-grid > .kpi-card:not(.kpi-card--compact):nth-child(n) { background: #fff; border: 1px solid var(--c2-line); color: var(--c2-txt); box-shadow: none; border-radius: 16px; }
html[data-ui="crm2"][data-layout="fieldops"] .kpi-grid > .kpi-card:not(.kpi-card--compact)::after { display: none; }
html[data-ui="crm2"][data-layout="fieldops"] .kpi-grid > .kpi-card:not(.kpi-card--compact) * { color: var(--c2-txt) !important; }
html[data-ui="crm2"][data-layout="fieldops"] .kpi-grid > .kpi-card:not(.kpi-card--compact) .kpi-card__label, html[data-ui="crm2"][data-layout="fieldops"] .kpi-grid > .kpi-card:not(.kpi-card--compact) .kpi-card__nota { color: var(--c2-mut) !important; opacity: 1; }
html[data-ui="crm2"][data-layout="fieldops"] .kpi-grid > .kpi-card:not(.kpi-card--compact) .is-positivo { color: var(--c2-ok) !important; }
html[data-ui="crm2"][data-layout="fieldops"] .kpi-grid > .kpi-card:not(.kpi-card--compact) .is-negativo { color: var(--c2-bad) !important; }
/* botão principal e item ativo discretos, como nos protótipos */
html[data-ui="crm2"] .btn-primary, html[data-ui="crm2"][data-layout="fieldops"] .btn-primary { background: #0a9b43; box-shadow: none; }
html[data-ui="crm2"] .page-header { background: #fff; border-bottom: 1px solid var(--c2-line); backdrop-filter: none; }
html[data-ui="crm2"] .page-title { font-size: 22px; font-weight: 700; }
/* ---- Conversas: filas diretas + chips de tag */
html[data-ui="crm2"] .wa-filters--c2 { display: block; }
.c2-qs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 4px 0 8px; }
.c2-q { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--c2-line); background: #fff; color: var(--c2-txt); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; text-align: left; }
.c2-q span { background: #f0f1f3; border-radius: 999px; padding: 1px 7px; font-size: 11.5px; color: var(--c2-mut); }
.c2-q.on { background: #111827; border-color: #111827; color: #fff; font-weight: 600; } .c2-q.on span { background: rgba(255,255,255,.18); color: #fff; }
.c2-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.c2-chip[disabled] { opacity: .45; cursor: not-allowed; }
html[data-ui="crm2"] #page-whatsapp > .page-header .wa-devbadge { display: none; }
/* ---- Início (versão aprovada): prioritário · indicadores · tarefas · desempenho · acesso rápido */
.c2-eyebrow { font-size: 11px; letter-spacing: .08em; color: var(--c2-mut); font-weight: 600; margin-bottom: 4px; }
.c2-sub2 { color: var(--c2-mut); font-size: 13px; margin: 2px 0 0; }
.c2-kpis--cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0; margin: 0 0 18px; }
.c2-kpis--cards .c2-kpi { background: var(--c2-card, #fff); border: 1px solid var(--c2-card-line, #d5d8de); border-radius: 16px; padding: 14px 16px; }
.c2-kpi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; } .c2-kpi-top .c2-kpi-ic { color: var(--c2-ok); margin: 0; }
/* ---- Início v2 (27/10/2026): central de alertas · indicadores clicáveis · Minha atenção hoje · desempenho em 2 cartões. Tons suaves, texto escuro (contraste AA) */
.c2-alertas { --al-bg: #f4fbf7; --al-line: #b9dfc8; --al-ic: #0a7a35; --al-ic-bg: #dff3e7; background: var(--al-bg); border-color: var(--al-line); padding: 16px 20px; }
.c2-al--critico { --al-bg: #fef4f3; --al-line: #efb3ab; --al-ic: #b42318; --al-ic-bg: #fde3e0; }
.c2-al--atencao { --al-bg: #fff8ec; --al-line: #eec484; --al-ic: #9a4a07; --al-ic-bg: #fdebcd; }
.c2-al--comunicado { --al-bg: #f2f7ff; --al-line: #aec6f5; --al-ic: #1d4ed8; --al-ic-bg: #e0eafe; }
.c2-al--info { --al-bg: #f6f7f9; --al-line: #d3d6dc; --al-ic: #4b5563; --al-ic-bg: #eceef2; }
.c2-al--positivo { --al-bg: #f4fbf7; --al-line: #b9dfc8; --al-ic: #0a7a35; --al-ic-bg: #dff3e7; }
.c2-al-row { display: flex; align-items: center; gap: 14px; } .c2-al-row + .c2-al-row { margin-top: 10px; }
.c2-al-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--al-ic-bg); color: var(--al-ic); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.c2-al-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .c2-al-t b { font-size: 15.5px; color: var(--c2-txt); font-weight: 650; } .c2-al-t span { font-size: 13.5px; color: #374151; line-height: 1.45; }
.c2-al-meta { font-size: 12px; color: #4b5563; } .c2-al-meta b { color: var(--al-ic); font-weight: 650; }
.c2-al-btn { flex-shrink: 0; white-space: nowrap; }
.c2-al--critico > .c2-al-row .c2-btn { background: #b42318; border-color: #b42318; } .c2-al--critico > .c2-al-row .c2-btn:hover { background: #912018; }
.c2-al--atencao > .c2-al-row .c2-btn { background: #9a4a07; border-color: #9a4a07; } .c2-al--atencao > .c2-al-row .c2-btn:hover { background: #7c3c06; }
.c2-al--comunicado > .c2-al-row .c2-btn { background: #1d4ed8; border-color: #1d4ed8; } .c2-al--comunicado > .c2-al-row .c2-btn:hover { background: #1a43b8; }
.c2-al-mais { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0 54px; background: none; border: 0; padding: 4px 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--al-ic); cursor: pointer; }
.c2-al-mais[aria-expanded="true"] svg { transform: rotate(180deg); } .c2-al-mais:focus-visible { outline: 2px solid var(--al-ic); outline-offset: 2px; border-radius: 6px; }
.c2-al-lista[hidden] { display: none; }
.c2-al-lista { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow: auto; }
.c2-al-row--sm { background: var(--c2-card, #fff); border: 1px solid var(--al-line); border-radius: 12px; padding: 10px 12px; margin: 0 !important; gap: 12px; }
.c2-al-row--sm .c2-al-ic { width: 32px; height: 32px; border-radius: 10px; } .c2-al-row--sm .c2-al-t b { font-size: 14px; } .c2-al-row--sm .c2-al-t span { font-size: 13px; }
.c2-al-row--sm.c2-al-critico { --al-ic: #b42318; --al-ic-bg: #fde3e0; } .c2-al-row--sm.c2-al-atencao { --al-ic: #9a4a07; --al-ic-bg: #fdebcd; } .c2-al-row--sm.c2-al-comunicado { --al-ic: #1d4ed8; --al-ic-bg: #e0eafe; } .c2-al-row--sm.c2-al-info { --al-ic: #4b5563; --al-ic-bg: #eceef2; }
.c2-kpi--btn { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.c2-kpi--btn:hover { border-color: #a7dfbd; box-shadow: 0 6px 18px -12px rgba(16,24,40,.35); } .c2-kpi--btn:focus-visible { outline: 2px solid var(--c2-ok); outline-offset: 2px; }
.c2-kpi-n { font-size: 12px; color: #9a4a07; min-height: 16px; margin-top: 2px; font-weight: 600; }
.c2-at-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.c2-at-col { min-width: 0; } .c2-at-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--c2-txt); padding: 0 0 8px; border-bottom: 1px solid var(--c2-line); margin-bottom: 4px; } .c2-at-h svg { color: var(--c2-ok); flex-shrink: 0; }
.c2-at-n { margin-left: auto; background: #f0f1f3; color: #374151; border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 600; } .c2-at-n:empty { display: none; }
.c2-at-item { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; border-radius: 12px; padding: 9px 6px; text-align: left; font: inherit; color: var(--c2-txt); cursor: pointer; }
.c2-at-item:hover { background: #f4f5f7; } .c2-at-item:focus-visible { outline: 2px solid var(--c2-ok); outline-offset: 1px; }
.c2-at-item .c2-av { width: 34px; height: 34px; font-size: 12.5px; }
.c2-at-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; } .c2-at-t b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c2-at-t span, .c2-at-t small { font-size: 12.5px; color: var(--c2-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c2-at-tempo { font-size: 12px; color: #4b5563; white-space: nowrap; flex-shrink: 0; align-self: flex-start; padding-top: 2px; }
.c2-at-vazio { color: var(--c2-mut); font-size: 13.5px; padding: 12px 6px; } .c2-at-mais { padding: 6px 6px 0; font-size: 13px; }
.c2-perf2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; }
.c2-perf-card { display: flex; align-items: center; gap: 14px; border-radius: 14px; padding: 16px 18px; border: 1px solid; min-width: 0; }
.c2-perf-card > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .c2-perf-card small { font-size: 13px; color: #374151; font-weight: 600; }
.c2-perf-card b { font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: #16181d; overflow-wrap: anywhere; } .c2-perf-card em { font-style: normal; font-size: 12px; color: #4b5563; }
.c2-perf-ic { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.c2-perf-card--ok { background: #f0faf4; border-color: #cbe9d6; } .c2-perf-card--ok .c2-perf-ic { background: #d9f2e3; color: #0a7a35; }
.c2-perf-card--warn { background: #fff8ec; border-color: #f5d9a8; } .c2-perf-card--warn .c2-perf-ic { background: #fdebcd; color: #9a4a07; }
@media (max-width: 1024px) { .c2-at-grid { grid-template-columns: 1fr 1fr; } .c2-at-grid .c2-at-col:last-child { grid-column: 1 / -1; } }
@media (max-width: 768px) { .c2-at-grid { grid-template-columns: 1fr; } .c2-at-grid .c2-at-col:last-child { grid-column: auto; } .c2-al-row { flex-wrap: wrap; } .c2-al-row > .c2-al-btn { width: 100%; justify-content: center; margin-left: 54px; width: calc(100% - 54px); } .c2-al-row--sm > .c2-al-btn { margin-left: 44px; width: calc(100% - 44px); } .c2-al-mais { margin-left: 0; } }
@media (max-width: 560px) { .c2-perf2 { grid-template-columns: 1fr; } .c2-al-row > .c2-al-btn, .c2-al-row--sm > .c2-al-btn { margin-left: 0; width: 100%; } }
.c2-av { width: 42px; height: 42px; border-radius: 50%; background: #dff3e7; color: #0a7a35; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.c2-av--t { background: #fff3e0; color: #b45309; } .c2-av--l { background: #e8efff; color: #1d4ed8; }
.c2-empty { color: var(--c2-mut); font-size: 14px; padding: 6px 0; } .c2-skel { height: 44px; border-radius: 10px; background: linear-gradient(90deg, var(--c2-divisor, #f1f2f4), var(--c2-line, #e8e9ec), var(--c2-divisor, #f1f2f4)); background-size: 200% 100%; animation: c2sk 1.2s linear infinite; } @keyframes c2sk { to { background-position: -200% 0; } }
.c2-pill--warn { background: #ffeadb; color: #b4531c; }
.c2-task { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--c2-line); } .c2-task:first-child { border-top: 0; }
.c2-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c4c9d2; background: #fff; cursor: pointer; flex-shrink: 0; padding: 0; } .c2-check:hover { border-color: var(--c2-ok); background: #e9f8ef; } .c2-check.on { background: var(--c2-ok); border-color: var(--c2-ok); }
.c2-task-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .c2-task-t b { font-size: 14.5px; color: var(--c2-txt); font-weight: 600; } .c2-task-t span { font-size: 12.5px; color: var(--c2-mut); }
.c2-task-a { display: flex; gap: 6px; } .c2-mini { border: 1px solid var(--c2-line); background: #fff; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; color: var(--c2-txt); }
.c2-chip2 { font-size: 12px; background: #f0f1f3; border-radius: 999px; padding: 3px 10px; color: #374151; white-space: nowrap; } .c2-chip2.late { background: #fde8e8; color: #b42318; } .c2-chip2.today { background: #fff0e0; color: #b4531c; }
.c2-link { background: none; border: 0; color: var(--c2-ok); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 10px 0 0; display: block; margin-left: auto; }
.c2-quick--4 { grid-template-columns: repeat(4, 1fr); }
.c2-tabs { display: flex; gap: 8px; margin: 0 0 14px; } .c2-tab2, .c2-tabs .c2-tab { border: 1px solid var(--c2-line); background: #fff; border-radius: 999px; padding: 8px 16px; font: inherit; cursor: pointer; color: var(--c2-txt); } .c2-tabs .c2-tab.on { background: #111827; color: #fff; border-color: #111827; }
.c2-grp { font-size: 13px; color: var(--c2-mut); margin: 14px 0 2px; text-transform: uppercase; letter-spacing: .04em; } .c2-grp span { background: #f0f1f3; border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
/* pop-ups da barra superior */
.c2-poptop { position: fixed; top: 54px; right: 12px; z-index: 1500; width: min(340px, calc(100vw - 24px)); background: #fff; color: var(--c2-txt); border: 1px solid var(--c2-line); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.2); padding: 8px; }
.c2-poptop-h { padding: 10px 12px; font-size: 14px; display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--c2-line); margin-bottom: 4px; font-weight: 700; } .c2-poptop-h small { color: var(--c2-mut); font-weight: 400; }
.c2-notif { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; background: none; border: 0; text-align: left; padding: 10px 12px; border-radius: 10px; font: inherit; cursor: pointer; color: var(--c2-txt); } .c2-notif:hover { background: #f4f5f7; } .c2-notif.novo b::before { content: '● '; color: #2563eb; } .c2-notif small { color: var(--c2-mut); font-size: 12px; }
.c2-poptop .c2-link { margin: 0; padding: 10px 12px; }
@media (max-width: 768px) { .c2-kpis--cards { grid-template-columns: 1fr 1fr; } .c2-quick--4 { grid-template-columns: 1fr 1fr; } .c2-task-a { display: none; } }
/* ---- Pipeline (crm2): áreas, quadro/lista, menu dos cartões */
.c2-pip { padding: 4px 4px 40px; }
.c2-tab-n { margin-left: 6px; background: rgba(120,120,130,.16); border-radius: 999px; padding: 0 7px; font-size: 11.5px; } .c2-tab.on .c2-tab-n { background: rgba(255,255,255,.2); }
.c2-seg { display: inline-flex; border: 1px solid var(--c2-line); border-radius: 999px; overflow: hidden; background: #fff; } .c2-seg button { border: 0; background: none; padding: 7px 14px; font: inherit; font-size: 13px; cursor: pointer; color: var(--c2-txt); } .c2-seg button.on { background: #111827; color: #fff; }
.c2-pip-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; } .c2-search--sm { margin: 0; flex: 1; min-width: 220px; max-width: 420px; } .c2-search--sm input { padding: 9px 0; font-size: 13.5px; } .c2-sel--sm { margin: 0; padding: 9px 12px; font-size: 13.5px; max-width: 220px; }
.c2-pip-menu { position: absolute; top: 8px; right: 8px; } .c2-pip-board .pip-card { position: relative; }
.c2-lista { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; } .c2-lista th { text-align: left; font-weight: 600; font-size: 12px; color: var(--c2-mut); padding: 12px 14px; border-bottom: 1px solid var(--c2-line); } .c2-lista td { padding: 11px 14px; border-top: 1px solid #f1f2f4; } .c2-lista tbody tr { cursor: pointer; } .c2-lista tbody tr:hover { background: #fafbfc; }
.c2-kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--c2-divisor, #f1f2f4); font-size: 13.5px; } .c2-kv span { color: var(--c2-mut); } .c2-kv b { font-weight: 600; text-align: right; }
/* Cliente 360º: histórico cronológico */
.c2-cron { border-left: 2px solid #e5e7eb; margin: 6px 0 12px 8px; padding-left: 14px; } .c2-cron-i { position: relative; padding: 0 0 12px; } .c2-cron-i i { position: absolute; left: -21px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #0a9b43; border: 2px solid #fff; }
.c2-dash-extra { margin-bottom: 16px; } .c2-dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-top: 10px; } .c2-h3 { font-size: 13.5px; margin: 6px 0 8px; } .c2-h3 small { color: var(--c2-mut); font-weight: 400; }
.c2-bar { display: grid; grid-template-columns: minmax(80px, 150px) 1fr 32px; gap: 8px; align-items: center; font-size: 13px; padding: 4px 0; } .c2-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .c2-bar div { background: var(--c2-track, #f0f1f3); border-radius: 6px; height: 9px; } .c2-bar i { display: block; height: 9px; border-radius: 6px; background: var(--c2-ok, #0a9b43); } .c2-bar b { text-align: right; }
.c2-score { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; } .c2-score b { font-size: 30px; color: var(--c2-ok, #0a9b43); } .c2-score span { color: var(--c2-mut); font-size: 13px; }
@media (max-width: 768px) { .c2-dash-grid { grid-template-columns: 1fr; } }
/* O painel "Meu desempenho comercial" também é montado no Dashboard do layout clássico (admin/gestor), onde os tokens --c2-* não existem:
   sem isto o cartão caía no fallback branco e o texto herdava a cor clara do tema escuro (texto branco sobre branco). Mapeia para o tema ativo. */
html:not([data-ui="crm2"]) .c2-dash-extra { --c2-card: var(--c-surface); --c2-line: var(--c-borda); --c2-card-line: var(--c-borda); --c2-divisor: var(--c-divisor); --c2-track: var(--c-borda); --c2-txt: var(--c-texto); --c2-mut: var(--c-texto-suave); --c2-ok: var(--c-sucesso); --c2-pill: var(--c-surface-sutil); }
.c2-cron-i b { display: block; font-size: 13.5px; } .c2-cron-i span { display: block; font-size: 12.5px; color: var(--c2-mut); } .c2-cron-i small { color: var(--c2-mut); font-size: 11.5px; }

/* Visita técnica (tags do cartão + painel do Dashboard) — js/visitas-tecnicas.js */
.vt-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 2px; } .vt-tag { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: #eef1f5; color: #374151; border: 0; font-family: inherit; }
.vt-tag--aberta { background: #fff4d6; color: #8a5a00; } .vt-tag--feita { background: #e3f6ea; color: #0a7a35; } .vt-tag--btn { cursor: pointer; background: #e8f0ff; color: #1d4ed8; }
.vt-dash { margin-bottom: 16px; } .vt-card { background: #fff; color: #16181d; border: 1px solid #e6e8ec; border-radius: 16px; padding: 18px 20px; } .vt-card h2 { font-size: 17px; margin: 0; } .vt-card h3 { font-size: 13.5px; margin: 14px 0 6px; }
.vt-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; } .vt-pers { display: flex; gap: 6px; } .vt-per { border: 1px solid #d9dce2; background: #fff; color: #16181d; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; cursor: pointer; }   /* cor explícita (03/11/2026): sem ela o botão herdava um cinza de 3,6:1 no CRM2 do administrador */ .vt-per.on { background: #087a35; color: #fff; border-color: #087a35; }   /* 03/11/2026: #0a9b43 com texto branco dava 3,6:1 (abaixo do AA 4,5:1) */
.vt-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; } .vt-k { background: #f6f7f9; border-radius: 12px; padding: 10px 12px; } .vt-k span { display: block; font-size: 12px; color: #6b7280; } .vt-k b { font-size: 22px; } .vt-k small { display: block; font-size: 11px; color: #6b7280; margin-top: 2px; }
.vt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 28px; } .vt-dest { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #6b7280; } .vt-dest b { color: #16181d; margin-left: 4px; }
.vt-tab { width: 100%; border-collapse: collapse; font-size: 13px; } .vt-tab th { text-align: right; font-weight: 500; color: #6b7280; padding: 4px 6px; } .vt-tab th:first-child, .vt-tab td:first-child { text-align: left; } .vt-tab td { text-align: right; padding: 5px 6px; border-top: 1px solid #f0f1f3; }
.vt-nota, .vt-vazio { font-size: 12px; color: #6b7280; margin: 6px 0 0; }

/* Aviso fixo de propostas vencidas (js/pendencias-vencidas.js): no celular não pode cobrir a barra de navegação inferior nem o conteúdo; continua fechável. A regra comercial (bloquear só nova proposta/nova venda a partir de D+2) não muda. */
@media (max-width: 768px) { html[data-ui="crm2"] #pvc-bar { bottom: 72px !important; left: 12px !important; right: 12px !important; transform: none !important; max-width: none !important; } }

/* ---- Funil de Leads (cartões): base = aparência anterior (layout clássico); no CRM2, design system claro */
.lk-board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.lk-col { min-width: 220px; flex: 1; background: rgba(255,255,255,.02); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; max-height: 560px; }
.lk-col-h { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--lk-cor, #888); flex-shrink: 0; }
.lk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lk-cor, #888); } .lk-col-t { font-size: 11.5px; font-weight: 700; color: #e6edf3; text-transform: uppercase; letter-spacing: .03em; } .lk-col-n { margin-left: auto; font-size: 11px; color: rgba(255,255,255,.35); }
.lk-col-body { overflow-y: auto; flex: 1; min-height: 40px; } .lk-vazio { font-size: 11px; color: rgba(255,255,255,.35); text-align: center; padding: 10px 0; }
.lk-card { background: #12140f; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 9px 10px; margin-bottom: 8px; cursor: pointer; } .lk-card--livre { border-color: rgba(0,204,68,.25); }
.lk-nome { font-size: 12.5px; font-weight: 700; color: #e6edf3; margin-bottom: 3px; } .lk-tel { font-size: 11px; color: rgba(255,255,255,.4); } .lk-resp { margin-top: 5px; }
.lk-acoes { display: flex; gap: 4px; margin-top: 6px; }
.lk-btn { width: 100%; margin-top: 6px; padding: 3px; font-size: 10px; } .lk-acoes .lk-btn { flex: 1; margin-top: 0; }
.lk-btn--ok { color: #00CC44; border-color: rgba(0,204,68,.35); padding: 4px; font-size: 10.5px; } .lk-btn--bad { color: #ef4444; } .lk-btn--mut { color: rgba(255,255,255,.4); margin-top: 4px; } .lk-btn--prop { color: #00CC44; }
/* CRM2 — claro */
html[data-ui="crm2"] #page-leads-vendedor .chart-card, html[data-ui="crm2"] #page-leads .chart-card { background: #fff; border: 1px solid var(--c2-line); border-radius: 18px; box-shadow: none; padding: 18px; }
html[data-ui="crm2"] #page-leads-vendedor .chart-card > div:first-child, html[data-ui="crm2"] #page-leads-vendedor h3 { color: var(--c2-txt); }
html[data-ui="crm2"] .lk-board { gap: 14px; padding: 2px 2px 10px; scroll-snap-type: x proximity; }
html[data-ui="crm2"] .lk-col { background: #f4f5f7; border: 1px solid var(--c2-line); border-radius: 16px; padding: 12px; min-width: 250px; max-height: 640px; }
html[data-ui="crm2"] .lk-col-h { border-bottom: 0; padding-bottom: 4px; margin-bottom: 10px; }
html[data-ui="crm2"] .lk-col-t { color: var(--c2-txt); font-size: 12px; letter-spacing: .04em; }
html[data-ui="crm2"] .lk-col-n { color: var(--c2-txt); background: #fff; border: 1px solid var(--c2-line); border-radius: 999px; padding: 1px 9px; font-weight: 600; font-size: 12px; }
html[data-ui="crm2"] .lk-vazio { color: var(--c2-mut); font-size: 12.5px; padding: 18px 0; }
html[data-ui="crm2"] .lk-card { background: #fff; border: 1px solid var(--c2-line); border-radius: 14px; padding: 12px 13px; box-shadow: 0 1px 2px rgba(16,24,40,.05); transition: border-color .12s, box-shadow .12s; }
html[data-ui="crm2"] .lk-card:hover, html[data-ui="crm2"] .lk-card:focus-visible { border-color: var(--c2-ok); box-shadow: 0 8px 20px -10px rgba(16,24,40,.25); outline: none; }
html[data-ui="crm2"] .lk-card--livre { border-color: rgba(10,155,67,.45); }
html[data-ui="crm2"] .lk-nome { color: var(--c2-txt); font-size: 14px; margin-bottom: 4px; } html[data-ui="crm2"] .lk-tel { color: var(--c2-mut); font-size: 12.5px; }
html[data-ui="crm2"] .lk-btn { background: #fff; border: 1px solid #d9dce2; color: var(--c2-txt); border-radius: 10px; padding: 7px 10px; font-size: 12.5px; font-weight: 600; min-height: 34px; }
html[data-ui="crm2"] .lk-btn:hover { border-color: var(--c2-ok); }
html[data-ui="crm2"] .lk-btn--ok { color: #fff; background: var(--c2-ok); border-color: var(--c2-ok); } html[data-ui="crm2"] .lk-btn--ok:hover { background: #087a35; color: #fff; }
html[data-ui="crm2"] .lk-btn--bad { color: var(--c2-bad); border-color: #f1c7c3; } html[data-ui="crm2"] .lk-btn--mut { color: var(--c2-mut); } html[data-ui="crm2"] .lk-btn--prop { color: var(--c2-ok); border-color: #b7dfc6; }
/* telas legadas com cor escrita no próprio elemento (estilo para fundo escuro): no layout claro só a COR é reescrita — nunca layout nem valor */
html[data-ui="crm2"] :is(#page-leads-vendedor, #page-leads, #page-whatsapp) [style*="color:rgba(255,255,255"], html[data-ui="crm2"] :is(#page-leads-vendedor, #page-leads) [style*="color: rgba(255,255,255"] { color: var(--c2-mut) !important; }
html[data-ui="crm2"] :is(#page-leads-vendedor, #page-leads) [style*="color:#fff"], html[data-ui="crm2"] :is(#page-leads-vendedor, #page-leads) [style*="color:#e6edf3"] { color: var(--c2-txt) !important; }
html[data-ui="crm2"] :is(#page-leads-vendedor, #page-leads) :is(input, select) { background: #fff; color: var(--c2-txt); border: 1px solid #d9dce2; border-radius: 12px; }
html[data-ui="crm2"] :is(#page-leads-vendedor, #page-leads) label { color: var(--c2-mut); }
html[data-ui="crm2"] #page-leads-vendedor .page-header, html[data-ui="crm2"] #page-leads .page-header { background: transparent; border-bottom: 0; }

/* ---- cabeçalho de página unificado (todas as telas do CRM2) */
html[data-ui="crm2"] .page-header { padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 56px; }
html[data-ui="crm2"] .page-header .page-title { font-size: 20px; font-weight: 700; color: var(--c2-txt); line-height: 1.25; white-space: normal; overflow: visible; }
html[data-ui="crm2"] .page-header .page-sub { color: var(--c2-mut) !important; }
html[data-ui="crm2"] .page-header .btn-primary, html[data-ui="crm2"] .page-header .btn-ghost, html[data-ui="crm2"] .page-header .btn-secondary {
  width: auto; margin: 0 !important; min-height: 38px; padding: 8px 16px; font-size: 13.5px; font-weight: 600; border-radius: 12px; line-height: 1.2;
}
html[data-ui="crm2"] .page-header .btn-primary { background: var(--c2-ok); color: #fff; border: 1px solid var(--c2-ok); } html[data-ui="crm2"] .page-header .btn-primary:hover { background: #087a35; }
html[data-ui="crm2"] .page-header .btn-ghost { background: #fff; color: var(--c2-txt); border: 1px solid #d9dce2; }
/* o Pipeline já tem o seu próprio título ("Minha carteira"): o título genérico do cabeçalho sai, o botão de contratos fica à direita */
html[data-ui="crm2"] #page-pipeline > .page-header { justify-content: flex-end; min-height: 0; padding-bottom: 0; background: transparent; border-bottom: 0; }
html[data-ui="crm2"] #page-pipeline > .page-header .page-title { display: none; }
@media (max-width: 768px) { html[data-ui="crm2"] .page-header { padding: 12px 14px; } html[data-ui="crm2"] .page-header .page-title { font-size: 18px; } }

/* ---- Simulador de cartão (Material de Apoio): resultado em largura total; base escura = layout clássico, claro no CRM2. Fórmulas e taxas não mudam. */
.sim-wrap { border: 1px solid rgba(255,255,255,.1); border-radius: 14px; overflow: hidden; }
.sim-band { background: linear-gradient(135deg, #00CC44, #00a838); color: #06170d; font-weight: 800; font-size: 15px; padding: 10px 16px; letter-spacing: .01em; }
.sim-sec { padding: 12px 16px 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.5); } .sim-sec span { text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: 6px; opacity: .8; }
.sim-avs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; padding: 4px 16px 12px; }
.sim-av { display: flex; flex-direction: column; gap: 4px; background: rgba(0,204,68,.08); border: 1px solid rgba(0,204,68,.25); border-radius: 12px; padding: 12px 14px; } .sim-av__l { font-size: 12.5px; color: #e6edf3; } .sim-av__v { font-size: 20px; font-weight: 800; color: #00CC44; font-variant-numeric: tabular-nums; }
.sim-pcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 4px 16px 16px; }
.sim-pc { display: flex; flex-direction: column; gap: 2px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 10px 12px; background: rgba(255,255,255,.03); } .sim-pc__n { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.6); }
.sim-pc__v { font-size: 17px; font-weight: 800; color: #e6edf3; font-variant-numeric: tabular-nums; } .sim-pc__t { font-size: 11px; color: rgba(255,255,255,.45); font-variant-numeric: tabular-nums; }
.sim-nota { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 10px; max-width: 760px; line-height: 1.5; } .sim-vazio { padding: 24px; text-align: center; color: rgba(255,255,255,.45); font-size: 13px; }
html[data-ui="crm2"] .sim-wrap { border-color: var(--c2-line); background: #fff; }
html[data-ui="crm2"] .sim-band { color: #fff; background: linear-gradient(135deg, #0a9b43, #087a35); }
html[data-ui="crm2"] .sim-sec { color: var(--c2-mut); }
html[data-ui="crm2"] .sim-av { background: #eefaf2; border-color: #b7dfc6; } html[data-ui="crm2"] .sim-av__l { color: var(--c2-txt); } html[data-ui="crm2"] .sim-av__v { color: #087a35; }
html[data-ui="crm2"] .sim-pc { background: #fff; border-color: var(--c2-line); } html[data-ui="crm2"] .sim-pc__n { color: var(--c2-mut); } html[data-ui="crm2"] .sim-pc__v { color: var(--c2-txt); } html[data-ui="crm2"] .sim-pc__t { color: var(--c2-mut); }
html[data-ui="crm2"] .sim-nota, html[data-ui="crm2"] .sim-vazio { color: var(--c2-mut); }

/* ---- Conversas: hierarquia da lista (nome > telefone > prévia), selos que quebram linha em vez de cortar, ações do cabeçalho e do painel sem texto cortado */
html[data-ui="crm2"] #page-whatsapp .wa-row { padding: 12px 14px; gap: 10px; border-bottom: 1px solid var(--c2-line); }
html[data-ui="crm2"] #page-whatsapp .wa-row-nome { font-size: 14.5px; font-weight: 700; color: var(--c2-txt); }
html[data-ui="crm2"] #page-whatsapp .wa-row-tel { font-size: 12px; color: var(--c2-mut); margin-top: 1px; }
html[data-ui="crm2"] #page-whatsapp .wa-row-snippet { font-size: 13px; color: #3b4250; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
html[data-ui="crm2"] #page-whatsapp .wa-row-hora { font-size: 12px; color: var(--c2-mut); }
html[data-ui="crm2"] #page-whatsapp .wa-row-bottom { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 6px; }
html[data-ui="crm2"] #page-whatsapp .wa-row-bottom .badge { font-size: 11px; padding: 2px 8px; }
html[data-ui="crm2"] #page-whatsapp .wa-row-bottom .badge:nth-child(2) { display: none; }          /* selo "REAL": marcador técnico de origem dos dados, não ajuda o vendedor */
html[data-ui="crm2"] #page-whatsapp .wa-row.active { background: #eefaf2; border-left: 3px solid var(--c2-ok); }
html[data-ui="crm2"] #page-whatsapp .wa-row.aguarda:not(.active) { box-shadow: inset 3px 0 0 #f59e0b; }
html[data-ui="crm2"] #page-whatsapp .wa-chat-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
html[data-ui="crm2"] #page-whatsapp .wa-chat-head { flex-wrap: wrap; gap: 8px; }
html[data-ui="crm2"] #page-whatsapp .wa-transfer-btn, html[data-ui="crm2"] #page-whatsapp .wa-ctx-btn { white-space: normal; text-align: center; line-height: 1.25; min-height: 34px; height: auto; border-radius: 10px; }
html[data-ui="crm2"] #page-whatsapp .wa-ctx-btn { width: 100%; }
html[data-ui="crm2"] #page-whatsapp .wa-chat-actions { flex: 1 1 100%; min-width: 0; justify-content: flex-start; }
html[data-ui="crm2"] #page-whatsapp .wa-chat-actions .wa-close-human-btn { flex: 1 1 auto; }

/* Pipeline: CTA da etapa de contato no tema claro */
html[data-ui="crm2"] .pip-card__cta { background: #087a35; border-color: #087a35; color: #fff; border-radius: 10px; min-height: 36px; }
html[data-ui="crm2"] .pip-card__cta:hover { background: #06612a; }
/* ---- Transferir responsável / Marcar perdida (Cliente 360º, 26/10/2026): modal claro nos dois layouts, nada cortado no celular */
.opp360-topo-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.opp360-topo-acoes .tr360-btn, .opp360-topo-acoes .tr360-btn-perda { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 14px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; line-height: 1.2; }
.opp360-topo-acoes .tr360-btn { background: #0a9b43; border: 1px solid #0a9b43; color: #fff; } .opp360-topo-acoes .tr360-btn:hover { background: #088a3b; }
.opp360-topo-acoes .tr360-btn-perda { background: transparent; border: 1px solid #fca5a5; color: #b91c1c; } .opp360-topo-acoes .tr360-btn-perda:hover { background: #fef2f2; }
.tr360-box { width: min(520px, 100%); }
.tr360-sub { font-size: 13.5px; color: #374151; margin: 0 0 12px; line-height: 1.45; }
.tr360-grupo { border: 1px solid #e5e7eb; border-radius: 12px; padding: 8px 10px; margin: 0 0 12px; }
.tr360-tit { font-size: 12px; font-weight: 700; color: #4b5563; text-transform: uppercase; letter-spacing: .03em; margin: 2px 0 6px; }
.tr360-item { display: flex; gap: 10px; align-items: flex-start; padding: 7px 2px; border-top: 1px solid #f1f2f4; cursor: pointer; color: #16181d; }
.tr360-item:first-of-type { border-top: 0; }
.tr360-item input { margin-top: 3px; flex: 0 0 auto; width: 16px; height: 16px; accent-color: #0a9b43; }
.tr360-item span { min-width: 0; overflow-wrap: anywhere; }
.tr360-item b { display: block; font-size: 13.5px; font-weight: 600; }
.tr360-item small { display: block; font-size: 12px; color: #6b7280; }
.tr360-item.dis { cursor: default; opacity: .6; }
.tr360-vazio { font-size: 12.5px; color: #6b7280; padding: 6px 2px; }
.tr360-aviso { background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; border-radius: 10px; padding: 8px 10px; font-size: 12.5px; margin: 0 0 12px; }
.tr360-alerta { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 10px; padding: 8px 10px; font-size: 13px; margin: 0 0 10px; }
.tr360-box select, .tr360-box textarea { width: 100%; box-sizing: border-box; background: #fff; color: #16181d; border: 1px solid #d1d5db; border-radius: 10px; padding: 9px 10px; font: inherit; font-size: 14px; }
@media (max-width: 480px) { .tr360-box { padding: 16px 14px 18px; border-radius: 16px; } .c2-modal-act { flex-wrap: wrap; } .c2-modal-act button { flex: 1 1 auto; justify-content: center; } }

/* ==== PIPELINE v2 (27/10/2026) — cartão operacional: produto/responsável em destaque, IA/Humano/Misto, próxima ação, pendências, ação por etapa,
   atalhos fixos Conversa/Follow-up, última interação real; filtros. Doc: docs/crm2-pipeline-v2.md. Cores com contraste AA sobre branco. */
.c2v-fbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; }
.c2v-fbtn.on { border-color: #111827; background: #111827; color: #fff; }
.c2v-fn { background: #0a9b43; color: #fff; border-radius: 999px; padding: 0 7px; font-size: 11.5px; line-height: 18px; }
.c2v-filtros { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 12px; background: #fff; border: 1px solid var(--c2-line); border-radius: 14px; padding: 12px 14px; margin: -4px 0 12px; }
.c2v-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; }
.c2v-filtros > .c2v-f--chips { grid-column: span 2; } .c2v-chips { flex-wrap: nowrap; }
.c2v-f > span { font-size: 12px; font-weight: 600; color: var(--c2-mut); }
.c2v-filtros .c2-sel--sm { max-width: none; width: 100%; border-radius: 10px; }
.c2v-chips { margin: 0; gap: 6px; }
.c2v-chips .c2-chip { font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--c2-line-2, #d9dce2); background: #fff; color: #374151; border-radius: 999px; min-height: 34px; cursor: pointer; }
.c2v-chips .c2-chip.active { background: #111827; border-color: #111827; color: #fff; }
.c2v-nota { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--c2-mut); }
.c2v-ativos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -4px 0 12px; }
.c2v-chip-at { display: inline-flex; align-items: center; gap: 6px; border: 0; background: #111827; color: #fff; border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 12.5px; cursor: pointer; min-height: 30px; }
.c2v-chip-at span { font-size: 15px; line-height: 1; }
.c2v-limpar { border: 0; background: none; color: #0b6b31; text-decoration: underline; font: inherit; font-size: 12.5px; cursor: pointer; min-height: 30px; }
.c2v-fbtn:focus-visible, .c2v-chip-at:focus-visible, .c2v-limpar:focus-visible, .c2v-btn:focus-visible, .c2v-ic:focus-visible, .c2v-chips .c2-chip:focus-visible, html[data-ui="crm2"] .c2-pip-board .pip-card:focus-visible { outline: 2px solid #0a9b43; outline-offset: 2px; }
/* cartão */
.c2v-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-width: 0; }
.c2v-prod { background: #e8f6ee; color: #065f2c; font-weight: 700; font-size: 11.5px; padding: 2px 9px; border-radius: 999px; max-width: 100%; overflow-wrap: anywhere; }
.c2v-prod.is-vazio { background: #f2f3f5; color: #4b5563; font-weight: 600; }
.c2v-resp { display: inline-flex; align-items: center; gap: 5px; background: #eef1fb; color: #1e3a8a; font-weight: 650; font-size: 11.5px; padding: 2px 9px 2px 2px; border-radius: 999px; max-width: 100%; min-width: 0; }
.c2v-resp i { font-style: normal; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: #c7d2fe; color: #1e3a8a; display: inline-flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 800; }
.c2v-resp.is-vazio { background: #fff7e6; color: #8a4500; border: 1px dashed #f0b45a; padding-top: 1px; padding-bottom: 1px; }
.c2v-resp.is-vazio i { background: #fde4b8; color: #8a4500; }
.c2v-canal { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; letter-spacing: .02em; }
.c2v-canal--ia { background: #f3e8ff; color: #6b21a8; } .c2v-canal--humano { background: #e0f2fe; color: #075985; } .c2v-canal--misto { background: #fef3c7; color: #7c2d12; }
.c2v-prox { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l q" "t t"; column-gap: 8px; align-items: baseline; background: #f6f8f7; border-left: 3px solid #0a9b43; border-radius: 4px 8px 8px 4px; padding: 5px 8px; font-size: 12.5px; color: var(--c2-txt); }
.c2v-prox-l { grid-area: l; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #4b5563; }
.c2v-prox-t { grid-area: t; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.c2v-prox-q { grid-area: q; font-size: 11.5px; color: #4b5563; white-space: nowrap; }
.c2v-prox.is-late { background: #fef3f2; border-left-color: #d92d20; } .c2v-prox.is-late .c2v-prox-q, .c2v-prox.is-late .c2v-prox-l { color: #b42318; font-weight: 700; }
.c2v-prox.is-vazia { background: #fff; border: 1px dashed #d0d5dd; border-left: 3px solid #98a2b3; } .c2v-prox.is-vazia .c2v-prox-t { color: #4b5563; font-weight: 500; }
.c2v-pend { display: flex; flex-wrap: wrap; gap: 4px; }
.c2v-pchip { white-space: nowrap; font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: 999px; border: 1px solid; }
.c2v-pchip--warn { background: #fffaeb; color: #93370d; border-color: #fedf89; } .c2v-pchip--bad { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.c2v-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.c2v-btn { font: inherit; font-size: 12.5px; font-weight: 650; background: #087a35; color: #fff; border: 1px solid #087a35; border-radius: 9px; padding: 5px 10px; min-height: 32px; cursor: pointer; }
.c2v-btn:hover { background: #06612a; }
.c2v-btn--sec { background: #fff; color: #16181d; border-color: #cfd4dc; } .c2v-btn--sec:hover { background: #f4f5f7; }
.c2v-rapido { display: inline-flex; gap: 4px; margin-left: auto; }
.c2v-ic { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--c2-line); background: #fff; color: #374151; border-radius: 8px; cursor: pointer; padding: 0; }
.c2v-ic:hover { border-color: #0a9b43; color: #087a35; } .c2v-ic[disabled] { opacity: .45; cursor: not-allowed; }
html[data-ui="crm2"] .c2-pip-board .pip-card__foot.c2v-acoes { justify-content: flex-start; }
html[data-ui="crm2"] .c2-pip-board .pip-card__cta.c2v-cta { background: #fff; color: #087a35; border: 1px dashed #087a35; min-height: 32px; font-size: 12.5px; }
html[data-ui="crm2"] .c2-pip-board .pip-card__cta.c2v-cta:hover { background: #e8f6ee; }
.c2v-ultima { font-size: 11.5px; color: #4b5563; } .c2v-ultima.is-criado { font-style: italic; }
html[data-ui="crm2"] .c2-pip-board .pip-card__sub { justify-content: space-between; } html[data-ui="crm2"] .c2-pip-board .pip-card__sub .pip-card__valor { font-size: 13px; font-weight: 700; color: var(--c2-txt); }
/* lista */
.c2v-lista { min-width: 0; } .c2v-lista th, .c2v-lista td { padding-left: 7px; padding-right: 7px; } .c2v-lista th:first-child, .c2v-lista td:first-child { padding-left: 14px; } .c2v-lista td small { display: block; font-size: 11.5px; color: #4b5563; margin-top: 1px; }
.c2v-lista td:nth-child(1) { min-width: 154px; } .c2v-lista td:nth-child(4) { min-width: 140px; } .c2v-lista td:nth-child(3) { min-width: 110px; } .c2v-lista td:nth-child(5) { min-width: 100px; } .c2v-lcanal { margin-top: 3px; } .c2v-lista-a .c2v-ic { width: 30px; height: 30px; }
.c2v-lista td:nth-child(6) { white-space: nowrap; } .c2v-lista td:nth-child(2) .c2-chip2 { white-space: normal; display: inline-block; } .c2v-lista .c2v-lprod { font-weight: 600; color: #065f2c; }
.c2v-lista td.c2v-late, .c2v-lista td.c2v-late small { color: #b42318; font-weight: 600; }
.c2v-mut { color: #4b5563; } .c2v-pend--lista { margin-top: 4px; }
.c2v-lista-a { white-space: nowrap; } .c2v-lista-a .c2v-rapido { margin-left: 0; vertical-align: middle; } .c2v-lista-a .row-menu { display: inline-block; vertical-align: middle; }
@media (max-width: 900px) {
  .c2v-lista { display: block; } .c2v-lista thead { display: none; } .c2v-lista tbody { display: block; }
  .c2v-lista tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 14px; border-top: 1px solid var(--c2-line); }
  .c2v-lista tbody tr:first-child { border-top: 0; } .c2v-lista td, .c2v-lista td:first-child { padding: 0; border: 0; }
  .c2v-lista tbody tr::after { content: ''; order: 5; flex-basis: 100%; height: 0; }
  .c2v-lista { min-width: 0; } .c2v-lista td { min-width: 0 !important; white-space: normal; }
  .c2v-lista td:nth-child(1) { order: 1; flex: 1 1 100%; }
  .c2v-lista td:nth-child(2) { order: 2; font-size: 13px; color: var(--c2-txt); } .c2v-lista td:nth-child(6) { order: 4; margin-left: auto; font-weight: 650; flex: 0 0 auto; text-align: right; font-size: 13.5px; color: var(--c2-txt); }
  .c2v-lista td:nth-child(3) { order: 6; flex: 1 1 100%; font-size: 12.5px; color: #4b5563; display: flex; gap: 8px; align-items: center; } .c2v-lista .c2v-lcanal { margin: 0; }
  .c2v-lista td:nth-child(4) { order: 7; flex: 1 1 100%; margin-left: 0; font-weight: 400; font-size: 12.5px; color: var(--c2-txt); }
  .c2v-lista td:nth-child(5) { order: 8; flex: 1 1 auto; text-align: left; font-size: 12px; color: #4b5563; }
  .c2v-lista td:nth-child(7) { order: 9; margin-left: auto; flex: 0 0 auto; text-align: right; }
  .c2v-lista td:nth-child(5)::before, .c2v-lista td:nth-child(6)::before, .c2v-lista td:nth-child(3)::before { content: none; }
  .c2v-filtros { grid-template-columns: 1fr 1fr; padding: 10px; } .c2v-filtros .c2v-f:first-child { grid-column: 1 / -1; }
}
.c2v-lista tbody tr:nth-child(even) td { background: transparent; } .c2v-lista tbody tr:nth-child(even) { background: #fafbfc; }
.c2v-lista th { white-space: normal; }
/* ---- Cliente 360º no CRM2 (26/10/2026): hierarquia de ações, botões com tokens do CRM2, nada cortado na lateral (desktop e celular) ---- */
html[data-ui="crm2"] { --c2-ok-bg: #e9f8ef; --c2-bad-bg: #fef2f2; --c2-bad-line: #f6c4bf; --c2-ok-line: #a7dfbd; --c2-acc: #0a6b33; }
/* nada sai pela direita: o drawer nunca passa da janela (100%, não 100vw — 100vw inclui a barra de rolagem da página) e todo bloco encolhe */
html[data-ui="crm2"] .an-drawer { max-width: 100%; box-sizing: border-box; }
@media (max-width: 768px) { html[data-ui="crm2"] .an-drawer--wide { width: 100%; } }
html[data-ui="crm2"] .an-drawer__body { min-width: 0; overflow-x: hidden; box-sizing: border-box; }
html[data-ui="crm2"] .an-drawer__body * { min-width: 0; }
html[data-ui="crm2"] .an-drawer__body > *, html[data-ui="crm2"] .an-drawer__body button, html[data-ui="crm2"] .an-drawer__body input, html[data-ui="crm2"] .an-drawer__body select, html[data-ui="crm2"] .an-drawer__body textarea { max-width: 100%; box-sizing: border-box; }
html[data-ui="crm2"] .an-drawer__title { overflow-wrap: anywhere; }
html[data-ui="crm2"] .crm-c360-slot { max-height: none; overflow: visible; }   /* sem 2ª rolagem dentro do painel (era a barra que comia a lateral) */
html[data-ui="crm2"] .crm-tagadd { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
html[data-ui="crm2"] .crm-tags, html[data-ui="crm2"] .crm-sugest { min-width: 0; }
html[data-ui="crm2"] .crm-tag { max-width: 100%; overflow-wrap: anywhere; }
html[data-ui="crm2"] .opp360-info__row b, html[data-ui="crm2"] .opp360-info__row span { min-width: 0; overflow-wrap: anywhere; }

/* botões do painel */
.c360-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 14px; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.2; cursor: pointer; text-decoration: none; white-space: normal; text-align: center; border: 1px solid var(--c2-line, #e6e7eb); background: var(--c2-card, #fff); color: var(--c2-txt, #16181d); box-sizing: border-box; max-width: 100%; }
.c360-btn svg { flex: 0 0 auto; }
.c360-btn:focus-visible { outline: 2px solid var(--c2-ok, #0a9b43); outline-offset: 2px; }
.c360-btn[disabled] { opacity: .5; cursor: not-allowed; }
.c360-btn--pri { background: var(--c2-ok, #0a9b43); border-color: var(--c2-ok, #0a9b43); color: #fff; } .c360-btn--pri:not([disabled]):hover { background: #088a3b; }
.c360-btn--transf { background: var(--c2-ok-bg, #e9f8ef); border-color: var(--c2-ok-line, #a7dfbd); color: var(--c2-acc, #0a6b33); } .c360-btn--transf:hover { background: #d8f2e2; border-color: var(--c2-ok, #0a9b43); }
.c360-btn--sec { background: var(--c2-card, #fff); border-color: #cfd3da; color: var(--c2-txt, #16181d); } .c360-btn--sec:hover { background: #f4f5f7; }
.c360-btn--ter { background: transparent; border-color: transparent; color: #374151; padding-left: 10px; padding-right: 10px; } .c360-btn--ter:hover { background: #f1f2f4; }
.c360-btn--perda { background: transparent; border-color: var(--c2-bad-line, #f6c4bf); color: #b42318; } .c360-btn--perda:hover { background: var(--c2-bad-bg, #fef2f2); border-color: #e9958d; }
.c2-btn.c2-btn-perda { background: #b42318; border-color: #b42318; } .c2-btn.c2-btn-perda:hover { background: #912018; }
/* cabeçalho: transferir à esquerda, encerrar à direita (separado das ações de rotina) */
.c360-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 14px; }
.c360-topo__g { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; } .c360-topo__fim { margin-left: auto; }
.c360-info { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--c2-line, #e6e7eb); border-radius: 14px; background: var(--c2-card, #fff); margin: 0 0 12px; }
.c360-kv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; align-items: baseline; font-size: 13px; color: var(--c2-mut, #6a7280); }
.c360-kv > b { color: var(--c2-txt, #16181d); font-weight: 600; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.c360-nome.is-fallback { font-weight: 600; }
.c360-apelido { font-weight: 500; color: var(--c2-mut, #6a7280); }
.c360-semnome { display: block; font-size: 11.5px; font-weight: 500; color: #b45309; margin-top: 2px; }
.c360-kv .crm-name-edit { background: transparent; border: 1px solid var(--c2-line, #e6e7eb); border-radius: 8px; color: var(--c2-mut, #6a7280); cursor: pointer; padding: 1px 7px; font-size: 12px; }
.c360-contato { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
/* próxima ação */
.c360-prox { border: 1px solid var(--c2-line, #e6e7eb); border-radius: 14px; padding: 12px 14px; background: var(--c2-card, #fff); margin: 0 0 14px; }
.c360-prox--vazia { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-style: dashed; background: #fbfbfc; }
.c360-prox__top { display: flex; gap: 10px; align-items: flex-start; }
.c360-prox__ic { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; align-items: center; justify-content: center; background: var(--c2-ok-bg, #e9f8ef); color: var(--c2-acc, #0a6b33); flex: 0 0 auto; }
.c360-prox__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .c360-prox__txt b { font-size: 14px; color: var(--c2-txt, #16181d); overflow-wrap: anywhere; } .c360-prox__txt span { font-size: 12.5px; color: var(--c2-mut, #6a7280); }
.c360-atrasada { font-style: normal; color: #b42318; font-weight: 600; }
.c360-prox__dados { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 10px; padding: 10px 0 0; border-top: 1px solid #f0f1f3; }
.c360-prox__dados dt { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--c2-mut, #6a7280); margin: 0; } .c360-prox__dados dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 600; color: var(--c2-txt, #16181d); overflow-wrap: anywhere; }
.c360-prox__acoes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .c360-prox__acoes .c360-btn--cal { margin-left: auto; }
/* escolha da oportunidade perdida */
.c360-oppsel { border: 1px solid var(--c2-line, #e6e7eb); border-radius: 12px; padding: 8px 10px; margin: 0 0 12px; } .c360-oppsel legend { font-size: 13px; font-weight: 700; color: #374151; padding: 0 4px; }
.c360-oppsel-i { display: flex; gap: 10px; align-items: flex-start; padding: 8px 2px; border-top: 1px solid #f1f2f4; cursor: pointer; color: var(--c2-txt, #16181d); } .c360-oppsel-i:first-of-type { border-top: 0; }
.c360-oppsel-i input { margin-top: 3px; accent-color: #b42318; width: 16px; height: 16px; flex: 0 0 auto; } .c360-oppsel-i span { min-width: 0; } .c360-oppsel-i b { display: block; font-size: 13.5px; } .c360-oppsel-i small { display: block; font-size: 12px; color: #6b7280; }
.c360-oppsel-i.dis { opacity: .55; cursor: default; }
.c360-oppsel-nota, .c360-dica { font-size: 12px; color: #4b5563; margin: 6px 2px 0; line-height: 1.4; }
.tr360-confirma { background: #f6fbf8; border: 1px solid var(--c2-ok-line, #a7dfbd); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; color: #16181d; font-size: 14px; } .tr360-confirma p { margin: 6px 0 0; line-height: 1.45; }
/* observações (componente único, só a variante do CRM2) */
html[data-ui="crm2"] .crm-sec--c2 .crm-note-lbl { display: block; font-size: 12.5px; font-weight: 600; color: #374151; margin: 4px 0 6px; }
html[data-ui="crm2"] .crm-sec--c2 .crm-note-input { background: #fff; color: var(--c2-txt); border: 1px solid #cfd3da; border-radius: 12px; padding: 10px 12px; font-size: 14px; min-height: 76px; }
html[data-ui="crm2"] .crm-sec--c2 .crm-note-input:focus { outline: 2px solid var(--c2-ok); outline-offset: 1px; border-color: var(--c2-ok); }
html[data-ui="crm2"] .crm-sec--c2 .crm-note-actions { flex-wrap: wrap; margin: 8px 0 6px; }
html[data-ui="crm2"] .crm-sec--c2 .crm-note-hint { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #92400e; background: #fffbeb; border: 1px dashed #f3c97a; border-radius: 999px; padding: 3px 10px; }
.crm-note-status { font-size: 13px; border-radius: 10px; padding: 7px 10px; margin: 0 0 10px; } .crm-note-status.is-ok { background: var(--c2-ok-bg, #e9f8ef); color: var(--c2-acc, #0a6b33); } .crm-note-status.is-err { background: var(--c2-bad-bg, #fef2f2); color: #991b1b; border: 1px solid #fecaca; }
/* outros botões nativos dentro do painel no CRM2 (Concluir, + Nova, + Criar oportunidade, Adicionar…) */
html[data-ui="crm2"] .an-drawer__body .btn-ghost, html[data-ui="crm2"] .an-drawer__body .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 6px 12px; border-radius: 999px; border: 1px solid #cfd3da; background: #fff; color: var(--c2-txt); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
html[data-ui="crm2"] .an-drawer__body .btn-ghost:hover, html[data-ui="crm2"] .an-drawer__body .btn-secondary:hover { background: #f4f5f7; }
html[data-ui="crm2"] .an-drawer__body .btn-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--c2-ok); background: var(--c2-ok); color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
/* modais do app (#modal-overlay: agendar follow-up, reabrir lead, corrigir nome) abrem POR CIMA do painel — antes ficavam atrás (z-index 100 < 300) */
html[data-ui="crm2"] #modal-overlay.open { z-index: 1500; }
@media (max-width: 480px) {
  .c360-topo { flex-direction: column; align-items: stretch; } .c360-topo__g, .c360-topo__fim { margin-left: 0; } .c360-topo .c360-btn { width: 100%; }
  .c360-kv { grid-template-columns: minmax(0, 1fr); gap: 0; } .c360-kv > b { text-align: left; }
  .c360-prox__dados { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .c360-prox__acoes .c360-btn--cal { margin-left: 0; width: 100%; }
  .c360-contato .c360-btn--sec { flex: 1 1 100%; }
}
/* Painel de visitas técnicas no Dashboard do layout clássico (admin/gestor): mesmas cores fixas do crm2 deixavam os botões de período sem contraste
   (texto herdado do tema). Fora do crm2, usa os tokens do tema ativo; dentro do crm2 nada muda. */
html:not([data-ui="crm2"]) .vt-dash .vt-card { background: var(--c-surface); color: var(--c-texto); border-color: var(--c-borda); }
html:not([data-ui="crm2"]) .vt-dash .vt-per { background: var(--c-surface); color: var(--c-texto); border-color: var(--c-borda); }
html:not([data-ui="crm2"]) .vt-dash .vt-per.on { background: var(--c-acao); color: var(--c-texto-invertido); border-color: var(--c-acao); }
html:not([data-ui="crm2"]) .vt-dash .vt-k { background: var(--c-surface-sutil); }
html:not([data-ui="crm2"]) .vt-dash .vt-k span, html:not([data-ui="crm2"]) .vt-dash .vt-k small, html:not([data-ui="crm2"]) .vt-dash .vt-dest, html:not([data-ui="crm2"]) .vt-dash .vt-tab th,
html:not([data-ui="crm2"]) .vt-dash .vt-nota, html:not([data-ui="crm2"]) .vt-dash .vt-vazio { color: var(--c-texto-suave); }
html:not([data-ui="crm2"]) .vt-dash .vt-dest b { color: var(--c-texto); }
html:not([data-ui="crm2"]) .vt-dash .vt-tab td { border-top-color: var(--c-divisor); }
/* ==== Pipeline v2 — visitas técnicas no Cliente 360º (cada visita com a sua oportunidade, situação, resultado e ações) ==== */
.c3v-lista { display: flex; flex-direction: column; gap: 8px; margin: 0 0 8px; }
.c3v { border: 1px solid var(--c2-line, #e6e7eb); border-radius: 12px; padding: 10px 12px; background: var(--c2-card, #fff); min-width: 0; }
.c3v-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.c3v-top b { font-size: 13.5px; color: var(--c2-txt, #16181d); overflow-wrap: anywhere; min-width: 0; }
.c3v-sit { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.c3v-sit--agendada { background: #e0f2fe; color: #075985; } .c3v-sit--reagendada { background: #fef3c7; color: #7c2d12; }
.c3v-sit--realizada { background: #e8f6ee; color: #065f2c; } .c3v-sit--cancelada { background: #f2f3f5; color: #4b5563; }
.c3v-sub { font-size: 12px; color: #4b5563; margin-top: 3px; }
.c3v-det { font-size: 12.5px; color: var(--c2-txt, #16181d); margin-top: 4px; overflow-wrap: anywhere; }
.c3v-acoes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.c3v-acoes .c2-mini { min-height: 32px; }
.c3v-acoes .c3v-pri { background: #087a35; border-color: #087a35; color: #fff; font-weight: 600; }
.c3v-acoes .c3v-canc { color: #b42318; border-color: #f6c4bf; }
.c2-mini[disabled] { opacity: .5; cursor: not-allowed; }
/* Pipeline v2 — nome do cliente no cartão: ocupa a largura livre (antes era cortado em 150 px / 60% de um bloco do tamanho do próprio nome) e o topo reserva
   o espaço do menu "⋯" (o lápis de corrigir nome ficava por baixo dele). Celular: a coluna cabe no quadro e mostra a pontinha da próxima (antes passava 10 px da borda). */
html[data-ui="crm2"] .c2-pip-board .pip-card__top { padding-right: 30px; }
html[data-ui="crm2"] .c2-pip-board .pip-card__nomewrap { flex: 1 1 auto; min-width: 0; }
html[data-ui="crm2"] .c2-pip-board .pip-card__cliente { max-width: 100%; }
@media (max-width: 768px) {
  html[data-ui="crm2"] .c2-pip-board .pip-col { width: calc(100% - 24px); min-width: calc(100% - 24px); max-width: calc(100% - 24px); }
}
@media (max-width: 900px) { .c2v-filtros .c2v-f:has(#c2v-f-pend) { grid-column: 1 / -1; } }   /* "Follow-up atrasado" cabia cortado em meia coluna */
.vt-fixo{padding:9px 11px;border:1px solid var(--rpt-borda,rgba(255,255,255,.08));border-radius:8px;background:rgba(255,255,255,.03);font-weight:600;margin-top:4px;color:var(--rpt-texto,#ededec)}

/* Pipeline CRM2 — refinamento dos cartões (27/10/2026): cantos mais arredondados e cabeçalhos de etapa em tons suaves com texto de maior contraste. Só aparência. */
html[data-ui="crm2"] .c2-pip-board .pip-col { border-radius: 18px; }
html[data-ui="crm2"] .c2-pip-board .pip-col__head { border-radius: 17px 17px 0 0; padding: 12px 14px; border-bottom: 1px solid var(--pip-h-line, transparent); }
html[data-ui="crm2"] .c2-pip-board .pip-card { border-radius: 14px; }
html[data-ui="crm2"] .c2-pip-board .c2v-btn { border-radius: 10px; }
html[data-ui="crm2"] .c2-pip-board .pip-tint-lead { background: #eef4ff; --pip-h-line: #d6e3fb; } html[data-ui="crm2"] .c2-pip-board .pip-tint-lead .pip-col__nome { color: #1e3a8a; }
html[data-ui="crm2"] .c2-pip-board .pip-tint-proposta { background: #fff6e5; --pip-h-line: #f5e0b5; } html[data-ui="crm2"] .c2-pip-board .pip-tint-proposta .pip-col__nome { color: #8a4b05; }
html[data-ui="crm2"] .c2-pip-board .pip-tint-negociacao { background: #f4f0ff; --pip-h-line: #e0d6fb; } html[data-ui="crm2"] .c2-pip-board .pip-tint-negociacao .pip-col__nome { color: #5b21b6; }
html[data-ui="crm2"] .c2-pip-board .pip-tint-contrato { background: #ebf6fd; --pip-h-line: #cfe6f6; } html[data-ui="crm2"] .c2-pip-board .pip-tint-contrato .pip-col__nome { color: #075985; }
html[data-ui="crm2"] .c2-pip-board .pip-tint-ganho { background: #eaf7ef; --pip-h-line: #cdebd8; } html[data-ui="crm2"] .c2-pip-board .pip-tint-ganho .pip-col__nome { color: #166534; }
html[data-ui="crm2"] .c2-pip-board .pip-col__valor { color: #374151; }
/* Cabeçalhos das etapas com cor por etapa (27/10/2026): azuis (Novo lead → Em contato → Qualificado), amarelo (Proposta enviada), laranja (Visita técnica), verde escuro (Negociação), cinza (Contrato), verde claro (Venda). */
html[data-ui="crm2"] .c2-pip-board .pip-col__head.c2h-azul1 { background: #cfe0fb; --pip-h-line: #b3cdf6; } html[data-ui="crm2"] .c2-pip-board .c2h-azul1 .pip-col__nome { color: #163a78; }
html[data-ui="crm2"] .c2-pip-board .pip-col__head.c2h-azul2 { background: #b9d3f8; --pip-h-line: #9cc0f2; } html[data-ui="crm2"] .c2-pip-board .c2h-azul2 .pip-col__nome { color: #12346e; }
html[data-ui="crm2"] .c2-pip-board .pip-col__head.c2h-azul3 { background: #a3c4f4; --pip-h-line: #86b0ee; } html[data-ui="crm2"] .c2-pip-board .c2h-azul3 .pip-col__nome { color: #0f2d61; }
html[data-ui="crm2"] .c2-pip-board .pip-col__head.c2h-amarelo { background: #fbe7a1; --pip-h-line: #f3d675; } html[data-ui="crm2"] .c2-pip-board .c2h-amarelo .pip-col__nome { color: #6b4a00; }
html[data-ui="crm2"] .c2-pip-board .pip-col__head.c2h-laranja { background: #fdd2a8; --pip-h-line: #f9b77c; } html[data-ui="crm2"] .c2-pip-board .c2h-laranja .pip-col__nome { color: #7c3307; }
html[data-ui="crm2"] .c2-pip-board .pip-col__head.c2h-verde-esc { background: #13693a; --pip-h-line: #0f5a31; } html[data-ui="crm2"] .c2-pip-board .c2h-verde-esc .pip-col__nome, html[data-ui="crm2"] .c2-pip-board .c2h-verde-esc .pip-col__valor { color: #fff; }
html[data-ui="crm2"] .c2-pip-board .pip-col__head.c2h-cinza { background: #e1e4e9; --pip-h-line: #cdd1d8; } html[data-ui="crm2"] .c2-pip-board .c2h-cinza .pip-col__nome { color: #2b313b; }
html[data-ui="crm2"] .c2-pip-board .pip-col__head.c2h-verde-cl { background: #c3ecd1; --pip-h-line: #a6e0ba; } html[data-ui="crm2"] .c2-pip-board .c2h-verde-cl .pip-col__nome { color: #10522b; }
/* Colunas recolhíveis do Kanban — Minha Carteira (30/10/2026). Só este quadro (crm2PipQuadroHTML); Lista e o Kanban de Propostas não usam .pip-col--colapsada. */
html[data-ui="crm2"] .c2-pip-board .pip-col__head { position: relative; }
html[data-ui="crm2"] .c2-pip-board .pip-col__head-dir { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
html[data-ui="crm2"] .c2-pip-board .pip-col__colapsar { background: none; border: 0; cursor: pointer; font-size: 17px; line-height: 1; padding: 2px 2px 2px 8px; color: inherit; opacity: .6; flex-shrink: 0; }
html[data-ui="crm2"] .c2-pip-board .pip-col__colapsar:hover, html[data-ui="crm2"] .c2-pip-board .pip-col__colapsar:focus-visible { opacity: 1; }
html[data-ui="crm2"] .c2-pip-board .pip-col--colapsada { width: 52px; min-width: 52px; max-width: 52px; min-height: 0; cursor: pointer; transition: width .18s ease, min-width .18s ease, max-width .18s ease; }
html[data-ui="crm2"] .c2-pip-board .pip-col--colapsada .pip-col__head { height: 100%; border-radius: var(--rpt-radius); display: flex; align-items: center; justify-content: center; padding: 14px 6px; }
html[data-ui="crm2"] .c2-pip-board .pip-col--colapsada .pip-col__colapsada-rot { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
/* arrastando um cartão por cima: a própria coluna recolhida (52 px, acima do alvo mínimo de toque de 44 px) já é área de soltura válida — o
   destaque visual vem do contorno que o arrasto já desenha (.pip-col.c2m-alvo-ok/no, mais abaixo neste arquivo). Tentativa de ALARGAR a coluna
   nesse momento foi abandonada nesta rodada: o layout do quadro (flex) não respeitou a largura nova mesmo com !important inline, causa não
   identificada a tempo — documentado para quem for investigar depois, não afeta soltar o card (já testado funcionando no tamanho recolhido). */
@media (max-width: 768px) { html[data-ui="crm2"] .c2-pip-board .pip-col--colapsada { width: 40px; min-width: 40px; max-width: 40px; } }
/* Conversas (CRM2) — botões verdes de ação principal arredondados (27/10/2026). Causa: .btn-primary sem a classe base .btn não ganha border-radius (index.css),
   por isso "Enviar", "+ Nova conversa" etc. saíam com cantos retos. Só o raio muda: cor, altura, espaçamento e estados hover/focus/disabled/loading continuam os mesmos.
   Inclui as janelas abertas a partir de Conversas (ex.: Nova conversa), e só enquanto a página Conversas está ativa — nenhuma outra tela é afetada. */
html[data-ui="crm2"] #page-whatsapp .btn-primary,
html[data-ui="crm2"]:has(#page-whatsapp.active) #modal-content .btn-primary { border-radius: 10px; border: 1px solid transparent; }   /* sem a borda cinza nativa do navegador (2px), que contornava o verde */

/* ================================================================ Dashboard Comercial (CRM2, 28/10/2026) — js/crm2-dashboard.js. Cartões brancos arredondados; verde = desempenho,
   azul = empresa/institucional, laranja/vermelho = perdas. Os blocos já existentes (Composição, KPIs clássicos, cross-sell, Evolução) só mudam de posição. */
html[data-ui="crm2"] #page-dash .c2d .c2-card { margin-bottom: 0; }
.c2d-visao { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.c2d-visao-l { font-size: 12px; font-weight: 600; color: var(--c2-mut); text-transform: uppercase; letter-spacing: .05em; }
.c2d-visao-n { font-size: 13px; color: var(--c2-mut); } .c2d-visao-n b { color: var(--c2-txt); }
.c2d-sec-h { margin: 26px 0 12px; } .c2d-sec-h h2 { margin: 0; font-size: 18px; font-weight: 700; color: var(--c2-txt, #16181d); letter-spacing: -.01em; } .c2d-sec-h p { margin: 3px 0 0; font-size: 13px; color: var(--c2-mut, #6a7280); }
.c2d-sec-h--sm h2 { font-size: 15px; color: #374151; }
.c2d-metas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.c2d-meta { border-radius: 20px; padding: 20px 22px; border: 1px solid; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.c2d-meta--ind { background: #f0faf4; border-color: #bfe5cd; --m: #0a7a35; --m-trilho: #d6efe0; }
.c2d-meta--emp { background: #f1f6ff; border-color: #c6d8f8; --m: #1d4ed8; --m-trilho: #dbe6fb; }
.c2d-meta-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; } .c2d-meta-h span { font-size: 15px; font-weight: 700; color: var(--m); } .c2d-meta-h small { font-size: 12.5px; color: #4b5563; }
.c2d-meta-nums { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.c2d-meta-nums small { display: block; font-size: 12px; color: #4b5563; margin-bottom: 2px; } .c2d-meta-nums b { font-size: 26px; font-weight: 750; color: var(--c2-txt); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.c2d-meta-pct { font-size: 30px; font-weight: 800; color: var(--m); line-height: 1; text-align: right; font-variant-numeric: tabular-nums; } .c2d-meta-pct small { display: block; font-size: 12px; font-weight: 600; color: #4b5563; margin-top: 4px; }
.c2d-bar { display: block; height: 10px; border-radius: 99px; background: var(--m-trilho, #e8eaee); overflow: hidden; } .c2d-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--m, #0a9b43); transition: width .6s ease; }
.c2d-bar--fina { height: 7px; }
.c2d-meta-rod { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: #374151; } .c2d-meta-rod b { color: var(--c2-txt); font-variant-numeric: tabular-nums; } .c2d-ok { color: #0a7a35 !important; }
.c2d-meta-vazia { font-size: 20px; font-weight: 700; color: #4b5563; } .c2d-meta-dica { font-size: 12px; color: #4b5563; }
.c2d-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.c2d-kpi { background: var(--c2-card, #fff); border: 1px solid var(--c2-card-line, #d5d8de); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.c2d-kpi-t { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: #4b5563; } .c2d-kpi-t i { display: inline-flex; width: 28px; height: 28px; border-radius: 9px; align-items: center; justify-content: center; flex-shrink: 0; }
.c2d-kpi--ok .c2d-kpi-t i { background: #e3f5ea; color: #0a7a35; } .c2d-kpi--info .c2d-kpi-t i { background: #e3ecfd; color: #1d4ed8; } .c2d-kpi--warn .c2d-kpi-t i { background: #fdefd6; color: #9a4a07; }
.c2d-kpi-v { font-size: 23px; font-weight: 750; color: var(--c2-txt); margin-top: 6px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; } .c2d-kpi-n { font-size: 12px; color: #4b5563; margin-top: 3px; }
.c2d-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; } .c2d-painel { min-width: 0; }
.c2d-ph { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--c2-txt); } .c2d-psub { font-size: 12.5px; color: #4b5563; margin-bottom: 8px; }
.c2d-lin { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--c2-line); } .c2d-lin:nth-of-type(1) { border-top: 0; }
.c2d-lin span { font-size: 14px; color: var(--c2-txt); display: flex; flex-direction: column; } .c2d-lin small { font-size: 11.5px; color: #6a7280; } .c2d-lin b { font-size: 20px; font-weight: 750; color: var(--c2-txt); font-variant-numeric: tabular-nums; white-space: nowrap; }
.c2d-seg { padding: 9px 0; border-top: 1px solid var(--c2-line); --m: #0a9b43; --m-trilho: #eef0f3; } .c2d-seg:first-of-type { border-top: 0; }
.c2d-seg-t { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; } .c2d-seg-t b { font-variant-numeric: tabular-nums; }
.c2d-seg-b { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; margin-top: 6px; } .c2d-seg-b small { font-size: 12px; color: #4b5563; white-space: nowrap; }
.c2d-perda--leads { border-color: #f3d3a6; background: #fffaf2; --m: #d97706; --m-trilho: #fbe8c8; } .c2d-perda--leads .c2d-ph { color: #9a4a07; }
.c2d-perda--opps { border-color: #f2c4bf; background: #fff6f5; --m: #d92d20; --m-trilho: #f9dcd8; } .c2d-perda--opps .c2d-ph { color: #b42318; }
.c2d-mot { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; background: rgba(255,255,255,.75); border: 1px solid transparent; border-radius: 12px; padding: 9px 10px; margin: 0 0 6px; font: inherit; color: var(--c2-txt); cursor: pointer; }
.c2d-mot:hover { border-color: var(--m); background: #fff; } .c2d-mot:focus-visible { outline: 2px solid var(--m); outline-offset: 1px; }
.c2d-mot-t { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; } .c2d-mot-t span { min-width: 0; overflow-wrap: anywhere; } .c2d-mot-t b { white-space: nowrap; font-variant-numeric: tabular-nums; } .c2d-mot-t small { font-weight: 500; color: #4b5563; margin-left: 4px; }
.c2d-mot-v { font-size: 12.5px; font-weight: 650; color: #7a271a; } .c2d-mot-v small { font-weight: 400; color: #6a7280; }
.c2d-nota { font-size: 12px; color: #6a7280; margin-top: 8px; }
.c2d-det { overflow-x: auto; } .c2d-det table { min-width: 680px; font-size: 13px; } .c2d-det td, .c2d-det th { vertical-align: top; }
html[data-ui="crm2"] #page-dash .c2d-compl { opacity: .97; } html[data-ui="crm2"] #page-dash .c2d-compl .c2-h3 { color: #374151; }
html[data-ui="crm2"] #page-dash #tab-geral > .c2d-secundario, html[data-ui="crm2"] #page-dash #kpi-cards-classificacao, html[data-ui="crm2"] #page-dash #dash-atencao, html[data-ui="crm2"] #page-dash #kpi-cards-solar { margin-top: 12px; }
html[data-ui="crm2"] #page-dash #dash-crosssell-card, html[data-ui="crm2"] #page-dash #viz-card-mensal, html[data-ui="crm2"] #page-dash #dash-composicao-card { margin-top: 12px; }
@media (max-width: 1100px) { .c2d-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .c2d-metas, .c2d-duo { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .c2d-kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .c2d-kpi { padding: 12px; } .c2d-kpi-v { font-size: 19px; } .c2d-meta { padding: 16px; } .c2d-meta-nums b { font-size: 22px; } .c2d-meta-pct { font-size: 26px; } .c2d-lin b { font-size: 18px; } }
/* Dashboard Comercial — página única (28/10/2026): "Detalhe por serviço" e "Ranking de bairros" recolhidos no fim da página */
[data-ui="crm2"] .c2d-det-sec { margin-top: 16px; padding: 0; }
[data-ui="crm2"] .c2d-det-sec > summary { cursor: pointer; list-style: none; padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; }
[data-ui="crm2"] .c2d-det-sec > summary::-webkit-details-marker { display: none; }
[data-ui="crm2"] .c2d-det-sec > summary b { font-size: 15px; color: #111827; }
[data-ui="crm2"] .c2d-det-sec > summary b::before { content: '▸ '; color: #6b7280; }
[data-ui="crm2"] .c2d-det-sec[open] > summary b::before { content: '▾ '; }
[data-ui="crm2"] .c2d-det-sec > summary span { font-size: 12.5px; color: #4b5563; }
[data-ui="crm2"] .c2d-det-corpo { padding: 0 20px 20px; }
[data-ui="crm2"] .c2d-det-corpo #svc-dropdown { margin-bottom: 14px; }
[data-ui="crm2"] #c2d-det-rank .c2d-det-corpo > div:first-child h3 { display: none; }   /* o título já está no resumo da seção (o original tem cor fixa do tema escuro) */
/* Dashboard do VENDEDOR (CRM2): sem abas e sem os blocos do painel anterior (js/crm2-dashboard.js, _c2dPaginaUnica) */
[data-ui="crm2"] #tab-geral.c2d-vend > .dash-kpi-row, [data-ui="crm2"] #tab-geral.c2d-vend > #kpi-cards-classificacao, [data-ui="crm2"] #tab-geral.c2d-vend > #dash-atencao,
[data-ui="crm2"] #tab-geral.c2d-vend > #kpi-cards-solar, [data-ui="crm2"] #tab-geral.c2d-vend > #dash-crosssell-card, [data-ui="crm2"] #tab-geral.c2d-vend > #c2d-det-svc,
[data-ui="crm2"] #tab-geral.c2d-vend #dash-comp-tabs { display: none !important; }

/* ===== CRM2 · Minha Base de Leads (28/10/2026, js/crm2-base-leads.js, docs/crm2-minha-base-leads.md). Só no CRM2: fora dele #c2bl-root fica escondido
   e a página Leads (Funil/Kanban + tabela) continua exatamente como antes. */
.c2bl-root { display: none; }
html[data-ui="crm2"] #page-leads-vendedor > .c2bl-root { display: block; padding: 22px 24px 40px; width: 100%; max-width: 1440px; min-width: 0; margin: 0 auto; box-sizing: border-box; }
html[data-ui="crm2"] #page-leads-vendedor > .page-header, html[data-ui="crm2"] #page-leads-vendedor > .page-body { display: none; }
.c2bl-head { align-items: center; margin-bottom: 16px; }
.c2bl-h1 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: var(--c2-txt); margin: 0; }
.c2bl-novo { flex-shrink: 0; }
.c2bl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.c2bl-filtros { padding: 14px 16px; border-radius: 16px; }
.c2bl-busca { position: relative; display: flex; align-items: center; gap: 8px; border: 1px solid #d9dce2; border-radius: 12px; padding: 0 12px; background: #fff; color: var(--c2-mut); margin-bottom: 12px; }
.c2bl-busca:focus-within { border-color: var(--c2-ok); box-shadow: 0 0 0 3px rgba(10,155,67,.15); }
html[data-ui="crm2"] .c2bl-busca #c2bl-q, .c2bl-busca input { flex: 1; border: 0 !important; outline: 0; box-shadow: none !important; border-radius: 0; background: transparent; font: inherit; font-size: 14.5px; padding: 11px 0; color: var(--c2-txt); min-width: 0; }
.c2bl-fs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.c2bl-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.c2bl-f > span { font-size: 11px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--c2-mut); }
.c2bl-sel { width: 100%; border: 1px solid #d9dce2; border-radius: 12px; padding: 9px 12px; font: inherit; font-size: 13.5px; background: #fff; color: var(--c2-txt); }
.c2bl-sel:focus { outline: none; border-color: var(--c2-ok); box-shadow: 0 0 0 3px rgba(10,155,67,.15); }
.c2bl-nota { margin: 10px 0 0; font-size: 12.5px; color: var(--c2-mut); line-height: 1.45; }
.c2bl-lista { padding: 16px 0 6px; border-radius: 16px; overflow: hidden; }
.c2bl-lista-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 18px 12px; flex-wrap: wrap; }
.c2bl-cont { font-size: 12.5px; color: var(--c2-mut); }
.c2bl-tab-wrap { overflow-x: auto; }
.c2bl-tab { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; color: var(--c2-txt); }
.c2bl-tab th { position: sticky; top: 0; background: #f6f7f9; color: #4b5563; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--c2-line); white-space: normal; line-height: 1.3; }
.c2bl-tab td { padding: 11px 10px; border-bottom: 1px solid var(--c2-line); vertical-align: top; }
.c2bl-tab th { padding-left: 10px !important; padding-right: 10px !important; }
.c2bl-tr { cursor: pointer; }
.c2bl-tr:hover td { background: #f7faf8; }
.c2bl-tr:focus-visible { outline: 2px solid var(--c2-ok); outline-offset: -2px; }
.c2bl-tr.is-semresp td:first-child { box-shadow: inset 3px 0 0 #f0b45a; }
.c2bl-data { white-space: nowrap; color: #4b5563; font-variant-numeric: tabular-nums; }
.c2bl-hora { display: block; font-size: 12px; color: var(--c2-mut); }
.c2bl-cli { min-width: 170px; max-width: 240px; }
.c2bl-nome { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c2bl-ap { font-weight: 500; font-size: 11.5px; color: var(--c2-mut); }
.c2bl-sub { font-size: 12px; color: #4b5563; margin-top: 2px; white-space: nowrap; }
.c2bl-mail { overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.c2bl-trunc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 150px; line-height: 1.35; }
.c2bl-mut { color: #9aa1ad; }
.c2bl-orig { font-weight: 600; }
.c2bl-prop { display: inline-block; font-size: 11.5px; font-weight: 700; color: #087a35; background: rgba(10,155,67,.1); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.c2bl-resp { display: inline-block; font-size: 12px; font-weight: 650; color: #1e3a8a; background: #eef1fb; border-radius: 999px; padding: 3px 10px; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.c2bl-resp.is-meu { color: #087a35; background: rgba(10,155,67,.1); }
.c2bl-resp small { font-weight: 500; }
.c2bl-resp.is-sem { color: #8a4500; background: #fff7e6; border: 1px dashed #f0b45a; }
/* 04/11/2026: Ollemzito é responsável válido (docs/crm2-ollemzito-responsavel.md) — selo próprio, nunca o "Sem responsável" tracejado */
.c2bl-resp.is-bot, .c2v-resp.is-bot { color: #5b21b6; background: #f3efff; }
.c2bl-sit { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.c2bl-sit.is-ativo { color: #087a35; background: rgba(10,155,67,.1); }
.c2bl-sit.is-adiado { color: #1e40af; background: #eaf0ff; }
.c2bl-sit.is-perdido { color: #9b1c1c; background: #fdecec; }
.c2bl-acao { text-align: right; white-space: nowrap; }
.c2bl-360 { border: 1px solid #c9ead6; background: #fff; color: #087a35; font: inherit; font-size: 12.5px; font-weight: 650; border-radius: 999px; padding: 6px 10px; cursor: pointer; white-space: nowrap; }
.c2bl-360:hover { background: #effaf3; border-color: var(--c2-ok); }
.c2bl-360:focus-visible { outline: 2px solid var(--c2-ok); outline-offset: 2px; }
.c2bl-mais { padding: 14px; text-align: center; }
.c2bl-vazio { padding: 28px 18px; }
@media (max-width: 1100px) { .c2bl-fs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* celular: cada lead vira um cartão (todas as informações continuam, com rótulo) */
@media (max-width: 760px) {
  html[data-ui="crm2"] #page-leads-vendedor > .c2bl-root { padding: 14px 12px 96px; }
  .c2bl-head { flex-wrap: wrap; } .c2bl-h1 { font-size: 21px; } .c2bl-novo { width: 100%; justify-content: center; }
  .c2bl-fs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .c2bl-lista { padding: 12px 0 4px; background: transparent; border: 0; }
  .c2bl-lista-h { padding: 0 2px 10px; }
  .c2bl-tab thead { display: none; }
  .c2bl-tab, .c2bl-tab tbody, .c2bl-tab tr, .c2bl-tab td { display: block; width: 100%; box-sizing: border-box; }
  .c2bl-tab tr { background: #fff; border: 1px solid var(--c2-card-line); border-radius: 14px; margin-bottom: 10px; padding: 10px 12px; }
  .c2bl-tr.is-semresp { border-left: 4px solid #f0b45a; }
  .c2bl-tr.is-semresp td:first-child { box-shadow: none; }
  .c2bl-tab td { border: 0; padding: 4px 0; display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; text-align: right; }
  .c2bl-v { text-align: right; min-width: 0; }
  .c2bl-tab td.c2bl-cli .c2bl-v, .c2bl-tab td.c2bl-acao .c2bl-v { text-align: left; width: 100%; }
  .c2bl-tab td::before { content: attr(data-label); flex-shrink: 0; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--c2-mut); text-align: left; padding-top: 2px; }
  .c2bl-tab td[data-label=""]::before { display: none; }
  .c2bl-tab td.c2bl-cli { display: block; text-align: left; max-width: none; order: -1; padding-bottom: 6px; border-bottom: 1px solid var(--c2-line); margin-bottom: 4px; }
  .c2bl-tab td.c2bl-cli::before { display: none; }
  .c2bl-nome { white-space: normal; font-size: 15px; }
  .c2bl-tab td:not(.c2bl-cli) .c2bl-sub { white-space: normal; }
  .c2bl-trunc { max-width: 62vw; text-align: right; }
  .c2bl-hora { display: inline; font-size: inherit; color: inherit; }
  .c2bl-tab tr { display: flex; flex-direction: column; }
  .c2bl-tab td.c2bl-acao { justify-content: stretch; padding-top: 8px; }
  .c2bl-360 { width: 100%; padding: 9px 12px; }
  .c2bl-tr:hover td { background: transparent; }
}

/* ---- Minha carteira: Adiados / Perdidos (29/10/2026) — Lista e Kanban "Leads sem proposta" × "Oportunidades com proposta" ---- */
.c2-pip-bar .c2p-tipo button { padding: 7px 12px; }
.c2p-dica-adiar { margin: -2px 0 10px; } .c2p-dica-adiar .c2-link { display: inline; padding: 0; margin: 0; font-size: inherit; }
.c2p-area-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
.c2p-area-board .pip-col { min-width: 0; max-width: none; width: auto; flex: none; }
.c2p-area-card { cursor: default; }
.c2p-motivo { font-size: 12.5px; color: var(--c2-txt); margin: 4px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.c2p-retomada { font-size: 12px; color: #4b5563; margin-top: 4px; }
.c2p-acoes-card { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.c2p-acoes { white-space: nowrap; text-align: right; } .c2p-acoes .c2-mini + .c2-mini { margin-left: 6px; }
.c2p-area-lista { min-width: 0; } .c2p-area-lista tbody tr { cursor: default; } .c2p-area-lista td.num { white-space: nowrap; text-align: right; } .c2p-area-lista td.is-vazio { color: #b4531c; }
.c2p-tipo-tag { display: inline-block; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.c2p-tipo-tag.is-lead { background: #eef2ff; color: #3730a3; } .c2p-tipo-tag.is-opp { background: #e7f6ec; color: #065f2c; }
.c2-chip2.c2p-revisar { background: #fff4e5; color: #92400e; } .c2-chip2.c2p-legado { background: #f0f1f3; color: #4b5563; }
@media (max-width: 860px) {
  .c2p-area-board { grid-template-columns: 1fr; }
  .c2p-area-lista { display: block; } .c2p-area-lista thead { display: none; } .c2p-area-lista tbody { display: block; }
  .c2p-area-lista tbody tr { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 12px 14px; border-top: 1px solid var(--c2-line); }
  .c2p-area-lista td { padding: 0; border: 0; font-size: 13px; } .c2p-area-lista td:first-child { flex: 1 1 100%; }
  .c2p-area-lista td[data-l]:not(:first-child)::before { content: attr(data-l) ': '; color: var(--c2-mut); font-size: 12px; }
  .c2p-area-lista td.c2p-acoes { flex: 1 1 100%; text-align: left; margin-top: 4px; }
  .c2-pip-bar { flex-wrap: wrap; }
}

/* ---- Pipeline: arrastar e soltar (29/10/2026, js/crm2-pipeline-arrastar.js) ---- */
.c2-pip-board .pip-card { cursor: grab; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
body.c2m-arrastando, body.c2m-arrastando * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }
.c2m-fantasma { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; opacity: .92; box-shadow: 0 12px 28px rgba(17, 24, 39, .22); transform-origin: 0 0; rotate: 1.5deg; }
.pip-card.c2m-origem { opacity: .35; }
.pip-col.c2m-alvo-ok { outline: 2px dashed #16a34a; outline-offset: -2px; background: rgba(22, 163, 74, .06); }
.pip-col.c2m-alvo-no { outline: 2px dashed #d1d5db; outline-offset: -2px; opacity: .7; }
.pip-card.c2m-salvando { opacity: .55; pointer-events: none; }
.opp360-actionbar--crm2 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 4px; }
.opp360-actionbar--crm2 .opp-acao-perda { color: #b42318; border-color: #f3c7c3; }
.opp360-actionbar--crm2 .opp-acao-concluir:empty { display: none; }
.vt-dica-res { margin: -4px 0 10px; font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { .c2m-fantasma { rotate: none; } }
/* ---- Página 10 — Material de Apoio (30/10/2026): 6 abas em pílula + campos dos simuladores legíveis no layout claro.
   Os simuladores nasceram no tema escuro (rótulos rgba(255,255,255,.55) em CLASSE, não em style inline — a regra genérica do Material de Apoio
   não os alcança), então no CRM2 os rótulos sumiam no fundo branco. Aqui só COR/borda/fundo; nenhum valor, fórmula ou campo muda. */
html[data-ui="crm2"] #c2-mat-tabs { margin: 0 0 18px; }
html[data-ui="crm2"] #c2-mat-tabs .c2-tab { white-space: nowrap; }
@media (max-width: 768px) { html[data-ui="crm2"] #c2-mat-tabs { gap: 6px; } html[data-ui="crm2"] #c2-mat-tabs .c2-tab { padding: 7px 12px; font-size: 13px; } }
html[data-ui="crm2"] #page-suporte .el-lbl, html[data-ui="crm2"] #page-suporte .hib-lbl { color: #4b5563 !important; }
html[data-ui="crm2"] #page-suporte .el-ig, html[data-ui="crm2"] #page-suporte .hib-ig { background: #fff; border: 1px solid var(--c2-card-line); }
html[data-ui="crm2"] #page-suporte .el-ig:focus-within, html[data-ui="crm2"] #page-suporte .hib-ig:focus-within { border-color: #111827; }
html[data-ui="crm2"] #page-suporte .el-ig input, html[data-ui="crm2"] #page-suporte .el-ig select, html[data-ui="crm2"] #page-suporte .hib-ig input, html[data-ui="crm2"] #page-suporte .hib-ig select { border: 0; border-radius: 0; background: transparent; color: var(--c2-txt); }
html[data-ui="crm2"] #page-suporte .el-ig input:disabled { color: var(--c2-mut); background: transparent; }
html[data-ui="crm2"] #page-suporte .el-pre, html[data-ui="crm2"] #page-suporte .el-suf, html[data-ui="crm2"] #page-suporte .hib-suf { color: var(--c2-mut); }
html[data-ui="crm2"] #page-suporte .el-calc { background: #f7f8fa; border-color: var(--c2-card-line); }
html[data-ui="crm2"] #page-suporte .el-calc b { color: var(--c2-txt); } html[data-ui="crm2"] #page-suporte .el-calc span { color: var(--c2-mut); }
html[data-ui="crm2"] #page-suporte .el-sec, html[data-ui="crm2"] #page-suporte .hib-sec { color: var(--c2-ok); border-bottom-color: var(--c2-line); }
html[data-ui="crm2"] #page-suporte .el-subsec { color: var(--c2-mut); }
html[data-ui="crm2"] #page-suporte .hib-resumo-linha { border-top-color: var(--c2-line) !important; }
html[data-ui="crm2"] #page-suporte .hib-resumo-linha span { color: #4b5563 !important; }
html[data-ui="crm2"] #page-suporte .hib-resumo-linha b { color: var(--c2-txt) !important; } html[data-ui="crm2"] #page-suporte .hib-resumo-linha small { color: var(--c2-mut) !important; }
/* fim Página 10 — bloco base */
/* Página 10 — aba Inversores Solis: tabela técnica no layout claro */
html[data-ui="crm2"] #solis-tabela-sec .hib-sec { color: var(--c2-ok); border-bottom-color: var(--c2-line); }
html[data-ui="crm2"] #solis-tabela-sec .solis-busca-ig { background: #fff; border: 1px solid var(--c2-card-line); border-radius: 12px; }
html[data-ui="crm2"] #solis-tabela-sec .solis-busca-ig input { border: 0; background: transparent; color: var(--c2-txt); border-radius: 0; }
html[data-ui="crm2"] #page-suporte .solis-tabela-wrap { border-color: var(--c2-line); }
html[data-ui="crm2"] #page-suporte .solis-tabela th { background: #f7f8fa; color: #4b5563; border-bottom-color: var(--c2-line); }
html[data-ui="crm2"] #page-suporte .solis-tabela td { color: var(--c2-txt); border-top-color: var(--c2-line); }
html[data-ui="crm2"] #page-suporte .solis-tabela .solis-obs, html[data-ui="crm2"] #page-suporte .solis-tabela .solis-nd, html[data-ui="crm2"] #page-suporte .solis-vazio { color: var(--c2-mut); }
html[data-ui="crm2"] #page-suporte .solis-tabela .solis-ns { color: var(--c2-bad); }
html[data-ui="crm2"] #page-suporte .solis-tabela tbody tr:hover { background: #f4f9f6; } html[data-ui="crm2"] #page-suporte .solis-tabela tbody tr.on { background: #e9f8ef; }
html[data-ui="crm2"] #page-suporte #solis-busca-qtd { color: var(--c2-mut) !important; }
/* Página 10 — aba Sistema híbrido: potência por linha, cartões, verificações e botão legíveis no layout claro */
html[data-ui="crm2"] #page-suporte #hibrido-cargas-header { color: #4b5563; }
html[data-ui="crm2"] #page-suporte #hibrido-cargas-linhas .hib-pot-out { color: var(--c2-txt); font-weight: 600; }
html[data-ui="crm2"] #page-suporte #hibrido-cargas-linhas .hib-eq, html[data-ui="crm2"] #page-suporte #hibrido-cargas-linhas .hib-qtd { background: #fff; color: var(--c2-txt); border: 1px solid var(--c2-card-line); border-radius: 10px; padding: 7px 9px; }
html[data-ui="crm2"] #page-suporte #hibrido-cargas-linhas .hib-verif-out span[style*="#00e050"] { color: var(--c2-ok) !important; }
html[data-ui="crm2"] #page-suporte .hib-add { background: #fff; border: 1px dashed var(--c2-card-line); border-radius: 12px; padding: 9px 12px; color: var(--c2-txt); font: inherit; font-weight: 600; cursor: pointer; }
html[data-ui="crm2"] #page-suporte .hib-add:hover { border-color: #111827; background: #f7f8fa; }
html[data-ui="crm2"] #page-suporte .hib-card { border-color: var(--c2-line); background: #f7f8fa; }
html[data-ui="crm2"] #page-suporte .hib-card-lbl { color: #4b5563; } html[data-ui="crm2"] #page-suporte .hib-card-val { color: var(--c2-txt); }
html[data-ui="crm2"] #page-suporte #hibrido-verificacoes th { color: #4b5563; background: #f7f8fa; border-bottom-color: var(--c2-line); }
html[data-ui="crm2"] #page-suporte #hibrido-verificacoes td { color: var(--c2-txt); border-top-color: var(--c2-line); }
html[data-ui="crm2"] #page-suporte #hibrido-verificacoes td.hib-sit[style*="#00e050"] { color: var(--c2-ok) !important; }
html[data-ui="crm2"] #page-suporte #hibrido-verificacoes td.hib-sit[style*="#ef4444"] { color: var(--c2-bad) !important; }

/* ---------------------------------------------------------------- Página Inicial do Administrador — Visão Geral (js/crm2-inicio-admin.js, 31/10/2026) */
.c2a-page { width: 100%; box-sizing: border-box; max-width: 1320px; margin: 0 auto; padding: 28px 32px 64px; }
.c2a-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.c2a-atualizar { flex-shrink: 0; }
.c2a-sec { margin-bottom: 28px; }
.c2a-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.c2a-em { font-size: 12px; color: var(--c2-mut); }
.c2a-at-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.c2a-at { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; text-align: left; font: inherit; color: var(--c2-txt); background: var(--c2-card); border: 1px solid var(--c2-card-line); border-left: 4px solid var(--c2-card-line); border-radius: 16px; padding: 18px 18px 18px 16px; cursor: pointer; min-height: 88px; transition: box-shadow .15s ease, border-color .15s ease; }
.c2a-at:hover { box-shadow: 0 4px 14px rgba(16, 24, 40, .07); }
.c2a-at:focus-visible, .c2a-q:focus-visible { outline: 2px solid var(--c2-ok); outline-offset: 2px; }
.c2a-at-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--c2-pill); color: var(--c2-mut); }
.c2a-at-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.c2a-at-t b { font-size: 15px; font-weight: 650; }
.c2a-at-t small { font-size: 12.5px; color: var(--c2-mut); line-height: 1.35; }
.c2a-at-v { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.c2a-at-go { color: var(--c2-mut); }
.c2a-at.is-desativado { cursor: default; opacity: .72; border-left-color: var(--c2-card-line); }   /* Oportunidades paradas desativado (OPP_PARADAS_ATIVO) */
.c2a-at.is-desativado:hover { box-shadow: none; }
.c2a-at.is-desativado .c2a-at-go { visibility: hidden; }
.c2a-at.is-alerta { border-left-color: #d97706; }
.c2a-at.is-alerta .c2a-at-ic { background: #fff4e5; color: #b45309; }
.c2a-at.is-alerta .c2a-at-v { color: #b45309; }
.c2a-at.is-ok { border-left-color: var(--c2-ok); }
.c2a-at.is-ok .c2a-at-ic { background: #e9f7ef; color: var(--c2-ok); }
.c2a-at.is-ok .c2a-at-v { color: var(--c2-ok); }
.c2a-at.is-erro { border-left-color: #9aa1ad; }
.c2a-at.is-erro .c2a-at-v { color: var(--c2-mut); }
.c2a-at.is-carregando .c2a-at-v { opacity: .35; }
.c2a-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.c2a-kpi { background: var(--c2-card); border: 1px solid var(--c2-card-line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.c2a-kpi-l { font-size: 12.5px; color: var(--c2-mut); }
.c2a-kpi-v { font-size: 24px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--c2-txt); overflow-wrap: anywhere; }
.c2a-kpi-v.is-na { font-size: 16px; color: var(--c2-mut); font-weight: 600; }
.c2a-kpi-n { font-size: 12px; color: var(--c2-mut); min-height: 1em; }
.c2a-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.c2a-q { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; font: inherit; color: var(--c2-txt); background: var(--c2-card); border: 1px solid var(--c2-card-line); border-radius: 16px; padding: 18px; cursor: pointer; transition: box-shadow .15s ease, border-color .15s ease; }
.c2a-q:hover { border-color: var(--c2-ok); box-shadow: 0 4px 14px rgba(16, 24, 40, .07); }
.c2a-q-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #e9f7ef; color: var(--c2-ok); }
.c2a-q b { font-size: 15px; font-weight: 650; }
.c2a-q small { font-size: 12px; color: var(--c2-mut); }
.c2a-tab td small { display: block; color: var(--c2-mut); font-size: 12px; }
@media (max-width: 1100px) { .c2a-kpis, .c2a-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .c2a-page { padding: 20px 16px 48px; }
  .c2a-at-grid { grid-template-columns: 1fr; }
  .c2a-at { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
  .c2a-at-go { display: none; }
  .c2a-at-v { font-size: 26px; }
}
@media (max-width: 420px) { .c2a-kpis, .c2a-quick { grid-template-columns: 1fr; } .c2a-head { flex-direction: column; gap: 4px; margin-bottom: 16px; } }

/* ---------------------------------------------------------------- Gestão Comercial (js/crm2-gestao-comercial.js, 03/11/2026): reaproveita .c2a-* do Início admin */
.c2g-page { max-width: none; }
.c2g-head { margin-bottom: 14px; } .c2g-nova { white-space: nowrap; }
.c2g-filtros { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 22px; }
.c2g-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--c2-mut); min-width: 0; }
.c2g-f select { font: inherit; font-size: 14px; font-weight: 500; color: var(--c2-txt); background: var(--c2-card); border: 1px solid var(--c2-card-line); border-radius: 10px; padding: 9px 12px; min-width: 200px; max-width: 100%; }
.c2g-em { font-size: 12px; color: var(--c2-mut); align-self: center; }
.c2g-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.c2g-card { background: var(--c2-card); border: 1px solid var(--c2-card-line); border-radius: 16px; padding: 18px; min-width: 0; }
.c2g-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.c2g-card-h .c2-btn-sec { padding: 7px 14px; font-size: 13px; }
.c2g-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.c2g-bar { display: grid; grid-template-columns: minmax(110px, 190px) minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 13px; }
.c2g-bar-l { color: var(--c2-txt); overflow-wrap: anywhere; }
.c2g-bar-t { height: 10px; border-radius: 99px; background: var(--c2-pill, #eef0f4); overflow: hidden; }
.c2g-bar-t i { display: block; height: 100%; border-radius: 99px; background: #0a9b43; }
.c2g-bar-n { text-align: right; font-variant-numeric: tabular-nums; min-width: 64px; } .c2g-bar-n b { font-size: 14px; } .c2g-bar-n small { display: block; color: var(--c2-mut); font-size: 11.5px; }
.c2g-tab { width: 100%; border-collapse: collapse; font-size: 13px; }
.c2g-tab th { text-align: left; font-size: 12px; font-weight: 600; color: var(--c2-mut); padding: 0 8px 8px; border-bottom: 1px solid var(--c2-card-line); }
.c2g-tab td { padding: 10px 8px; border-bottom: 1px solid var(--c2-divisor, #f1f2f4); vertical-align: top; }
.c2g-tab .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } .c2g-tab td small { display: block; color: var(--c2-mut); font-size: 11.5px; }
.c2g-mut { color: var(--c2-mut); } .c2g-pct { font-weight: 700; color: #b45309; } .c2g-pct.is-ok { color: var(--c2-ok); }
.c2g-nota { font-size: 12px; color: var(--c2-mut); margin: 10px 0 0; }
@media (max-width: 1100px) { .c2g-duo { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .c2g-head { flex-direction: column; gap: 10px; } .c2g-nova { align-self: stretch; justify-content: center; }
  .c2g-f { flex: 1 1 140px; } .c2g-f select { min-width: 0; width: 100%; }
  .c2g-bar { grid-template-columns: minmax(0, 1fr) auto; } .c2g-bar-t { grid-column: 1 / -1; grid-row: 2; }
}
html[data-ui="crm2"] .c2a-cab.active { background: rgba(255,255,255,.08); color: #fff; }

/* Fechar venda pelo CRM (03/11/2026) — modal "Confirmar venda" */
.c2fv-lista { display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow-y: auto; margin: 0 0 12px; }
.c2fv-prop { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #d9dee8; border-radius: 12px; padding: 10px 12px; cursor: pointer; font-size: 13px; }
.c2fv-prop:has(input:checked) { border-color: #1f9d57; background: #f1faf5; }
.c2fv-prop.is-off { opacity: .62; cursor: not-allowed; background: #f6f7f9; }
.c2fv-prop input { margin-top: 3px; } .c2fv-prop small { color: #5b6272; } .c2fv-motivo { color: #b4231a !important; }
.c2fv-tag { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 99px; background: #eef0f4; color: #4a5160; margin-top: 3px; }
.c2fv-tag--ok { background: #e3f6ea; color: #17703d; } .c2fv-tag--ruim { background: #fdeaea; color: #b4231a; }
.c2fv-resumo { border: 1px solid #e6e9f0; border-radius: 12px; padding: 8px 12px; } .c2fv-valor { font-size: 18px; }
.c2fv-campos { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; } .c2fv-campos label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; }
.c2fv-campos select, .c2fv-campos input, .c2fv-campos textarea { font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid #cfd5e1; border-radius: 10px; }
.c2-modal-box:has(.c2fv-lista), .c2-modal-box:has(.c2fv-resumo) { width: min(560px, 100%); }
@keyframes c2fvgira { to { transform: rotate(360deg); } }
.c2fv-spin { display: inline-block; width: 12px; height: 12px; border: 2px solid #cfd5e1; border-top-color: #1f9d57; border-radius: 50%; animation: c2fvgira .8s linear infinite; vertical-align: -2px; margin-right: 4px; }
.c2fv-ok-banner { background: #e3f6ea; color: #17703d; border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-bottom: 10px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .c2fv-spin { animation: none; } }

/* ---------------------------------------------------------------- Sidebar administrativa (js/crm2-nav-admin.js, 03/11/2026): acordeão, um grupo por vez */
html[data-ui="crm2"] .c2a { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; }
html[data-ui="crm2"] .c2a-top { margin-top: 4px; }
html[data-ui="crm2"] .c2a-grupo { margin: 2px 0; }
html[data-ui="crm2"] .c2a-cab { display: flex; align-items: center; gap: 11px; width: calc(100% - 20px); margin: 0 10px; padding: 9px 12px; border: 0; border-radius: 10px; background: none; color: var(--c2-nav-txt); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left; transition: background-color .12s, color .12s; }
html[data-ui="crm2"] .c2a-cab:hover { background: rgba(255,255,255,.06); color: #fff; }
html[data-ui="crm2"] .c2a-cab:focus-visible { outline: 2px solid #5fe19a; outline-offset: 1px; }
html[data-ui="crm2"] .c2a-cab .nav-item__label { flex: 1; min-width: 0; white-space: normal; line-height: 1.25; overflow-wrap: anywhere; }
html[data-ui="crm2"] .c2a-chev { display: inline-flex; color: var(--c2-nav-mut); transition: transform .18s; }
html[data-ui="crm2"] .c2a-grupo.aberto .c2a-chev { transform: rotate(180deg); }
html[data-ui="crm2"] .c2a-grupo.tem-ativo > .c2a-cab { color: #fff; }
html[data-ui="crm2"] .c2a-grupo.tem-ativo > .c2a-cab::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; flex: none; }
html[data-ui="crm2"] .c2a-grupo.aberto.tem-ativo > .c2a-cab::after { display: none; }
html[data-ui="crm2"] .c2a-itens { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .2s ease; }
html[data-ui="crm2"] .c2a-itens > * { min-height: 0; overflow: hidden; }
html[data-ui="crm2"] .c2a-itens { overflow: hidden; }
html[data-ui="crm2"] .c2a-grupo:not(.aberto) .c2a-itens { display: none; }
html[data-ui="crm2"] .c2a-grupo.aberto .c2a-itens { display: flex; flex-direction: column; padding: 2px 0 4px; }
html[data-ui="crm2"] .c2a-item { margin-left: 22px !important; padding-left: 12px !important; font-size: 13px; position: relative; }
html[data-ui="crm2"] .c2a-item .nav-item__label, html[data-ui="crm2"] .c2a-top .nav-item__label { white-space: normal; line-height: 1.25; min-width: 0; }
html[data-ui="crm2"] .c2a .c2-item.active { background: rgba(34,197,94,.16); color: #fff; }
html[data-ui="crm2"] .c2a .c2-item.active::before { content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: #22c55e; }
html[data-ui="crm2"] .c2a .c2-item { position: relative; }
html[data-ui="crm2"] .c2a .c2-item.active svg { color: #4ade80; }
html[data-ui="crm2"] .c2a-recolher { display: flex; align-items: center; gap: 11px; margin: 14px 10px 0; padding: 8px 12px; border: 0; border-top: 1px solid rgba(255,255,255,.07); border-radius: 0; background: none; color: var(--c2-nav-mut); font: inherit; font-size: 12.5px; cursor: pointer; text-align: left; }
html[data-ui="crm2"] .c2a-recolher:hover { color: #fff; }
/* recolhida: só ícones (todos os itens visíveis, sem cabeçalhos), com título no hover */
html[data-ui="crm2"] #sidebar.collapsed .c2a-cab { display: none; }
html[data-ui="crm2"] #sidebar.collapsed .c2a-grupo .c2a-itens { display: flex !important; flex-direction: column; padding: 0; border-top: 1px solid rgba(255,255,255,.06); margin-top: 4px; padding-top: 4px; }
html[data-ui="crm2"] #sidebar.collapsed .c2a-item { margin-left: 10px !important; padding-left: 12px !important; }
html[data-ui="crm2"] #sidebar.collapsed .c2a .nav-item__label { display: none; }
html[data-ui="crm2"] #sidebar.collapsed .c2a-recolher { justify-content: center; }
html[data-ui="crm2"] .c2a-logo { display: none; }
/* celular: menu em gaveta (já existente, botão ☰ da barra superior); itens com alvo de toque maior */
@media (max-width: 1024px) { html[data-ui="crm2"] .c2a-logo { display: block; padding: 4px 22px 14px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: #fff; } html[data-ui="crm2"] .c2a .c2-item, html[data-ui="crm2"] .c2a-cab { min-height: 44px; } html[data-ui="crm2"] .c2a-recolher { display: none; } }

/* Pipeline: "+ Nova proposta" e acesso a Propostas */
html[data-ui="crm2"] .c2a-pip-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
html[data-ui="crm2"] .c2a-pip-acoes .btn { width: auto; }
html[data-ui="crm2"] #page-pipeline .page-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Páginas de índice */
.c2a-crumb { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rpt-texto-secundario); margin-bottom: 2px; }
.c2a-hub section { margin-bottom: 22px; }
.c2a-hub h2 { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--rpt-texto-secundario); }
.c2a-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.c2a-hub-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 40px 16px 16px; border: 1px solid var(--rpt-borda); border-radius: 14px; background: var(--rpt-superficie); color: var(--rpt-texto); font: inherit; text-align: left; cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .12s; }
.c2a-hub-card:hover { border-color: rgba(34,197,94,.55); box-shadow: var(--sombra-2, 0 4px 14px rgba(0,0,0,.08)); }
.c2a-hub-card:focus-visible { outline: 2px solid #22c55e; outline-offset: 2px; }
.c2a-hub-card b { font-size: 14px; }
.c2a-hub-card span { font-size: 12.5px; color: var(--rpt-texto-secundario); line-height: 1.45; }
.c2a-hub-card small { font-size: 11.5px; color: var(--rpt-texto-secundario); }
.c2a-hub-card i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--rpt-texto-secundario); display: inline-flex; }
.c2a-pend { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; border: 1px dashed rgba(245,158,11,.6); background: rgba(245,158,11,.07); font-size: 13px; }

/* ===================================================================================================================================
   CRM2 · CENTRAL DE CONVERSAS DO ADMINISTRADOR (Fase 4, 04/11/2026) — js/crm2-conversas-admin.js. Só existe com #page-whatsapp.c2ca-on
   (administrador no CRM2). Cabeçalho + 4 indicadores + filtros Responsável × Situação acima do Inbox de sempre (3 painéis). Nada no layout clássico.
   =================================================================================================================================== */
#page-whatsapp.c2ca-on > .page-header { display: none; }
#page-whatsapp.c2ca-on #wa-search, #page-whatsapp.c2ca-on #wa-nc-slot { display: none; }   /* busca e "Nova conversa" sobem para o topo da Central */
.c2ca { flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; padding: 8px 2px 8px; }
.c2ca-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.c2ca-bc { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--c2-mut, #6a7280); }
.c2ca-head h1 { margin: 1px 0 0; font-size: 20px; font-weight: 700; color: var(--c2-txt, #16181d); letter-spacing: -.01em; }
.c2ca-head p { margin: 2px 0 0; font-size: 13px; color: var(--c2-mut, #6a7280); }
.c2ca-head-a { display: flex; gap: 8px; flex-wrap: wrap; }
.c2ca-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--c2-card-line, #d5d8de); background: var(--c2-card, #fff); color: var(--c2-txt, #16181d); font: 600 13px/1 inherit; cursor: pointer; }
.c2ca-btn:hover:not([disabled]) { background: var(--c2-pill, #f0f1f3); }
.c2ca-btn[disabled] { opacity: .55; cursor: not-allowed; }
.c2ca-btn--pri { background: var(--c2-acc, #0a6b33); border-color: var(--c2-acc, #0a6b33); color: #fff; }
.c2ca-btn--pri:hover:not([disabled]) { background: #08592a; }
.c2ca-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.c2ca-kpi { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-radius: 14px; border: 1px solid var(--c2-card-line, #d5d8de); background: var(--c2-card, #fff); cursor: pointer; min-width: 0; font: inherit; color: inherit; }
.c2ca-kpi:hover { border-color: var(--c2-acc, #0a6b33); }
.c2ca-kpi.on { border-color: var(--c2-acc, #0a6b33); box-shadow: 0 0 0 2px var(--c2-ok-line, #a7dfbd); background: var(--c2-ok-bg, #e9f8ef); }
.c2ca-kpi-l { font-size: 12px; color: var(--c2-mut, #6a7280); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c2ca-kpi-v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--c2-txt, #16181d); }
.c2ca-kpi-v.is-na { font-size: 14px; font-weight: 600; color: var(--c2-mut, #6a7280); }
.c2ca-filtros { border: 1px solid var(--c2-card-line, #d5d8de); background: var(--c2-bg, #fafafa); border-radius: 14px; padding: 8px 14px; display: flex; flex-direction: column; gap: 6px; }
.c2ca-filtros-t { font-size: 13px; font-weight: 700; color: var(--c2-txt, #16181d); }
.c2ca-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; }
.c2ca-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.c2ca-f > span { font-size: 11.5px; font-weight: 600; color: var(--c2-mut, #6a7280); }
.c2ca-f select, .c2ca-f input { min-height: 36px; border-radius: 999px; border: 1px solid var(--c2-card-line, #d5d8de); background: var(--c2-card, #fff); color: var(--c2-txt, #16181d); padding: 0 14px; font: 14px inherit; min-width: 0; width: 100%; box-sizing: border-box; color-scheme: light; }
.c2ca-rodape { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.c2ca-limpar { flex-shrink: 0; }
.c2ca-mut { font-size: 12px; color: var(--c2-mut, #6a7280); }
.c2ca-resumo { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; background: var(--c2-card, #fff); border-radius: 10px; padding: 6px 12px; font-size: 12.5px; color: var(--c2-mut, #6a7280); }
.c2ca-resumo b { color: var(--c2-txt, #16181d); font-size: 12.5px; }
.c2ca-aviso { background: var(--c2-ok-bg, #e9f8ef); color: #14532d; border-radius: 10px; padding: 6px 10px; font-size: 12.5px; margin-bottom: 6px; }
.c2ca-aviso--bot { background: #fff7e6; color: #7a4b00; }
.c2ca-c360 { border: 1px solid var(--c2-card-line, #d5d8de); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; background: var(--c2-card, #fff); display: flex; flex-direction: column; gap: 6px; }
.c2ca-c360-h { display: flex; flex-direction: column; gap: 1px; padding-bottom: 6px; border-bottom: 1px solid var(--c2-line, #e6e7eb); margin-bottom: 2px; }
.c2ca-c360-h b { font-size: 15px; color: var(--c2-txt, #16181d); }
.c2ca-c360-h span { font-size: 12px; color: var(--c2-mut, #6a7280); }
.c2ca-c360-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.c2ca-c360-row span { color: var(--c2-mut, #6a7280); flex-shrink: 0; }
.c2ca-c360-row b { color: var(--c2-txt, #16181d); font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.c2ca-c360-b { width: 100%; margin-top: 4px; }
@media (max-width: 1100px) { .c2ca-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .c2ca { padding: 10px 12px 8px; gap: 8px; }
  .c2ca-head h1 { font-size: 19px; }
  .c2ca-head p, .c2ca-filtros-t, .c2ca-bc { display: none; }
  .c2ca-resumo { display: none; } .c2ca-rodape { justify-content: flex-end; margin-top: -4px; }
  .c2ca-kpi { padding: 8px 10px; } .c2ca-kpi-v { font-size: 18px; }
  .c2ca-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .c2ca-f--q { grid-column: 1 / -1; }
  #page-whatsapp.c2ca-on .wa-col-list, #page-whatsapp.c2ca-on .wa-col-chat { width: 100%; max-width: none; min-width: 0; flex: 1 1 auto; }   /* a lista ocupa a largura toda (o .wa-col-list{width:320px} genérico vencia) */
  #page-whatsapp.c2ca-on:has(.wa-shell[data-mobile-view="chat"]) #c2ca-root, #page-whatsapp.c2ca-on:has(.wa-shell[data-mobile-view="ctx"]) #c2ca-root { display: none; }   /* no celular: lista ↔ conversa, a Central só aparece na lista */
}

/* Modal "Encerrar ou adiar oportunidade" (04/11/2026, docs/crm2-modal-perda-adiamento.md) — escolha Adiar × Perdida */
.c2pe-modos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.c2pe-modo { display: flex; flex-direction: column; gap: 4px; text-align: left; font: inherit; cursor: pointer; background: #fff; color: #16181d; border: 1.5px solid #d6d8de; border-radius: 12px; padding: 10px 12px; min-height: 44px; }
.c2pe-modo b { font-size: 14px; } .c2pe-modo small { font-size: 12px; line-height: 1.35; color: #4b5563; }
.c2pe-modo:hover { border-color: #9ca3af; }
.c2pe-modo:focus-visible { outline: 2px solid #0a9b43; outline-offset: 2px; }
.c2pe-modo--adiar.on { border-color: #b45309; background: #fff7ed; box-shadow: inset 0 0 0 1px #b45309; }
.c2pe-modo--perder.on { border-color: #b42318; background: #fef3f2; box-shadow: inset 0 0 0 1px #b42318; }
.c2pe-modo--adiar.on b { color: #92400e; } .c2pe-modo--perder.on b { color: #912018; }
.c2pe-painel[hidden] { display: none; }
.c2pe-nota { margin: 0 0 12px; }
.c2-modal-box:has(.c2pe-modos) { width: min(540px, 100%); }
@media (max-width: 480px) { .c2pe-modos { grid-template-columns: 1fr; } }
.c2d-duo.c2d-duo--adiadas { grid-template-columns: 1fr; }   /* adiamentos/reativações (04/11/2026): painel próprio, separado das perdas */

/* 11/11/2026 — "Outros resultados da pesquisa": depois do pipeline, recolhível (docs/crm2-pipeline-busca-ordem.md) */
details.c2p-fora { margin: 14px 0 0; border-left-color: var(--rpt-borda); }
details.c2p-fora > summary.c2p-fora__tit { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0; padding: 2px 0; font-size: 12px; }
details.c2p-fora > summary.c2p-fora__tit::-webkit-details-marker { display: none; }
details.c2p-fora > summary.c2p-fora__tit::before { content: '▸'; display: inline-block; transition: transform .15s; }
details.c2p-fora[open] > summary.c2p-fora__tit::before { transform: rotate(90deg); }
details.c2p-fora[open] > summary.c2p-fora__tit { margin-bottom: 6px; }
.c2p-fora__n { font-variant-numeric: tabular-nums; padding: 0 7px; border-radius: 999px; background: var(--rpt-borda); color: var(--rpt-texto); font-size: 11px; }
.c2p-fora__sub { flex-basis: 100%; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--rpt-texto-secundario); font-size: 12px; }
.c2p-sit { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; border: 1px solid currentColor; margin-right: 4px; }
.c2p-sit--per { color: var(--rpt-red, #ef4444); }
.c2p-sit--adi { color: var(--rpt-orange, #b45309); }
.c2p-sit--and { color: var(--rpt-green, #10b981); }
.c2p-sit--sem { color: var(--rpt-texto-secundario); }
@media (max-width: 640px) { details.c2p-fora .c2p-fora__item { flex-direction: column; align-items: stretch; } }
/* 05/11/2026 — busca do Pipeline: clientes que casam com a busca mas estão fora da aba aberta (crm2PipBuscaForaHTML) */
.c2p-fora { border: 1px solid var(--rpt-borda); border-left: 3px solid var(--rpt-orange, #f59e0b); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; background: var(--rpt-superficie); }
.c2p-fora__tit { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--rpt-texto-secundario); margin-bottom: 6px; }
.c2p-fora__item { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--rpt-borda); }
.c2p-fora__item:first-of-type { border-top: 0; }
@media (max-width: 380px) { html[data-ui="crm2"] .c2-voltar-t { display: none; } html[data-ui="crm2"] .c2-top-btn.c2-voltar { padding: 0; width: 38px; } }
/* Voltar no cabeçalho dos painéis que cobrem a barra superior (Cliente 360º, Oportunidade, Contrato, Produtos e Custos) — js/crm2-voltar.js */
html[data-ui="crm2"] .c2-voltar-ov { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; align-self: center; height: 34px; padding: 0 12px 0 8px; margin-right: 10px; border-radius: 10px; border: 1px solid rgba(127,127,127,.35); background: transparent; color: inherit; font: 600 13.5px/1 inherit; cursor: pointer; }
html[data-ui="crm2"] .c2-voltar-ov:hover { background: rgba(127,127,127,.12); }
html[data-ui="crm2"] .c2-voltar-ov:focus-visible { outline: 2px solid #00cc44; outline-offset: 2px; }
html[data-ui="crm2"] .an-drawer__head.c2-tem-voltar, html[data-ui="crm2"] .ctx-draw-top.c2-tem-voltar { justify-content: flex-start; }
html[data-ui="crm2"] .an-drawer__head.c2-tem-voltar > :nth-child(2), html[data-ui="crm2"] .ctx-draw-top.c2-tem-voltar > :nth-child(2) { flex: 1 1 auto; min-width: 0; }
html[data-ui="crm2"] .prc-dhead.c2-tem-voltar > .c2-voltar-ov { margin: 0 0 10px; }

/* 12/11/2026 — Cliente 360º: solicitação original e formulário de captação (js/crm2-cliente360.js#crm360FormularioHTML) */
.c360-solic { font-weight: 600; }
.c360-solic.is-inferido { font-style: italic; }
.c360-solic.is-vazio { color: var(--c2-mut, #6a7280); font-weight: 500; }
.c360-solic__fonte { display: block; font-size: 11px; font-weight: 500; color: var(--c2-mut, #6a7280); }
.c360-form { border: 1px solid var(--c2-line, #e6e7eb); border-radius: 14px; background: var(--c2-card, #fff); padding: 10px 14px; margin: 0 0 12px; }
.c360-form > summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--c2-txt, #16181d); list-style-position: inside; }
.c360-form__n { font-weight: 500; font-size: 12px; color: var(--c2-mut, #6a7280); margin-left: 6px; }
.c360-form__aviso { font-size: 11px; color: var(--c2-mut, #6a7280); margin: 6px 0 8px; }
.c360-form__qa { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.c360-form__item { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; font-size: 13px; padding-bottom: 6px; border-bottom: 1px dashed var(--c2-line, #e6e7eb); }
.c360-form__item:last-child { border-bottom: 0; }
.c360-form__item dt { color: var(--c2-mut, #6a7280); overflow-wrap: anywhere; }
.c360-form__item dd { margin: 0; color: var(--c2-txt, #16181d); font-weight: 600; overflow-wrap: anywhere; }
.c360-form__vazia, .c360-form__nada { color: var(--c2-mut, #6a7280); font-weight: 500; font-style: italic; font-size: 12px; }
.c360-form__sub { margin-top: 10px; }
.c360-form__sub > summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--c2-mut, #6a7280); }
.c360-form__rastro { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 0; font-size: 12px; }
.c360-form__rastro > div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 10px; }
.c360-form__rastro dt { color: var(--c2-mut, #6a7280); }
.c360-form__rastro dd { margin: 0; overflow-wrap: anywhere; color: var(--c2-txt, #16181d); }
.c360-form__rastro code { display: block; font-size: 11px; color: var(--c2-mut, #6a7280); }
.c360-form__post { margin-top: 10px; font-size: 12px; color: var(--c2-mut, #6a7280); }
.c360-form__post h4 { margin: 0 0 4px; font-size: 12px; }
.c360-form__post ul { margin: 0; padding-left: 16px; }
@media (max-width: 640px) { .c360-form__item, .c360-form__rastro > div { grid-template-columns: 1fr; gap: 2px; } }
