/* company_cmp_backlog.css — "Contracted backlog by counterparty — compared" (company_cmp_backlog.js), a card on
   Competitor Analysis ▸ Backlog ▸ Peer backlogs since 2026-10-23 (was a chart group on the Charts tab).
   Counterparty colours (--blg-*, .t-*), card headings and the stacked bar (.blg-stack) come from company_backlog.css;
   .cmp-seg / .cmp-ax / .cmp-plot / .cmp-svg from company_compare.css. */
.bc-top { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 2px 0 6px; }
.bc-sets { flex-wrap: wrap; flex: 0 1 auto; max-width: 100%; }   /* .cmp-seg is flex:none — let the set chips wrap on a phone */
.bc-sets button[disabled] { opacity: .4; cursor: default; }
.bc-mode { margin-left: auto; }
.bc-verdict { margin: 0 0 8px; font-size: 12.5px; line-height: 1.45; color: var(--text); }
.bc-none { margin: 4px 0 2px; }

/* highlight chips: the named counterparties across the set */
.bc-hls { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 8px; }
.bc-hls .lab { font-size: 10.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-right: 2px; }
.bc-hl { display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 11px; padding: 2px 8px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--text); }
.bc-hl .sw { width: 9px; height: 9px; border-radius: 2px; background: var(--tc); }
.bc-hl b { font-weight: 650; font-variant-numeric: tabular-nums; }
.bc-hl small { color: var(--muted); font-size: 10px; }
.bc-hl:hover { border-color: var(--tc, var(--muted)); }
.bc-hl.on { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 18%, transparent); box-shadow: inset 0 0 0 1px var(--tc); }
.bc-hl.bc-clr { color: var(--muted); }

.bc-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.bc-col { min-width: 0; }
.bc-h { font-size: 12.5px; font-weight: 650; color: var(--text); margin-bottom: 4px; }
.bc-h .muted { font-weight: 400; font-size: 11.5px; }
.bc-col .blg-legend { margin: 0 0 6px; }

/* chart 1 rows: name | bar | value */
.bc-bars { display: flex; flex-direction: column; gap: 3px; }
.bc-row { display: grid; grid-template-columns: minmax(118px, min(30%, 250px)) minmax(0, 1fr) 84px; gap: 8px; align-items: center; padding: 2px 4px; border-radius: 5px; }
.bc-row.self { background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
.bc-row.pin { box-shadow: inset 3px 0 0 var(--pc); }
.bc-row.bc-hov { background: var(--hover); }
.bc-row.faded { opacity: .45; }
.bc-nm { min-width: 0; font-size: 12px; line-height: 1.2; }
.bc-nm a, .bc-nm > span:first-child { font-weight: 650; color: var(--text); cursor: pointer; }
.bc-nm a:hover { color: var(--accent); }
.bc-nm small { display: block; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-nm .chip { font-size: 9px; padding: 0 4px; margin-left: 3px; vertical-align: 1px; }
.bc-star { margin-left: 2px; color: var(--muted); font-weight: 700; }
.bc-trk { min-width: 0; }
.bc-trk .blg-stack.sm { height: 16px; }
.bc-trk .blg-stack .seg { cursor: pointer; }
.bc-trk .blg-stack .seg { container-type: inline-size; }
.bc-trk .blg-stack .seg i { display: flex; gap: 4px; min-width: 0; font-size: 10px; padding: 0 4px; }
.bc-trk .blg-stack .seg i em { font-style: normal; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bc-trk .blg-stack .seg i b { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
@container (max-width: 72px) { .bc-trk .blg-stack .seg i em { display: none; } }
@container (max-width: 34px) { .bc-trk .blg-stack .seg i { display: none; } }
.bc-trk .blg-stack .seg.bc-ns { cursor: default; background: repeating-linear-gradient(135deg, var(--blg-other) 0 4px, transparent 4px 8px); opacity: .7; }
.bc-panel.bc-cphov .bc-bars .seg:not(.cp-on) { opacity: .25; }
.bc-trk .blg-stack .seg.cp-on { opacity: 1; box-shadow: inset 0 0 0 1.5px var(--text); }
.bc-val { text-align: right; font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* chart 2: scatter */
.bc-plot { min-height: 300px; }
.bc-svg .bc-tk { font-size: 10px; fill: var(--muted); }
.bc-svg .bc-med { stroke: var(--cvc-orange, #d9701a); stroke-width: 1; stroke-dasharray: 4 3; opacity: .8; }
.bc-svg .bc-q { font-size: 10.5px; fill: var(--muted); font-weight: 600; opacity: .8; }
.bc-svg .bc-q.good { fill: var(--pos, #16a34a); }
.bc-svg .bc-q.bad { fill: var(--neg, #dc2626); }
.bc-dot { cursor: pointer; }
.bc-dot circle { fill: color-mix(in srgb, var(--dc, var(--muted)) 38%, transparent); stroke: var(--dc, var(--muted)); stroke-width: 1.2; }
.bc-dot.self circle, .bc-dot.pin circle { fill: color-mix(in srgb, var(--dc) 55%, transparent); stroke-width: 2; }
.bc-dot.ns circle { fill: transparent; stroke-dasharray: 2 2; }
.bc-dot.out circle { stroke-dasharray: 3 2; }
.bc-dot circle.ring { fill: none; stroke: var(--blg-ailab); stroke-width: 1.2; stroke-dasharray: 3 2; }
.bc-dot text { font-size: 10.5px; fill: var(--text); font-weight: 600; paint-order: stroke; stroke: var(--panel); stroke-width: 3px; stroke-linejoin: round; }
.bc-dot.bc-hov circle:not(.ring), .bc-dot:hover circle:not(.ring) { stroke: var(--text); stroke-width: 2.2; }
.bc-empty { padding: 40px 8px; text-align: center; }

@media (max-width: 980px) { .bc-body { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .bc-row { grid-template-columns: 92px minmax(0, 1fr) 64px; gap: 6px; }
  .bc-mode { margin-left: 0; }
}
/* 2026-10-20 (owner: wasted space) — one column when no scatter can be drawn; reading notes folded */
.bc-body.one { grid-template-columns: minmax(0, 1fr); }
.bc-noplot { margin: 6px 4px 0; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.bc-more { margin: 8px 2px 0; }
