.apprentices-yearnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.apprentices-yearnav-title {
    min-width: 200px;
    display: block;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: .5rem;
    font-weight: 700;
    color: var(--color-textprimary);
}

.apprentices-yearnav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--color-textprimary);
    background-color: var(--color-input-alt);
    border: 1px solid var(--color-borderdecent);
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.apprentices-yearnav-btn:hover {
    background-color: var(--color-highlight);
    color: var(--color-highlight-invert);
    text-decoration: none;
}

.apprentices-yearcalendar td.date {
    cursor: pointer;
}

.apprentices-yearcalendar td.date.apprentices-state-blocked {
    background-color: #d4d4d4;
    color: #7a7a7a;
    cursor: default;
}

.apprentices-yearcalendar td.date.apprentices-state-empty {
    background-color: #ffffff;
    border: 1px solid var(--color-borderdecent);
}

.apprentices-yearcalendar td.date.apprentices-state-progress {
    background-color: #e0e7ff;
}

.apprentices-yearcalendar td.date.apprentices-state-rejected {
    background-color: #fecaca;
}

.apprentices-yearcalendar td.date.apprentices-state-pending {
    background-color: #fde68a;
}

.apprentices-yearcalendar td.date.apprentices-state-approved {
    background-color: #bbf7d0;
}

.calendar-legend-swatch.apprentices-state-blocked {
    background-color: #d4d4d4;
}

.calendar-legend-swatch.apprentices-state-empty {
    background-color: #ffffff;
    border: 1px solid var(--color-borderdecent);
}

.calendar-legend-swatch.apprentices-state-progress {
    background-color: #e0e7ff;
}

.calendar-legend-swatch.apprentices-state-rejected {
    background-color: #fecaca;
}

.calendar-legend-swatch.apprentices-state-pending {
    background-color: #fde68a;
}

.calendar-legend-swatch.apprentices-state-approved {
    background-color: #bbf7d0;
}

.apprentices-weekdays {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.apprentices-weekday {
    background-color: var(--color-input-alt);
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.apprentices-weekday.apprentices-state-blocked {
    background-color: #d4d4d4;
}

.apprentices-weekday.apprentices-state-blocked .apprentices-weekday-label,
.apprentices-weekday.apprentices-state-blocked .apprentices-weekday-value {
    color: #7a7a7a;
}

.apprentices-weekday-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-textprimary);
}

.apprentices-weekday-date {
    font-size: 0.8rem;
    color: var(--color-textprimary);
    margin-bottom: 4px;
}

.apprentices-weekday-select {
    width: 100%;
}

.apprentices-weekday-value {
    font-weight: 600;
    color: var(--color-textprimary);
}

.apprentices-weekperiod {
    color: var(--color-textprimary);
    font-weight: 400;
    margin-left: 4px;
}

.apprentices-hint {
    background-color: var(--color-highlight) !important;
    color: var(--color-highlight-invert) !important;
    border-color: var(--color-highlight) !important;
    padding: 0.5rem 0.75rem;
}

.apprentices-weeks-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-borderdecent);
}

.apprentices-weeks-toolbar .calendar-legend {
    margin-bottom: 0;
}

.apprentices-color-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.apprentices-weekstable th,
.apprentices-weekstable td {
    text-align: center;
    min-width: 32px;
}

.apprentices-weekstable th:first-child,
.apprentices-weekstable td:first-child {
    text-align: left;
    white-space: nowrap;
    min-width: 0;
    position: sticky;
    left: 0;
    z-index: 1;
    background-color: var(--color-input-alt);
    box-shadow: 1px 0 0 var(--color-borderdecent);
}

.apprentices-readonly-value {
    background-color: var(--color-input-alt);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--color-textprimary);
    white-space: pre-wrap;
    min-height: 2.5rem;
}
