        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
        }

        body {
            background-color: #f5f5f5;
            display: flex;
        }
/* Кнопка в режиме игнорирования */
.btn-save.ignore-mode {
    background: linear-gradient(135deg, #ffc107, #ffa000);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
    animation: pulse-warning 1.5s infinite;
}

.btn-save.ignore-mode:hover {
    background: linear-gradient(135deg, #ffb300, #ff8f00);
    transform: translateY(-2px);
}

@keyframes pulse-warning {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}
        /* Боковое меню */
.sidebar {
    width: 260px; /* Было 200px - увеличено на 60px */
    background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
    color: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 10000 !important;
    transition: transform 0.3s ease;
}



body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}
/* Основной 30-минутный слот */
.main-thirty-minute-slot {
    position: relative;
    height: 60px; /* 2px * 30 минут = 60px */
    border-bottom: 1px solid rgba(0,0,0,0.1);
    background-color: transparent;
    transition: background-color 0.2s;
    box-sizing: border-box;
}

/* Слоты с записями */
.main-thirty-minute-slot.has-appointment {
    background-color: transparent;
}

/* Заблокированные слоты */
.main-thirty-minute-slot.time-blocked {
    background-color: #ffeeee;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 0, 0, 0.05),
        rgba(255, 0, 0, 0.05) 5px,
        rgba(255, 255, 255, 0.1) 5px,
        rgba(255, 255, 255, 0.1) 10px
    );
}

/* Выходные дни */
.main-thirty-minute-slot.weekend-day {
    background-color: #fff0f0;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 0, 0, 0.03),
        rgba(255, 0, 0, 0.03) 8px,
        rgba(255, 255, 255, 0.1) 8px,
        rgba(255, 255, 255, 0.1) 16px
    );
}

/* Свободные слоты */
.main-thirty-minute-slot.free-slot:hover {
    background-color: rgba(46, 204, 113, 0.1);
    cursor: pointer;
}

/* 5-минутные визуальные разделители */
.five-minute-divider {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(0,0,0,0.03);
    border-bottom: 1px dotted rgba(0,0,0,0.05);
    pointer-events: none; /* Важно: разделители не перехватывают клики */
    z-index: 1;
}

/* Позиционирование разделителей */
.five-minute-divider:nth-child(1) { top: 16.66%; }  /* 5 минут */
.five-minute-divider:nth-child(2) { top: 33.33%; } /* 10 минут */
.five-minute-divider:nth-child(3) { top: 50%; }     /* 15 минут */
.five-minute-divider:nth-child(4) { top: 66.66%; }  /* 20 минут */
.five-minute-divider:nth-child(5) { top: 83.33%; }  /* 25 минут */

/* Метки минут на разделителях */
.minute-marker {
    position: absolute;
    right: 5px;
    transform: translateY(-50%);
    font-size: 8px;
    color: rgba(0,0,0,0.2);
    pointer-events: none;
    z-index: 2;
}



/* Карточки записей */
.appointment-card {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    padding: 4px 6px;
    color: white;
    font-size: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    overflow: hidden;
    pointer-events: auto;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s;
}

.appointment-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 101;
}

/* Получасовые слоты */
.main-thirty-minute-slot.half-hour {
    background-color: rgba(0,0,0,0.01);
}
/* Стили для сворачиваемого комментария */
.comment-section {
    margin: 15px 0;

    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.comment-toggle {
    padding: 12px 15px;
    /* background: #f8f9fa; - удаляем или комментируем */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
    user-select: none;
    /* Убираем возможные обводки */
    border: none;
    outline: none;
}

.comment-toggle:hover {
    background: #e9ecef;
}

.comment-toggle i:first-child {
    color: #1e3442;
    font-size: 16px;
    flex-shrink: 0;
}

.comment-toggle-text {
    color: #2c3e50;
    font-weight: 500;
    white-space: nowrap;
}

.comment-preview {
    color: #666;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    font-style: italic;
}

.toggle-icon {
    transition: transform 0.3s ease;
    color: #666;
    margin-left: auto;
    flex-shrink: 0;
}
/* 5-минутные визуальные разделители */
.five-minute-divider {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(0,0,0,0.03);
    border-bottom: 1px dotted rgba(0,0,0,0.05);
    pointer-events: none;
    z-index: 1;
}

/* Позиционирование разделителей на основе data-атрибута */
.five-minute-divider[data-offset="5"] { top: 16.66%; }
.five-minute-divider[data-offset="10"] { top: 33.33%; }
.five-minute-divider[data-offset="15"] { top: 50%; }
.five-minute-divider[data-offset="20"] { top: 66.66%; }
.five-minute-divider[data-offset="25"] { top: 83.33%; }

/* Метки минут на разделителях */
.minute-marker {
    position: absolute;
    left: 5px;
    transform: translateY(-50%);
    font-size: 8px;
    color: rgba(0,0,0,0.2);
    pointer-events: none;
    z-index: 2;
}
.comment-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.comment-expanded {
    border-top: 1px solid #e0e0e0;
    background: white;
}

.comment-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 15px;
    border: none;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
}

.comment-textarea:focus {
    box-shadow: inset 0 0 0 2px #1e3442;
}

/* Если есть комментарий */
.comment-section.has-comment .comment-toggle-text {
    display: none;
}

.comment-section.has-comment .comment-preview {
    display: inline-block !important;
}

/* Добавьте этот класс после существующих стилей */
.day-slot.weekend-day .day-number-red,
.day-slot.time-blocked .day-number-red {
    color: #ff4f4f !important;
    font-weight: bold;
}
/* Красный цвет для цифр выходных дней в заголовке */
.day-cell .day-date.weekend-day-text {
    color: #ff4f4f !important;
    font-weight: bold;
}
/* Красные цифры для выходных в мини-календаре */
.mini-day.weekend-red {
    color: #ff4f4f !important;
    font-weight: bold;
}

/* Красные цифры для полностью заблокированных дней */
.mini-day.fully-blocked-red {
    color: #ff0000 !important;
    font-weight: bold;
    position: relative;
}



/* Стили для нового интерфейса услуг */
.selected-services-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
}

.selected-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 12px;
    transition: all 0.2s;
}

.selected-service-item:hover {
    background: #f0f0f0;
    border-color: #1e3442;
}

.service-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    flex: 1;
}

.service-name {
    font-weight: 500;
    color: #2c3e50;
    min-width: 150px;
}

.service-duration {
    color: #666;
    font-size: 0.9em;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
}

.service-price {
    font-weight: 600;
    color: #27ae60;
}

.service-discount {
    color: #e74c3c;
    font-size: 0.9em;
    background: #fdf0ed;
    padding: 2px 8px;
    border-radius: 12px;
}

.remove-service-item {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    margin-left: 10px;
}

.remove-service-item:hover {
    background: #ff4444;
    color: white;
}

/* Стили для кнопки-селекта */
.add-service-select-container {
    margin-top: 10px;
    width: 100%;
}

.add-service-select {
    width: 100%;
    padding: 12px 16px;
    background: #1e3442;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.add-service-select:hover {
    background-color: #2c3e50;
}

.add-service-select option,
.add-service-select optgroup {
    background: white;
    color: #2c3e50;
    padding: 8px;
}

.add-service-select optgroup {
    font-weight: 600;
    color: #1e3442;
}

.add-service-select option {
    padding: 8px;
}
        .logo {
            padding: 15px;
            text-align: center;
            border-bottom: 1px solid #34495e;
        }

        .logo h2 {
            color: white;
            font-size: 18px;
            margin-bottom: 5px;
        }

        /* Плашка тарифа */
        .tariff-badge {
            margin-top: 8px;
            padding: 6px 8px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 500;
            text-align: center;
            transition: all 0.3s;
        }

        .tariff-trial {
            background: rgba(52, 152, 219, 0.2);
            color: #3498db;
            border: 1px solid rgba(52, 152, 219, 0.3);
        }

        .tariff-active {
            background: rgba(46, 204, 113, 0.2);
            color: #27ae60;
            border: 1px solid rgba(46, 204, 113, 0.3);
        }

        .tariff-warning {
            background: rgba(231, 76, 60, 0.2);
            color: #e74c3c;
            border: 1px solid rgba(231, 76, 60, 0.3);
            animation: pulse 2s infinite;
        }

        .tariff-expired {
            background: rgba(231, 76, 60, 0.3);
            color: #c0392b;
            border: 1px solid #e74c3c;
            font-weight: 600;
        }

        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.7; }
            100% { opacity: 1; }
        }

        .tariff-loading {
            color: #95a5a6;
            font-size: 10px;
        }

        /* Мини-календар в меню */
        .mini-calendar {
            padding: 15px;
            border-bottom: 1px solid #34495e;
        }

        .mini-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            color: white;
        }

        .mini-header h3 {
            font-size: 14px;
            font-weight: 500;
        }

        .mini-nav-btn {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            padding: 5px;
            border-radius: 4px;
            transition: background 0.3s;
        }

        .mini-nav-btn:hover {
            background: #34495e;
        }

        .mini-weekdays {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            text-align: center;
            font-size: 11px;
            color: #95a5a6;
            margin-bottom: 5px;
        }

        .mini-days {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 2px;
        }

        .mini-day {
            aspect-ratio: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            border-radius: 4px;
            cursor: pointer;
            position: relative;
            transition: all 0.2s;
            border: 2px solid transparent;
        }

        .mini-day:hover {
            background: #34495e;
        }

        .mini-day.selected {
            background: #3498db;
            color: white;
        }

        .mini-day.today {
            border: 2px solid #3498db;
            font-weight: bold;
        }

        .mini-day.other-month {
            opacity: 0.3;
        }

        /* Обводка загруженности */
        .occupancy-low {
            border-color: #27ae60 !important;
        }

        .occupancy-medium {
            border-color: #f39c12 !important;
        }

        .occupancy-high {
            border-color: #e74c3c !important;
        }

        .occupancy-full {
            border-color: #c0392b !important;
            border-width: 3px !important;
        }

        .menu {
            padding: 10px 0;
        }

        .menu-button {
            display: block;
            padding: 10px 20px;
            color: #ecf0f1;
            text-decoration: none;
            transition: all 0.3s;
            font-size: 13px;
            border-left: 3px solid transparent;
            cursor: pointer;
            background: none;
            border: none;
            width: 100%;
            text-align: left;
        }

        .menu-button:hover {
            background: #34495e;
            border-left-color: #3498db;
        }

        .menu-button.active {
            background: #34495e;
            border-left-color: #3498db;
            font-weight: 500;
        }
		        .menu-button1 {
            display: none;
            padding: 8px 20px;
            color: #00ca76;
            text-decoration: none;
            transition: all 0.3s;
            font-size: 13px;
            border-left: 3px solid transparent;
            cursor: pointer;
            background: none;
            border: none;
            width: 100%;
            text-align: left;
        }
		
        .menu-button1:hover {
            background: #34495e;
            border-left-color: #3498db;
        }

        .menu-button1.active {
            background: #34495e;
            border-left-color: #3498db;
            font-weight: 500;
        }

        .menu i {
            margin-right: 8px;
            width: 18px;
            text-align: center;
        }

        /* Основной контент */
.content {
    flex: 1;
    margin-left: 260px; /* Было 200px */
    padding: 20px;
    background-color: #f5f5f5;
    min-height: 100vh;
    max-width: calc(100% - 260px); /* Было 200px */
    transition: margin-left 0.3s ease;
}

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 15px;
        }

        h1 {
            color: #2c3e50;
            font-size: 24px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        h1 i {
            color: #3498db;
        }

        .date-navigation {
            display: flex;
            align-items: center;
            gap: 10px;
            background: white;
            padding: 8px 15px;
            border-radius: 50px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            flex-wrap: wrap;
        }

        .nav-button {
            background: none;
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s;
            color: #2c3e50;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .nav-button:hover {
            background: #3498db;
            color: white;
        }

        .week-range {
            font-weight: 600;
            color: #2c3e50;
            min-width: 220px;
            text-align: center;
            font-size: 14px;
        }

        .today-button {
            background: #3498db;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 50px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: all 0.3s;
        }

        .today-button:hover {
            background: #2980b9;
            transform: scale(1.05);
        }

        .work-schedule-btn1 {
            background: #27ae60;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 50px;
            cursor: pointer;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
        }

        .work-schedule-btn1:hover {
            background: #229954;
            transform: scale(1.05);
        }

        .control-panel {
            background: white;
            padding: 15px 20px;
            border-radius: 12px;
            margin-bottom: 20px;
            display: flex;
            gap: 20px;
            align-items: center;
            flex-wrap: wrap;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .filter-group {
            display: flex;
            align-items: center;
            gap: 10px;
            background: #f8f9fa;
            padding: 5px 12px;
            border-radius: 50px;
        }
		.filter-group1 {
            display: flex;
            align-items: center;
            gap: 10px;
            background: #f8f9fa;
            padding: 5px 12px;
            border-radius: 50px;
        }

        .filter-group label {
            color: #2c3e50;
            font-weight: 500;
            font-size: 13px;
        }
        .filter-group1 label {
            color: #2c3e50;
            font-weight: 500;
            font-size: 13px;
        }
        .filter-group select, .filter-group input {
            padding: 6px 10px;
            border: 1px solid #ddd;
            border-radius: 50px;
            font-size: 13px;
            background: white;
        }
        .filter-group1 select, .filter-group1 input {
            padding: 6px 10px;
            border: 1px solid #ddd;
            border-radius: 50px;
            font-size: 13px;
            background: white;
        }

        .stats {
            display: flex;
            gap: 15px;
            margin-left: auto;
        }
        .stats1 {
            display: none;
            gap: 15px;
            margin-left: auto;
        }
        .stat-item {
            background: #f8f9fa;
            padding: 8px 15px;
            border-radius: 50px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .stat-value {
            font-size: 18px;
            font-weight: 600;
            color: #2c3e50;
        }

        .stat-label {
            font-size: 12px;
            color: #7f8c8d;
        }

        /* Кнопка режима блокировки */
        .block-mode-btn {
            background: #6c757d;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 50px;
            cursor: pointer;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
            margin-left: 10px;
        }

        .block-mode-btn.active {
            background: #ffc107;
            color: #2c3e50;
            transform: scale(1.05);
            box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.5);
        }

        /* Индикатор режима блокировки */
        .blocking-indicator {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: #ffc107;
            color: #2c3e50;
            padding: 12px 20px;
            border-radius: 50px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            font-weight: 600;
            z-index: 1000;
            display: none;
            align-items: center;
            gap: 10px;
            animation: pulse 2s infinite;
        }

        .blocking-indicator.show {
            display: flex;
        }

        .blocking-indicator button {
            background: #2c3e50;
            color: white;
            border: none;
            padding: 5px 12px;
            border-radius: 50px;
            cursor: pointer;
            font-size: 12px;
            margin-left: 10px;
        }

        .blocking-indicator button:hover {
            background: #1a252f;
        }

        /* ===== ДЕСКТОПНАЯ ВЕРСИЯ ТАБЛИЦЫ (7 колонок) ===== */
        .desktop-view .schedule-header {
            display: grid;
            grid-template-columns: 70px repeat(7, 1fr);
            min-width: 900px;
        }

        .desktop-view .schedule-body {
            display: grid;
            grid-template-columns: 70px repeat(7, 1fr);
            min-width: 900px;
        }

        /* ===== МОБИЛЬНАЯ ВЕРСИЯ ТАБЛИЦЫ (1 колонка) ===== */
        .mobile-view .schedule-header {
            display: grid;
            grid-template-columns: 70px 1fr;
            min-width: 100%;
        }

        .mobile-view .schedule-body {
            display: grid;
            grid-template-columns: 70px 1fr;
            min-width: 100%;
        }

        /* Общие стили для таблицы */
        .schedule-container {
            background: white;
            border-radius: 16px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            width: 100%;
            overflow-x: auto;
            overflow-y: visible;
            -webkit-overflow-scrolling: touch;
        }

        .schedule-header {
            background: #2c3e50;
            color: white;
            position: sticky;
            top: 0;
            z-index: 30;
        }

        .corner-cell {
            padding: 10px;
            background: #2c3e50;
            border-right: 1px solid #34495e;
            font-weight: 600;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .day-cell {
            padding: 10px 3px;
            text-align: center;
            border-right: 1px solid #34495e;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
        }

        .day-cell:hover {
            background: #34495e;
        }

        .day-cell.selected {
            background: #3498db;
        }

        .day-cell:last-child {
            border-right: none;
        }

        .day-name {
            font-size: 14px;
            margin-bottom: 2px;
        }

        .day-date {
            font-size: 11px;
            opacity: 0.8;
        }

        .schedule-body {
            background: white;
            position: relative;
        }

        .time-slot-label {
            padding: 8px 4px;
            text-align: center;
            border-bottom: 1px solid #e9ecef;
            border-right: 1px solid #e9ecef;
            font-weight: 500;
            font-size: 11px;
            color: #2c3e50;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f8f9fa;
        }

        .time-slot-label.half-hour {
            color: #7f8c8d;
            font-size: 10px;
        }

        .day-slot {
            border-bottom: 1px solid #e9ecef;
            border-right: 1px solid #e9ecef;
            height: 60px;
            position: relative;
            background: white;
            cursor: pointer;
            transition: all 0.2s;
        }

        .day-slot.half-hour {
            background: #fafafa;
        }

        .day-slot:hover:not(.blocked):not(.has-appointment):not(.weekend-day):not(.time-blocked) {
            background: #d4edda;
            transform: scale(1.02);
            box-shadow: 0 0 0 2px #28a745;
            z-index: 10;
        }

        .day-slot.free-slot::after {
            content: '+';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 18px;
            color: #28a745;
            opacity: 0;
            transition: opacity 0.2s;
            font-weight: bold;
            pointer-events: none;
        }

        .day-slot.free-slot:hover::after {
            opacity: 0.5;
        }

        .day-slot.weekend-day {
            background: repeating-linear-gradient(
                45deg,
                #f8f9fa,
                #f8f9fa 10px,
                #e9ecef 10px,
                #e9ecef 20px
            ) !important;
            cursor: not-allowed;
            position: relative;
            opacity: 0.7;
        }

        .day-slot.weekend-day::before {
            content: '🚫 Выходной';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 10px;
            color: #6c757d;
            font-weight: 600;
            white-space: nowrap;
            z-index: 5;
        }

        .day-slot.time-blocked {
            background: repeating-linear-gradient(
                45deg,
                #95a5a6,
                #95a5a6 10px,
                #7f8c8d 10px,
                #7f8c8d 20px
            ) !important;
            cursor: not-allowed;
            position: relative;
            pointer-events: none;
        }

        .day-slot.time-blocked::after {
            content: '🔒';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 16px;
            opacity: 0.9;
            z-index: 10;
            pointer-events: none;
        }

        .day-slot.blocked-by-user {
            background: repeating-linear-gradient(
                45deg,
                rgba(108, 117, 125, 0.3),
                rgba(108, 117, 125, 0.3) 10px,
                rgba(52, 58, 64, 0.4) 10px,
                rgba(52, 58, 64, 0.4) 20px
            ) !important;
            cursor: not-allowed;
            position: relative;
        }

        .day-slot.block-selection-start {
            background: rgba(40, 167, 69, 0.2) !important;
            border: 2px solid #28a745 !important;
            position: relative;
        }

        .day-slot.block-selection-start::after {
            content: '⬅️ Початок';
            position: absolute;
            top: -25px;
            left: 50%;
            transform: translateX(-50%);
            background: #28a745;
            color: white;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 10px;
            white-space: nowrap;
            z-index: 100;
        }

        .day-slot.blocking-highlight {
            background: rgba(255, 193, 7, 0.3) !important;
            border: 2px dashed #ffc107 !important;
            transform: scale(1.02);
            z-index: 25;
        }

        /* Карточки записей */
        .appointment-card {
            position: absolute;
            left: 1px;
            right: 1px;
            color: white;
            border-radius: 6px;
            padding: 4px 6px;
            font-size: 10px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.15);
            cursor: pointer;
            transition: all 0.2s;
            z-index: 20;
            overflow: hidden;
        }

        .appointment-card[data-status="Виконана"] {
            background: linear-gradient(135deg, #27ae60, #2ecc71);
            border-left: 3px solid #f39c12;
        }

        .appointment-card[data-status="Скасована"] {
            background: linear-gradient(135deg, #e74c3c, #c0392b);
            border-left: 3px solid #95a5a6;
            opacity: 0.8;
            text-decoration: line-through;
            text-decoration-color: rgba(255, 255, 255, 0.3);
        }

        .appointment-card[data-status="Підтверджена"] {
            background: linear-gradient(135deg, #3498db, #2980b9);
            border-left: 3px solid #f1c40f;
        }

        .appointment-card.online-appointment {
            position: relative;
        }

        .appointment-card .client-name {
            font-weight: 700;
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 11px;
        }

        .appointment-card .service-info {
            display: flex;
            justify-content: space-between;
            font-size: 9px;
            opacity: 0.95;
            margin-bottom: 2px;
        }

        .appointment-card .time-range {
            font-size: 8px;
            background: rgba(0,0,0,0.25);
            padding: 1px 4px;
            border-radius: 10px;
            display: inline-block;
        }

        .appointment-card .price-section {
            margin-top: 3px;
            font-size: 8px;
            border-top: 1px solid rgba(255,255,255,0.2);
            padding-top: 2px;
        }

        .appointment-card .online_zapis {
            margin-top: 3px;
            font-size: 7px;
            background: rgba(0,0,0,0.3);
            padding: 1px 4px;
            border-radius: 3px;
            display: inline-block;
        }

        .quick-add-tooltip {
            position: absolute;
            background: rgba(40, 167, 69, 0.9);
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 11px;
            pointer-events: none;
            z-index: 100;
            white-space: nowrap;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            margin-bottom: 5px;
        }

        /* Модальные окна */
        .modal, .edit-modal {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 25px;
            border-radius: 20px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.2);
            z-index: 1000;
            max-width: 500px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
        }

        .modal h3, .edit-modal h3 {
            color: #2c3e50;
            margin-bottom: 15px;
            padding-right: 30px;
            font-size: 20px;
        }

        .modal .close, .edit-modal .close {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 28px;
            cursor: pointer;
            color: #7f8c8d;
        }

        .modal .close:hover, .edit-modal .close:hover {
            color: #2c3e50;
        }

        .modal-info {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 12px;
            margin: 10px 0;
        }

        .modal-info p {
            margin: 10px 0;
            color: #34495e;
            line-height: 1.5;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-group label {
            display: block;
            margin-bottom: 5px;
            color: #2c3e50;
            font-weight: 500;
            font-size: 13px;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 10px 12px;
            border: 2px solid #e9ecef;
            border-radius: 10px;
            font-size: 14px;
            transition: all 0.3s;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            border-color: #3498db;
            outline: none;
        }

        .form-group small {
            color: #7f8c8d;
            font-size: 11px;
            margin-top: 3px;
            display: block;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        /* Стили для множественных услуг */
        .multiple-services-container {
            background: #f8f9fa;
            border: none;
            border-radius: 12px;
            padding: 15px;
            margin: 15px 0;
        }

        .services-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .services-header h4 {
            margin: 0;
            color: #2c3e50;
            font-size: 16px;
            display: none;
            align-items: center;
            gap: 8px;
        }

        .service-row {
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
            align-items: flex-start;
            background: white;
            padding: 12px;
            border-radius: 10px;
            border: 1px solid #e9ecef;
        }

        .service-select {
            flex: 1;
            padding: 10px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            font-size: 14px;
        }

        .remove-service-btn {
            background: #e74c3c;
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            flex-shrink: 0;
        }

        .remove-service-btn:hover {
            background: #c0392b;
            transform: scale(1.05);
        }

        .service-warning {
            color: #e74c3c;
            font-size: 11px;
            margin-top: 5px;
            padding: 5px;
            background: #fdf0ed;
            border-radius: 4px;
            width: 100%;
        }

        .add-service-btn {
            background: #3498db;
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            margin-top: 10px;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s;
        }

        .add-service-btn:hover {
            background: #2980b9;
            transform: translateY(-2px);
        }

        .price-info, .time-info {
            background: #e3f2fd;
            padding: 12px;
            border-radius: 10px;
            margin-bottom: 15px;
            font-size: 14px;
            border-left: 4px solid #3498db;
        }

        .price-info div, .time-info div {
            margin: 5px 0;
        }

        .price-info span, .time-info span {
            font-weight: 600;
            color: #2c3e50;
        }

        .availability-message {
            font-size: 13px;
            margin: 10px 0;
            padding: 10px;
            border-radius: 8px;
            display: none;
        }

        .availability-message.available {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
            display: block;
        }

        .availability-message.unavailable {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
            display: block;
        }

        .discount-section {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 10px;
            margin: 15px 0;
        }

        .discount-input {
            width: 100%;
            padding: 10px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            font-size: 14px;
            margin-bottom: 10px;
        }

        .discount-summary {
            background: #e3f2fd;
            padding: 12px;
            border-radius: 8px;
            border-left: 4px solid #27ae60;
        }

        .discount-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
        }

        .total-row {
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px solid #b0bec5;
            font-weight: bold;
        }

        .total-amount {
            font-size: 16px;
            font-weight: 700;
        }

        .button-group {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }

        .btn-save {
            flex: 1;
            padding: 12px;
            background: linear-gradient(135deg, #2ecc71, #27ae60);
            color: white;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
        }

        .btn-save:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
        }

        .btn-cancel {
            flex: 1;
            padding: 12px;
            background: linear-gradient(135deg, #e74c3c, #c0392b);
            color: white;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
        }

        .btn-cancel:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
        }

        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            z-index: 999;
        }

        .loading, .empty-state, .error-state {
            text-align: center;
            padding: 60px;
            color: #7f8c8d;
            background: white;
            border-radius: 16px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .loading i, .empty-state i, .error-state i {
            font-size: 48px;
            margin-bottom: 15px;
            color: #bdc3c7;
        }

        .error-state i {
            color: #e74c3c;
        }
/* Стили для вертикальной прокрутки только для ПК */
@media (min-width: 769px) {
    /* Для всей страницы */
    ::-webkit-scrollbar {
        width: 12px; /* Ширина скроллбара */
        height: 12px; /* Высота горизонтального скроллбара */
    }

    ::-webkit-scrollbar-track {
        background: #f1f1f1; /* Цвет фона трека */
        border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb {
        background: #888; /* Цвет ползунка */
        border-radius: 10px;
        border: 3px solid #f1f1f1; /* Создает отступы */
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #555; /* Цвет при наведении */
    }

    /* Для Firefox */
    * {
        scrollbar-width: thin; /* thin, auto, или none */
        scrollbar-color: #888 #f1f1f1; /* thumb track */
    }

    /* Стили для бокового меню */
    .sidebar {
        scrollbar-width: thin;
        scrollbar-color: #4a627a #2c3e50;
    }

    .sidebar::-webkit-scrollbar {
        width: 8px;
    }

    .sidebar::-webkit-scrollbar-track {
        background: #2c3e50;
        border-radius: 0;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: #4a627a;
        border-radius: 4px;
        border: 2px solid #2c3e50;
    }

    .sidebar::-webkit-scrollbar-thumb:hover {
        background: #5d7a9a;
    }

    /* Стили для основного контейнера расписания */
    .schedule-container {
        scrollbar-width: thin;
        scrollbar-color: #b0b0b0 #e0e0e0;
    }

    .schedule-container::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    .schedule-container::-webkit-scrollbar-track {
        background: #e0e0e0;
        border-radius: 5px;
    }

    .schedule-container::-webkit-scrollbar-thumb {
        background: #b0b0b0;
        border-radius: 5px;
        border: 2px solid #e0e0e0;
    }

    .schedule-container::-webkit-scrollbar-thumb:hover {
        background: #909090;
    }

    /* Стили для модальных окон */
    .modal, .edit-modal {
        scrollbar-width: thin;
        scrollbar-color: #c0c0c0 #f5f5f5;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal::-webkit-scrollbar,
    .edit-modal::-webkit-scrollbar {
        width: 8px;
    }

    .modal::-webkit-scrollbar-track,
    .edit-modal::-webkit-scrollbar-track {
        background: #f5f5f5;
        border-radius: 4px;
    }

    .modal::-webkit-scrollbar-thumb,
    .edit-modal::-webkit-scrollbar-thumb {
        background: #c0c0c0;
        border-radius: 4px;
    }

    .modal::-webkit-scrollbar-thumb:hover,
    .edit-modal::-webkit-scrollbar-thumb:hover {
        background: #a0a0a0;
    }

    /* Стили для списка выбранных услуг */
    .selected-services-list {
        scrollbar-width: thin;
        scrollbar-color: #c0c0c0 #f8f9fa;
        max-height: 300px;
        overflow-y: auto;
    }

    .selected-services-list::-webkit-scrollbar {
        width: 6px;
    }

    .selected-services-list::-webkit-scrollbar-track {
        background: #f8f9fa;
        border-radius: 3px;
    }

    .selected-services-list::-webkit-scrollbar-thumb {
        background: #c0c0c0;
        border-radius: 3px;
    }

    .selected-services-list::-webkit-scrollbar-thumb:hover {
        background: #a0a0a0;
    }

    /* Стили для выпадающих списков */
    select {
        scrollbar-width: thin;
        scrollbar-color: #c0c0c0 #ffffff;
    }

    select::-webkit-scrollbar {
        width: 8px;
    }

    select::-webkit-scrollbar-track {
        background: #ffffff;
        border-radius: 4px;
    }

    select::-webkit-scrollbar-thumb {
        background: #c0c0c0;
        border-radius: 4px;
    }

    select::-webkit-scrollbar-thumb:hover {
        background: #a0a0a0;
    }

    /* Стили для текстовых областей */
    textarea {
        scrollbar-width: thin;
        scrollbar-color: #c0c0c0 #ffffff;
    }

    textarea::-webkit-scrollbar {
        width: 8px;
    }

    textarea::-webkit-scrollbar-track {
        background: #ffffff;
        border-radius: 4px;
    }

    textarea::-webkit-scrollbar-thumb {
        background: #c0c0c0;
        border-radius: 4px;
    }

    textarea::-webkit-scrollbar-thumb:hover {
        background: #a0a0a0;
    }

    /* Анимированный скроллбар при наведении */
    .sidebar:hover::-webkit-scrollbar-thumb,
    .schedule-container:hover::-webkit-scrollbar-thumb,
    .modal:hover::-webkit-scrollbar-thumb {
        background: #666;
    }

    /* Плавная прокрутка для всей страницы */
    html {
        scroll-behavior: smooth;
    }

    /* Кастомизация для светлой темы в модальных окнах */
    .modal .modal-info {
        scrollbar-width: thin;
        scrollbar-color: #d0d0d0 #f8f9fa;
        max-height: 400px;
        overflow-y: auto;
    }

    .modal .modal-info::-webkit-scrollbar {
        width: 6px;
    }

    .modal .modal-info::-webkit-scrollbar-track {
        background: #f8f9fa;
        border-radius: 3px;
    }

    .modal .modal-info::-webkit-scrollbar-thumb {
        background: #d0d0d0;
        border-radius: 3px;
    }
}
/* Убираем отдельную прокрутку таблицы только для ПК */
@media (min-width: 769px) {
    /* Отключаем прокрутку для контейнера расписания */
    .schedule-container {
        overflow: visible !important; /* Убираем прокрутку */
        max-height: none !important; /* Убираем ограничение высоты */
        scrollbar-width: none !important; /* Для Firefox */
        -ms-overflow-style: none !important; /* Для IE/Edge */
    }

    /* Скрываем скроллбар для WebKit браузеров */
    .schedule-container::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    /* Для тела таблицы */
    .schedule-body {
        overflow: visible !important;
        max-height: none !important;
    }

    /* Для заголовка таблицы */
    .schedule-header {
        overflow: visible !important;
        position: sticky;
        top: 0;
        z-index: 30;
    }

    /* Убираем прокрутку у всех внутренних элементов таблицы */
    .desktop-view .schedule-header,
    .desktop-view .schedule-body,
    .desktop-view .schedule-container {
        overflow: visible !important;
    }

    /* Убираем скроллбары у всех возможных элементов таблицы */
    .desktop-view .schedule-container * {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .desktop-view .schedule-container *::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}
        /* ========================================================================= МОБІЛЬНІ СТИЛІ ===== */
        @media (max-width: 768px) {
            body {
                overflow-x: hidden;
                position: relative;
            }

            body.menu-open::after {
                content: '';
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(0, 0, 0, 0.5);
                z-index: 998;
                animation: fadeIn 0.3s ease;
            }
    .menu-button1 {
        display: block;
        font-weight: 600;
    }
	/* Метки минут на разделителях */

            .sidebar {
                transform: translateX(-100%);
                width: 280px;
            }

            .sidebar.open {
                transform: translateX(0);
            }

            /* Кнопка бургер для відкриття меню */
            .menu-toggle {
                display: block;
                position: fixed;
                top: 10px;
                left: 15px;
                z-index: 2000;
                background: #21394a;
                color: white;
                border: none;
                border-radius: 5%;
                width: 55px;
                height: 55px;
                font-size: 24px;
                cursor: pointer;
                box-shadow: 0 4px 10px rgba(0,0,0,0.2);
                transition: all 0.3s ease;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .menu-toggle:hover {
                background: #2ecc71;
                transform: scale(1.05);
            }

            .swipe-area {
                position: fixed;
                top: 0;
                left: 0;
                width: 20px;
                height: 100%;
                z-index: 997;
                background: transparent;
            }

            .content {
                margin-left: 0;
                padding: 15px;
                padding-top: 60px;
                width: 100%;
                max-width: 100%;
            }

            /* Заголовок по центру */
            .zbsclass {
                font-size: 20px;
                margin-top: -40px;
                margin-bottom: 10px;
                padding-left: 0;
                justify-content: center;
                text-align: center;
            }

            .header {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
            }

            .date-navigation {
			    background: none;
                width: 100%;
                justify-content: center;
                box-shadow: none;
            }

            .week-range {
                min-width: 180px;
                font-size: 16px;
            }
            .work-schedule-btn{
                padding: 6px 12px;
                font-size: 12px;
            }
            .today-button {
			    display: none;
                padding: 6px 12px;
                font-size: 12px;
            }

            .control-panel {
			    background: none;
				box-shadow: none;
                flex-direction: column;
                align-items: stretch;
                padding: 12px;
            }

            .filter-group {
                width: 100%;
				display: none;
            }
            .filter-group1 {
                width: 100%;
				margin-top: -40px;
            }
            .filter-group select, .filter-group input {
                flex: 1;
            }

            .stats {
			    display: none;
                margin-left: 0;
                width: 100%;
                justify-content: space-between;
            }
			.stats1 {
			    display: flex;
                margin-left: 0;
                max-width: 80%;
                justify-content: space-between;
				margin-top: -20px;
				margin-bottom: 45px;
            }
			

        .work-schedule-btn {
            background: #27ae60;
            color: white;
            border: none;
            padding: 6px 14px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
        }

        .work-schedule-btn1 {
            display: none;
        }
            .stat-item {
                flex: 1;
                justify-content: center;
            }

            .block-mode-btn {
                margin-left: 0;
                width: 100%;
                justify-content: center;
            }
    
    /* Заголовок таблицы - как в приложениях */
    .schedule-header {
        background: #f8f9fa;
        border-bottom: 1px solid #e9ecef;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    }
    
    /* Ячейки заголовка */
    .mobile-view .day-cell {
        padding: 15px 5px;
        background: white;
        border-right: 1px solid #f0f0f0;
        font-weight: 500;
        color: #2c3e50;
    }
    
    .mobile-view .day-cell.selected {
        background: #e3f2fd;
        color: #1976d2;
        position: relative;
    }
    
    .mobile-view .day-cell.selected::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 20%;
        right: 20%;
        height: 3px;
        background: #1976d2;
        border-radius: 3px 3px 0 0;
    }
    
    .mobile-view .corner-cell {
        background: #f8f9fa;
        color: #6c757d;
        font-weight: 500;
        border-right: 1px solid #e9ecef;
    }
    
    /* Метки времени - более компактные */
    .mobile-view .time-slot-label {
        background: #f8f9fa;
        color: #495057;
        font-size: 12px;
        font-weight: 500;
        padding: 8px 2px;
        border-right: 1px solid #e9ecef;
    }
    
    .mobile-view .time-slot-label.half-hour {
        color: #adb5bd;
        font-size: 11px;
    }
    
    /* Ячейки времени */
    .mobile-view .day-slot {
        border-bottom: 1px solid #f1f3f5;
        border-right: 1px solid #f1f3f5;
        transition: background 0.2s ease;
    }
    
    .mobile-view .day-slot:active {
        background: #e9ecef;
        transform: scale(0.98);
    }
    
    .mobile-view .day-slot.free-slot::after {
        font-size: 20px;
        color: #40c057;
        opacity: 0.3;
    }
    
    .mobile-view .day-slot.free-slot:active::after {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    
    /* Выходные дни - более аккуратно */
    .mobile-view .day-slot.weekend-day {
        background: repeating-linear-gradient(
            45deg,
            #f8f9fa,
            #f8f9fa 8px,
            #f1f3f5 8px,
            #f1f3f5 16px
        ) !important;
    }
    
    .mobile-view .day-slot.weekend-day::before {
        font-size: 9px;
        background: rgba(108, 117, 125, 0.1);
        padding: 2px 6px;
        border-radius: 12px;
        color: #6c757d;
        font-weight: normal;
    }
    
    /* Заблокированное время */
    .mobile-view .day-slot.time-blocked {
        background: repeating-linear-gradient(
            45deg,
            #f1f3f5,
            #f1f3f5 8px,
            #e9ecef 8px,
            #e9ecef 16px
        ) !important;
    }
    
    .mobile-view .day-slot.time-blocked::after {
        font-size: 14px;
        opacity: 0.5;
    }
    
    /* Карточки записей - как в мобильных приложениях */
    .mobile-view .appointment-card {
        border-radius: 10px;
        margin: 2px;
        padding: 6px 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border-left: 4px solid rgba(255,255,255,0.5);
        transition: transform 0.2s;
    }
    
    .mobile-view .appointment-card:active {
        transform: scale(0.98);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    
    .mobile-view .appointment-card[data-status="Підтверджена"] {
        background: linear-gradient(135deg, #4dabf7, #339af0);
    }
    
    .mobile-view .appointment-card[data-status="Виконана"] {
        background: linear-gradient(135deg, #51cf66, #40c057);
    }
    
    .mobile-view .appointment-card[data-status="Скасована"] {
        background: linear-gradient(135deg, #ff8787, #fa5252);
        opacity: 0.9;
    }
    
    .mobile-view .client-name {
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 4px;
    }
    
    .mobile-view .service-info {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .mobile-view .time-range {
        font-size: 10px;
        background: rgba(0,0,0,0.15);
        padding: 2px 8px;
        border-radius: 20px;
        display: inline-block;
        margin-bottom: 4px;
    }
    
    .mobile-view .price-section {
        font-size: 10px;
        margin-top: 6px;
        padding-top: 4px;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
    
    /* Убираем тултипы на мобильных (они мешают) */
    .mobile-view .quick-add-tooltip {
        display: none !important;
    }
    
    /* Добавляем визуальный отклик при нажатии */
    .mobile-view .day-slot {
        -webkit-tap-highlight-color: rgba(25, 118, 210, 0.1);
    }
    
    /* Плавные анимации */
    .mobile-view .day-slot,
    .mobile-view .appointment-card {
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
	
    .schedule-container {
        border-radius: 16px 16px 0 0;
        margin: 0 0 20px 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        background: white;
    }
	/* Добавьте после предыдущих стилей */

/* Нижняя навигация (если нужно) */
.mobile-view .schedule-footer {
    display: flex;
    justify-content: space-around;
    padding: 12px;
    background: white;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 16px 16px;
    margin-top: -1px;
}

.mobile-view .footer-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border: none;
    background: none;
    color: #6c757d;
    font-size: 11px;
    border-radius: 30px;
    transition: all 0.2s;
}

.mobile-view .footer-button i {
    font-size: 18px;
}

.mobile-view .footer-button.active {
    background: #e7f5ff;
    color: #1976d2;
}

.mobile-view .footer-button:active {
    background: #f1f3f5;
    transform: scale(0.95);
}

/* Индикатор загрузки как в приложении */
.mobile-view .loading {
    padding: 40px 20px;
    background: white;
    border-radius: 16px;
}

.mobile-view .loading i {
    font-size: 32px;
    color: #adb5bd;
    animation: pulse 1.5s infinite;
}

/* Анимация пульсации */
@keyframes pulse {
    0% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.6; transform: scale(1); }
}

/* Добавляем эффект при свайпе */
.mobile-view .schedule-body {
    scroll-snap-type: y mandatory;
}

.mobile-view .day-slot {
    scroll-snap-align: start;
}

/* Улучшаем скролл */
.mobile-view .schedule-container {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Скрываем скроллбар для Firefox */
}

.mobile-view .schedule-container::-webkit-scrollbar {
    display: none; /* Скрываем скроллбар для Chrome/Safari */
}
.edithuy {
    display: none;
}

            /* Мобильная таблица не должна скроллиться горизонтально */
            .mobile-view .schedule-header,
            .mobile-view .schedule-body {
                min-width: 100%;
                width: 100%;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .service-row {
                flex-direction: column;
            }

            .remove-service-btn {
                width: 100%;
                height: 40px;
            }

            .button-group {
                flex-direction: column;
            }

            .blocking-indicator {
                left: 20px;
                right: 20px;
                bottom: 20px;
                width: auto;
                text-align: center;
                flex-wrap: wrap;
                justify-content: center;
            }
        }

        @media (min-width: 769px) {
            .menu-toggle {
                display: none;
            }
            .swipe-area {
                display: none;
            }
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
		