/* =========================================================
   RADAR LOCAL — WORKSPACE COMERCIAL V4
========================================================= */
.radar-prospecting-v4 #mapsWorkspace{display:none!important}
.v4-workspace.hidden,.v4-modal.hidden{display:none!important}
.v4-search-controls{display:grid;grid-template-columns:150px minmax(220px,1fr) minmax(190px,.8fr) minmax(260px,1.2fr);gap:12px;align-items:end;margin-top:14px;padding:16px;border:1px solid #dce6f2;border-radius:18px;background:linear-gradient(180deg,#f9fbff,#f5f8fd)}
.v4-radius-field{display:flex;flex-direction:column;gap:7px}.v4-radius-field label{font-size:.7rem;font-weight:800;color:#4b5d73}.v4-radius-field select{height:46px;padding:0 12px;border:1px solid #d7e1ed;border-radius:12px;background:#fff;color:#243548;font-weight:700;outline:none}
.v4-primary-search,.v4-secondary-search{height:46px;border-radius:12px;font:800 .78rem Inter,sans-serif;cursor:pointer;transition:.16s ease}.v4-primary-search{border:0;background:#2878f0;color:#fff}.v4-primary-search:hover:not(:disabled){transform:translateY(-1px);background:#1668df}.v4-secondary-search{border:1px solid #d6e0ed;background:#fff;color:#43566e}.v4-secondary-search:hover:not(:disabled){background:#f2f6fb}.v4-primary-search:disabled,.v4-secondary-search:disabled{opacity:.5;cursor:not-allowed}.v4-primary-search.is-busy{opacity:.65;cursor:wait}
.v4-batch-status{min-height:46px;padding:8px 12px;border:1px solid #dce6f2;border-radius:12px;background:#fff}.v4-batch-status b,.v4-batch-status span{display:block}.v4-batch-status b{font-size:.67rem;color:#31465d}.v4-batch-status span{margin-top:3px;color:#7d8a99;font-size:.61rem;line-height:1.35}
.v4-workspace{margin-top:20px}.v4-header{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:24px}.v4-header h2{margin:7px 0 5px;font-size:1.55rem;letter-spacing:-.025em}.v4-header p{margin:0;color:#69798d;font-size:.8rem}.v4-history-badge{min-width:180px;padding:13px 15px;border:1px solid #dce6f2;border-radius:15px;background:#f9fbfe;text-align:right}.v4-history-badge span,.v4-history-badge small{display:block;color:#8793a3;font-size:.61rem}.v4-history-badge strong{display:block;margin:4px 0;font-size:1.45rem;color:#243548}
.v4-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:12px 0}.v4-kpis article{padding:16px;border:1px solid #dfe7f0;border-radius:16px;background:#fff;box-shadow:0 8px 26px rgba(38,55,79,.04)}.v4-kpis span,.v4-kpis small{display:block;color:#7f8c9c;font-size:.61rem}.v4-kpis strong{display:block;margin:5px 0 3px;font-size:1.35rem;color:#233448;letter-spacing:-.04em}
.v4-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 16px;margin-bottom:12px}.v4-filter-search{flex:1 1 260px}.v4-filter-search input{width:100%;height:42px;padding:0 13px;border:1px solid #d8e1ed;border-radius:11px;outline:none}.v4-filter-search input:focus{border-color:#2878f0;box-shadow:0 0 0 3px rgba(40,120,240,.08)}
.v4-status-tabs{display:flex;gap:6px;flex-wrap:wrap}.v4-status-tabs button{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 9px;border:1px solid #dce4ee;border-radius:999px;background:#fff;color:#55667b;font-size:.62rem;font-weight:750;cursor:pointer}.v4-status-tabs button.active{border-color:#bcd2f5;background:#edf4ff;color:#165fc5}.v4-status-tabs button i{width:7px;height:7px;border-radius:2px;background:var(--status)}.v4-status-tabs button b{font-size:.59rem;color:inherit}.v4-check{display:inline-flex;align-items:center;gap:6px;color:#5f7083;font-size:.65rem;font-weight:700;white-space:nowrap}.v4-check input{accent-color:#2878f0}
.v4-main-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(380px,.85fr);gap:12px;align-items:stretch}.v4-map-panel,.v4-list-panel{overflow:hidden}.v4-map-head,.v4-list-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 17px;border-bottom:1px solid #e7edf4}.v4-map-head strong,.v4-list-head strong{display:block;font-size:.83rem;color:#2b3d52}.v4-map-head span,.v4-list-head span{display:block;margin-top:3px;color:#8491a0;font-size:.63rem}.v4-map-legend{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.v4-map-legend span{display:inline-flex;align-items:center;gap:5px;margin:0;color:#758397;font-size:.58rem}.v4-map-legend i{width:8px;height:8px;border-radius:2px}.v4-map-legend .s-new{background:#16a34a}.v4-map-legend .s-attempted{background:#eab308}.v4-map-legend .s-contacted{background:#2563eb}.v4-map-legend .s-opportunity{background:#7c3aed}.v4-map-legend .s-blocked{background:#dc2626}
#v4OpportunityMap{height:620px;background:#e8eef4}.v4-marker-shell{background:transparent!important;border:0!important}.v4-marker{position:relative;width:38px;height:38px;border:3px solid #fff;border-radius:13px 13px 13px 4px;background:var(--marker);color:#fff;box-shadow:0 7px 18px rgba(31,47,67,.28);transform:rotate(-45deg);display:grid;place-items:center}.v4-marker b{font-size:.72rem;transform:rotate(45deg)}.v4-marker span{position:absolute;right:-11px;top:-9px;min-width:23px;height:19px;padding:0 5px;border:2px solid #fff;border-radius:999px;background:#1f2f43;color:#fff;font:800 .53rem Inter;display:flex;align-items:center;justify-content:center;transform:rotate(45deg)}
.v4-popup{min-width:210px}.v4-popup b,.v4-popup span,.v4-popup strong,.v4-popup small,.v4-popup em{display:block}.v4-popup b{font-size:.8rem;color:#25374b}.v4-popup span{margin-top:3px;color:#748296;font-size:.65rem}.v4-popup strong{margin-top:7px;color:#2f4a69;font-size:.67rem}.v4-popup small{margin-top:5px;color:#7d8997;font-size:.62rem;line-height:1.4}.v4-popup em{margin-top:8px;padding:5px 7px;border-radius:8px;background:#f1f5fa;color:#52667d;font-style:normal;font-size:.59rem;font-weight:700}
.v4-list-panel{display:flex;flex-direction:column;min-height:620px;max-height:700px}.v4-sort-label{padding:5px 8px;border-radius:999px;background:#edf4ff;color:#1662cb!important;font-size:.56rem!important;font-weight:800}.v4-lead-list{flex:1;overflow:auto;padding:10px;background:#f7f9fc}.v4-lead-card{position:relative;margin-bottom:10px;padding:15px;border:1px solid #dde6ef;border-left:5px solid #16a34a;border-radius:16px;background:#fff;box-shadow:0 6px 20px rgba(38,55,79,.045);transition:.15s ease}.v4-lead-card:hover{transform:translateY(-1px);box-shadow:0 10px 28px rgba(38,55,79,.08)}.v4-lead-card.status-attempted{border-left-color:#eab308}.v4-lead-card.status-contacted{border-left-color:#2563eb}.v4-lead-card.status-opportunity{border-left-color:#7c3aed}.v4-lead-card.status-blocked{border-left-color:#dc2626;background:#fffafa}.v4-card-number{position:absolute;top:14px;left:-14px;width:27px;height:27px;border:3px solid #fff;border-radius:9px;background:#233448;color:#fff;display:grid;place-items:center;font-size:.62rem;font-weight:850;box-shadow:0 5px 14px rgba(35,52,72,.22)}
.v4-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-left:6px}.v4-card-kicker{display:block;margin-bottom:4px;color:#718197;font-size:.55rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase}.v4-card-head h3{margin:0;color:#203247;font-size:.92rem;line-height:1.25}.v4-card-head p{margin:5px 0 0;color:#7d8998;font-size:.63rem;line-height:1.42}.v4-google-score{text-align:right;white-space:nowrap}.v4-google-score strong{display:block;color:#1f4f8e;font-size:.83rem}.v4-google-score span{display:block;margin-top:3px;color:#7e8c9c;font-size:.57rem}
.v4-status-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}.v4-status-control{display:inline-flex;align-items:center;gap:6px;padding:4px 7px;border:1px solid #dae4ee;border-radius:10px;background:#f8fafc}.v4-status-control i{width:9px;height:9px;border-radius:2px;background:var(--status)}.v4-status-control select{border:0;background:transparent;color:#485b71;font-size:.61rem;font-weight:750;outline:none;cursor:pointer}.v4-distance,.v4-opportunity-score{padding:5px 7px;border-radius:8px;background:#f3f6fa;color:#66768a;font-size:.57rem;font-weight:700}.v4-opportunity-score{background:#eef5ff;color:#1662cb}
.v4-signal-row{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.v4-signal-row span{padding:5px 7px;border-radius:999px;background:#f3f6fa;color:#68778a;font-size:.55rem;font-weight:700}.v4-signal-row span.strong{background:#fff1e8;color:#a4530b}.v4-signal-row span.positive{background:#ebf7ef;color:#24713d}
.v4-data-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:11px}.v4-data-grid>div{padding:8px 9px;border-radius:10px;background:#f8fafc;min-width:0}.v4-data-grid>div.attention{background:#fff8ef}.v4-data-grid span,.v4-data-grid strong{display:block}.v4-data-grid span{color:#8c98a7;font-size:.52rem;text-transform:uppercase;letter-spacing:.05em}.v4-data-grid strong{margin-top:4px;color:#3c5168;font-size:.63rem;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v4-card-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.v4-card-actions button,.v4-card-actions a{min-height:34px;padding:0 10px;border:1px solid #d8e2ee;border-radius:9px;background:#fff;color:#42566c;text-decoration:none;font:750 .6rem Inter;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.v4-card-actions button.primary{border-color:#1fa463;background:#1fa463;color:#fff}.v4-card-actions button:hover:not(:disabled),.v4-card-actions a:hover{background:#f2f6fb}.v4-card-actions button.primary:hover:not(:disabled){background:#168653}.v4-card-actions button:disabled{opacity:.42;cursor:not-allowed}.v4-blocked-note{margin-top:10px;padding:8px 9px;border-radius:9px;background:#fff0f0;color:#a52c2c;font-size:.57rem;font-weight:700;line-height:1.4}.v4-empty{padding:36px 24px;text-align:center;color:#718095}.v4-empty strong,.v4-empty span{display:block}.v4-empty strong{font-size:.8rem}.v4-empty span{margin-top:5px;font-size:.64rem}
.v4-revenue-details{margin-top:18px}.v4-revenue-details>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;border:1px solid #dce5ef;border-radius:16px;background:#fff;cursor:pointer;box-shadow:0 8px 24px rgba(38,55,79,.04)}.v4-revenue-details>summary::-webkit-details-marker{display:none}.v4-revenue-details>summary span,.v4-revenue-details>summary b,.v4-revenue-details>summary em{font-size:.7rem}.v4-revenue-details>summary span{color:#7b899a}.v4-revenue-details>summary b{color:#30475f}.v4-revenue-details>summary em{color:#1d68cf;font-style:normal;font-weight:800}.v4-revenue-details[open]>summary{margin-bottom:12px}.v4-revenue-details .revenue-search-panel{margin-top:0}
.v4-modal{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:20px}.v4-modal-backdrop{position:absolute;inset:0;background:rgba(20,31,44,.58);backdrop-filter:blur(4px)}.v4-modal-card{position:relative;z-index:1;width:min(760px,100%);max-height:88vh;overflow:auto;padding:26px;border-radius:24px;background:#fff;box-shadow:0 30px 90px rgba(12,24,39,.3)}.v4-modal-close{position:absolute;right:16px;top:14px;width:34px;height:34px;border:1px solid #dce5ef;border-radius:10px;background:#fff;color:#6c7b8e;font-size:1.2rem;cursor:pointer}.v4-modal-card h3{margin:7px 0 4px;font-size:1.3rem}.v4-modal-card>p{margin:0;color:#798797;font-size:.7rem}.v4-modal-card pre{margin:18px 0;padding:18px;border:1px solid #e0e7f0;border-radius:15px;background:#f8fafc;color:#31465e;font:500 .78rem/1.7 Inter,sans-serif;white-space:pre-wrap}.v4-modal-actions{display:flex;gap:8px;flex-wrap:wrap}.v4-modal-actions button,.v4-modal-actions a{min-height:40px;padding:0 12px;border:1px solid #d8e1ec;border-radius:10px;background:#fff;color:#43566d;text-decoration:none;font:750 .68rem Inter;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.v4-modal-actions .success{border-color:#bce1c6;background:#effaf2;color:#1d7038}.v4-modal-actions .danger{border-color:#efd0d0;background:#fff5f5;color:#b02a2a}.v4-modal-actions a{background:#eef5ff;color:#165fc5;border-color:#cfe0fa}.v4-modal-actions a.disabled{pointer-events:none;opacity:.4}
@media(max-width:1120px){.v4-search-controls{grid-template-columns:140px 1fr 1fr}.v4-batch-status{grid-column:1/-1}.v4-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.v4-main-grid{grid-template-columns:1fr}.v4-list-panel{max-height:none;min-height:0}.v4-lead-list{max-height:680px}}
@media(max-width:760px){.v4-search-controls{grid-template-columns:1fr}.v4-header{align-items:flex-start;flex-direction:column}.v4-history-badge{width:100%;text-align:left}.v4-kpis{grid-template-columns:1fr 1fr}.v4-toolbar{align-items:stretch;flex-direction:column}.v4-status-tabs{overflow:auto;flex-wrap:nowrap;padding-bottom:4px}.v4-status-tabs button{flex:none}.v4-map-head{align-items:flex-start;flex-direction:column}.v4-map-legend{justify-content:flex-start}#v4OpportunityMap{height:440px}.v4-card-head{flex-direction:column}.v4-google-score{text-align:left}.v4-data-grid{grid-template-columns:1fr}.v4-modal-card{padding:22px 18px}.v4-modal-actions{display:grid;grid-template-columns:1fr 1fr}}
@media(max-width:480px){.v4-kpis{grid-template-columns:1fr 1fr}.v4-kpis article{padding:13px}.v4-kpis strong{font-size:1.18rem}.v4-card-actions{display:grid;grid-template-columns:1fr 1fr}.v4-card-actions button,.v4-card-actions a{width:100%}.v4-modal-actions{grid-template-columns:1fr}}
