/* trs.css — Analytics › Services › TRS Analytics on the Fishing & Milling template (release 2026-10-22).
   Builds on fishing.css (.fs-*), bf-analytics.css (.sm-*), npt-analytics.css (.np-*) and vendor-bench.css (.vb-*). */
.trs-seg { display: inline-flex; border: 1px solid var(--bf-line, #DCE3DF); border-radius: 16px; overflow: hidden; background: #fff; }
.trs-seg button { height: 30px; padding: 0 12px; border: 0; background: transparent; font-size: 12px; font-weight: 500; color: var(--bf-ink, #15201A); }
.trs-seg button + button { border-left: 1px solid var(--bf-line, #DCE3DF); }
.trs-seg button:hover { background: #F7FAF8; }
.trs-seg button.on { background: #EAF2FD; color: #0d366b; font-weight: 600; }
.trs-seg button:focus-visible { outline: 2px solid var(--brand, #007A3D); outline-offset: -2px; }
.trs-wrap .sm-top-b.trs-mb { display: flex; gap: 0; background: #EEF2EF; }
.trs-wrap .sm-top-b.trs-mb > span { display: block; height: 100%; border-radius: 0; }
.trs-wrap .sm-top-b.trs-mb > span:first-child { border-radius: 3px 0 0 3px; }
.trs-iss button.on { background: #FFF1F0; box-shadow: inset 3px 0 0 #e5484d; }
.trs-lines { margin: 8px 0 4px; }
.trs-lines summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--brand, #007A3D); }
.trs-lines .sm-tw { max-height: 320px; margin-top: 6px; }
.trs-line { display: inline-block; max-width: 720px; white-space: normal; font-size: 12px; line-height: 1.4; }
.trs-lt td { vertical-align: top; }
.trs-wrap .fs-flt .fs-pill { height: 26px; }
@media (max-width: 700px) { .trs-seg button { padding: 0 8px; } .trs-line { max-width: 280px; } }

/* No scrolling inside graphs and tables (Redouane 2026-10-22): tables fit the card width, show all their rows
   (long lists use "Show more"), doughnut legends show every company. */
.trs-wrap .an-table-wrap, .trs-wrap .sm-tw, .trs-wrap .trs-tw { max-height: none !important; overflow: visible !important; }
.trs-wrap .sm-table { width: 100%; table-layout: auto; font-size: 12px; }
.trs-wrap .sm-table th { white-space: normal; line-height: 1.2; vertical-align: bottom; padding: 7px 6px; font-size: 11px; }
.trs-wrap .sm-table td { white-space: normal; padding: 6px 6px; vertical-align: middle; }
.trs-wrap .sm-table td.r { white-space: nowrap; }
.trs-wrap .sm-table th.r { white-space: normal; }
.trs-wrap .sm-table .trs-sub, .trs-wrap .sm-table .np-desc { display: block; line-height: 1.25; margin-top: 1px; }
.trs-wrap .sm-table .fs-pill { white-space: nowrap; font-size: 11px; padding: 1px 6px 1px 5px; }
.trs-wrap .sm-cellbar { width: 38px; }
.trs-wrap .fs-succ { gap: 4px; white-space: nowrap; }
.trs-wrap .fs-succ-b { width: 32px; }
.trs-wrap .sm-d { white-space: nowrap; }
.trs-wrap .vb-donut-lg { max-height: none; overflow: visible; }
.trs-wrap .vb-donut { align-items: start; }
.trs-wrap .vb-donut-c { min-height: 260px; }
.trs-more { display: flex; align-items: center; gap: 14px; padding: 8px 4px 0; font-size: 12px; color: var(--bf-muted, #56655D); }
.trs-more .bf-link { font-size: 12px; font-weight: 600; }
.trs-wrap .trs-line { max-width: none; }
.trs-stack { display: flex; flex-direction: column; gap: 14px; }
.trs-wrap .np-evt .np-sum { min-width: 200px; max-width: none; }
.trs-wrap .sm-table td b + small, .trs-wrap .sm-table td .sm-d { font-weight: 400; }
.trs-wrap .sm-table td:first-child { max-width: 200px; }
.trs-wrap .sm-table th, .trs-wrap .sm-table td { padding-left: 5px; padding-right: 5px; }
.trs-wrap .sm-card > .an-table-wrap, .trs-wrap .sm-card .trs-tw { max-width: 100%; }

/* Cell layouts (2026-10-22 review): one line per value, no stray gaps */
.trs-wrap .sm-table .trs-sub { font-size: 11px; color: var(--bf-muted, #56655D); font-weight: 400; }
.trs-wrap .sm-table .trs-coname { white-space: normal; }
.trs-succ { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 600; }
.trs-succ small { font-size: 11px; font-weight: 400; color: var(--bf-muted, #56655D); }
.trs-succ.fs-good b { color: #1f7a3f; } .trs-succ.fs-bad b { color: #b3261e; }
.trs-wrap th.fs-barcol, .trs-wrap td.fs-barcol { padding-left: 10px; }
.trs-cops { display: flex; flex-wrap: wrap; gap: 4px; }
.trs-cop { display: inline-flex; align-items: baseline; gap: 4px; padding: 1px 7px; border-radius: 10px; background: #F1F4F2; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.trs-cop em { font-style: normal; font-weight: 400; color: var(--bf-muted, #56655D); }
.trs-new { font-size: 11px; font-weight: 700; color: #0d366b; background: #EAF2FD; border-radius: 8px; padding: 0 6px; }
.trs-wrap .sm-table td { vertical-align: middle; }

/* Header text lines up with its column (2026-10-22 review): the sort / filter icon no longer reserves 26 px on the
   right of every header, so right-aligned numbers sit exactly under their header; the icon shows on hover in the
   header's free corner instead. */
.trs-wrap table.bf-tt th.bf-th { padding-right: 5px !important; }
.trs-wrap table.bf-tt th.bf-th .bf-th-ic { top: 4px; transform: none; right: 3px; left: auto; }
.trs-wrap table.bf-tt th.bf-th.r .bf-th-ic { right: auto; left: 3px; }
.trs-wrap .sm-table th, .trs-wrap .sm-table td { text-align: left; }
.trs-wrap .sm-table th.r, .trs-wrap .sm-table td.r { text-align: right; }
.trs-wrap .sm-table th { vertical-align: bottom; }
.trs-wrap .np-acts { white-space: nowrap; min-width: 62px; }
.trs-wrap .np-act { white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.trs-wrap .vb-lg-row span { white-space: nowrap; }
.trs-wrap .trs-geo-static { cursor: default; } .trs-wrap .trs-geo-static:hover { background: transparent; }
/* 20261109y: Generate magazine button (TRS steel navy) and the shared Coiled Tubing / Cementing blocks */
.trs-wrap .vb-gen .trs-mag-btn { margin-left: 8px; background: #14283f; border-color: #14283f; }
.trs-wrap .vb-gen .trs-mag-btn:hover { background: #2f6fb3; border-color: #2f6fb3; }
.trs-wrap .sm-tab .bfi { margin-right: 4px; }
