/* v1.3.233 — Odstupy-only facade row structure.
   LEFT zone contains exactly facade number + facade name.
   CENTRAL zone starts immediately with Length, then Height/Width and metrics. */

/* The left-zone grid has exactly two tracks and no pseudo/spacer track. */
html body #facade-table.facade-zoned-table :is(.pbs-zone-left-grid,.facade-zone-left-grid) {
  display: grid !important;
  grid-template-columns: var(--pbs-facade-number-width, var(--pbs-left-number-min,72px)) minmax(var(--pbs-left-name-min,160px),1fr) !important;
  grid-template-areas: none !important;
  column-gap: var(--pbs-left-zone-gap,3px) !important;
  row-gap: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
}
html body #facade-table.facade-zoned-table :is(.pbs-zone-left-grid,.facade-zone-left-grid)::before,
html body #facade-table.facade-zoned-table :is(.pbs-zone-left-grid,.facade-zone-left-grid)::after {
  content: none !important;
  display: none !important;
}
html body #facade-table.facade-zoned-table :is(.pbs-zone-left-grid,.facade-zone-left-grid) > :nth-child(n+3) {
  display: none !important;
}

/* Number occupies the full first track. Name is the sole second-track item.
   Its editor uses 75% of that track; the remaining 25% is ordinary empty
   space inside the same column, never a cell, sub-column or fixed exclusion. */
html body #facade-table.facade-zoned-table :is(.pbs-zone-left-grid,.facade-zone-left-grid) > :first-child {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
html body #facade-table.facade-zoned-table :is(.pbs-zone-left-grid,.facade-zone-left-grid) > .name-input,
html body #facade-table.facade-zoned-table :is(.pbs-zone-left-grid,.facade-zone-left-grid) > .fc-seg-name,
html body #facade-table.facade-zoned-table :is(.pbs-zone-left-grid,.facade-zone-left-grid) > input:nth-child(2) {
  grid-column: 2 !important;
  width: 75% !important;
  min-width: 0 !important;
  max-width: 75% !important;
  margin: 0 !important;
  justify-self: start !important;
  box-sizing: border-box !important;
}

/* There is no gutter, reserved control strip, or extra physical column
   between the left zone and the first CENTRAL metric (Length). */
html body #facade-table.facade-zoned-table > thead > tr.facade-zone-header > th:first-child,
html body #facade-table.facade-zoned-table > tbody > tr > td.facade-zone-left {
  padding-right: 0 !important;
}
html body #facade-table.facade-zoned-table > thead > tr.facade-zone-header > th:nth-child(2),
html body #facade-table.facade-zoned-table > tbody > tr > td.facade-zone-middle {
  padding-left: 0 !important;
}
html body #facade-table.facade-zoned-table > colgroup > col.facade-zone-left-col + col.facade-zone-middle-col {
  margin-left: 0 !important;
}

/* Length and Height/Width use normal textboxes only. Scrubber/circle-dot
   controls are forbidden in the first two central tracks, including any
   legacy markup that might be restored by an older render path. */
html body #facade-table.facade-zoned-table .facade-zone-middle-grid > :nth-child(1) .lever-dial,
html body #facade-table.facade-zoned-table .facade-zone-middle-grid > :nth-child(2) .lever-dial {
  display: none !important;
}
html body #facade-table.facade-zoned-table .facade-zone-middle-grid > :nth-child(1) .num-wrap,
html body #facade-table.facade-zoned-table .facade-zone-middle-grid > :nth-child(2) .num-wrap {
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
}
html body #facade-table.facade-zoned-table .facade-zone-middle-grid > :nth-child(1) .metric-input-shell,
html body #facade-table.facade-zoned-table .facade-zone-middle-grid > :nth-child(2) .metric-input-shell {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}
