/* dht_full.css — Analytics › Downhole Tools › Full Dashboard (release 2026-10-28). Builds on trs.css / fishing.css / gyro.css (.trs-wrap, .fs-*, .gy-*, .sm-*). */
.dh-wrap .dh-fams { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.dh-wrap .sm-controls { display: flex; gap: 8px; align-items: center; }

/* how the tools are counted */
.dh-how-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dh-how-g > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--bf-line, #DCE3DF); border-radius: 10px; background: #FAFCFB; }
.dh-how-g b { font-size: 20px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dh-how-g span { font-size: 12.5px; font-weight: 600; }
.dh-how-g small { font-size: 11.5px; color: var(--bf-muted, #56655D); line-height: 1.35; }
.dh-how-g .dh-how-old { background: #FFF9EC; border-color: #F3D9A4; }
.dh-how-g .dh-how-old b { color: #8a5a00; }
@media (max-width: 900px) { .dh-how-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* share measure */
.dh-meas { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 2px; font-size: 12.5px; }
.dh-meas > span { font-weight: 600; }
.dh-meas small { flex: 1 1 320px; }

/* provider x tool heat cells */
.dh-wrap th.dh-hm-h, .dh-wrap td.dh-hm-h { text-align: center !important; white-space: nowrap; }
.dh-hm { display: inline-block; min-width: 44px; padding: 2px 6px; border-radius: 6px; font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums;
  background: rgba(42, 120, 214, var(--a, .2)); color: #0d2f57; }

/* tools in the hole now */
.dh-live { display: flex; flex-wrap: wrap; gap: 4px; }
.dh-lt { display: inline-flex; align-items: baseline; gap: 4px; padding: 2px 8px; border-radius: 10px; border: 1px solid var(--bf-line, #DCE3DF); background: #fff; box-shadow: inset 3px 0 0 var(--c); font-size: 12px; white-space: nowrap; }
.dh-lt b { font-weight: 600; }
.dh-lt small { color: var(--bf-muted, #56655D); font-size: 11px; }

.dh-wrap .dh-fl button.on { background: #EAF4EE; box-shadow: inset 3px 0 0 var(--brand, #007A3D); }
.dh-wrap .trs-line.fs-bad { color: #b3261e; }

/* pickers: tool names are long — wider chips; family tiles show the run count only */
.dh-wrap #dh-tools.np-chips2 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.dh-wrap #dh-cos.np-chips2 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.dh-wrap .dh-fams { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.dh-wrap .dh-fams .np-tile-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* share donuts: two per row so the legend has room for the company names */
.dh-wrap .gy-grid3 { grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); }
.dh-wrap .gy-donut { grid-template-columns: minmax(180px, 0.8fr) minmax(200px, 1fr); }
@media (max-width: 760px) { .dh-wrap .gy-grid3 { grid-template-columns: 1fr; } }

/* 2026-10-28c (Redouane): equal button heights. A company chip with its definition under the code (e.g. "BHI / Bkr Inteq")
   is 54 px tall, one without a definition (SANAD, ADC, RIG, Others, All) only 42 px. In any chip row that holds a
   definition, every chip now gets the same 54 px height, the code sits on the first line and the bar on the last.
   Not scoped to this page on purpose: the same rows on Gyro, NPT, Fishing, TRS… get the same fix. */
.np-chips2:has(> .np-chip > .np-chip-d) > .np-chip { height: 54px; min-height: 54px; }
.np-chips2:has(> .np-chip > .np-chip-d) > .np-chip:not(:has(> .np-chip-d)) { grid-template-rows: 1fr auto 3px; row-gap: 3px; }
.np-chips2:has(> .np-chip > .np-chip-d) > .np-chip:not(:has(> .np-chip-d)) > .np-chip-n,
.np-chips2:has(> .np-chip > .np-chip-d) > .np-chip:not(:has(> .np-chip-d)) > .np-chip-v { grid-row: 1; align-self: start; }
.np-chips2:has(> .np-chip > .np-chip-d) > .np-chip:not(:has(> .np-chip-d)) > .np-chip-b { grid-row: 3; }
.np-chips2:has(> .np-chip > .np-chip-d) > .np-chip.np-chip-all { grid-template-rows: 1fr; }
.np-chips2:has(> .np-chip > .np-chip-d) > .np-chip.np-chip-all > .np-chip-n,
.np-chips2:has(> .np-chip > .np-chip-d) > .np-chip.np-chip-all > .np-chip-v { grid-row: 1; align-self: center; }

/* 2026-10-28d: Drill-string log tab (the former Downhole Tools › Tools page) */
.dh-wrap .dh-lg-k { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 4px 0 0; }
@media (max-width: 1100px) { .dh-wrap .dh-lg-k { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dh-wrap .dh-lg-k { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dh-wrap .dh-lg-f { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.dh-wrap .dh-lg-f input { flex: 1 1 160px; max-width: 240px; }
.dh-wrap .dh-srt { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; font: inherit; color: inherit; white-space: nowrap; }
.dh-wrap .dh-srt:hover, .dh-wrap .dh-srt.on { color: var(--brand, #007A3D); }
.dh-wrap .dh-srt:focus-visible { outline: 2px solid var(--brand, #007A3D); outline-offset: 2px; border-radius: 3px; }
.dh-wrap .dh-srt i { font-size: 10px; }
.dh-wrap .dh-lg-pg { gap: 12px; flex-wrap: wrap; }
.dh-wrap .dh-lg-pg .bf-link[disabled] { opacity: .4; pointer-events: none; }
.dh-wrap #dh-lg-b.sm-busy { opacity: .55; transition: opacity .15s; }
.dh-wrap .dh-lg-l td:last-child { white-space: nowrap; }
