/* npt-analytics.css — Analytics › NPT & Cost Impact (release 2026-10-02).
   Builds on the Service market styles (.sm-*) in bf-analytics.css. */
.np-wrap .sm-kpi > b small.np-of { font-size: 13px; font-weight: 500; color: var(--bf-muted, #56655D); }
.np-wrap .sm-kpi > i b { font-weight: 600; color: var(--bf-ink, #15201A); }
.np-wrap .sm-d.np-good { color: #1f7a3f; }
.np-wrap .sm-d.np-bad { color: #b3261e; }
.np-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.np-chips[hidden] { display: none; }
.np-linkbtn { border: 0; background: transparent; padding: 0; color: var(--bf-green-dark, #005C2E); font-weight: 600; font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }
.np-cost .np-rate { display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.np-cost .np-rate input { width: 110px; height: 32px; border: 1px solid var(--bf-line, #DCE3DF); border-radius: 8px; padding: 0 8px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.np-cost .np-rate input:focus { outline: 0; border-color: var(--bf-green, #007A3D); box-shadow: 0 0 0 3px rgba(0,122,61,.12); }
.np-cost .np-rate .bf-btn { height: 32px; padding: 0 10px; }
.np-presets { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.np-presets button { height: 24px; padding: 0 8px; border: 1px solid var(--bf-line, #DCE3DF); border-radius: 12px; background: #fff; font-size: 11px; font-weight: 600; color: var(--bf-muted, #56655D); }
.np-presets button.on, .np-presets button:hover { border-color: #9FC7B1; background: var(--bf-green-soft, #E6F2EC); color: var(--bf-green-dark, #005C2E); }
.np-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.np-muted { color: var(--bf-muted, #56655D); font-weight: 400; }
.np-clk { cursor: pointer; }
.np-clk:hover, .np-clk:focus-visible { background: #F3F5F4; outline: 0; }
.np-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; }
.np-tag-o { background: #EEF2EF; color: var(--bf-muted, #56655D); }
.np-desc { display: block; font-size: 11px; color: var(--bf-muted, #56655D); font-weight: 400; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-chart-s { height: 260px; }
.np-grid-eq { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1200px) { .np-grid-eq { grid-template-columns: 1fr; } }
.np-heat { width: 100%; border-collapse: separate; border-spacing: 2px; font-size: 12px; font-variant-numeric: tabular-nums; }
.np-heat th { font-weight: 600; color: var(--bf-muted, #56655D); font-size: 11px; text-align: center; padding: 4px 6px; white-space: nowrap; }
.np-heat tbody th { text-align: left; color: var(--bf-ink, #15201A); font-size: 12px; max-width: 200px; }
.np-heat tbody th small { display: block; font-weight: 400; color: var(--bf-muted, #56655D); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; }
.np-heat td { text-align: center; padding: 7px 4px; border-radius: 4px; background: #F7F9F8; min-width: 54px; }
.np-heat tr.np-heat-t th, .np-heat tr.np-heat-t td { background: transparent; font-weight: 600; border-top: 1px solid var(--bf-line, #DCE3DF); }
.np-scale { display: flex; align-items: center; gap: 3px; margin-top: 10px; font-size: 11px; color: var(--bf-muted, #56655D); }
.np-scale i { width: 22px; height: 10px; border-radius: 2px; }
.np-scale span:first-child { margin-right: 4px; } .np-scale span:last-child { margin-left: 4px; }
.np-evctl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.np-search { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 1px solid var(--bf-line, #DCE3DF); border-radius: 8px; color: var(--bf-muted, #56655D); margin: 0; }
.np-search:focus-within { border-color: var(--bf-green, #007A3D); box-shadow: 0 0 0 3px rgba(0,122,61,.12); }
.np-search input { border: 0; outline: 0; width: 240px; font-size: 13px; }
.np-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; margin: 0; color: var(--bf-ink, #15201A); }
.np-check input { accent-color: var(--bf-green, #007A3D); }
.np-evsum { font-size: 12px; color: var(--bf-muted, #56655D); margin: 2px 0 8px; }
.np-evsum b { color: var(--bf-ink, #15201A); }
.np-evwrap { max-height: 640px; }
.np-evt td { vertical-align: top; }
.np-evt .np-sum { white-space: normal !important; min-width: 280px; max-width: 460px; font-size: 12px; line-height: 1.4; }
.np-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--bf-muted, #56655D); }
.np-acts { white-space: nowrap; }
.np-act { height: 26px; padding: 0 8px; margin-right: 3px; border: 1px solid var(--bf-line, #DCE3DF); border-radius: 6px; background: #fff; font-size: 11.5px; font-weight: 600; color: var(--bf-ink, #15201A); }
.np-act:hover { border-color: #9FC7B1; background: var(--bf-green-soft, #E6F2EC); }
.np-act.saved { border-color: #7b1fa2; color: #7b1fa2; }
.np-act.np-view { background: #7b1fa2; border-color: #7b1fa2; color: #fff; }
.np-act.np-ff.saved { border-color: #005f73; color: #005f73; }
.np-heat-wrap { overflow-x: auto; }
.np-evt td, .np-evt th { font-size: 12px; }

/* Overview layout (2026-10-09): Pareto on top, three equal cards, trend below */
.np-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
@media (max-width: 1280px) { .np-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .np-grid3 > :last-child { grid-column: 1 / -1; } }
@media (max-width: 820px) { .np-grid3 { grid-template-columns: 1fr; } }
.np-eqcard { display: flex; flex-direction: column; }
.np-eqcard .np-ov-more { margin-top: auto; }
.np-eqcard > div + .np-ov-more { margin-top: 12px; }
.np-pareto { height: 340px; }
.np-seg { display: inline-flex; border: 1px solid var(--bf-line, #DCE3DF); border-radius: 8px; overflow: hidden; }
.np-seg button { height: 32px; padding: 0 12px; border: 0; background: #fff; font-size: 12.5px; font-weight: 500; color: var(--bf-muted, #56655D); }
.np-seg button + button { border-left: 1px solid var(--bf-line, #DCE3DF); }
.np-seg button.on { background: var(--bf-green-soft, #E6F2EC); color: var(--bf-green-dark, #005C2E); font-weight: 600; }
.np-pa-lg .np-lg-line { width: 16px !important; height: 3px !important; background: #eb6834; border-radius: 2px; }
.np-pa-lg .np-lg-dash { width: 16px !important; height: 0 !important; border-top: 2px dashed #8c9a92; background: transparent !important; }
/* Overview doughnuts (release 2026-10-12): Who is responsible · What causes · By Lost Time type */
.np-dn { display: flex; flex-direction: column; gap: 10px; }
.np-dn-c { position: relative; height: 230px; min-width: 0; }
.np-dn-lg { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.np-dn-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 48px; column-gap: 8px; align-items: center; padding: 5px 6px; border-radius: 6px; }
.np-dn-row i { width: 10px; height: 10px; border-radius: 3px; }
.np-dn-l { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-dn-v { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.np-dn-row em { font-style: normal; color: var(--bf-muted, #56655D); text-align: right; font-variant-numeric: tabular-nums; }
.np-dn-row small { grid-column: 2 / -1; font-size: 11.5px; color: var(--bf-muted, #56655D); }
.np-dn-oth { color: var(--bf-muted, #56655D); }
@media (min-width: 1281px) and (max-width: 1500px) { .np-dn-c { height: 200px; } }
/* The three doughnuts always stay side by side, on one line, at the same height (2026-10-12) */
.np-grid3.np-dn3 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto; }
.np-grid3.np-dn3 > .np-eqcard { grid-column: auto; display: grid; grid-row: span 3; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); row-gap: 0; min-width: 0; }
.np-dn3 > .np-eqcard > header { margin-bottom: 8px; }
.np-dn3 > .np-eqcard > .np-ov-more { align-self: end; margin-top: 12px; }
@media (max-width: 1280px) { .np-dn-c { height: 190px; } .np-dn-row { grid-template-columns: 10px minmax(0, 1fr) auto 42px; column-gap: 6px; font-size: 12px; } }
@media (max-width: 900px)  { .np-dn-c { height: 150px; } .np-dn-row small { display: none; } .np-dn-row em { display: none; } .np-dn-row { grid-template-columns: 10px minmax(0, 1fr) auto; } }
/* Service line → companies picker (2026-10-12): replaces the two drop-downs. Equal tiles, always one line. */
.np-pick { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; background: #fff; border: 1px solid var(--bf-line, #DCE3DF); border-radius: 10px; }
.np-pick-h { display: flex; align-items: baseline; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--bf-muted, #56655D); }
.np-pick-h small { font-size: 11.5px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.np-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.np-tile { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 44px; padding: 0 12px 0 16px; border: 1px solid var(--bf-line, #DCE3DF); border-radius: 10px; background: #fff; text-align: left; color: var(--bf-ink, #15201A); overflow: hidden; transition: border-color .12s, background .12s, box-shadow .12s; }
.np-tile::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--np-c, #56655D); }
.np-tile:hover { border-color: #9FC7B1; background: #F7FAF8; }
.np-tile:focus-visible { outline: 2px solid var(--bf-green, #007A3D); outline-offset: 1px; }
.np-tile-n { min-width: 0; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-tile-k { flex-shrink: 0; min-width: 24px; height: 20px; padding: 0 7px; border-radius: 10px; background: #EEF2EF; font-size: 11px; font-weight: 600; line-height: 20px; text-align: center; color: var(--bf-muted, #56655D); }
.np-tile.on { border-color: var(--bf-green, #007A3D); background: var(--bf-green, #007A3D); color: #fff; box-shadow: 0 2px 6px rgba(0,122,61,.25); }
.np-tile.on::before { background: rgba(255,255,255,.55); }
.np-tile.on .np-tile-k { background: rgba(255,255,255,.2); color: #fff; }
.np-cos-row { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; padding-top: 12px; border-top: 1px solid #EEF2EF; }
.np-cos-row[hidden] { display: none; }
.np-chips2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.np-chip { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 3px; align-items: center; column-gap: 6px; row-gap: 5px; height: 42px; padding: 6px 10px 6px; border: 1px solid var(--bf-line, #DCE3DF); border-radius: 8px; background: #fff; text-align: left; color: var(--bf-ink, #15201A); }
.np-chip:hover { border-color: #9FC7B1; background: #F7FAF8; }
.np-chip:focus-visible { outline: 2px solid var(--bf-green, #007A3D); outline-offset: 1px; }
.np-chip-n { min-width: 0; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-chip-n .bi { margin-right: 3px; }
.np-chip-v { font-size: 11px; font-weight: 600; color: var(--bf-muted, #56655D); font-variant-numeric: tabular-nums; }
.np-chip-b { grid-column: 1 / -1; height: 3px; border-radius: 2px; background: #EEF2EF; overflow: hidden; }
.np-chip-b span { display: block; height: 100%; background: var(--np-c, #56655D); border-radius: 2px; }
.np-chip.on { border-color: #3987e5; background: #EAF2FD; box-shadow: inset 0 0 0 1px #3987e5; }
.np-chip.on .np-chip-n { color: #0d366b; }
.np-chip-0 { opacity: .6; }
.np-chip-all { grid-template-rows: auto; }
.np-chip-all.on { border-color: #B8C4BD; background: #EEF2EF; box-shadow: none; }
@media (max-width: 700px) { .np-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* loading feedback while a line / company is being read */
.np-chips2.np-wait .np-chip:not(.on):not(.np-chip-all) { opacity: .6; }
.np-tile.np-busy .np-tile-k { color: transparent; position: relative; }
.np-tile.np-busy .np-tile-k::after { content: ''; position: absolute; inset: 3px; margin: auto; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: sm-rot .8s linear infinite; }
/* Company scorecard (2026-10-12) */
.np-sc .sm-card-hx { align-items: flex-start; }
.np-sc .sm-card-hx > div:first-child { flex: 1 1 520px; }
.np-sc-sum { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 8px 12px; border-radius: 8px; background: #F4F8F6; min-width: 200px; }
.np-sc-sum > span { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--bf-muted, #56655D); }
.np-sc-sum b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.np-sc-sum i { font-style: normal; font-size: 11.5px; color: var(--bf-muted, #56655D); }
.np-sc table tfoot td { border-top: 2px solid var(--bf-line, #DCE3DF); background: #F7F9F8; font-size: 12.5px; }
.np-sc .np-rank { color: var(--bf-muted, #56655D); font-weight: 600; width: 34px; }
.np-sc tr.np-dim td { opacity: .55; }
.np-eff { display: inline-flex; align-items: center; gap: 8px; }
.np-eff b { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 46px; text-align: right; }
.np-eff-b { width: 64px; height: 7px; border-radius: 4px; background: #EEF2EF; overflow: hidden; }
.np-eff-b span { display: block; height: 100%; border-radius: 4px; background: #86b6ef; }
.np-eff-good b { color: #1f7a3f; } .np-eff-good .np-eff-b span { background: #1baf7a; }
.np-eff-mid .np-eff-b span { background: #86b6ef; }
.np-eff-bad b { color: #b3261e; } .np-eff-bad .np-eff-b span { background: #e5746b; }
.np-sc td small { display: inline-block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.np-sc th, .np-sc td { padding-left: 10px; padding-right: 10px; }
/* Company definition under the code in every company chip (2026-10-21) */
.np-chip:has(> .np-chip-d) { height: auto; min-height: 54px; grid-template-rows: auto auto 3px; row-gap: 3px; }
.np-chip-d { grid-column: 1 / -1; grid-row: 2; min-width: 0; font-size: 10.5px; font-weight: 500; line-height: 1.25; color: var(--bf-muted, #56655D); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-chip:has(> .np-chip-d) > .np-chip-b { grid-row: 3; }
.np-chip.on .np-chip-d { color: #2a4e7c; }
.bf-coname { font-weight: 400; color: var(--bf-muted, #56655D); }
/* Company chip pickers that replace the old company combo boxes (2026-10-21) */
.bf-cochips { flex: 1 1 100%; width: 100%; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.bf-cochips .np-chip:not(:has(> .np-chip-b)) { grid-template-rows: auto auto; min-height: 42px; }
.bf-cochips .np-chip-all { grid-template-rows: auto; }
/* Chips that carry a definition: never squeeze the code, give them room (2026-10-21) */
.np-chips2:has(> .np-chip > .np-chip-d) { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.np-chip:has(> .np-chip-d) { grid-template-columns: auto minmax(0, 1fr); }
.np-chip:has(> .np-chip-d) > .np-chip-n { overflow: visible; }
.np-chip:has(> .np-chip-d) > .np-chip-v { min-width: 0; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 20261108q: company scorecard headers centred over their columns (the filter-icon space is kept on both sides) */
.np-sc table thead th, .np-sc table thead th.r { text-align: center; }
.np-sc table.bf-tt thead th.bf-th { padding-left: 26px !important; }
