       * {
            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;
        }
/* Стили для группированных карточек */
.block-count {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: #e74c3c;
    color: white;
}

.time-slot:last-child {
    border-bottom: none !important;
}

.time-slot:hover {
    background: #f8f9fa;
    border-radius: 4px;
}
        /* Боковое меню - исправленная версия */
        .sidebar {
            width: 200px;
            background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
            color: white;
            height: 100vh;
            position: fixed;
            left: 0;
            top: 0;
            overflow-y: hidden;
            box-shadow: 2px 0 10px rgba(0,0,0,0.1);
            display: flex;
            flex-direction: column;
        }

        /* Добавляем прокрутку только для меню */
        .menu {
            padding: 15px 0;
            flex: 1;
            overflow-y: auto;
            min-height: 0;
            
            &::-webkit-scrollbar {
                width: 6px;
            }
            
            &::-webkit-scrollbar-track {
                background: rgba(255, 255, 255, 0.05);
                border-radius: 10px;
            }
            
            &::-webkit-scrollbar-thumb {
                background: rgba(255, 255, 255, 0.2);
                border-radius: 10px;
                transition: background 0.3s;
            }
            
            &::-webkit-scrollbar-thumb:hover {
                background: rgba(255, 255, 255, 0.3);
            }
        }

        .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;
        }

        .menu-button {
            display: block;
            padding: 8px 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-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-button:hover {
            background: #34495e;
            border-left-color: #3498db;
        }
        
        
        .menu-button.active {
            background: #34495e;
            border-left-color: #3498db;
            font-weight: 500;
        }
        
        
        .menu i {
            margin-right: 8px;
            width: 18px;
            text-align: center;
        }

        /* Блок новостей внизу меню */
        .news-section {
            padding: 15px;
            border-top: 1px solid #34495e;
            background: rgba(0, 0, 0, 0.2);
            flex-shrink: 0;
            margin-top: auto;
        }

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

        .news-header h3 {
            color: #ecf0f1;
            font-size: 13px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .news-header .all-news-btn {
            background: none;
            border: none;
            color: #3498db;
            font-size: 11px;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 4px;
            transition: all 0.3s;
        }

        .news-header .all-news-btn:hover {
            background: rgba(52, 152, 219, 0.2);
        }

        .latest-news {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 6px;
            padding: 10px;
            margin-bottom: 12px;
            font-size: 12px;
            color: #bdc3c7;
            line-height: 1.5;
            max-height: 80px;
            overflow: hidden;
            position: relative;
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .latest-news.expanded {
            max-height: 200px;
            overflow-y: auto;
            background: rgba(255, 255, 255, 0.1);
        }

        .latest-news:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .latest-news .news-content {
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .latest-news.expanded .news-content {
            display: block;
            -webkit-line-clamp: unset;
        }

        .support-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: linear-gradient(135deg, #27ae60, #2ecc71);
            color: white;
            padding: 10px;
            border-radius: 6px;
            text-decoration: none;
            font-size: 12px;
            font-weight: 500;
            transition: all 0.3s;
            border: none;
            width: 100%;
            cursor: pointer;
            margin-top: 8px;
        }

        .support-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3);
        }

        .support-btn i {
            font-size: 14px;
        }

        /* Модальное окно новостей */
        .news-modal {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 25px;
            border-radius: 16px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
            z-index: 1001;
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
        }

        .news-modal h2 {
            color: #2c3e50;
            font-size: 20px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            padding-right: 30px;
        }

        .news-modal .close {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 24px;
            cursor: pointer;
            color: #7f8c8d;
            transition: color 0.3s;
        }

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

        .news-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .news-item {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 10px;
            border-left: 3px solid #3498db;
        }

        .news-item .news-date {
            font-size: 11px;
            color: #7f8c8d;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .news-item .news-date i {
            color: #3498db;
            font-size: 10px;
        }

        .news-item .news-text {
            color: #2c3e50;
            font-size: 13px;
            line-height: 1.5;
            white-space: pre-wrap;
        }

        /* Основной контент */
        .content {
            flex: 1;
            margin-left: 200px;
            padding: 20px;
            background-color: #f5f5f5;
            min-height: 100vh;
        }

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

        h1 i {
            color: #e74c3c;
        }

        /* Оверлей блокировки */
        .blocked-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }

        .blocked-overlay.active {
            display: flex;
        }

        .blocked-modal {
            background: white;
            padding: 40px;
            border-radius: 12px;
            text-align: center;
            max-width: 400px;
            width: 90%;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }

        .blocked-modal i {
            font-size: 60px;
            color: #e74c3c;
            margin-bottom: 20px;
        }

        .blocked-modal h2 {
            color: #2c3e50;
            margin-bottom: 15px;
            font-size: 24px;
        }

        .blocked-modal p {
            color: #7f8c8d;
            margin-bottom: 25px;
            line-height: 1.6;
        }

        .blocked-modal button {
            background: #3498db;
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.3s;
        }

        .blocked-modal button:hover {
            background: #2980b9;
        }

        /* Панель управления */
        .control-panel {
            background: white;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 25px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .filter-buttons {
            display: flex;
            gap: 10px;
            width: 100%;
        }

        .search-button {
            flex: 1;
            background: #243e4f;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s;
        }

        .search-button:hover {
            background: #2980b9;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
        }

        .search-button.active {
            background: #27ae60;
            position: relative;
        }

        .search-button.active::after {
            content: '';
            position: absolute;
            top: -2px;
            right: -2px;
            width: 10px;
            height: 10px;
            background: #e74c3c;
            border-radius: 50%;
            border: 2px solid white;
        }

        .add-button {
            flex: 1;
            background: #e74c3c;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s;
        }

        .add-button:hover {
            background: #c0392b;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
        }

        .date-range {
            display: flex;
            align-items: center;
            gap: 10px;
            background: #f8f9fa;
            padding: 5px 15px;
            border-radius: 10px;
            width: 100%;
        }

        .date-range input {
            flex: 1;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
        }

        .date-range span {
            color: #7f8c8d;
        }

        /* Модальное окно поиска */
        .search-modal {
            max-width: 450px;
        }

        .search-form {
            padding: 10px 0;
        }

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

        .search-input:focus {
            border-color: #243e4f;
            outline: none;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
        }

        .quick-filters {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin: 20px 0;
        }

        .quick-filter {
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            padding: 10px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
            color: #2c3e50;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }

        .quick-filter:hover {
            background: #243e4f;
            border-color: #243e4f;
            color: white;
        }

        .quick-filter i {
            font-size: 12px;
        }

        .search-actions {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }

        .btn-search {
            flex: 2;
            background: #243e4f;
            color: white;
            border: none;
            padding: 12px;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-search:hover {
            background: #2980b9;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
        }

        .btn-clear {
            flex: 1;
            background: #e0e0e0;
            color: #2c3e50;
            border: none;
            padding: 12px;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-clear:hover {
            background: #d0d0d0;
        }

        /* Карточки для мобильной версии */
        .blocks-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .block-card {
            background: white;
            border-radius: 12px;
            padding: 15px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            display: flex;
            flex-direction: column;
            gap: 10px;
            border-left: 4px solid #e74c3c;
        }

        .block-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 5px;
        }

        .block-card-date {
            font-size: 16px;
            font-weight: 600;
            color: #2c3e50;
        }

        .block-card-actions {
            display: flex;
            gap: 10px;
        }

        .block-card-time {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            padding: 8px 0;
        }

        .time-item {
            display: flex;
            align-items: center;
            gap: 5px;
            color: #34495e;
            font-size: 14px;
        }

        .time-item i {
            color: #e74c3c;
            width: 16px;
        }

        .block-card-duration {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #7f8c8d;
            font-size: 13px;
            padding-top: 8px;
            border-top: 1px solid #e9ecef;
        }

        .block-card-duration i {
            color: #243e4f;
        }

        .block-badge {
            display: inline-block;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 500;
            background: #fee;
            color: #e74c3c;
            border: 1px solid #fcc;
        }

        .action-btn {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s;
            padding: 5px;
            border-radius: 4px;
        }

        .edit-btn {
            color: #243e4f;
        }

        .edit-btn:hover {
            background: #e8f0fe;
        }

        .delete-btn {
            color: #e74c3c;
        }

        .delete-btn:hover {
            background: #fee;
        }

        .empty-state {
            text-align: center;
            padding: 60px;
            color: #7f8c8d;
        }

        .empty-state i {
            font-size: 60px;
            margin-bottom: 15px;
            color: #bdc3c7;
        }

        .loading {
            text-align: center;
            padding: 40px;
            color: #7f8c8d;
        }

        .loading i {
            font-size: 40px;
            margin-bottom: 10px;
            color: #bdc3c7;
        }

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

        .modal h2 {
            color: #2c3e50;
            margin-bottom: 20px;
            font-size: 22px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

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

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

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

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

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

        .form-group input:focus {
            border-color: #243e4f;
            outline: none;
        }

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

        .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-delete {
            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-delete:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
        }

        .btn-cancel {
            flex: 1;
            padding: 12px;
            background: #e0e0e0;
            color: #2c3e50;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
        }

        .btn-cancel:hover {
            background: #d0d0d0;
        }

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

        /* Таблица для ПК */
        .desktop-table {
            display: table;
            width: 100%;
            border-collapse: collapse;
        }

        .desktop-table th {
            text-align: left;
            padding: 15px 10px;
            color: #2c3e50;
            font-weight: 600;
            font-size: 13px;
            border-bottom: 2px solid #e0e0e0;
        }

        .desktop-table td {
            padding: 12px 10px;
            border-bottom: 1px solid #e9ecef;
            color: #34495e;
            font-size: 13px;
            vertical-align: middle;
        }

        .desktop-table tr:hover {
            background: #f8f9fa;
        }

        /* ======================================== МОБІЛЬНІ СТИЛІ ===== */
        @media (max-width: 768px) {
            body {
                overflow-x: hidden;
                position: relative;
                width: 100%;
                height: 100%;
            }

            .content {
                margin-left: 0;
                padding: 15px;
                padding-top: 30px;
                width: 100%;
                transition: transform 0.3s ease;
                min-height: 100vh;
                background-color: #f5f5f5;
            }
            
            .menu-button1 {
                display: block;
				font-weight: 600;
            }
            
            h1 {
                font-size: 20px;
                margin-top: 5px;
                margin-bottom: 15px;
                padding-left: 0;
                justify-content: center;
                text-align: center;
            }

            body.menu-open::after {
                content: '';
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(0, 0, 0, 0.5);
                z-index: 999;
                animation: fadeIn 0.3s ease;
            }

            .sidebar {
                transform: translateX(-100%);
                transition: transform 0.3s ease;
                z-index: 1000;
                width: 280px;
                box-shadow: 2px 0 20px rgba(0,0,0,0.2);
            }

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

            body.menu-open {
                overflow: hidden;
                position: fixed;
                width: 100%;
                height: 100%;
            }

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

            body.menu-open .content {
                pointer-events: none;
                opacity: 0.7;
                transition: opacity 0.3s ease;
            }
            
            .menu-toggle {
                display: block;
                position: fixed;
                top: 10px;
                left: 15px;
                z-index: 1001;
                background: #243d4f;
                color: white;
                border: none;
                border-radius: 5%;
                width: 44px;
                height: 44px;
                font-size: 22px;
                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: 998;
                background: transparent;
            }

            .control-panel {
			    background: none;
				box-shadow: none;
                flex-direction: column;
                align-items: stretch;
                padding: 15px;
                margin-top: 5px;
                margin-bottom: 15px;
            }

            .filter-buttons {
                flex-direction: row;
            }

            .search-button, .add-button {
                width: 100%;
                justify-content: center;
                padding: 12px;
            }

            .date-range {
                flex-direction: column;
                align-items: stretch;
                padding: 10px;
                width: 100%;
            }

            .date-range input {
                width: 100%;
                font-size: 14px;
            }

            .date-range span {
                text-align: center;
                padding: 5px;
            }

            .desktop-table {
                display: none;
            }

            .blocks-list {
                display: flex;
            }

            .modal {
                width: 95%;
                padding: 20px;
                max-height: 90vh;
            }

            .modal h2 {
                font-size: 18px;
                margin-bottom: 15px;
            }

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

            .form-group label {
                font-size: 12px;
            }

            .form-group input {
                padding: 10px;
                font-size: 14px;
            }

            .button-group {
                flex-direction: column;
                gap: 8px;
            }

            .btn-save, .btn-delete, .btn-cancel {
                width: 100%;
                padding: 12px;
                font-size: 14px;
            }

            .empty-state {
                padding: 30px 15px;
            }

            .empty-state i {
                font-size: 48px;
            }

            .empty-state p {
                font-size: 14px;
            }

            .blocked-modal {
                padding: 25px 20px;
            }

            .blocked-modal i {
                font-size: 48px;
            }

            .blocked-modal h2 {
                font-size: 20px;
            }

            .blocked-modal p {
                font-size: 14px;
            }

            .blocked-modal button {
                width: 100%;
                padding: 12px;
            }

            .quick-filters {
                grid-template-columns: 1fr;
            }
            
            .search-actions {
                flex-direction: column;
            }
            
            .search-modal {
                width: 95%;
                padding: 20px;
            }
        }

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

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

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