﻿.schedule-container {
    display: flex;
    flex-direction: row;
    position: relative;
}

/* Левая колонка времени */
.time-column {
    width: 70px;
    flex-shrink: 0;
    border-right: 1px solid #ddd;
    background: #fafafa;
}

.time-label {
    text-align: right;
    padding-right: 6px;
    font-size: 0.8rem;
    color: #666;
    border-bottom: 1px dashed #e0e0e0;
    height: 30px; /* 15 минут = 30px (1 минута = 2px) */
    line-height: 30px;
}

.time-hour {
    font-weight: bold;
    font-size: 0.9rem;
    color: #333;
    border-bottom: 1px solid #ccc;
    background-color: #f8f8f8;
}

.time-quarter {
    font-weight: normal;
    color: #777;
}

/* Колонки дней */
.day-column {
    position: relative;
    width: 160px;
    border-left: 1px solid #ddd;
}

.day-header {
    text-align: center;
    background: #f5f5f5;
    font-weight: bold;
    padding: 4px 0;
    border-bottom: 1px solid #ddd;
}

/* Область событий */
.events-area {
    position: relative;
    height: calc(24 * 60 * 2px); /* 24 часа × 60 минут × 2px */
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    background-color: #fff;
}

    .events-area::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: repeating-linear-gradient( to bottom, transparent 0, transparent 119px, rgba(0, 0, 0, 0.04) 120px );
        pointer-events: none;
    }

    .events-area:hover {
        background-color: #f9f9ff;
    }

/* Событие */
.event-block {
    position: absolute;
    left: 4px;
    right: 4px;
    color: white;
    border-radius: 6px;
    padding: 4px;
    font-size: 0.8rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.1s ease-in, box-shadow 0.1s ease-in;
    opacity: 0.95;
}

    .event-block:hover {
        transform: scale(1.02);
        z-index: 10;
        opacity: 1;
    }
