/* v1.3.204 — FINAL rendered-layout contract. This file MUST be loaded last. */
:root{
  --pbs-
  --pbs-half:44px; --pbs-regular:88px; --pbs-wide:112px;
  --pbs-cell-pad:3px; --pbs-gap:4px; --pbs-icon:28px;
  --pbs-separator:#cbd5e1; --pbs-header:#001f3f;
  --pbs-input- --pbs-row:32px;
}
html,body,table,thead,tbody,tfoot,tr,th,td,input,button,select,textarea,span,div,label,svg text{
  
}
#main-table th,#fc-table th,#facade-table th{background:var(--pbs-header)!important;color:#fff!important;padding:3px!important;vertical-align:middle!important;box-sizing:border-box!important}
#main-table td,#fc-table td,#facade-table td,.room-table td,.opening-table td{border-bottom-color:var(--pbs-separator)!important}

/* FIRE HAZARD — exact 13-track value grid; no hidden reserve column. */
#main-table.fire-hazard-zoned-table{
  --fh-level:var(--pbs-half)!important;
  --fh-value-grid:calc((var(--pbs-regular)*3) + (var(--pbs-half)*2) + (var(--pbs-icon)*8) + (var(--pbs-gap)*12))!important;
  --rightWidth:68px!important;
  min-width:calc(204px + var(--fh-level) + var(--fh-value-grid) + var(--rightWidth))!important;
}
#main-table.fire-hazard-zoned-table .fh-middle-grid{grid-template-columns:var(--pbs-half) var(--fh-value-grid)!important;column-gap:3px!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{
  display:grid!important;
  grid-template-columns:var(--pbs-regular) var(--pbs-half) repeat(3,var(--pbs-icon)) var(--pbs-regular) repeat(3,var(--pbs-icon)) var(--pbs-regular) var(--pbs-half) repeat(2,var(--pbs-icon))!important;
  column-gap:var(--pbs-gap)!important;
  width:var(--fh-value-grid)!important;min-width:var(--fh-value-grid)!important;max-width:var(--fh-value-grid)!important;
  align-items:center!important;
}
#main-table.fire-hazard-zoned-table .fire-head-reserve{display:none!important;width:0!important;min-width:0!important;max-width:0!important}
#main-table.fire-hazard-zoned-table .fire-load-header-grid .fire-head-label,
#main-table.fire-hazard-zoned-table .fire-load-header-grid .fire-head-label em{
  width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;
  display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;
}
#main-table.fire-hazard-zoned-table .fire-load-header-grid .fire-head-label:first-child{justify-content:center!important;text-align:center!important}
#main-table.fire-hazard-zoned-table .fh-middle-main-cell{padding-right:0!important}
#main-table.fire-hazard-zoned-table .fh-right-main-cell{width:68px!important;min-width:68px!important;max-width:68px!important;padding:0 4px!important;box-sizing:border-box!important}
#main-table.fire-hazard-zoned-table .fh-right-main-cell .action-cluster{display:grid!important;grid-template-columns:repeat(2,var(--pbs-icon))!important;gap:var(--pbs-gap)!important;width:60px!important;margin:0!important;justify-content:start!important}
#main-table.fire-hazard-zoned-table .main-level-cell,
#main-table.fire-hazard-zoned-table .fire-level-input{width:var(--pbs-half)!important;min-width:var(--pbs-half)!important;max-width:var(--pbs-half)!important;text-align:center!important}

/* FIRE COMPARTMENTS — one set of variables for main table and room subtable. */
#fc-table,.room-table.room-table-zoned{
  --fc-number-min:44px;--fc-number-max:112px;--fc-name-min:160px;
  --fc-length:112px;--fc-regular:88px;--fc-half:44px;
  --fc-middle:calc(112px + 88px + 88px + 88px + 44px + 44px + 20px);
  --fc-right:194px;
  
}
#fc-table>thead>tr,#fc-table>thead>tr>th,.room-table.room-table-zoned>thead>tr,.room-table.room-table-zoned>thead>tr>th{height:var(--pbs-row)!important;min-height:var(--pbs-row)!important;padding-top:3px!important;padding-bottom:3px!important;box-sizing:border-box!important}
#fc-table>tbody>tr>td,.room-table.room-table-zoned>tbody>tr>td{border-bottom:1px solid var(--pbs-separator)!important}
#fc-table .fc-main-center-grid,.room-table.room-table-zoned .fc-room-center-grid{
  grid-template-columns:112px 88px 88px 88px 44px 44px!important;column-gap:4px!important;
  width:var(--fc-middle)!important;min-width:var(--fc-middle)!important;max-width:var(--fc-middle)!important;
}
#fc-table>colgroup>.fc-zone-middle-col,#fc-table th.fc-zone-middle,#fc-table td.fc-zone-middle,
.room-table.room-table-zoned>colgroup>.room-zone-middle-col,.room-table.room-table-zoned th.room-zone-middle,.room-table.room-table-zoned td.room-zone-middle{
  width:var(--fc-middle)!important;min-width:var(--fc-middle)!important;max-width:var(--fc-middle)!important;
}
#fc-table>colgroup>.fc-zone-right-col,#fc-table th.fc-zone-right,#fc-table td.fc-zone-right,
.room-table.room-table-zoned>colgroup>.room-zone-right-col,.room-table.room-table-zoned th.room-zone-right,.room-table.room-table-zoned td.room-zone-right{
  width:var(--fc-right)!important;min-width:var(--fc-right)!important;max-width:var(--fc-right)!important;box-sizing:border-box!important;padding-left:3px!important;padding-right:3px!important;
}
#fc-table .fc-right-actions,.room-table.room-table-zoned .fc-sub-right-actions{
  display:grid!important;grid-template-columns:repeat(6,var(--pbs-icon))!important;column-gap:var(--pbs-gap)!important;
  width:188px!important;min-width:188px!important;max-width:188px!important;margin:0 0 0 auto!important;justify-content:end!important;align-items:center!important;
}
.room-table.room-table-zoned .fc-sub-right-actions{grid-template-columns:repeat(4,var(--pbs-icon))!important;width:124px!important;min-width:124px!important;max-width:124px!important;margin-left:auto!important}
#fc-table .fc-length-editor{display:grid!important;grid-template-columns:minmax(0,1fr) 28px!important;column-gap:4px!important;width:106px!important;min-width:106px!important;max-width:106px!important;align-items:center!important;overflow:visible!important}
#fc-table .fc-length-editor .unit-input-wrapper{width:74px!important;min-width:74px!important;max-width:74px!important;margin:0!important}
#fc-table .fc-length-editor .fc-length-lever{width:28px!important;min-width:28px!important;max-width:28px!important;margin:0!important}
#fc-table .fc-main-center-grid>span:last-child,#fc-table .fc-manual-level-input,
.room-table.room-table-zoned .fc-room-center-grid>span:last-child,.room-table.room-table-zoned .level-input{
  width:44px!important;min-width:44px!important;max-width:44px!important;text-align:center!important;box-sizing:border-box!important;
}
.room-table.room-table-zoned,.room-table.room-table-zoned *{}
.room-table.room-table-zoned thead th,.room-table.room-table-zoned thead th span,.room-table.room-table-zoned thead th em{
  
}
.room-table.room-table-zoned tbody td,.room-table.room-table-zoned tbody td span,.room-table.room-table-zoned tbody input{
  
}
.room-table.room-table-zoned .fixed-text{}

/* ODSTUPY — exact FC-length editor construction for facade length and height. */
#facade-table,#facade-table *{}
#facade-table>thead>tr>th,#facade-table .opening-table>thead>tr>th{background:var(--pbs-header)!important;color:#fff!important}
#facade-table .facade-zone-middle-grid{grid-template-columns:112px 112px 88px 88px 88px 88px 88px 88px!important;column-gap:4px!important;align-items:center!important}
#facade-table .facade-metric-wide .num-wrap,#facade-table .facade-metric-wide.num-wrap,
#facade-table .facade-zone-middle-grid>.facade-metric-wide{
  display:grid!important;grid-template-columns:minmax(0,1fr) 28px!important;column-gap:4px!important;width:106px!important;min-width:106px!important;max-width:106px!important;align-items:center!important;overflow:visible!important;
}
#facade-table .facade-metric-wide .metric-input-shell{width:74px!important;min-width:74px!important;max-width:74px!important;margin:0!important;position:relative!important;display:block!important}
#facade-table .facade-metric-wide .metric-input-shell input{width:74px!important;min-width:74px!important;max-width:74px!important;padding-right:22px!important;box-sizing:border-box!important}
#facade-table .facade-metric-wide .lever-dial{width:28px!important;min-width:28px!important;max-width:28px!important;margin:0!important}
#facade-table .metric-input-shell .unit{display:block!important;position:absolute!important;right:6px!important;top:50%!important;transform:translateY(-50%)!important;pointer-events:none!important}
#facade-table .metric-input-shell:focus-within .unit{display:none!important}
#facade-table .opening-table--empty-facade{background:transparent!important;border:0!important;box-shadow:none!important}
#facade-table .opening-table--empty-facade thead{display:none!important}
#facade-table .opening-table--empty-facade .empty-facade-message-row td{background:#ffd6d6!important;color:#7f1d1d!important;border:1px solid #fca5a5!important;border-radius:4px!important;text-align:left!important;padding:8px 10px!important}
