/* Monthly schedule tabs — generated markup, enhanced by schedules.js */

.schedule-tabs {
    margin-top: 0.75rem;
}

.schedule-tablist-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-bottom: 1px solid;
}

.schedule-tablist {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    min-width: min-content;
    padding-bottom: 0;
}

.schedule-tab {
    appearance: none;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    padding: 0.5rem 0.75rem;
    font: inherit;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.schedule-tab:hover,
.schedule-tab:focus-visible {
    outline: none;
    border-bottom-color: currentColor;
}

.schedule-tab[aria-selected="true"] {
    border-bottom-color: currentColor;
}

.schedule-panels {
    border: 1px solid;
    padding: 1rem;
    min-height: 12rem;
}

.schedule-panel-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.schedule-tabs .holidays {
    margin: 0.5rem 0 0.75rem;
}

.schedule-week-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0.75rem 0 1rem;
}

.schedule-week-prev,
.schedule-week-next,
.schedule-week-pill {
    appearance: none;
    font: inherit;
    cursor: pointer;
    border: 1px solid;
    background: transparent;
    padding: 0.35rem 0.65rem;
    min-width: 2.25rem;
    min-height: 2.25rem;
}

.schedule-week-prev:disabled,
.schedule-week-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.schedule-week-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.schedule-week-pill[aria-selected="true"] {
    font-weight: 700;
    text-decoration: underline;
}

.schedule-week-status {
    flex: 1 1 12rem;
    margin: 0;
    font-size: 0.95rem;
}

.table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0.5rem;
}

.schedule-tabs table {
    border-collapse: collapse;
    width: 100%;
    min-width: 36rem;
    font-size: 0.95rem;
}

.schedule-tabs caption {
    text-align: left;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.schedule-tabs th,
.schedule-tabs td {
    border: 1px solid;
    padding: 0.5rem 0.65rem;
    vertical-align: top;
    text-align: left;
}

.schedule-tabs thead th {
    white-space: nowrap;
}

.schedule-tabs .day-note {
    display: block;
    margin-top: 0.25rem;
    font-weight: 400;
    font-size: 0.85em;
    white-space: normal;
}

.schedule-tabs .day-date {
    font-weight: 400;
    font-size: 0.85em;
}

.schedule-tabs .day-date::before {
    content: "·";
    margin-inline: 0.25em;
    font-weight: 400;
}

.schedule-tabs .day-focus {
    display: block;
    margin-top: 0.2rem;
    font-weight: 400;
    font-size: 0.78em;
    white-space: normal;
    max-width: 8.5rem;
}

.schedule-tabs td.day-closed {
    text-align: center;
    font-weight: 600;
    font-style: italic;
    vertical-align: middle;
}

.schedule-tabs th[scope="row"] {
    white-space: nowrap;
    font-weight: 600;
}

@media (max-width: 40rem) {
    .schedule-tabs table {
        font-size: 0.85rem;
    }

    .schedule-tabs th,
    .schedule-tabs td {
        padding: 0.4rem 0.5rem;
    }
}
