/* «Баланс газа» of the vehicle page (REQ-UIX-211, OD-254): the drawing's own rules (design-v2/css/44-gas-balance.css), scoped by the card's class `bal` instead of the drawing's page id. */
/* ── v2 · 68 · «Баланс газа» redrawn (OD-254, OD-274) ──
   four cards of one style, «Сейчас» the strongest; one merged chart (refuelled and burned bars, the level line on a second axis);
   seven days fit with no scrollbar, more days by ‹ ›; the card follows the pressure card's own period selector. */
.bal .bq{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1.2fr;align-items:stretch;gap:0 10px}
.bal .bq-c{position:relative;min-width:0;text-align:left;padding:12px 14px;border-radius:var(--r-s);background:var(--s2);border:1px solid var(--line-s);font:inherit;color:inherit}
.bal .bq-b{cursor:pointer}
.bal .bq-b:hover{border-color:var(--tx3)}
.bal .bq-b[aria-expanded="true"]{border-color:var(--ok)}
.bal .bq-e{background:var(--ok-d);border:1.5px solid var(--ok)}
.bal .bq-l{font-size:12px;color:var(--tx3)}
.bal .bq-e .bq-l{color:var(--tx2);font-weight:620}
.bal .bq-v{font-size:28px;font-weight:680;letter-spacing:-.02em;line-height:1.2}
.bal .bq-e .bq-v{font-size:34px;font-weight:720}
.bal .bq-w{font-size:20px;font-weight:640;letter-spacing:0;line-height:1.6;color:var(--wn)}
.bal .bq-u{font-size:12px;font-weight:500;color:var(--tx3);margin-left:4px;letter-spacing:0}
.bal .bq-s{font-size:11.5px;color:var(--tx2);margin-top:2px}
.bal .bq-m{font-size:11.5px;color:var(--tx3)}
.bal .bq-o{align-self:center;font-size:34px;font-weight:300;line-height:1;color:var(--tx2)}
.bal .bpan{display:none;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.bal[data-open="ref"] .bpan[data-bp="ref"], .bal[data-open="burn"] .bpan[data-bp="burn"]
{display:block}
.bal .bpt{font-size:12px;font-weight:620;color:var(--tx2);margin-bottom:6px}
.bal .bpsc{max-height:270px;overflow-y:auto}
.bal .bpe{font-size:12px;color:var(--tx3)}
.bal .bpan table{min-width:0}
.bal .bpan .bt td{font-weight:640;border-top:1px solid var(--line-s)}
.bal .bpl{margin-top:8px;font-size:12px}

/* the merged chart: bars per day (purple refuelled, amber burned), the level line on the right axis, three text rows under the plot */
.bal .bm{margin-top:16px}
.bal .bm-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 16px;margin-bottom:4px}
.bal .bm-k{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:11.5px;color:var(--tx2)}
.bal .bk{display:inline-block;width:12px;height:9px;border-radius:2px;margin-right:5px;vertical-align:-1px}
.bal .bk-up{background:var(--in)}
.bal .bk-dn{background:var(--wn)}
.bal .bk-ln{background:none;border-top:2px solid var(--tx1);height:0;vertical-align:3px}
.bal .bm-pg{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--tx2)}
.bal .bm-pg.bm-1 .bm-pb{display:none}
.bal .bm-pb{min-width:30px;padding:2px 10px;font-size:16px;line-height:1.2}
.bal .bm-pb.off{opacity:.35;cursor:default}
.bal .bm-pl{min-width:92px;text-align:center;font-family:var(--mono);font-size:12px}
.bal .bmw{overflow:hidden}
.bal .bmc{display:block;max-width:100%}
.bal .bm-g{stroke:var(--line);stroke-width:1}
.bal .bm-z{stroke:var(--tx3);stroke-width:1.4}
.bal .bm-ax{font-size:10px;fill:var(--tx3);font-family:var(--mono)}
.bal .bm-axr{fill:var(--tx2)}
.bal .bm-pt{font-size:10.5px;fill:var(--tx3)}
.bal .bm-pr{fill:var(--tx2)}
.bal .bm-up{fill:var(--in)}
.bal .bm-up.bm-set{fill:var(--in-d);stroke:var(--in);stroke-width:1.4;stroke-dasharray:3 2}
.bal .bm-dn{fill:var(--wn)}
.bal .bm-ln{fill:none;stroke:var(--tx1);stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.bal .bm-dot{fill:var(--s1);stroke:var(--tx1);stroke-width:1.8}
.bal .bm-dot.bm-do{stroke:var(--tx3);stroke-width:1.4}
.bal .bm-lv{font-size:11px;font-weight:700;fill:var(--tx1);font-family:var(--mono);paint-order:stroke;stroke:var(--s1);stroke-width:3px;stroke-linejoin:round}
.bal .bm-dd{font-size:11.5px;font-weight:640;fill:var(--tx2)}
.bal .bm-dt{font-weight:760;fill:var(--ok)}
.bal .bm-lu{font-size:10.5px;font-weight:650;fill:var(--in);font-family:var(--mono)}
.bal .bm-lu.bm-lw{font-family:inherit;font-size:9.5px;font-weight:620;fill:var(--wn)}
.bal .bm-lu.bm-lz{fill:var(--tx3);font-weight:400}
.bal .bm-ld{font-size:10.5px;font-weight:650;fill:var(--wn);font-family:var(--mono)}
.bal .bm-td{fill:var(--ok-d);stroke:var(--ok-b);stroke-width:1}
.bal .bd{cursor:pointer;outline:none}
.bal .bd-o .bm-up, .bal .bd-o .bm-dn, .bal .bd-o text{opacity:.4}
.bal .bd-h{fill:transparent}
.bal .bd:hover .bd-h, .bal .bd:focus-visible .bd-h{fill:var(--s3);opacity:.7}
.bal .bd:focus-visible .bd-h{stroke:var(--tx1);stroke-width:1.5}
.bal .bd:hover .bm-dd, .bal .bd:focus-visible .bm-dd{fill:var(--ok)}
@media (max-width:620px){
  .bal .bq{grid-template-columns:1fr 1fr;gap:8px}
  .bal .bq-o{display:none}
  .bal .bq-c[data-op]::before{content:attr(data-op);position:absolute;right:12px;top:8px;font-size:24px;color:var(--tx2)}
  .bal .bq-v{font-size:24px}
  .bal .bq-e .bq-v{font-size:28px}
  .bal .bq-w{font-size:17px}
  .bal .bm-bar{flex-direction:column;align-items:flex-start}
}
/* REQ-UIX-166 (piece LU): the state line under the head, «Убыль на стоянке не проверена: K стоянок · причина» */
.bal .bal-unchk{display:block;margin-top:4px}
.bal .bal-unchk[hidden]{display:none}
