.daily-product-timeline {
    background: linear-gradient(90deg, rgba(248, 249, 250, 1) 0%, rgba(248, 249, 250, 1) 100%);
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.75rem 0.75rem 2.5rem;
    min-height: 120px;
    overflow: visible;
    position: relative;
}

.daily-product-track {
    position: absolute;
    top: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
}

.daily-product-hour-track {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.25rem;
    pointer-events: none;
}

.daily-product-timeline::before {
    content: '';
    position: absolute;
    top: 0.75rem;
    bottom: 2.5rem;
    left: 0.75rem;
    right: 0.75rem;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: calc(100% / 24) 100%;
    pointer-events: none;
}

.daily-product-hour {
    position: absolute;
    top: 0;
    bottom: 1.25rem;
    width: 1px;
    background: rgba(0, 0, 0, 0.05);
}

.daily-product-hour-major {
    background: rgba(0, 0, 0, 0.1);
}

.daily-product-hour-label {
    position: absolute;
    top: 100%;
    margin-top: 0.25rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: #495057;
    padding: 0 0.4rem;
    white-space: nowrap;
}

.daily-product-hour-start .daily-product-hour-label {
    left: -8px;
    transform: translateX(0);
    text-align: left;
    padding-left: 0;
}

.daily-product-hour-end .daily-product-hour-label {
    left: 100%;
    transform: translateX(-100%);
    text-align: right;
}

.daily-product-hour-label-next {
    font-size: 0.6rem;
    color: #6c757d;
}

.daily-product-block {
    position: absolute;
    top: 0;
    bottom: 1.25rem;
    min-height: 60px;
    background: rgba(13, 110, 253, 0.15);
    border: 1px solid #0d6efd;
    border-radius: 0.5rem;
    overflow: visible;
    z-index: 1;
    left: calc(var(--left-percent, 0) * 1%);
    width: calc(var(--width-percent, 0) * 1%);
    cursor: pointer;
}

.daily-product-block-active {
    background: rgba(25, 135, 84, 0.2);
    border-color: #198754;
}

.daily-product-block-canceled {
    background: rgba(220, 53, 69, 0.15);
    border-color: #dc3545;
}

.daily-product-block::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translate(-50%, 4px);
    background: rgba(33, 37, 41, 0.95);
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.2;
    padding: 0.3rem 0.5rem;
    border-radius: 0.35rem;
    white-space: nowrap;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 2;
}

.daily-product-block::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 0.2rem);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 0.35rem solid transparent;
    border-right: 0.35rem solid transparent;
    border-top: 0.35rem solid rgba(33, 37, 41, 0.95);
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
    z-index: 2;
}

.daily-product-block:hover::after,
.daily-product-block:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, -2px);
}

.daily-product-block:hover::before,
.daily-product-block:focus-visible::before {
    opacity: 1;
}

.daily-product-no-reservations {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.85rem;
}

@keyframes blink {
    from {
        opacity: 1;
    }
    to {
        opacity: 0.4;
    }
}

