/* ===== BOOKING DATE/TIME MODAL ===== */
.bv-datetime-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

@media (min-width: 768px) {
    .bv-datetime-overlay { align-items: center; }
}

.bv-datetime {
    background: #fff;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@media (min-width: 768px) {
    .bv-datetime { border-radius: 20px; max-height: 80vh; }
}

.bv-datetime-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.bv-datetime-header button {
    background: none; border: none; padding: 8px;
    cursor: pointer; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #666;
}

.bv-datetime-header button:hover { background: #f5f5f5; }
.bv-datetime-header h3 { font-size: 18px; font-weight: 600; margin: 0; color: #1a1a1a; }

.bv-datetime-body {
    flex: 1; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Лента дат */
.bv-date-strip {
    display: flex; align-items: center;
    padding: 12px 0 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    gap: 8px;
}

.bv-dates-scroll {
    display: flex; gap: 4px; flex: 1;
    overflow-x: auto; scrollbar-width: none;
    cursor: grab; user-select: none;
}

.bv-dates-scroll::-webkit-scrollbar { display: none; }
.bv-dates-scroll:active { cursor: grabbing; }

.bv-date-item {
    min-width: 65px; padding: 8px 4px;
    text-align: center; border-radius: 12px;
    cursor: pointer; flex-shrink: 0;
    transition: background 0.2s;
}

.bv-date-item:hover { background: #f5f5f5; }
.bv-date-item.active { background: #dd1847; color: #fff; }
.bv-date-item.weekend .bv-date-day { color: #dd1847; }
.bv-date-item.active .bv-date-day { color: #fff; }

.bv-date-day { font-size: 15px; font-weight: 500; }
.bv-date-month { font-size: 11px; opacity: 0.7; }

.bv-calendar-btn {
    background: none; border: none; padding: 8px;
    cursor: pointer; flex-shrink: 0;
    color: #666; margin-right: 8px;
}

/* Выбранная дата */
.bv-selected-date {
    padding: 16px 20px;
    font-size: 16px; font-weight: 500;
    color: #1a1a1a; text-align: center;
}

/* Сотрудники */
.bv-employees-list {
    padding: 0 16px 16px;
}

.bv-emp-time-block {
    margin-bottom: 20px;
}

.bv-emp-time-header {
    display: flex; align-items: center;
    gap: 12px; margin-bottom: 12px;
}

.bv-emp-avatar {
    width: 40px; height: 40px;
    border-radius: 50%; background: #f0f0f0;
    display: flex; align-items: center;
    justify-content: center; overflow: hidden;
    flex-shrink: 0;
}

.bv-emp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bv-emp-avatar svg { stroke: #999; }

.bv-emp-info { flex: 1; }
.bv-emp-time-name { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.bv-emp-details { font-size: 12px; color: #888; margin-top: 2px; }
.bv-detail-separator { margin: 0 6px; }

.bv-emp-timeslots {
    display: flex; flex-wrap: wrap; gap: 6px;
}

.bv-emp-timeslot {
    padding: 8px 12px; background: #f8f8f8;
    border-radius: 10px; font-size: 12px;
    font-weight: 500; color: #666;
    cursor: pointer; border: 1px solid transparent;
    user-select: none; transition: all 0.15s;
}

.bv-emp-timeslot:hover { background: #f0f0f0; }
.bv-emp-timeslot.selected { background: #dd1847; color: #fff; }
.bv-emp-timeslot.occupied { background: #f5f5f5; color: #ccc; cursor: not-allowed; }

/* Скелетоны */
.bv-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}

.bv-skeleton-avatar { width: 40px; height: 40px; border-radius: 50%; }
.bv-skeleton-name { width: 120px; height: 14px; margin-bottom: 6px; }
.bv-skeleton-detail { width: 80px; height: 12px; }
.bv-skeleton-slot { width: 70px; height: 34px; border-radius: 10px; }

/* Футер */
.bv-datetime-footer {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.bv-datetime-apply {
    width: 100%; padding: 16px;
    background: #dd1847; color: #fff;
    border: none; border-radius: 12px;
    font-size: 16px; font-weight: 600;
    cursor: pointer; font-family: inherit;
}

.bv-datetime-apply:disabled { background: #ccc; cursor: not-allowed; }

/* Попап времени */
.bv-time-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.bv-time-minute {
    padding: 12px; text-align: center;
    background: #f8f8f8; border-radius: 10px;
    font-size: 14px; font-weight: 500;
    cursor: pointer; transition: all 0.15s;
}

.bv-time-minute:hover { background: #f0f0f0; }
.bv-time-minute.selected { background: #dd1847; color: #fff; }