/* Czytelny kalendarz tygodniowy. Równoległe zajęcia zachowują pełny rozmiar
   i w razie potrzeby uruchamiają przewijanie poziome zamiast drobnego tekstu. */
.visual-week-calendar {
    scrollbar-gutter: stable;
    overscroll-behavior-inline: contain;
}

.visual-week-inner {
    min-width: var(--week-min-width, 1364px);
}

.visual-week-head,
.visual-week-body {
    grid-template-columns: 76px repeat(7, minmax(var(--week-day-min, 184px), 1fr));
}

.visual-week-head {
    height: 68px;
}

.visual-week-head > span {
    position: sticky;
    left: 0;
    z-index: 12;
    border-right: 1px solid #dfe4db;
    background: #fafbf8;
}

.visual-week-head > div {
    flex-direction: column;
    gap: 2px;
}

.visual-week-head small {
    font-size: 11px;
    letter-spacing: .07em;
}

.visual-week-head strong {
    font-size: 15px;
    line-height: 1.2;
}

.visual-week-body {
    background: linear-gradient(90deg, #fafbf8 75px, #dfe4db 76px, transparent 77px);
}

.visual-week-body > time {
    position: sticky;
    left: 0;
    z-index: 10;
    padding: 6px 13px 0 6px;
    border-right: 1px solid #dfe4db;
    background: #fafbf8;
    color: #5f695c;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    transform: translateY(-11px);
}

.calendar-line:nth-of-type(4n+1) {
    border-color: #d8ded5;
}

.visual-event {
    min-height: 48px;
    margin: 3px 5px;
    padding: 10px 12px;
    overflow: hidden;
    border-left-width: 5px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(35, 43, 31, .09);
    cursor: pointer;
}

.visual-event:hover,
.visual-event:focus-visible {
    z-index: 30;
    outline: 2px solid rgba(40, 49, 31, .3);
    outline-offset: 1px;
    box-shadow: 0 8px 22px rgba(35, 43, 31, .17);
}

.visual-event > div {
    align-items: center;
    gap: 8px;
}

.visual-event time,
.visual-event > div span {
    font-size: 11px;
    line-height: 1.2;
}

.visual-event > div span {
    padding: 2px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
}

.visual-event > strong {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 5px;
    font-size: 15px;
    line-height: 1.16;
    text-align: left;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.visual-event > small,
.visual-event > em {
    display: none;
}

.visual-event > a,
.visual-event summary {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.2;
}

.visual-event .occupancy-meter-v171.compact {
    gap: 5px;
    margin-top: 7px;
}

.visual-event .occupancy-meter-v171.compact .occupancy-track-v171 {
    height: 6px;
}

.visual-event .occupancy-meter-v171.compact > small {
    font-size: 10.5px !important;
    font-weight: 900;
}

.visual-event .open-day-session-badge-v94.compact,
.visual-event .future-course-transition-compact-v112 {
    margin-top: 6px;
    font-size: 10px;
    line-height: 1.25;
    text-align: left;
}

.visual-event .class-audience {
    display: none !important;
}

.visual-event.has-overlap {
    width: calc(var(--event-width, 100%) - 10px);
    margin-right: 5px;
    margin-left: calc(var(--event-offset, 0%) + 5px);
}

/* Krótkie bloki pokazują najważniejsze dane. Pełne szczegóły są w oknie
   otwieranym po kliknięciu, więc tekst nie nachodzi na sąsiednie zajęcia. */
.visual-event[style*="span 1;"],
.visual-event[style*="span 2;"] {
    padding-block: 6px;
}

.visual-event[style*="span 1;"] > small,
.visual-event[style*="span 1;"] > em,
.visual-event[style*="span 1;"] > .occupancy-meter-v171,
.visual-event[style*="span 2;"] > small,
.visual-event[style*="span 2;"] > em,
.visual-event[style*="span 2;"] > .occupancy-meter-v171 {
    display: none;
}

.visual-event[style*="span 1;"] > strong,
.visual-event[style*="span 2;"] > strong {
    margin-top: 3px;
    font-size: 12px;
    -webkit-line-clamp: 1;
}

@media (max-width: 780px) {
    .visual-week-calendar {
        border-radius: 14px;
    }

    .visual-week-head,
    .visual-week-body {
        grid-template-columns: 66px repeat(7, minmax(var(--week-day-min, 184px), 1fr));
    }

    .visual-week-body > time {
        padding-right: 10px;
    }
}
