.schedule-page .fi-header-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.schedule-page .fi-header-heading .school-week-badge {
    padding: 0.25rem 0.75rem;
    font-size: 0.8125rem;
}

.school-week-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.25;
    vertical-align: middle;
    white-space: nowrap;
}

.school-week-badge--a {
    background: #dbeafe;
    color: #1d4ed8;
}

.school-week-badge--b {
    background: #fef3c7;
    color: #b45309;
}

.school-week-badge--outside {
    background: #e4e4e7;
    color: #52525b;
}

@media (max-width: 767px) {
    .school-week-badge {
        font-size: 0.8125rem;
        line-height: 1.3;
    }
}

.school-week-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 0.75rem;
    padding: 0.625rem 0.875rem;
}

.school-week-banner--a {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.school-week-banner--b {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.school-week-banner__letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 700;
}

.school-week-banner--a .school-week-banner__letter {
    background: #dbeafe;
    color: #1d4ed8;
}

.school-week-banner--b .school-week-banner__letter {
    background: #fef3c7;
    color: #b45309;
}

.school-week-banner__label {
    color: #1f2937;
    font-size: 0.875rem;
    font-weight: 650;
}

.school-week-rotation {
    display: grid;
    gap: 0.75rem;
}

.school-week-rotation__intro h3 {
    margin: 0;
    color: #18181b;
    font-size: 0.875rem;
    font-weight: 600;
}

.school-week-rotation__intro p {
    margin: 0.25rem 0 0;
    color: #71717a;
    font-size: 0.8125rem;
}

.school-week-rotation__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 0.5rem;
    max-height: 18rem;
    overflow: auto;
    padding-right: 0.25rem;
}

.school-week-rotation__item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    border: 1px solid #e4e4e7;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.375rem 0.5rem;
}

.school-week-rotation__item--closed {
    background: #fafafa;
    opacity: 0.72;
}

.school-week-rotation__dates {
    color: #3f3f46;
    font-size: 0.75rem;
    font-weight: 550;
}

.school-week-rotation__closed {
    color: #a1a1aa;
    font-size: 0.6875rem;
}

.school-week-badge--closed {
    background: #e4e4e7;
    color: #3f3f46;
}

.fi-parent-portal .fi-ta-group-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.work-calendar {
    display: grid;
    gap: 1.25rem;
}

.work-calendar__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.work-calendar__lead {
    margin: 0;
    color: #3f3f46;
    font-size: 0.9375rem;
}

.work-calendar__period {
    margin: 0.25rem 0 0;
    color: #71717a;
    font-size: 0.8125rem;
}

.work-calendar__year-select {
    display: grid;
    gap: 0.25rem;
    color: #52525b;
    font-size: 0.75rem;
    font-weight: 600;
}

.work-calendar__year-select select {
    min-width: 10rem;
    border: 1px solid #d4d4d8;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.375rem 0.625rem;
    color: #18181b;
    font-size: 0.875rem;
}

.work-calendar__empty {
    display: grid;
    gap: 0.25rem;
    border: 1px dashed #d4d4d8;
    border-radius: 0.75rem;
    padding: 1.25rem;
    color: #71717a;
}

.work-calendar__summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.75rem;
}

.work-calendar__stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #e4e4e7;
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.75rem 0.875rem;
}

.work-calendar__stat strong {
    display: block;
    color: #18181b;
    font-size: 1.125rem;
    line-height: 1.2;
}

.work-calendar__stat span:last-child {
    color: #71717a;
    font-size: 0.75rem;
}

.work-calendar__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    color: #52525b;
    font-size: 0.8125rem;
}

.work-calendar__legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.work-calendar__swatch {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 0.25rem;
}

.work-calendar__swatch--a {
    background: #dbeafe;
    box-shadow: inset 0 0 0 1px #93c5fd;
}

.work-calendar__swatch--b {
    background: #fef3c7;
    box-shadow: inset 0 0 0 1px #fcd34d;
}

.work-calendar__swatch--closed {
    background: #e4e4e7;
    box-shadow: inset 0 0 0 1px #a1a1aa;
}

.work-calendar__months {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
}

.work-calendar-month {
    border: 1px solid #e4e4e7;
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.75rem;
}

.work-calendar-month h3 {
    margin: 0 0 0.625rem;
    color: #18181b;
    font-size: 0.875rem;
    font-weight: 650;
    text-transform: capitalize;
}

.work-calendar-month__weekdays,
.work-calendar-month__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.2rem;
}

.work-calendar-month__weekdays span {
    color: #a1a1aa;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-align: center;
    text-transform: uppercase;
}

.work-calendar-day {
    display: flex;
    min-height: 2.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05rem;
    border-radius: 0.375rem;
    padding: 0.2rem 0.25rem;
}

.work-calendar-day--empty {
    min-height: 0;
}

.work-calendar-day--a {
    background: #eff6ff;
}

.work-calendar-day--b {
    background: #fffbeb;
}

.work-calendar-day--closed {
    background: #f4f4f5;
    box-shadow: inset 0 0 0 1px #d4d4d8;
}

.work-calendar-day--outside {
    opacity: 0.38;
}

.work-calendar-day--weekend:not(.work-calendar-day--closed) {
    opacity: 0.72;
}

.work-calendar-day--today {
    box-shadow: inset 0 0 0 1.5px #0d9488;
}

.work-calendar-day__num {
    color: #27272a;
    font-size: 0.6875rem;
    font-weight: 650;
}

.work-calendar-day__mark {
    color: #64748b;
    font-size: 0.5625rem;
    font-weight: 700;
}

.work-calendar-day--a .work-calendar-day__mark {
    color: #1d4ed8;
}

.work-calendar-day--b .work-calendar-day__mark {
    color: #b45309;
}

.work-calendar-day__holiday {
    max-width: 100%;
    overflow: hidden;
    color: #52525b;
    font-size: 0.5rem;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.work-calendar__holidays {
    border: 1px solid #e4e4e7;
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.875rem 1rem;
}

.work-calendar__holidays h3 {
    margin: 0 0 0.5rem;
    color: #18181b;
    font-size: 0.875rem;
    font-weight: 650;
}

.work-calendar__holidays ul {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.work-calendar__holidays li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    color: #3f3f46;
    font-size: 0.8125rem;
}

.work-calendar__holidays strong {
    color: #18181b;
}

.work-calendar__holiday-count {
    color: #71717a;
}
