/* v1.3.254 — final scoped table corrections. */

/* OPENINGS -------------------------------------------------------------- */
/* Opening description editor occupies exactly 75% of its first subtable column. */
#main-table.openings-zoned-table .openings-table tbody td:first-child .pbs-name-gap-layout{
  display:flex!important; align-items:center!important; width:100%!important; min-width:0!important;
}
#main-table.openings-zoned-table .openings-table tbody td:first-child .pbs-name-gap-layout > input,
#main-table.openings-zoned-table .openings-table tbody td:first-child input[id^="input-nazov-"]{
  flex:0 0 75%!important; width:75%!important; min-width:0!important; max-width:75%!important; box-sizing:border-box!important;
}
#main-table.openings-zoned-table .openings-table tbody td:first-child .pbs-row-selection-zone{
  flex:1 1 25%!important; width:auto!important; min-width:0!important; max-width:none!important;
}
/* Creation footer follows Area / Height / SO / HO / dynamic Opening Summary. */
#main-table.openings-zoned-table tfoot td:nth-child(3),
#main-table.openings-zoned-table tfoot td:nth-child(4),
#main-table.openings-zoned-table tfoot td:nth-child(5),
#main-table.openings-zoned-table tfoot td:nth-child(6){
  width:var(--pbs-fixed-wide,112px)!important; min-width:var(--pbs-fixed-wide,112px)!important; max-width:var(--pbs-fixed-wide,112px)!important;
}
#main-table.openings-zoned-table tfoot td:nth-child(3) .unit-input-wrapper,
#main-table.openings-zoned-table tfoot td:nth-child(4) .unit-input-wrapper,
#main-table.openings-zoned-table tfoot td:nth-child(5) .unit-input-wrapper,
#main-table.openings-zoned-table tfoot td:nth-child(6) .unit-input-wrapper{
  display:flex!important; width:100%!important; min-width:0!important; box-sizing:border-box!important;
}
#main-table.openings-zoned-table tfoot td:nth-child(3) input,
#main-table.openings-zoned-table tfoot td:nth-child(4) input,
#main-table.openings-zoned-table tfoot td:nth-child(5) input,
#main-table.openings-zoned-table tfoot td:nth-child(6) input{
  flex:1 1 0!important; width:auto!important; min-width:0!important; max-width:none!important; box-sizing:border-box!important;
}
#main-table.openings-zoned-table tfoot .opening-summary-footer-note{
  width:var(--pbs-openings-flex,136px)!important; min-width:var(--pbs-openings-flex,136px)!important; max-width:var(--pbs-openings-flex,136px)!important;
  color:#64748b!important; text-align:left!important; vertical-align:middle!important;
}

/* FIRE HAZARD ----------------------------------------------------------- */
/* Reserve eight real pixels between the final white-arrow pair and right action zone. */
#main-table.fire-hazard-zoned-table{
  --fhFinalSafetyGap:8px;
  --finalActionReserve:calc((var(--iconSize) * 2) + var(--iconGap) + var(--fhFinalSafetyGap))!important;
}
#main-table.fire-hazard-zoned-table .fire-load-fixed-wrapper,
#main-table.fire-hazard-zoned-table .fire-load-header-grid,
#main-table.fire-hazard-zoned-table .fire-load-footer-grid{
  overflow:visible!important;
}
#main-table.fire-hazard-zoned-table .fh-right-main-cell{
  padding-left:6px!important; padding-right:0!important; overflow:visible!important;
}
#main-table.fire-hazard-zoned-table .fh-right-main-cell .action-cluster{
  margin-left:auto!important; margin-right:0!important;
}

/* FIRE COMPARTMENTS ----------------------------------------------------- */
/* Main and room-subtable central zones use the exact same physical box model. */
#fc-table.fc-zoned-table th.fc-zone-middle,
#fc-table.fc-zoned-table td.fc-zone-middle,
.room-table.room-table-zoned th.room-zone-middle,
.room-table.room-table-zoned td.room-zone-middle{
  padding-left:0!important; padding-right:0!important; overflow:hidden!important; box-sizing:border-box!important;
}
#fc-table.fc-zoned-table .fc-main-center-grid,
.room-table.room-table-zoned .fc-room-center-grid{
  margin:0!important; box-sizing:border-box!important;
}
/* Room Height editor fills its complete track; the metre suffix is inside the input border. */
.room-table.room-table-zoned .fc-meter-input-wrapper{
  position:relative!important; display:block!important; width:100%!important; min-width:0!important; max-width:100%!important;
  margin:0!important; padding:0!important; box-sizing:border-box!important;
}
.room-table.room-table-zoned .fc-meter-input-wrapper .height-editor-input{
  display:block!important; width:100%!important; min-width:0!important; max-width:100%!important;
  padding-right:18px!important; text-align:right!important; box-sizing:border-box!important;
}
.room-table.room-table-zoned .fc-meter-input-wrapper .fc-meter-unit{
  position:absolute!important; right:5px!important; top:50%!important; transform:translateY(-50%)!important;
  margin:0!important; padding:0!important; pointer-events:none!important; line-height:1!important;
}
/* Keep p, a and NP inside their own exact tracks, never under the action zone. */
.room-table.room-table-zoned .fc-room-center-grid > *{
  min-width:0!important; max-width:100%!important; box-sizing:border-box!important; overflow:hidden!important;
}
.room-table.room-table-zoned .fc-room-center-grid input{
  width:100%!important; min-width:0!important; max-width:100%!important; box-sizing:border-box!important;
}
