/* v1.3.234 — Odstupy-only header, central-zone and row alignment corrections. */

/* The filtering textbox is a header control, not a row Name editor. It fills
   the complete second track of the left zone. */
html body #facade-table.facade-zoned-table .facade-filter-left-grid > #facade-header-filter {
  grid-column: 2 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  justify-self: stretch !important;
  box-sizing: border-box !important;
}

/* Grouping belongs to CENTRAL. Its checkbox starts at the central-zone left
   edge, with ordinary cell padding, exactly like Fire Hazard/Compartments. */
html body #facade-table.facade-zoned-table .facade-filter-middle-grid {
  align-items: center !important;
  text-align: left !important;
}
html body #facade-table.facade-zoned-table .facade-filter-middle-grid > .facade-header-grouping {
  grid-column: 1 / span 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  justify-self: start !important;
  gap: 6px !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding-left: 6px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}
html body #facade-table.facade-zoned-table .facade-filter-middle-grid > .facade-header-grouping > input {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

/* Openings summary (Otv, fourth central track) uses the established wide
   column token. Keep every other central track on its existing token. */
html body #facade-table.facade-zoned-table {
  --facadeMiddleWidth: calc((var(--dotEditorColumn,110px) * 2) + var(--wideColumn,112px) + (var(--regularColumn,96px) * 5)) !important;
  --facadeMinTableWidth: calc(260px + var(--facadeMiddleWidth) + var(--facadeRightZone)) !important;
}
html body #facade-table.facade-zoned-table .facade-zone-middle-grid {
  grid-template-columns:
    var(--dotEditorColumn,110px)
    var(--dotEditorColumn,110px)
    var(--regularColumn,96px)
    var(--regularColumn,96px)
    var(--regularColumn,96px)
    var(--regularColumn,96px)
    var(--regularColumn,96px)
    var(--regularColumn,96px) !important;
  width: var(--facadeMiddleWidth) !important;
  min-width: var(--facadeMiddleWidth) !important;
  max-width: var(--facadeMiddleWidth) !important;
}

/* P values and their editable/read-only wrappers occupy the full row height
   and are centered vertically; cancel legacy top-biased margins/baselines. */
html body #facade-table.facade-zoned-table .facade-zone-middle-grid > :nth-child(3),
html body #facade-table.facade-zoned-table .facade-pv-cell,
html body #facade-table.facade-zoned-table .facade-pv-edit,
html body #facade-table.facade-zoned-table .facade-pv-readonly,
html body #facade-table.facade-zoned-table .num-wrap--pv,
html body #facade-table.facade-zoned-table .num-wrap--pv .metric-input-shell {
  align-self: stretch !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  height: 100% !important;
  min-height: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  vertical-align: middle !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
}
html body #facade-table.facade-zoned-table .facade-pv-edit,
html body #facade-table.facade-zoned-table .num-wrap--pv {
  justify-content: center !important;
}
