.hp-editorial .section-body > .container:has(.schedule-page) {
    max-width: none;
    padding-inline: clamp(16px, 2.5vw, 48px);
}

.schedule-page.schedules-main {
    padding: 0;
    color: #1e293b;
}

.schedule-page .schedules-heading {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #cbd5e1;
}

.schedule-page .schedules-heading h1 {
    margin: 0 0 6px;
    font-size: clamp(21px, 2.2vw, 30px);
    line-height: 1.35;
    text-wrap: pretty;
}

.schedule-page .schedules-heading p {
    margin: 0;
    color: #334155;
    font-size: 15px;
}

.schedule-page .schedule-list-tool,
.schedule-page .schedule-tool-right,
.schedule-page .showbtn {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.schedule-page .schedule-list-tool {
    margin-bottom: 16px;
}

.schedule-page .showweek > .btn-group {
    display: inline-flex;
    max-width: 100%;
}

.schedule-page #dropdown-selectweek {
    width: auto;
    min-width: 0;
}

.schedule-page .showweek .btn {
    min-height: 44px;
    background: #fff !important;
    border-color: #a4b6c8 !important;
    color: #12435f !important;
    font-weight: 600;
    white-space: normal;
}

.schedule-page .showweek [data-mode] {
    width: 44px;
    flex: 0 0 44px;
}

.schedule-page .showweek .btn:hover,
.schedule-page .showweek .open > .btn {
    background: #e8f1f7 !important;
}

.schedule-page .schedule-staff-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.schedule-page .schedule-staff-filter label {
    margin: 0;
    color: #1e293b;
    font-weight: 600;
}

.schedule-page .schedule-staff-filter select {
    width: min(100%, 240px);
    min-height: 44px;
    color: #1e293b;
    background-color: #fff;
}

.schedule-page .schedule-list-tool :is(button, select, a):focus-visible,
.schedule-page .schedule-table-wrap:focus-visible {
    outline: 2px solid #005781;
    outline-offset: 2px;
}

.schedule-page .schedule-table-wrap {
    overflow-x: auto;
}

.schedule-page #schedule-list {
    width: 100%;
    min-width: 780px;
    margin: 0;
}

/* Override the portal's generic table header and row colors in the schedule only. */
.schedule-page #schedule-list > thead > tr > th,
.schedule-page #schedule-list .week-head {
    min-width: 0;
    background: #005781 !important;
    color: #fff !important;
    border-bottom-color: #004364 !important;
    white-space: normal;
}

.schedule-page #schedule-list > thead > tr > th:first-child {
    width: 8rem;
}

.schedule-page #schedule-list > thead > tr > th:nth-child(2) {
    width: 13%;
}

.schedule-page #schedule-list > thead > tr > th:nth-child(3) {
    width: 7rem;
}

.schedule-page .schedule-column-description {
    display: block;
    margin-top: 4px;
    color: #eaf4fa;
    font-size: 12px;
    font-weight: 400;
}

.schedule-page #schedule-list td {
    overflow-wrap: anywhere;
}

.schedule-page #schedule-list td.etime,
.schedule-page #schedule-list td:first-child strong {
    color: #12435f !important;
}

.schedule-page :is(#schedule-list, .schedule-list-mobile) a {
    color: #005781;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.schedule-page .schedule-list-mobile .dayweek-head {
    background: #005781;
    color: #fff !important;
}

.schedule-page .schedule-list-mobile .panel-body {
    color: #1e293b;
    overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
    .schedule-page .schedule-table-wrap {
        display: none;
    }

    .schedule-page .showweek {
        width: 100%;
        margin: 0;
    }

    .schedule-page .showweek > .btn-group,
    .schedule-page .showweek .dropdown-toggle,
    .schedule-page .schedule-staff-filter,
    .schedule-page .schedule-staff-filter select {
        width: 100%;
    }

    .schedule-page #dropdown-selectweek {
        flex: 1;
    }

    .schedule-page .schedule-staff-filter label {
        flex-basis: 100%;
    }

    .schedule-page .schedule-tool-right {
        width: 100%;
    }
}
