
.calendar-wrap {
    overflow-x: auto;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(135px, 1fr));
    min-width: 945px;
}

.calendar-head > div {
    padding: 12px;
    font-weight: 700;
    text-align: center;
    border: 1px solid #e8edf3;
    background: #f7f9fc;
}

.calendar-day {
    min-height: 145px;
    padding: 9px;
    border: 1px solid #e8edf3;
    background: #fff;
}

.calendar-day-muted {
    background: #f8f9fb;
    opacity: .65;
}

.calendar-day-today {
    box-shadow: inset 0 0 0 2px #0d6efd;
}

.calendar-day-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}

.calendar-day-number {
    font-weight: 800;
}

.calendar-add {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #edf4ff;
}

.calendar-events {
    display: grid;
    gap: 5px;
}

.calendar-event {
    display: block;
    padding: 6px 7px;
    border-left: 4px solid;
    border-radius: 6px;
    text-decoration: none;
    font-size: .78rem;
    line-height: 1.2;
    background: #f7f9fc;
}

.calendar-event-time {
    display: block;
    font-weight: 800;
}

.calendar-event-title {
    display: block;
    margin-top: 2px;
}

.calendar-event-normal { border-color: #0d6efd; }
.calendar-event-low { border-color: #6c757d; }
.calendar-event-high { border-color: #fd7e14; }
.calendar-event-urgent { border-color: #dc3545; background: #fff4f4; }

.agenda-row {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f4;
}

.agenda-time {
    font-size: 1.05rem;
    font-weight: 800;
}

.upcoming-row {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 13px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid #edf0f4;
    text-decoration: none;
    color: inherit;
}

.upcoming-date {
    width: 46px;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #edf4ff;
}

.upcoming-date strong {
    font-size: 1.15rem;
    line-height: 1;
}

.upcoming-date span {
    margin-top: 4px;
    font-size: .7rem;
    font-weight: 800;
}
