﻿.main-content .student-stats.stats-data {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
    border: 0;
    background: #f0f6fb;
    color: #17324d;
}

.main-content .student-stats.stats-data .stats-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 100%;
    width: 100%;
    margin-left: 0;
    order: 1;
    background-color: #fff;
    padding: 12px;
}

.main-content .student-stats.stats-data .pull-right.form-inline {
    float: none;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    width: 100%;
    margin: 0;
    padding: 0;
    order: 2;
    padding: 0 10px !important;
}

.main-content .student-stats.stats-data .inline-search {
    width: min(100%, 340px);
    min-height: 46px;
    margin-left: auto;
    border: 1px solid #d6e0ea;
    border-radius: 6px;
    padding: 11px 16px 11px 42px;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%238a9bad' d='M11.742 10.344l3.387 3.387-1.398 1.398-3.387-3.387a6 6 0 1 1 1.398-1.398zM6.5 11A4.5 4.5 0 1 0 6.5 2a4.5 4.5 0 0 0 0 9z'/%3E%3C/svg%3E") no-repeat 14px center;
    font-size: 1.35rem;
    font-weight: 400;
    color: #35556f;
}

.main-content .student-stats.stats-data .inline-search::placeholder {
    color: #8a9bad;
    font-weight: 400;
}

.main-content .student-stats.stats-data .glyphicon-stats {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 56px;
    order: 1;
    width: 56px;
    height: 56px;
    margin: 0;
    border: 1px solid #dce5ee;
    border-radius: 6px;
    background: linear-gradient(135deg, #ffffff 0%, #eaf1f7 100%);
    font-size: 2.2rem;
    color: #1c6fb8;
}

.main-content .student-stats.stats-data .stat {
    display: flex;
    flex: 1 1 160px;
    flex-direction: column;
    justify-content: center;
    order: 2;
    min-height: 92px;
    margin: 0;
    padding: 16px 18px;
    border: 1px solid #dbe4ed;
    border-right: 0;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 0.115rem 0.3rem 0 rgba(47, 43, 61, 0.12);
    backdrop-filter: blur(4px);
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.main-content .student-stats.stats-data .stat:hover {
    transform: translateY(-2px);
}

.main-content .student-stats.stats-data .stat .count {
    display: block;
    font-size: clamp(2.2rem, 2.8vw, 3rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #14324d;
}

.main-content .student-stats.stats-data .stat .title {
    display: block;
    margin-top: 8px;
    font-size: 1.24rem;
    line-height: 1.4;
    color: #566a7f;
    text-wrap: balance;
}

.main-content .student-stats.stats-data h4.inherit-color {
    width: 100%;
    margin: 0;
    padding: 8px 0;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.4;
    color: #17324d;
}

@media (max-width: 991px) {
    .main-content .student-stats.stats-data .stat {
        flex-basis: calc(33.333% - 10px);
    }
}

@media (max-width: 767px) {
    .main-content .student-stats.stats-data {
        padding: 14px;
        gap: 10px;
        border-radius: 18px;
    }

    .main-content .student-stats.stats-data .stats-toolbar {
        flex: 1 1 100%;
        width: 100%;
        margin-left: 0;
        gap: 10px;
        order: 1;
    }

    .main-content .student-stats.stats-data .inline-search {
        width: 100%;
        margin-left: 0;
    }

    .main-content .student-stats.stats-data .glyphicon-stats {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        font-size: 1.9rem;
    }

    .main-content .student-stats.stats-data .stat {
        flex-basis: calc(50% - 5px);
        min-height: 82px;
        padding: 14px;
    }

    .main-content .student-stats.stats-data .stat .title {
        font-size: 1.18rem;
    }
}

@media (max-width: 479px) {
    .main-content .student-stats.stats-data .stat {
        flex-basis: 100%;
    }
}

/* Responsive table styles */

.main-content .gsh-table {

    position: relative;
    border: 1px solid #dbe4ed;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(24, 54, 83, 0.08);
    max-height: 70vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.main-content .gsh-table .student-list {
    width: 100%;
    min-width: 1080px;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    font-size: 1.35rem;
    line-height: 1.45;
}

.main-content .gsh-table .student-list>thead>tr>th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 10px 14px;
    border: 0;
    background: #dee8f5;
    background-clip: padding-box;
    box-shadow: inset 0 -1px 0 #e8ecf1;
    color: #337ab7;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}

.main-content .table.student-list>thead>tr {
    background-color: transparent;
}

.main-content .gsh-table .student-list>thead>tr>th:first-child {
    padding-left: 18px;
}

.main-content .gsh-table .student-list>thead>tr>th:last-child {
    padding-right: 18px;
}

.main-content .gsh-table .student-list>thead>tr>th a {
    color: #337ab7;
    text-decoration: none;
    font-weight: 600;
}

.main-content .gsh-table .student-list>thead>tr>th a:focus,
.main-content .gsh-table .student-list>thead>tr>th a:active {
    outline: 0;
}

.main-content .gsh-table .student-list>thead>tr>th a:hover {
    color: #0d6fbc;
}

.main-content .gsh-table .student-list>thead>tr>th small {
    display: inline-block;
    margin-top: 3px;
    font-size: 1.05rem;
    text-transform: none;
    color: #75889b;
}

.main-content .gsh-table .student-list>tbody>tr {
    transition: background-color 120ms ease, box-shadow 120ms ease;
}

.main-content .gsh-table .student-list>tbody>tr:nth-of-type(odd) {
    background: #fcfdff;
}

.main-content .gsh-table .student-list>tbody>tr:nth-of-type(even) {
    background: #ffffff;
}

.main-content .gsh-table .student-list>tbody>tr:hover {
    background: #f3f8fd;
}

.main-content .gsh-table .student-list>tbody>tr>td {
    padding: 10px 15px;
    border: 0;
    border-bottom: 1px dashed #c0cdd8;
    color: #294056;
    vertical-align: middle;
    background: transparent;
}

.main-content .gsh-table .student-list>tbody>tr>td:first-child {
    padding-left: 18px;
    width: 48px;
}

.main-content .gsh-table .student-list>tbody>tr>td:last-child {
    padding-right: 18px;
    text-align: center;
}

.main-content .gsh-table .student-list td a {
    color: #173b5f;
    text-decoration: none;
    font-weight: 500;
}

.main-content .gsh-table .student-list td a:hover {
    color: #0d6fbc;
    text-decoration: none;
}

.main-content .gsh-table .student-list td strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #102f4a;
}

.main-content .gsh-table .student-list td em {
    display: block;
    margin-top: 4px;
    font-size: 1.12rem;
    font-style: normal;
    font-weight: 500;
    color: #75889b;
    line-height: 1.45;
}

.main-content .gsh-table .student-list td.status a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    border: 1px solid #d2dee9;
    border-radius: 999px;
    background: #eef3f8;
    color: #337ab7;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.main-content .gsh-table .student-list .flag-container .glyphicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eef4f9;
    color: #7d91a5;
    font-size: 1.45rem;
}

.main-content .gsh-table .student-list .flag-container .glyphicon.active {
    background: #e8f5ec;
    color: #22884f;
}

.main-content .gsh-table .student-list input[type=checkbox] {
    width: 16px;
    height: 16px;
    accent-color: #0d6fbc;
}

@media (max-width: 767px) {
    .main-content .gsh-table {
        margin: 18px;
        border-radius: 6px;
        max-height: none;
    }

    .main-content .gsh-table .student-list {
        min-width: 100%;
        font-size: 1.28rem;
    }

    .main-content .gsh-table .student-list>thead>tr>th,
    .main-content .gsh-table .student-list>tbody>tr>td {
        padding: 12px 10px;
    }

    .main-content .gsh-table .student-list>tbody>tr>td.visible-xs {
        font-size: 1.28rem;
        line-height: 1.55;
    }

    .main-content .gsh-table .student-list>tbody>tr>td.visible-xs br+a,
    .main-content .gsh-table .student-list>tbody>tr>td.visible-xs br+span {
        display: inline-block;
        margin-top: 3px;
    }

    .main-content .gsh-table .student-list td.status a {
        padding: 5px 8px;
        font-size: 1.1rem;
    }
}

/* student filter */

.main-content .student-filters.filter-container {
    padding: 20px;
    border: 1px solid #d8e4ef;
    border-radius: 6px;
    background-color: #ffffff;
    box-shadow: 0 1px 4px rgba(24, 54, 83, 0.08);
    overflow: visible;
}

.main-content .student-filters.filter-container .row {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    margin: 0;
}

.main-content .student-filters.filter-container .col-sm-9 {
    flex: 1 1 0;
    width: auto;
    padding: 0;
}

.main-content .student-filters.filter-container .col-sm-3 {
    flex: 0 0 auto;
    width: auto;
    padding: 0 0 0 12px;
    display: flex;
    align-items: flex-start;
}

.main-content .student-filters.filter-container .filters {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px;
    min-height: 0;
    padding: 16px;
    border: 1px solid #dbe6f0;
    border-radius: 6px;
    background: #f0f6fb;
}

.main-content .student-filters.filter-container .filters>label {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    flex-direction: row !important;
    margin: 0 !important;
    min-width: 160px;
    width: auto;
    vertical-align: top;
}

.main-content .student-filters.filter-container .filters>label .form-control {
    width: 100%;
    display: block !important;
}

.main-content .student-filters.filter-container .filters .form-control,
.main-content .student-filters.filter-container .filter-menu-select {
    width: 100%;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #cfdae6;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: none;
    color: #16324f;
    font-size: 1.2rem;
    font-weight: 500;
    transition: border-color 140ms ease;
}

.main-content .student-filters.filter-container .filters select.form-control:not([multiple]),
.main-content .student-filters.filter-container .filter-menu-select:not([multiple]) {
    background: #ffffff;
    cursor: pointer;
}

.main-content .student-filters.filter-container .filters select.form-control[multiple] {
    padding-right: 16px;
    background-image: none;
}

.main-content .student-filters.filter-container .filters #enrollment_status {
    min-height: 108px;
    padding-right: 16px;
    margin-left: 0;
}

.main-content .student-filters.filter-container .filters .form-control:focus,
.main-content .student-filters.filter-container .filter-menu-select:focus {
    border-color: #5da7e2;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(93, 167, 226, 0.14);
}

.main-content .student-filters.filter-container .filters .form-control.hidden {
    display: none;
}

.main-content .student-filters.filter-container .filter-button,
.main-content .student-filters.filter-container .filter-add-button,
.main-content .student-filters.filter-container .filter-go-button {

    padding: 10px 24px;
    border: 0;
    border-radius: 6px;
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.main-content .student-filters.filter-container .filter-button,
.main-content .student-filters.filter-container .filter-go-button {
    background-color: #0075BC;
}

.main-content .student-filters.filter-container .filter-add-button {
    background-color: #3F8367;
}

.main-content .student-filters.filter-container .filter-button:hover,
.main-content .student-filters.filter-container .filter-add-button:hover,
.main-content .student-filters.filter-container .filter-go-button:hover,
.main-content .student-filters.filter-container .filter-button:focus,
.main-content .student-filters.filter-container .filter-add-button:focus,
.main-content .student-filters.filter-container .filter-go-button:focus {
    outline: 0;
    opacity: 0.9;
}

.main-content .student-filters.filter-container .filter-actions-row,
.main-content .student-filters.filter-container .filter-add-wrap {
    min-height: 0;
    padding: 16px;
    border: 1px solid #dbe6f0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 0.115rem 0.3rem 0 rgba(47, 43, 61, 0.12);
}

.main-content .student-filters.filter-container .filter-side-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: auto;
}

.main-content .student-filters.filter-container .filter-add-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
}

.main-content .student-filters.filter-container .filter-add-button {
    width: 100%;
    margin-left: 0;
    white-space: nowrap;
}

.main-content .student-filters.filter-container .filter-actions-row {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.main-content .student-filters.filter-container .filter-menu-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.main-content .student-filters.filter-container .filter-menu-select,
.main-content .student-filters.filter-container .filter-go-button {
    margin-left: 0;
}

.main-content .student-filters.filter-container .filter-menu-wrap .select2-container {
    width: 100%;
}

.main-content .student-filters.filter-container .filter-menu-wrap .select2-container--default .select2-selection--single {
    min-height: 40px;
    border: 1px solid #cfdae6;
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 6px 16px rgba(24, 54, 83, 0.05);
}

.main-content .student-filters.filter-container .filter-menu-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 14px;
    padding-right: 34px;
    line-height: 38px;
    color: #16324f;
    font-size: 1.28rem;
    font-weight: 500;
}

.main-content .student-filters.filter-container .filter-menu-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
    right: 8px;
}

.main-content .student-filters.filter-container .filter-menu-wrap .select2-container--default.select2-container--focus .select2-selection--single,
.main-content .student-filters.filter-container .filter-menu-wrap .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #5da7e2;
    outline: 0;
}

.select2-container--default .select2-dropdown.student-menu-select2-dropdown {
    border: 1px solid #cfdae6;
    border-radius: 6px;
    box-shadow: 0 16px 28px rgba(24, 54, 83, 0.16);
    overflow: hidden;
}

.select2-container--default .select2-dropdown.student-menu-select2-dropdown .select2-results>.select2-results__options {
    max-height: 240px;
    overflow-y: auto;
}

.select2-container--default .select2-dropdown.student-menu-select2-dropdown .select2-results__group {
    padding: 8px 12px 4px;
    color: #5b7086;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.select2-container--default .select2-dropdown.student-menu-select2-dropdown .select2-results__option {
    padding: 10px 12px;
    font-size: 1.28rem;
    color: #294056;
}

.select2-container--default .select2-dropdown.student-menu-select2-dropdown .select2-results__option--highlighted[aria-selected] {
    background: #eaf4fb;
    color: #16324f;
}

.main-content .student-filters.filter-container .filter-go-wrap {
    flex: 0 0 84px;
}

.main-content .student-filters.filter-container .filter-go-button {
    width: 100%;
    white-space: nowrap;
}

.main-content .student-filters.filter-container .filter-button.hidden {
    display: none;
}

@media (max-width: 767px) {
    .main-content .student-filters.filter-container .filter-menu-wrap {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
    }

    .main-content .student-filters.filter-container .filter-menu-wrap>label,
    .main-content .student-filters.filter-container .filter-menu-wrap>.filter-menu-select,
    .main-content .student-filters.filter-container .filter-menu-wrap>.select2-container {
        display: block;
        width: 100% !important;
        max-width: none;
    }
}

.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) {
    padding: 20px;
    border: 1px solid #d8e4ef;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(24, 54, 83, 0.08);
}

.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) [class*="col-sm-"] {
    margin-bottom: 0;
}

.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border: 1px solid #dbe6f0;
    border-radius: 6px;
    background: #f0f6fb;
}

.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters>label:not(.status-badge-label) {
    flex: 1 1 160px;
    display: flex;
    flex-direction: column;
    margin: 0;
    min-width: 0;
}

.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters>label:not(.status-badge-label) .form-control {
    width: 100%;
}

.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters>label {
    display: flex;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    min-width: 180px;
    margin: 0;
}

.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters>label .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters>label[for="status_updated_at_start"] {
    flex: 0 0 auto;
    min-width: auto;
    margin: 0;
    padding-right: 6px;
    color: #52687c;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    align-self: flex-start;
}

.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters>label p {
    display: flex;
    align-items: center;
    min-height: 34px;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid #d7e3ee;
    border-radius: 6px;
    background: #f7fafc;
    color: #16324f;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: none;
}

.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters>label p b {
    margin-left: 6px;
    color: #0759a2;
    font-weight: 700;
}

.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters .form-control {
    width: 100%;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #cfdae6;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: none;
    color: #16324f;
    font-size: 1.2rem;
    font-weight: 500;
    transition: border-color 140ms ease;
}

.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters select.form-control {
    line-height: 1.4;
    background: #ffffff;
    cursor: pointer;
}

.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters .form-control:focus {
    border-color: #5da7e2;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(93, 167, 226, 0.14);
}

.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters .form-control.hidden {
    display: none;
}

.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters>input.form-control {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
}

.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters>#status_updated_at_start {
    margin-left: 0;
    width: 100%;
}

.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters>.filter-button {
    flex: 0 0 auto;
    min-width: 136px;
    min-height: 40px;
    padding: 8px 18px;
    align-self: center;
    margin: 0 auto;
    border: 0;
    border-radius: 8px;
    background: #0075BC;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters>.filter-button:hover,
.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters>.filter-button:focus {
    outline: 0;
    opacity: 0.9;
}

/* Date range group — keeps label, From, To and Filter button all on one line */
.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters .date-range-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    flex: 1 1 auto;
}

.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters .date-range-group label {
    margin: 0;
    white-space: nowrap;
    font-size: 1.12rem;
    font-weight: 700;
    color: #52687c;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters .date-range-group .form-control {
    width: 208px;
    flex-shrink: 0;
}

.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters .date-range-group .filter-button {
    flex-shrink: 0;
    margin-left: 4px;
    min-width: 100px;
    min-height: 34px;
    padding: 6px 16px;
    border: 0;
    border-radius: 6px;
    background: #0075BC;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 140ms ease;
}

.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters .date-range-group .filter-button:hover,
.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters .date-range-group .filter-button:focus {
    outline: 0;
    opacity: 0.9;
}

/* Enrollment status badge — full width row with left accent border */
.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters .status-badge-label {
    flex: 0 0 100%;
    width: 100%;
    display: flex;

    padding: 10px 14px;
    margin: 0 0 4px 0;
    background: #deeaf7;
    margin: 12px 0;
    border-left: 2px solid #0e5fa8;
    border-radius: 4px;
    text-align: left;
}

.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters .status-badge-label p {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #0a4f8a;
    font-size: 1.15rem;
    font-weight: 600;
    box-shadow: none;
    line-height: 1.3;
}

.main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters .status-badge-label p b {
    color: #0075bc;
    font-weight: 700;
    margin-left: 4px;
}

.main-content .student-filters-summary.base-bg.padded {
    padding: 20px;
    border: 1px solid #d8e4ef;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(24, 54, 83, 0.08);
}

.main-content .student-filters-summary.base-bg.padded .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.main-content .student-filters-summary.base-bg.padded [class*="col-sm-"] {
    margin-bottom: 0;
}

.main-content .student-filters-summary.base-bg.padded .filters {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    border: 1px solid #dbe6f0;
    border-radius: 6px;
    background: #f0f6fb;
}

.main-content .student-filters-summary.base-bg.padded .filters>select.form-control {
    flex: 1 1 160px;
    width: auto;
    min-width: 0;
}

.main-content .student-filters-summary.base-bg.padded .filters>.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.main-content .student-filters-summary.base-bg.padded .filters>select.form-control,
.main-content .student-filters-summary.base-bg.padded .filters>input.form-control,
.main-content .student-filters-summary.base-bg.padded .filters>div {
    width: auto;
    min-width: 0;
    margin: 0;
}

.main-content .student-filters-summary.base-bg.padded .filters .form-control {
    width: auto;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #cfdae6;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: none;
    color: #16324f;
    font-size: 1.2rem;
    font-weight: 500;
    transition: border-color 140ms ease;
}

.main-content .student-filters-summary.base-bg.padded .filters select.form-control {
    line-height: 1.4;
    background: #ffffff;
    cursor: pointer;
}

.main-content .student-filters-summary.base-bg.padded .filters #enrollment_status {
    min-height: 80px;
    background: #ffffff;
}

.main-content .student-filters-summary.base-bg.padded .filters .form-control:focus {
    border-color: #5da7e2;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(93, 167, 226, 0.14);
}

.main-content .student-filters-summary.base-bg.padded .filters .form-control.hidden,
.main-content .student-filters-summary.base-bg.padded .filters>input[hidden] {
    display: none;
}

.main-content .student-filters-summary.base-bg.padded .filters>div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.main-content .student-filters-summary.base-bg.padded .filters>div>label {
    margin: 0;
    white-space: nowrap;
    color: #52687c;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.main-content .student-filters-summary.base-bg.padded .filters>.filter-button {
    align-self: center;
    width: auto;
    min-width: 90px;
    min-height: 34px;
    padding: 6px 16px;
    border: 0;
    border-radius: 6px;
    background: #0075BC;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: opacity 140ms ease;
}

.main-content .student-filters-summary.base-bg.padded .filters>.filter-button:hover,
.main-content .student-filters-summary.base-bg.padded .filters>.filter-button:focus {
    outline: 0;
    opacity: 0.9;
}

.main-content .student-filters-summary.base-bg.padded .col-sm-3 {
    margin-top: 14px;
}

.main-content .student-filters-summary.base-bg.padded .col-sm-3>.row {
    width: 100%;
    margin: 0;
    float: none;
}

.main-content .student-filters-summary.base-bg.padded .col-sm-3 [class*="col-"] {
    width: 100%;
    padding: 0;
}

.main-content .student-filters-summary.base-bg.padded .col-sm-3 .btn.btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 34px;
    margin-top: 0;
    padding: 6px 16px;
    border: 0;
    border-radius: 6px;
    background: #3F8367;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
}

.main-content .student-filters-summary.base-bg.padded .col-sm-3 .btn.btn-success:hover,
.main-content .student-filters-summary.base-bg.padded .col-sm-3 .btn.btn-success:focus {
    text-decoration: none;
    opacity: 0.9;
}

@media (max-width: 991px) {
    .main-content .student-filters.filter-container .row {
        row-gap: 12px;
    }

    .main-content .student-filters.filter-container [class*="col-sm-"] {
        width: 100%;
    }

    .main-content .student-filters.filter-container .filter-add-wrap,
    .main-content .student-filters.filter-container .filter-actions-row {
        align-items: stretch;
    }

    .main-content .student-filters.filter-container .filter-go-wrap {
        flex: 0 0 100%;
    }

    .main-content .student-filters-waiver.base-bg.padded:not(.student-filters) [class*="col-sm-"] {
        width: 100%;
    }

    .main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters>.filter-button {
        margin: 0 auto;
    }

    .main-content .student-filters-summary.base-bg.padded .filters,
    .main-content .student-filters-summary.base-bg.padded .col-sm-3 .btn.btn-success {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .main-content .student-filters.filter-container {
        padding: 14px;
        border-radius: 18px;
    }

    .main-content .student-filters.filter-container .filters,
    .main-content .student-filters.filter-container .filter-side-panel,
    .main-content .student-filters.filter-container .filter-add-wrap,
    .main-content .student-filters.filter-container .filter-actions-row {
        padding: 14px;
        border-radius: 16px;
    }

    .main-content .student-filters.filter-container .filter-side-panel {
        padding: 0;
    }

    .main-content .student-filters.filter-container .filter-add-wrap {
        margin-top: 12px;
    }

    .main-content .student-filters.filter-container .filter-actions-row {
        flex-direction: column;
        gap: 12px;
    }

    .main-content .student-filters.filter-container .filter-go-wrap {
        flex-basis: auto;
        width: 100%;
    }

    .main-content .student-filters.filter-container .filters>label,
    .main-content .student-filters.filter-container .filters>.filter-menu-wrap,
    .main-content .student-filters.filter-container .filters>.filter-go-wrap,
    .main-content .student-filters.filter-container .filters>select.form-control,
    .main-content .student-filters.filter-container .filters>input.form-control {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
    }

    .main-content .student-filters.filter-container .filter-button,
    .main-content .student-filters.filter-container .filter-add-button,
    .main-content .student-filters.filter-container .filter-go-button {
        width: 100%;
    }

    .main-content .student-filters-waiver.base-bg.padded:not(.student-filters) {
        padding: 14px;
        border-radius: 6px;
    }

    .main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters {
        gap: 12px;
        padding: 14px;
        border-radius: 6px;
    }

    .main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters>label,
    .main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters>input.form-control,
    .main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters>.filter-button {
        flex-basis: 100%;
        min-width: 0;
    }

    .main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters .date-range-group {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        flex: 1 1 100%;
        width: 100%;
        gap: 10px;
    }

    .main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters .date-range-group label,
    .main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters .date-range-group .form-control,
    .main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters .date-range-group .filter-button {
        width: 100%;
        min-width: 0;
        max-width: none;
        margin-left: 0;
    }

    .main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters .date-range-group .filter-button {
        justify-content: center;
    }

    .main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters>label[for="status_updated_at_start"] {
        margin: 0;
        padding-right: 0;
    }

    .main-content .student-filters-waiver.base-bg.padded:not(.student-filters) .filters>#status_updated_at_start {
        margin-left: 0;
    }

    .main-content .student-filters-summary.base-bg.padded {
        padding: 14px;
        border-radius: 6px;
    }

    .main-content .student-filters-summary.base-bg.padded [class*="col-sm-"] {
        width: 100%;
    }

    .main-content .student-filters-summary.base-bg.padded .filters {
        gap: 12px;
        padding: 14px;
        border-radius: 6px;
    }

    .main-content .student-filters-summary.base-bg.padded .filters>div {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        flex: 1 1 100%;
        width: 100%;
        gap: 10px;
    }

    .main-content .student-filters-summary.base-bg.padded .filters>div>label,
    .main-content .student-filters-summary.base-bg.padded .filters>div>.form-control {
        width: 100%;
        min-width: 0;
        max-width: none;
        margin: 0;
    }

    .main-content .student-filters-summary.base-bg.padded .filters>.filter-button {
        width: 100%;
        min-width: 0;
    }

    .main-content .student-filters-summary.base-bg.padded .col-sm-3 {
        margin-top: 12px;
    }
}

/* Pagination */
.main-content>.pagination {
    margin: 0px 0 0;
    padding: 18px;
}

.main-content>.pagination .padded {
    padding: 12px 18px;
    background: transparent;
    box-shadow: none;
    border: none;
}

.pagination-bar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px;
    color: #5b7086;
    font-size: 1.3rem;
}

.pagination-bar nav {
    order: 2;
    width: auto;
    margin: 0;
}

.pagination-bar .pagination-info {
    order: 1;
    font-size: 13px;
    color: #4a6278;
}

.main-content>.pagination .pagination {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    width: auto;
    margin: 0;
}

.main-content>.pagination .pagination>li {
    display: inline-flex;
}

.main-content>.pagination .pagination>li>a,
.main-content>.pagination .pagination>li>span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d4dfeb;
    border-radius: 999px;
    background: #f6fafe;
    color: #35556f;
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.main-content>.pagination .pagination>li>a:hover,
.main-content>.pagination .pagination>li>span:hover {
    border-color: #bfd2e5;
    background: #edf5fc;
    color: #173b5f;
    box-shadow: 0 8px 18px rgba(24, 54, 83, 0.08);
    transform: translateY(-1px);
}

.main-content>.pagination .pagination>.active>a,
.main-content>.pagination .pagination>.active>span,
.main-content>.pagination .pagination>.active>a:hover,
.main-content>.pagination .pagination>.active>span:hover,
.main-content>.pagination .pagination>.active>a:focus,
.main-content>.pagination .pagination>.active>span:focus {
    border-color: #0759A2;
    background: #0759A2;
    color: #ffffff;
    box-shadow: none;
}

.main-content>.pagination .pagination>.disabled>a,
.main-content>.pagination .pagination>.disabled>span,
.main-content>.pagination .pagination>.disabled>a:hover,
.main-content>.pagination .pagination>.disabled>span:hover,
.main-content>.pagination .pagination>.disabled>a:focus,
.main-content>.pagination .pagination>.disabled>span:focus {
    border-color: #e2e8ef;
    background: #f5f7fa;
    color: #9aabbb;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.main-content>.pagination .padded> :last-child {
    width: auto;
    line-height: 1.6;
    text-align: right;
}

.main-content>.pagination .padded strong {
    color: #17324d;
    font-weight: 700;
}

@media (max-width: 767px) {
    .main-content>.pagination {
        margin-top: 14px;
    }

    .main-content>.pagination .padded {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px;
        text-align: left;
    }

    .main-content>.pagination .padded nav,
    .main-content>.pagination .pagination {
        width: auto;
        justify-content: flex-start;
        gap: 6px;
    }

    .main-content>.pagination .pagination>li>a,
    .main-content>.pagination .pagination>li>span {
        min-width: 36px;
        height: 36px;
        padding: 0 11px;
        font-size: 1.14rem;
    }

    .main-content>.pagination .padded> :last-child {
        width: auto;
        font-size: 1.18rem;
        text-align: right;
    }
}

@media (max-width: 479px) {
    .main-content>.pagination .padded {
        padding: 12px;
    }

    .main-content>.pagination .pagination {
        gap: 5px;
    }

    .main-content>.pagination .pagination>li>a,
    .main-content>.pagination .pagination>li>span {
        min-width: 34px;
        height: 34px;
        padding: 0 9px;
        font-size: 1.08rem;
    }
}

.export-btn {
    padding-right: 18px;
    margin-bottom: 20px;
}


/* table header strip */
.dark-bg.padded.search-records-bar.clearfix {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
    background-color: #fff !important;
    color: inherit;
    margin: 14px 0;
    padding: 12px 18px !important;
    border-radius: 6px;
    border: 1px solid #dce8f0;
    box-shadow: 0 1px 3px rgba(24, 54, 83, .06);
}

.dark-bg.padded.search-records-bar.clearfix::before,
.dark-bg.padded.search-records-bar.clearfix::after {
    display: none !important;
}

.search-records-bar.clearfix .pull-right.form-inline {
    float: none !important;
    display: flex !important;
    justify-content: flex-end;
    flex-shrink: 0;
    margin: 0 !important;
    width: auto !important;
}

.search-records-bar.clearfix .pull-right.form-inline label {
    display: block;
    margin: 0;
}

.search-records-bar.clearfix .view-txt {
    float: none !important;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #4a6278;
    letter-spacing: 0.01em;
}

.search-records-bar.clearfix .view-txt strong {
    font-weight: 700;
    color: #0075bc;
    font-size: 13px;
}

.search-records-bar.clearfix .inline-search-waiver,
.search-records-bar.clearfix .inline-search-approve {
    width: 320px;
    max-width: 100%;
    min-height: 40px;
    padding: 8px 12px 8px 40px;
    border: 1px solid #d6e0ea;
    border-radius: 6px;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%238a9bad' d='M11.742 10.344l3.387 3.387-1.398 1.398-3.387-3.387a6 6 0 1 1 1.398-1.398zM6.5 11A4.5 4.5 0 1 0 6.5 2a4.5 4.5 0 0 0 0 9z'/%3E%3C/svg%3E") no-repeat 14px center;
    font-size: 1.2rem;
    font-weight: 400;
    color: #35556f;
    box-shadow: none;
}

.search-records-bar.clearfix .inline-search-waiver::placeholder,
.search-records-bar.clearfix .inline-search-approve::placeholder {
    color: #8a9bad;
    font-weight: 400;
}

@media (max-width: 767px) {
    .search-records-bar.clearfix {
        padding: 14px;
    }

    .search-records-bar.clearfix .inline-search-waiver,
    .search-records-bar.clearfix .inline-search-approve {
        width: 100%;
    }
}

.btn.btn-success.btn-export {
    font-size: 13px;
    padding: 8px 20px;
    background-color: #3F8367;
}

/* ----------------------------------------------------------
   STUDENT FILTER BAR ï¿½ Settings-page-matched redesign
   ---------------------------------------------------------- */

.main-content .student-filters.filter-container {
    padding: 20px 22px;
    background: #ffffff;
    border: none;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(47, 43, 61, 0.07);
    margin-bottom: 20px;
    overflow: visible;
}

.main-content .student-filters.filter-container .row {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.main-content .student-filters.filter-container [class*="col-sm-"] {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 0;
}

/* Left panel ï¿½ filter selects */
.main-content .student-filters.filter-container .filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid #d8e6f4;
    border-radius: 6px;
    background: #f7fbff;
    box-shadow: none;
    min-height: 0;
}

.main-content .student-filters.filter-container .filters .form-control,
.main-content .student-filters.filter-container .filter-menu-select {
    height: 34px;
    min-height: 34px;
    padding: 5px 0px;
    border: 1px solid #c6d9ee;
    border-radius: 5px;
    background: #ffffff;
    background-image: none;
    color: #2d5b82;
    font-size: 12px;
    font-weight: 400;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.main-content .student-filters.filter-container .filters select.form-control:not([multiple]),
.main-content .student-filters.filter-container .filter-menu-select:not([multiple]) {
    background-color: #ffffff;
    background-image: none;
    cursor: pointer;
    margin-left: 0;
}

.main-content .student-filters.filter-container .filters select.form-control[multiple] {
    height: auto;
    min-height: 90px;
    background-image: none;
}

.main-content .student-filters.filter-container .filters #enrollment_status {
    min-height: 90px;
}

.main-content .student-filters.filter-container .filters .form-control:focus,
.main-content .student-filters.filter-container .filter-menu-select:focus {
    border-color: #0075bc;
    box-shadow: 0 0 0 3px rgba(0, 117, 188, 0.12);
    outline: none;
    transform: none;
}

.main-content .student-filters.filter-container .filters .form-control.hidden {
    display: none;
}

/* Filter button */
.main-content .student-filters.filter-container .filter-button {
    height: 34px;
    padding: 5px 16px;
    border: 1px solid #0075bc;
    border-radius: 5px;
    background: #0075bc;
    background-image: none;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 6px rgba(0, 117, 188, 0.18);
    transition: background 0.18s ease, box-shadow 0.18s ease;
    margin-left: 0;
}

.main-content .student-filters.filter-container .filter-button:hover,
.main-content .student-filters.filter-container .filter-button:focus {
    background: #055f99;
    border-color: #055f99;
    box-shadow: 0 4px 10px rgba(0, 117, 188, 0.22);
    transform: none;
    outline: none;
}

/* Right side panel */
.main-content .student-filters.filter-container .filter-side-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.main-content .student-filters.filter-container .filter-add-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: 1px solid #c3e0b8;
    border-radius: 6px;
    background: #f3fbf5;
    box-shadow: none;
}

.main-content .student-filters.filter-container .filter-add-button {
    height: 34px;
    width: 100%;
    margin: 0;
    padding: 5px 16px;
    border: 1px solid #1a9e5c;
    border-radius: 5px;
    background: #1a9e5c;
    background-image: none;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 6px rgba(26, 158, 92, 0.18);
    white-space: nowrap;
    transition: background 0.18s ease;
}

.main-content .student-filters.filter-container .filter-add-button:hover,
.main-content .student-filters.filter-container .filter-add-button:focus {
    background: #14804a;
    border-color: #14804a;
    box-shadow: 0 4px 10px rgba(26, 158, 92, 0.22);
    transform: none;
    outline: none;
}

/* Actions row (dropdown + Go) */
.main-content .student-filters.filter-container .filter-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #d8e6f4;
    border-radius: 6px;
    background: #f7fbff;
    box-shadow: none;
}

.main-content .student-filters.filter-container .filter-menu-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.main-content .student-filters.filter-container .filter-go-wrap {
    flex: 0 0 auto;
}

.main-content .student-filters.filter-container .filter-go-button {
    height: 34px;
    width: auto;
    padding: 5px 18px;
    border: 1px solid #0075bc;
    border-radius: 5px;
    background: #0075bc;
    background-image: none;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 117, 188, 0.18);
    white-space: nowrap;
    transition: background 0.18s ease;
}

.main-content .student-filters.filter-container .filter-go-button:hover,
.main-content .student-filters.filter-container .filter-go-button:focus {
    background: #055f99;
    border-color: #055f99;
    box-shadow: 0 4px 10px rgba(0, 117, 188, 0.22);
    transform: none;
    outline: none;
}

/* Select2 inside filter-menu-wrap */
.main-content .student-filters.filter-container .filter-menu-wrap .select2-container {
    width: 100%;
}

.main-content .student-filters.filter-container .filter-menu-wrap .select2-container--default .select2-selection--single {
    height: 34px;
    border: 1px solid #c6d9ee;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: none;
}

.main-content .student-filters.filter-container .filter-menu-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 10px;
    padding-right: 28px;
    color: #2d5b82;
    font-size: 12px;
    font-weight: 400;
}

.main-content .student-filters.filter-container .filter-menu-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 32px;
    right: 6px;
}

.main-content .student-filters.filter-container .filter-menu-wrap .select2-container--default.select2-container--focus .select2-selection--single,
.main-content .student-filters.filter-container .filter-menu-wrap .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #0075bc;
    box-shadow: 0 0 0 3px rgba(0, 117, 188, 0.12);
}

/* Dropdown */
.select2-container--default .select2-dropdown.student-menu-select2-dropdown {
    border: 1px solid #c6d9ee;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 30, 80, 0.14);
}

.select2-container--default .select2-dropdown.student-menu-select2-dropdown .select2-results__group {
    padding: 6px 10px 3px;
    color: #6b8199;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.select2-container--default .select2-dropdown.student-menu-select2-dropdown .select2-results__option {
    padding: 8px 12px;
    font-size: 12px;
    color: #2d5b82;
}

.select2-container--default .select2-dropdown.student-menu-select2-dropdown .select2-results__option--highlighted[aria-selected] {
    background: #e8f4ff;
    color: #0075bc;
}

.main-content .student-filters.filter-container .filter-button.hidden {
    display: none;
}

/* ----------------------------------------------------------
   STUDENT STATS CARDS ï¿½ Professional redesign
   ---------------------------------------------------------- */

.main-content .student-stats.stats-data {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    padding: 16px 16px 25px 16px;
    border: none;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(47, 43, 61, 0.07);
    margin-bottom: 20px;
}

/* Toolbar row */
.main-content .student-stats.stats-data .stats-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 100%;
    width: 100%;
    order: 1;
    padding: 0 0 14px;
    margin-bottom: 4px;
    border-bottom: 1px solid #d8e6f4;
    background: transparent;
    gap: 12px;
}

.main-content .student-stats.stats-data .pull-right.form-inline {
    float: none;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    width: 100%;
    margin: 0;
    padding: 0;
    order: 2;
    justify-content: flex-end;
}

/* Search input */
.main-content .student-stats.stats-data .inline-search {
    width: min(100%, 280px);
    height: 34px;
    min-height: 34px;
    margin-left: auto;
    padding: 5px 10px 5px 34px;
    border: 1px solid #c6d9ee;
    border-radius: 5px;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath fill='%238a9bad' d='M11.742 10.344l3.387 3.387-1.398 1.398-3.387-3.387a6 6 0 1 1 1.398-1.398zM6.5 11A4.5 4.5 0 1 0 6.5 2a4.5 4.5 0 0 0 0 9z'/%3E%3C/svg%3E") no-repeat 10px center;
    font-size: 12px;
    font-weight: 400;
    color: #2d5b82;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.main-content .student-stats.stats-data .inline-search:focus {
    border-color: #0075bc;
    box-shadow: 0 0 0 3px rgba(0, 117, 188, 0.12);
    outline: none;
}

.main-content .student-stats.stats-data .inline-search::placeholder {
    color: #9ab0c4;
    font-weight: 400;
}

/* Stats icon */
.main-content .student-stats.stats-data .glyphicon-stats {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    order: 1;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #d8e6f4;
    background: #f0f7ff;
    font-size: 15px;
    color: #0075bc;
    box-shadow: none;
}

/* Each stat card */
.main-content .student-stats.stats-data .stat {
    display: flex;
    flex: 1 1 120px;
    flex-direction: column;
    justify-content: center;
    order: 2;
    min-height: 74px;
    padding: 12px 14px;
    margin: 0;
    border: 1px solid #d8e6f4;
    border-right: 1px solid #d8e6f4;
    border-radius: 6px;
    background: #f7fbff;
    box-shadow: 0 1px 3px rgba(0, 30, 80, 0.05);
    backdrop-filter: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    cursor: default;
}

.main-content .student-stats.stats-data .stat:first-of-type {
    border-left: 3px solid #0075bc;
    background: #eef6ff;
}

.main-content .student-stats.stats-data .stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 30, 80, 0.1);
    background: #eef6ff;
}

/* Count number */
.main-content .student-stats.stats-data .stat .count {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #0f3557;
}

.main-content .student-stats.stats-data .stat:first-of-type .count {
    color: #0075bc;
    font-size: 26px;
}

/* Label */
.main-content .student-stats.stats-data .stat .title {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
    color: #6b8199;
    text-wrap: balance;
}

.main-content .student-stats.stats-data h4.inherit-color {
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: #11456f;
}

@media (max-width: 991px) {
    .main-content .student-stats.stats-data .stat {
        flex-basis: calc(33.333% - 8px);
    }
}

@media (max-width: 767px) {
    .main-content .student-stats.stats-data {
        padding: 12px;
        gap: 8px;
        border-radius: 6px;
    }

    .main-content .student-stats.stats-data .stats-toolbar {
        padding-bottom: 12px;
    }

    .main-content .student-stats.stats-data .inline-search {
        width: 100%;
        margin-left: 0;
    }

    .main-content .student-stats.stats-data .stat {
        flex-basis: calc(50% - 4px);
        min-height: 66px;
        padding: 10px 12px;
    }

    .main-content .student-stats.stats-data .stat .count {
        font-size: 20px;
    }

    .main-content .student-stats.stats-data .stat:first-of-type .count {
        font-size: 22px;
    }
}

@media (max-width: 479px) {
    .main-content .student-stats.stats-data .stat {
        flex-basis: calc(50% - 4px);
    }
}

/* -- Stats card outer margin + first stat gap fix ------- */
.main-content .student-stats.stats-data {
    margin-left: 0;
    margin-right: 0;
}

/* Gap between toolbar and first stat card */
.main-content .student-stats.stats-data .stats-toolbar {
    margin-bottom: 6px;
}

/* -- Stats card outer margin + first stat gap fix ------- */
.main-content .student-stats.stats-data {
    margin-left: 0;
    margin-right: 0;
}

/* Gap between toolbar and first stat card */
.main-content .student-stats.stats-data .stats-toolbar {
    margin-bottom: 6px;
}

/* Align stats card with filter bar horizontal edges */
.main-content:not(.padded) .student-stats.stats-data {
    margin-left: 0;
    margin-right: 0;
}


/* Fix first-of-type targeting ï¿½ use :first-child on .stat instead */
.main-content .student-stats.stats-data .stat:first-of-type {
    border-left: 3px solid #0075bc;
    background: #eef6ff;
}

.main-content .student-stats.stats-data .stat:first-of-type .count {
    color: #0075bc;
    font-size: 26px;
}


/* Match filter bar left/right spacing */
.main-content .student-stats.stats-data {
    margin-bottom: 20px;
}


/* ----------------------------------------------------------
   STAT CARDS ï¿½ Badge count + color accent redesign
   ---------------------------------------------------------- */

/* Base card reset */
.main-content .student-stats.stats-data .stat {
    position: relative;
    flex-direction: column;
    justify-content: flex-start;
    padding: 14px 16px 12px;
    border: 1px solid #dde8f4;
    border-top: 3px solid #0075bc;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 30, 80, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    cursor: default;
}

.main-content .student-stats.stats-data .stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 30, 80, 0.12);
}

/* Count as a pill badge */
.main-content .student-stats.stats-data .stat .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 3px 10px;
    margin-bottom: 9px;
    border-radius: 6px;
    background: var(--stat-badge-bg, #e8f4ff);
    color: var(--stat-accent, #0075bc);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    border: none;
}

/* Title */
.main-content .student-stats.stats-data .stat .title {
    display: block;
    margin-top: 0;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    color: #6b8199;
}

/* -- Per-card accent colors via nth-child --------------- */
/* child 1 = .stats-toolbar, stats start at child 2 */

/* Total Students ï¿½ brand blue */
.main-content .student-stats.stats-data .stat:nth-child(2) {
    --stat-accent: #0075bc;
    --stat-badge-bg: #e8f4ff;
    border-top-color: #0075bc;
}

/* Enrolled(Auto) ï¿½ teal */
.main-content .student-stats.stats-data .stat:nth-child(3) {
    --stat-accent: #0891b2;
    --stat-badge-bg: #e0f7fb;
    border-top-color: #0891b2;
}

/* Enrollment in Process ï¿½ amber */
.main-content .student-stats.stats-data .stat:nth-child(4) {
    --stat-accent: #b45309;
    --stat-badge-bg: #fef3c7;
    border-top-color: #d97706;
}

/* Enrolled(Opt-in) ï¿½ green */
.main-content .student-stats.stats-data .stat:nth-child(5) {
    --stat-accent: #059669;
    --stat-badge-bg: #d1fae5;
    border-top-color: #059669;
}

/* Not Enrolled / Eligible ï¿½ purple */
.main-content .student-stats.stats-data .stat:nth-child(6) {
    --stat-accent: #7c3aed;
    --stat-badge-bg: #ede9fe;
    border-top-color: #7c3aed;
}

/* Enrolled (Roster) ï¿½ sky blue */
.main-content .student-stats.stats-data .stat:nth-child(7) {
    --stat-accent: #0369a1;
    --stat-badge-bg: #e0f2fe;
    border-top-color: #0369a1;
}

/* Registered ï¿½ indigo */
.main-content .student-stats.stats-data .stat:nth-child(8) {
    --stat-accent: #4338ca;
    --stat-badge-bg: #e0e7ff;
    border-top-color: #4338ca;
}

/* Pending Eligibility Review ï¿½ orange */
.main-content .student-stats.stats-data .stat:nth-child(9) {
    --stat-accent: #c2410c;
    --stat-badge-bg: #ffedd5;
    border-top-color: #ea580c;
}

/* Pending QLE Review ï¿½ rose */
.main-content .student-stats.stats-data .stat:nth-child(10) {
    --stat-accent: #be123c;
    --stat-badge-bg: #ffe4e6;
    border-top-color: #e11d48;
}

/* Child ï¿½ emerald */
.main-content .student-stats.stats-data .stat:nth-child(11) {
    --stat-accent: #047857;
    --stat-badge-bg: #d1fae5;
    border-top-color: #047857;
}

/* Child (2+) ï¿½ cyan */
.main-content .student-stats.stats-data .stat:nth-child(12) {
    --stat-accent: #0e7490;
    --stat-badge-bg: #cffafe;
    border-top-color: #0e7490;
}

/* Spouse ï¿½ violet */
.main-content .student-stats.stats-data .stat:nth-child(13) {
    --stat-accent: #6d28d9;
    --stat-badge-bg: #ede9fe;
    border-top-color: #6d28d9;
}

/* Fallback for any extra cards */
.main-content .student-stats.stats-data .stat:nth-child(n+14) {
    --stat-accent: #0075bc;
    --stat-badge-bg: #e8f4ff;
    border-top-color: #0075bc;
}

/* Override previous first-of-type special styling */
.main-content .student-stats.stats-data .stat:first-of-type {
    border-left: 1px solid #dde8f4;
    background: #ffffff;
}

.main-content .student-stats.stats-data .stat:first-of-type .count {
    font-size: 18px;
    color: var(--stat-accent, #0075bc);
}

/* -- Full card light-bg experiment --------------------- */
.main-content .student-stats.stats-data .stat {
    background: var(--stat-badge-bg, #e8f4ff);
}

.main-content .student-stats.stats-data .stat .count {
    background: rgba(255, 255, 255, 0.7);
}

/* -- Revert full-bg experiment ï¿½ back to white cards --- */
.main-content .student-stats.stats-data .stat {
    background: #ffffff;
}

.main-content .student-stats.stats-data .stat .count {
    background: var(--stat-badge-bg, #e8f4ff);
}

/* ----------------------------------------------------------
   STUDENT TABLE ï¿½ QLE dashboard-matched redesign
   ---------------------------------------------------------- */

.main-content .gsh-table {

    border: 1px solid #e8ecf1;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 0.115rem 0.3rem 0 rgba(47, 43, 61, 0.12);
    max-height: 70vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.main-content .gsh-table:hover {
    scrollbar-color: rgba(86, 106, 127, 0.35) transparent;
}

.main-content .gsh-table::-webkit-scrollbar {
    height: 4px;
    width: 4px;
}

.main-content .gsh-table::-webkit-scrollbar-track {
    background: transparent;
}

.main-content .gsh-table::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
}

.main-content .gsh-table:hover::-webkit-scrollbar-thumb {
    background: rgba(86, 106, 127, 0.35);
}

/* Table base */
.main-content .gsh-table .student-list {
    font-size: 12px;
    line-height: 1.45;
    min-width: 1080px;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
}

/* Header */
.main-content .gsh-table .student-list>thead>tr {
    background: rgba(9, 113, 204, 0.09);
}

.main-content .gsh-table .student-list>thead>tr>th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 11px 14px;
    border: 0;
    background: rgba(9, 113, 204, 0.09);
    background-clip: padding-box;
    box-shadow: inset 0 -1px 0 #e8ecf1;
    color: #337ab7;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    vertical-align: middle;
    white-space: nowrap;
}

.main-content .gsh-table .student-list>thead>tr>th:first-child {
    padding-left: 16px;
}

.main-content .gsh-table .student-list>thead>tr>th:last-child {
    padding-right: 16px;
}

.main-content .gsh-table .student-list>thead>tr>th a {
    color: #337ab7;
    font-weight: 600;
    text-decoration: none;
    font-size: 12px;
}

.main-content .gsh-table .student-list>thead>tr>th a:hover {
    color: #0d6fbc;
}

.main-content .gsh-table .student-list>thead>tr>th small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
    color: #75889b;
    letter-spacing: 0;
}

/* Body rows */
.main-content .gsh-table .student-list>tbody>tr {
    transition: background-color 0.12s ease;
}

.main-content .gsh-table .student-list>tbody>tr:nth-of-type(odd) {
    background: #fafbfc;
}

.main-content .gsh-table .student-list>tbody>tr:nth-of-type(even) {
    background: #ffffff;
}

.main-content .gsh-table .student-list>tbody>tr:hover {
    background: #f0f6fc;
}

/* Cells */
.main-content .gsh-table .student-list>tbody>tr>td {
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid #e8ecf1;
    color: #374151;
    font-size: 12px;
    vertical-align: middle;
    background: transparent;
}

.main-content .gsh-table .student-list>tbody>tr>td:first-child {
    padding-left: 16px;
}

.main-content .gsh-table .student-list>tbody>tr>td:last-child {
    padding-right: 16px;
}

/* Links in cells */
.main-content .gsh-table .student-list td a {
    color: #0075bc;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
}

.main-content .gsh-table .student-list td a:hover {
    color: #055f99;
    text-decoration: underline;
}

/* Name strong / sub-label em */
.main-content .gsh-table .student-list td strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
}

.main-content .gsh-table .student-list td em {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
    color: #94a3b8;
}

/* Status pill */
.main-content .gsh-table .student-list td.status a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 10px;
    border: 1px solid #d2dee9;
    border-radius: 999px;
    background: #eef3f8;
    color: #337ab7;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* Flag icons */
.main-content .gsh-table .student-list .flag-container .glyphicon {
    width: 26px;
    height: 26px;
    font-size: 12px;
    border-radius: 50%;
    background: #eef4f9;
    color: #7d91a5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.main-content .gsh-table .student-list .flag-container .glyphicon.active {
    background: #e8f5ec;
    color: #22884f;
}

/* Pagination area */
.main-content .gsh-table+.pagination-wrap,
.main-content .gsh-pagination,
.main-content .student-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 12px 25px;
    font-size: 12px;
    color: #6b8199;
}

.main-content .gsh-pagination .pagination,
.main-content .student-pagination .pagination {
    margin: 0;
    border-radius: 5px;
}

.main-content .gsh-pagination .pagination>li>a,
.main-content .gsh-pagination .pagination>li>span,
.main-content .student-pagination .pagination>li>a,
.main-content .student-pagination .pagination>li>span {
    padding: 4px 10px;
    font-size: 12px;
    border-color: #c6d9ee;
    color: #0075bc;
    border-radius: 4px;
}

.main-content .gsh-pagination .pagination>.active>a,
.main-content .student-pagination .pagination>.active>a {
    background: #0075bc;
    border-color: #0075bc;
    color: #fff;
}

/* -- Fix: thead z-index + tbody-only vertical scroll --- */

/* Container: horizontal scroll only */
.main-content .gsh-table {
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
}

/* thead: always visible, high z-index, sticky not needed now */
.main-content .gsh-table .student-list>thead>tr>th {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(9, 113, 204, 0.09);
    background-clip: padding-box;
}

/* tbody: only this section scrolls vertically */
.main-content .gsh-table .student-list>tbody {
    display: block;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.main-content .gsh-table .student-list>tbody:hover {
    scrollbar-color: rgba(86, 106, 127, 0.35) transparent;
}

.main-content .gsh-table .student-list>tbody::-webkit-scrollbar {
    width: 4px;
}

.main-content .gsh-table .student-list>tbody::-webkit-scrollbar-track {
    background: transparent;
}

.main-content .gsh-table .student-list>tbody::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
}

.main-content .gsh-table .student-list>tbody:hover::-webkit-scrollbar-thumb {
    background: rgba(86, 106, 127, 0.35);
}

/* Keep column widths aligned between thead and tbody */
.main-content .gsh-table .student-list>thead,
.main-content .gsh-table .student-list>tbody>tr {
    display: table;
    width: 100%;
    table-layout: fixed;
    min-width: 1080px;
}

/* -- Fix: td text overflow (status ? term overlap) ------- */
.main-content .gsh-table .student-list>tbody>tr>td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 0;
    /* required for ellipsis with table-layout:fixed */
}

/* -- Pagination: match QLE DataTables style --------------- */
.main-content>.pagination {
    margin: 0;
    padding: 10px 18px;
    background: #ffffff;
    border-top: 1px solid #e8ecf1;
    border-radius: 0 0 8px 8px;
}

.main-content>.pagination .padded {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    color: #5b7086;
    font-size: 12px;
}

.main-content>.pagination .padded nav {
    width: auto;
    margin: 0;
}

/* Pagination list */
.main-content>.pagination .pagination {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 0;
    flex-wrap: wrap;
}

.main-content>.pagination .pagination>li {
    display: inline-flex;
}

/* Regular page buttons */
.main-content>.pagination .pagination>li>a,
.main-content>.pagination .pagination>li>span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #4a6580;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

/* Hover */
.main-content>.pagination .pagination>li>a:hover,
.main-content>.pagination .pagination>li>span:hover {
    background: #e8f3fb;
    border-color: #9ecae8;
    color: #0075bc;
    box-shadow: none;
    transform: none;
}

/* Active page */
.main-content>.pagination .pagination>.active>a,
.main-content>.pagination .pagination>.active>span,
.main-content>.pagination .pagination>.active>a:hover,
.main-content>.pagination .pagination>.active>span:hover,
.main-content>.pagination .pagination>.active>a:focus,
.main-content>.pagination .pagination>.active>span:focus {
    background: #0075bc;
    border-color: #0075bc;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 117, 188, 0.30);
}

/* Disabled (prev/next when at boundaries) */
.main-content>.pagination .pagination>.disabled>a,
.main-content>.pagination .pagination>.disabled>span,
.main-content>.pagination .pagination>.disabled>a:hover,
.main-content>.pagination .pagination>.disabled>span:hover {
    opacity: 0.45;
    cursor: not-allowed;
    background: transparent;
    border-color: transparent;
    color: #94a3b8;
    box-shadow: none;
    transform: none;
}

/* Prev / Next pills */
.main-content>.pagination .pagination>li:first-child>a,
.main-content>.pagination .pagination>li:first-child>span,
.main-content>.pagination .pagination>li:last-child>a,
.main-content>.pagination .pagination>li:last-child>span {
    border: 1px solid #c7def2;
    background: #ffffff;
    color: #0075bc;
    font-weight: 600;
    font-size: 12px;
    padding: 0 12px;
}

.main-content>.pagination .pagination>li:first-child>a:hover,
.main-content>.pagination .pagination>li:last-child>a:hover {
    background: #e8f3fb;
    border-color: #9ecae8;
}

/* ----------------------------------------------------------
   GLOBAL GSH-TABLE RESET ï¿½ DataTables-style sticky header
   Applies to ALL .gsh-table instances across the portal
   ---------------------------------------------------------- */

/* 1. Container: scroll BOTH axes, cap height for vertical */
.gsh-table,
.main-content .gsh-table {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 95vh;
    position: relative;
    /* thin scrollbar always on wrapper */
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.gsh-table:hover,
.main-content .gsh-table:hover {
    scrollbar-color: rgba(86, 106, 127, 0.35) transparent;
}

.gsh-table::-webkit-scrollbar,
.main-content .gsh-table::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.gsh-table::-webkit-scrollbar-track,
.main-content .gsh-table::-webkit-scrollbar-track {
    background: transparent;
}

.gsh-table::-webkit-scrollbar-thumb,
.main-content .gsh-table::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
    transition: background 0.2s;
}

.gsh-table:hover::-webkit-scrollbar-thumb,
.main-content .gsh-table:hover::-webkit-scrollbar-thumb {
    background: rgba(86, 106, 127, 0.35);
}

/* 2. Table: auto layout so content drives column widths */
.gsh-table table,
.main-content .gsh-table table {
    display: table;
    table-layout: auto;
    width: 100%;
    min-width: 800px;
    /* horizontal scroll starts here */
    border-collapse: collapse;
}

/* Student list has more columns ï¿½ wider minimum */
.gsh-table table.student-list,
.main-content .gsh-table table.student-list {
    min-width: 1100px;
}

/* 3. Restore native table display for thead / tbody / tr
      Override the previous display:block / display:table hacks */
.gsh-table table thead,
.main-content .gsh-table table thead,
.main-content .gsh-table .student-list>thead {
    display: table-header-group;
    width: auto;
    min-width: 0;
    table-layout: auto;
    overflow: visible;
    max-height: none;
}

.gsh-table table tbody,
.main-content .gsh-table table tbody,
.main-content .gsh-table .student-list>tbody {
    display: table-row-group;
    width: auto;
    min-width: 0;
    overflow: visible;
    max-height: none;
}

.gsh-table table tr,
.main-content .gsh-table table tr,
.main-content .gsh-table .student-list>thead>tr,
.main-content .gsh-table .student-list>tbody>tr {
    display: table-row;
    width: auto;
    min-width: 0;
    table-layout: auto;
}

/* 4. Sticky header ï¿½ works natively inside overflow:auto container
      Background MUST be solid (opaque) so scrolled rows hide beneath it */
.gsh-table table thead th,
.main-content .gsh-table table thead th,
.main-content .gsh-table .student-list>thead>tr>th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #deeaf7;
    /* solid equivalent of rgba(9,113,204,0.09) on white */
}

/* 5. Cells: no wrap ï¿½ content drives column width, horizontal scroll handles overflow */
.gsh-table table th,
.gsh-table table td,
.main-content .gsh-table table th,
.main-content .gsh-table table td {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    /* clear the max-width:0 ellipsis hack */
}

/* 6. Remove the phantom scrollbar from tbody (now on wrapper) */
.main-content .gsh-table .student-list>tbody::-webkit-scrollbar,
.main-content .gsh-table .student-list>tbody::-webkit-scrollbar-track,
.main-content .gsh-table .student-list>tbody::-webkit-scrollbar-thumb {
    display: none;
    width: 0;
    height: 0;
}

/* -- SPECIFICITY OVERRIDE: kill the overflow:hidden/max-width:0 td hack -- */
/* These match the exact specificity of the earlier rule that broke the chips */
.main-content .gsh-table .student-list>tbody>tr>td,
.main-content .gsh-table>table>tbody>tr>td {
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    width: auto;
    white-space: nowrap;
}

/* Status pill td ï¿½ do NOT constrain the chip, let it size to content */
.main-content .gsh-table .student-list>tbody>tr>td.status {
    overflow: visible;
    max-width: none;
    white-space: nowrap;
}

/* The pill <a> itself: never clip, always grow to text width */
.main-content .gsh-table .student-list>tbody>tr>td.status>a,
.main-content .gsh-table .student-list td.status a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    overflow: visible;
    max-width: none;
    width: auto;
    flex-shrink: 0;
}

/* ----------------------------------------------------------
   STATUS CHIP COLORS ï¿½ driven by JS-added status-chip--{slug}
   ---------------------------------------------------------- */

/* Enrolled (any purchase/roster/auto variant) ï¿½ green */
.student-list td[class*="status-chip--enrolled"] a {
    background: #e6f7ee;
    border-color: #a3d9bb;
    color: #146c3c;
}

/* Enrolled (QLE) ï¿½ teal (more specific, overrides green above) */
.student-list td.status-chip--enrolled-qle a {
    background: #e0f5f1;
    border-color: #7fd0c2;
    color: #0d6f5e;
}

/* Enrolled (Roster) ï¿½ blue-green */
.student-list td[class*="status-chip--enrolled-roster"] a {
    background: #e8f5f0;
    border-color: #91cdb8;
    color: #1a6b50;
}

/* Enrolled (TOC) ï¿½ indigo */
.student-list td[class*="status-chip--enrolled-toc"] a {
    background: #edf0fc;
    border-color: #a4b0f0;
    color: #3546b8;
}

/* Enrollment in Process ï¿½ amber */
.student-list td[class*="status-chip--enrollment-in-process"] a {
    background: #fff8e6;
    border-color: #f5cf82;
    color: #8a5a00;
}

/* Registered ï¿½ blue */
.student-list td[class*="status-chip--registered"] a {
    background: #e8f3fc;
    border-color: #93c9f0;
    color: #0b5a93;
}

/* Eligible ï¿½ sky blue */
.student-list td[class*="status-chip--eligible"] a {
    background: #e5f4fb;
    border-color: #7ecae8;
    color: #0c6385;
}

/* Pending QLE Review ï¿½ purple */
.student-list td[class*="status-chip--pending-qle"] a {
    background: #f4eeff;
    border-color: #c3a0f0;
    color: #6322b0;
}

/* Pending Eligibility Review ï¿½ orange */
.student-list td[class*="status-chip--pending-eligibility"] a {
    background: #fff2e8;
    border-color: #f0b07a;
    color: #8a4000;
}

/* Voided / Cancelled / Deleted ï¿½ red */
.student-list td[class*="status-chip--void"] a,
.student-list td[class*="status-chip--cancelled"] a,
.student-list td[class*="status-chip--deleted"] a {
    background: #fdecea;
    border-color: #f0a09a;
    color: #8a1a14;
}

/* Waived ï¿½ grey */
.student-list td[class*="status-chip--waived"] a {
    background: #f2f4f6;
    border-color: #bcc5cf;
    color: #45576a;
}

/* ----------------------------------------------------------
   STATUS CHIP COLORS v2 ï¿½ high-specificity selectors to beat
   the base pill rule (.main-content .gsh-table .student-list td.status a)
   Slugs (JS-generated): enrolled, enrolled-qle, enrolled-roster,
   enrolled-toc, enrolled-purchase, enrolled-auto, enrollment-in-process,
   registered, eligible, pending-qle-review, pending-eligibility-review,
   voided, cancelled, waived
   ---------------------------------------------------------- */

/* Enrolled (generic catch-all) ï¿½ green */
.main-content .gsh-table .student-list td[class*="status-chip--enrolled"] a {
    background: #e6f7ee;
    border-color: #a3d9bb;
    color: #146c3c;
}

/* Enrolled (QLE) ï¿½ teal */
.main-content .gsh-table .student-list td[class*="status-chip--enrolled-qle"] a {
    background: #e0f5f1;
    border-color: #7fd0c2;
    color: #0d6f5e;
}

/* Enrolled (Roster) ï¿½ blue-green */
.main-content .gsh-table .student-list td[class*="status-chip--enrolled-roster"] a {
    background: #e8f5f0;
    border-color: #91cdb8;
    color: #1a6b50;
}

/* Enrolled (TOC) ï¿½ indigo */
.main-content .gsh-table .student-list td[class*="status-chip--enrolled-toc"] a {
    background: #edf0fc;
    border-color: #a4b0f0;
    color: #3546b8;
}

/* Enrollment in Process ï¿½ amber */
.main-content .gsh-table .student-list td[class*="status-chip--enrollment-in-process"] a {
    background: #fff8e6;
    border-color: #f5cf82;
    color: #8a5a00;
}

/* Registered ï¿½ blue */
.main-content .gsh-table .student-list td[class*="status-chip--registered"] a {
    background: #e8f3fc;
    border-color: #93c9f0;
    color: #0b5a93;
}

/* Eligible ï¿½ sky */
.main-content .gsh-table .student-list td[class*="status-chip--eligible"] a {
    background: #e5f4fb;
    border-color: #7ecae8;
    color: #0c6385;
}

/* Pending QLE Review ï¿½ purple */
.main-content .gsh-table .student-list td[class*="status-chip--pending-qle"] a {
    background: #f4eeff;
    border-color: #c3a0f0;
    color: #6322b0;
}

/* Pending Eligibility Review ï¿½ orange */
.main-content .gsh-table .student-list td[class*="status-chip--pending-eligibility"] a {
    background: #fff2e8;
    border-color: #f0b07a;
    color: #8a4000;
}

/* Voided / Cancelled / Deleted ï¿½ red */
.main-content .gsh-table .student-list td[class*="status-chip--void"] a,
.main-content .gsh-table .student-list td[class*="status-chip--cancelled"] a,
.main-content .gsh-table .student-list td[class*="status-chip--deleted"] a {
    background: #fdecea;
    border-color: #f0a09a;
    color: #8a1a14;
}

/* Waived ï¿½ grey */
.main-content .gsh-table .student-list td[class*="status-chip--waived"] a {
    background: #f2f4f6;
    border-color: #bcc5cf;
    color: #45576a;
}

/* ----------------------------------------------------------
   STUDENT PAGINATION — exact visual match to QLE DataTables
   Source HTML: ul.pagination > li.page-item > a.page-link
   ---------------------------------------------------------- */

/* Outer wrapper — white strip below table */
.main-content>.pagination {
    margin: 0;
    padding: 0;
    background: #ffffff;
    border-top: 1px solid #e8ecf1;
    border-radius: 0 0 8px 8px;
    width: 100%;
    margin-top: 12px !important;
}

.main-content>.pagination .pagination-bar,
.padded.pagination-bar {
    box-shadow: none !important;
    margin-top: 12px !important;
}

.main-content>.pagination .padded {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 18px;
    background: transparent;
    box-shadow: none;
    border: none;
    color: #5b7086;
    font-size: 12px;
}

.main-content>.pagination .padded nav {
    flex: 0 0 auto;
    margin: 0;
}

/* -- ul.pagination reset -- */
.main-content>.pagination .padded ul.pagination {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* -- Every page-item -- */
.main-content>.pagination .padded ul.pagination .page-item {
    display: inline-flex;
    margin: 0;
}

/* -- Every page-link (regular number button) -- */
.main-content>.pagination .padded ul.pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #4a6580;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

/* Hover — non-active, non-disabled */
.main-content>.pagination .padded ul.pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background: #e8f3fb;
    border-color: #9ecae8;
    color: #0075bc;
    box-shadow: none;
}

/* Active page */
.main-content>.pagination .padded ul.pagination .page-item.active .page-link,
.main-content>.pagination .padded ul.pagination .page-item.active .page-link:hover,
.main-content>.pagination .padded ul.pagination .page-item.active .page-link:focus {
    background: #0075bc;
    border-color: #0075bc;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 117, 188, 0.30);
}

/* Disabled */
.main-content>.pagination .padded ul.pagination .page-item.disabled .page-link,
.main-content>.pagination .padded ul.pagination .page-item.disabled .page-link:hover {
    background: #f5f9fe;
    border: 1px solid #ddeaf5;
    color: #b0c4d4;
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

/* -- Previous / Next pill style (first + last page-item) -- */
.main-content>.pagination .padded ul.pagination .page-item:first-child .page-link,
.main-content>.pagination .padded ul.pagination .page-item:last-child .page-link {
    min-width: auto;
    padding: 0 12px;
    border: 1px solid #c7def2;
    background: #ffffff;
    color: #0075bc;
    font-weight: 600;
    font-size: 12px;
}

.main-content>.pagination .padded ul.pagination .page-item:first-child .page-link:hover,
.main-content>.pagination .padded ul.pagination .page-item:last-child .page-link:hover {
    background: #e8f3fb;
    border-color: #9ecae8;
}

/* Hide Bootstrap's «» spans, replace with ‹ › via CSS — matches QLE exactly */
.main-content>.pagination .padded ul.pagination .page-item:first-child .page-link span[aria-hidden],
.main-content>.pagination .padded ul.pagination .page-item:last-child .page-link span[aria-hidden] {
    display: none;
}

.main-content>.pagination .padded ul.pagination .page-item:first-child .page-link::before {
    content: "\2039";
    margin-right: 5px;
    font-size: 16px;
    line-height: 1;
}

.main-content>.pagination .padded ul.pagination .page-item:first-child .page-link::after {
    content: " Previous";
    font-size: 12px;
    font-weight: 600;
}

.main-content>.pagination .padded ul.pagination .page-item:last-child .page-link::before {
    content: "Next ";
    font-size: 12px;
    font-weight: 600;
}

.main-content>.pagination .padded ul.pagination .page-item:last-child .page-link::after {
    content: "\203A";
    margin-left: 5px;
    font-size: 16px;
    line-height: 1;
}

/* Fix: pagination-info is now a <span> so it's one flex child, not many */
.main-content>.pagination .padded .pagination-info {
    flex: 0 0 auto;
    margin-left: auto;
    color: #5b7086;
    font-size: 12px;
    white-space: nowrap;
}

.main-content>.pagination .padded .pagination-info strong {
    color: #1e3a52;
    font-weight: 700;
}

/* ----------------------------------------------------------
   GLOBAL PAGINATION — applies to ALL pages using partials/pagination.blade.php
   AND the AJAX-filled div.pagination > div.padded pattern
   Selectors are scoped to .padded > nav ul.pagination so they never
   conflict with Bootstrap global styles or DataTables pagination
   ---------------------------------------------------------- */

/* Outer div.pagination wrapper */
div.pagination {
    margin: 0;
    padding: 0;
    background: #ffffff;
    border-top: 1px solid #e8ecf1;
    border-radius: 0 0 8px 8px;
}

/* Inner .padded: flex row, nav left, info right */
div.pagination div.padded {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 18px;
    background: transparent;
    box-shadow: none;
    border: none;
    color: #5b7086;
    font-size: 12px;
}

div.pagination div.padded nav {
    flex: 0 0 auto;
    margin: 0;
}

div.pagination div.padded .pagination-info {
    flex: 0 0 auto;
    color: #5b7086;
    font-size: 12px;
    white-space: nowrap;
}

div.pagination div.padded .pagination-info strong {
    color: #1e3a52;
    font-weight: 700;
}

/* ul.pagination list */
div.pagination div.padded nav ul.pagination {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

div.pagination div.padded nav ul.pagination .page-item {
    display: inline-flex;
    margin: 0;
}

/* Regular number buttons */
div.pagination div.padded nav ul.pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #4a6580;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
    transition: background .15s, color .15s, border-color .15s;
}

/* Hover */
div.pagination div.padded nav ul.pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background: #e8f3fb;
    border-color: #9ecae8;
    color: #0075bc;
    box-shadow: none;
}

/* Active */
div.pagination div.padded nav ul.pagination .page-item.active .page-link,
div.pagination div.padded nav ul.pagination .page-item.active .page-link:hover,
div.pagination div.padded nav ul.pagination .page-item.active .page-link:focus {
    background: #0075bc;
    border-color: #0075bc;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 117, 188, .30);
}

/* Disabled */
div.pagination div.padded nav ul.pagination .page-item.disabled .page-link,
div.pagination div.padded nav ul.pagination .page-item.disabled .page-link:hover {
    background: #f5f9fe;
    border: 1px solid #ddeaf5;
    color: #b0c4d4;
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

/* Prev / Next pill */
div.pagination div.padded nav ul.pagination .page-item:first-child .page-link,
div.pagination div.padded nav ul.pagination .page-item:last-child .page-link {
    min-width: auto;
    padding: 0 12px;
    border: 1px solid #c7def2;
    background: #ffffff;
    color: #0075bc;
    font-weight: 600;
    font-size: 12px;
}

div.pagination div.padded nav ul.pagination .page-item:first-child .page-link:hover,
div.pagination div.padded nav ul.pagination .page-item:last-child .page-link:hover {
    background: #e8f3fb;
    border-color: #9ecae8;
}

/* Hide Bootstrap «» — inject ‹ Previous / Next › via pseudo-elements */
div.pagination div.padded nav ul.pagination .page-item:first-child .page-link span[aria-hidden],
div.pagination div.padded nav ul.pagination .page-item:last-child .page-link span[aria-hidden] {
    display: none;
}

div.pagination div.padded nav ul.pagination .page-item:first-child .page-link::before {
    content: "\2039 Previous";
    font-size: 12px;
    font-weight: 600;
}

div.pagination div.padded nav ul.pagination .page-item:last-child .page-link::after {
    content: "Next \203A";
    font-size: 12px;
    font-weight: 600;
}

/* -- partials/pagination.blade.php included directly (no wrapping div.pagination) -- */
/* Targets: approved-waiver-report, special-enrollments, roster-upload, waiver-report */
.main-content div.padded,
main div.padded {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 18px;
    background: #ffffff;
    border-top: 1px solid #e8ecf1;
    border-radius: 0 0 8px 8px;
    color: #5b7086;
    font-size: 12px;
    box-shadow: none;
}

.main-content div.padded nav ul.pagination,
main div.padded nav ul.pagination {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.main-content div.padded nav ul.pagination .page-item .page-link,
main div.padded nav ul.pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #4a6580;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
}

.main-content div.padded nav ul.pagination .page-item.active .page-link,
main div.padded nav ul.pagination .page-item.active .page-link {
    background: #0075bc;
    border-color: #0075bc;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 117, 188, .30);
}

.main-content div.padded nav ul.pagination .page-item.disabled .page-link,
main div.padded nav ul.pagination .page-item.disabled .page-link {
    background: #f5f9fe;
    border: 1px solid #ddeaf5;
    color: #b0c4d4;
    opacity: 0.65;
    cursor: not-allowed;
}

.main-content div.padded nav ul.pagination .page-item:first-child .page-link,
main div.padded nav ul.pagination .page-item:first-child .page-link,
.main-content div.padded nav ul.pagination .page-item:last-child .page-link,
main div.padded nav ul.pagination .page-item:last-child .page-link {
    padding: 0 12px;
    border: 1px solid #c7def2;
    background: #ffffff;
    color: #0075bc;
    font-weight: 600;
    font-size: 12px;
}

.main-content div.padded nav ul.pagination .page-item:first-child .page-link span[aria-hidden],
main div.padded nav ul.pagination .page-item:first-child .page-link span[aria-hidden],
.main-content div.padded nav ul.pagination .page-item:last-child .page-link span[aria-hidden],
main div.padded nav ul.pagination .page-item:last-child .page-link span[aria-hidden] {
    display: none;
}

.main-content div.padded nav ul.pagination .page-item:first-child .page-link::before,
main div.padded nav ul.pagination .page-item:first-child .page-link::before {
    content: "\2039 Previous";
    font-size: 12px;
    font-weight: 600;
}

.main-content div.padded nav ul.pagination .page-item:last-child .page-link::after,
main div.padded nav ul.pagination .page-item:last-child .page-link::after {
    content: "Next \203A";
    font-size: 12px;
    font-weight: 600;
}

.main-content div.padded .pagination-info,
main div.padded .pagination-info {
    flex: 0 0 auto;
    color: #5b7086;
    font-size: 12px;
    white-space: nowrap;
}

.main-content div.padded .pagination-info strong,
main div.padded .pagination-info strong {
    color: #1e3a52;
    font-weight: 700;
}

/* ----------------------------------------------------------
   ?v=20260513r  FIX: replaced overly-broad ".main-content div.padded" / "main div.padded"
   selectors that broke vertical page scroll.
   Now scoped to .gsh-pagination-bar (added to partials/pagination.blade.php)
   ---------------------------------------------------------- */

/* KILL the broad rules from the previous block */
.main-content div.padded,
main div.padded {
    display: block;
    flex-direction: unset;
    align-items: unset;
    justify-content: unset;
    flex-wrap: unset;
    gap: unset;
    padding: unset;
    background: unset;
    border-top: none;
    border-radius: unset;
    color: unset;
    font-size: unset;
    box-shadow: none;
}

/* -- Scoped to .gsh-pagination-bar (partials/pagination.blade.php wrapper) -- */
div.padded.gsh-pagination-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 18px;
    background: #ffffff;
    border-top: 1px solid #e8ecf1;
    border-radius: 0 0 8px 8px;
    color: #5b7086;
    font-size: 12px;
    box-shadow: none;
}

div.padded.gsh-pagination-bar nav {
    flex: 0 0 auto;
    margin: 0;
}

div.padded.gsh-pagination-bar nav ul.pagination {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    flex-wrap: wrap;
}

div.padded.gsh-pagination-bar nav ul.pagination .page-item {
    display: inline-flex;
    margin: 0;
}

div.padded.gsh-pagination-bar nav ul.pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #4a6580;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
    transition: background .15s, color .15s, border-color .15s;
}

div.padded.gsh-pagination-bar nav ul.pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background: #e8f3fb;
    border-color: #9ecae8;
    color: #0075bc;
}

div.padded.gsh-pagination-bar nav ul.pagination .page-item.active .page-link,
div.padded.gsh-pagination-bar nav ul.pagination .page-item.active .page-link:hover,
div.padded.gsh-pagination-bar nav ul.pagination .page-item.active .page-link:focus {
    background: #0075bc;
    border-color: #0075bc;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 117, 188, .30);
}

div.padded.gsh-pagination-bar nav ul.pagination .page-item.disabled .page-link,
div.padded.gsh-pagination-bar nav ul.pagination .page-item.disabled .page-link:hover {
    background: #f5f9fe;
    border: 1px solid #ddeaf5;
    color: #b0c4d4;
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

div.padded.gsh-pagination-bar nav ul.pagination .page-item:first-child .page-link,
div.padded.gsh-pagination-bar nav ul.pagination .page-item:last-child .page-link {
    min-width: auto;
    padding: 0 12px;
    border: 1px solid #c7def2;
    background: #ffffff;
    color: #0075bc;
    font-weight: 600;
    font-size: 12px;
}

div.padded.gsh-pagination-bar nav ul.pagination .page-item:first-child .page-link:hover,
div.padded.gsh-pagination-bar nav ul.pagination .page-item:last-child .page-link:hover {
    background: #e8f3fb;
    border-color: #9ecae8;
}

div.padded.gsh-pagination-bar nav ul.pagination .page-item:first-child .page-link span[aria-hidden],
div.padded.gsh-pagination-bar nav ul.pagination .page-item:last-child .page-link span[aria-hidden] {
    display: none;
}

div.padded.gsh-pagination-bar nav ul.pagination .page-item:first-child .page-link::before {
    content: "\2039 Previous";
    font-size: 12px;
    font-weight: 600;
}

div.padded.gsh-pagination-bar nav ul.pagination .page-item:last-child .page-link::after {
    content: "Next \203A";
    font-size: 12px;
    font-weight: 600;
}

div.padded.gsh-pagination-bar .pagination-info {
    flex: 0 0 auto;
    color: #5b7086;
    font-size: 12px;
    white-space: nowrap;
}

div.padded.gsh-pagination-bar .pagination-info strong {
    color: #1e3a52;
    font-weight: 700;
}

/* ----------------------------------------------------------
   ?v=20260513s  REVERT: Neutralize ALL changes from ?v=20260513q and ?v=20260513r
   Those blocks used overly-broad selectors that broke page scroll and dropdowns.
   ---------------------------------------------------------- */

/* 1. Reset div.pagination wrapper — restore transparent/no-border */
div.pagination {
    background: transparent;
    border-top: 0 none;
    border-radius: 0;
}

/* 2. Kill the flex layout injected onto div.pagination div.padded in ?q */
div.pagination div.padded {
    display: block;
    flex-direction: initial;
    align-items: initial;
    justify-content: initial;
    flex-wrap: initial;
    gap: initial;
    padding: revert;
    background: transparent;
    border-top: 0 none;
    border-radius: 0;
    color: inherit;
    font-size: inherit;
    box-shadow: none;
}

/* 3. Kill the broad .main-content div.padded / main div.padded overrides from ?q and ?r
      These were the root cause — flex in ?q broke scroll, block in ?r broke dropdowns */
.main-content div.padded,
main div.padded {
    display: revert;
    flex-direction: initial;
    align-items: initial;
    justify-content: initial;
    flex-wrap: initial;
    gap: initial;
    padding: revert;
    background: revert;
    border-top: revert;
    border-radius: revert;
    color: revert;
    font-size: revert;
    box-shadow: revert;
}

/* 4. Disable .gsh-pagination-bar rules (class removed from partial above) */
div.padded.gsh-pagination-bar {
    display: block;
    background: transparent;
    border-top: none;
    flex-direction: initial;
    align-items: initial;
    justify-content: initial;
}

/* ----------------------------------------------------------
   ?v=20260513t  ROOT CAUSE FIX
   #manual_add_student_form_modal has class "padded".
   Our display rules (q/r/s) overrode Bootstrap's display:none
   making the modal always visible -> body overflow:hidden (no scroll) +
   backdrop captured all clicks + sublink "modal appearing" symptom.
   Also: padding:revert in v=s zeroed out .padded's 25px padding.
   ---------------------------------------------------------- */

/* 1. Restore modal to Bootstrap's control (higher specificity than div.padded) */
.main-content .modal.padded,
main .modal.padded {
    display: none;
}

.main-content .modal.in.padded,
main .modal.in.padded {
    display: block;
}

/* 2. Restore original div.padded values (undo bad revert/flex from q/r/s) */
.main-content div.padded,
main div.padded {
    display: block;
    padding: 20px;
    /* original value from style.css */
    background: #fff;
    border-top: none;
    margin: 0 0 20px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, .1) !important;
    color: inherit;
    font-size: inherit;
    box-shadow: none;
    flex-direction: initial;
    align-items: initial;
    justify-content: initial;
    flex-wrap: initial;
    gap: initial;
}

/* ?v=20260513u — pagination nav left, info right, scoped only to div.pagination > div.padded */
div.pagination>div.padded {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px;
}

div.pagination>div.padded nav {
    flex: 0 0 auto;
}

div.pagination>div.padded .pagination-info {
    flex: 0 0 auto;
}

/* ?v=20260513v — pagination: nav left, info right, 20px side padding
   Uses .main-content to match specificity of v=t's display:block rule */
.main-content div.pagination>div.padded {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
}

.main-content div.pagination>div.padded nav {
    flex: 0 0 auto;
    margin: 0;
    order: 2;
}

.main-content div.pagination>div.padded ul.pagination {
    margin: 0;
}

.main-content div.pagination>div.padded .pagination-info {
    flex: 0 0 auto;
    margin-left: 0;
}

/* ?v=20260513w
   Fix 1: Pagination flex — main.main-content specificity (0-3-3) beats v=t block rule (0-2-1)
   Fix 2: Table mobile — remove forced min-width so Bootstrap hidden-xs/visible-xs works */

/* -- Fix 1: Pagination layout ----------------------------- */
main.main-content div.pagination>div.padded {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between !important;
    padding: 8px 20px;
    box-sizing: border-box;
    max-width: 100% !important;
}

main.main-content div.pagination>div.padded nav {
    flex: 0 0 auto;
    margin: 0;
    order: 2;
}

main.main-content div.pagination>div.padded nav ul.pagination {
    margin: 0;
}

main.main-content div.pagination>div.padded .pagination-info {
    flex: 0 0 auto;
    margin: 0;
    order: 1;
}

/* -- Fix 2: Table mobile responsive ---------------------- */
/* On mobile Bootstrap hidden-xs hides columns, but min-width:1080px still
   forces the table wider than screen. Remove the constraint on xs. */
@media (max-width: 767px) {
    .main-content .gsh-table {
        max-height: none;
        overflow-x: auto;
        overflow-y: visible;
    }

    .main-content .gsh-table .student-list {
        min-width: 0;
        width: 100%;
    }
}

/* ?v=20260513x — Mobile gsh-table: horizontal scroll like Bootstrap table-responsive */
@media (max-width: 767px) {
    .main-content .gsh-table {
        max-height: none;
        height: auto;
        overflow-x: auto;
        overflow-y: visible;
        width: 100%;
        margin: 0;
        -webkit-overflow-scrolling: touch;
        display: block;
    }

    .main-content .gsh-table .student-list {
        min-width: 0;
        width: 100%;
        display: table;
    }

    /* Ensure sticky thead does not break on mobile */
    .main-content .gsh-table .student-list>thead>tr>th {
        position: static;
    }
}

/* ?v=20260513z2 — Mobile fix: zero min-width + allow cell wrapping
   Global white-space:nowrap (0-2-2) makes even the two visible columns
   expand to their longest line, keeping the table very wide on mobile.
   Setting white-space:normal lets text wrap so the table fits the screen. */
@media (max-width: 767px) {

    /* 1. Kill the forced min-width on the table itself */
    .main-content .gsh-table table.student-list,
    .gsh-table table.student-list {
        min-width: 0;
        width: 100%;
        table-layout: auto;
    }

    .main-content .gsh-table table,
    .gsh-table table {
        min-width: 0;
    }

    /* 2. Allow text to wrap — use (0-3-1) specificity to beat the global
          nowrap rules (.main-content .gsh-table .student-list > thead > tr > th
          and .main-content .gsh-table .student-list > tbody > tr > td) */
    .main-content .gsh-table .student-list>thead>tr>th,
    .main-content .gsh-table .student-list>tbody>tr>td {
        white-space: normal;
        /* word-break: break-word; */
        overflow: visible;
        max-width: none;
    }

    /* 3. Status pill td: keep the chip itself on one line */
    .main-content .gsh-table .student-list>tbody>tr>td.status {
        white-space: nowrap;
    }

    .main-content .gsh-table .student-list td.status a {
        white-space: nowrap;
    }
}

/* ----------------------------------------------------------
   ADD NEW STUDENT MODAL — Professional redesign
   ?v=20260513z5
   ---------------------------------------------------------- */

/* ── Overlay backdrop ──────────────────────────────────── */
.modal-backdrop {
    background: #0d1f35;
}

.modal-backdrop.in {
    opacity: 0.62;
}

/* ── Modal dialog ──────────────────────────────────────── */
#manual_add_student_form_modal .modal-dialog {
    margin: 30px auto;
}

#manual_add_student_form_modal .modal-content {
    border: none;
    border-radius: 6px;
    box-shadow: none;
    overflow: hidden;
}

/* ── Modal header ──────────────────────────────────────── */
#manual_add_student_form_modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px 16px;
    background: #0075bc;
    border-bottom: none;
    border-radius: 0;
}

#manual_add_student_form_modal .modal-header .modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
}

#manual_add_student_form_modal .modal-header .close {
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    opacity: 1;
    text-shadow: none;
    transition: color 0.15s;
}

#manual_add_student_form_modal .modal-header .close:hover {
    color: #ffffff;
}

/* ── Modal body ────────────────────────────────────────── */
#manual_add_student_form_modal .modal-body {
    padding: 20px 24px 24px;
    background: #ffffff;
}

/* ── Section headings (h5.border-bottom) ──────────────── */
#manual_add_student_form_modal h5.border-bottom {
    margin: 20px 0 20px;
    padding: 0 0 8px;
    border-bottom: 1px solid #dce8f5;
    font-size: 12px;
    font-weight: 700;
    color: #0075bc;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#manual_add_student_form_modal h5.border-bottom:first-child {
    margin-top: 0;
}

/* ── Form rows / groups ────────────────────────────────── */
#manual_add_student_form_modal .form-group {
    margin-bottom: 20px;
}

#manual_add_student_form_modal .form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #7a93a8;
    text-transform: none !important;
}

/* Required marker */
#manual_add_student_form_modal .form-group.as-req label::after {
    content: " *";
    color: #e53935;
}

/* ── Inputs / Selects ──────────────────────────────────── */
#manual_add_student_form_modal .form-control {
    height: 34px;
    padding: 5px 10px;
    border: 1px solid #c6d9ee;
    border-radius: 5px;
    background: #ffffff;
    color: #1e3a52;
    font-size: 12px;
    font-weight: 400;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

#manual_add_student_form_modal select.form-control {
    cursor: pointer;
}

#manual_add_student_form_modal .form-control:focus {
    border-color: #0075bc;
    box-shadow: 0 0 0 3px rgba(0, 117, 188, 0.12);
    outline: none;
}

#manual_add_student_form_modal .form-control[disabled],
#manual_add_student_form_modal .form-control[readonly] {
    background: #f0f4f8;
    color: #8a9bad;
    cursor: not-allowed;
}

#manual_add_student_form_modal select.form-control[multiple],
#manual_add_student_form_modal select.form-control[size] {
    height: auto;
    min-height: 90px;
}

/* ── Error messages ────────────────────────────────────── */
#manual_add_student_form_modal .error-message {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: #e53935;
}

/* ── Informational notice ──────────────────────────────── */
#manual_add_student_form_modal .no-user-notice .col-sm-12 {
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 11px;
}

/* ── QLE section ───────────────────────────────────────── */
#manual_add_student_form_modal #crm_qle_wrap {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #dce8f5;
    border-radius: 6px;
    background: #ffffff;
}

#manual_add_student_form_modal #crm_qle_wrap h5.border-bottom {
    margin-top: 0;
}

#manual_add_student_form_modal .psuedo_form_label {
    font-size: 11px;
    font-weight: 700;
    color: #52687c;
    line-height: 34px;
}

/* ── Form footer ───────────────────────────────────────── */
#manual_add_student_form_modal .form-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding: 14px 16px;
    border-top: 1px solid #dce8f5;
    border-radius: 6px;
    background: #ffffff;
}

#manual_add_student_form_modal .form-footer .btn {
    height: 34px;
    padding: 0 20px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}

#manual_add_student_form_modal .form-footer .btn-secondary {
    border: 1px solid #c6d9ee;
    background: #ffffff;
    color: #35556f;
}

#manual_add_student_form_modal .form-footer .btn-secondary:hover {
    background: #f0f6fc;
    border-color: #9ecae8;
}

#manual_add_student_form_modal .form-footer .btn-primary {
    border: 1px solid #0075bc;
    background: #0075bc;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 117, 188, 0.2);
    float: none;
}

#manual_add_student_form_modal .form-footer .btn-primary:hover {
    background: #005f99;
    border-color: #005f99;
    box-shadow: 0 4px 12px rgba(0, 117, 188, 0.28);
    transform: translateY(-1px);
}

/* Coverage status radios */
#manual_add_student_form_modal #coverage_status_cont {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    float: none;
    margin-left: auto;
    font-size: 12px;
    color: #35556f;
}

#manual_add_student_form_modal #coverage_status_cont label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: #35556f;
    cursor: pointer;
}

/* ── Story label ───────────────────────────────────────── */
#manual_add_student_form_modal #story_label {
    height: 34px;
    padding: 5px 10px;
    border: 1px solid #c6d9ee;
    border-radius: 5px;
    background: #f0f4f8;
    color: #1e3a52;
    font-size: 12px;
    font-weight: 500;
    line-height: 24px;
}

/* ── Bootstrap rows inside modal get a white card feel ─── */
#manual_add_student_form_modal .row {
    margin-left: -8px;
    margin-right: -8px;
}

#manual_add_student_form_modal .row [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

/* ── Inline enroll-lock warning ────────────────────────── */
#manual_add_student_form_modal #enroll-lock-warning:not(:empty) {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 5px;
    background: #fff2e8;
    border: 1px solid #f0b07a;
    color: #7a3000;
    font-size: 12px;
}

/* ── Mobile: proper side spacing ──────────────────────── */
@media (max-width: 767px) {
    #manual_add_student_form_modal .modal-dialog {
        margin: 12px;
        width: auto;
    }

    #manual_add_student_form_modal .modal-body {
        padding: 16px 16px 20px;
    }

    .dark-bg.padded.search-records-bar.clearfix {
        flex-direction: column !important;
    }
}

.status.no-onclick a {
    display: none !important;
}