        body {
            font-size: 16px;
            background-color: #e6e6e6;
            overflow-x: hidden;
        }

        .pos-header .navbar-brand {
            font-size: 1.5rem;
            font-weight: bold;
        }

        .pos-employee-info {
            font-size: 0.9rem;
            opacity: 0.9;
        }

        .pos-logout-btn {
            background: rgba(255,255,255,0.2);
            border: 1px solid rgba(255,255,255,0.3);
            color: white;
        }

        .pos-logout-btn:hover {
            background: rgba(255,255,255,0.3);
            color: white;
        }

        .pos-main {
            min-height: calc(100vh - 80px);
            padding: 1rem;
        }

        .pos-card {
            border: none;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .pos-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(0,0,0,0.12);
        }

        .pos-btn {
            border-radius: 8px;
            font-weight: 600;
            padding: 0.6rem 1rem;
            font-size: 1rem;
            min-height: 40px;
            touch-action: manipulation;
        }

        .pos-btn-lg {
            padding: 1rem 2rem;
            font-size: 1.1rem;
            min-height: 56px;
        }

        .pos-table-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .pos-table-card {
            aspect-ratio: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .pos-table-link {
            text-decoration: none;
            color: inherit;
        }


        .pos-table-card.available {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            color: white;
        }

        .pos-table-card.occupied {
            background: linear-gradient(135deg, #fd7e14 0%, #e83e8c 100%);
            color: white;
        }

        .pos-table-card.needs_payment {
            background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
            color: white;
        }

        .pos-table-card.free {
            background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
            color: white;
        }

        .pos-product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 1rem;
        }

        .pos-product-card {
            background: white;
            border-radius: 8px;
            padding: 1rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .pos-product-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
        }

        .pos-product-name {
            font-weight: 600;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
        }

        .pos-product-price {
            color: #28a745;
            font-weight: bold;
            font-size: 1.1rem;
        }
/*
        .pos-cart-sidebar {
            position: sticky;
            top: 100px;
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            max-height: calc(100vh - 120px);
            overflow-y: auto;
        }
*/

        .pos-cart-sidebar {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            /* Žiadne position: sticky, žiadne max-height, žiadne overflow */
        }

        .pos-cart-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.3rem 0.3rem;
            border-bottom: 1px solid #eee;
        }

        .pos-cart-item:last-child {
            border-bottom: none;
        }

        .pos-cart-total {
            font-size: 1.2rem;
            font-weight: bold;
            color: #28a745;
            text-align: center;
            padding: 1rem;
            background: #f8f9fa;
            border-radius: 8px;
            margin-top: 1rem;
        }

        .pos-flash-message {
            position: fixed;
            top: 100px;
            right: 20px;
            z-index: 1999;
            max-width: 400px;
        }

        .pos-keyboard {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            border-top: 2px solid #dee2e6;
            padding: 1rem;
            z-index: 1000;
        }

        .pos-keyboard.hidden {
            display: none;
        }

        .pos-keyboard-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.5rem;
            max-width: 300px;
            margin: 0 auto;
        }

        .pos-keyboard-btn {
            aspect-ratio: 1;
            border-radius: 8px;
            font-size: 1.2rem;
            font-weight: bold;
            border: 2px solid #dee2e6;
            background: white;
            color: #495057;
            transition: all 0.2s ease;
        }

        .pos-keyboard-btn:hover {
            background: #f8f9fa;
            border-color: #adb5bd;
        }

        .pos-keyboard-btn:active {
            background: #e9ecef;
            transform: scale(0.95);
        }

        @media (max-width: 768px) {
            .pos-main {
                padding: 0.5rem;
            }

            .pos-table-grid {
                grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
                gap: 0.5rem;
            }

            .pos-product-grid {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
                gap: 0.4rem;
            }
        }

        /* Loading animation */
        .pos-loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255,255,255,.3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 1s ease-in-out infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Touch feedback */
        .touch-feedback:active {
            transform: scale(0.95);
            transition: transform 0.1s ease;
        }

        /* Zmenšenie tlačidiel kategórií */
        .categories-scroll .pos-btn {
            line-height: 1.3;     /* Upravená výška riadku pre lepšie centrovanie */
        }


        /* Pridaj toto do base.css alebo main.css */
.modal {
    z-index: 2999; /* Dáme mu ešte vyššiu hodnotu ako flash správam */
}

.modal-backdrop {
    z-index: 990; /* A pozadie musí byť tesne pod ním */
}