.second-column-programs {
  min-width: 200px;
}

.second-column-programs td:first-child {
  text-align: center;
}

/* Hide columns marked with hidden-column class ONLY in the frontend view */
table.dataTable td.hidden-column:not(.ck-editor__nested-editable),
table.dataTable th.hidden-column:not(.ck-editor__nested-editable),
table.datatable td.hidden-column:not(.ck-editor__nested-editable),
table.datatable th.hidden-column:not(.ck-editor__nested-editable),
td.hidden-column:not(.ck-editor__nested-editable),
th.hidden-column:not(.ck-editor__nested-editable) {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* But keep them visible in the editor */
.ck-content .ck-editor__editable table td.hidden-column,
.ck-content .ck-editor__editable table th.hidden-column {
    display: table-cell !important;
}

/* Styles for table facets */
.table-facets {
    margin-bottom: 1rem;
}

/* Only apply these styles when the accordion content is visible */
.table-facets .usa-accordion__content[aria-hidden="false"] {
    padding: 1rem;
    background: #f9f9f9;
    border: 1px solid #ddd;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    overflow: visible;
    width: 100%;
}

/* Hide content when accordion is collapsed */
.table-facets .usa-accordion__content[aria-hidden="true"] {
    display: none;
}

/* Ensure two dropdowns per row */
.facet-wrapper {
    flex: 0 1 calc(50% - 0.5rem);
    width: calc(49% - 0.5rem);
    margin: 0.5%;
    box-sizing: border-box;
    display: inline-block;
}

/* Clear Filters button wrapper */
.clear-filters-wrapper {
    flex: 0 0 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

/* Clear Filters button styling */
.clear-filters-button.usa-button {
    margin: 0;
    font-size: 0.9rem;
}

.facet-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #1b1b1b;
    font-size: 0.9rem;
}

.facet-select.usa-select {
    width: 100%;
    max-width: none;
    margin-top: 0;
}

.facet-select {
    padding: 0.5rem;
    border: 1px solid #565c65;
    border-radius: 0;
    background-color: white;
    width: 100%;
    box-sizing: border-box;
}

.facet-select:focus {
    outline: 0.25rem solid #2491ff;
    outline-offset: 0;
}

.table-facets .usa-accordion__button {
    background-color: #f0f0f0;
    background-image: url(../../../assets/img/usa-icons/expand_more.svg);
    background-position: right 1rem center;
    background-size: 1rem;
    background-repeat: no-repeat;
    color: #1b1b1b;
    cursor: pointer;
    display: inline-block;
    padding: 1rem 3.5rem 1rem 1.25rem;
    width: 100%;
    text-align: left;
}
