:root {
            --pantone-222c: #682145;
            --pantone-199c: #D50032;
            --bg-light: #f8f9fa;
            --text-dark: #2d2d2d;
            --success: #28a745;
            --warning: #ffc107;
            --gray: #6c757d;
        }

        body { font-family: 'Segoe UI', Arial, sans-serif; background-color: var(--bg-light); margin: 0; padding: 20px; color: var(--text-dark); overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh; touch-action: pan-x pan-y; }
        .hidden { display: none !important; }
        body.no-scroll { overflow: hidden; }

        .view-section { flex: 1; max-width: 1300px; margin: 0 auto; width: 100%; position: relative; }
        .modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 15px; box-sizing: border-box; overflow-y: auto; }
        .modal-content { background: white; padding: 30px; border-radius: 15px; width: 100%; max-width: 450px; text-align: center; box-sizing: border-box; margin: auto; }

        #toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--success); color: white; padding: 15px 30px; border-radius: 50px; font-weight: bold; opacity: 0; transition: 0.3s; z-index: 9999; pointer-events: none; }
        #toast.show { opacity: 1; }

        .btn { padding: 10px 15px; border: none; border-radius: 8px; cursor: pointer; font-weight: bold; transition: 0.2s; }
        .btn-primary { background: var(--pantone-199c); color: white; font-size: 16px; }
        .btn-primary:hover { background: var(--pantone-222c); }
        .btn-success { background: var(--success); color: white; }
        .btn-danger { background: #dc3545; color: white; }
        .btn-outline { background: transparent; border: 2px solid var(--pantone-222c); color: var(--pantone-222c); font-size: 16px; }

        .input-group { margin-bottom: 15px; text-align: left; }
        .input-group label { display: block; font-size: 14px; margin-bottom: 5px; font-weight: bold; }
        .input-group input, .input-group select, .input-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px; box-sizing: border-box; font-size: 16px; font-family: inherit; }

        header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; background: white; padding: 15px 30px; border-radius: 15px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); border-bottom: 4px solid var(--pantone-222c); }
        .user-greeting { font-size: 24px; color: var(--pantone-222c); font-weight: bold; }

        .main-content { display: flex; gap: 30px; align-items: flex-start; }
        .menu-section { flex: 2; }
        .categories { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
        .category-btn { padding: 12px 25px; font-size: 16px; font-weight: bold; border: none; border-radius: 10px; background: white; color: var(--pantone-222c); cursor: pointer; }
        .category-btn.active { background: var(--pantone-199c); color: white; }

        .products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
        .product-card { background: white; border-radius: 15px; padding: 15px; text-align: center; cursor: pointer; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; justify-content: space-between; position: relative; }
        .product-card:active { transform: scale(0.95); }
        .product-card.epuise { opacity: 0.5; pointer-events: none; filter: grayscale(100%); }

        .badge-epuise { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%) rotate(-15deg); background: var(--pantone-199c); color: white; font-weight: bold; padding: 10px 20px; border-radius: 5px; border: 3px solid white; font-size: 20px; z-index: 20; }
        .product-card img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; background: #eee; margin-bottom: 10px; aspect-ratio: 3/2; }
        .product-price { color: var(--pantone-199c); font-weight: bold; font-size: 18px; margin-top: 5px; }

        .btn-allergene-badge { position: absolute; top: 10px; right: 10px; background: white; border: 1px solid #ccc; border-radius: 50%; width: 30px; height: 30px; font-weight: bold; color: var(--pantone-222c); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); z-index: 10; }
        .btn-allergene-badge:hover { background: var(--warning); color: white; }

        .cart-section { flex: 1; background: white; border-radius: 20px; padding: 25px; border: 2px solid var(--pantone-222c); position: sticky; top: 20px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); }
        .cart-items { list-style: none; padding: 0; margin: 0; max-height: 400px; overflow-y: auto; text-align: left; }
        .cart-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; }
        .qty-controls { display: flex; align-items: center; gap: 10px; }
        .qty-btn { background: #eee; border: none; width: 30px; height: 30px; border-radius: 50%; font-weight: bold; font-size: 18px; cursor: pointer; }
        .cart-total { font-size: 26px; font-weight: bold; text-align: right; margin: 20px 0; color: var(--pantone-222c); }

        .cuisine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
        .ticket { background: white; border-left: 8px solid var(--warning); border-radius: 10px; padding: 20px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; text-align: left; touch-action: pan-y; transition: transform 0.2s ease; }
        .ticket.terminee { border-left: 8px solid var(--gray); opacity: 0.8; }
        .ticket-header { display: flex; justify-content: space-between; border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 10px; }
        .ticket-client { font-size: 18px; font-weight: bold; color: var(--pantone-222c); }
        .ticket-time { color: gray; font-size: 14px; }
        .ticket-items { list-style: none; padding: 0; margin: 0 0 15px 0; flex: 1; font-size: 16px; }
        .ticket-items li { margin-bottom: 5px; font-weight: bold; }

        .admin-layout { display: flex; gap: 30px; height: 85vh; text-align: left; }
        .admin-sidebar { width: 250px; background: white; border-radius: 15px; padding: 20px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; gap: 10px; }
        .admin-sidebar button { text-align: left; padding: 15px; font-size: 16px; background: transparent; border: 1px solid transparent; border-radius: 10px; cursor: pointer; }
        .admin-sidebar button:hover, .admin-sidebar button.active { background: var(--bg-light); border-color: var(--pantone-222c); color: var(--pantone-222c); font-weight: bold; }
        .admin-content { flex: 1; background: white; border-radius: 15px; padding: 30px; overflow-y: auto; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); }

        .table-responsive { width: 100%; overflow-x: auto; }
        table { width: 100%; border-collapse: collapse; margin-top: 15px; min-width: 600px; }
        th, td { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; }
        th { background: var(--bg-light); color: var(--pantone-222c); }
        .action-cell { display: flex; gap: 5px; }

        #global-footer { text-align: center; padding: 20px 0 5px 0; font-size: 13px; color: gray; width: 100%; }
        #global-footer a { color: var(--pantone-222c); text-decoration: underline; font-weight: bold; cursor: pointer; }

        tr.draggable-row.dragging { opacity: 0.5; background-color: #f9f9f9; }
        tr.draggable-row.drag-over { border-top: 2px dashed var(--pantone-199c); }

        #mobile-cart-btn { display: none; position: fixed; bottom: 20px; right: 20px; background: var(--pantone-199c); color: white; padding: 15px 25px; border-radius: 50px; font-size: 18px; font-weight: bold; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); z-index: 999; cursor: pointer; align-items: center; gap: 10px; }

        @media (max-width: 768px) {
            header { flex-direction: column; gap: 15px; text-align: center; }
            header>div { justify-content: center; width: 100%; }
            #header-action-buttons { flex-direction: row; flex-wrap: wrap; justify-content: center; }
            #header-admin-btns { width: 100%; justify-content: center; margin-bottom: 10px; }
            .btn { padding: 8px 12px; font-size: 14px; }
            .main-content { flex-direction: column; }
            .cart-section { position: relative; top: 0; width: 100%; margin-top: 20px; box-sizing: border-box; margin-bottom: 60px; }
            .admin-layout { flex-direction: column; height: auto; }
            .admin-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: center; box-sizing: border-box; }
            .admin-sidebar button { text-align: center; flex: 1 1 45%; }
            .cuisine-grid { grid-template-columns: 1fr; }
            #mobile-cart-btn.show-mobile { display: flex; }
        }
