/* v1.3.344 — authoritative main-table header filter width contract.
   Every filtering textbox fills 100% of the header cell/grid track allocated to it. */

html body :is(
  #main-table,
  #fc-table,
  #facade-table,
  #risk-table,
  #size-table,
  .segment-table
) > thead :is(
  tr[class*="filter"],
  tr.main-filter-header-row,
  tr.risk-filter-row
) input:is(
  [id*="filter"],
  [class*="filter-input"]
),
html body :is(
  #room-table-filter-input,
  #fc-header-filter-input,
  #fc-level-filter-input,
  #facade-header-filter,
  #risk-filter,
  #size-filter,
  #filter-input
) {
  display: block !important;
  inline-size: 100% !important;
  width: 100% !important;
  min-inline-size: 0 !important;
  min-width: 0 !important;
  max-inline-size: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-inline: 0 !important;
  justify-self: stretch !important;
  align-self: center !important;
  flex: 1 1 100% !important;
}

/* Header wrappers must also expose their full allocated track to the input. */
html body :is(
  #main-table,
  #fc-table,
  #facade-table,
  #risk-table,
  #size-table,
  .segment-table
) > thead :is(
  tr[class*="filter"],
  tr.main-filter-header-row,
  tr.risk-filter-row
) :is(
  .pbs-zone-left-grid,
  .fc-left-grid,
  .fh-left-grid,
  .facade-zone-left-grid,
  .facade-filter-left-grid,
  .risk-filter-row > th > div,
  .fh-filter-input,
  .fc-filter-input-cell
) {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Override legacy 75% left-zone editor rules only inside header filter rows. */
html body :is(
  #main-table,
  #fc-table,
  #facade-table,
  #risk-table,
  #size-table,
  .segment-table
) > thead :is(
  tr[class*="filter"],
  tr.main-filter-header-row,
  tr.risk-filter-row
) :is(
  .pbs-zone-left-grid,
  .fc-left-grid,
  .fh-left-grid,
  .facade-zone-left-grid
) > input {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  justify-self: stretch !important;
}
