/* v1.3.259 — final scoped visual corrections.
   This file changes no table or zone widths. It restores control borders and
   applies the requested Odstupy header/value alignment on the existing shared grid. */

/* FIRE HAZARD -------------------------------------------------------------
   The white transfer buttons inherit `border:none` from the generic icon-btn.
   Setting only border-color did not create a border, which is why the right
   vertical edge of the white double-arrow could disappear even when space was
   available. Use a real border on both white actions. */
#main-table.fire-hazard-zoned-table .fire-load-fixed-wrapper .icon-btn.btn-assign-complete,
#main-table.fire-hazard-zoned-table .fire-load-fixed-wrapper .icon-btn.btn-assign-all-complete {
  border: 1px solid var(--pbs-fire-hazard-complete-action-fg, #475569) !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

/* ODSTUPY -----------------------------------------------------------------
   Restore the complete textbox rectangle for facade Length and Height. Older
   sizing layers change the shell geometry, but the actual input must retain a
   visible one-pixel border on all four sides. */
#facade-table > tbody > tr.facade-row
.facade-zone-middle-grid > .facade-metric-scrubber .num-input {
  border: 1px solid #94a3b8 !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 1 !important;
}
#facade-table > tbody > tr.facade-row
.facade-zone-middle-grid > .facade-metric-scrubber .num-input:focus {
  border-color: #001f3f !important;
  outline: none !important;
}

/* Header alignment on the authoritative eight-track grid. */
#facade-table .facade-zone-header .facade-zone-middle-grid > :nth-child(3),
#facade-table .facade-zone-header .facade-zone-middle-grid > :nth-child(4) {
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
}
#facade-table .facade-zone-header .facade-zone-middle-grid > :nth-child(7) {
  text-align: right !important;
  justify-content: flex-end !important;
  align-items: center !important;
}
#facade-table .facade-zone-header .pbs-zone-left-grid > :first-child {
  text-align: left !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

/* Fire-compartment subtable header: total openings area is physical cell 7,
   corresponding to central track 6. Align both the cell and any wrapper/value
   inside it to the same right content edge used by body rows. */
#facade-table .opening-table > thead > tr > :nth-child(7) {
  text-align: right !important;
}
#facade-table .opening-table > thead > tr > :nth-child(7) > * {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: flex-end !important;
  text-align: right !important;
}
