/* ==========================================================
   MAMA LYDIA'S BITES POS — MODERN DARK + ORANGE THEME
   Developed by: Brix Sese
   Mobile-First Architecture (320px - 1920px)
   ========================================================== */

:root {
    --bg-main: #121214;
    --bg-surface: #1A1A1E;
    --bg-surface-elevated: #24242A;
    --bg-input: #151518;
    
    --accent: #FF6B00;
    --accent-hover: #FF7D1A;
    --accent-light: rgba(255, 107, 0, 0.15);
    --accent-border: rgba(255, 107, 0, 0.35);

    --text-primary: #FFFFFF;
    --text-secondary: #9E9EA8;
    --text-muted: #6C6C76;
    
    --border-subtle: #2A2A32;
    --border-strong: #3A3A44;

    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.6);

    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --header-height: 52px;
    --tabs-height: 42px;
    --bottom-cart-height: 54px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow-x: hidden;
    overflow-y: hidden;
}

body.pos-body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.4;
    overflow-x: hidden;
    overflow-y: hidden;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
    display: flex;
    flex-direction: column;
}

@media (max-width: 699px) {
    html, body.pos-body {
        overflow-y: auto;
        height: auto;
        max-height: none;
    }
}

/* ==========================================================
   TOP BAR / HEADER
   ========================================================== */
.pos-header {
    height: var(--header-height);
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.brand-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.4px;
    line-height: 1.1;
}

.brand-badge {
    font-size: 0.6rem;
    font-weight: 700;
    background-color: var(--accent-light);
    color: var(--accent);
    padding: 1px 5px;
    border-radius: var(--radius-full);
    border: 1px solid var(--accent-border);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-clock {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
    background-color: var(--bg-main);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    display: none;
}
@media (min-width: 640px) {
    .header-clock { display: block; }
}

.btn-header {
    background-color: var(--bg-surface-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-header:hover {
    color: var(--text-primary);
    border-color: var(--accent-border);
    background-color: var(--accent-light);
}

.badge-sold-out-count {
    background-color: var(--danger);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.4);
}

.btn-admin-discreet {
    opacity: 0.75;
}
.btn-admin-discreet:hover {
    opacity: 1;
    color: var(--accent);
}

/* ==========================================================
   ACTIVE ORDER TABS BAR
   ========================================================== */
.tabs-bar {
    height: var(--tabs-height);
    min-height: var(--tabs-height);
    max-height: var(--tabs-height);
    flex-shrink: 0;
    box-sizing: border-box;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    padding: 2px 10px;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
    position: sticky;
    top: var(--header-height);
    z-index: 90;
}
.tabs-bar::-webkit-scrollbar {
    height: 3px;
}
.tabs-bar::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: var(--radius-full);
}

.slot-tabs-container {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    width: 100%;
    padding: 1px 0;
}

.order-tab, .order-slot-tab {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    flex-shrink: 0;
}
.order-tab:hover, .order-slot-tab:hover {
    background-color: var(--border-subtle);
    color: var(--text-primary);
    border-color: var(--border-strong);
}
.order-tab.active, .order-slot-tab.active {
    background-color: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.4);
}

.tab-badge, .tab-slot-badge {
    background-color: rgba(0, 0, 0, 0.3);
    color: #FFFFFF;
    font-size: 0.7rem;
    padding: 1px 5px;
    border-radius: var(--radius-full);
    font-weight: 700;
}
.order-tab.active .tab-badge,
.order-slot-tab.active .tab-slot-badge {
    background-color: #FFFFFF;
    color: var(--accent);
}

.order-slot-tab.available {
    border-style: dashed;
    opacity: 0.65;
}
.order-slot-tab.available:hover {
    opacity: 1;
    border-color: var(--accent-border);
    color: var(--accent);
    background-color: var(--accent-light);
}
.order-slot-tab.available .tab-slot-badge {
    background-color: transparent;
    color: var(--text-muted);
    font-size: 0.68rem;
    border: 1px solid var(--border-subtle);
    padding: 1px 4px;
}

.tab-actions-group {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 2px;
}

.tab-rename-btn, .tab-close-btn {
    opacity: 0.65;
    padding: 2px 5px;
    border-radius: 4px;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    line-height: 1;
}
.tab-rename-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}
.tab-close-btn:hover {
    opacity: 1;
    background: rgba(239, 68, 68, 0.45);
    color: #ff9999;
}
.order-tab.active .tab-rename-btn,
.order-slot-tab.active .tab-rename-btn,
.order-tab.active .tab-close-btn,
.order-slot-tab.active .tab-close-btn {
    opacity: 0.85;
    color: #FFFFFF;
}
.order-tab.active .tab-rename-btn:hover,
.order-slot-tab.active .tab-rename-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.25);
    color: #FFFFFF;
}
.order-tab.active .tab-close-btn:hover,
.order-slot-tab.active .tab-close-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.35);
    color: #ffcccc;
}

.btn-cart-close-tab {
    color: var(--danger) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}
.btn-cart-close-tab:hover {
    background-color: rgba(239, 68, 68, 0.15) !important;
    border-color: var(--danger) !important;
    color: #ff8080 !important;
}

.tab-slot-total {
    font-size: 0.72rem;
    opacity: 0.9;
    font-weight: 600;
}

.btn-new-tab {
    background-color: transparent;
    border: 1px dashed var(--accent-border);
    color: var(--accent);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.btn-new-tab:hover {
    background-color: var(--accent-light);
    border-style: solid;
}

/* ==========================================================
   MAIN POS LAYOUT
   ========================================================== */
.pos-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 8px;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 700px) {
    .pos-container {
        flex: 1;
        min-height: 0;
        flex-direction: row;
        align-items: stretch;
        padding: 8px 12px;
        gap: 12px;
        height: calc(100vh - var(--header-height) - var(--tabs-height));
        height: calc(100dvh - var(--header-height) - var(--tabs-height));
        max-height: calc(100dvh - var(--header-height) - var(--tabs-height));
        overflow: hidden;
        box-sizing: border-box;
    }
}

/* LEFT CATALOG AREA (SCROLLS INDEPENDENTLY ON TABLET/DESKTOP) */
.catalog-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

@media (min-width: 700px) {
    .catalog-area {
        flex: 1;
        min-height: 0;
        height: 100%;
        max-height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding-right: 4px;
    }
}

/* STICKY SEARCH & CATEGORY BAR INSIDE CATALOG */
.catalog-sticky-header {
    position: sticky;
    top: calc(var(--header-height) + var(--tabs-height));
    z-index: 50;
    background-color: var(--bg-main);
    padding-top: 4px;
    padding-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
@media (min-width: 700px) {
    .catalog-sticky-header {
        top: 0;
    }
}

/* SEARCH & CATEGORY BAR */
.search-bar-wrap {
    position: relative;
    width: 100%;
}
.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.82rem;
}
.search-input {
    width: 100%;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 7px 12px 7px 34px;
    font-size: 0.84rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-light);
}

.category-pills {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}
.category-pills::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}
.cat-pill:hover {
    background-color: var(--bg-surface-elevated);
    color: var(--text-primary);
}
.cat-pill.active {
    background-color: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.35);
}

/* PRODUCT GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
@media (min-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
}
@media (min-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
}
@media (min-width: 1480px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }
}
@media (min-width: 1800px) {
    .products-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
    }
}

/* PRODUCT CARD */
.product-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    cursor: pointer;
}
.product-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.product-card:active {
    transform: scale(0.98);
}
.product-card.sold-out {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.6);
}

.product-thumb-wrap {
    position: relative;
    width: 100%;
    height: 82px;
    background-color: var(--bg-surface-elevated);
    overflow: hidden;
}
@media (min-width: 900px) {
    .product-thumb-wrap {
        height: 90px;
    }
}
.product-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}
.product-card:hover .product-thumb {
    transform: scale(1.05);
}

.badge-sold-out {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--danger);
    color: #FFFFFF;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
    letter-spacing: 0.4px;
}

.badge-customizable {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: var(--accent);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    border: 1px solid var(--accent-border);
}

.product-info {
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    gap: 3px;
}

.product-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    height: 2.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 2px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
    gap: 4px;
}

.product-price {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--accent);
    white-space: nowrap;
}
.product-price-prefix {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
}

.btn-card-add {
    background-color: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--accent-border);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-card-add:hover {
    background-color: var(--accent);
    color: #FFFFFF;
}
.btn-card-add.btn-sold-out {
    background-color: rgba(239, 68, 68, 0.12) !important;
    color: #EF4444 !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    cursor: not-allowed;
    opacity: 0.9;
}

/* ==========================================================
   CART / ORDER PANEL (DESKTOP & OFF-CANVAS MOBILE)
   ========================================================== */
.cart-panel {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media (min-width: 700px) {
    .cart-panel {
        width: 350px;
        flex-shrink: 0;
        position: sticky;
        top: calc(var(--header-height) + var(--tabs-height) + 8px);
        height: 100%;
        max-height: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        z-index: 20;
        box-shadow: var(--shadow-sm);
    }
}
@media (min-width: 1200px) {
    .cart-panel {
        width: 380px;
    }
}
@media (min-width: 1440px) {
    .cart-panel {
        width: 420px;
    }
}

/* Cart Header (Pinned at Top of Sidebar) */
.cart-header {
    flex-shrink: 0;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart-tab-title {
    font-size: 0.92rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-cart-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 4px;
    transition: color 0.15s;
}
.btn-cart-clear:hover {
    color: var(--danger);
}

/* Cart Items Scroll List (Only scrolls when order has many items) */
.cart-items-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scrollbar-width: thin;
    max-height: 48vh;
}
@media (min-width: 700px) {
    .cart-items-list {
        max-height: none;
    }
}
.cart-items-list::-webkit-scrollbar {
    width: 5px;
}
.cart-items-list::-webkit-scrollbar-track {
    background: transparent;
}
.cart-items-list::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: var(--radius-full);
}
.cart-items-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.cart-item {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.15s;
}
.cart-item:hover {
    border-color: var(--border-strong);
}

.cart-item-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
}
.cart-item-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.cart-item-sub {
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: 1px;
}
.cart-item-addons {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.25;
}
.cart-item-price {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
    padding-top: 4px;
    border-top: 1px solid var(--border-subtle);
}

.qty-control {
    display: inline-flex;
    align-items: center;
    background-color: var(--bg-main);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    overflow: hidden;
}
.btn-qty {
    background: none;
    border: none;
    color: var(--text-primary);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.72rem;
    transition: background 0.15s;
}
.btn-qty:hover {
    background-color: var(--accent-light);
    color: var(--accent);
}
.qty-num {
    min-width: 22px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
}

.btn-remove-item {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 4px;
    transition: color 0.15s;
}
.btn-remove-item:hover {
    color: var(--danger);
}

.btn-edit-item {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: all 0.15s ease;
}
.btn-edit-item:hover {
    background-color: var(--accent-light);
    color: var(--accent);
    border-color: var(--accent-border);
}

/* Empty Cart State */
.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 12px;
    color: var(--text-muted);
    text-align: center;
}
.cart-empty-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
    opacity: 0.4;
    color: var(--accent);
}

/* Cart Footer / Totals (Pinned at Bottom of Sidebar) */
.cart-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 12px 14px;
    border-top: 1px solid var(--border-subtle);
    background-color: var(--bg-surface);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-totals-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.cart-totals-row.grand-total {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    padding-top: 6px;
    border-top: 1px dashed var(--border-subtle);
}
.cart-totals-row.grand-total .amount {
    color: var(--accent);
}

.btn-add-more-items {
    background-color: var(--bg-surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}
.btn-add-more-items:hover {
    background-color: var(--accent-light);
    color: var(--accent);
    border-color: var(--accent);
}
.btn-add-more-items:active {
    transform: scale(0.99);
}

.btn-complete-order {
    background-color: var(--accent);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    min-height: 48px;
    padding: 12px 16px;
    font-size: 0.96rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35);
    transition: all 0.2s ease;
    width: 100%;
    letter-spacing: 0.3px;
}
.btn-complete-order:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 6px 18px rgba(255, 107, 0, 0.5);
    transform: translateY(-1px);
}
.btn-complete-order:active {
    transform: scale(0.99);
}
.btn-complete-order:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.order-editable-banner {
    background-color: rgba(255, 107, 0, 0.08);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.order-editable-banner strong {
    color: var(--text-primary);
}
.btn-banner-add-more {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--accent-border);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.btn-banner-add-more:hover {
    background-color: var(--accent-light);
    color: var(--accent);
    border-color: var(--accent);
}

/* ==========================================================
   MOBILE STICKY BOTTOM CART BAR & DRAWER
   ========================================================== */
.mobile-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-cart-height);
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}
@media (min-width: 700px) {
    .mobile-cart-bar { display: none; }
}

.mobile-cart-info {
    display: flex;
    flex-direction: column;
}
.mobile-cart-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.mobile-cart-total {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent);
}

.btn-mobile-view-cart {
    background-color: var(--accent);
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Mobile Offcanvas Drawer */
.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}
.mobile-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 80vh;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    z-index: 210;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-drawer.open {
    transform: translateY(0);
}
.mobile-drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================
   MODALS SYSTEM
   ========================================================== */
.mlb-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.mlb-modal.active {
    opacity: 1;
    visibility: visible;
}

.mlb-modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
}

.mlb-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.mlb-modal.active .mlb-modal-dialog {
    transform: scale(1);
}
.mlb-modal-dialog.modal-sm {
    max-width: 380px;
}
.mlb-modal-dialog.modal-receipt-dialog {
    max-width: 420px;
}

.mlb-modal-header {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
}
.btn-close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all 0.15s;
}
.btn-close-modal:hover {
    background-color: var(--bg-surface-elevated);
    color: var(--text-primary);
}

.mlb-modal-body {
    padding: 14px 16px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.mlb-modal-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--border-subtle);
    background-color: var(--bg-surface-elevated);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* Customization Modal Styling */
.modal-prod-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
}
.cust-group {
    margin-bottom: 14px;
}
.cust-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.required-badge {
    color: var(--danger);
    font-weight: 800;
}

.cust-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
    gap: 6px;
}

.cust-option-card {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}
.cust-option-card:hover {
    border-color: var(--accent-border);
}
.cust-option-card.selected {
    border-color: var(--accent);
    background-color: var(--accent-light);
    box-shadow: 0 0 0 1px var(--accent);
}
.cust-option-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
}
.cust-option-price {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 1px;
}

.cust-addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}
@media (max-width: 480px) {
    .cust-addons-grid {
        grid-template-columns: 1fr;
    }
}
.cust-addon-card {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    user-select: none;
    transition: all 0.15s ease;
}
.cust-addon-card:hover {
    border-color: var(--accent-border);
}
.cust-addon-card.selected {
    border-color: var(--accent);
    background-color: rgba(255, 107, 0, 0.12);
    box-shadow: 0 0 0 1px var(--accent);
}
.cust-addon-info {
    flex: 1;
    min-width: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.cust-addon-subtotal {
    font-size: 0.72rem;
    font-weight: 700;
    color: #FFA040;
    margin-top: 1px;
}
.cust-addon-stepper {
    display: inline-flex;
    align-items: center;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}
.btn-addon-step {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.btn-addon-step:hover:not(:disabled) {
    background-color: var(--accent);
    color: #FFFFFF;
}
.btn-addon-step:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.addon-qty-val {
    min-width: 22px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-muted);
}
.addon-qty-val.active {
    color: var(--accent);
}

.cust-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
}
.qty-control-lg {
    display: inline-flex;
    align-items: center;
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.btn-qty-lg {
    background: none;
    border: none;
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
}
.btn-qty-lg:hover {
    background-color: var(--accent-light);
    color: var(--accent);
}
.qty-val-lg {
    min-width: 40px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 800;
}

.cust-notes-row {
    margin-top: 14px;
}

/* Inputs & Buttons inside Modals */
.mlb-input {
    width: 100%;
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.mlb-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-light);
}

.modal-price-preview {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-right: auto;
}
.preview-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.preview-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent);
}

.btn-primary-action {
    background-color: var(--accent);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    min-height: 44px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}
.btn-primary-action:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.45);
    transform: translateY(-1px);
}
.btn-primary-action:active {
    transform: scale(0.98);
}

.btn-secondary-action {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    min-height: 44px;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-secondary-action:hover {
    color: var(--text-primary);
    background-color: var(--bg-surface-elevated);
    border-color: var(--border-strong);
}
.btn-secondary-action:active {
    transform: scale(0.98);
}

.btn-danger-action {
    background-color: var(--danger);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    min-height: 44px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}
.btn-danger-action:hover {
    background-color: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}
.btn-danger-action:active {
    transform: scale(0.98);
}

/* Universal Confirm Modal Styling */
.confirm-modal-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}
.confirm-modal-icon-badge.warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--warning);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.confirm-order-details-box {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    text-align: left;
    font-size: 0.85rem;
}
.confirm-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
}

/* ==========================================================
   CHECKOUT MODAL STYLING & TOUCH ERGONOMICS
   ========================================================== */
.mlb-modal-dialog.modal-checkout-dialog {
    max-width: 520px;
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}
@media (max-width: 600px) {
    .mlb-modal-dialog.modal-checkout-dialog {
        width: 95%;
        max-width: 480px;
    }
}

.checkout-summary-card {
    background: linear-gradient(180deg, var(--bg-surface-elevated) 0%, rgba(36, 36, 42, 0.6) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
}
.summary-divider {
    border: 0;
    height: 1px;
    background: var(--border-subtle);
    margin: 10px 0;
}

.cash-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.cash-currency {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
    pointer-events: none;
}
.cash-input {
    padding-left: 42px !important;
    height: 50px !important;
    font-size: 1.3rem !important;
    font-weight: 800;
    color: var(--accent) !important;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-strong) !important;
    background-color: var(--bg-input) !important;
    letter-spacing: 0.5px;
}
.cash-input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-light) !important;
}

/* Ergonomic 2-row x 3-col Quick Cash Keypad */
.quick-cash-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}
.btn-quick-cash {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    min-height: 46px;
    padding: 10px 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.btn-quick-cash:hover {
    border-color: var(--accent-border);
    background-color: var(--accent-light);
    color: var(--accent);
    transform: translateY(-1px);
}
.btn-quick-cash:active {
    transform: scale(0.96);
}
.btn-quick-cash.btn-exact {
    background: rgba(255, 107, 0, 0.12);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 800;
}
.btn-quick-cash.btn-exact:hover {
    background: var(--accent);
    color: #FFFFFF;
}

.change-display-card {
    background-color: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 14px 0;
}
.change-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--success);
}
.change-val {
    font-size: 1.45rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--success);
    letter-spacing: 0.5px;
}

/* Payment Methods Grid */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.payment-method-card {
    background-color: var(--bg-surface-elevated);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    min-height: 54px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.2s ease;
}
.payment-method-card i {
    font-size: 1.3rem;
}
.payment-method-card input {
    display: none;
}
.payment-method-card:hover {
    border-color: var(--border-strong);
    background-color: rgba(255, 255, 255, 0.05);
}
.payment-method-card.payment-cash.active {
    border-color: var(--accent);
    background-color: var(--accent-light);
    color: var(--accent);
    box-shadow: 0 0 16px rgba(255, 107, 0, 0.22);
}
.payment-method-card.payment-gcash.active {
    border-color: #0284c7;
    background-color: rgba(2, 132, 199, 0.16);
    color: #38bdf8;
    box-shadow: 0 0 16px rgba(2, 132, 199, 0.28);
}

/* Modal Checkout Footer Buttons — Spacious, Ergonomic Touch Targets */
.modal-checkout-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background-color: var(--bg-surface-elevated);
    border-top: 1px solid var(--border-subtle);
}
.btn-checkout-back {
    flex: 1;
    min-height: 48px;
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
.btn-checkout-back:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--text-secondary);
}
.btn-checkout-back:active {
    transform: scale(0.98);
}
.btn-checkout-confirm {
    flex: 1.4;
    min-height: 48px;
    background-color: var(--accent);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font-size: 0.98rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.38);
}
.btn-checkout-confirm:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
    transform: translateY(-1px);
}
.btn-checkout-confirm:active {
    transform: scale(0.98);
}
@media (max-width: 480px) {
    .modal-checkout-footer {
        flex-direction: column-reverse;
        gap: 10px;
    }
    .btn-checkout-back,
    .btn-checkout-confirm {
        width: 100%;
        flex: none;
    }
}

/* Payment Status Badges (History, Admin, Digital Receipt) */
.badge-payment-gcash {
    background: rgba(2, 132, 199, 0.16);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 4px rgba(2, 132, 199, 0.2);
}
.badge-payment-cash {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.4);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.2);
}

/* Digital Receipt */
.digital-receipt {
    background: #FFFFFF;
    color: #111111;
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}
.receipt-header {
    text-align: center;
}
.receipt-logo {
    height: 48px;
    margin-bottom: 8px;
}
.receipt-biz-name {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 2px;
}
.receipt-sub {
    font-size: 0.75rem;
    color: #555555;
}
.receipt-divider {
    border: none;
    border-top: 1px dashed #AAAAAA;
    margin: 10px 0;
}
.receipt-meta {
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.receipt-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0;
}
.rec-item-row {
    display: flex;
    justify-content: space-between;
}
.rec-addon-row {
    font-size: 0.75rem;
    color: #555;
    padding-left: 12px;
}
.receipt-totals {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.receipt-credit {
    font-size: 0.7rem;
    color: #777777;
    margin-top: 4px;
}

/* Quick Sold-Out Manager Revamp */
.soldout-controls-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.soldout-cat-select {
    max-width: 180px;
    flex-shrink: 0;
}
.soldout-tabs-bar {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
    overflow-x: auto;
}
.btn-soldout-tab {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.btn-soldout-tab:hover {
    background-color: var(--bg-surface-elevated);
    color: var(--text-primary);
}
.btn-soldout-tab.active {
    background-color: var(--accent);
    color: #FFFFFF !important;
    border-color: var(--accent);
}
.tab-count-pill {
    background: rgba(0, 0, 0, 0.3);
    color: inherit;
    font-size: 0.72rem;
    padding: 1px 7px;
    border-radius: var(--radius-full);
    font-weight: 800;
}
.btn-soldout-tab.active .tab-count-pill {
    background: #FFFFFF;
    color: var(--accent);
}
.tab-count-pill.badge-danger {
    background-color: rgba(239, 68, 68, 0.25);
    color: #EF4444;
}
.tab-count-pill.badge-success {
    background-color: rgba(16, 185, 129, 0.25);
    color: #10B981;
}
.btn-soldout-tab.active .tab-count-pill.badge-danger,
.btn-soldout-tab.active .tab-count-pill.badge-success {
    background: #FFFFFF;
    color: #000;
}

.sold-out-list {
    max-height: 48vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
    scrollbar-width: thin;
}
.soldout-item-card {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}
.soldout-item-card:hover {
    border-color: var(--border-strong);
}
.soldout-item-card.is-soldout {
    border-color: rgba(239, 68, 68, 0.35);
    background-color: rgba(239, 68, 68, 0.04);
}
.soldout-item-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background-color: var(--bg-main);
    flex-shrink: 0;
}
.soldout-item-details {
    flex: 1;
    min-width: 0;
}
.soldout-item-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.soldout-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
    font-size: 0.78rem;
}
.soldout-item-cat {
    background-color: var(--bg-main);
    color: var(--text-secondary);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
}
.soldout-item-price {
    color: var(--accent);
    font-weight: 700;
}
.soldout-item-action {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Modern iOS Toggle Switch */
.soldout-switch-wrap {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin: 0;
    cursor: pointer;
}
.soldout-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.soldout-slider {
    position: absolute;
    inset: 0;
    background-color: #3A3A44;
    border-radius: 24px;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.soldout-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #FFFFFF;
    border-radius: 50%;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.soldout-checkbox:checked + .soldout-slider {
    background-color: var(--success);
}
.soldout-checkbox:checked + .soldout-slider:before {
    transform: translateX(20px);
}
.soldout-status-pill {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    min-width: 78px;
    text-align: center;
}
.soldout-status-pill.avail {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.soldout-status-pill.sold {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Real-time Bump Animation */
@keyframes bump {
    0% { transform: scale(1); }
    40% { transform: scale(1.22); }
    100% { transform: scale(1); }
}
.bump {
    animation: bump 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Toast System */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mlb-toast {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toastSlideIn 0.25s ease forwards;
}
.mlb-toast.success { border-color: var(--success); }
.mlb-toast.error { border-color: var(--danger); }
@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

#pos-native-print-stage, #pos-thermal-print-frame {
    display: none;
}

/* PRINT MEDIA */
@media print {
    @page {
        size: 80mm auto;
        margin: 0 !important;
    }
    html, body {
        width: 80mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #FFFFFF !important;
        background-color: #FFFFFF !important;
        color: #000000 !important;
        overflow: visible !important;
    }
    body.pos-body > *:not(#pos-native-print-stage):not(#modalReceipt) {
        display: none !important;
    }
    #modalReceipt {
        position: static !important;
        display: block !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    #modalReceipt .mlb-modal-backdrop,
    #modalReceipt .mlb-modal-header,
    #modalReceipt .mlb-modal-footer {
        display: none !important;
    }
    #modalReceipt .mlb-modal-dialog,
    #modalReceipt .mlb-modal-body {
        position: static !important;
        display: block !important;
        background: #FFFFFF !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    #pos-native-print-stage, #receiptPrintArea {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        max-width: 80mm !important;
        padding: 6px 8px !important;
        margin: 0 auto !important;
        color: #000000 !important;
        background: #FFFFFF !important;
        font-family: 'JetBrains Mono', Courier, monospace !important;
    }
    #pos-native-print-stage *, #receiptPrintArea * {
        visibility: visible !important;
        color: #000000 !important;
    }
}

/* ==========================================================
   MOBILE & VIEWPORT RESPONSIVE UTILITIES (320px - 699px)
   ========================================================== */
@media (max-width: 699px) {
    .d-none-mobile {
        display: none !important;
    }
    .pos-container {
        padding-bottom: calc(var(--bottom-cart-height) + 12px);
    }
}

@media (max-width: 350px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .header-actions .btn-header span {
        display: none;
    }
    .brand-title {
        font-size: 1rem;
    }
}

/* ==========================================================
   ORDER HISTORY PAGE STYLING (EXECUTIVE POS THEME)
   ========================================================== */

.history-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 16px 20px 48px;
    width: 100%;
}

/* Glassmorphism Control Hub */
.history-controls-hub {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.history-hub-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.history-search-wrap {
    position: relative;
    flex: 1 1 300px;
    min-width: 240px;
}
.history-search-wrap .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}
.history-search-input {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 40px 10px 40px;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: inherit;
    transition: all 0.2s ease;
}
.history-search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.18);
    background-color: var(--bg-surface-elevated);
}
.history-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.85rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}
.history-search-clear:hover {
    color: var(--text-primary);
}

.history-hub-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Filter Clusters Row */
.history-hub-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.history-filter-cluster {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.history-cluster-label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 4px;
}

.history-pill-group {
    display: inline-flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 3px;
    flex-wrap: wrap;
}

.history-pill {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 13px;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.history-pill:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.06);
}
.history-pill.active {
    background-color: var(--accent);
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.4);
}
.history-pill.pill-cash.active {
    background-color: var(--success);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}
.history-pill.pill-gcash.active {
    background-color: #0284c7;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

.history-live-sync {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.history-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success);
    animation: historyPulseDot 2s infinite;
}
@keyframes historyPulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.85); }
}

/* Custom Date Selector Drawer */
.history-custom-drawer {
    margin-top: 14px;
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 107, 0, 0.25);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
    animation: historyDrawerFadeIn 0.2s ease-out;
}
@keyframes historyDrawerFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.history-date-picker-group {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}
.history-date-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 170px;
}
.history-date-item label {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}
.history-date-input {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 7px 12px;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}
.history-date-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.25);
}
.history-date-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.btn-filter-apply {
    background: var(--accent);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.35);
}
.btn-filter-apply:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.45);
}
.btn-filter-quick {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-filter-quick:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    border-color: var(--border-strong);
}
.btn-filter-cancel {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}
.btn-filter-cancel:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* Stat Cards Grid */
.history-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
@media (max-width: 1024px) {
    .history-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 540px) {
    .history-metrics-grid {
        grid-template-columns: 1fr;
    }
}

.history-metric-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    gap: 14px;
}
.history-metric-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.history-metric-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.history-metric-icon.icon-revenue {
    background: rgba(255, 107, 0, 0.14);
    color: var(--accent);
    border: 1px solid rgba(255, 107, 0, 0.3);
}
.history-metric-icon.icon-cash {
    background: rgba(16, 185, 129, 0.14);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.history-metric-icon.icon-gcash {
    background: rgba(2, 132, 199, 0.14);
    color: #38bdf8;
    border: 1px solid rgba(2, 132, 199, 0.3);
}
.history-metric-icon.icon-orders {
    background: rgba(168, 85, 247, 0.14);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}
.history-metric-data {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.history-metric-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}
.history-metric-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.history-metric-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* History Table Container */
.history-table-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.history-table-header-bar {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-surface-elevated);
}
.history-table-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.history-table-count-badge {
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--accent-border);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.history-data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.history-data-table th {
    padding: 12px 16px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg-surface-elevated);
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}
.history-data-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
    font-size: 0.88rem;
    transition: background-color 0.15s ease;
}
.history-data-table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.035);
}
.history-data-table tbody tr:last-child td {
    border-bottom: none;
}

.order-num-pill {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-input);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    font-size: 0.82rem;
    display: inline-block;
    letter-spacing: 0.02em;
}

.order-customer-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.order-customer-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.order-amount-display {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.btn-order-action {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 7px 14px;
    min-height: 34px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.btn-order-action:hover {
    background-color: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
    box-shadow: 0 3px 10px rgba(255, 107, 0, 0.4);
    transform: translateY(-1px);
}

/* Empty State Card */
.history-empty-box {
    padding: 50px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.history-empty-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.25);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 14px;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.15);
}
.history-empty-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.history-empty-msg {
    font-size: 0.86rem;
    color: var(--text-secondary);
    max-width: 440px;
    margin-bottom: 18px;
    line-height: 1.5;
}
.history-empty-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Mobile Orders List View (screens <= 800px) */
.history-mobile-list {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
}
@media (max-width: 800px) {
    .history-desktop-table {
        display: none !important;
    }
    .history-mobile-list {
        display: flex !important;
    }
}
.history-order-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.history-order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 8px;
}
.history-order-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
}
.history-order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
}

/* ========================================== */
/* CASHIER TACTILE TOUCH FEEDBACK & ANIMATIONS*/
/* ========================================== */
.product-card {
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.product-card:active {
    transform: scale(0.96) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 14px rgba(255, 107, 0, 0.35) !important;
}

.order-tab:active, .cat-btn:active, .btn-pos-qty:active {
    transform: scale(0.94) !important;
}

/* ========================================== */
/* THERMAL RECEIPT PRINTING ANIMATION         */
/* ========================================== */
.receipt-print-wrapper {
    position: relative;
    background: #0f172a;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
}

.receipt-feed-slot {
    height: 12px;
    background: linear-gradient(180deg, #090d16 0%, #1e293b 100%);
    border-bottom: 2px solid #334155;
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-slot-lip {
    width: 60%;
    height: 3px;
    background: #020617;
    border-radius: 3px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.8);
}

.receipt-scan-laser {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 5%, #ff6b00 30%, #ffbe76 50%, #ff6b00 70%, transparent 95%);
    box-shadow: 0 0 14px #ff6b00, 0 0 4px #fff;
    z-index: 10;
    pointer-events: none;
}

.receipt-print-wrapper.is-printing .receipt-scan-laser {
    display: block;
    animation: thermalLaserSweep 1.3s ease-in-out infinite;
}

@keyframes thermalLaserSweep {
    0% {
        top: 12px;
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        top: 96%;
        opacity: 0;
    }
}

.printing-indicator-banner {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff6b00, #ea580c);
    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 8px 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 3px 12px rgba(255, 107, 0, 0.4);
    position: relative;
    z-index: 6;
}

.receipt-print-wrapper.is-printing .printing-indicator-banner {
    display: flex;
    animation: pulsePrintBanner 0.8s ease-in-out infinite alternate;
}

@keyframes pulsePrintBanner {
    0% {
        opacity: 0.9;
        transform: scale(0.99);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.receipt-print-wrapper.is-printing #receiptPrintArea {
    animation: thermalFeedRoll 1.3s cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
}

@keyframes thermalFeedRoll {
    0% {
        transform: translateY(-35px);
        opacity: 0.75;
    }
    40% {
        transform: translateY(-15px);
        opacity: 0.9;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

