        * {
            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;
        }
       /* Добавляем прокрутку только для меню */
        .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);
            }
        }
        /* Боковое меню */
        .sidebar {
            width: 200px;
            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);
            display: flex;
            flex-direction: column;
        }

        .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 {
            padding: 15px 0;
            flex: 1;
            overflow-y: auto;
            min-height: 0;
        }
        .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 {
            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-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: #27ae60;
        }

        /* Оверлей блокировки */
        .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;
        }

        /* Вкладки */
        .tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 25px;
            background: white;
            padding: 10px;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .tab {
            flex: 1;
            padding: 15px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .tab.real {
            background: #f0f0f0;
            color: #2c3e50;
        }

        .tab.real.active {
            background: linear-gradient(135deg, #27ae60, #2ecc71);
            color: white;
        }

        .tab.potential {
            background: #f0f0f0;
            color: #2c3e50;
        }

        .tab.potential.active {
            background: linear-gradient(135deg, #243e4f, #243e4f);
            color: white;
        }

        .tab i {
            font-size: 20px;
        }

        /* Панель управления */
        .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;
        }

        .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: #e9ecef;
            border-color: #243e4f;
            color: #243e4f;
        }

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

        /* Карточки статистики */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 15px;
            margin-bottom: 30px;
        }

        .stat-card {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            display: flex;
            align-items: center;
            gap: 15px;
            transition: transform 0.3s;
        }

        .stat-card:hover {
            transform: translateY(-5px);
        }

        .stat-card.avg-card {
            grid-column: span 1;
            background: linear-gradient(135deg, #f39c12, #e67e22);
            color: white;
        }

        .stat-card.avg-card .stat-info h3,
        .stat-card.avg-card .stat-info .value,
        .stat-card.avg-card .stat-info .sub {
            color: white;
        }

        .stat-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }

        .stat-icon.real {
            background: rgba(39, 174, 96, 0.2);
            color: #27ae60;
        }

        .stat-icon.potential {
            background: rgba(52, 152, 219, 0.2);
            color: #243e4f;
        }

        .stat-icon.avg {
            background: rgba(255, 255, 255, 0.2);
            color: white;
        }

        .stat-info {
            flex: 1;
        }

        .stat-info h3 {
            color: #7f8c8d;
            font-size: 12px;
            margin-bottom: 5px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .stat-info .value {
            color: #2c3e50;
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 3px;
        }

        .stat-info .sub {
            color: #95a5a6;
            font-size: 11px;
        }

        .avg-card .stat-info h3,
        .avg-card .stat-info .value,
        .avg-card .stat-info .sub {
            color: white;
        }

        /* Кнопка налаштувань кольорів */
        .color-settings-panel {
            margin-bottom: 20px;
            display: flex;
            justify-content: flex-end;
        }

        .color-settings-btn {
            background: #f8f9fa;
            border: 1px solid #ddd;
            padding: 10px 20px;
            border-radius: 50px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
        }

        .color-settings-btn:hover {
            background: #e8f0fe;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .color-settings-btn i {
            color: #243e4f;
        }

        /* График */
        .chart-container {
            background: white;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 30px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

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

        .chart-placeholder {
            height: 300px;
            display: flex;
            align-items: flex-end;
            gap: 10px;
            padding: 20px 0;
            border-bottom: 2px solid #ecf0f1;
            overflow-x: auto;
        }

        .bar-container {
            flex: 1;
            min-width: 80px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
            position: relative;
        }

        .bar-layer {
            transition: height 0.3s ease;
        }

        .profit-marker {
            transition: all 0.3s ease;
            box-shadow: 0 0 5px rgba(39, 174, 96, 0.5);
        }

        .profit-dot {
            transition: transform 0.3s ease;
            box-shadow: 0 0 5px rgba(39, 174, 96, 0.5);
        }

        .profit-dot:hover {
            transform: translateX(-50%) scale(1.5);
        }

        .bar-label {
            font-size: 12px;
            color: #7f8c8d;
            font-weight: 600;
            margin-top: 5px;
        }

        .bar-value {
            font-size: 10px;
            color: #27ae60;
            font-weight: 700;
        }

        /* Легенда графика */
        #chart-legend {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-top: 20px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 8px;
            justify-content: center;
            animation: fadeIn 0.5s ease;
        }

        #chart-legend div {
            transition: transform 0.2s ease;
            cursor: pointer;
        }

        #chart-legend div:hover {
            transform: scale(1.05);
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Модальне вікно налаштування кольорів */
        .color-settings-form {
            padding: 10px 0;
        }
        
        .color-setting-item {
            margin-bottom: 20px;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 8px;
        }
        
        .color-setting-item label {
            display: block;
            margin-bottom: 8px;
            color: #2c3e50;
            font-weight: 500;
            font-size: 14px;
        }
        
        .color-setting-item input[type="color"] {
            width: 60px;
            height: 40px;
            cursor: pointer;
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 2px;
        }
        
        .color-setting-item input[type="text"] {
            flex: 1;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-family: monospace;
        }
        
        .color-setting-item input[type="text"]:focus {
            border-color: #243e4f;
            outline: none;
        }

        /* Таблица */
        .table-container {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            overflow-x: auto;
			margin-top: 80px;
        }

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

        .table-header h2 {
            color: #2c3e50;
            font-size: 18px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

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

        td {
            padding: 12px 10px;
            border-bottom: 1px solid #e9ecef;
            color: #34495e;
            font-size: 13px;
        }

        tr:hover {
            background: #f8f9fa;
        }

        .status-badge {
            padding: 4px 8px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 500;
            display: inline-block;
        }

        .status-completed {
            background: #d4edda;
            color: #155724;
        }

        .status-pending {
            background: #fff3e0;
            color: #f39c12;
        }

        .profit-positive {
            color: #27ae60;
            font-weight: 600;
        }

        .profit-negative {
            color: #e74c3c;
            font-weight: 600;
        }

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

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

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

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

        .currency-symbol {
            font-size: 0.8em;
            margin-left: 2px;
        }

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

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

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

/* ===== МОБІЛЬНІ СТИЛІ (додаток з свайп-меню) ===== */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    /* Заголовок по центру */
    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);
        overflow-y: hidden;
        display: flex;
        flex-direction: column;
    }

    .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-button1 {
        display: block;
        font-weight: 600;
    }
    /* Кнопка бургер для відкриття меню */
    .menu-toggle {
        display: block;
        position: fixed;
        top: 10px;
        left: 15px;
        z-index: 1001;
        background: #21394a;
        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;
    }

    /* Вкладки */
    .tabs {
        display: flex;
        background: none;
        box-shadow: none;
        gap: 5px;
        padding: 8px;
        margin-top: 10px;
        margin-bottom: 15px;
    }

    .tab {
        padding: 12px;
        font-size: 14px;
    }

    .tab i {
        font-size: 16px;
    }

    /* Панель управління */
    .control-panel {
        background: none;
        box-shadow: none;
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        margin-top: -5px;
        margin-bottom: 5px;
    }

    .filter-buttons {
        flex-direction: row;
        gap: 10px;
    }

    .search-button {
        flex: 1;
        justify-content: center;
        padding: 12px;
        font-size: 13px;
    }

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

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

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

    /* Статистика */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .stat-info h3 {
        font-size: 11px;
    }

    .stat-info .value {
        font-size: 20px;
    }

    .stat-info .sub {
        font-size: 10px;
    }

    /* Кнопка налаштувань кольорів */
    .color-settings-panel {
        justify-content: center;
        margin-bottom: 15px;
    }

    .color-settings-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    /* Графік */
    .chart-container {
        padding: 15px;
        margin-bottom: 20px;
    }

    .chart-container h2 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .chart-placeholder {
        height: 250px;
        gap: 5px;
    }

    .bar-container {
        min-width: 60px;
    }

    .bar-label {
        font-size: 10px;
    }

    .bar-value {
        font-size: 9px;
    }

    #chart-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
        font-size: 12px;
    }

    #chart-legend div {
        width: 100%;
    }

    /* ===== АДАПТОВАНА ТАБЛИЦЯ ДЛЯ МОБІЛЬНИХ ===== */
    .table-container {
        padding: 10px;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
					margin-top: 150px;
    }

    .table-header h2 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    table {
        width: 100%;
        border-collapse: collapse;
        min-width: auto;
    }

    thead {
        display: none; /* Приховуємо заголовок таблиці на мобільних */
    }

    tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 10px;
        background: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    tbody td {
        display: flex;
        padding: 8px 5px;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        font-size: 13px;
        text-align: left;
        white-space: normal;
        word-break: break-word;
    }

    tbody td:last-child {
        border-bottom: none;
    }

    tbody td:before {
        content: attr(data-label);
        font-weight: 600;
        width: 110px;
        min-width: 110px;
        color: #2c3e50;
        display: inline-block;
    }

    td[class="profit-positive"]:before,
    td[class="profit-negative"]:before {
        content: "Чистий прибуток";
        font-weight: 600;
        width: 110px;
        min-width: 110px;
        color: #2c3e50;
    }

    td:first-child:before { content: "Дата"; }
    td:nth-child(2):before { content: "Клієнт"; }
    td:nth-child(3):before { content: "Послуга"; }
    td:nth-child(4):before { content: "Ціна"; }
    td:nth-child(5):before { content: "Собівартість"; }
    td:nth-child(6):before { content: "Знижка"; }
    td:nth-child(7):before { content: "Чистий прибуток"; }
    td:nth-child(8):before { content: "Статус"; }

    td .status-badge {
        display: inline-block;
        margin-left: 0;
    }

    /* Пустий стан таблиці */
    tbody tr td[colspan="8"] {
        display: block;
        text-align: center;
        padding: 30px 15px;
    }
    
    tbody tr td[colspan="8"]:before {
        display: none;
    }

    /* Модальні вікна */
    .modal {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }

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

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

    .color-setting-item {
        padding: 8px;
    }

    .color-setting-item label {
        font-size: 13px;
    }

    .color-setting-item input[type="color"] {
        width: 50px;
        height: 35px;
    }

    .color-setting-item input[type="text"] {
        padding: 6px;
        font-size: 13px;
    }

    .btn-save, .btn-cancel {
        padding: 10px;
        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;
    }

    /* Адаптація для дуже маленьких екранів */
    @media (max-width: 380px) {
        .menu-toggle {
            width: 40px;
            height: 40px;
            font-size: 20px;
        }

        h1 {
            font-size: 18px;
        }

        .stat-icon {
            width: 40px;
            height: 40px;
            font-size: 18px;
        }

        .stat-info .value {
            font-size: 18px;
        }

        .tab {
            padding: 10px;
            font-size: 13px;
        }

        .bar-container {
            min-width: 50px;
        }
        
        tbody td:before {
            width: 90px;
            min-width: 90px;
        }
    }
}