/* v1.3.236 — Odstupy-only final header alignment and boundary cleanup. */

/* Standard central widths. Length and Height remain equal; p and Distance use
   the regular central token. Otv retains the established wide summary token. */
html body #facade-table.facade-zoned-table {
  --odstupy-length-column: var(--pbs-column-extra-wide,112px);
  --odstupy-width-column: var(--pbs-column-extra-wide,112px);
  --odstupy-p-column: var(--pbs-column-regular,88px);
  --odstupy-opening-count-column: var(--pbs-column-regular,88px);
  --odstupy-standard-column: var(--pbs-column-regular,88px);
  --odstupy-distance-column: var(--pbs-column-regular,88px);
  --facadeMiddleWidth: calc(
    var(--odstupy-length-column) +
    var(--odstupy-width-column) +
    var(--odstupy-p-column) +
    var(--odstupy-opening-count-column) +
    (var(--odstupy-standard-column) * 4)
  ) !important;
  --facadeMinTableWidth: calc(
    var(--pbs-left-zone-min,235px) +
    var(--facadeMiddleWidth) +
    var(--facadeRightZone,72px)
  ) !important;
}

html body #facade-table.facade-zoned-table .facade-zone-middle-grid {
  grid-template-columns:
    var(--odstupy-length-column)
    var(--odstupy-width-column)
    var(--odstupy-p-column)
    var(--odstupy-opening-count-column)
    var(--odstupy-standard-column)
    var(--odstupy-standard-column)
    var(--odstupy-standard-column)
    var(--odstupy-distance-column) !important;
  width: var(--facadeMiddleWidth) !important;
  min-width: var(--facadeMiddleWidth) !important;
  max-width: var(--facadeMiddleWidth) !important;
}

html body #facade-table.facade-zoned-table > colgroup > col.facade-zone-middle-col,
html body #facade-table.facade-zoned-table > thead > tr > th:nth-child(2),
html body #facade-table.facade-zoned-table > tbody > tr > td.facade-zone-middle {
  width: var(--facadeMiddleWidth) !important;
  min-width: var(--facadeMiddleWidth) !important;
  max-width: var(--facadeMiddleWidth) !important;
}

/* Remove the artificial boundary strip in the filtering row. The textbox ends
   at the true right edge of LEFT; the grouping control starts at the true left
   edge of CENTRAL and supplies only its own ordinary internal padding. */
html body #facade-table.facade-zoned-table > thead > tr.facade-filter-row > th.facade-zone-left {
  padding-right: 0 !important;
}
html body #facade-table.facade-zoned-table > thead > tr.facade-filter-row > th.facade-zone-middle {
  padding-left: 0 !important;
}
html body #facade-table.facade-zoned-table .facade-filter-left-grid {
  width: 100% !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
}
html body #facade-table.facade-zoned-table .facade-filter-left-grid > #facade-header-filter {
  width: 100% !important;
  max-width: 100% !important;
  margin-right: 0 !important;
  justify-self: stretch !important;
}
html body #facade-table.facade-zoned-table .facade-filter-middle-grid {
  margin-left: 0 !important;
  padding-left: 0 !important;
}
html body #facade-table.facade-zoned-table .facade-filter-middle-grid > .facade-header-grouping {
  margin-left: 0 !important;
  padding-left: 6px !important;
}

/* Header alignment contract for the eight CENTRAL tracks. */
html body #facade-table.facade-zoned-table > thead > tr.facade-zone-header
  .facade-zone-middle-grid > :nth-child(1),
html body #facade-table.facade-zoned-table > thead > tr.facade-zone-header
  .facade-zone-middle-grid > :nth-child(2),
html body #facade-table.facade-zoned-table > thead > tr.facade-zone-header
  .facade-zone-middle-grid > :nth-child(4) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
html body #facade-table.facade-zoned-table > thead > tr.facade-zone-header
  .facade-zone-middle-grid > :nth-child(5),
html body #facade-table.facade-zoned-table > thead > tr.facade-zone-header
  .facade-zone-middle-grid > :nth-child(6),
html body #facade-table.facade-zoned-table > thead > tr.facade-zone-header
  .facade-zone-middle-grid > :nth-child(8) {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  text-align: right !important;
}
html body #facade-table.facade-zoned-table > thead > tr.facade-zone-header
  .facade-zone-middle-grid > :nth-child(7) {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

/* Distance values and units are right-aligned inside the now-standard track. */
html body #facade-table.facade-zoned-table .facade-zone-middle-grid > :nth-child(8),
html body #facade-table.facade-zoned-table .facade-distance-value,
html body #facade-table.facade-zoned-table .facade-distance-message,
html body #facade-table.facade-zoned-table .facade-distance-dual {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  text-align: right !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  white-space: nowrap !important;
}
html body #facade-table.facade-zoned-table .facade-zone-middle-grid > :nth-child(8) {
  padding-left: 4px !important;
  padding-right: 6px !important;
}
