/* Central › Comercial (leads): visão geral, funil, lista, tarefas, aprendizados e detalhe do lead */

/* ---------- Abas e barras ---------- */
.app-central .kcm-tabs { margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.app-central .kcm-tabs::-webkit-scrollbar { display: none; }
.app-central .kcm-tabs button { white-space: nowrap; flex: none; }
.app-central .kcm-tabs .count { background: var(--sz-danger); color: #fff; }
.app-central .kcm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.app-central .kcm-check { gap: 6px; font-size: 13px; color: var(--sz-text-2); cursor: pointer; white-space: nowrap; }
.app-central .kcm-check input { accent-color: var(--kp-neon); width: 15px; height: 15px; }
.app-central .kcm-filtros { gap: 8px 10px; }
.app-central .kcm-filtros .kc-busca { min-width: 220px; }
.app-central .kcm-fsel { width: auto; min-width: 0; max-width: 200px; height: 34px; font-size: 13px; }
.app-central .kcm-fcard { margin-bottom: 10px; }
.app-central .kcm-fcard .filters { border-bottom: 0; }
.app-central .kcm-dica { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; }
.app-central .kcm-lista-h { padding: 8px 14px 0; }

/* ---------- Pequenos componentes ---------- */
.app-central .kcm-etapa { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 7px; border-radius: 999px; font-size: 11.5px; font-weight: 650; white-space: nowrap;
  background: color-mix(in srgb, var(--c) 15%, var(--sz-surface)); color: color-mix(in srgb, var(--c) 70%, var(--sz-text)); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.app-central .kcm-etapa i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.app-central .kcm-orig { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--sz-text-2); white-space: nowrap; }
.app-central .kcm-orig .icon { color: var(--sz-text-3); }
.app-central .kcm-temp { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 650; white-space: nowrap; }
.app-central .kcm-temp.t-frio { background: var(--sz-ice); color: var(--sz-ice-700); }
.app-central .kcm-temp.t-morno { background: var(--sz-warning-050); color: #b87300; }
.app-central .kcm-temp.t-quente { background: var(--sz-danger-050); color: var(--sz-danger); }
.app-central .kcm-resp { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; min-width: 0; }
.app-central .kcm-prox { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--sz-text-2); white-space: nowrap; }
.app-central .kcm-prox.hoje { color: #b87300; font-weight: 650; }
.app-central .kcm-prox.late { color: var(--sz-danger); font-weight: 650; }
.app-central .kcm-wa .icon { color: #25d366; }
.app-central .kcm-vazio-mini { display: flex; align-items: center; gap: 10px; padding: 18px; color: var(--sz-text-3); font-size: 13px; }
.app-central .kcm-vazio-mini .icon { width: 20px; height: 20px; color: var(--sz-success); }
.app-central .kcm-ck { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px; border: 2px solid var(--sz-border-2); background: var(--sz-surface); color: transparent; cursor: pointer; padding: 0; transition: all .15s; }
.app-central .kcm-ck .icon { width: 14px; height: 14px; }
.app-central .kcm-ck:hover { border-color: var(--sz-success); color: var(--sz-success); }
.app-central .kcm-ck.on { background: var(--sz-success); border-color: var(--sz-success); color: #fff; }
.app-central .kcm-ck.busy { color: transparent; }

/* ---------- Visão geral ---------- */
.app-central .kcm-funil { display: grid; gap: 6px; }
.app-central .kcm-funil-i { display: grid; grid-template-columns: minmax(110px, 30%) 1fr 90px; align-items: center; gap: 12px; padding: 6px 8px; margin: 0 -8px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.app-central .kcm-funil-i:hover { background: var(--sz-surface-2); }
.app-central .kcm-funil-l { font-size: 13px; color: var(--sz-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-central .kcm-funil-t { height: 22px; border-radius: 7px; background: var(--sz-surface-2); overflow: hidden; }
.app-central .kcm-funil-t i { display: block; height: 100%; width: var(--p); min-width: 4px; border-radius: 7px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, transparent), var(--c)); transform-origin: left; animation: growX .7s var(--ease) both; }
.app-central .kcm-funil-v { display: grid; justify-items: end; line-height: 1.15; }
.app-central .kcm-funil-v b { font-size: 16px; font-variant-numeric: tabular-nums; }
.app-central .kcm-funil-v small { font-size: 11px; color: var(--sz-text-3); white-space: nowrap; }
.app-central .kcm-funil-fim { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.app-central .kcm-fim { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--sz-border); background: var(--sz-surface-2); color: var(--sz-text); font: inherit; cursor: pointer; text-align: left; }
.app-central .kcm-fim b { font-size: 20px; font-variant-numeric: tabular-nums; }
.app-central .kcm-fim span { font-size: 12px; color: var(--sz-text-3); line-height: 1.2; }
.app-central .kcm-fim.ok { background: var(--sz-success-050); } .app-central .kcm-fim.ok .icon { color: var(--sz-success); }
.app-central .kcm-fim.danger { background: var(--sz-danger-050); } .app-central .kcm-fim.danger .icon { color: var(--sz-danger); }
.app-central .kcm-agenda { display: grid; max-height: 420px; overflow-y: auto; }
.app-central .kcm-ag { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--sz-border); cursor: pointer; }
.app-central .kcm-ag:last-child { border-bottom: 0; }
.app-central .kcm-ag:hover { background: var(--sz-surface-2); }
.app-central .kcm-ag.late { box-shadow: inset 3px 0 0 var(--sz-danger); }
.app-central .kcm-ag .grow { display: grid; gap: 2px; min-width: 0; }
.app-central .kcm-ag .grow b { font-size: 13px; }
.app-central .kcm-ag .grow small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; color: var(--sz-text-3); }
.app-central .kcm-ag-r { display: grid; justify-items: end; gap: 4px; }
.app-central .kcm-bar3 { grid-template-columns: minmax(110px, 32%) 1fr 34px 42px; }
.app-central .kcm-conv { font-size: 12px; font-weight: 700; color: var(--sz-success); text-align: right; font-variant-numeric: tabular-nums; }
.app-central .kcm-al { justify-self: start; margin-top: 4px; }
.app-central .kcm-meses { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; }
.app-central .kcm-mes { display: grid; justify-items: center; gap: 4px; min-width: 0; }
.app-central .kcm-mes-b { display: flex; align-items: flex-end; justify-content: center; gap: 4px; width: 100%; height: 140px; }
.app-central .kcm-mes-b i { position: relative; width: min(22px, 40%); height: var(--h); min-height: 3px; border-radius: 5px 5px 2px 2px; transform-origin: bottom; animation: growY .6s var(--ease) both; }
.app-central .kcm-mes-b i.novo { background: linear-gradient(180deg, var(--sz-ice-500), color-mix(in srgb, var(--sz-ice-500) 35%, transparent)); }
.app-central .kcm-mes-b i.ganho { background: linear-gradient(180deg, var(--kp-neon), color-mix(in srgb, var(--kp-neon) 35%, transparent)); }
.app-central .kcm-mes-b i b { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-size: 10.5px; color: var(--sz-text-2); }
.app-central .kcm-mes small { font-size: 11.5px; color: var(--sz-text-2); text-transform: capitalize; }
.app-central .kcm-mes em { font-style: normal; font-size: 10.5px; color: var(--sz-text-3); white-space: nowrap; }
.app-central .kcm-lg-novo { background: var(--sz-ice-500); } .app-central .kcm-lg-ganho { background: var(--kp-neon); }
.app-central .kcm-recentes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; padding: 14px; }
.app-central .kcm-rec { display: grid; gap: 4px; padding: 12px; border-radius: 12px; border: 1px solid var(--sz-border); background: var(--sz-surface-2); color: var(--sz-text); font: inherit; text-align: left; cursor: pointer; min-width: 0; transition: transform .15s, border-color .15s; }
.app-central .kcm-rec:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--kp-neon) 40%, var(--sz-border)); }
.app-central .kcm-rec-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.app-central .kcm-rec-h small { margin-left: auto; font-size: 11.5px; }
.app-central .kcm-rec b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-central .kcm-rec > small { font-size: 12px; color: var(--sz-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-central .kcm-rec-f { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }

/* ---------- Funil (kanban, no padrão do "Funil de Vendas Otimizado") ---------- */
.app-central .kcm-fsw { display: inline-flex; align-items: center; gap: 6px; padding-left: 10px; border: 1px solid var(--sz-border-2); border-radius: var(--sz-radius-sm); background: var(--sz-surface); }
.app-central .kcm-fsw .icon { color: var(--kp-neon); width: 16px; height: 16px; }
.app-central .kcm-fsw .select { border: 0; box-shadow: none; max-width: 300px; font-weight: 650; }
.app-central .kcm-fhead { margin-bottom: 14px; border-radius: 16px; border: 1px solid var(--sz-border); background: linear-gradient(160deg, color-mix(in srgb, var(--kp-forest) 22%, var(--sz-surface)), var(--sz-surface)); padding: 12px 16px; }
.app-central .kcm-fhead > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; }
.app-central .kcm-fhead > summary::-webkit-details-marker { display: none; }
.app-central .kcm-fhead-t { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.app-central .kcm-fhead-t b { color: var(--c, var(--kp-neon)); }
.app-central .kcm-pilares { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 12px; }
.app-central .kcm-pilar { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--sz-surface-2); border: 1px solid var(--sz-border); }
.app-central .kcm-pilar small { font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--c) 75%, var(--sz-text)); }
.app-central .kcm-pilar b { font-size: 14.5px; }
.app-central .kcm-pilar p { margin: 0; font-size: 12.5px; color: var(--sz-text-2); }
.app-central .kcm-focos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--sz-surface-2); border: 1px solid var(--sz-border); }
.app-central .kcm-focos b { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #f0c419; }
.app-central .kcm-focos span { padding: 3px 12px; border-radius: 999px; background: #f0c419; color: #2a2100; font-size: 12.5px; font-weight: 700; }
.app-central .kcm-legenda { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.app-central .kcm-legenda span { padding: 3px 10px; border-radius: 7px; background: var(--c); color: #fff; font-size: 12px; font-weight: 650; }
/* Uma rolagem só para o quadro inteiro: rolar desce todas as etapas juntas (os cabeçalhos ficam presos no topo) */
.app-central .kcm-board { display: flex; gap: 12px; overflow: auto; max-height: calc(100vh - 250px); padding: 0 2px 12px; align-items: stretch; scroll-snap-type: x proximity; }
.app-central .kcm-col { flex: 0 0 280px; display: flex; flex-direction: column; min-height: 260px; border-radius: 14px; background: var(--sz-surface-2); border: 1px solid var(--sz-border); scroll-snap-align: start; overflow: clip; transition: border-color .15s, background .15s, box-shadow .15s; }
.app-central .kcm-board > .kcm-col > .kcm-col-h { position: sticky; top: 0; z-index: 2; }
.app-central .kcm-col.over { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--sz-surface-2)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); }
.app-central .kcm-board.arrastando .kcm-col:not(.over) .kcm-col-vazia { border-color: var(--sz-border-2); }
.app-central .kcm-col-h { position: relative; display: grid; gap: 2px; padding: 10px 12px; background: var(--c); color: #fff; flex: none; }
.app-central .kcm-col-h small { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; opacity: .9; }
.app-central .kcm-col-h b { font-size: 14px; line-height: 1.2; text-transform: uppercase; padding-right: 56px; }
.app-central .kcm-col-n { position: absolute; right: 10px; top: 10px; display: grid; justify-items: end; gap: 1px; }
.app-central .kcm-col-n .count { font-size: 11.5px; padding: 0 8px; border-radius: 999px; background: rgb(0 0 0 / 22%); color: #fff; font-weight: 800; }
.app-central .kcm-col-n small { font-size: 10.5px; text-transform: none; letter-spacing: 0; opacity: .9; }
.app-central .kcm-col-info { padding: 8px 10px 0; flex: none; }
.app-central .kcm-einfo > summary { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-size: 12px; font-weight: 650; color: var(--sz-text-2); list-style: none; }
.app-central .kcm-einfo > summary::-webkit-details-marker { display: none; }
.app-central .kcm-einfo[open] > summary { margin-bottom: 6px; }
.app-central .kcm-ebox { padding: 8px 10px; border-radius: 10px; background: var(--sz-surface); border: 1px solid var(--sz-border); font-size: 12.5px; margin-bottom: 6px; }
.app-central .kcm-ebox b { font-size: 12px; }
.app-central .kcm-ebox p { margin: 2px 0 0; color: var(--sz-text-2); line-height: 1.4; }
.app-central .kcm-echips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.app-central .kcm-echips span { padding: 2px 7px; border-radius: 6px; background: var(--sz-surface-3); color: var(--sz-text); font-size: 11px; font-weight: 700; }
.app-central .kcm-col-b { display: grid; gap: 8px; padding: 10px; align-content: start; flex: 1; }
.app-central .kcm-col-vazia { display: grid; place-items: center; min-height: 70px; border: 2px dashed transparent; border-radius: 12px; color: var(--sz-text-3); font-size: 12px; }
.app-central .kcm-col-mais { justify-self: center; }
.app-central .kcm-nova { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 10px 10px; height: 34px; border: 1px dashed var(--sz-border-2); border-radius: 10px; background: transparent; color: var(--sz-text-3); font: inherit; font-size: 12.5px; cursor: pointer; flex: none; }
.app-central .kcm-nova:hover { border-color: var(--c); color: var(--sz-text); background: color-mix(in srgb, var(--c) 8%, transparent); }
.app-central .kcm-card { display: grid; gap: 5px; padding: 10px 12px; border-radius: 10px; background: var(--sz-surface); border: 1px solid var(--sz-border); border-left: 4px solid var(--c); box-shadow: var(--sz-shadow-sm); cursor: pointer; min-width: 0; transition: transform .12s, box-shadow .15s, opacity .15s; }
.app-central .kcm-card[draggable] { cursor: grab; }
.app-central .kcm-card:hover { transform: translateY(-1px); box-shadow: var(--sz-shadow); }
.app-central .kcm-card.drag { opacity: .45; transform: rotate(1.5deg); }
.app-central .kcm-card-h { display: flex; align-items: center; gap: 6px; }
.app-central .kcm-card-h code { font: 700 11px var(--sz-mono); color: var(--sz-text-3); }
.app-central .kcm-card-h .kcm-temp { height: 20px; padding: 0 5px; }
.app-central .kcm-card-t { font-size: 13px; line-height: 1.25; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-bottom: 4px; border-bottom: 1px solid var(--sz-border); }
.app-central .kcm-cfs { display: grid; gap: 3px; }
.app-central .kcm-cf { display: grid; grid-template-columns: minmax(64px, auto) 1fr; gap: 8px; align-items: baseline; font-size: 12px; min-width: 0; }
.app-central .kcm-cf > span { color: var(--sz-text-3); white-space: nowrap; }
.app-central .kcm-cf > b { text-align: right; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-central .kcm-cf > b .kcm-orig, .app-central .kcm-cf > b .pill { font-weight: 650; }
.app-central .kcm-card-f { display: flex; align-items: center; gap: 6px; padding-top: 6px; margin-top: 2px; border-top: 1px dashed var(--sz-border); min-width: 0; }
.app-central .kcm-card-f .kcm-resp { overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.app-central .kcm-card-mv { justify-self: start; margin-top: 4px; }
.app-central .kcm-sla { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.app-central .kcm-sla.ok { background: var(--sz-success-050); color: var(--sz-success); }
.app-central .kcm-sla.hoje { background: var(--sz-warning-050); color: #b87300; }
.app-central .kcm-sla.late { background: var(--sz-danger); color: #fff; }
.app-central .kcm-st-congelado { color: var(--sz-ice-500); }
.app-central .kcm-st-devolvido { color: var(--sz-danger); }
.app-central .kcm-of { font-size: 12px; font-weight: 650; }
/* Celular: seletor de etapa + lista */
.app-central .kcm-etapas-sel { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.app-central .kcm-etapas-sel::-webkit-scrollbar { display: none; }
.app-central .kcm-esel { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--sz-border-2); background: var(--sz-surface); color: var(--sz-text-2); font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; }
.app-central .kcm-esel i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.app-central .kcm-esel span { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--sz-surface-3); font-size: 11px; display: grid; place-items: center; }
.app-central .kcm-esel.on { background: color-mix(in srgb, var(--c) 18%, var(--sz-surface)); border-color: var(--c); color: var(--sz-text); }
.app-central .kcm-mlist.kcm-col { max-height: none; min-height: 0; width: 100%; }
.app-central .kcm-mlist-b { display: grid; gap: 8px; padding: 10px; }
/* Revisão mensal (congelados) */
.app-central .kcm-ret { display: grid; }
.app-central .kcm-ret-i { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--sz-border); cursor: pointer; flex-wrap: wrap; }
.app-central .kcm-ret-i:last-child { border-bottom: 0; }
.app-central .kcm-ret-i:hover { background: var(--sz-surface-2); }
.app-central .kcm-ret-i .grow { display: grid; gap: 2px; min-width: 180px; }
.app-central .kcm-ret-i small { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--sz-text-3); }
.app-central .kcm-ret-d { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--sz-ice-500); }
.app-central .kcm-ret-d.late { color: var(--sz-danger); }
.app-central .kcm-funil-l small { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--sz-text-3); }
.app-central .kcm-pad { padding: 10px 16px; margin: 0; }

/* ---------- Lista ---------- */
.app-central .kcm-kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.app-central .kcm-kpis .kpi-v { font-size: 23px; white-space: nowrap; }
.app-central .kcm-lead-c { display: grid; gap: 1px; min-width: 220px; max-width: 320px; }
.app-central .kcm-lead-c .t-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-central .kcm-lead-c code { font: 700 11px var(--sz-mono); color: var(--sz-text-3); }
.app-central .kcm-tabela .t-main { font-weight: 650; }
.app-central .kcm-io { display: grid; gap: 4px; justify-items: start; }

/* ---------- Tarefas ---------- */
.app-central .kcm-tres { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.app-central .kcm-tgrupo h4 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 16px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--sz-text-3); }
.app-central .kcm-tgrupo.late h4 { color: var(--sz-danger); }
.app-central .kcm-tgrupo h4 .count { font-size: 11px; padding: 0 7px; border-radius: 999px; background: var(--sz-surface-3); color: var(--sz-text-2); letter-spacing: 0; }
.app-central .kcm-tarefa { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--sz-border); cursor: pointer; min-width: 0; }
.app-central .kcm-tarefa:hover { background: var(--sz-surface-2); }
.app-central .kcm-tgrupo.late .kcm-tarefa { box-shadow: inset 3px 0 0 var(--sz-danger); }
.app-central .kcm-tarefa-t { display: grid; gap: 3px; min-width: 0; }
.app-central .kcm-tarefa-t b { font-size: 13.5px; }
.app-central .kcm-tarefa-t small { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 12px; color: var(--sz-text-2); }
.app-central .kcm-tarefa.feita .kcm-tarefa-t b { text-decoration: line-through; color: var(--sz-text-3); }
.app-central .kcm-tarefa-r { display: flex; align-items: center; gap: 10px; flex: none; }

/* ---------- Aprendizados ---------- */
.app-central .kcm-apr-top .filters { border-bottom: 0; }
.app-central .kcm-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; }
.app-central .kcm-tags:empty { display: none; }
.app-central .kcm-tags .kc-chip { height: 26px; font-size: 12px; }
.app-central .kcm-apr-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.app-central .kcm-apr-board.um { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.app-central .kcm-apr-board.um .kcm-apr-col { display: contents; }
.app-central .kcm-apr-board.um .kcm-apr-col > header { display: none; }
.app-central .kcm-apr-col { display: grid; gap: 10px; align-content: start; }
.app-central .kcm-apr-col > header { display: flex; align-items: center; gap: 8px; padding: 4px 2px; }
.app-central .kcm-apr-col > header b { font-size: 14px; }
.app-central .kcm-apr-col > header .count { font-size: 11px; padding: 0 7px; border-radius: 999px; background: var(--sz-surface-3); color: var(--sz-text-2); font-weight: 700; }
.app-central .kcm-apr-ic { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; flex: none; }
.app-central .kcm-apr { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--sz-surface); border: 1px solid var(--sz-border); border-top: 3px solid var(--t, var(--sz-border-2)); box-shadow: var(--sz-shadow-sm); min-width: 0; }
.app-central .kcm-apr.t-deu_certo { --t: var(--sz-success); }
.app-central .kcm-apr.t-deu_errado { --t: var(--sz-danger); }
.app-central .kcm-apr.t-ideia { --t: var(--sz-violet); }
.app-central .kcm-apr-h { display: flex; align-items: flex-start; gap: 8px; }
.app-central .kcm-apr-h b { flex: 1; font-size: 13.5px; line-height: 1.3; }
.app-central .kcm-apr-acts { display: inline-flex; gap: 0; margin: -4px -6px 0 0; }
.app-central .kcm-apr-acts .btn-icon-ghost { width: 28px; height: 28px; }
.app-central .kcm-apr p { font-size: 13px; color: var(--sz-text-2); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.app-central .kcm-tag { cursor: pointer; font: inherit; font-size: 11.5px; }
.app-central .kcm-tag:hover { border-color: var(--sz-blue); color: var(--sz-blue); }
.app-central .kcm-apr footer { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 12px; padding-top: 8px; border-top: 1px dashed var(--sz-border); }
.app-central .kcm-apr footer .link-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.app-central .kcm-apr-vazio { padding: 10px 2px; font-size: 13px; }
.app-central .kcm-apr-lista { display: grid; gap: 10px; padding: 14px; max-height: 560px; overflow-y: auto; }
.app-central .kcm-apr-lista .kcm-apr { box-shadow: none; background: var(--sz-surface-2); }
.app-central .kcm-apr-hint { padding: 0 16px 14px; }

/* ---------- Detalhe do lead ---------- */
.app-central .kcm-lead-head { overflow: hidden; }
.app-central .kcm-lh-top { display: flex; gap: 16px; align-items: flex-start; padding: 20px; flex-wrap: wrap; background: radial-gradient(420px 160px at 0% 0%, rgb(61 233 15 / 10%), transparent 70%); }
.app-central .kcm-lh-t { display: grid; gap: 6px; min-width: 240px; }
.app-central .kcm-lh-t h1 { font-size: 22px; margin: 0; overflow-wrap: anywhere; }
.app-central .kcm-lh-t p { margin: 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.app-central .kcm-lh-c { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--sz-text-2); }
.app-central .kcm-lh-c span { display: inline-flex; align-items: center; gap: 5px; }
.app-central .kcm-lh-acts { display: grid; gap: 8px; justify-items: end; }
.app-central .kcm-lh-acts .kc-acts { flex-wrap: wrap; justify-content: flex-end; }
.app-central .kcm-steps { display: flex; align-items: center; gap: 4px; padding: 12px 20px; border-top: 1px solid var(--sz-border); overflow-x: auto; }
.app-central .kcm-step { position: relative; display: inline-flex; align-items: center; gap: 7px; flex: 1 1 0; min-width: 120px; height: 36px; padding: 0 14px 0 20px; border: 0; background: var(--sz-surface-2); color: var(--sz-text-2); font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%); transition: background .15s, color .15s; }
.app-central .kcm-step:first-child { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); border-radius: 8px 0 0 8px; padding-left: 14px; }
.app-central .kcm-step i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.app-central .kcm-step:hover:not(:disabled) { background: color-mix(in srgb, var(--c) 14%, var(--sz-surface-2)); color: var(--sz-text); }
.app-central .kcm-step.ok { background: color-mix(in srgb, var(--c) 18%, var(--sz-surface-2)); color: var(--sz-text); }
.app-central .kcm-step.cur { background: var(--c); color: #10210f; }
.app-central .kcm-step.cur i { background: #10210f; }
.app-central .kcm-step:disabled { cursor: default; }
.app-central .kcm-steps-fim { display: inline-flex; gap: 6px; margin-left: 10px; flex: none; }
.app-central .kcm-ganho .icon { color: var(--sz-success); } .app-central .kcm-perdido .icon { color: var(--sz-danger); }
.app-central .kcm-ganho.on { background: var(--sz-success); border-color: var(--sz-success); color: #fff; opacity: 1; } .app-central .kcm-ganho.on .icon { color: #fff; }
.app-central .kcm-perdido.on { background: var(--sz-danger); border-color: var(--sz-danger); color: #fff; opacity: 1; } .app-central .kcm-perdido.on .icon { color: #fff; }
.app-central .kcm-lh-aviso { margin: 0 20px 14px; }
.app-central .kcm-lh-stats b { font-size: 15px; }
.app-central .kcm-lead-grid { grid-template-columns: minmax(0, 1fr) 380px; }
.app-central .kcm-novo { display: grid; gap: 10px; }
.app-central .kcm-tipos { display: flex; flex-wrap: wrap; gap: 6px; }
.app-central .kcm-tipo input { display: none; }
.app-central .kcm-tipo span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--sz-border-2); background: var(--sz-surface); color: var(--sz-text-2); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.app-central .kcm-tipo span .icon { width: 15px; height: 15px; }
.app-central .kcm-tipo input:checked + span { background: var(--sz-ink); border-color: var(--sz-ink); color: var(--sz-bg); }
.app-central .kcm-novo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.app-central .kcm-prox-det summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--sz-blue); list-style: none; }
.app-central .kcm-prox-det summary::-webkit-details-marker { display: none; }
.app-central .kcm-prox-det[open] summary { margin-bottom: 10px; }
.app-central .kcm-atalhos { margin-top: 8px; }
.app-central .kcm-atalhos .tagc { cursor: pointer; font: inherit; font-size: 12px; }
.app-central .kcm-tl .tl-text { white-space: pre-wrap; }
.app-central .kcm-tl-mudanca_etapa .tl-text { background: color-mix(in srgb, var(--kp-neon) 10%, var(--sz-surface-2)); font-weight: 600; }
.app-central .kcm-tl-del { width: 26px; height: 26px; margin-left: -4px; opacity: .55; }
.app-central .kcm-tl-del:hover { opacity: 1; color: var(--sz-danger); }
.app-central .kcm-ltarefas { display: grid; }
.app-central .kcm-ltarefas .kcm-tarefa { cursor: default; }
.app-central .kcm-feitas summary { padding: 10px 16px; font-size: 12.5px; color: var(--sz-text-3); cursor: pointer; }
.app-central .kcm-add-tarefa { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--sz-border); }
.app-central .kcm-add-tarefa .input[name=titulo] { grid-column: 1 / -1; }
.app-central .kcm-add-tarefa .input { height: 34px; font-size: 13px; }
.app-central .kcm-msg { margin-top: 14px; padding: 10px 12px; border-radius: 4px 12px 12px 12px; background: var(--sz-blue-050); }
.app-central .kcm-msg small { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--sz-blue); }
.app-central .kcm-msg p { margin: 4px 0 0; font-size: 13px; white-space: pre-wrap; }

/* ---------- Modais ---------- */
.app-central .kcm-mov-de { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--sz-surface-2); }
.app-central .kcm-mov-de b { flex-basis: 100%; font-size: 13px; }
.app-central .kcm-seg-temp label span { display: inline-flex; align-items: center; gap: 5px; justify-content: center; }
.app-central .seg-block label { justify-content: center; }
.app-central .kcm-site { border-radius: 14px; border: 1px solid var(--sz-border-2); overflow: hidden; background: var(--sz-surface); box-shadow: var(--sz-shadow-sm); }
.app-central .kcm-site-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--sz-surface-2); border-bottom: 1px solid var(--sz-border); }
.app-central .kcm-site-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--sz-border-2); }
.app-central .kcm-site-bar span { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; flex: 1; min-width: 0; height: 24px; padding: 0 10px; border-radius: 7px; background: var(--sz-surface); font-size: 12px; color: var(--sz-text-2); overflow: hidden; white-space: nowrap; }
.app-central .kcm-site-b { display: grid; gap: 14px; padding: 16px; }
.app-central .kcm-site-h { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; background: linear-gradient(135deg, var(--kp-forest), var(--kp-deep)); color: #fff; }
.app-central .kcm-site-h b { font-size: 18px; color: var(--kp-neon); }
.app-central .kcm-site-h small { font-size: 12.5px; color: rgb(220 245 225 / 80%); }
.app-central .kcm-site-b > .btn { justify-self: start; }
.app-central .kcm-aceite { gap: 8px; font-size: 12.5px; color: var(--sz-text-2); align-items: flex-start; }
.app-central .kcm-aceite input { accent-color: var(--kp-neon); margin-top: 2px; }
.app-central .kcm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Detalhe do lead: etapas finais e regra da etapa ---------- */
.app-central .kcm-lead-head { border-top: 4px solid var(--c, var(--sz-border)); }
.app-central .kcm-steps .kcm-step { height: auto; min-height: 40px; white-space: normal; line-height: 1.15; text-align: left; font-size: 12px; min-width: 110px; }
.app-central .kcm-step span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-central .kcm-step.fim { flex: 0 1 auto; min-width: 0; clip-path: none; border-radius: 8px; margin-left: 6px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: var(--sz-surface); }
.app-central .kcm-step.fim .icon { color: var(--c); }
.app-central .kcm-step.fim.cur { background: var(--c); color: #fff; }
.app-central .kcm-step.fim.cur .icon { color: #fff; }
.app-central .kcm-step.t-excluir { --c: #8a9097; }
.app-central .kcm-step.t-excluir:hover { --c: var(--sz-danger, #dc2626); }
.app-central .kcm-lh-etapa { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 0 20px 12px; font-size: 12.5px; color: var(--sz-text-2); }
.app-central .kcm-lh-etapa span { display: inline-flex; align-items: baseline; gap: 5px; }
.app-central .kcm-lh-etapa .icon { align-self: center; color: var(--sz-text-3); }
.app-central .kcm-cad { display: flex; gap: 6px; align-items: flex-start; margin: 0; color: var(--sz-blue); }

/* ---------- Editor do funil ---------- */
.app-central .kcm-cfg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.app-central .kcm-cfg > *, .app-central .kcm-cfg .card { min-width: 0; }
.app-central .kcm-cfg-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.app-central .kcm-cfg-form > .btn { justify-self: start; }
.app-central .kcm-cfg-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.app-central .kcm-cfg-prev { padding-top: 6px; border-top: 1px dashed var(--sz-border); }
.app-central .kcm-cfg-prev .kcm-fhead { margin: 0; }
.app-central .kcm-cor { display: flex; align-items: center; gap: 10px; height: 38px; }
.app-central .kcm-cor input[type=color] { width: 46px; height: 34px; padding: 0; border: 1px solid var(--sz-border-2); border-radius: 8px; background: none; cursor: pointer; }
.app-central .kcm-cor span { font: 600 12.5px var(--sz-mono); color: var(--sz-text-2); }
.app-central .kcm-pil-ed { display: grid; gap: 8px; }
.app-central .kcm-pil-row { display: grid; grid-template-columns: 200px 200px minmax(0, 1fr) auto; gap: 8px; }
.app-central .kcm-et-lista { display: grid; gap: 6px; padding: 0 16px 14px; }
.app-central .kcm-et { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--sz-border); border-left: 5px solid var(--c); background: var(--sz-surface); }
.app-central .kcm-et.drag { opacity: .5; }
.app-central .kcm-et-h { cursor: grab; color: var(--sz-text-3); display: grid; place-items: center; }
.app-central .kcm-et-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--c); color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.app-central .kcm-et .grow { display: grid; gap: 2px; min-width: 0; }
.app-central .kcm-et .grow > small { font-size: 12px; color: var(--sz-text-3); }
.app-central .kcm-et-tag { padding: 0 6px; border-radius: 5px; background: var(--sz-surface-3); font-size: 11px; font-weight: 700; }
.app-central .kcm-prev-board { padding: 0 16px 16px; }
.app-central .kcm-prev-board .kcm-col { flex-basis: 220px; min-height: 0; max-height: none; }
.app-central .kcm-prev-board .kcm-col-h b { font-size: 12.5px; }
.app-central .kcm-prev-board .kcm-nova, .app-central .kcm-ed-prev .kcm-nova { pointer-events: none; }
.app-central .kcm-ops { max-width: 260px; font-size: 12.5px; color: var(--sz-text-2); }
.app-central .kcm-inativo { opacity: .55; }
.app-central .kcm-mot-lista { display: grid; gap: 6px; padding: 12px 16px 0; }
.app-central .kcm-mot { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; }
.app-central .kcm-mot .input { height: 34px; }
.app-central .kcm-modos { display: grid; gap: 8px; }
.app-central .kcm-modo { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--sz-border-2); cursor: pointer; }
.app-central .kcm-modo:has(input:checked) { border-color: var(--kp-neon); background: color-mix(in srgb, var(--kp-neon) 7%, var(--sz-surface)); }
.app-central .kcm-modo input { margin-top: 3px; accent-color: var(--kp-neon); }
.app-central .kcm-modo > span { display: grid; gap: 4px; min-width: 0; flex: 1; }
.app-central .kcm-modo small { font-size: 12.5px; color: var(--sz-text-2); }
.app-central .kcm-modo-et { display: flex; flex-wrap: wrap; gap: 4px; font-style: normal; }
.app-central .kcm-modo-et em { font-style: normal; padding: 1px 7px; border-radius: 6px; background: var(--c); color: #fff; font-size: 11px; font-weight: 650; }
.app-central .kcm-ed { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.app-central .kcm-ed-form { display: grid; gap: 14px; min-width: 0; }
.app-central .kcm-ed-prev { position: sticky; top: 0; display: grid; gap: 6px; }
.app-central .kcm-ed-prev .kcm-col { flex: none; width: 100%; max-height: none; min-height: 0; }
.app-central .kcm-regras, .app-central .kcm-obr { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.app-central .kcm-regras label[hidden] { display: none; }
.app-central .kcm-cc-lista { display: grid; gap: 4px; max-height: 260px; overflow-y: auto; padding: 4px; border-radius: 10px; border: 1px solid var(--sz-border); }
.app-central .kcm-cc { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 8px; }
.app-central .kcm-cc.on { background: color-mix(in srgb, var(--kp-neon) 9%, var(--sz-surface-2)); }
.app-central .kcm-cc .kcm-check { flex: 1; }
.app-central .kcm-cc .btn-icon-ghost { width: 26px; height: 26px; }
.app-central .kcm-cc [data-cc-up] .icon { transform: rotate(90deg); } .app-central .kcm-cc [data-cc-down] .icon { transform: rotate(90deg); }
.app-central .kcm-mapa { display: grid; gap: 8px; }
.app-central .kcm-mapa-i { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }

/* ---------- Responsivo ---------- */
@container (max-width: 1180px) {
  .app-central .kcm-lead-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .app-central .kcm-apr-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 960px) {
  .app-central .kcm-lead-grid { grid-template-columns: 1fr; }
  .app-central .kcm-lh-acts { justify-items: start; width: 100%; }
  .app-central .kcm-lh-acts .kc-acts { justify-content: flex-start; }
}
@container (max-width: 760px) {
  .app-central .kcm-hide-m { display: none !important; }
  .app-central .kcm-filtros .kc-busca { flex: 1 1 100%; min-width: 0; max-width: none; }
  .app-central .kcm-fsel { flex: 1 1 calc(50% - 10px); max-width: none; }
  .app-central .kcm-apr-board, .app-central .kcm-apr-board.um { grid-template-columns: 1fr; }
  .app-central .kcm-apr-top .kc-busca { flex: 1 1 100%; max-width: none; min-width: 0; }
  .app-central .kcm-apr-top .seg { overflow-x: auto; max-width: 100%; }
  .app-central .kcm-apr-top .seg button { white-space: nowrap; }
  .app-central .kcm-tags { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .app-central .kcm-tags .kc-chip { flex: none; }
  .app-central .kcm-funil-i { grid-template-columns: minmax(90px, 34%) 1fr 64px; gap: 8px; }
  .app-central .kcm-bar3 { grid-template-columns: minmax(90px, 34%) 1fr 30px 38px; }
  .app-central .kcm-meses { gap: 4px; }
  .app-central .kcm-mes em { display: none; }
  .app-central .kcm-ag { flex-wrap: wrap; padding: 10px 12px; }
  .app-central .kcm-ag-r { flex-direction: row; display: flex; align-items: center; justify-content: space-between; width: 100%; padding-left: 36px; }
  .app-central .kcm-tarefa { flex-wrap: wrap; padding: 10px 12px; gap: 10px; }
  .app-central .kcm-tarefa-t { flex: 1 1 calc(100% - 40px); }
  .app-central .kcm-tarefa-r { width: 100%; justify-content: space-between; padding-left: 38px; flex-wrap: wrap; }
  .app-central .kcm-ltarefas .kcm-tarefa { flex-wrap: nowrap; }
  .app-central .kcm-ltarefas .kcm-tarefa-t { flex: 1; }
  .app-central .kcm-lh-top { padding: 16px; gap: 12px; }
  .app-central .kcm-lh-top > .avatar { display: none; }
  .app-central .kcm-lh-t { min-width: 0; width: 100%; }
  .app-central .kcm-lh-t h1 { font-size: 19px; }
  .app-central .kcm-contato .btn { flex: 1; justify-content: center; }
  .app-central .kcm-contato { width: 100%; }
  .app-central .kcm-steps { padding: 10px 12px; flex-wrap: wrap; }
  .app-central .kcm-step { min-width: 0; flex: 1 1 calc(50% - 4px); clip-path: none; border-radius: 8px; padding: 0 10px; height: 34px; font-size: 12px; }
  .app-central .kcm-step:first-child { border-radius: 8px; padding: 0 10px; }
  .app-central .kcm-step.fim { margin-left: 0; flex: 1 1 calc(50% - 4px); justify-content: center; }
  .app-central .kcm-lh-etapa { padding: 0 12px 10px; }
  .app-central .kcm-lh-etapa span { display: block; }
  .app-central .kcm-fhead-t { font-size: 15px; }
  .app-central .kcm-fhead > summary small { display: none; }
  .app-central .kcm-pilares { grid-template-columns: 1fr 1fr; }
  .app-central .kcm-pilar p { display: none; }
  .app-central .kcm-fsw { flex: 1 1 100%; }
  .app-central .kcm-fsw .select { max-width: none; flex: 1; }
  .app-central .kcm-ed { grid-template-columns: 1fr; }
  .app-central .kcm-ed-prev { position: static; }
  .app-central .kcm-pil-row { grid-template-columns: 1fr auto; }
  .app-central .kcm-pil-row [name=p_titulo], .app-central .kcm-pil-row [name=p_texto] { grid-column: 1 / 2; }
  .app-central .kcm-et { flex-wrap: wrap; }
  .app-central .kcm-et .kc-acts { width: 100%; justify-content: flex-end; }
  .app-central .kcm-mot { grid-template-columns: minmax(0, 1fr) auto auto; }
  .app-central .kcm-mot small { display: none; }
  .app-central .kcm-mapa-i { grid-template-columns: 1fr; }
  .app-central .kcm-mapa-i > .icon { display: none; }
  .app-central .kcm-lh-aviso { margin: 0 12px 12px; flex-wrap: wrap; }
  .app-central .kcm-lh-stats { grid-template-columns: repeat(2, 1fr); }
  .app-central .kcm-lh-stats > div { border-bottom: 1px solid var(--sz-border); }
  .app-central .kcm-add-tarefa { grid-template-columns: 1fr auto; }
  .app-central .kcm-add-tarefa .input[name=titulo] { grid-column: 1 / -1; }
  .app-central .kcm-recentes { grid-template-columns: 1fr; padding: 10px; }
  .app-central .kcm-funil-fim { grid-template-columns: 1fr; }
  .app-central .kcm-site-b { padding: 12px; }
}

/* ===================== Propostas, catálogo e atalhos de tarefa (propostas.js / comercial-lead.js) ===================== */
.app-central .kcm-atalhos .tagc.on { border-color: var(--kp-neon); color: var(--sz-text); background: color-mix(in srgb, var(--kp-neon) 14%, var(--sz-surface-2)); }
.app-central .kcm-atalhos { margin-top: 6px; }
.app-central .kcm-add-tarefa2 { display: flex; flex-direction: column; gap: 8px; }
.app-central .kcm-add-tarefa2 .kcm-atalhos { margin-top: 0; }
.app-central .kcm-at-quando { display: flex; flex-direction: column; gap: 6px; }
.app-central .kcm-at-pe { display: flex; gap: 8px; align-items: center; }
.app-central .kcm-at-pe .select { flex: 1; min-width: 0; height: 34px; font-size: 13px; }
.app-central .kcm-add-tarefa2 .hint { margin: 0; }
.app-central .kcm-tl-abas { padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.app-central .kcm-tl-abas button { white-space: nowrap; padding: 9px 9px; font-size: 12.5px; }
.app-central .kcm-tl-prop { padding: 12px 16px 0; }
.app-central .kpp-dica { margin-bottom: 10px; align-items: center; }
.app-central .kpp-dica > div { flex: 1; }

.app-central .kpp-lista { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 16px; }
.app-central .kpp-card { border: 1px solid var(--sz-border); border-radius: 12px; padding: 12px 14px; background: var(--sz-surface-2); display: flex; flex-direction: column; gap: 6px; }
.app-central .kpp-card-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-central .kpp-card-t { font-size: 14px; }
.app-central .kpp-card-v { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; font-size: 13px; }
.app-central .kpp-acts { flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.app-central .kpp-off td { opacity: .55; }
.app-central .kpp-hint { padding: 0 16px 14px; }

/* editor da proposta */
.kpp-picker { position: relative; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.kpp-busca { flex: 1 1 260px; }
.kpp-sug { position: absolute; z-index: 5; top: 40px; left: 0; width: min(520px, 100%); max-height: 300px; overflow: auto; background: var(--sz-surface); border: 1px solid var(--sz-border); border-radius: 10px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.45); padding: 6px; }
.kpp-sug button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--sz-text); cursor: pointer; font: inherit; }
.kpp-sug button:hover, .kpp-sug button:focus { background: var(--sz-surface-2); outline: none; }
.kpp-sug small { color: var(--sz-text-3); font-size: 12px; }
.kpp-sug p { margin: 8px 10px; font-size: 13px; }
.kpp-linhas { display: flex; flex-direction: column; gap: 8px; }
.kpp-linha { display: grid; grid-template-columns: minmax(170px, 1fr) 64px 74px 104px 64px 170px 118px 62px; gap: 8px; align-items: start; padding: 10px; border: 1px solid var(--sz-border); border-radius: 10px; background: var(--sz-surface-2); }
.kpp-linha .input { height: 34px; font-size: 13px; }
.kpp-l-nome { display: flex; flex-direction: column; gap: 6px; }
.kpp-l-nome .textarea { min-height: 34px; font-size: 12.5px; resize: vertical; }
.kpp-l-c { display: flex; flex-direction: column; gap: 3px; }
.kpp-l-c small, .kpp-l-t small { font-size: 11px; color: var(--sz-text-3); }
.kpp-l-rec { align-items: center; }
.kpp-l-rec input { width: 18px; height: 18px; margin-top: 7px; }
.kpp-l-t { display: flex; flex-direction: column; gap: 3px; text-align: right; }
.kpp-l-t b { font-size: 13px; padding-top: 7px; }
.kpp-l-a { display: flex; gap: 2px; padding-top: 16px; justify-content: flex-end; }
.kpp-l-a [data-sobe] svg { transform: rotate(90deg); }
.kpp-totais { display: flex; justify-content: flex-end; gap: 22px; flex-wrap: wrap; padding: 12px 4px 0; }
.kpp-totais span { display: flex; flex-direction: column; align-items: flex-end; font-size: 12.5px; color: var(--sz-text-2); }
.kpp-totais b { font-size: 17px; color: var(--sz-text); }
.kpp-totais small { color: var(--sz-text-3); text-decoration: line-through; }
.kpp-apres summary { cursor: pointer; font-size: 13px; color: var(--sz-text-2); margin-bottom: 6px; }
.kpp-gerar { margin: 10px 0 6px; font-size: 14px; }
.kpp-fin { border: 1px solid var(--sz-border); border-radius: 12px; padding: 4px 14px 12px; margin-bottom: 12px; }
.kpp-prev { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--sz-surface-2); font-size: 13px; }
.kpp-prev ul { margin: 6px 0 4px 18px; padding: 0; }
.kpp-prev small { color: var(--sz-text-3); }
@media (max-width: 860px) {
  .kpp-linha { grid-template-columns: 1fr 1fr 1fr; }
  .kpp-l-nome { grid-column: 1 / -1; }
  .kpp-l-t { text-align: left; }
  .kpp-l-a { padding-top: 0; justify-content: flex-start; }
}

/* Registrar contato: o que já foi registrado do tipo escolhido (ex.: notas anteriores) */
.app-central .kcm-anteriores { border: 1px solid var(--sz-line, rgba(255,255,255,.08)); border-radius: 10px; background: rgba(255,255,255,.025); padding: 10px 12px; }
.app-central .kcm-ant-vazio { margin: 0; font-size: 12.5px; color: var(--sz-text-3, #8a918c); display: flex; align-items: center; gap: 6px; }
.app-central .kcm-ant-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.app-central .kcm-ant-h b { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.app-central .kcm-ant-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow: auto; }
.app-central .kcm-ant-lista li { padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.035); }
.app-central .kcm-ant-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--sz-text-3, #8a918c); }
.app-central .kcm-ant-meta time { margin-left: auto; }
.app-central .kcm-ant-lista p { margin: 4px 0 0; font-size: 13px; white-space: pre-wrap; }
.app-central .btn-link { border: 0; background: none; padding: 0; color: var(--kp-neon, #3de90f); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.app-central .btn-link:hover { text-decoration: underline; }
/* Vendedor do lead no topo: seletor direto (troca registrada na linha do tempo) */
.app-central .kcm-vendedor .kcm-vend-sel { height: 32px; padding: 0 28px 0 10px; font-size: 13px; font-weight: 700; min-width: 0; max-width: 220px; }
.app-central .kcm-vendedor.sem .kcm-vend-sel { border-color: var(--sz-warn, #f5a524); color: var(--sz-warn, #f5a524); }
.app-central .kcm-vendedor.sem small { color: var(--sz-warn, #f5a524); }
/* Topo do lead: "Cliente" acima do nome e a linha do vendedor logo abaixo dos contatos */
.app-central .kcm-lh-rot { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sz-text-3, #8a918c); margin: 6px 0 -2px; }
.app-central .kcm-lh-vend { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 5px 6px 5px 12px; border-radius: 10px; border: 1px solid var(--sz-border, rgba(255,255,255,.1)); background: rgba(61,233,15,.06); }
.app-central .kcm-lh-vend .kcm-lh-vend-r { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sz-text-3, #8a918c); }
.app-central .kcm-lh-vend b { font-size: 14px; padding-right: 6px; }
.app-central .kcm-lh-vend .kcm-vend-sel { height: 30px; padding: 0 28px 0 10px; font-size: 13.5px; font-weight: 700; max-width: 260px; }
.app-central .kcm-lh-vend.sem { background: rgba(245,165,36,.08); border-color: rgba(245,165,36,.45); }
.app-central .kcm-lh-vend.sem b, .app-central .kcm-lh-vend.sem .kcm-vend-sel { color: var(--sz-warn, #f5a524); }
.app-central .kcm-lh-stats { grid-template-columns: repeat(4, 1fr); }
/* Proposta: cabines relacionadas */
.app-central .kpp-cabines { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.app-central .kpp-cab { position: relative; cursor: pointer; }
.app-central .kpp-cab input { position: absolute; top: 12px; right: 12px; accent-color: var(--kp-neon, #3de90f); }
.app-central .kpp-cab span { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 11px 36px 11px 13px; border: 1px solid var(--sz-border); border-radius: 12px; transition: border-color .15s, background .15s; }
.app-central .kpp-cab b { font-size: 13.5px; }
.app-central .kpp-cab small { font-size: 12px; color: var(--sz-text-3); }
.app-central .kpp-cab .kpp-cab-end { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-central .kpp-cab:has(input:checked) span { border-color: var(--kp-neon, #3de90f); background: rgba(61,233,15,.07); }
.app-central .kpp-cab.off span { opacity: .65; }
.app-central .kpp-card-cab { display: flex; align-items: center; gap: 6px; color: var(--sz-text-3); font-size: 12px; }
/* Termos e dados adicionais (catálogo e linhas da proposta) */
.app-central .kpp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.app-central .kpp-ic-dados { color: var(--sz-text-3); vertical-align: middle; }
.app-central .kpp-termo-prev { white-space: normal; max-width: 520px; }
.app-central .kpp-termo-sel { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.app-central .kpp-termo-sel .select { flex: 1; min-width: 0; }
.app-central .kpp-termo-txt { min-height: 280px; font-size: 13px; line-height: 1.5; }
.app-central .kpp-l-dados { margin-top: 6px; }
.app-central .kpp-l-dados summary { cursor: pointer; font-size: 12px; color: var(--sz-text-3); font-weight: 600; }
.app-central .kpp-l-dados[open] summary { color: var(--kp-neon, #3de90f); }
.app-central .kpp-l-dados .textarea { margin-top: 6px; font-size: 12.5px; }
/* Planos (catálogo) e cobrança por plano nas linhas da proposta */
.kpp-planos { display: flex; flex-direction: column; gap: 8px; }
.kpp-plano { display: grid; grid-template-columns: minmax(140px, 1.2fr) 130px 130px minmax(120px, 1fr) auto; gap: 8px; align-items: center; padding: 8px; border: 1px solid var(--sz-border); border-radius: 10px; background: var(--sz-surface-2); }
.kpp-plano.off { opacity: .55; }
.kpp-plano-a { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.kpp-planos-acts { gap: 8px; margin-top: 8px; }
.kpp-planos-vazio { margin: 0; font-size: 12.5px; }
.kpp-sem-plano { margin-top: 8px; }
.kpp-l-cob { display: flex; flex-direction: column; gap: 4px; }
.kpp-l-cob .select, .kpp-l-cob .input { width: 100%; }
.kpp-l-cob .kpp-falta { border-color: var(--sz-warn, #f5a524); box-shadow: 0 0 0 2px rgba(245,165,36,.18); }
.kpp-l-t small[data-dur] { font-size: 11px; }
/* Contratos no lead */
.kpp-ct-itens { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.kpp-ct-itens li { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.kpp-ct-itens li .num { font-weight: 700; }
.kpp-ct-itens li small { min-width: 84px; text-align: right; }
@media (max-width: 720px) {
  .kpp-plano { grid-template-columns: 1fr 1fr; }
  .kpp-plano-a { grid-column: 1 / -1; }
}
/* Lead: "Mais dados do cliente" (opcional, recolhível) */
.app-central .kcm-mais-dados { margin: 6px 0 4px; border: 1px solid var(--sz-border); border-radius: 12px; padding: 0 14px; }
.app-central .kcm-mais-dados > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 0; font-weight: 700; font-size: 13.5px; list-style: none; }
.app-central .kcm-mais-dados > summary::-webkit-details-marker { display: none; }
.app-central .kcm-mais-dados[open] > summary { border-bottom: 1px solid var(--sz-border); margin-bottom: 10px; }
.app-central .kcm-mais-dados .form-grid { padding-bottom: 12px; }

/* Converter em cliente: tipo (lojista, anunciante ou os dois) */
.app-central .kcm-tipo-cli { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.app-central .kcm-tipo-cli label { cursor: pointer; }
.app-central .kcm-tipo-cli input { position: absolute; opacity: 0; pointer-events: none; }
.app-central .kcm-tipo-cli span { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 12px 14px; border: 1px solid var(--sz-border); border-radius: 12px; transition: border-color .15s, background .15s; }
.app-central .kcm-tipo-cli small { color: var(--sz-text-3); font-size: 12px; }
.app-central .kcm-tipo-cli input:checked + span { border-color: var(--kp-neon, #3de90f); background: rgba(61,233,15,.07); box-shadow: 0 0 0 3px rgba(61,233,15,.12); }
.app-central .kcm-tipo-cli input:focus-visible + span { outline: 2px solid var(--kp-neon, #3de90f); outline-offset: 2px; }
@media (max-width: 640px) { .app-central .kcm-tipo-cli { grid-template-columns: 1fr; } }

/* Modelo de contrato: marcadores clicáveis */
.app-central .kpp-marc { border: 1px dashed var(--sz-border); border-radius: 12px; padding: 10px 12px; }
.app-central .kpp-marc > b { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.app-central .kpp-marc-l { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; margin-top: 8px; }
.app-central .kpp-marc-b { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 9px; border: 1px solid var(--sz-border); border-radius: 8px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.app-central .kpp-marc-b:hover { border-color: var(--kp-neon, #3de90f); }
.app-central .kpp-marc-b code { font-size: 12px; color: var(--kp-neon, #3de90f); }
.app-central .kpp-marc-b span { font-size: 11.5px; color: var(--sz-text-3); }
/* Checklist do 1º contato: ⓘ nos leads novos (etapas de entrada), no topo da coluna e no lead */
.app-central .kcm-chk { display: inline-flex; align-items: center; gap: 5px; height: 22px; min-width: 22px; padding: 0 5px; border: 1px solid rgba(61,233,15,.45); border-radius: 999px; background: rgba(61,233,15,.1); color: var(--kp-neon, #3de90f); cursor: help; font: inherit; font-size: 11.5px; font-weight: 700; }
.app-central .kcm-chk:hover, .app-central .kcm-chk:focus-visible { background: rgba(61,233,15,.22); outline: none; }
.app-central .kcm-chk.com-rotulo { padding: 0 9px; margin-left: 6px; }
.app-central .kcm-col-info .kcm-chk.com-rotulo { margin: 6px 0 0; }
.app-central .kcm-card-h .kcm-chk { margin-right: 6px; }
.app-central .kcm-chk-lista { margin: 10px 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.app-central .kcm-chk-lista li { line-height: 1.45; }
.app-central .kcm-chk-lista li:first-child { font-weight: 700; }