﻿body {

}

/* Place in src/Qintec.Qps.Calendar/Components/Views/CalendarViews.razor.css or your global stylesheet */

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f5f5f5;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

.calendar-header-cell {
    padding: 0.5rem;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 100px;
    gap: 1px;
    background: #ddd;
}

.calendar-grid--week {
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 120px;
}

.calendar-cell {
    background: #fff;
    padding: 0.25rem;
    position: relative;
    min-height: 80px;
    border: 1px solid #eee;
}

.calendar-cell--other {
    background: #f9f9f9;
    color: #bbb;
}

.calendar-cell-date {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.calendar-item {
    background: #e3f2fd;
    color: #1976d2;
    margin-bottom: 0.2rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    word-break: break-word;
}

.calendar-day-items {
    padding: 1rem;
}

@media (max-width: 900px) {
    .calendar-header, .calendar-grid, .calendar-grid--week {
        grid-template-columns: repeat(2, 1fr);
    }
}