/* ========================================
   CHENNORA RUSH MODE - POS THEME (ULTRA PREMIUM)
   ======================================== */

:root {
    --pos-primary: #171422;
    /* Secondary Dark */
    --pos-secondary: #d6111e;
    /* Main Teal */
    --pos-accent-orange: #e66421;
    /* Biryani Orange */
    --pos-accent-gold: #cc9900;
    /* Tandoor Gold */
    --pos-accent-red: #d6111e;
    /* Main Teal */
    --pos-bg-main: #f8fafc;
    /* Ultra light gray */
    --pos-card-dark: #1a1d23;
    /* Dark Card Background */
    --pos-text-light: #ffffff;
    --pos-text-dark: #111827;
    --border-radius-xl: 24px;
    --border-radius-lg: 16px;
}

/* 1. Main POS Layout Swapping */
/* Standard Odoo: Leftpane = Cart, Rightpane = Products */
/* Goal: Food List on Left, Orders/Calculations on Right */
/* .pos .pos-content,
.pos .product-screen {
    display: flex !important;
    flex-direction: row-reverse !important; */
/* SWAP Panes */
/* height: calc(100vh - 85px) !important;
} */

.pos .leftpane {
    /* The Cart Section - Now on Right */
    width: 480px !important;
    border-left: 2px solid #f1f5f9 !important;
    border-right: none !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    flex: none !important;
    height: calc(100vh - 85px) !important;
    overflow: hidden !important;
    z-index: 100 !important;
}

.pos .order-container {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    min-height: 0 !important;
}

.product-screen {
    display: flex !important;
    flex-direction: row-reverse !important;
    height: calc(100vh - 85px) !important;
    overflow: hidden !important;
}

.pos .rightpane {
    /* The Product Grid Section - Now on Left */
    flex: 1 1 auto !important;
    background: #f8fafc !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.pos .product-list-container {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    background: #f8fafc !important;
}

/* 2. Header & Branding */
.pos .pos-topheader {
    background: #171422 !important;
    border-bottom: 2px solid #d6111e !important;
    color: #fff !important;
    height: 85px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 30px !important;
}

/* Logo from Odoo Settings */
.pos .pos-logo {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-right: 50px !important;
    width: auto !important;
}

.pos .pos-logo img,
.pos .pos-logo {
    content: url('/web/binary/company_logo') !important;
    height: 55px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* "Rush Mode" Label removed for production */

/* 3. Search Bar - Teal Theme */
.pos .search-bar {
    background: #e0f2f1 !important;
    border-radius: var(--border-radius-lg) !important;
    margin: 0 !important;
    width: 380px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 20px !important;
}

.pos .search-bar input {
    background: transparent !important;
    border: none !important;
    font-weight: 800 !important;
    color: #00695c !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
}

/* 4. Category Bar - Fix Truncation */
.pos .category-list {
    display: flex !important;
    gap: 12px !important;
    padding: 15px 30px !important;
    background: #ffffff !important;
    border-bottom: 2px solid #f1f5f9 !important;
}

.pos .category-button {
    border-radius: var(--border-radius-lg) !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    padding: 12px 30px !important;
    font-size: 14px !important;
    border: none !important;
    min-width: 140px !important;
    /* STOP MAI... truncation */
    white-space: nowrap !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.pos .category-button.active {
    background: #d6111e !important;
    color: #ffffff !important;
}

/* Dynamic Colors for specific indexes */
.pos .category-button:nth-child(2) {
    background: var(--pos-accent-orange) !important;
    color: white !important;
}

.pos .category-button:nth-child(3) {
    background: var(--pos-accent-gold) !important;
    color: white !important;
}

/* 5. Product Cards - Dark Premium */
.pos .product-list-container {
    background: #f8fafc !important;
}

.pos .product-list {
    display: flex !important;
    flex-wrap: wrap !important;
    padding: 25px !important;
    gap: 25px !important;
}

.pos .product {
    background: #171422 !important;
    border-radius: var(--border-radius-lg) !important;
    width: 210px !important;
    height: 230px !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(42, 106, 126, 0.05) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.pos .product:hover {
    transform: translateY(-8px) scale(1.02) !important;
}

.pos .product .product-img {
    width: 100% !important;
    height: 150px !important;
    object-fit: cover !important;
}

.product-img img {
    width: 100% !important;
    height: 100% !important;
    /* object-fit: cover !important; */
}

.pos .product .product-name {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 12px 15px 5px 15px !important;
    background: transparent !important;
}

.pos .product .price-tag {
    background: transparent !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    position: relative !important;
    bottom: 5px !important;
    left: 15px !important;
    top: auto !important;
    right: auto !important;
    padding: 0 !important;
}

/* 6. Order (Cart) Styling - Now on Right */
.pos .order-container {
    background: #ffffff !important;
    padding: 10px 0 !important;
}

.pos .orderline {
    border-radius: var(--border-radius-lg) !important;
    border: 2px solid #f1f5f9 !important;
    margin: 8px 20px !important;
    padding: 15px !important;
    background: white !important;
    transition: all 0.2s ease !important;
}

.pos .orderline.selected {
    border: 2px solid var(--pos-secondary) !important;
    background: #f0fdf4 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1) !important;
}

.pos .orderline .product-name {
    font-weight: 900 !important;
    font-size: 17px !important;
    color: #111827 !important;
}

/* 7. Summary & Pay Button */
.pos .order-summary {
    background: #ffffff !important;
    padding: 25px 30px !important;
    border-top: 2px dashed #e2e8f0 !important;
}

.pos .summary .total {
    color: var(--pos-secondary) !important;
    font-size: 40px !important;
    font-weight: 900 !important;
    letter-spacing: -1px;
}

.pos .action-pad .button.pay {
    background: var(--pos-secondary) !important;
    color: white !important;
    border-radius: var(--border-radius-lg) !important;
    margin: 20px !important;
    height: 75px !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 12px 25px rgba(214, 17, 30, 0.3) !important;
    border: none !important;
}

.pos .action-pad .button.pay::after {
    content: "\2794";
    margin-left: 15px;
    font-size: 30px;
}

/* 8. Numpad styling */
.pos .numpad {
    background: #f8fafc !important;
    padding: 20px !important;
}

.pos .numpad button {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    background: white !important;
    height: 55px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

/* 9. Receipt Screen & New Order Button - Ultra Aggressive Theme Match */
.pos .button.next,
.pos .button.validation,
.pos .receipt-screen .button.next,
.pos .receipt-screen .validation.button,
.pos .receipt-screen .button {
    background: #d61112 !important;
    color: white !important;
    border-radius: var(--border-radius-lg) !important;
    height: 70px !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 10px 20px rgba(214, 17, 18, 0.2) !important;
    border: none !important;
}

.pos .receipt-screen .button.next:active {
    transform: scale(0.98);
}

/* 10. Premium Bill UI (Right Side) */
.pos-receipt {
    font-family: 'Inter', sans-serif !important;
    color: #1a1d23 !important;
    padding: 30px !important;
    background: #fff !important;
}

.pos-receipt .pos-receipt-contact {
    font-size: 13px !important;
    color: #64748b !important;
    margin-bottom: 20px !important;
}

.pos-receipt .pos-receipt-center-align {
    text-align: center !important;
    font-weight: 700 !important;
}

.pos-receipt .pos-receipt-order-data {
    color: #94a3b8 !important;
    font-size: 12px !important;
    margin-top: 10px !important;
}

.pos-receipt .receipt-orderlines {
    border-top: 2px solid #f1f5f9 !important;
    padding-top: 15px !important;
}

.pos-receipt .orderline {
    border: none !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    border-bottom: 1px dashed #e2e8f0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: baseline !important;
}

.pos-receipt .orderline .product-name {
    flex: 1 1 65% !important;
    font-weight: 700 !important;
    white-space: normal !important;
    word-break: break-word !important;
    padding-right: 5px !important;
}

.pos-receipt .orderline .pos-receipt-right-align {
    flex: 0 0 auto !important;
    text-align: right !important;
    font-weight: 800 !important;
}

.pos-receipt .pos-receipt-total {
    font-size: 24px !important;
    font-weight: 900 !important;
    color: var(--pos-secondary) !important;
    border-top: 2px solid #1a1d23 !important;
    padding-top: 15px !important;
}

.pos-receipt-amount {
    font-weight: 800 !important;
}

/* ========================================
   RESPONSIVE MEDIA QUERIES
   ======================================== */
@media (max-width: 1024px) {
    .pos .leftpane {
        width: 380px !important;
    }
    .pos .product {
        width: 160px !important;
        height: 180px !important;
    }
    .pos .product .product-img {
        height: 110px !important;
    }
    .pos .search-bar {
        width: 280px !important;
    }
}

@media (max-width: 768px) {
    .product-screen {
        flex-direction: column !important;
        height: 100vh !important;
    }
    .pos .leftpane {
        width: 100% !important;
        height: 50vh !important;
        border-left: none !important;
        border-top: 2px solid #f1f5f9 !important;
    }
    .pos .rightpane {
        height: 50vh !important;
    }
    .pos .pos-topheader {
        height: auto !important;
        flex-wrap: wrap !important;
        padding: 10px !important;
    }
    .pos .search-bar {
        width: 100% !important;
        margin-top: 10px !important;
    }
}