/* SUOAF JD Library staging v58 — desktop-fit Browse table.
   No data or feature changes: PDF ID links, downloads, FLSA labels,
   sorting, sticky headers, pagination, signatures and date formatting stay intact.
   At normal desktop widths show all eight columns without horizontal scrolling.
   On narrow viewports keep the existing table-contained horizontal scrolling. */

/* Avoid indefinite growth of the Job Title column on ultrawide displays. */
#jd-workspace #jd-browse-view {
  width: 100%;
  max-width: 1300px;
  min-width: 0;
  margin-inline: auto;
  box-sizing: border-box;
}
@supports selector(:has(*)) {
  #jd-workspace:has(#jd-mode-browse[aria-pressed="true"]) .jd-view-switch {
    width: 100%;
    max-width: 1300px;
    margin-inline: auto;
    box-sizing: border-box;
  }
}
/* 130 ID + 75 Chapter + 175 Category + 65 Rank + 160 Union +
   160 Mgmt + 100 CER = 865px of stable utility columns.
   At 1300px, Job Title gets about 435px; at the 1170px minimum,
   it gets about 305px, with a tooltip for truncated long titles. */
#jd-workspace #jd-browse-view #demo {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
#jd-workspace #jd-browse-view #demo .dataTables_wrapper {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 1170px !important;
  max-width: none !important;
}
#jd-workspace #jd-browse-view #demo #data-table-container {
  table-layout: fixed !important;
  width: 100% !important;
  min-width: 1170px !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/* Keep DataTables-generated column definitions in agreement with the header.
   The fourth column (Job Title) takes whatever width remains. */
#jd-workspace #jd-browse-view #demo #data-table-container colgroup col:nth-child(1),
#jd-workspace #jd-browse-view #demo #data-table-container thead th:nth-child(1) { width: 130px !important; }
#jd-workspace #jd-browse-view #demo #data-table-container colgroup col:nth-child(2),
#jd-workspace #jd-browse-view #demo #data-table-container thead th:nth-child(2) { width: 75px !important; }
#jd-workspace #jd-browse-view #demo #data-table-container colgroup col:nth-child(3),
#jd-workspace #jd-browse-view #demo #data-table-container thead th:nth-child(3) { width: 175px !important; }
#jd-workspace #jd-browse-view #demo #data-table-container colgroup col:nth-child(4),
#jd-workspace #jd-browse-view #demo #data-table-container thead th:nth-child(4) { width: auto !important; }
#jd-workspace #jd-browse-view #demo #data-table-container colgroup col:nth-child(5),
#jd-workspace #jd-browse-view #demo #data-table-container thead th:nth-child(5) { width: 65px !important; }
#jd-workspace #jd-browse-view #demo #data-table-container colgroup col:nth-child(6),
#jd-workspace #jd-browse-view #demo #data-table-container colgroup col:nth-child(7),
#jd-workspace #jd-browse-view #demo #data-table-container thead th:nth-child(6),
#jd-workspace #jd-browse-view #demo #data-table-container thead th:nth-child(7) { width: 160px !important; }
#jd-workspace #jd-browse-view #demo #data-table-container colgroup col:nth-child(8),
#jd-workspace #jd-browse-view #demo #data-table-container thead th:nth-child(8) { width: 100px !important; }
/* Never let a long JD title bleed into Rank or signature cells. */
#jd-workspace #jd-browse-view #demo #data-table-container tbody td:nth-child(4) {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  max-width: 0 !important;
}
#jd-workspace #jd-browse-view #demo #data-table-container .jd-browse-title-text {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
