* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Roboto', 'SF Pro Text', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: linear-gradient(135deg, #0c0c0e 0%, #111114 100%);
    color: #000000;
    height: 100vh;
    overflow: hidden;
    font-weight: 400;
}

/* ==================== */
/* СТИЛИ ДЛЯ ЗАГРУЗКИ ИЗОБРАЖЕНИЙ */
/* ==================== */

.image-upload-area {
    border: 2px dashed #24252e;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
    background: #0c0c0e;
    margin-bottom: 15px;
}

.image-upload-area:hover {
    border-color: #34c759;
}

.image-upload-area.drag-over {
    border-color: #34c759;
    background: rgba(52, 199, 89, 0.1);
}

.image-preview {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.uploaded-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.image-placeholder {
    color: #8c8e9a;
    padding: 20px;
}

.image-placeholder i {
    margin-bottom: 10px;
}

.image-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
    font-size: 12px;
    color: #8c8e9a;
}

.image-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.image-action-btn {
    padding: 8px 16px;
    background: #24252e;
    border: 1px solid #343541;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.image-action-btn:hover {
    background: #343541;
    border-color: #34c759;
}

.image-action-btn.danger {
    background: #ff3b30;
    border-color: #ff3b30;
}

.image-action-btn.danger:hover {
    background: #ff453a;
    border-color: #ff453a;
}

.image-requirements {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.product-image {
    position: relative;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* ОБНОВЛЕННАЯ верхняя панель */
.top-panel {
    display: flex;
    justify-content: space-between;
    background: #13141a;
    padding: 12px 20px;
    border-bottom: 1px solid #24252e;
    position: relative;
    z-index: 100;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.05);
    gap: 1px;
}

.halls-section {
    display: flex;
    gap: 1px;
}

.controls-section {
    display: flex;
    gap: 1px;
}

/* ОБЩИЙ СТИЛЬ ДЛЯ ВСЕХ КНОПОК ВЕРХНЕЙ ПАНЕЛИ */
.top-button {
    padding: 16px 20px;
    text-align: center;
    background: #1a1b23;
    border: none;
    color: #8c8e9a;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid #24252e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    min-width: 90px;
}

/* Кнопки залов - компактнее */
.hall-tab {
    min-width: 170px;
    padding: 16px 10px;
}

/* Кнопки управления - такой же стиль */
.control-button {
    min-width: 120px;
}

.top-button:last-child {
    border-right: none;
}

.top-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.2s;
}

.top-button:hover {
    background: #20212a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.top-button:hover::before {
    opacity: 1;
}

.top-button.active {
    background: linear-gradient(to bottom, #2a2b35 0%, #24252e 100%);
    color: #ffffff;
    font-weight: 600;
    border-bottom: 2px solid #4a90e2;
    transform: translateY(-1px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Основной контейнер */
.container {
    display: flex;
    height: calc(100vh - 68px); /* Убираем высоту нижней панели */
    position: relative;
}

/* Левая панель - категории с кнопками прокрутки */
.categories-wrapper {
    width: 15%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, #13141a 0%, #111218 100%);
    border-right: 1px solid #24252e;
    box-shadow: 
        4px 0 12px rgba(0, 0, 0, 0.3),
        inset 1px 0 0 rgba(255, 255, 255, 0.02);
    position: relative;
    z-index: 110;
}

/* Кнопки прокрутки категорий */
.category-scroll-btn {
    height: 50px;
    background: linear-gradient(145deg, #1a1b23 0%, #16171e 100%);
    border: none;
    color: #8c8e9a;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #24252e;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    position: relative;
    z-index: 120;
}

.category-scroll-btn:hover {
    background: linear-gradient(145deg, #20212a 0%, #1c1d25 100%);
    color: #ffffff;
}

.category-scroll-btn:active {
    background: linear-gradient(145deg, #2a2b35 0%, #24252e 100%);
}

.category-scroll-btn:first-child {
    border-top: 1px solid #24252e;
}

.categories {
    flex: 1;
    padding: 10px 8px;
    overflow-y: auto;
    min-height: 300px;
    max-height: calc(100vh - 250px);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 18px 12px;
    margin-bottom: 6px;
    border-radius: 10px;
    background: linear-gradient(145deg, #1a1b23 0%, #16171e 100%);
    color: #8c8e9a;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #24252e;
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(74, 144, 226, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.category-item:hover {
    background: linear-gradient(145deg, #20212a 0%, #1c1d25 100%);
    color: #ffffff;
    transform: translateX(4px);
    box-shadow: 
        4px 4px 12px rgba(0, 0, 0, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.2);
}

.category-item:hover::before {
    opacity: 1;
}

.category-item.active {
    background: linear-gradient(145deg, #2a2b35 0%, #24252e 100%);
    color: #ffffff;
    font-weight: 500;
    border: 1px solid #4a90e2;
    box-shadow: 
        4px 4px 16px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(74, 144, 226, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.category-name {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    width: 100%;
}

/* Центральная панель - товары с кнопками прокрутки */
.products-wrapper {
    width: 70%;
    position: relative;
    background: #0c0c0e;
    isolation: isolate;
    height: calc(100vh - 68px);
}

.products {
    height: 100%;
    padding: 18px 20px;
    padding-bottom: 80px;
    overflow-y: auto;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(74, 144, 226, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(52, 199, 89, 0.03) 0%, transparent 50%);
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    z-index: 1;
}

.products::-webkit-scrollbar {
    display: none;
}

/* Кнопки прокрутки товаров */
.products-scroll-buttons {
    position: fixed;
    bottom: 20px;
    left: calc(25% + 24px);
    right: calc(30% + 24px);
    display: flex;
    gap: 20px;
    z-index: 10;
    pointer-events: auto;
}

.products-scroll-buttons::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -24px;
    right: -24px;
    height: 60px;
    background: linear-gradient(to top, rgba(12, 12, 14, 0%) 0%, rgba(12, 12, 14, 0) 100%);
    pointer-events: none;
    z-index: -1;
}

.product-scroll-btn {
    flex: 1;
    height: 50px;
    background: linear-gradient(145deg, #1a1b23 0%, #16171e 100%);
    border: none;
    border-radius: 12px;
    color: #8c8e9a;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #24252e;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    position: relative;
    z-index: 11;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.product-scroll-btn:hover {
    background: linear-gradient(145deg, #20212a 0%, #1c1d25 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3);
}

.product-scroll-btn:active {
    background: linear-gradient(145deg, #2a2b35 0%, #24252e 100%);
    transform: translateY(0);
}

.category-title {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
    font-size: 18px;
    color: #ffffff;
    padding: 14px 18px;
    background: linear-gradient(145deg, #1a1b23 0%, #16171e 100%);
    border-radius: 10px;
    border: 1px solid #24252e;
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.product-card {
    background: linear-gradient(145deg, #1a1b23 0%, #16171e 100%);
    border-radius: 10px;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #24252e;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 2;
    min-height: 150px;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(74, 144, 226, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover {
    background: linear-gradient(145deg, #20212a 0%, #1c1d25 100%);
    border-color: #2d2e38;
    transform: translateY(-4px);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.4),
        0 6px 12px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.product-card:hover::after {
    opacity: 1;
}

.product-card:active {
    transform: translateY(-2px);
    transition: transform 0.1s;
}

.product-card.added {
    animation: cardPop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.product-image {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, #24252e 0%, #1e1f27 100%);
    border-radius: 8px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 1px solid #2d2e38;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    border-radius: 8px 8px 0 0;
}

.product-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: center;
    color: #e8eaed;
    line-height: 1.3;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-price {
    font-size: 18px;
    font-weight: 600;
    color: #34c759;
    text-align: center;
    text-shadow: 0 2px 4px rgba(52, 199, 89, 0.2);
}

/* Правая панель - текущий чек */
.current-order {
    width: 15%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, #13141a 0%, #111218 100%);
    border-left: 1px solid #24252e;
    box-shadow: 
        -4px 0 12px rgba(0, 0, 0, 0.3),
        inset -1px 0 0 rgba(255, 255, 255, 0.02);
    height: calc(100vh - 68px);
}

/* ОБНОВЛЕННЫЙ ВЕРХНИЙ БЛОК С КНОПКАМИ */
.order-header {
    border-bottom: 1px solid #24252e;
    background: linear-gradient(to bottom, #1a1b23 0%, #16171e 100%);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.header-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
	padding-right: 8px;

}

/* ОБНОВЛЕННЫЙ СТИЛЬ ДЛЯ КНОПОК В ПРАВОЙ ПАНЕЛИ */
.header-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 4px;
    background: #1a1b23;
    border: none;
    color: #8c8e9a;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid #24252e;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    min-height: 60px;
}

.header-button:last-child {
    border-right: none;
}

.header-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.2s;
}

.header-button:hover {
    background: #20212a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-button:hover::before {
    opacity: 1;
}

.header-button:active {
    transform: translateY(0);
}

/* Цвета для кнопок */
.header-button.bills:hover {
    border-bottom: 2px solid #4a90e2;
}

.header-button.client:hover {
    border-bottom: 2px solid #34c759;
}

.header-button.combined:hover {
    border-bottom: 2px solid #ff2d55;
}

.header-button.shift:hover {
    border-bottom: 2px solid #ff9500;
}

.button-icon {
    font-size: 16px;
    margin-bottom: 4px;
    display: block;
}

.button-text {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.1;
}

.current-order-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(12, 12, 14, 0.5);
    border-radius: 6px;
    border: 1px solid #24252e;
    margin-top: 4px;
}

.order-info-label {
    font-size: 11px;
    color: #8c8e9a;
    font-weight: 400;
}

.order-info-value {
    font-size: 12px;
    color: #ffffff;
    font-weight: 500;
}

/* Контейнер для заказанных блюд */
.order-items-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
}

.order-items {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
    background: #0c0c0e;
    background-image: 
        radial-gradient(circle at 10% 90%, rgba(74, 144, 226, 0.02) 0%, transparent 40%);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.order-items::-webkit-scrollbar {
    display: none;
}

/* Кнопки прокрутки заказа */
.order-scroll-buttons {
    padding: 12px 18px;
    background: linear-gradient(to bottom, #1a1b23 0%, #16171e 100%);
    border-top: 1px solid #24252e;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.order-scroll-btn {
    flex: 1;
    height: 40px;
    background: linear-gradient(145deg, #1a1b23 0%, #16171e 100%);
    border: none;
    border-radius: 6px;
    color: #8c8e9a;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #24252e;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    position: relative;
    z-index: 120;
}

.order-scroll-btn:hover {
    background: linear-gradient(145deg, #20212a 0%, #1c1d25 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.order-scroll-btn:active {
    background: linear-gradient(145deg, #2a2b35 0%, #24252e 100%);
}

/* КОМПАКТНЫЙ ФУТЕР С КНОПКАМИ ОПЛАТЫ */
.order-footer {
    padding: 7px;
    border-top: 1px solid #24252e;
    background: linear-gradient(to top, #1a1b23 0%, #16171e 100%);
    position: relative;
    z-index: 110;
    flex-shrink: 0;
    margin-top: auto;
	margin-bottom: 10px;
}

.order-total {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 14px;
    text-align: center;
    padding: 16px;
    background: linear-gradient(145deg, #1a1b23 0%, #16171e 100%);
    border-radius: 8px;
    border: 1px solid #24252e;
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.1);
}

/* КОМПАКТНЫЕ КНОПКИ ОПЛАТЫ В ОДИН УРОВЕНЬ */
.payment-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pay-button {
    flex: 1;
    padding: 14px 8px;
    background: linear-gradient(to bottom, #1a1b23 0%, #16171e 100%);
    border: none;
    border-radius: 8px;
    color: #8c8e9a;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 50px;
}

.pay-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
}

.pay-button:hover {
    background: linear-gradient(to bottom, #20212a 0%, #1c1d25 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.pay-button:active {
    transform: translateY(-1px);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 1px 1px rgba(0, 0, 0, 0.1);
}

/* Кнопка оплаты картой */
.pay-button.card {
    border: 1px solid #4a90e2;
    color: #4a90e2;
    box-shadow: 
        0 4px 8px rgba(74, 144, 226, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.1);
}

.pay-button.card:hover {
    background: linear-gradient(to bottom, #20212a 0%, #1c1d25 100%);
    color: #ffffff;
    border: 1px solid #5a9ef2;
    box-shadow: 
        0 6px 12px rgba(74, 144, 226, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.pay-button.card:active {
    box-shadow: 
        0 2px 4px rgba(74, 144, 226, 0.2),
        0 1px 1px rgba(0, 0, 0, 0.1);
}

/* Кнопка оплаты наличными */
.pay-button.cash {
    border: 1px solid #ff9500;
    color: #ff9500;
    box-shadow: 
        0 4px 8px rgba(255, 149, 0, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.1);
}

.pay-button.cash:hover {
    background: linear-gradient(to bottom, #20212a 0%, #1c1d25 100%);
    color: #ffffff;
    border: 1px solid #ffa533;
    box-shadow: 
        0 6px 12px rgba(255, 149, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.pay-button.cash:active {
    box-shadow: 
        0 2px 4px rgba(255, 149, 0, 0.2),
        0 1px 1px rgba(0, 0, 0, 0.1);
}

/* Иконки на кнопках оплаты */
.pay-icon {
    font-size: 14px;
}

/* ИСПРАВЛЕННЫЙ СТИЛЬ для элементов заказа */
.order-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 4px 6px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: linear-gradient(145deg, #1a1b23 0%, #16171e 100%);
    border: 1px solid #24252e;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 60px;
}

.order-item:hover {
    background: linear-gradient(145deg, #20212a 0%, #1c1d25 100%);
    transform: translateX(-4px);
    box-shadow: -4px 4px 8px rgba(0, 0, 0, 0.3);
}

.item-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    margin-right: 10px;
}

.item-name {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    max-height: 36px;
}

.item-price {
    font-size: 12px;
    color: #8c8e9a;
    font-weight: 400;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.price-value {
    color: #8c8e9a;
    white-space: nowrap;
}

.total-value {
    color: #34c759;
    font-weight: 500;
    white-space: nowrap;
}

.item-note {
    font-size: 11px;
    color: #4a90e2;
    font-style: italic;
    background: rgba(74, 144, 226, 0.1);
    padding: 3px 6px;
    border-radius: 3px;
    margin-top: 3px;
    display: none;
}

.item-note.has-note {
    display: block;
}

/* Окно с количеством */
.quantity-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, #2a2b35 0%, #24252e 100%);
    border-radius: 8px;
    border: 1px solid #3a3b45;
    margin-left: 8px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-box:hover {
    background: linear-gradient(145deg, #3a3b45 0%, #2a2b35 100%);
    transform: scale(1.05);
    border-color: #4a90e2;
}

.quantity-number {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.1);
}

.quantity-label {
    font-size: 9px;
    color: #8c8e9a;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 1px;
}

/* Информация о сотруднике внизу левой панели */
.employee-info-panel {
    padding: 16px;
    background: linear-gradient(to top, #1a1b23 0%, #16171e 100%);
    border-top: 1px solid #24252e;
    margin-top: auto;
    flex-shrink: 0;
}

.employee-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px;
    background: linear-gradient(145deg, #1a1b23 0%, #16171e 100%);
    border-radius: 8px;
    border: 1px solid #24252e;
}

.employee-name {
    color: #e8eaed;
    font-size: 13px;
    font-weight: 600;
}

.employee-role {
    color: #8c8e9a;
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.current-time {
    font-size: 12px;
    font-weight: 500;
    color: #8c8e9a;
    text-align: center;
    margin-top: 8px;
    font-feature-settings: "tnum";
    padding: 6px 10px;
    background: rgba(12, 12, 14, 0.5);
    border-radius: 6px;
    border: 1px solid #24252e;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* МОДАЛЬНОЕ ОКНО ДЛЯ ЗАМЕТКИ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.note-modal {
    width: 90%;
    max-width: 600px;
    background: linear-gradient(145deg, #1a1b23 0%, #16171e 100%);
    border-radius: 16px;
    border: 1px solid #24252e;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 8px 16px rgba(0, 0, 0, 0.4);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #24252e;
    background: linear-gradient(to bottom, #2a2b35 0%, #24252e 100%);
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.modal-product-name {
    font-size: 16px;
    color: #8c8e9a;
    font-weight: 400;
}

.modal-content {
    padding: 24px;
}

.modal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(12, 12, 14, 0.5);
    border-radius: 10px;
    border: 1px solid #24252e;
}

.modal-label {
    font-size: 16px;
    color: #8c8e9a;
    font-weight: 400;
}

.modal-value {
    font-size: 18px;
    color: #ffffff;
    font-weight: 500;
}

.note-input-container {
    margin: 24px 0;
}

.note-label {
    display: block;
    font-size: 16px;
    color: #8c8e9a;
    margin-bottom: 12px;
    font-weight: 400;
}

.note-input {
    width: 100%;
    height: 120px;
    background: rgba(12, 12, 14, 0.5);
    border: 1px solid #24252e;
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    padding: 16px;
    resize: none;
    font-family: inherit;
    transition: all 0.2s;
}

.note-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* СЕНСОРНАЯ КЛАВИАТУРА */
.keyboard-container {
    margin-top: 24px;
}

.keyboard-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    justify-content: center;
}

.keyboard-key {
    flex: 1;
    height: 60px;
    background: linear-gradient(145deg, #1a1b23 0%, #16171e 100%);
    border: 1px solid #24252e;
    border-radius: 8px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: all 0.1s;
}

.keyboard-key:hover {
    background: linear-gradient(145deg, #20212a 0%, #1c1d25 100%);
}

.keyboard-key:active {
    background: linear-gradient(145deg, #2a2b35 0%, #24252e 100%);
    transform: scale(0.95);
}

.keyboard-key.space {
    flex: 3;
}

.keyboard-key.backspace {
    flex: 1.5;
    background: linear-gradient(145deg, #2a2b35 0%, #24252e 100%);
}

.keyboard-key.done {
    background: linear-gradient(145deg, #34c759 0%, #2db54d 100%);
    color: #ffffff;
}

.keyboard-key.done:hover {
    background: linear-gradient(145deg, #3cd763 0%, #32c557 100%);
}

.keyboard-key.clear {
    background: linear-gradient(145deg, #ff3b30 0%, #e63329 100%);
    color: #ffffff;
}

.keyboard-key.clear:hover {
    background: linear-gradient(145deg, #ff4f45 0%, #f03d33 100%);
}

.keyboard-key.shift {
    background: linear-gradient(145deg, #4a90e2 0%, #3a80d2 100%);
    color: #ffffff;
}

.keyboard-key.shift:hover {
    background: linear-gradient(145deg, #5a9ef2 0%, #4a8ee2 100%);
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid #24252e;
    display: flex;
    gap: 12px;
    background: linear-gradient(to top, #1a1b23 0%, #16171e 100%);
}

.modal-btn {
    flex: 1;
    padding: 18px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-btn.cancel {
    background: linear-gradient(145deg, #1a1b23 0%, #16171e 100%);
    color: #8c8e9a;
    border: 1px solid #24252e;
}

.modal-btn.cancel:hover {
    background: linear-gradient(145deg, #20212a 0%, #1c1d25 100%);
    color: #ffffff;
}

.modal-btn.save {
    background: linear-gradient(145deg, #34c759 0%, #2db54d 100%);
    color: #ffffff;
    border: none;
}

.modal-btn.save:hover {
    background: linear-gradient(145deg, #3cd763 0%, #32c557 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 199, 89, 0.3);
}

/* Убираем все полосы прокрутки */
::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes cardPop {
    0% { 
        transform: scale(0.9);
        opacity: 0.5;
    }
    70% { 
        transform: scale(1.05);
        opacity: 1;
    }
    100% { 
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes quantityChange {
    0% { 
        transform: scale(1.2);
        color: #4a90e2;
    }
    100% { 
        transform: scale(1);
        color: #ffffff;
    }
}

@keyframes itemRemove {
    0% { 
        transform: translateX(0);
        opacity: 1;
    }
    50% { 
        transform: translateX(-20px);
        opacity: 0.5;
    }
    100% { 
        transform: translateX(20px);
        opacity: 0;
    }
}

.order-item.added {
    animation: cardPop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quantity-number.changing {
    animation: quantityChange 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.order-item.removing {
    animation: itemRemove 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Эффект глубины */
.depth-layer {
    position: relative;
}

.depth-layer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
    border-radius: inherit;
}

/* Исправление для видимости элементов */
.container-3d {
    height: 100vh;
    overflow: hidden;
}

/* Модальное окно для комбинированной оплаты */
.combined-payment-modal .modal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.payment-method-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(12, 12, 14, 0.5);
    border-radius: 10px;
    border: 1px solid #24252e;
}

.payment-method-label {
    font-size: 16px;
    color: #8c8e9a;
    font-weight: 400;
}

.payment-amount-input {
    width: 150px;
    padding: 12px;
    background: rgba(12, 12, 14, 0.8);
    border: 1px solid #24252e;
    border-radius: 6px;
    color: #ffffff;
    font-size: 16px;
    text-align: right;
    font-family: inherit;
}

.payment-amount-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.payment-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: rgba(12, 12, 14, 0.5);
    border-radius: 10px;
    border: 1px solid #24252e;
    margin-top: 10px;
}

.remaining-amount {
    color: #34c759;
    font-weight: 600;
    font-size: 18px;
}

.remaining-amount.negative {
    color: #ff3b30;
}

.edit-mode-active .controls-section #editMenuButton {
    display: none !important;
}

.edit-mode-active .controls-section #backofficeButton {
    display: none !important;
}

.edit-mode-active .controls-section #logoutButton {
    display: none !important;
}

.edit-mode-active .controls-section #doneEditButton {
    display: block !important;
}

/* Стиль для кнопки "ГОТОВО" */
#doneEditButton {
    background: linear-gradient(to bottom, #34c759 0%, #2db54d 100%) !important;
    color: #ffffff !important;
    border: 1px solid #2db54d !important;
}

#doneEditButton:hover {
    background: linear-gradient(to bottom, #3cd763 0%, #32c557 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 199, 89, 0.3);
}

/* СТИЛИ ДЛЯ УВЕДОМЛЕНИЙ */
.notification {
    background: linear-gradient(145deg, #1a1b23 0%, #16171e 100%);
    border: 1px solid #24252e;
    border-radius: 10px;
    padding: 16px 24px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 500px;
    min-width: 300px;
    pointer-events: auto;
    animation: notificationSlideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
    z-index: 10000;
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #34c759, #4a90e2);
    animation: notificationProgress 3s linear forwards;
}

.notification-success {
    border-left: 4px solid #34c759;
}

.notification-success .notification-icon {
    color: #34c759;
}

.notification-warning {
    border-left: 4px solid #ff9500;
}

.notification-warning .notification-icon {
    color: #ff9500;
}

.notification-error {
    border-left: 4px solid #ff3b30;
}

.notification-error .notification-icon {
    color: #ff3b30;
}

.notification-info {
    border-left: 4px solid #4a90e2;
}

.notification-info .notification-icon {
    color: #4a90e2;
}

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: #8c8e9a;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes notificationSlideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes notificationProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.notification.fade-out {
    animation: notificationSlideOut 0.3s ease-in forwards;
}

/* Стили для модального окна подтверждения удаления */
#confirmDeleteModal .modal-content {
    padding: 20px;
}

#confirmDeleteInfo {
    padding: 15px;
    background: rgba(255, 59, 48, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 59, 48, 0.2);
    margin: 10px 0;
}

/* Улучшенные стили для кнопок подтверждения удаления */
#confirmDeleteBtn {
    background: linear-gradient(145deg, #ff3b30 0%, #e63329 100%);
}

#confirmDeleteBtn:hover {
    background: linear-gradient(145deg, #ff4f45 0%, #f03d33 100%);
}

#cancelDeleteBtn {
    background: linear-gradient(145deg, #1a1b23 0%, #16171e 100%);
    color: #8c8e9a;
    border: 1px solid #24252e;
}

#cancelDeleteBtn:hover {
    background: linear-gradient(145deg, #20212a 0%, #1c1d25 100%);
    color: #ffffff;
}

/* Стили для модального окна закрытия смены */
#closeShiftModal .note-modal {
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

#closeShiftModal .modal-content {
    padding: 0;
    flex: 1;
    display: flex;
    overflow: hidden;
}

.shift-selector-panel {
    width: 250px;
    background: linear-gradient(145deg, #1a1b23 0%, #16171e 100%);
    border-right: 1px solid #24252e;
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.shift-report-types {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compact-report-item {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    border-radius: 6px;
    background: rgba(36, 37, 46, 0.3);
    transition: all 0.2s;
    cursor: pointer;
    user-select: none;
    position: relative;
    border: 1px solid transparent;
}

.compact-report-item:hover {
    background: rgba(74, 144, 226, 0.1);
    border-color: rgba(74, 144, 226, 0.3);
}

.compact-report-item.selected {
    background: rgba(74, 144, 226, 0.2);
    border: 1px solid rgba(74, 144, 226, 0.5);
}

.shift-date-filter {
    padding: 15px 20px;
    border-bottom: 1px solid #24252e;
    background: rgba(36, 37, 46, 0.3);
}

#closeShiftModal .receipt-container {
    width: 100%;
    max-width: 380px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#closeShiftModal .receipt-paper {
    flex: 1;
    background: white;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    overflow-y: auto;
    padding: 15px 10px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: black;
    line-height: 1.3;
    width: 100%;
}

.report-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid #4a90e2;
    color: #4a90e2;
}

.btn-outline-primary:hover {
    background: #4a90e2;
    color: #ffffff;
}

.btn-success {
    background: linear-gradient(145deg, #34c759 0%, #2db54d 100%);
    color: #ffffff;
    border: none;
}

.btn-success:hover {
    background: linear-gradient(145deg, #3cd763 0%, #32c557 100%);
}

.filter-btn {
    padding: 6px 12px;
    font-size: 12px;
    background: #1a1b23;
    border: 1px solid #24252e;
    color: #8c8e9a;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #20212a;
    color: #ffffff;
}

.filter-btn.active {
    background: #4a90e2;
    color: #ffffff;
}

/* Полоса прокрутки */
.shift-report-types::-webkit-scrollbar {
    width: 6px;
}

.shift-report-types::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.shift-report-types::-webkit-scrollbar-thumb {
    background: rgba(74, 144, 226, 0.5);
    border-radius: 3px;
}

.shift-report-types::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 144, 226, 0.7);
}

/* Добавить в конец styles.css */

/* Стили для модального окна выбора способа оплаты */
.payment-method-modal .modal-content {
    padding: 0;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: rgba(12, 12, 14, 0.5);
    border: none;
    border-bottom: 1px solid #24252e;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.payment-option:last-child {
    border-bottom: none;
}

.payment-option:hover {
    background: rgba(74, 144, 226, 0.1);
}

.payment-option:active {
    background: rgba(74, 144, 226, 0.2);
}

.payment-icon {
    font-size: 28px;
    margin-right: 16px;
    width: 40px;
    text-align: center;
}

.payment-text {
    flex: 1;
}

.payment-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.payment-subtitle {
    font-size: 13px;
    color: #8c8e9a;
    font-weight: 400;
}

.payment-arrow {
    font-size: 20px;
    color: #8c8e9a;
}

/* Стили для модального окна банковского перевода */
.bank-transfer-modal .modal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.bank-transfer-modal label {
    display: block;
    font-size: 14px;
    color: #8c8e9a;
    margin-bottom: 8px;
    font-weight: 400;
}

.bank-transfer-modal .edit-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(12, 12, 14, 0.8);
    border: 1px solid #24252e;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
}

.bank-transfer-modal .edit-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.bank-transfer-modal .note-input {
    width: 100%;
    min-height: 80px;
    background: rgba(12, 12, 14, 0.8);
    border: 1px solid #24252e;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    padding: 12px 16px;
    resize: vertical;
    font-family: inherit;
}

.split-bill-modal .modal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.split-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.split-minus, .split-plus {
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, #1a1b23 0%, #16171e 100%);
    border: 1px solid #24252e;
    border-radius: 6px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.split-minus:hover, .split-plus:hover {
    background: linear-gradient(145deg, #20212a 0%, #1c1d25 100%);
    border-color: #4a90e2;
}

.split-input {
    width: 80px;
    height: 40px;
    background: rgba(12, 12, 14, 0.8);
    border: 1px solid #24252e;
    border-radius: 6px;
    color: #ffffff;
    font-size: 16px;
    text-align: center;
    font-family: inherit;
}

.split-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.split-amounts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(12, 12, 14, 0.3);
    border-radius: 8px;
    border: 1px solid #24252e;
}

.split-amount-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(36, 37, 46, 0.5);
    border-radius: 6px;
    border: 1px solid #24252e;
}

.split-amount-label {
    font-size: 14px;
    color: #8c8e9a;
    min-width: 80px;
}

.split-amount-input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(12, 12, 14, 0.8);
    border: 1px solid #24252e;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    text-align: right;
    font-family: inherit;
}

.split-amount-input:focus {
    outline: none;
    border-color: #4a90e2;
}

/* Обновление для комбинированной оплаты */
.combined-payment-modal .payment-method-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(12, 12, 14, 0.5);
    border-radius: 10px;
    border: 1px solid #24252e;
    margin-bottom: 12px;
}

/* ==================== */
/* УМЕРЕННО КОМПАКТНОЕ МОДАЛЬНОЕ ОКНО */
/* ==================== */

.balanced-modal {
    max-width: 550px !important; /* Увеличено с 500px до 550px */
}

.balanced-header {
    padding: 16px 20px !important; /* Увеличено с 12px 16px до 16px 20px */
}

.balanced-header .modal-title {
    font-size: 18px !important; /* Увеличено с 16px до 18px */
    margin-bottom: 4px !important;
}

.balanced-header .modal-product-name {
    font-size: 14px !important; /* Увеличено с 13px до 14px */
}

.balanced-content {
    padding: 16px 20px !important; /* Увеличено с 12px 16px до 16px 20px */
}

.balanced-row {
    padding: 10px 14px !important; /* Увеличено с 8px 12px до 10px 14px */
    margin-bottom: 10px !important; /* Увеличено с 8px до 10px */
}

.balanced-row .modal-label {
    font-size: 14px !important; /* Увеличено с 13px до 14px */
}

.balanced-row .modal-value {
    font-size: 16px !important; /* Увеличено с 14px до 16px */
}

.balanced-input-container {
    margin: 12px 0 !important; /* Увеличено с 8px до 12px */
}

.balanced-note-input {
    height: 70px !important; /* Увеличено с 60px до 70px */
    padding: 10px 14px !important; /* Увеличено с 8px 12px до 10px 14px */
    font-size: 14px !important; /* Увеличено с 13px до 14px */
}

/* УМЕРЕННО КОМПАКТНАЯ КЛАВИАТУРА */
.balanced-keyboard {
    margin-top: 12px !important; /* Увеличено с 8px до 12px */
}

.balanced-keyboard .balanced-row {
    gap: 5px !important; /* Увеличено с 4px до 5px */
    margin-bottom: 5px !important; /* Увеличено с 4px до 5px */
}

.balanced-key {
    height: 38px !important; /* Увеличено с 32px до 38px */
    font-size: 14px !important; /* Увеличено с 12px до 14px */
    border-radius: 5px !important; /* Увеличено с 4px до 5px */
    padding: 0 3px !important;
}

.balanced-key.space {
    flex: 2 !important;
    font-size: 13px !important; /* Увеличено с 11px до 13px */
}

.balanced-key.backspace,
.balanced-key.shift,
.balanced-key.clear,
.balanced-key.done {
    font-size: 13px !important; /* Увеличено с 11px до 13px */
}

.balanced-key.clear,
.balanced-key.done {
    flex: 1.5 !important;
}

.balanced-footer {
    padding: 16px 20px !important; /* Увеличено с 12px 16px до 16px 20px */
    gap: 12px !important; /* Увеличено с 8px до 12px */
}

.balanced-btn {
    padding: 12px !important; /* Увеличено с 10px до 12px */
    font-size: 14px !important; /* Увеличено с 13px до 14px */
    border-radius: 7px !important; /* Увеличено с 6px до 7px */
}

/* Сохраняем оригинальные классы для обратной совместимости */
.compact-modal {
    max-width: 550px !important;
}

.compact-header {
    padding: 16px 20px !important;
}

.compact-header .modal-title {
    font-size: 18px !important;
    margin-bottom: 4px !important;
}

.compact-header .modal-product-name {
    font-size: 14px !important;
}

.compact-content {
    padding: 16px 20px !important;
}

.compact-row {
    padding: 10px 14px !important;
    margin-bottom: 10px !important;
}

.compact-row .modal-label {
    font-size: 14px !important;
}

.compact-row .modal-value {
    font-size: 16px !important;
}

.compact-input-container {
    margin: 12px 0 !important;
}

.compact-note-input {
    height: 70px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
}

.compact-keyboard {
    margin-top: 12px !important;
}

.compact-keyboard .compact-row {
    gap: 5px !important;
    margin-bottom: 5px !important;
}

.compact-key {
    height: 38px !important;
    font-size: 14px !important;
    border-radius: 5px !important;
    padding: 0 3px !important;
}

.compact-key.space {
    flex: 2 !important;
    font-size: 13px !important;
}

.compact-key.backspace,
.compact-key.shift,
.compact-key.clear,
.compact-key.done {
    font-size: 13px !important;
}

.compact-key.clear,
.compact-key.done {
    flex: 1.5 !important;
}

.compact-footer {
    padding: 16px 20px !important;
    gap: 12px !important;
}

.compact-btn {
    padding: 12px !important;
    font-size: 14px !important;
    border-radius: 7px !important;
}

/* Убираем лишние отступы */
.compact-keyboard .keyboard-row:last-child {
    margin-bottom: 0 !important;
}

/* Адаптация для маленьких экранов */
@media (max-height: 700px) {
    .balanced-key, .compact-key {
        height: 34px !important; /* Уменьшено с 38px до 34px для низких экранов */
        font-size: 13px !important;
    }
    
    .balanced-note-input, .compact-note-input {
        height: 60px !important; /* Уменьшено с 70px до 60px для низких экранов */
    }
}

/* ==================== */
/* СТИЛИ ДЛЯ АКТИВНЫХ ПОЛЕЙ КОЛИЧЕСТВА И СКИДКИ */
/* ==================== */

.quantity-row, .discount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px !important;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-control-btn {
    width: 36px;
    height: 36px;
    background: linear-gradient(145deg, #1a1b23 0%, #16171e 100%);
    border: 1px solid #4a90e2;
    border-radius: 6px;
    color: #4a90e2;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.quantity-control-btn:hover {
    background: linear-gradient(145deg, #2a2b35 0%, #24252e 100%);
    color: #ffffff;
    border-color: #5a9ef2;
    transform: scale(1.05);
}

.quantity-control-btn:active {
    transform: scale(0.95);
}

.quantity-input {
    width: 80px;
    height: 40px;
    background: rgba(12, 12, 14, 0.8);
    border: 1px solid #24252e;
    border-radius: 6px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    padding: 0 5px;
}

.quantity-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input {
    -moz-appearance: textfield;
}

.discount-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.discount-input {
    width: 80px;
    height: 40px;
    background: rgba(12, 12, 14, 0.8);
    border: 1px solid #ff9500;
    border-radius: 6px;
    color: #ff9500;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    padding: 0 5px;
}

.discount-input:focus {
    outline: none;
    border-color: #ff9500;
    box-shadow: 0 0 0 2px rgba(255, 149, 0, 0.2);
}

.discount-percent {
    color: #ff9500;
    font-size: 16px;
    font-weight: 500;
}

.price-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: rgba(12, 12, 14, 0.5);
    border-radius: 8px;
    border: 1px solid #24252e;
}

.original-price {
    color: #8c8e9a;
    font-size: 14px;
    text-decoration: line-through;
}

.discounted-price {
    color: #34c759;
    font-size: 18px;
    font-weight: 600;
}

/* Активное состояние для полей при фокусе */
.quantity-input.active-field,
.discount-input.active-field,
.note-input.active-field {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
}

/* Индикатор активного поля */
.field-indicator {
    position: absolute;
    top: -10px;
    left: 10px;
    background: #4a90e2;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.field-indicator.active {
    opacity: 1;
}

/* ==================== */
/* СТИЛИ ДЛЯ КНОПОК СКИДКИ + И - */
/* ==================== */

.discount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px !important;
}

.discount-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.discount-control-btn {
    width: 36px;
    height: 36px;
    background: linear-gradient(145deg, #1a1b23 0%, #16171e 100%);
    border: 1px solid #ff9500;
    border-radius: 6px;
    color: #ff9500;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.discount-control-btn:hover {
    background: linear-gradient(145deg, #2a2b35 0%, #24252e 100%);
    color: #ffffff;
    border-color: #ffaa33;
    transform: scale(1.05);
}

.discount-control-btn:active {
    transform: scale(0.95);
}

.discount-control-btn.minus {
    border-color: #ff9500;
}

.discount-control-btn.plus {
    border-color: #ff9500;
}

.discount-input {
    width: 80px;
    height: 40px;
    background: rgba(12, 12, 14, 0.8);
    border: 1px solid #ff9500;
    border-radius: 6px;
    color: #ff9500;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    padding: 0 5px;
}

.discount-input:focus {
    outline: none;
    border-color: #ff9500;
    box-shadow: 0 0 0 2px rgba(255, 149, 0, 0.2);
}

.discount-input::-webkit-inner-spin-button,
.discount-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.discount-input {
    -moz-appearance: textfield;
}

.discount-percent {
    color: #ff9500;
    font-size: 16px;
    font-weight: 500;
    margin-left: 2px;
}

/* Цифровая клавиатура для комбинированной оплаты */
.numeric-keyboard {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(145deg, #1a1b23, #14151c);
    border-radius: 12px;
    border: 1px solid #24252e;
}

.keyboard-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.keyboard-row:last-child {
    margin-bottom: 0;
}

.numeric-key {
    flex: 1;
    height: 60px;
    background: linear-gradient(145deg, #24252e, #1e1f28);
    border: 1px solid #2c2d37;
    border-radius: 8px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.numeric-key:hover {
    background: linear-gradient(145deg, #2c2d37, #262731);
    border-color: #4a90e2;
}

.numeric-key:active {
    transform: scale(0.95);
}

.numeric-key.clear-key {
    background: linear-gradient(145deg, #ff3b30, #e0352b);
    border-color: #ff453a;
    color: white;
}

.numeric-key.backspace-key {
    background: linear-gradient(145deg, #4a4a4a, #3a3a3a);
    border-color: #5a5a5a;
    font-size: 24px;
}

.numeric-key.action-key {
    background: linear-gradient(145deg, #4a90e2, #357abd);
    border-color: #5a9eff;
    font-size: 16px;
    font-weight: 500;
}

.payment-amount-input.active-field {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
    background: #24252e;
}

/* Скрытие кнопки СТОЛЫ когда режим выключен */
#tablesButton[style*="display: none"] {
    display: none !important;
}

/* Стили для кнопки ЗАКАЗ */
.order-actions {
    padding: 10px 18px;
    background: linear-gradient(to bottom, #1a1b23 0%, #16171e 100%);
    border-top: 1px solid #24252e;
    border-bottom: 1px solid #24252e;
}

.order-action-btn {
    width: 100%;
    padding: 16px 8px;
    background: linear-gradient(145deg, #4a90e2, #357abd);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.order-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
}

.order-action-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(145deg, #5a9ef2, #4a90e2);
    box-shadow: 0 6px 12px rgba(74, 144, 226, 0.4);
}

.order-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.3);
}

.order-action-btn .btn-icon {
    font-size: 18px;
}

.order-action-btn .btn-text {
    font-size: 14px;
    font-weight: 600;
}

/* Стили для заблокированных элементов */
.quantity-box.readonly {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 59, 48, 0.1);
    border-color: #ff3b30;
}

.quantity-box.readonly:hover {
    background: rgba(255, 59, 48, 0.15);
    border-color: #ff3b30;
}

.order-item[style*="cursor: not-allowed"] {
    opacity: 0.8;
}

/* Стили для товаров в стоп-листе */
.product-card.stopped-product {
    opacity: 0.6;
    filter: grayscale(0.7);
    position: relative;
    cursor: pointer;
    border: 1px solid #ff3b30;
}

.product-card.stopped-product:hover {
    opacity: 0.8;
}

.stopped-badge {
    display: inline-block;
    background: #ff3b30;
    color: white;
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 3px;
    margin-left: 5px;
    font-weight: bold;
}
/* ============================================ */
/* СТИЛИ ДЛЯ ТОВАРОВ В СТОП-ЛИСТЕ (Основное окно)
/* ============================================ */

.product-card.stopped {
    opacity: 0.6;
    filter: grayscale(0.7);
    position: relative;
    border: 1px solid #ff3b30;
    background: linear-gradient(145deg, #2a2b33 0%, #22232b 100%);
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-card.stopped:hover {
    opacity: 0.8;
    filter: grayscale(0.5);
    background: linear-gradient(145deg, #30313a 0%, #282933 100%);
    border-color: #ff3b30;
    transform: translateY(-2px);
}

.product-card.stopped .product-price {
    color: #ff8a80;
}

.product-card.stopped .product-name {
    color: #e0e0e0;
}

.product-card.stopped .product-image {
    opacity: 0.7;
    position: relative;
    overflow: hidden;
}

.product-card.stopped .product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 59, 48, 0.2);
    pointer-events: none;
}

/* Индикатор стоп-листа на карточке товара */
.product-card.stopped::before {
    content: '⛔';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 16px;
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 59, 48, 0.3);
    z-index: 10;
    backdrop-filter: blur(2px);
}

/* Альтернативный вариант с бейджем вместо иконки */
.product-card.stopped .stopped-badge-main {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff3b30;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.4);
    z-index: 10;
    animation: pulse 2s infinite;
}

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