
			.logo {
				display: flex;
				align-items: center;
				justify-content: center;
				text-align: center;
				width: 100%;
			}
			.logo img {
				margin-right: 10px;
				width: 50px;
				height: auto;
			}
			.header-spacing {
				margin-bottom: 10px;
			}
			.section-spacing {
				margin-top: 120px;
			}
			.sub-title {
				font-size: 18px;
				margin-top: -10px;
			}
			body {
				font-family: Arial, sans-serif;
				background-color: #f4f4f4;
				color: #0c5460;
				margin: 0;
				padding: 0;
			}
			.container {
				width: 97%;
				margin: auto;
				overflow: hidden;
			}
			main {
				padding: 20px;
				background: #ced4da;
				margin-top: 20px;
				box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
				border-radius: 5px;
			}
			/* Стили для поиска и фильтров */
			.search-filters {
				display: flex;
				gap: 10px;
				margin-bottom: 20px;
				flex-wrap: wrap;
			}
			.search-filters input, .search-filters select {
				padding: 8px;
				border: 1px solid #ccc;
				border-radius: 5px;
			}
			.search-filters button {
				padding: 8px 15px;
				background-color: #007bff;
				color: white;
				border: none;
				border-radius: 5px;
				cursor: pointer;
			}
			.search-filters button:hover {
				background-color: #0056b3;
			}

			/* Цветовое кодирование строк таблицы */
			tr.pending {
				background-color: #f8d7da;
			}
			tr.inprogress {
				background-color: #cce5ff;
			}
			tr.ready {
				background-color: #d4edda;
			}
			tr.canceled {
				background-color: #f8d7da;
			}
			tr.completed {
				background-color: #d1ecf1;
			}
			tr.additional {
				background-color: #e2e3e5;
			}

			/* Цвета для статусов заказа */
			.order-status.pending {
				color: #ff0000; /* Красный */
			}
			.order-status.inprogress {
				color: #007bff; /* Синий */
			}
			.order-status.ready {
				color: #28a745; /* Зелёный */
			}
			.order-status.canceled {
				color: #dc3545; /* Красный */
			}
			.order-status.completed {
				color: #17a2b8; /* Голубой */
			}
			.order-status.additional {
				color: #6c757d; /* Серый */
			}

			/* Модальное окно */
			.modal {
				display: none;
				position: fixed;
				z-index: 1000;
				left: 0;
				top: 0;
				width: 100%;
				height: 100%;
				overflow: auto;
				background-color: rgba(0, 0, 0, 0.5);
			}
			.modal-content {
				background-color: #fff;
				margin: 10% auto;
				padding: 20px;
				border: 1px solid #888;
				width: 90%; /* Увеличиваем ширину модального окна */
				max-width: 800px; /* Максимальная ширина */
				border-radius: 5px;
			}
			.close {
				color: #aaa;
				float: right;
				font-size: 28px;
				font-weight: bold;
				cursor: pointer;
			}
			.close:hover {
				color: #000;
			}

			/* Кнопки редактирования */
			.edit-tools {
				display: flex;
				gap: 10px; /* Добавляем отступ между кнопками */
				flex-wrap: wrap; /* Перенос кнопок на новую строку, если не хватает места */
				
			}

			/* Общие стили */
			body {
				font-family: Arial, sans-serif;
				background-color: #f4f4f4;
				color: #0c5460;
				margin: 0;
				padding: 0;
			}
			.container {
				width: 80%;
				margin: auto;
				overflow: hidden;
			}
			main {
				padding: 20px;
				background: #ced4da;
				margin-top: 20px;
				box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
				border-radius: 5px;
			}
			.table {
				border-collapse: collapse;
				width: 100%;
			}
			.table td, .table th {
				border: 1px solid #ddd;
				padding: 8px;
			}
			.table th {
				background-color: #0c5460;
				color: white;
			}
			
			/* Новые стили для интерактивных строк */
			.table tbody tr {
				cursor: pointer;
				transition: all 0.2s;
			}
			.table tbody tr:hover {
				transform: scale(1.01);
				box-shadow: 0 0 10px rgba(0,0,0,0.1);
			}
			
			/* Стили для модального окна с составом заказа */
			.order-details {
				margin-top: 20px;
			}
			.order-details h3 {
				margin-bottom: 15px;
				color: #007bff;
			}
			.order-items-table {
				width: 100%;
				border-collapse: collapse;
				margin-bottom: 20px;
			}
			.order-items-table th {
				background-color: #0c5460;
				color: white;
				padding: 10px;
				text-align: left;
			}
			.order-items-table td {
				padding: 10px;
				border-bottom: 1px solid #ddd;
			}
			.order-items-table tr:last-child td {
				border-bottom: none;
			}
			.order-summary {
				background-color: #f8f9fa;
				padding: 15px;
				border-radius: 5px;
				margin-top: 20px;
			}
			.order-summary p {
				margin: 5px 0;
				font-weight: bold;
			}
			.order-actions {
				margin-top: 20px;
				display: flex;
				justify-content: flex-end;
				gap: 10px;
			}
			
			/* Анимация для новых заказов */
			@keyframes pulse {
				0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); }
				70% { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
				100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
			}
			.new-order {
				animation: pulse 2s infinite;
			}
			/* Добавляем стиль для кнопки "Вернуть в работу" */
			.btn-revert {
				background-color: #ffc107;
				color: #212529;
				border: none;
			}
			.btn-revert:hover {
				background-color: #e0a800;
				color: #212529;
			}
			
			.status-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: opacity 0.5s;
}
           .fade-out {
                opacity: 0;
                     }

           .order-row {
               transition: all 0.3s ease;
                      }
           .status-toast {
    color: #000;
    font-size: 16px;
    padding: 10px 20px;
    position: fixed;
    top: 20px; /* Смещение вверх */
    right: 20px; /* Смещение вправо */
    width: fit-content;
    max-width: 300px; /* Ограничение ширины */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
    transition: opacity 0.5s ease-in-out;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}


.status-toast:nth-child(1) {
    background-color: #ffc0cb; /* Розовый для новых заказов */
}

.status-toast:nth-child(4) {
    background-color: #cfe2ff; /* Голубой для завершённых заказов */
}

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    max-height: 80vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column-reverse; /* Новые уведомления появляются сверху */
    gap: 10px;
    z-index: 1000;
    padding: 10px;
}

.status-toast {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #d4edda;
    color: #155724;
    opacity: 0.95;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease-out;
}

.new-order-toast {
    background-color: #ffc0cb;
    color: #721c24;
    border-left: 4px solid #ff69b4;
}

.completed-toast {
    background-color: #cfe2ff;
    color: #084298;
}

.fade-out {
    opacity: 0;
    transform: translateX(100%);
}

.toast-icon {
    font-size: 24px;
    margin-right: 12px;
}

.toast-content {
    flex: 1;
}

.toast-content strong {
    display: block;
    margin-bottom: 4px;
}

.new-orders-badge {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: #ff0000;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 1001;
    display: none;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 0.95;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

.new-order-toast {
    background-color: #ffc0cb; /* Розовый фон */
    color: #000;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
    transition: opacity 0.5s ease-in-out;
}
.new-order-alert {
    position: fixed;
    top: 20px; /* Эта часть будет динамически обновляться в JS */
    left: 20px;
    background-color: #ffe6e6;
    color: #333;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-weight: bold;
    z-index: 9999;
}

/* Стили для индикатора поиска */
#searchActiveIndicator {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    margin-bottom: 20px;
}

#searchActiveIndicator button {
    font-size: 0.85rem;
    padding: 3px 10px;
}

/* Анимация для подсказки */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Стили для кнопки очистки */
#searchClearBtn {
    background-color: #f8f9fa;
    border-left: none;
    border-radius: 0 10px 10px 0;
    padding: 0 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #6c757d;
}

#searchClearBtn:hover {
    background-color: #e2e6ea;
    color: #dc3545;
}

/* Подсветка совпадений в таблице */
.search-highlight {
    background-color: #ffeb3b;
    font-weight: bold;
    padding: 0 2px;
    border-radius: 2px;
}

/* Единый стиль для всех фильтров */
.filter-section {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 29px 0 rgba(68, 88, 144, 0.1);
    border: 1px solid #e1e5e9;
}

.filter-group {
    flex: 1 1 380px;
    min-width: 140px;
}

.filter-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.filter-group select,
.filter-group input,
.filter-group .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #b0bec5;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s;
    background-color: #fff;
    font-weight: 600;
    color: #1e2a3a;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #4CAF50;
}

.filter-group.search-group {
    min-width: 50px;
    flex: 1 1 auto;
}

.input-group {
    display: flex;
    width: 25%;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
}

.input-group-append .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    height: 38px;
}

.clear-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.clear-btn:hover {
    background: #c82333;
}

/* Адаптивность */
@media (max-width: 992px) {
    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-group {
        width: 100%;
    }
    .filter-group.search-group {
        width: 100%;
    }
}

/* Компактная секция фильтров */
.filter-section {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: flex-end;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 10px 29px 0 rgba(68, 88, 144, 0.1);
    border: 1px solid #e1e5e9;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

/* Статус - фиксированная ширина */
.status-group {
    flex: 0 0 420px;
    min-width: 180px;
}

/* Поиск - занимает оставшееся пространство */
.search-group {
    flex: 1 1 auto;
    min-width: 200px;
}

/* Кнопка - фиксированная ширина */
.filter-button {
    flex: 0 0 auto;
}

.filter-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
    white-space: nowrap;
}

.filter-group select,
.filter-group input,
.filter-group .form-control {
    width: 100%;
    padding: 6px 10px;
    border: 2px solid #b0bec5;
    border-radius: 8px;
    font-size: 13px;
    transition: border-color 0.3s;
    background-color: #fff;
    font-weight: 600;
    color: #1e2a3a;
    height: 36px;
}

.filter-group select {
    padding: 5px 10px;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group .form-control {
    width: 100%;
    padding: 6px 30px 6px 10px;
}

#searchClearBtn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    display: none;
    z-index: 10;
    font-size: 14px;
}

#searchClearBtn:hover {
    color: #dc3545;
}

.clear-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 15px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    height: 36px;
}

.clear-btn:hover {
    background: #c82333;
}

/* Адаптивность для планшетов */
@media (max-width: 992px) {
    .filter-section {
        flex-wrap: wrap;
    }
    
    .status-group {
        flex: 1 1 200px;
    }
    
    .search-group {
        flex: 2 1 250px;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        gap: 12px;
    }
    
    .status-group,
    .search-group,
    .filter-button {
        width: 100%;
        flex: none;
    }
    
    .clear-btn {
        width: 100%;
        justify-content: center;
    }
}	

/* Контейнер фильтров с кнопкой */
.filter-section {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: flex-end;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 10px 29px 0 rgba(68, 88, 144, 0.1);
    border: 1px solid #e1e5e9;
}

/* Группы фильтров */
.filter-group {
    display: flex;
    flex-direction: column;
}

.status-group {
    flex: 0 0 200px;
}

.search-group {
    flex: 1 1 auto;
    min-width: 200px;
}

.filter-button {
    flex: 0 0 auto;
}

/* Кнопка нового заказа */
.new-order-button {
    flex: 0 0 auto;
    margin-left: auto; /* Прижимает кнопку к правому краю */
}

.new-order-btn {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    height: 38px;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.new-order-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.new-order-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

.new-order-btn i {
    font-size: 16px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .filter-section {
        flex-wrap: wrap;
    }
    
    .status-group {
        flex: 1 1 180px;
    }
    
    .search-group {
        flex: 2 1 250px;
    }
    
    .new-order-button {
        margin-left: 0;
        width: auto;
    }
}

@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .status-group,
    .search-group,
    .filter-button,
    .new-order-button {
        width: 100%;
        flex: none;
    }
    
    .new-order-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Контейнер фильтров */
.filter-section {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: flex-end;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 10px 29px 0 rgba(68, 88, 144, 0.1);
    border: 1px solid #e1e5e9;
    position: relative; /* Для возможных псевдоэлементов */
}

/* Группы фильтров */
.filter-group {
    display: flex;
    flex-direction: column;
}

.status-group {
    flex: 0 0 200px;
}

.search-group {
    flex: 1 1 auto;
    min-width: 200px;
}

.filter-button {
    flex: 0 0 auto;
}

/* ============ ВЫДЕЛЕННАЯ КНОПКА НОВОГО ЗАКАЗА ============ */
.new-order-button {
    flex: 0 0 auto;
    margin-left: auto; /* Прижимает к правому краю */
}

.new-order-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px; /* Более округлая форма */
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    height: 42px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border: 2px solid transparent;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 13px;
}

.new-order-btn i {
    font-size: 18px;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
}

.new-order-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46a0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.new-order-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Альтернативный вариант - красный градиент (раскомментируйте если нужно) */
/*
.new-order-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.new-order-btn:hover {
    background: linear-gradient(135deg, #e883f0 0%, #e64c5e 100%);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.5);
}
*/

/* Добавляем пульсирующую тень для привлечения внимания (опционально) */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.new-order-btn {
    animation: pulse 2s infinite; /* Уберите если не нужно */
}

/* Кнопка очистки (оставляем как есть) */
.clear-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    height: 38px;
    transition: background 0.3s;
}

.clear-btn:hover {
    background: #c82333;
}

/* ============ АДАПТИВНОСТЬ ============ */
@media (max-width: 992px) {
    .filter-section {
        flex-wrap: wrap;
    }
    
    .status-group {
        flex: 1 1 180px;
    }
    
    .search-group {
        flex: 2 1 250px;
    }
    
    .new-order-button {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .status-group,
    .search-group,
    .filter-button,
    .new-order-button {
        width: 100%;
        flex: none;
    }
    
    .new-order-btn {
        width: 100%;
        justify-content: center;
        animation: none; /* Убираем пульсацию на мобильных */
    }
}
/* Контейнер для фильтров и кнопки */
.filters-container {
    display: flex;
    align-items: stretch;
    gap: 15px;
    margin-bottom: 20px;
}

/* Секция фильтров */
.filter-section {
    display: flex;
    flex: 1;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: flex-end;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 10px 29px 0 rgba(68, 88, 144, 0.1);
    border: 1px solid #e1e5e9;
}

/* Блок с кнопкой */
.new-order-section {
    display: flex;
    align-items: flex-end;
    min-width: 160px;
}

.new-order-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    width: 100%;
    height: 42px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border: 2px solid white;
}

.new-order-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46a0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Адаптивность */
@media (max-width: 992px) {
    .filters-container {
        flex-direction: column;
    }
    
    .new-order-section {
        min-width: 100%;
    }
}

/* ============ ГОРИЗОНТАЛЬНАЯ ПРОКРУТКА ДЛЯ ТАБЛИЦ В МОДАЛЬНЫХ ОКНАХ ============ */

/* Обёртка для таблиц в модальных окнах с прокруткой */
.modal-content .table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 15px 0;
    cursor: grab;
}

.modal-content .table-responsive-wrapper:active {
    cursor: grabbing;
}

/* Стили для скроллбара */
.modal-content .table-responsive-wrapper::-webkit-scrollbar {
    height: 8px;
}

.modal-content .table-responsive-wrapper::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 4px;
}

.modal-content .table-responsive-wrapper::-webkit-scrollbar-thumb {
    background: #0c5460;
    border-radius: 4px;
}

.modal-content .table-responsive-wrapper::-webkit-scrollbar-thumb:hover {
    background: #1bb1dc;
}

/* Таблицы в модальных окнах - минимальная ширина для прокрутки */
.modal-content .order-items-table,
.modal-content #newOrderDishesList {
    min-width: 500px;
    width: 100%;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .modal-content .order-items-table,
    .modal-content #newOrderDishesList {
        min-width: 400px;
    }
    
    .modal-content .table-responsive-wrapper {
        cursor: auto;
    }
}

/* ============ ПЕРЕМЕЩЕНИЕ КРЕСТИКА В ЛЕВЫЙ ВЕРХНИЙ УГОЛ ============ */
#orderDetailsModal .modal-content .close,
#createOrderModal .modal-content .close {
    position: absolute !important;
    left: 15px !important;
    top: 10px !important;
    right: auto !important;
    float: none !important;
    font-size: 28px !important;
    font-weight: bold !important;
    color: #aaa !important;
    cursor: pointer !important;
    z-index: 10 !important;
}

#orderDetailsModal .modal-content h2,
#createOrderModal .modal-content h2 {
    margin-left: 35px !important;
    margin-top: 5px !important;
    margin-bottom: 15px !important;
}

/* Для мобильных */
@media (max-width: 768px) {
    #orderDetailsModal .modal-content .close,
    #createOrderModal .modal-content .close {
        left: 10px !important;
        top: 8px !important;
        font-size: 24px !important;
    }
    
    #orderDetailsModal .modal-content h2,
    #createOrderModal .modal-content h2 {
        margin-left: 30px !important;
        font-size: 18px !important;
    }
}

/* ============ АДАПТАЦИЯ МОДАЛЬНЫХ ОКОН ДЛЯ МОБИЛЬНЫХ ============ */
@media (max-width: 768px) {
    #orderDetailsModal .modal-content,
    #createOrderModal .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        margin: 5% auto !important;
        padding: 15px !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
        position: relative !important;
    }
    
    #orderDetailsModal .order-info p,
    #createOrderModal .order-info p {
        font-size: 16px !important;
		font-weight: 700 !important;
        margin-bottom: 8px !important;
    }
    
    #orderDetailsModal .order-items-table td,
    #orderDetailsModal .order-items-table th,
    #createOrderModal .order-details table td,
    #createOrderModal .order-details table th {
        padding: 6px 4px !important;
        font-size: 14px !important;
		font-weight: 700 !important;
    }
    
    .order-actions button {
        padding: 6px 12px !important;
        font-size: 12px !important;
        margin: 3px !important;
    }
}

/* ============ ФИКСИРОВАННАЯ ПОЛОСА ПРОКРУТКИ ВНИЗУ ЭКРАНА ============ */
.fixed-scroll-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 12px;
    background: #e9ecef;
    z-index: 1000;
    display: none;
}

.fixed-scroll-bar {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: pointer;
}

.fixed-scroll-bar::-webkit-scrollbar {
    height: 12px;
}

.fixed-scroll-bar::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 6px;
}

.fixed-scroll-bar::-webkit-scrollbar-thumb {
    background: #0c5460;
    border-radius: 6px;
}

.fixed-scroll-bar::-webkit-scrollbar-thumb:hover {
    background: #1bb1dc;
}	

/* Скрываем кнопки переключения вида в модальном окне */
.modal .mobile-table-controls {
    display: none !important;
}

/* Убеждаемся, что в модальном окне нет лишних кнопок */
.modal .btn-group,
.modal .mobile-view-btn {
    display: none !important;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .modal .table-responsive-wrapper {
        overflow-x: auto;
    }
    
    .modal .order-items-table {
        min-width: 300px;
    }
}

/* Скрываем кнопки переключения вида внутри модального окна */
#orderDetailsModal .mobile-table-controls,
#createOrderModal .mobile-table-controls,
.modal .mobile-table-controls {
    display: none !important;
}

/* Также скрываем сами кнопки, если они есть */
#orderDetailsModal .view-table,
#orderDetailsModal .view-cards,
#orderDetailsModal .mobile-view-btn,
.modal .view-table,
.modal .view-cards,
.modal .mobile-view-btn {
    display: none !important;
}

/* Скрываем любые лишние элементы управления в модалке */
#orderDetailsModal .btn-group,
#orderDetailsModal .table-view-controls,
.modal .btn-group,
.modal .table-view-controls {
    display: none !important;
}

/* Стили для модального окна на мобильных устройствах */
@media (max-width: 768px) {
    /* Увеличиваем размер шрифта в модальном окне */
    #orderDetailsModal .modal-content,
    #createOrderModal .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 10% auto;
        padding: 15px;
    }
    
    #orderDetailsModal h2,
    #createOrderModal h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    #orderDetailsModal h3 {
        font-size: 18px;
        margin: 15px 0 10px;
    }
    
    /* Информация о заказе */
    #orderDetailsModal .order-info p,
    #createOrderModal .order-info p {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    #orderDetailsModal .order-info strong {
        font-size: 16px;
    }
    
    /* Таблица с блюдами */
    #orderDetailsModal .order-items-table,
    #createOrderModal .order-items-table {
        width: 100%;
        font-size: 18px;
    }
    
    #orderDetailsModal .order-items-table th,
    #createOrderModal .order-items-table th {
        font-size: 14px;
        padding: 8px 5px;
    }
    
    #orderDetailsModal .order-items-table td,
    #createOrderModal .order-items-table td {
        font-size: 14px;
        padding: 8px 5px;
    }
    
    /* Кнопки в модальном окне */
    #orderDetailsModal .order-actions button,
    #createOrderModal .order-actions button {
        font-size: 16px;
        padding: 10px 15px;
        margin: 5px;
    }
    
    /* Сумма заказа */
    #orderDetailsModal .order-summary,
    #createOrderModal .order-summary {
        font-size: 18px;
        margin-top: 15px;
        padding-top: 10px;
    }
    
    #orderDetailsModal .order-summary strong,
    #createOrderModal .order-summary strong {
        font-size: 18px;
    }
    
    /* Поля ввода в модальном окне (для создания заказа) */
    #createOrderModal .form-control,
    #createOrderModal select,
    #createOrderModal input {
        font-size: 16px;
        padding: 10px;
    }
    
    #createOrderModal label {
        font-size: 14px;
        margin-bottom: 5px;
    }
}
/* Уменьшение шрифта в таблице на мобильных устройствах */
@media (max-width: 768px) {
    /* Основная таблица */
    .table {
        font-size: 12px !important;
    }
    
    .table th,
    .table td {
        font-size: 12px !important;
        padding: 6px 4px !important;
    }
    
    /* Кнопки в таблице */
    .table .btn-sm {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }
    
    /* Номер заказа делаем чуть крупнее */
    .table td:first-child {
        font-weight: 600 !important;
        font-size: 16px !important;
    }
    
    /* Статус заказа */
    .order-status {
        font-size: 16px !important;
		font-weight: 700 !important;
        white-space: nowrap;
    }
}

/* Подсветка строк в таблице */
tr.new-order-row {
    background-color: #ffe6e6 !important;
    border-left: 4px solid #dc3545 !important;
}

tr.ready-order-row {
    background-color: #e6ffe6 !important;
    border-left: 4px solid #28a745 !important;
}

/* Сохраняем подсветку при наведении */
tr.new-order-row:hover {
    background-color: #ffcccc !important;
}

tr.ready-order-row:hover {
    background-color: #ccffcc !important;
}

/* ============ НОВЫЙ БЛОК СТАТИСТИКИ ============ */
.stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: space-between;
}

.stat-card {
    flex: 1;
    min-width: 80px;
    padding: 8px 5px;
    border-radius: 8px;
    text-align: center;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-card .stat-label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.stat-card .stat-value {
    font-size: 20px;
    font-weight: bold;
}

/* Цвета для разных статусов */
.stat-card.new {
    background: linear-gradient(135deg, #dc3545, #c82333);
}
.stat-card.in-progress {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #333;
}
.stat-card.ready {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}
.stat-card.completed {
    background: linear-gradient(135deg, #6c757d, #5a6268);
}
.stat-card.total {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .stat-card .stat-label {
        font-size: 10px;
    }
    .stat-card .stat-value {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .compact-stats {
        font-size: 12px;
        padding: 6px 10px !important;
        gap: 8px !important;
    }
    
    .compact-stats span {
        white-space: nowrap;
    }
}
/* Принудительное отображение горизонтальной прокрутки */
@media (max-width: 768px) {
    .table-responsive-wrapper {
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
        width: 100% !important;
    }
    
    .table-responsive-wrapper table {
        min-width: 600px !important;  /* Принудительная ширина для появления прокрутки */
        width: auto !important;
    }
    
    /* Убеждаемся, что таблица не сжимается */
    .table-responsive-wrapper table td,
    .table-responsive-wrapper table th {
        white-space: nowrap !important;
    }
}
/* ============ ТАБЛИЦА В МОДАЛЬНОМ ОКНЕ ============ */
#orderDetailsModal .order-items-table,
#createOrderModal .order-items-table {
    width: 100%;
    min-width: auto !important;
    table-layout: fixed; /* Фиксированная ширина колонок */
}

/* Ширина колонок */
#orderDetailsModal .order-items-table th:nth-child(1),
#createOrderModal .order-items-table th:nth-child(1) {
    width: 40%; /* Блюдо */
}

#orderDetailsModal .order-items-table th:nth-child(2),
#createOrderModal .order-items-table th:nth-child(2) {
    width: 15%; /* Количество */
}

#orderDetailsModal .order-items-table th:nth-child(3),
#createOrderModal .order-items-table th:nth-child(3) {
    width: 20%; /* Цена */
}

#orderDetailsModal .order-items-table th:nth-child(4),
#createOrderModal .order-items-table th:nth-child(4) {
    width: 25%; /* Сумма */
}

/* Ячейки таблицы */
#orderDetailsModal .order-items-table td,
#createOrderModal .order-items-table td {
    word-break: break-word;
    white-space: normal !important;
    padding: 8px 5px;
}

/* Обёртка таблицы в модальном окне */
#orderDetailsModal .table-responsive-wrapper,
#createOrderModal .table-responsive-wrapper {
    overflow-x: auto !important;
    margin: 0 -5px;
    padding: 0 5px;
}

/* На мобильных устройствах */
@media (max-width: 768px) {
    #orderDetailsModal .order-items-table th:nth-child(1),
    #createOrderModal .order-items-table th:nth-child(1) {
        width: 35%;
    }
    
    #orderDetailsModal .order-items-table th:nth-child(2),
    #createOrderModal .order-items-table th:nth-child(2) {
        width: 12%;
    }
    
    #orderDetailsModal .order-items-table th:nth-child(3),
    #createOrderModal .order-items-table th:nth-child(3) {
        width: 18%;
    }
    
    #orderDetailsModal .order-items-table th:nth-child(4),
    #createOrderModal .order-items-table th:nth-child(4) {
        width: 35%;
    }
    
    #orderDetailsModal .order-items-table td,
    #createOrderModal .order-items-table td {
        font-size: 12px;
        padding: 6px 3px;
    }
    
    /* Уменьшаем шрифт в заголовках таблицы */
    #orderDetailsModal .order-items-table th,
    #createOrderModal .order-items-table th {
        font-size: 12px;
        padding: 6px 3px;
    }
}