.csv-table.hidden {
  display: none; /* Hide CSV data until it is rendered */
}

.dataTable.center-content {
  text-align: center;
}


.dataTables_wrapper table.dataTable thead .sorting,
.dataTables_wrapper table.dataTable thead .sorting_desc,
.dataTables_wrapper table.dataTable thead .sorting_asc {
  background-image: unset !important;
}

.dataTable .dt-search-left-aligned .dataTables_filter {
  float: left;
}

.dataTable .dt-search-right-aligned .dataTables_filter {
  float: right;
}

.dataTable .dt-search-submit {
  margin-left: 10px;
}

.dataTable .dt-layout-cell label {
  display: inline;
}

@media screen and (max-width: 1199px) {
  .dataTable .dt-search-right-aligned .dataTables_filter {
    float: left;
    clear: both;
  }
}

.dt-scroll-body {
  background: -webkit-gradient(linear, left top, right top, color-stop(30%, #fff), to(rgba(255, 255, 255, 0))), -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), color-stop(70%, #fff)) 0 100%, -webkit-gradient(linear, left top, right top, color-stop(30%, #DCDCDC), to(rgba(255, 255, 255, 0))), -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), color-stop(70%, #DCDCDC)) 0 100%, 0 100%;
  background: -o-linear-gradient(left, #fff 30%, rgba(255, 255, 255, 0)), -o-linear-gradient(left, rgba(255, 255, 255, 0), #fff 70%) 0 100%, -o-linear-gradient(left, #DCDCDC 30%, rgba(255, 255, 255, 0)), -o-linear-gradient(left, rgba(255, 255, 255, 0), #DCDCDC 70%) 0 100%, 0 100%;
  background: linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)), linear-gradient(to right, rgba(255, 255, 255, 0), #fff 70%) 0 100%, linear-gradient(to right, #DCDCDC 30%, rgba(255, 255, 255, 0)), linear-gradient(to right, rgba(255, 255, 255, 0), #DCDCDC 70%) 0 100%, 0 100%;
  background-repeat: no-repeat;
  background-color: #fff;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-position: 0 0, 100%, 0 0, 100%;
  background-attachment: local, local, scroll, scroll;
  border: 2px solid #dcdcdc;
  overflow-x: auto;
}

/* Ensure scrollbars are always visible on horizontal containers */
.dt-scroll-body {
  overflow-x: scroll;
  overflow-y: hidden;
}

/* Style the horizontal scrollbar for WebKit browsers */
.dt-scroll-body::-webkit-scrollbar {
  -webkit-appearance: none;
  height: 8px;
}

.dt-scroll-body::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.4);
  -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}


.dtfc-top-blocker {
  display: none !important;
}

.dt-scroll-footInner {
  display: none;
}

/*
 *
 * DataTables Responsive hides collapsed cells with `display: none` (via `.dtr-hidden` and inline styles),
 * which removes them from the accessibility tree.
 *
 * This override keeps those cells available to assistive tech by making them visually hidden instead.
 */
table.dataTable td.dtr-hidden,
table.dataTable th.dtr-hidden {
  display: table-cell !important;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/*
 * Sort icon contrast improvements (WCAG 3:1 for non-text elements).
 * Inactive sort icons need higher opacity so they meet contrast requirements.
 * Active and hover/focus states must be visually distinct from inactive.
 */

/*
 * Override CDN DataTables opacity (0.125) with explicit color.
 * This file loads after datatables_cdn dependency, so same-specificity wins.
 */

/* Sort icon SVGs (USWDS-style arrows) */
/* Hide both default DataTables pseudo-elements */
table.dataTable thead>tr>th.dt-orderable-asc span.dt-column-order:before,
table.dataTable thead>tr>th.dt-orderable-desc span.dt-column-order:before,
table.dataTable thead>tr>th.dt-ordering-asc span.dt-column-order:before,
table.dataTable thead>tr>th.dt-ordering-desc span.dt-column-order:before,
table.dataTable thead>tr>th.dt-orderable-asc span.dt-column-order:after,
table.dataTable thead>tr>th.dt-orderable-desc span.dt-column-order:after,
table.dataTable thead>tr>th.dt-ordering-asc span.dt-column-order:after,
table.dataTable thead>tr>th.dt-ordering-desc span.dt-column-order:after {
  display: none;
}

/* Use background-image SVG on the span itself */
table.dataTable thead>tr>th.dt-orderable-asc span.dt-column-order,
table.dataTable thead>tr>th.dt-orderable-desc span.dt-column-order {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon fill='%23555' points='15.17 15 13 17.17 13 6.83 15.17 9 16.58 7.59 12 3 7.41 7.59 8.83 9 11 6.83 11 17.17 8.83 15 7.42 16.41 12 21 16.59 16.41 15.17 15'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  width: 18px;
  height: 18px;
}

/* Active ascending */
table.dataTable thead>tr>th.dt-ordering-asc span.dt-column-order {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23141414' transform='rotate(180, 12, 12)' d='M17 17L15.59 15.59L12.9999 18.17V2H10.9999V18.17L8.41 15.58L7 17L11.9999 22L17 17Z'/%3E%3C/svg%3E");
}

/* Active descending */
table.dataTable thead>tr>th.dt-ordering-desc span.dt-column-order {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23141414' d='M17 17L15.59 15.59L12.9999 18.17V2H10.9999V18.17L8.41 15.58L7 17L11.9999 22L17 17Z'/%3E%3C/svg%3E");
}

/* Hover: darken unsorted icon (only on inactive columns) */
table.dataTable thead>tr>th.dt-orderable-asc:not(.dt-ordering-asc):not(.dt-ordering-desc):hover span.dt-column-order,
table.dataTable thead>tr>th.dt-orderable-desc:not(.dt-ordering-asc):not(.dt-ordering-desc):hover span.dt-column-order {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon fill='%23333' points='15.17 15 13 17.17 13 6.83 15.17 9 16.58 7.59 12 3 7.41 7.59 8.83 9 11 6.83 11 17.17 8.83 15 7.42 16.41 12 21 16.59 16.41 15.17 15'/%3E%3C/svg%3E");
}

/* Focus state for sortable column headers (keyboard navigation) */
table.dataTable thead>tr>th.dt-orderable-asc:focus span.dt-column-order,
table.dataTable thead>tr>th.dt-orderable-desc:focus span.dt-column-order,
table.dataTable thead>tr>th.dt-orderable-asc:focus-within span.dt-column-order,
table.dataTable thead>tr>th.dt-orderable-desc:focus-within span.dt-column-order {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Ensure focus outline is visible for links in responsive child rows */
table.dataTable tr.child a:focus-visible,
table.dataTable .dtr-details a:focus-visible {
  outline: revert;
}