/* v1.3.262 — Fire Hazard central/right-zone boundary correction.
   The last central action button must finish at the middle-zone boundary.
   The duplicate button then starts after one explicit 4px spacing unit.

   Right-zone geometry for two 28px icons:
   4px left padding + 28px icon + 4px gap + 28px icon + 4px right padding = 68px.
*/
#main-table.fire-hazard-zoned-table {
  --pbs-fh-boundary-gap: 4px;
  --pbs-fh-right-width: calc(
    (2 * var(--iconSize)) + (3 * var(--pbs-fh-boundary-gap))
  );
  --rightWidth: var(--pbs-fh-right-width) !important;
}

/* The middle cell and its fire-load track must have identical physical width.
   Do not place a full-width child inside a parent whose padding reduces its
   content box; that previously pushed the double-arrow under the right cell. */
#main-table.fire-hazard-zoned-table
.fh-middle-grid > .fire-load-group-cell,
#main-table.fire-hazard-zoned-table
.fh-middle-grid > .fh-footer-fire-load-cell {
  width: var(--fhFireLoadWidth) !important;
  min-width: var(--fhFireLoadWidth) !important;
  max-width: var(--fhFireLoadWidth) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#main-table.fire-hazard-zoned-table
.fh-middle-grid > .fire-load-group-cell > .fire-load-fixed-wrapper,
#main-table.fire-hazard-zoned-table
.fh-middle-grid > .fh-footer-fire-load-cell > .fire-load-footer-grid {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* One explicit 4px visible gap separates the double-arrow button border from
   the duplicate-button border. No hidden reserve track or 8px separator. */
#main-table.fire-hazard-zoned-table col.fh-right-main-col,
#main-table.fire-hazard-zoned-table th.fh-right-main-cell,
#main-table.fire-hazard-zoned-table td.fh-right-main-cell {
  width: var(--pbs-fh-right-width) !important;
  min-width: var(--pbs-fh-right-width) !important;
  max-width: var(--pbs-fh-right-width) !important;
}

#main-table.fire-hazard-zoned-table th.fh-right-main-cell,
#main-table.fire-hazard-zoned-table td.fh-right-main-cell {
  padding: 2px var(--pbs-fh-boundary-gap) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#main-table.fire-hazard-zoned-table
.fh-right-main-cell .action-cluster {
  display: grid !important;
  grid-template-columns: repeat(2, var(--iconSize)) !important;
  column-gap: var(--pbs-fh-boundary-gap) !important;
  justify-content: start !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Keep the complete border of both white transfer buttons visible. */
#main-table.fire-hazard-zoned-table
.fire-load-fixed-wrapper .icon-btn.btn-assign-complete,
#main-table.fire-hazard-zoned-table
.fire-load-fixed-wrapper .icon-btn.btn-assign-all-complete {
  position: relative !important;
  z-index: 1 !important;
  border: 1px solid var(--pbs-fire-hazard-complete-action-fg, #475569) !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
