/* Стили для календаря */
.calendar-zone {
    width: 100%;
    background: #fff;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: var(--panel-shadow);
}

#booking-calendar {
    width: 100%;
    height: auto;
    font-family: var(--font-primary);
}

/* Контейнер для селектов */
.calendar-selects-container {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

/* Стили для ячеек календаря */
.fc .fc-daygrid-day,
.fc .fc-col-header-cell {
    background: white;
    width: calc(100% / 7);
    height: 54px !important;
}

/* Стили для ячеек с днями недели */
.fc .fc-col-header-cell {
    vertical-align: middle;
    text-align: center;
    padding: 0;
}

.fc .fc-col-header-cell-cushion {
    padding: 0;
    color: var(--secondary-text);
    text-transform: uppercase;
    font-weight: var(--font-weight-medium);
    font-size: 16px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.fc .fc-daygrid-day-frame {
    height: 48px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fc .fc-daygrid-day-top {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    height: 100%;
}

.fc .fc-daygrid-day-number {
    float: none;
    padding: 0;
    font-size: 16px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стили для прошедших дат */
.fc .fc-day-past .fc-daygrid-day-number {
    color: #d0d1d3;
}

/* Стили для текущего дня */
.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    border-radius: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px;
    border: solid 2px var(--primary-color);
}

/* Стилизация выходных дней */
.fc-day-sun .fc-daygrid-day-number,
.fc-day-sat .fc-daygrid-day-number {
    color: #FF4444;
}

/* Принудительно устанавливаем высоту строк таблицы */
.fc .fc-scrollgrid-section-body table,
.fc .fc-scrollgrid-section-header table {
    table-layout: fixed;
}

.fc .fc-daygrid-body table {
    height: auto !important;
}

.fc .fc-daygrid-body-balanced {
    height: auto !important;
}

.fc .fc-daygrid-body-unbalanced {
    height: auto !important;
}

/* Убираем нижнюю часть ячейки, где обычно события */
.fc .fc-daygrid-day-events {
    display: none;
}

.fc .fc-daygrid-day-bg {
    display: none;
}

/* Адаптив для мобильных устройств */
@media (max-width: 500px) {
    .calendar-zone {
        margin-bottom: 20px;
        padding: 15px;
    }
} 