/* Pipeline — filtros iguais, painel flutuante de leads sem etapa, seleção múltipla e confirmação de exclusão (tema escuro premium). */
#prospeccao #wsp17Root .wsp17-toolbar.wspb-toolbar{display:grid!important;grid-template-columns:minmax(240px,1.15fr) minmax(0,1.3fr) auto!important;gap:10px!important;align-items:center!important}
#prospeccao #wsp17Root .wsp17-toolbar.wspb-toolbar>span{white-space:nowrap;justify-self:end}
#prospeccao #wsp17Root .wsp17-toolbar.wspb-toolbar>label,#wsp17Root .wspb-filters{margin:0!important;align-self:center!important}
#wsp17Root .wspb-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
#wsp17Root .wspb-filter{box-sizing:border-box;display:flex!important;align-items:center;gap:10px;width:100%!important;min-width:0!important;height:40px!important;min-height:40px!important;padding:0 12px!important;border:1px solid #273643!important;border-radius:10px!important;background:#080e14!important;color:#d7e1ea!important;font:600 12px/1 inherit!important;letter-spacing:normal!important;text-transform:none!important;cursor:pointer;box-shadow:none!important;transition:border-color .15s,background .15s}
#wsp17Root .wspb-filter:hover,#wsp17Root .wspb-filter[aria-expanded="true"]{border-color:#3b82f6!important;background:#0b1520!important}
#wsp17Root .wspb-filter:focus-visible{outline:2px solid #38bdf8;outline-offset:2px}
#wsp17Root .wspb-filter>svg{flex:none;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:#9fb2c4}
#wsp17Root .wspb-filter-label{flex:1;min-width:0;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#wsp17Root .wspb-count{flex:none;min-width:24px;height:22px;padding:0 7px;display:inline-grid;place-items:center;border-radius:999px;background:#17263a;color:#cfe0f5;font-size:11px;font-weight:800}
#wsp17Root .wspb-filter.has-items .wspb-count{background:rgba(245,158,11,.18);color:#fbbf24}
#wsp17Root .wspb-filter .wspb-chev svg,.wspb-select .wspb-chev svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
#wsp17Root .wspb-chev{flex:none;display:inline-grid;place-items:center;color:#8da1b5}
#wsp17Root .wspb-filter[aria-expanded="true"] .wspb-chev svg,#wsp17Root .wspb-select[aria-expanded="true"] .wspb-chev svg{transform:rotate(180deg)}
/* barra de seleção */
#wsp17Root .wspb-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:10px 0;padding:10px 12px;border:1px solid #1f2d3b;border-radius:12px;background:linear-gradient(180deg,#0b121a,#090f15)}
#wsp17Root .wspb-bar-left,#wsp17Root .wspb-bar-right{display:flex;flex-wrap:wrap;align-items:center;gap:10px;min-width:0}
#wsp17Root .wspb-select{box-sizing:border-box;display:inline-flex!important;align-items:center;gap:9px;height:40px!important;min-height:40px!important;padding:0 14px!important;border:1px solid #2b5ea8!important;border-radius:10px!important;background:#0b1626!important;color:#e6eef6!important;font:700 12px/1 inherit!important;cursor:pointer;box-shadow:none!important}
#wsp17Root .wspb-select.on{border-color:#3b82f6!important;background:#0f2038!important}
#wsp17Root .wspb-select>svg{width:18px;height:18px;fill:none;stroke:#60a5fa;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#wsp17Root .wspb-select:focus-visible{outline:2px solid #38bdf8;outline-offset:2px}
#wsp17Root .wspb-counter{color:#9fb2c4;font-size:12px;font-weight:600}
/* botões de ação (também usados nas camadas flutuantes) */
.wspb-btn{box-sizing:border-box;display:inline-flex!important;align-items:center;justify-content:center;gap:8px;height:40px!important;min-height:40px!important;padding:0 16px!important;border-radius:10px!important;border:1px solid transparent!important;font:700 12px/1 inherit!important;letter-spacing:normal!important;text-transform:none!important;cursor:pointer;box-shadow:none!important;white-space:nowrap}
.wspb-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.wspb-btn.blue{background:linear-gradient(135deg,#2563eb,#1d4ed8)!important;border-color:#3b82f6!important;color:#fff!important}
.wspb-btn.red{background:rgba(239,68,68,.12)!important;border-color:#b42334!important;color:#fb7185!important}
.wspb-btn.red:not(:disabled):hover{background:rgba(239,68,68,.2)!important}
.wspb-btn.ghost{background:#0e1823!important;border-color:#2a3b4d!important;color:#c6d4e1!important}
.wspb-btn:disabled{opacity:.45;cursor:not-allowed}
.wspb-btn:focus-visible{outline:2px solid #38bdf8;outline-offset:2px}
.wspb-btn.wide{width:100%}
.wspb-btn.sm{height:34px!important;min-height:34px!important;padding:0 12px!important;font-size:11px!important}
/* checkbox no card */
#wsp17Root .wsp17-card{position:relative}
#wsp17Root .wspb-check{position:absolute;top:8px;left:8px;z-index:4;display:grid;place-items:center;width:26px;height:26px;margin:0;border-radius:8px;background:rgba(5,10,16,.72);cursor:pointer}
#wsp17Root .wspb-check input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
#wsp17Root .wspb-check i{width:16px;height:16px;border:2px solid #cbd5e1;border-radius:5px;background:transparent;box-sizing:border-box}
#wsp17Root .wspb-check input:checked+i{border-color:#3b82f6;background:#3b82f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat}
#wsp17Root .wspb-check:focus-within{outline:2px solid #38bdf8;outline-offset:2px}
#wsp17Root .wsp17-card.wspb-selected{outline:2px solid #3b82f6;outline-offset:-2px}
/* camadas flutuantes */
.wspb-pop{position:fixed;z-index:10040;box-sizing:border-box;width:min(380px,calc(100vw - 24px));overflow:auto;padding:16px;border:1px solid #263649;border-radius:16px;background:#0b1118;color:#e2eaf2;box-shadow:0 24px 60px rgba(0,0,0,.55);font-size:13px}
.wspb-pop.unassigned{width:min(470px,calc(100vw - 24px))}
.wspb-pop.menu{width:min(270px,calc(100vw - 24px));padding:8px}
.wspb-pop header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.wspb-pop h4{display:flex;align-items:center;gap:10px;margin:0;font-size:14px;font-weight:800}
.wspb-pop h4 svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.wspb-pop .wspb-x{display:grid;place-items:center;width:32px;height:32px;min-height:0;padding:0;border:0;border-radius:9px;background:transparent;color:#9fb2c4;cursor:pointer}
.wspb-pop .wspb-x svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.wspb-pop .wspb-x:hover{background:#142131}.wspb-pop .wspb-x:focus-visible{outline:2px solid #38bdf8}
.wspb-pop .wspb-sub{margin:-4px 0 12px;color:#93a6b9;font-size:12px;line-height:1.45}
.wspb-pop .wspb-radios{display:grid;gap:4px;margin-bottom:14px}
.wspb-pop .wspb-radio{display:grid;grid-template-columns:auto auto 1fr auto;align-items:center;gap:10px;padding:8px 6px;border-radius:10px;cursor:pointer}
.wspb-pop .wspb-radio:hover{background:#111c28}
.wspb-pop .wspb-radio input{width:18px;height:18px;margin:0;accent-color:#3b82f6}
.wspb-pop .wspb-dot{width:10px;height:10px;border-radius:50%}
.wspb-dot.all{background:#8b5cf6}.wspb-dot.hot{background:#ef4444}.wspb-dot.warm{background:#f59e0b}.wspb-dot.cold{background:#3b82f6}
.wspb-pop .wspb-radio b{min-width:36px;padding:3px 9px;border-radius:999px;background:#142131;color:#cfe0f5;font-size:11px;text-align:center}
.wspb-pop .wspb-ulist{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.wspb-pop .wspb-ulist li{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px 12px;align-items:center;padding:10px;border:1px solid #1d2b3a;border-radius:12px;background:#0d151e}
.wspb-pop .wspb-av{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#1e2f4a;color:#c7d8ff;font-weight:800;font-size:12px}
.wspb-pop .wspb-info{display:grid;gap:3px;min-width:0}.wspb-pop .wspb-info b{font-size:13px;overflow-wrap:anywhere}.wspb-pop .wspb-info small{color:#93a6b9;font-size:11px;overflow-wrap:anywhere}
.wspb-pop .wspb-row-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.wspb-pop .wspb-empty{color:#93a6b9}
.wspb-pop [role="menu"]{display:grid;gap:2px}
.wspb-pop [role="menuitem"]{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;width:100%;min-height:40px;padding:0 10px;border:0;border-radius:10px;background:transparent;color:#e2eaf2;font:600 13px/1.2 inherit;text-align:left;cursor:pointer}
.wspb-pop [role="menuitem"]:hover,.wspb-pop [role="menuitem"]:focus-visible{background:#132034;outline:0}
.wspb-pop [role="menuitem"] svg{width:18px;height:18px;fill:none;stroke:#60a5fa;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.wspb-pop [role="menuitem"] b{color:#93a6b9;font-size:12px}
/* confirmação de exclusão em lote */
.wspb-confirm{position:fixed;inset:0;z-index:10060;display:grid;place-items:center;padding:16px}
.wspb-confirm-backdrop{position:absolute;inset:0;background:rgba(2,6,12,.72)}
.wspb-confirm-box{position:relative;box-sizing:border-box;width:min(480px,100%);max-height:calc(100vh - 32px);overflow:auto;padding:18px;border:1px solid #4c1d24;border-radius:16px;background:#0b1118;color:#e2eaf2;box-shadow:0 24px 60px rgba(0,0,0,.6)}
.wspb-confirm-box header{display:flex;gap:12px;align-items:flex-start}
.wspb-confirm-box header i{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:12px;background:rgba(239,68,68,.14);color:#fb7185}
.wspb-confirm-box header i svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.wspb-confirm-box h3{margin:0 0 6px;font-size:16px}.wspb-confirm-box p{margin:0;color:#a4b5c6;font-size:12.5px;line-height:1.5}
.wspb-confirm-list{margin:14px 0;padding:10px 12px 10px 28px;border:1px solid #1d2b3a;border-radius:12px;background:#0d151e;font-size:12.5px;line-height:1.6;max-height:180px;overflow:auto}
.wspb-confirm-list .more{list-style:none;margin-left:-16px;color:#93a6b9}
.wspb-confirm-check{display:flex;gap:10px;align-items:flex-start;margin:0 0 16px;font-size:12.5px;cursor:pointer}
.wspb-confirm-check input{width:18px;height:18px;margin:1px 0 0;accent-color:#ef4444;flex:none}
.wspb-confirm-box footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}
/* tema claro */
body.ws-theme-light #wsp17Root .wspb-filter,body.light #wsp17Root .wspb-filter{background:#fff!important;border-color:#cbd5e1!important;color:#1f2937!important}
body.ws-theme-light #wsp17Root .wspb-bar,body.light #wsp17Root .wspb-bar{background:#fff;border-color:#d8e0ea}
/* tema claro: camadas anexadas ao body (popovers e confirmação) */
body:is(.light,.ws-theme-light) .wspb-pop,body:is(.light,.ws-theme-light) .wspb-confirm-box{background:#fff;color:#1f2937;border-color:#d3dce8;box-shadow:0 18px 44px rgba(15,23,42,.18)}
body:is(.light,.ws-theme-light) .wspb-confirm-box{border-color:#f0c4ca}
body:is(.light,.ws-theme-light) .wspb-confirm-backdrop{background:rgba(15,23,42,.38)}
body:is(.light,.ws-theme-light) .wspb-pop h4,body:is(.light,.ws-theme-light) .wspb-confirm-box h3,body:is(.light,.ws-theme-light) .wspb-pop .wspb-info b{color:#111827}
body:is(.light,.ws-theme-light) .wspb-pop .wspb-radio,body:is(.light,.ws-theme-light) .wspb-pop .wspb-radio>span,body:is(.light,.ws-theme-light) .wspb-pop .wspb-ulist li,body:is(.light,.ws-theme-light) .wspb-confirm-list,body:is(.light,.ws-theme-light) .wspb-confirm-check,body:is(.light,.ws-theme-light) .wspb-confirm-check span{color:#1f2937}
body:is(.light,.ws-theme-light) .wspb-pop .wspb-sub,body:is(.light,.ws-theme-light) .wspb-pop .wspb-info small,body:is(.light,.ws-theme-light) .wspb-pop .wspb-empty,body:is(.light,.ws-theme-light) .wspb-confirm-box p,body:is(.light,.ws-theme-light) .wspb-confirm-list .more,body:is(.light,.ws-theme-light) .wspb-pop [role="menuitem"] b,body:is(.light,.ws-theme-light) .wspb-pop .wspb-x{color:#566579}
body:is(.light,.ws-theme-light) .wspb-pop .wspb-x:hover{background:#eef2f7;color:#111827}
body:is(.light,.ws-theme-light) .wspb-pop .wspb-radio:hover{background:#f1f5f9}
body:is(.light,.ws-theme-light) .wspb-pop .wspb-radio b{background:#e8eef6;color:#1e3a5f}
body:is(.light,.ws-theme-light) .wspb-pop .wspb-ulist li,body:is(.light,.ws-theme-light) .wspb-confirm-list{background:#f8fafc;border-color:#dbe3ee}
body:is(.light,.ws-theme-light) .wspb-pop .wspb-av{background:#dbe7ff;color:#1e40af}
body:is(.light,.ws-theme-light) .wspb-pop [role="menuitem"]{color:#1f2937}
body:is(.light,.ws-theme-light) .wspb-pop [role="menuitem"]:hover,body:is(.light,.ws-theme-light) .wspb-pop [role="menuitem"]:focus-visible{background:#eaf1fb}
body:is(.light,.ws-theme-light) .wspb-pop [role="menuitem"] svg{stroke:#2563eb}
body:is(.light,.ws-theme-light) .wspb-confirm-box header i{background:#fee2e2;color:#dc2626}
body:is(.light,.ws-theme-light) .wspb-btn.ghost{background:#fff!important;border-color:#c3cfdd!important;color:#1f2937!important}
body:is(.light,.ws-theme-light) .wspb-btn.ghost:not(:disabled):hover{background:#eef2f7!important}
body:is(.light,.ws-theme-light) .wspb-btn.red{background:#fef2f2!important;border-color:#e5a0a8!important;color:#b91c1c!important}
body:is(.light,.ws-theme-light) .wspb-btn.red:not(:disabled):hover{background:#fee2e2!important}
body:is(.light,.ws-theme-light) .wspb-btn.blue{color:#fff!important}
body:is(.light,.ws-theme-light) .wspb-btn.blue:not(:disabled):hover{filter:brightness(1.08)}
body:is(.light,.ws-theme-light) .wspb-btn:disabled{opacity:.5}
body:is(.light,.ws-theme-light) #wsp17Root .wspb-select{background:#fff!important;border-color:#9db8dd!important;color:#1f2937!important}
body:is(.light,.ws-theme-light) #wsp17Root .wspb-select.on{background:#eaf1fb!important;border-color:#2563eb!important}
body:is(.light,.ws-theme-light) #wsp17Root .wspb-select>svg{stroke:#2563eb}
body:is(.light,.ws-theme-light) #wsp17Root .wspb-counter{color:#566579}
body:is(.light,.ws-theme-light) #wsp17Root .wspb-count{background:#e8eef6;color:#1e3a5f}
body:is(.light,.ws-theme-light) #wsp17Root .wspb-filter.has-items .wspb-count{background:#fef3c7;color:#92400e}
body:is(.light,.ws-theme-light) #wsp17Root .wspb-check{background:rgba(255,255,255,.92);box-shadow:0 0 0 1px #c3cfdd}
body:is(.light,.ws-theme-light) #wsp17Root .wspb-check i{border-color:#64748b}
/* responsivo */
@media(max-width:1000px){#prospeccao #wsp17Root .wsp17-toolbar.wspb-toolbar{grid-template-columns:minmax(0,1fr)!important}#prospeccao #wsp17Root .wsp17-toolbar.wspb-toolbar>span{justify-self:end;white-space:normal}}
@media(max-width:560px){#wsp17Root .wspb-filters{grid-template-columns:minmax(0,1fr)}#wsp17Root .wspb-bar-left,#wsp17Root .wspb-bar-right{width:100%}#wsp17Root .wspb-bar-right .wspb-btn{flex:1 1 0;min-width:0}.wspb-pop .wspb-row-actions{grid-template-columns:1fr}.wspb-confirm-box footer .wspb-btn{flex:1 1 100%}}
