/* Report filters must allow Virtual Select dropdowns to extend outside the card. */
.stage24-report-filters {overflow: visible !important;position:relative;z-index:5}
.stage24-report-filters .card-body {overflow:visible !important}
.stage24-report-filters .vscomp-ele {width:100%;min-width:0}
.stage24-report-select {width:100%;min-width:0}
.stage24-quantity-table th:first-child {position:sticky;left:0;background:var(--bs-body-bg,#fff);z-index:2;min-width:180px}
.stage24-quantity-table th,.stage24-quantity-table td {white-space:nowrap}

/* Stage 24 Fix 1: labels must occupy their own line above native/Virtual Select controls.
   Bootstrap's inline-block .form-label otherwise sits beside short values like "Тип". */
.stage24-report-filters .form-label,
.dashboard-quick-filter-field > .form-label {
  display: block;
  width: 100%;
}

/* Stage 24 Fix 2: Tabulator scrolls in a viewport-sized area, never expands the page width. */
.stage24-quantity-card,
.stage24-quantity-card > .card-body,
.stage24-quantity-grid {min-width:0; max-width:100%}
.stage24-quantity-grid {width:100%; overflow:hidden}
.stage24-quantity-grid .tabulator {width:100%; max-width:100%; border:1px solid var(--bs-border-color,#dee2e6); border-radius:8px}
.stage24-quantity-grid .tabulator-tableholder {overflow:auto !important}
.stage24-quantity-grid .tabulator-cell {white-space:nowrap}
.stage24-quantity-grid .tabulator-cell.tabulator-frozen,
.stage24-quantity-grid .tabulator-col.tabulator-frozen {background:var(--bs-body-bg,#fff)}
.stage24-quantity-grid a {color:var(--bs-primary,#4f56e8);text-decoration:none}
.stage24-quantity-grid a:hover {text-decoration:underline}
