/* v1.3.252 — final openings geometry. The viewport content box is the only
   resize input; the table can never feed its own scroll width back into sizing. */
body:has(#main-table.openings-zoned-table) {
  --op-id-min: 72px;
  --op-id-max: 112px;
  --op-name-min: 160px;
  --op-wide: var(--pbs-column-extra-wide, 112px);
  --op-summary-min: var(--pbs-column-extra-wide, 112px);
  --op-actions: var(--pbs-action-five-width, 164px);
  --op-table-min: 956px;
}

#main-table.openings-zoned-table {
  table-layout: fixed !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
}

/* Colgroup is authoritative. */
#main-table.openings-zoned-table > colgroup > col:nth-child(1) { width: var(--op-id-width, 72px) !important; }
#main-table.openings-zoned-table > colgroup > col:nth-child(2) { width: var(--op-name-width, 160px) !important; }
#main-table.openings-zoned-table > colgroup > col:nth-child(3),
#main-table.openings-zoned-table > colgroup > col:nth-child(4),
#main-table.openings-zoned-table > colgroup > col:nth-child(5),
#main-table.openings-zoned-table > colgroup > col:nth-child(6) { width: var(--op-wide) !important; }
#main-table.openings-zoned-table > colgroup > col:nth-child(7) { width: var(--op-summary-width, 112px) !important; }
#main-table.openings-zoned-table > colgroup > col:nth-child(8) { width: var(--op-actions) !important; }

/* Prevent old cell rules from inflating or redistributing the colgroup tracks. */
#main-table.openings-zoned-table > thead > tr:not(.main-filter-header-row) > th,
#main-table.openings-zoned-table > tbody > tr:not(.accordion-tray) > td,
#main-table.openings-zoned-table > tfoot > tr > td {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: none !important;
}

/* SO and HO editors consume the complete inner cell width. */
#main-table.openings-zoned-table > tbody > tr:not(.accordion-tray) > td:nth-child(5) > .unit-input-wrapper,
#main-table.openings-zoned-table > tbody > tr:not(.accordion-tray) > td:nth-child(6) > .unit-input-wrapper,
#main-table.openings-zoned-table > tfoot > tr > td:nth-child(5) > .unit-input-wrapper,
#main-table.openings-zoned-table > tfoot > tr > td:nth-child(6) > .unit-input-wrapper {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
#main-table.openings-zoned-table > tbody > tr:not(.accordion-tray) > td:nth-child(5) input,
#main-table.openings-zoned-table > tbody > tr:not(.accordion-tray) > td:nth-child(6) input,
#main-table.openings-zoned-table > tfoot > tr > td:nth-child(5) input,
#main-table.openings-zoned-table > tfoot > tr > td:nth-child(6) input {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Nested table cannot create geometry. It receives exact values from the main table. */
#main-table.openings-zoned-table > tbody > tr.accordion-tray > td {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
#main-table.openings-zoned-table .openings-table {
  table-layout: fixed !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  max-width: none !important;
}
#main-table.openings-zoned-table .openings-table > colgroup > col:nth-child(3),
#main-table.openings-zoned-table .openings-table > colgroup > col:nth-child(4),
#main-table.openings-zoned-table .openings-table > colgroup > col:nth-child(5),
#main-table.openings-zoned-table .openings-table > colgroup > col:nth-child(6) {
  width: var(--op-wide) !important;
  min-width: var(--op-wide) !important;
  max-width: var(--op-wide) !important;
}
#main-table.openings-zoned-table .openings-table th,
#main-table.openings-zoned-table .openings-table td {
  box-sizing: border-box !important;
}
