/* v1.3.247 — scoped metric-editor fill contract.
   Odstupy: facade Length/Height inputs consume all remaining cell width while
   any trailing content keeps only its intrinsic width.
   Fire compartments: room-height input fills its complete grid cell and the
   metre suffix is rendered inside the input presentation. */

/* -------------------------------------------------------------------------
   Odstupy / facade main rows — Length and Height only
   ------------------------------------------------------------------------- */
#facade-table > tbody > tr.facade-row .facade-zone-middle-grid > .facade-metric-wide {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
  text-align: right !important;
}

#facade-table > tbody > tr.facade-row .facade-zone-middle-grid > .facade-metric-wide > .num-wrap {
  display: flex !important;
  flex: 1 1 auto !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  gap: 0 !important;
  box-sizing: border-box !important;
  text-align: right !important;
}

/* The shell is the flexible item. Any future sibling before or after it keeps
   its intrinsic width and the shell consumes precisely the remaining space. */
#facade-table > tbody > tr.facade-row .facade-zone-middle-grid > .facade-metric-wide .metric-input-shell {
  display: flex !important;
  flex: 1 1 0 !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

#facade-table > tbody > tr.facade-row .facade-zone-middle-grid > .facade-metric-wide .num-input {
  display: block !important;
  flex: 1 1 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  text-align: right !important;
}

#facade-table > tbody > tr.facade-row .facade-zone-middle-grid > .facade-metric-wide .unit {
  text-align: right !important;
}

/* -------------------------------------------------------------------------
   Fire-compartment room subtable — room Height column
   ------------------------------------------------------------------------- */
.room-table.room-table-zoned tbody .fc-room-center-grid > .fc-value-cell:nth-child(3) {
  display: flex !important;
  align-items: center !important;
  justify-content: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.room-table.room-table-zoned tbody .fc-room-center-grid > .fc-value-cell:nth-child(3) > .fc-meter-input-wrapper {
  position: relative !important;
  display: flex !important;
  flex: 1 1 0 !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.room-table.room-table-zoned tbody .fc-room-center-grid > .fc-value-cell:nth-child(3) .height-input.fc-visible-param-input {
  display: block !important;
  flex: 1 1 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
  text-align: right !important;
}

/* Absolute positioning keeps “m” visually inside the input border without
   reserving a separate table/grid track. */
.room-table.room-table-zoned tbody .fc-room-center-grid > .fc-value-cell:nth-child(3) .fc-meter-unit {
  position: absolute !important;
  right: 6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  pointer-events: none !important;
  z-index: 1 !important;
}
