/* fishing.css — Analytics › Downhole Tools › Fishing (release 2026-10-13).
   Builds on .sm-* (bf-analytics.css), the NPT picker chips (.np-*, npt-analytics.css), the doughnut legend (.vb-*,
   vendor-bench.css) and the mini KPI boxes (.sc-mini4, svc-companies.css). --brand = the organization's colour. */
.fs-wrap { --brand: var(--bf-green, #007A3D); }
.fs-wrap .fs-good, .fs-wrap .sm-d.fs-good { color: #1f7a3f; }
.fs-wrap .fs-bad, .fs-wrap .sm-d.fs-bad { color: #b3261e; }
.fs-muted { color: var(--bf-muted, #56655D); font-weight: 400; }
.fs-brand { display: inline-flex; align-items: center; gap: 8px; margin-right: 10px; vertical-align: middle; }
.fs-brand:empty { display: none; }
.fs-brand img { height: 28px; width: auto; border-radius: 6px; }
.fs-brand span { font-size: 13px; font-weight: 600; color: var(--brand); padding-right: 10px; border-right: 1px solid var(--bf-line, #DCE3DF); }
.fs-wrap .sm-tab.on { color: var(--brand); border-bottom-color: var(--brand); }
.fs-wrap .bf-btn-primary { background: var(--brand); border-color: var(--brand); }
.fs-clsb { height: 36px; display: inline-flex; align-items: center; gap: 6px; }
.fs-pend { font-size: 11px; font-weight: 700; background: #FFF1CC; color: #6b4700; border-radius: 9px; padding: 0 6px; }
.fs-pick .np-chips2 { margin-bottom: 2px; }
.fs-flt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; margin-top: 4px; border-top: 1px solid #EEF2EF; }
.fs-flt select, .fs-flt input[type=search] { height: 32px; border: 1px solid var(--bf-line, #DCE3DF); border-radius: 8px; padding: 0 10px; font-size: 12.5px; background: #fff; color: var(--bf-ink, #15201A); max-width: 220px; }
.fs-flt input[type=search] { width: 180px; }
.fs-oc { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.fs-ocb { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--bf-line, #DCE3DF); border-radius: 16px; background: #fff; font-size: 12px; font-weight: 500; color: var(--bf-ink, #15201A); }
.fs-ocb i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.fs-ocb:hover { border-color: #9FC7B1; }
.fs-ocb.on { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); background: #F7FAF8; font-weight: 600; }
.fs-sw { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--bf-muted, #56655D); margin: 0; }
.fs-kpi-ok > b { color: #1f7a3f; }
.fs-kpi-bad { border-color: #F1B8B3; background: #FFF8F7; }
.fs-kpi-bad > b { color: #b3261e; }
.fs-wrap .sm-panel { display: flex; flex-direction: column; gap: 14px; }
.fs-eq, .fs-rep { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1200px) { .fs-eq, .fs-rep { grid-template-columns: 1fr; } }
.fs-chart-m { height: 300px; }
.fs-chart-s { height: 260px; }
.fs-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 1px 8px 1px 6px; border-radius: 10px; background: color-mix(in srgb, var(--c) 16%, #fff); color: #15201A; white-space: nowrap; }
.fs-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.fs-mini { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin: 0 4px 0 2px; }
.fs-succ { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.fs-succ-b { width: 48px; height: 6px; border-radius: 3px; background: #EEF2EF; overflow: hidden; }
.fs-succ-b span { display: block; height: 100%; background: #1baf7a; border-radius: 3px; }
.fs-clk { cursor: pointer; }
.fs-clk:hover { background: #F3F5F4; }
.fs-evt td { vertical-align: top; }
.fs-sum { display: inline-block; max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; color: var(--bf-muted, #56655D); }
.fs-rb { display: inline-flex; gap: 4px; }
.fs-r { height: 26px; padding: 0 8px; border: 1px solid var(--bf-line, #DCE3DF); border-radius: 13px; background: #fff; font-size: 11.5px; font-weight: 600; color: var(--bf-ink, #15201A); white-space: nowrap; }
.fs-r:hover { border-color: #9FC7B1; background: #F7FAF8; }
.fs-r.on { border-color: #9BD3B5; background: #E6F4EC; color: #1f7a3f; }
.fs-src { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 8px; background: #EEF2EF; color: var(--bf-muted, #56655D); }
.fs-src-ai { background: #DCEAFB; color: #0d366b; }
.fs-src-manual { background: #FFF1CC; color: #6b4700; }
.fs-det { margin: 4px 0 12px; padding: 14px; border: 1px solid #9EC5F4; border-radius: 10px; background: #F7FAFE; }
.fs-det-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fs-det-h b { font-size: 15px; } .fs-det-h span { flex: 1; font-size: 12px; color: var(--bf-muted, #56655D); }
.fs-det-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.fs-det-g > div { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; background: #fff; border-radius: 8px; border: 1px solid #E3ECF7; }
.fs-det-g span { font-size: 11px; color: var(--bf-muted, #56655D); }
.fs-det-p { margin: 6px 0; font-size: 12.5px; line-height: 1.5; }
.fs-edit { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #C9DAF0; }
.fs-edit > b { width: 100%; font-size: 12px; }
.fs-edit select, .fs-edit input { height: 32px; border: 1px solid var(--bf-line, #DCE3DF); border-radius: 8px; padding: 0 8px; font-size: 12.5px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.fs-wide input { width: 260px; }

.fs-mini4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .fs-mini4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fs-mini4 > div { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: #fff; border: 1px solid var(--bf-line, #DCE3DF); border-radius: 10px; min-width: 0; }
.fs-mini4 span { font-size: 12px; color: var(--bf-muted, #56655D); }
.fs-mini4 b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fs-mini4 i { font-style: normal; font-size: 11.5px; color: var(--bf-muted, #56655D); }
.fs-wrap .an-table-wrap { overflow: auto; }
.fs-wrap .sm-tw { max-height: 560px; }

/* product line tiles (top layer) — 2026-10-13 */
.fs-pls { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 4px; }
@media (max-width: 900px) { .fs-pls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fs-pl .np-tile-n { display: inline-flex; align-items: center; gap: 7px; }
.fs-pl .np-tile-n .bi { color: var(--np-c); font-size: 14px; }
.fs-pl.on .np-tile-n .bi { color: #fff; }
.fs-pl-v { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.fs-pl-v small { font-size: 11px; font-weight: 600; color: var(--bf-muted, #56655D); }
.fs-pl.on .fs-pl-v small { color: rgba(255,255,255,.85); }
.fs-pl-0 { opacity: .55; }
.fs-dim td { opacity: .55; }
.fs-plt th:last-child, .fs-plt td:last-child { padding-left: 18px; }

/* Overview rows: same columns on every row (wide chart left, summary right), cards of a row share one height */
.fs-wrap .sm-grid2.fs-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: stretch; }
@media (max-width: 1200px) { .fs-wrap .sm-grid2.fs-row { grid-template-columns: 1fr; } }
.fs-wrap .fs-row > .sm-card { display: flex; flex-direction: column; min-width: 0; }
.fs-wrap .fs-row > .sm-card > .vb-donut { flex: 1; }
.fs-wrap .fs-row > .sm-card > .sm-chart { flex: 1; min-height: 260px; }
.fs-wrap .fs-row > .sm-card > .sm-chart.fs-chart-m { min-height: 300px; }
.fs-wrap .fs-row > .sm-card > .sm-top { flex: 1; }

/* Bar cells (success / efficiency): left-aligned, bar first at a fixed width, then the value, so every bar
   starts at the same x and reads against the same reference (release 20261013) */
.fs-wrap .fs-succ { display: inline-grid; grid-template-columns: 72px 4.2em auto; align-items: center; column-gap: 8px; justify-items: start; }
.fs-wrap .fs-succ-b { width: 72px; }
.fs-wrap td > small { color: var(--bf-muted, #56655D); }
.fs-kpi-link { text-align: left; font: inherit; color: inherit; cursor: pointer; }
.fs-kpi-link:hover:not(:disabled) { border-color: #e5a3a0; box-shadow: 0 2px 6px rgba(179,38,30,.12); }
.fs-kpi-link:disabled { cursor: default; }
.fs-kpi-link u { text-decoration: underline; text-underline-offset: 2px; }
.fs-wrap .fs-succ > b { font-weight: 600; font-variant-numeric: tabular-nums; }
.fs-wrap th.fs-barcol, .fs-wrap td.fs-barcol { padding-left: 22px; }
.fs-wrap .fs-succ small { font-weight: 400; }

/* Rig department & field snapshot (Overview) */
.fs-wrap .sm-grid2.fs-row2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
@media (max-width: 1200px) { .fs-wrap .sm-grid2.fs-row2 { grid-template-columns: 1fr; } }
.fs-geo-h, .fs-geo-r { display: grid; grid-template-columns: minmax(0, 1fr) 96px 78px 84px 64px; gap: 10px; align-items: center; }
.fs-geo-h { padding: 0 8px 6px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--bf-muted, #56655D); border-bottom: 1px solid #EEF2EF; }
.fs-geo-h span:not(:first-child) { text-align: right; }
.fs-geo-r { width: 100%; padding: 7px 8px; border: 0; border-bottom: 1px solid #F1F4F2; background: transparent; text-align: left; font: inherit; color: var(--bf-ink, #15201A); border-radius: 6px; }
.fs-geo-r:hover { background: #F3F5F4; }
.fs-geo-r.on { background: var(--bf-green-soft, #E6F2EC); box-shadow: inset 3px 0 0 var(--brand); }
.fs-geo-r.fs-dim { opacity: .55; }
.fs-geo-l { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; font-size: 13px; }
.fs-geo-l small { font-size: 11.5px; color: var(--bf-muted, #56655D); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.fs-geo-b { flex-basis: 100%; height: 4px; margin-top: 4px; background: #EEF2EF; border-radius: 2px; overflow: hidden; }
.fs-geo-b span { display: block; height: 100%; background: var(--brand); border-radius: 2px; }
.fs-geo-v { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; font-size: 13px; line-height: 1.25; }
.fs-geo-v small { font-size: 11px; color: var(--bf-muted, #56655D); white-space: nowrap; }
.fs-geo-v small .sm-d { font-size: 11px; }
.fs-geo-more { margin: 8px 8px 0; font-size: 12px; }
.fs-geo-h span { white-space: nowrap; }
