/* vendor-bench.css — Analytics › Vendor Benchmarking (release 2026-10-07).
   Builds on the Service market styles (.sm-*) in bf-analytics.css and the Filters popover (.bf-pop). */
.vb-wrap .sm-kpi > b small.vb-of { font-size: 13px; font-weight: 500; color: var(--bf-muted, #56655D); }
.vb-wrap .sm-d.vb-good, .vb-wrap .vb-good { color: #1f7a3f; }
.vb-wrap .sm-d.vb-bad, .vb-wrap .vb-bad { color: #b3261e; }
.vb-muted { color: var(--bf-muted, #56655D); font-weight: 400; }
.vb-desc { display: block; font-size: 11px; color: var(--bf-muted, #56655D); font-weight: 400; max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vb-tag { display: inline-block; font-size: 10.5px; font-weight: 600; line-height: 16px; padding: 0 6px; border-radius: 8px; background: #DCEAFB; color: #0d366b; vertical-align: 1px; white-space: nowrap; }
.vb-tag-o { background: #FFF1CC; color: #6b4700; }
.vb-cos-btn { height: 36px; min-width: 150px; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px; border: 1px solid var(--bf-line, #DCE3DF); border-radius: 8px; background: #fff; font-size: 13px; font-weight: 600; color: var(--bf-ink, #15201A); text-transform: none; letter-spacing: 0; }
.vb-cos-btn:hover, .vb-cos-btn[aria-expanded="true"] { border-color: #9FC7B1; }
.vb-cos-btn .bi { font-size: 11px; color: var(--bf-muted, #56655D); }
.vb-ai-btn { height: 36px; display: inline-flex; align-items: center; gap: 6px; }
.vb-eq { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.vb-chart-s { height: 260px; }
@media (max-width: 1200px) { .vb-eq { grid-template-columns: 1fr; } }
/* Companies popover */
.vb-pop { width: 330px; display: flex; flex-direction: column; overflow: hidden; }
.vb-pop .bf-pop-list { overflow-y: auto; min-height: 60px; }
.vb-add { margin-top: 8px; }
.vb-sug { margin: -4px 12px 8px; background: #fff; border: 1px solid var(--bf-line, #DCE3DF); border-radius: 8px; max-height: 180px; overflow-y: auto; }
.vb-sug[hidden] { display: none; }
.vb-sug button { display: block; width: 100%; text-align: left; border: 0; background: #fff; padding: 6px 10px; font-size: 12.5px; }
.vb-sug button:hover { background: #F3F5F4; }
.vb-sug button span { color: var(--bf-muted, #56655D); }
.vb-code { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 8px 12px; font-size: 11px; font-weight: 600; color: var(--bf-muted, #56655D); border-top: 1px solid var(--bf-line, #DCE3DF); }
.vb-code input { height: 30px; border: 1px solid var(--bf-line, #DCE3DF); border-radius: 6px; padding: 0 8px; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform: uppercase; }
.vb-pop-msg { font-size: 12px; color: #9B1C1C; padding: 0 12px 8px; }
.vb-pop-msg:empty { display: none; }
/* AI reports tab */
.vb-rep { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
@media (max-width: 1200px) { .vb-rep { grid-template-columns: 1fr; } }
.vb-form { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 12px; }
.vb-form .sm-ctl select { min-width: 240px; }
.vb-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 14px; padding: 10px 12px; background: #F7F9F8; border-radius: 8px; font-size: 12.5px; }
.vb-dl dt { font-weight: 600; color: var(--bf-muted, #56655D); }
.vb-dl dd { margin: 0; overflow-wrap: anywhere; }
.vb-gen { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vb-gen .bf-btn { height: 36px; display: inline-flex; align-items: center; gap: 6px; }
.vb-msg { font-size: 12.5px; }
.vb-act { width: 30px; height: 28px; margin-left: 4px; border: 1px solid var(--bf-line, #DCE3DF); border-radius: 6px; background: #fff; color: var(--bf-ink, #15201A); }
.vb-act:hover { border-color: #9FC7B1; background: var(--bf-green-soft, #E6F2EC); }
.vb-act.vb-del:hover { border-color: #F1B8B3; background: #FDECEC; color: #9B1C1C; }
.vb-saved td { vertical-align: middle; }
/* Market share doughnuts (2026-10-07b) */
.vb-donut { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 0.9fr); gap: 14px; align-items: center; }
.vb-donut-c { position: relative; height: 260px; min-width: 0; }
.vb-donut-lg { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; max-height: 260px; overflow-y: auto; }
.vb-lg-row { display: grid; grid-template-columns: 10px auto 1fr auto; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 6px; }
.vb-lg-row i { width: 10px; height: 10px; border-radius: 3px; }
.vb-lg-row span { color: var(--bf-muted, #56655D); text-align: right; font-variant-numeric: tabular-nums; }
.vb-lg-row em { font-style: normal; font-weight: 600; text-align: right; min-width: 48px; font-variant-numeric: tabular-nums; }
.vb-lg-row.me { background: #F4F8FE; box-shadow: inset 3px 0 0 #2a78d6; }
@media (max-width: 700px) { .vb-donut { grid-template-columns: 1fr; } }
/* Benchmarking views (2026-10-17): performance map, rank matrix, head-to-head, segments */
.vb-chart-m { height: 320px; }
.vb-rank td.vb-rk { text-align: center; line-height: 1.15; min-width: 74px; }
.vb-rank td.vb-rk b { display: block; font-size: 13px; }
.vb-rank td.vb-rk small { display: block; font-size: 10.5px; color: #3d4a43; white-space: nowrap; }
.vb-h2h td, .vb-h2h th { white-space: nowrap; }
.vb-matrix td, .vb-matrix th { white-space: nowrap; font-variant-numeric: tabular-nums; }
.vb-matrix td { padding-top: 6px; padding-bottom: 6px; }
.vb-segtop { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 1200px) { .vb-segtop { grid-template-columns: 1fr; } }
.vb-wrap tr.vb-sel td { background: #EEF5FD; }
.vb-more { display: inline-block; margin: 8px 4px 0; font-size: 12.5px; }
.vb-det { border-color: #9EC5F4; }
.vb-det .sm-card-hx .bf-btn { height: 32px; display: inline-flex; align-items: center; gap: 6px; }
.vb-pos-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .vb-pos-g { grid-template-columns: 1fr; } }
.vb-pos h4 { font-size: 12.5px; font-weight: 600; margin: 0 0 6px; display: flex; align-items: center; gap: 6px; }
.vb-pos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.vb-pos li button { width: 100%; display: flex; align-items: baseline; gap: 6px; border: 0; background: transparent; text-align: left; padding: 5px 8px; border-radius: 6px; font-size: 12.5px; }
.vb-pos li button:hover { background: #F3F5F4; }
.vb-pos-v { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vb-segtop { align-items: start; }
.vb-det-g { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
@media (max-width: 1200px) { .vb-det-g { grid-template-columns: 1fr; } }
/* Service line tiles + company chips (2026-10-17b, same look as the Fishing dashboard) */
.vb-pick { margin-top: 2px; }
.vb-lines { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-bottom: 4px; }
.vb-cos { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.vb-cos .vb-chip.on .np-chip-v { color: #0d366b; }
.vb-chip-off { background: #F7F9F8; border-style: dashed; color: var(--bf-muted, #56655D); }
.vb-chip-off .np-chip-n { font-weight: 500; text-decoration: line-through; text-decoration-color: rgba(86,101,93,.5); }
.vb-chip-off .np-chip-n .bi { text-decoration: none; margin-right: 4px; }
.vb-chip-me { box-shadow: inset 3px 0 0 #2a78d6; }
.vb-chip-edit { grid-template-rows: auto; border-style: dashed; color: var(--bf-green-dark, #005C2E); justify-content: center; }
.vb-chip-edit .np-chip-n { font-weight: 600; }
.vb-chip-edit:hover { background: var(--bf-green-soft, #E6F2EC); }
/* Cards side by side are the same height (2026-10-17d): the shorter card stretches, its chart grows to fill it. */
.vb-wrap .sm-grid2, .vb-wrap .vb-segtop { align-items: stretch; }
.vb-wrap .sm-grid2 > .sm-card { display: flex; flex-direction: column; }
.vb-wrap .sm-grid2 > .sm-card > .sm-chart { flex: 1 1 auto; }
.vb-wrap .sm-grid2 > .sm-card > .vb-donut { flex: 1 1 auto; }
/* Company definition under the code in the share legends (2026-10-21) */
.vb-lg-row b { min-width: 0; }
.vb-lg-row .vb-lg-d { display: block; font-size: 10.5px; line-height: 1.2; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 2026-10-27 (Redouane): Head-to-head and Rank matrix — headers and value columns centred; only the label column stays left */
.vb-h2h th:not(:first-child), .vb-h2h td:not(:first-child) { text-align: center !important; }
.vb-rank th:not(:nth-child(2)), .vb-rank td:not(:nth-child(2)) { text-align: center !important; }
.vb-rank th:not(:nth-child(2)) > *, .vb-h2h th:not(:first-child) > * { justify-content: center; }
.vb-rank th.bf-th:not(:nth-child(2)) { padding-left: 18px !important; padding-right: 18px !important; }   /* equal both sides of the filter icon, so the title sits in the middle */
.vb-rank td.vb-rk { min-width: 64px; }
/* the "leader" / "you" note under the company code, so the code itself is centred over its column and the note is readable on green */
.vb-h2h thead th .vb-muted, .vb-h2h thead th .vb-tag { display: block; width: max-content; margin: 2px auto 0; font-size: 10px; line-height: 14px; font-weight: 500; }
.vb-h2h thead th .vb-muted { color: rgba(255, 255, 255, 0.85); }
