body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
input, textarea, select { user-select: auto; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.dark ::-webkit-scrollbar-thumb { background: #334155; }

.pos-card { transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease; }
.pos-card:active { transform: scale(0.97); }

@keyframes pulseBorder {
    0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(225, 29, 72, 0); }
}
.kds-delayed-card { animation: pulseBorder 1.8s infinite; }

@media (max-width: 1023px) {
    #posCartAside {
        position: fixed;
        inset-inline: 0;
        bottom: 56px;
        max-height: 78dvh;
        border-top-left-radius: 1.5rem;
        border-top-right-radius: 1.5rem;
        transform: translateY(110%);
        transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    }
    #posCartAside.mobile-cart-open {
        transform: translateY(0);
    }
}

/* Dedicated top-level print containers (never inside display:none parents!) */
#globalThermalPrintContainer,
#globalQrPrintContainer {
    display: none;
}

@media print {
    @page {
        margin: 4mm;
    }
    html, body {
        background: #ffffff !important;
        color: #000000 !important;
        height: auto !important;
        overflow: visible !important;
    }
    body > *:not(#globalThermalPrintContainer):not(#globalQrPrintContainer) {
        display: none !important;
    }
    body:not(.print-qr-mode) #globalThermalPrintContainer {
        display: block !important;
        width: 100% !important;
        background: #ffffff !important;
        color: #000000 !important;
        font-family: 'Courier New', Courier, monospace !important;
        line-height: 1.35 !important;
    }
    body.print-qr-mode #globalQrPrintContainer {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8mm !important;
        width: 100% !important;
        background: #ffffff !important;
        color: #000000 !important;
    }
    .qr-print-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}


/* ========================================================================= */
/* MENU FRAMEWORK v7 — PREMIUM FOOD-APP CARDS, TAGS, BADGES & STUDIO         */
/* ========================================================================= */
.menu-card-v7 {
    transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.16s ease, border-color 0.16s ease;
}
.menu-card-v7:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.12);
}
.menu-card-v7:active {
    transform: scale(0.98);
}
.diet-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.diet-dot::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 999px;
}
.diet-veg { border: 1.5px solid #16a34a; }
.diet-veg::after { background: #16a34a; }
.diet-nonveg { border: 1.5px solid #dc2626; }
.diet-nonveg::after { background: #dc2626; }

.sale-ribbon {
    background: linear-gradient(135deg, #e11d48, #f97316);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 999px;
}


/* ========================================================================= */
/* SIDEBAR PRO ARCHITECTURE v10 — RESPONSIVE DESKTOP & MOBILE DRAWER         */
/* ========================================================================= */
.app-sidebar {
    width: 260px;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 1023px) {
    .app-sidebar {
        position: fixed;
        inset-y: 0;
        left: 0;
        z-index: 60;
        transform: translateX(-105%);
    }
    .app-sidebar.sidebar-open {
        transform: translateX(0);
    }
}
.sidebar-nav-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: left;
    transition: all 0.15s ease;
}
.sidebar-nav-btn.active-brand {
    background: #EA580C;
    color: #ffffff;
    box-shadow: 0 6px 16px -4px rgba(234, 88, 12, 0.45);
}
.sidebar-nav-btn.active-purple {
    background: #7C3AED;
    color: #ffffff;
    box-shadow: 0 6px 16px -4px rgba(124, 58, 237, 0.45);
}
.sidebar-nav-btn.active-sky {
    background: #0284C7;
    color: #ffffff;
    box-shadow: 0 6px 16px -4px rgba(2, 132, 199, 0.45);
}
