.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-head {
    text-align: center;
    font-weight: 600;
    padding: 6px 0;
    background: #f1f3f5;
    border-radius: 4px;
}

.calendar-head.is-weekend {
    background: #f8d7da;
    color: #842029;
}

.calendar-cell {
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 4px;
    min-height: 110px;
    min-width: 0;
    padding: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: background-color 0.15s ease;
}

.calendar-cell:hover {
    background-color: #f8f9fa;
}

.calendar-cell.is-other-month {
    background: #f8f9fa;
    color: #adb5bd;
}

.calendar-cell.is-weekend {
    background: #fdf2f3;
}

.calendar-cell.is-weekend.is-other-month {
    background: #f9eced;
}

.calendar-cell.is-today {
    border: 2px solid #0d6efd;
}

.cell-date {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.cell-bookings {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.booking-chip {
    font-size: 0.7rem;
    line-height: 1.2;
    padding: 2px 4px;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f1f3f5;
    min-width: 0;
    max-width: 100%;
}

.booking-chip .chip-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.booking-chip .chip-dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.booking-chip.approved {
    background: #d1e7dd;
    color: #0f5132;
}

.booking-chip.rejected {
    text-decoration: line-through;
    opacity: 0.8;
}

.booking-chip-more {
    font-size: 0.7rem;
    color: #6c757d;
    padding: 1px 4px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    margin-right: 16px;
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
}

.day-booking-item {
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .calendar-cell {
        min-height: 80px;
        padding: 2px;
    }

    .cell-date {
        font-size: 0.8rem;
    }

    .booking-chip,
    .booking-chip-more {
        font-size: 0.62rem;
        padding: 1px 2px;
    }

    .calendar-head {
        font-size: 0.8rem;
        padding: 4px 0;
    }

    .calendar-grid {
        gap: 2px;
    }
}
