    :root {
            --sidebar-width: 260px;
            --sidebar-bg: #111827;
            --sidebar-hover: rgba(255, 255, 255, 0.08);
            --sidebar-active: #2563eb;
            --main-bg: #f9fafb;
        }

        body {
            background-color: var(--main-bg);
            font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
            min-height: 100vh;
        }

        /* Change min-height to height, and set overflow hidden */
.sidebar-wrapper {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    height: 100vh;              /* Changed from min-height: 100vh */
    max-height: 100vh;          /* Ensures it never exceeds the screen */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;           /* Keeps the footer inside bounds */
}

/* Ensure the nav area is the only part that scrolls */
.sidebar-nav {
    padding: 1rem 0.75rem;
    flex: 1 1 auto;
    min-height: 0;              /* Required for flexbox overflow scroll */
    overflow-y: auto;
}
        .sidebar-brand {
            padding: 1.25rem 1.5rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

 
        .sidebar-nav .nav-link {
            color: #9ca3af;
            padding: 0.65rem 0.85rem;
            border-radius: 0.5rem;
            font-weight: 500;
            font-size: 0.925rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            transition: all 0.15s ease-in-out;
            margin-bottom: 0.25rem;
        }

        .sidebar-nav .nav-link:hover {
            color: #ffffff;
            background-color: var(--sidebar-hover);
        }

        .sidebar-nav .nav-link.active {
            color: #ffffff;
            background-color: var(--sidebar-active);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
        }

        .sidebar-nav .nav-link i {
            font-size: 1.15rem;
        }

        /* Main Workspace Offset */
        .main-workspace {
            margin-left: var(--sidebar-width);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            transition: margin-left 0.3s ease-in-out;
        }

        /* Topbar Header */
        .topbar-header {
            background: #ffffff;
            border-bottom: 1px solid #e5e7eb;
            padding: 0.85rem 1.5rem;
            position: sticky;
            top: 0;
            z-index: 1020;
        }

        /* Responsive Breakpoints */
        @media (max-width: 991.98px) {
            .sidebar-wrapper {
                transform: translateX(-100%);
            }
            .sidebar-wrapper.show {
                transform: translateX(0);
            }
            .main-workspace {
                margin-left: 0;
            }
            .sidebar-backdrop {
                position: fixed;
                inset: 0;
                background-color: rgba(0, 0, 0, 0.5);
                z-index: 1030;
                display: none;
            }
            .sidebar-backdrop.show {
                display: block;
            }
        }
    

/* ==========================================================================
   Modern App Checkout Form (Storefront)
   ========================================================================== */

.checkout-wrapper {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
}

/* Header & Section Badges */
.checkout-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.checkout-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 30px;
    background: rgba(232, 93, 53, 0.09);
    color: var(--store-primary, #e85d35);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.checkout-step-pill {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Modern Input Card Items */
.app-input-block {
    position: relative;
    display: flex;
    align-items: center;
    background: #fcfdfe;
    border: 1.5px solid #edf2f7;
    border-radius: 12px;
    padding: 0 12px;
    margin-bottom: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-input-block:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.app-input-block:focus-within {
    border-color: var(--store-primary, #e85d35);
    background: #ffffff;
    box-shadow: 0 0 0 3.5px rgba(232, 93, 53, 0.12);
}

.app-input-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #94a3b8;
    font-size: 15px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.app-input-block:focus-within .app-input-icon {
    color: var(--store-primary, #e85d35);
}

/* Form Floating Adjustments */
.app-input-block .form-floating {
    flex: 1 1 auto;
}

.app-input-block .form-floating > .form-control {
    border: none;
    box-shadow: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    padding: 18px 8px 6px;
    height: 48px;
}

.app-input-block .form-floating > textarea.form-control {
    height: 66px;
    padding-top: 22px;
    resize: none;
    line-height: 1.4;
}

.app-input-block .form-floating > label {
    padding: 12px 8px;
    font-size: 11.5px;
    font-weight: 500;
    color: #94a3b8;
    pointer-events: none;
    transform-origin: 0 0;
}

.app-input-block .form-floating > .form-control:focus ~ label,
.app-input-block .form-floating > .form-control:not(:placeholder-shown) ~ label {
    transform: scale(0.82) translateY(-0.55rem) translateX(0.15rem);
    color: #64748b;
    font-weight: 600;
}

/* Table Dine-in & Warning Status Cards */
.table-order-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.table-order-box.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.table-order-box.warning {
    background: #fffbeb;
    border: 1px solid #fef3c7;
}

.table-order-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.table-order-box.success .table-order-icon {
    background: #dcfce7;
    color: #15803d;
}

.table-order-box.warning .table-order-icon {
    background: #fef3c7;
    color: #b45309;
}

.table-live-indicator {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Delivery Status Indicator */
.location-status-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 11.5px;
    font-weight: 500;
}

/* Primary Action Button */
.checkout-btn-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--store-primary, #e85d35) 0%, var(--store-primary-dark, #c94421) 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    padding: 13px 18px;
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(232, 93, 53, 0.28);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkout-btn-cta:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 8px 22px rgba(232, 93, 53, 0.38);
    color: #ffffff;
}

.checkout-btn-cta:active {
    transform: translateY(0);
}

/* Mobile App Floating Bottom Bar */
#mobileAppBottomBar {
    position: fixed;
    bottom: -80px;
    left: 0;
    right: 0;
    padding: 12px 16px;
    z-index: 1040;
    pointer-events: none;
    transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobileAppBottomBar.visible {
    bottom: 0;
}

.mobile-cart-pill {
    pointer-events: auto;
    background: linear-gradient(135deg, var(--store-primary, #e85d35), var(--store-primary-dark, #c94421));
    color: #ffffff;
    border-radius: 16px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(232, 93, 53, 0.38);
    cursor: pointer;
}

.cart-pill-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-pill-count {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.cart-pill-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.cart-pill-label {
    font-size: 13px;
    font-weight: 700;
}

.cart-pill-subtext {
    font-size: 10.5px;
    opacity: 0.85;
}

.cart-pill-action {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    background: #ffffff;
    color: var(--store-primary-dark, #c94421);
    padding: 6px 12px;
    border-radius: 20px;
}

/* Offcanvas Drawer styled as Native iOS/Android Bottom Sheet */
.offcanvas-bottom.mobile-app-sheet {
    border-top-left-radius: 24px !important;
    border-top-right-radius: 24px !important;
    border: none;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    max-height: 88vh;
}

.sheet-drag-handle {
    width: 40px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 4px;
    margin: 8px auto 4px;
}

@media print {
    /* Hide everything on the page except the printable receipt area */
    body * {
        visibility: hidden !important;
    }

    #receiptModalContent, #receiptModalContent * {
        visibility: visible !important;
    }

    #receiptModal {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .modal-dialog {
        max-width: 100% !important;
        margin: 0 !important;
    }

    .modal-content {
        border: none !important;
        box-shadow: none !important;
    }

    /* Thermal receipt formatting (compact layout) */
    #receiptModalContent {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: 320px !important; /* Perfect for 80mm/58mm roll */
        padding: 10px !important;
        font-family: monospace, monospace !important;
        color: #000 !important;
    }

    /* Hide alert banners / shadows during print */
    .alert {
        border: 1px dashed #000 !important;
        background: transparent !important;
        color: #000 !important;
    }

    .badge {
        border: 1px solid #000 !important;
        color: #000 !important;
        background: transparent !important;
    }
}

/* Prevent Google Translate from injecting top spacing */
body { 
    top: 0 !important; 
    position: static !important;
}
.skiptranslate iframe,
.goog-te-banner-frame { 
    display: none !important; 
    visibility: hidden !important; 
}

/* Style Google dropdown to look like a modern navbar pill */
#google_translate_element {
    display: inline-flex;
    align-items: center;
}

.goog-te-gadget-simple {
    background-color: #ffffff !important;
    border: 1px solid var(--store-border) !important;
    padding: 6px 12px !important;
    border-radius: 50px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--store-heading) !important;
    display: inline-flex !important;
    align-items: center !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.goog-te-gadget-simple:hover {
    border-color: var(--store-primary) !important;
    background-color: #fffaf6 !important;
}

/* Hide Google branding & icons */
.goog-te-gadget-icon,
.goog-te-gadget-simple img {
    display: none !important;
}

.goog-te-menu-value span {
    color: var(--store-heading) !important;
    font-family: inherit !important;
}

.goog-te-menu-value span:first-child:before {
    content: "\F5E3"; /* Bootstrap 'bi-translate' icon */
    font-family: "bootstrap-icons" !important;
    margin-right: 6px;
    color: var(--store-primary);
    font-size: 13px;
}

/* Hide the ugly dropdown arrows Google generates */
.goog-te-menu-value span:nth-child(3),
.goog-te-menu-value span:nth-child(5) {
    display: none !important;
}

@media (max-width: 576px) {
    .goog-te-gadget-simple {
        padding: 5px 8px !important;
        font-size: 11px !important;
    }
}


/* Subscription Reminder */
.subscription-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 22px 24px;
    background: linear-gradient(110deg, #fffdf7 0%, #ffffff 70%);
    border: 1px solid #e8ebf0;
    border-left: 4px solid #e5a63d;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.045);
}

.subscription-banner.is-urgent {
    border-left-color: #e59a27;
}

.subscription-banner.is-expired {
    border-left-color: #dc3545;
    background: linear-gradient(110deg, #fff8f8 0%, #ffffff 70%);
}

.subscription-banner__content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1 1 420px;
    min-width: 0;
}

.subscription-banner__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #fff0d6;
    color: #a76a13;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 21px;
}

.subscription-banner.is-expired .subscription-banner__icon {
    background: #fde8ea;
    color: #c62839;
}

.subscription-banner__eyebrow {
    color: #8a651d;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.subscription-banner__title {
    color: #202b3c;
    font-size: 18px;
    font-weight: 700;
    margin: 5px 0 7px;
}

.subscription-banner__description {
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.subscription-banner__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #475569;
}

.subscription-banner__remaining {
    background: #fff1d7;
    color: #95600b;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
}

.subscription-banner__action {
    white-space: nowrap;
    border-radius: 9px;
    padding: 11px 19px;
    font-size: 13px;
}

@media (max-width: 767px) {
    .subscription-banner {
        padding: 18px;
    }

    .subscription-banner__action {
        width: 100%;
    }
}
