/* service-map.css — Service Analytics map displays (release 2026-10-16): Bubbles · Heat map · Areas,
   NPT per field. Builds on the .sm-* styles in bf-analytics.css. */
.sm-views { flex-direction: column; align-items: flex-start; gap: 4px; padding: 4px; max-width: calc(100% - 190px); }
.sm-disp, .sm-vseg { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.sm-disp { padding-bottom: 4px; border-bottom: 1px solid #EEF2EF; width: 100%; }
.sm-disp button { display: inline-flex; align-items: center; gap: 6px; }
.sm-disp button .bi { font-size: 12px; }
.sm-disp button.on { background: var(--bf-ink, #15201A); }
.sm-vlab { font-size: 11px; font-weight: 600; color: var(--bf-muted, #56655D); padding: 0 6px 0 4px; text-transform: uppercase; letter-spacing: .04em; }

/* bubbles */
.sm-blab { pointer-events: none; }
.sm-blab span { display: block; text-align: center; font: 700 10.5px/14px system-ui, -apple-system, 'Segoe UI', sans-serif; color: #fff; text-shadow: 0 0 3px rgba(0,0,0,.65), 0 0 1px rgba(0,0,0,.9); letter-spacing: .02em; }
.sm-bsize { position: relative; margin: 8px 0 2px; width: 150px; }
.sm-bsize span { position: absolute; left: 4px; bottom: 0; border: 1.5px solid #56655D; border-radius: 50%; background: rgba(57,135,229,.12); }
.sm-bsize em { position: absolute; left: 76px; font-style: normal; font-size: 11px; color: var(--bf-muted, #56655D); line-height: 12px; }
.sm-bsize em::before { content: ""; position: absolute; right: calc(100% + 4px); top: 6px; width: 10px; border-top: 1px dotted #9AA59F; }
.sm-lg-sep { height: 1px; background: #EEF2EF; margin: 8px 0; }
.sm-legend { max-height: calc(100% - 120px); overflow-y: auto; }

/* heat map */
.sm-heatbar { height: 10px; border-radius: 5px; margin-top: 4px; border: 1px solid rgba(21,32,26,.1); }
.sm-heatlab { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--bf-muted, #56655D); margin-top: 3px; }
.sm-mapbox[data-disp="heat"] .leaflet-heatmap-layer { opacity: .9; }

/* side panel: rank switch, totals, NPT bars */
.sm-seg-s { display: flex; width: 100%; margin: 0 0 8px; }
.sm-seg-s button { flex: 1; height: 28px; padding: 0 6px; font-size: 12px; }
.sm-side-tot { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; padding: 8px 10px; margin-bottom: 8px; background: #F7F9F8; border-radius: 8px; font-size: 11.5px; color: var(--bf-muted, #56655D); }
.sm-side-tot b { color: var(--bf-ink, #15201A); font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 3px; }
.sm-side-tot .sm-t-npt b { color: #b3261e; }
.sm-top-b-npt span { background: #e0703a !important; }
.sm-mini-npt b { color: #b3261e; }
.sm-kpi-npt > b { color: #b3261e; }
.sm-nbars { display: flex; flex-direction: column; gap: 5px; }
.sm-nbar { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 58px; gap: 8px; align-items: center; font-size: 12px; }
.sm-nbar.me .sm-nbar-n { font-weight: 600; }
.sm-nbar-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.sm-nbar-n .sm-dot { margin-right: 0; }
.sm-nbar-t { height: 6px; background: #EEF2EF; border-radius: 3px; overflow: hidden; }
.sm-nbar-t span { display: block; height: 100%; background: #e0703a; border-radius: 3px; }
.sm-nbar-c span { background: #c43d3c; }
.sm-nbar b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .sm-views { max-width: calc(100% - 20px); left: 10px; top: 54px; } }
.sm-side h4 small { text-transform: none; }
/* Service line tiles + company chips (2026-10-20, same look as Fishing and Vendor Benchmarking) */
.sm-pick { margin-top: 2px; }
.sm-lines { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-bottom: 4px; }
.sm-cos { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.sm-cos .sm-co.on .np-chip-v { color: #0d366b; }
.sm-chip-more { grid-template-rows: auto; border-style: dashed; color: var(--bf-green-dark, #005C2E); justify-content: center; }
.sm-chip-more .np-chip-n { font-weight: 600; }
.sm-chip-more:hover { background: var(--bf-green-soft, #E6F2EC); }
/* Company filter banner on the map legend (2026-10-21) */
.sm-lg-co { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -2px 0 8px; padding: 6px 8px; border-radius: 6px; background: #EAF2FD; color: #0d366b; font-size: 12px; }
.sm-lg-co > span { min-width: 0; line-height: 1.3; }
.sm-legend .sm-lg-co b, .sm-legend .sm-lg-co i { display: inline; margin: 0; font-size: inherit; white-space: nowrap; }
.sm-legend .sm-lg-co i { font-size: 11px; }
.sm-lg-co .bi { font-size: 11px; }
.sm-lg-co button { border: 1px solid #9EC5F4; background: #fff; color: #0d366b; border-radius: 12px; height: 24px; padding: 0 9px; font-size: 11.5px; font-weight: 600; white-space: nowrap; flex: 0 0 auto; }
.sm-lg-co button:hover { background: #F4F8FE; }
