/* 
 * Store Billing & POS System - Red Crimson Theme & Segmented Nav Capsule
 * Independent Right Side Cart Scrollbar (Right Side Matum Thani Scroll)
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* Completely Hide Vertical Scrollbars Globally across ALL elements (Zero Scrollbar UI visible) */
*, html, body, div, .table-responsive, #billingCardBody, #cartItemsList {
    scrollbar-width: none !important;    /* Firefox */
    -ms-overflow-style: none !important; /* IE & Edge */
}

*::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar,
div::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
#billingCardBody::-webkit-scrollbar,
#cartItemsList::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

/* Right Side Billing Panel Card Body (#billingCardBody) - Smooth Hidden Vertical Scroll */
#billingCardBody {
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
}

/* Ensure cart items list flows naturally without internal scroll */
#cartItemsList {
    height: auto !important;
    overflow: visible !important;
    overflow-y: visible !important;
}

:root {
    --primary-indigo: #4f46e5;
    --primary-indigo-hover: #4338ca;
    --primary-indigo-light: #eef2ff;
    
    --theme-red: #e11d48;
    --theme-red-hover: #be123c;
    --theme-red-light: #ffe4e6;
    
    --accent-emerald: #10b981;
    --accent-emerald-dark: #059669;
    --accent-rose: #e11d48;
    --accent-blue: #2563eb;
    
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --border-light: #e2e8f0;
    --text-dark: #0f172a;
    --text-body: #1e293b;
    --text-muted: #64748b;

    /* Standardized Typography Scale */
    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-size-xs: 0.8rem;    /* 12.8px */
    --font-size-sm: 0.875rem;  /* 14px */
    --font-size-base: 0.95rem; /* 15.2px */
    --font-size-md: 1.05rem;   /* 16.8px */
    --font-size-lg: 1.3rem;    /* 20.8px */
    --font-size-xl: 1.6rem;    /* 25.6px */
    --font-size-xxl: 2.0rem;   /* 32px */

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* Desktop & Tablet Direct Admin Header Pill Buttons */
.btn-nav-admin-login {
    background-color: #e11d48 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    padding: 0.5rem 1.25rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.28) !important;
    transition: all 0.15s ease !important;
}

.btn-nav-admin-login:hover {
    background-color: #be123c !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.38) !important;
}

.btn-nav-admin-portal {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    padding: 0.5rem 1.25rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2) !important;
    transition: all 0.15s ease !important;
}

.btn-nav-admin-portal:hover {
    background-color: #1e293b !important;
    color: #ffffff !important;
}

/* Standard Normal Red Auth Logout Button */
.btn-nav-logout,
.btn-nav-logout:link,
.btn-nav-logout:visited,
.btn-nav-logout:focus,
.btn-nav-logout:active {
    background-color: #dc3545 !important;
    background: #dc3545 !important;
    border: 1px solid #dc3545 !important;
    border-radius: 50px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    padding: 0.45rem 1.25rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    transition: background-color 0.15s ease, border-color 0.15s ease !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.btn-nav-logout:hover {
    background-color: #bb2d3b !important;
    background: #bb2d3b !important;
    border-color: #b02a37 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
}

.btn-nav-logout *,
.btn-nav-logout i,
.btn-nav-logout span {
    color: #ffffff !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

@media (min-width: 768px) {
    .nav-auth-actions {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }
}

@media (max-width: 767.98px) {
    .nav-auth-actions {
        display: none !important;
    }
}

.user-nav-badge {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 50px !important;
    padding: 0.35rem 0.85rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    color: #0f172a !important;
}

.user-nav-badge .role-pill-admin {
    background: linear-gradient(135deg, #e11d48, #be123c) !important;
    color: #ffffff !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    padding: 0.2rem 0.55rem !important;
    border-radius: 50px !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.user-nav-badge .role-pill-user {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    padding: 0.2rem 0.55rem !important;
    border-radius: 50px !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Sleek Clean Black Header Menu Icon Toggle Button (Zero Effect Always) */
.btn-pos-icon-menu,
.btn-pos-icon-menu:hover,
.btn-pos-icon-menu:focus,
.btn-pos-icon-menu:active,
.btn-pos-icon-menu:focus-visible,
.btn-pos-icon-menu.show,
.btn-pos-icon-menu:visited {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    outline: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
}

.btn-pos-icon-menu i,
.btn-pos-icon-menu:hover i,
.btn-pos-icon-menu:focus i,
.btn-pos-icon-menu:active i,
.btn-pos-icon-menu.show i {
    font-size: 1.75rem !important;
    margin: 0 !important;
    line-height: 1 !important;
    color: #0f172a !important; /* Pure Black Icon Always */
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
}

/* POS Header Dropdown Menu Styling (Generous Wide Card) */
.pos-header-dropdown-menu {
    right: 0 !important;
    left: auto !important;
    width: 270px !important;
    min-width: 250px !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.22), 0 4px 12px -2px rgba(15, 23, 42, 0.08) !important;
    z-index: 1060 !important;
    margin-top: 8px !important;
    background: #ffffff !important;
    padding: 12px !important;
    border-radius: 18px !important;
}

/* Full Width Solid Red Button Stretching Edge-to-Edge */
.btn-dropdown-admin-login {
    width: 100% !important;
    background-color: #e11d48 !important; /* Solid Crimson Red */
    color: #ffffff !important;           /* Pure White Text */
    border: none !important;
    border-radius: 50px !important;      /* Full Pill Shape */
    padding: 0.72rem 1.25rem !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.15s ease !important;
}

.btn-dropdown-admin-login:hover,
.btn-dropdown-admin-login:focus,
.btn-dropdown-admin-login:active {
    background-color: #be123c !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.4) !important;
}

.btn-dropdown-admin-login i {
    font-size: 1.15rem !important;
    margin-right: 8px !important;
    color: #ffffff !important;
}

@media (max-width: 767.98px) {
    nav.navbar-pos,
    nav.navbar-pos .container-fluid {
        position: relative !important;
    }

    .pos-header-dropdown-menu,
    .dropdown-menu.pos-header-dropdown-menu,
    .dropdown-menu.show.pos-header-dropdown-menu,
    ul.dropdown-menu.pos-header-dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        right: 12px !important;
        left: auto !important;
        transform: none !important;
        width: calc(100vw - 24px) !important;
        max-width: 320px !important;
        min-width: 250px !important;
        margin-top: 18px !important;
        padding: 12px 14px !important;
        border-radius: 16px !important;
        border: 1px solid #cbd5e1 !important;
        box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.22) !important;
        background: #ffffff !important;
        z-index: 9999 !important;
    }
}

/* Mobile Bottom Navigation Bar Styles (< 768px) */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 767.98px) {
    body.pos-app-body {
        padding-bottom: 66px !important;
        overflow-y: auto !important;
        height: auto !important;
    }

    .pos-app-main {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
        padding-bottom: 0 !important;
    }

    .navbar-pos {
        height: auto !important;
        min-height: 56px !important;
        padding: 0.4rem 0.5rem !important;
    }

    .navbar-brand-star {
        font-size: 1.15rem !important;
    }

    .table-responsive {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        width: 100% !important;
        padding-bottom: 0px !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .table-responsive::-webkit-scrollbar {
        display: none !important;
        height: 0 !important;
        width: 0 !important;
    }

    .pos-table, .admin-table {
        min-width: 100% !important;
        width: 100% !important;
        table-layout: fixed !important;
    }

    .pos-table td, .admin-table td, .table td {
        padding: 0.3rem 0.1rem !important;
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
    }

    .pos-table th, .admin-table th, .table th {
        padding: 0.35rem 0.1rem !important;
        font-size: 0.62rem !important;
        white-space: nowrap !important;
        letter-spacing: -0.2px !important;
    }

    .btn-add-cart {
        width: 65px !important;
        height: 32px !important;
        min-width: 65px !important;
        max-width: 65px !important;
        padding: 0 !important;
        border-radius: 6px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }

    .btn-add-cart i {
        font-size: 1.1rem !important;
        margin: 0 !important;
        line-height: 1 !important;
    }

    .btn-add-cart .btn-text {
        display: none !important;
    }

    .billing-panel-card {
        height: auto !important;
        max-height: none !important;
        margin-top: 6px !important;
        margin-bottom: 0 !important;
    }

    #cartItemsList {
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 64px !important;
        background-color: #ffffff !important;
        border-top: 1px solid #e2e8f0 !important;
        box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08) !important;
        z-index: 9990 !important;
        padding: 0 16px !important;
        align-items: center !important;
        justify-content: space-around !important;
    }

    .mobile-nav-btn {
        flex: 1;
        background: transparent !important;
        border: none !important;
        color: #64748b !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 6px 0 !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        transition: all 0.15s ease !important;
        cursor: pointer !important;
        text-decoration: none !important;
    }

    .mobile-nav-btn i {
        font-size: 1.35rem !important;
        margin-right: 0 !important;
        margin-bottom: 2px !important;
        color: #64748b !important;
        transition: color 0.15s ease !important;
    }

    .mobile-nav-btn.active,
    .mobile-nav-btn:hover {
        color: #e11d48 !important;
    }

    .mobile-nav-btn.active i,
    .mobile-nav-btn:hover i {
        color: #e11d48 !important;
    }

    .mobile-cart-count-badge {
        position: absolute;
        top: -4px;
        right: -10px;
        background-color: #e11d48;
        color: #ffffff;
        font-size: 0.68rem;
        font-weight: 800;
        border-radius: 50px;
        padding: 1px 5px;
        min-width: 16px;
        height: 16px;
        line-height: 14px;
        text-align: center;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 16px 16px 20px 16px !important;
        background: #ffffff !important;
        border-radius: 16px !important;
        margin-top: 10px !important;
        margin-bottom: 12px !important;
        box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.14), 0 4px 12px -2px rgba(15, 23, 42, 0.05) !important;
        border: 1px solid #e2e8f0 !important;
        box-sizing: border-box !important;
    }
    
    .nav-segment-container {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 6px !important;
        margin: 0 0 12px 0 !important;
        background: #f8fafc !important;
        border-radius: 14px !important;
        padding: 6px !important;
        border: 1px solid #f1f5f9 !important;
    }

    .nav-segment-item {
        width: 100% !important;
        flex: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        padding: 0.65rem 1rem !important;
        border-radius: 10px !important;
        white-space: nowrap !important;
        color: #334155 !important;
    }

    .nav-segment-item i {
        margin-right: 12px !important;
        font-size: 1.05rem !important;
        color: #e11d48 !important;
    }

    .nav-segment-item.active {
        background-color: #e11d48 !important;
        color: #ffffff !important;
    }

    .nav-segment-item.active i {
        color: #ffffff !important;
    }
    
    .admin-header-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 12px !important;
        padding-bottom: 0 !important;
        border-top: 1px dashed #cbd5e1 !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 8px !important;
        box-sizing: border-box !important;
    }

    .btn-admin-nav-item,
    .badge-admin-user,
    .btn-admin-nav-logout {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.6rem 1rem !important;
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        border-radius: 50px !important;
        box-sizing: border-box !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .btn-admin-nav-item {
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        color: #0f172a !important;
    }

    .badge-admin-user {
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        color: #0f172a !important;
    }

    .btn-admin-nav-logout {
        background-color: #e11d48 !important;
        border: none !important;
        color: #ffffff !important;
    }
}

/* Admin Mobile Responsive Layout Rules (< 768px) */
@media (max-width: 767.98px) {
    .admin-catalog-bar-controls {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-top: 10px !important;
    }

    .admin-catalog-bar-controls .custom-pill-search-container,
    .admin-catalog-bar-controls .admin-cat-dropdown-wrapper,
    .admin-catalog-bar-controls #addProductBtn {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .mockup-stat-card {
        padding: 0.9rem 1.1rem !important;
    }

    .mockup-stat-icon {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.15rem !important;
        margin-right: 12px !important;
    }

    .mockup-stat-card h3 {
        font-size: 1.35rem !important;
    }

    #chartFilterGroup {
        width: 100% !important;
        display: flex !important;
        margin-top: 8px !important;
    }

    #chartFilterGroup .btn {
        flex: 1 !important;
        padding: 0.4rem 0.5rem !important;
        font-size: 0.78rem !important;
    }

    .admin-table .btn-sm {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.78rem !important;
    }

    .modal-dialog {
        margin: 0.5rem !important;
    }

    .modal-dialog.modal-lg {
        max-width: none !important;
    }
}

/* Complete Removal of Surrounding Border Line & Focus Outline around Mobile Navbar Hamburger Toggler */
button.navbar-toggler,
.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler:hover,
.navbar-toggler:focus-visible {
    border: none !important;
    border-width: 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0.25rem 0.5rem !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* Specific Column Text Color Classes & Spacing - FAIL-PROOF ZERO OVERLAP */
.cell-slno { color: #e11d48 !important; font-weight: 700 !important; font-family: monospace; white-space: nowrap !important; text-align: center !important; }
.cell-itemname { color: #0f172a !important; font-weight: 700 !important; }
.cell-unit { color: #475569 !important; font-weight: 600 !important; white-space: nowrap !important; text-align: center !important; }

/* MRP Cell: clean font size, generous right padding, zero bleed */
.cell-mrp {
    color: #94a3b8 !important;
    white-space: nowrap !important;
    text-align: right !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    padding-right: 10px !important;
    padding-left: 4px !important;
    font-variant-numeric: tabular-nums;
    box-sizing: border-box !important;
}

/* Net Rate Cell: bold emerald green, clear separation, zero bleed */
.cell-netrate {
    color: #059669 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    text-align: right !important;
    font-size: 0.88rem !important;
    padding-right: 8px !important;
    padding-left: 6px !important;
    font-variant-numeric: tabular-nums;
    box-sizing: border-box !important;
}

/* Responsive Table Column Sizing Classes - Safe 17% + 17% for MRP & Net Rate */
.col-slno-th { width: 6%; min-width: 32px !important; white-space: nowrap !important; text-align: center !important; }
.col-items-th { width: 38%; min-width: 120px !important; }
.col-unit-th { width: 9%; min-width: 40px !important; white-space: nowrap !important; text-align: center !important; }
.col-mrp-th { width: 17%; min-width: 82px !important; white-space: nowrap !important; text-align: right !important; padding-right: 10px !important; }
.col-netrate-th { width: 17%; min-width: 85px !important; white-space: nowrap !important; text-align: right !important; padding-right: 8px !important; }
.col-action-th { width: 13%; min-width: 52px !important; white-space: nowrap !important; text-align: center !important; }

@media (max-width: 767.98px) {
    .pos-app-main {
        padding-left: 8px !important;
        padding-right: 8px !important;
        padding-bottom: 0 !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .pos-app-main .row {
        height: auto !important;
        margin-bottom: 0 !important;
    }

    .pos-products-panel,
    .pos-cart-panel {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .pos-table-card {
        border: none !important;
        background: transparent !important;
        border-radius: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .table-responsive {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding: 2px !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Hide heavy traditional table header on mobile view */
    .pos-table thead {
        display: none !important;
    }

    .pos-table, .pos-table tbody, .pos-table tr {
        display: block !important;
        width: 100% !important;
        border: none !important;
        background: transparent !important;
    }

    /* Modern Spacious Card Container for each catalog item */
    .pos-table tbody tr:not(.table-category-header) {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 12px !important;
        margin-bottom: 8px !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        background-color: #ffffff !important;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04) !important;
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        transition: border-color 0.15s ease !important;
    }

    .pos-table tbody tr:not(.table-category-header):active,
    .pos-table tbody tr:not(.table-category-header).in-cart-row {
        border-color: #cbd5e1 !important;
        background-color: #ffffff !important;
    }

    /* Compact Small Category Title Banner on Mobile (Icon + Title) */
    .pos-table tr.table-category-header {
        display: block !important;
        margin-top: 6px !important;
        margin-bottom: 6px !important;
        border-radius: 6px !important;
        overflow: hidden !important;
        border: none !important;
        pointer-events: none !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -webkit-tap-highlight-color: transparent !important;
        cursor: default !important;
    }

    .pos-table tr.table-category-header td {
        display: block !important;
        width: 100% !important;
        padding: 5px 10px !important;
        font-size: 0.76rem !important;
        font-weight: 800 !important;
        border: none !important;
        text-transform: uppercase !important;
        letter-spacing: 0.4px !important;
        pointer-events: none !important;
        cursor: default !important;
        background-color: #2563eb !important;
        color: #ffffff !important;
    }

    .pos-table tr.table-category-header td div {
        display: inline-flex !important;
        align-items: center !important;
        font-size: 0.76rem !important;
        font-weight: 800 !important;
        color: #ffffff !important;
    }

    .pos-table tr.table-category-header td i {
        font-size: 0.82rem !important;
        margin-right: 6px !important;
        color: #ffffff !important;
        display: inline-block !important;
    }

    /* Serial Number Badge */
    .pos-table td.cell-slno {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.72rem !important;
        font-weight: 800 !important;
        color: #e11d48 !important;
        background-color: #ffe4e6 !important;
        border-radius: 6px !important;
        padding: 3px 6px !important;
        min-width: 24px !important;
        height: 24px !important;
        flex-shrink: 0 !important;
        border: none !important;
        align-self: center !important;
    }

    /* Item Name Title & Unit Line */
    .pos-table td.cell-itemname {
        flex: 1 1 auto !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        border: none !important;
        white-space: normal !important;
        word-break: break-word !important;
        align-self: center !important;
    }

    .product-title-text {
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        line-height: 1.25 !important;
    }

    .product-unit-text {
        font-size: 0.72rem !important;
        color: #64748b !important;
        font-weight: 600 !important;
    }

    /* Hide standard desktop unit, mrp, netrate td on mobile (using price-stack instead) */
    .pos-table td.cell-unit {
        display: none !important;
    }

    /* Price Stack Container (MRP Strikethrough + Bold Green Net Rate) */
    .pos-table td.cell-price-stack {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        justify-content: center !important;
        gap: 3px !important;
        padding: 0 !important;
        margin-left: auto !important;
        margin-right: 6px !important;
        border: none !important;
        flex-shrink: 0 !important;
        align-self: center !important;
        min-width: 70px !important;
    }

    .pos-table td.cell-price-stack .cell-mrp {
        display: block !important;
        font-size: 0.74rem !important;
        color: #94a3b8 !important;
        text-decoration: line-through !important;
        padding: 0 !important;
        text-align: right !important;
        line-height: 1.15 !important;
        border: none !important;
        white-space: nowrap !important;
    }

    .pos-table td.cell-price-stack .cell-netrate {
        display: block !important;
        font-size: 0.92rem !important;
        font-weight: 800 !important;
        color: #059669 !important;
        padding: 0 !important;
        text-align: right !important;
        line-height: 1.15 !important;
        border: none !important;
        white-space: nowrap !important;
    }

    /* Touch-Friendly Add to Cart Button */
    .pos-table td.cell-action {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        border: none !important;
        align-self: center !important;
        margin: 0 !important;
        width: auto !important;
    }

    .pos-table td.cell-action .btn-add-cart,
    .btn-add-cart {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        background-color: #2563eb !important;
        color: #ffffff !important;
        box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    .btn-add-cart:hover, .btn-add-cart:active {
        background-color: #1d4ed8 !important;
    }

    .pos-table td.cell-action .btn-add-cart.added,
    .btn-add-cart.added {
        background-color: #10b981 !important;
        box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35) !important;
        color: #ffffff !important;
    }

    .pos-table td.cell-action .btn-add-cart.added:hover,
    .pos-table td.cell-action .btn-add-cart.added:active,
    .btn-add-cart.added:hover,
    .btn-add-cart.added:active {
        background-color: #059669 !important;
    }

    .pos-table td.cell-action .btn-add-cart i,
    .btn-add-cart i {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        font-size: 1.15rem !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: 0 !important;
        text-align: center !important;
    }

    .pos-table td.cell-action .btn-add-cart i::before,
    .btn-add-cart i::before {
        display: inline-block !important;
        line-height: 1 !important;
        vertical-align: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .pos-table td.cell-action .btn-add-cart .btn-text,
    .btn-add-cart .btn-text {
        display: none !important;
    }

    #displayShopName {
        font-size: 0.95rem !important;
    }

    .pos-products-panel.mobile-tab-hidden,
    .pos-cart-panel.mobile-tab-hidden {
        display: none !important;
    }

    .pos-products-panel.mobile-tab-active,
    .pos-cart-panel.mobile-tab-active {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
}

.text-rose { color: var(--accent-rose) !important; }
.text-indigo { color: var(--primary-indigo) !important; }
.text-emerald { color: var(--accent-emerald-dark) !important; }
.text-blue { color: var(--accent-blue) !important; }
.text-red { color: var(--theme-red) !important; }

/* Sleek Admin Header Pill Capsule Buttons with Proper Gap Spacing & Explicit Left Margin Gap */
.admin-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;            /* 10px Gap between Settings, User, Logout */
    flex-shrink: 0 !important;
}

@media (min-width: 992px) {
    .admin-header-actions {
        margin-left: 16px !important;
    }
}

.btn-admin-nav-item {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 50px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    padding: 0.45rem 1.15rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important; /* Single line - NO wrapping! */
    text-decoration: none !important;
    box-shadow: none !important;
    transition: all 0.15s ease !important;
}

.btn-admin-nav-item:hover {
    background-color: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #e11d48 !important;
}

.btn-admin-nav-item i {
    margin-right: 8px !important;
    font-size: 0.95rem !important;
    color: #e11d48 !important;
}

.badge-admin-user {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 50px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    padding: 0.45rem 1.15rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important; /* Single line - NO wrapping! */
}

.badge-admin-user i {
    margin-right: 8px !important;
    font-size: 0.95rem !important;
    color: #e11d48 !important;
}

.btn-admin-nav-logout,
.btn-admin-nav-logout:link,
.btn-admin-nav-logout:visited,
.btn-admin-nav-logout:hover,
.btn-admin-nav-logout:focus,
.btn-admin-nav-logout:active {
    background-color: #dc3545 !important;
    background: #dc3545 !important;
    color: #ffffff !important;
    border: 1px solid #dc3545 !important;
    border-radius: 50px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    padding: 0.45rem 1.25rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important; /* Single line - NO wrapping! */
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    transition: background-color 0.15s ease, border-color 0.15s ease !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.btn-admin-nav-logout:hover {
    background-color: #bb2d3b !important;
    background: #bb2d3b !important;
    border-color: #b02a37 !important;
    color: #ffffff !important;
}

.btn-admin-nav-logout *,
.btn-admin-nav-logout i,
.btn-admin-nav-logout span {
    margin-right: 8px !important;
    font-size: 0.95rem !important;
    color: #ffffff !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* PURE CRISP WHITE BACKGROUND SYSTEM FOR ALL INPUT FIELDS & DROPDOWNS ACROSS ENTIRE PROJECT */
.form-control,
.form-select,
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea,
select,
.custom-pill-search-input,
.custom-select-trigger,
.bg-light.form-control,
.bg-light.form-select,
.form-control.bg-light,
.form-select.bg-light,
input.bg-light,
select.bg-light {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

/* Input Focus States with Crisp Red Border & Pure White Background */
.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus,
.custom-pill-search-input:focus {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border-color: #e11d48 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Custom Pill Search Input Component matching User Screenshot Mockup */
.custom-pill-search-container {
    position: relative;
    width: 100%;
}

.custom-pill-search-input {
    width: 100%;
    height: 48px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 50px !important;
    padding-left: 22px !important;
    padding-right: 54px !important; /* Space for right circular button */
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    box-shadow: none !important; /* ZERO SHADOW EFFECT */
    transition: border-color 0.15s ease !important;
}

.custom-pill-search-input::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

/* Far Right Circular Solid Red Search Button - ZERO Shadow / Glow Effect */
.custom-pill-search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 38px;
    height: 38px;
    border-radius: 50% !important;
    background-color: #e11d48 !important;
    color: #ffffff !important;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: none !important; /* ZERO SHADOW EFFECT */
    pointer-events: none;
}

.custom-pill-search-btn i {
    margin-right: 0 !important;
    color: #ffffff !important;
}

/* Custom Searchable Dropdown UI Container */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-trigger {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 10px !important;
    padding: 0.65rem 1.25rem !important; /* Inner trigger padding gap */
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: pointer !important;
    box-shadow: none !important; /* ZERO SHADOW EFFECT */
    transition: border-color 0.15s ease !important;
    height: 46px !important;
}

.custom-select-trigger:hover {
    border-color: #9ca3af !important;
    box-shadow: none !important;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: #2563eb !important;
    box-shadow: none !important;
}

.custom-select-trigger .trigger-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px !important;
    font-weight: 600;
    color: #374151;
}

.custom-select-trigger .arrow-icon {
    font-size: 0.85rem;
    color: #6b7280;
    transition: transform 0.2s ease;
    margin-right: 0 !important;
    flex-shrink: 0;
}

.custom-select-wrapper.open .arrow-icon {
    transform: rotate(180deg);
}

/* Floating Searchable Menu Card matching Screenshot */
.custom-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
    z-index: 9999 !important;
    padding: 8px 4px !important;
    max-height: 320px;
    display: none;
}

.custom-select-wrapper.open .custom-select-menu {
    display: block !important;
    animation: fadeInDropdown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Top Search Bar Inside Dropdown Menu */
.custom-select-search-wrapper {
    position: relative;
    padding: 4px 8px 10px 8px !important;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 6px !important;
}

.custom-select-search-wrapper .search-icon {
    position: absolute;
    left: 18px;
    top: 15px;
    font-size: 0.85rem;
    color: #9ca3af;
    margin-right: 0 !important;
}

.custom-select-search-input {
    width: 100%;
    padding: 7px 12px 7px 34px !important;
    font-size: 0.88rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    outline: none;
    color: #374151;
    background: #ffffff;
    transition: border-color 0.15s ease;
}

.custom-select-search-input::placeholder {
    color: #9ca3af;
}

.custom-select-search-input:focus {
    border-color: #2563eb;
    box-shadow: none !important;
}

.custom-select-options-list {
    max-height: 220px;
    overflow-y: auto;
    padding: 4px 6px !important;
}

/* Options Item Row with Clear Inset Margin Gaps matching Paris in screenshot */
.custom-select-option {
    padding: 8px 14px !important;
    margin: 4px 6px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    transition: background-color 0.12s ease, color 0.12s ease !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Active Hover & Selected Option: Solid Blue Pill + White Text */
.custom-select-option:hover,
.custom-select-option.selected {
    background-color: #2563eb !important; /* Solid Blue Color (#2563eb) matching Dropdown Hover */
    color: #ffffff !important;            /* Pure White Text */
    font-weight: 600 !important;
}

/* Full Screen Viewport Layout for POS Page */
@media (min-width: 768px) {
    html.pos-app-body, body.pos-app-body {
        height: 100vh !important;
        max-height: 100vh !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .pos-app-main {
        height: calc(100vh - 76px) !important;
        max-height: calc(100vh - 76px) !important;
        overflow: hidden !important;
        box-sizing: border-box;
    }
}

body {
    font-family: var(--font-heading);
    background-color: #f8fafc;
    color: var(--text-body);
    font-size: var(--font-size-base);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

/* Typography Uniformity */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-xs { font-size: var(--font-size-xs) !important; }
.text-sm { font-size: var(--font-size-sm) !important; }
.text-base { font-size: var(--font-size-base) !important; }
.text-md { font-size: var(--font-size-md) !important; }

/* Navigation Bar */
.navbar-pos {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--border-light);
    box-shadow: none !important; /* ZERO SHADOW EFFECT */
    padding: 0.6rem 1.25rem;
    height: 76px !important;
    flex-shrink: 0;
}

.navbar-brand-star {
    font-size: 1.5rem;
    color: var(--theme-red);
    font-weight: 800;
    line-height: 1;
    margin-right: 10px;
}

/* Sleek Navbar Top-Right Action Pill Buttons */
.btn-nav-admin-portal {
    background-color: #e11d48 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    padding: 0.45rem 1.25rem !important;
    display: inline-flex !important;
    align-items: center !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease !important;
    text-decoration: none !important;
}

.btn-nav-admin-portal:hover {
    background-color: #be123c !important;
    color: #ffffff !important;
}

.btn-nav-admin-portal i {
    margin-right: 8px !important;
    font-size: 0.95rem !important;
    color: #ffffff !important;
}


.btn-nav-admin-login {
    background-color: #e11d48 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    padding: 0.45rem 1.25rem !important;
    display: inline-flex !important;
    align-items: center !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease !important;
    text-decoration: none !important;
}

.btn-nav-admin-login:hover {
    background-color: #be123c !important;
    color: #ffffff !important;
}

.btn-nav-admin-login i {
    margin-right: 8px !important;
    font-size: 0.95rem !important;
    color: #ffffff !important;
}

/* Floating Segmented Pill Menu Container */
.nav-segment-container {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 4px 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.nav-segment-item {
    color: #475569;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.45rem 1.15rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
}

/* Universal Mandatory Icon Right Side Spacing Gap (10px - 12px) */
.nav-segment-item i, 
.btn i, 
.table i, 
.card-header i, 
.input-group-text i {
    margin-right: 10px !important;
    display: inline-block !important;
}

.nav-segment-item i {
    margin-right: 12px !important;
}

.nav-segment-item:hover {
    color: var(--theme-red);
    background-color: #e2e8f0;
}

/* Active Nav Segment Pill Item - ZERO Drop Shadow */
.nav-segment-item.active {
    color: #ffffff !important;
    background-color: var(--theme-red) !important;
    font-weight: 700;
    box-shadow: none !important; /* ZERO SHADOW EFFECT */
}

/* Standardized Input Fields & Dropdowns */
.form-control, .form-select {
    font-size: var(--font-size-base) !important;
    font-weight: 500 !important;
    height: 44px !important;
    border-color: var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.85rem;
    color: var(--text-dark);
    box-shadow: none !important;
    transition: border-color 0.15s ease;
}

.form-control::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
    font-size: var(--font-size-sm) !important;
}

.input-group-text {
    height: 44px !important;
    font-size: var(--font-size-base) !important;
    border-color: var(--border-light);
    color: var(--text-muted);
    background-color: #f8fafc;
    padding-left: 14px !important;
    padding-right: 14px !important;
}

.input-group-text i {
    margin: 0 !important;
    font-size: 1.1rem;
}

.input-group .form-control:not(:first-child) {
    padding-left: 14px !important;
}

/* PURE WHITEBOARD BACKGROUND SYSTEM FOR ALL TABLES ACROSS POS & ADMIN */
.table,
.pos-table,
.admin-table,
.table-responsive,
.pos-table-card,
.card-table,
table,
tbody,
tbody tr,
tbody td,
.table > :not(caption) > * > * {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

.pos-table-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: none !important; /* ZERO SHADOW EFFECT */
    background: #ffffff !important;
    overflow: hidden;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.table-responsive {
    overflow-x: hidden !important; /* Zero horizontal scrollbar on POS table */
    overflow-y: auto !important;   /* Smooth catalog scroll on left side if many items */
    width: 100%;
    flex: 1 1 auto !important;
    background: #ffffff !important;
    -webkit-overflow-scrolling: touch;
}

.pos-table {
    margin-bottom: 0;
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    background: #ffffff !important;
}

/* ZERO HOVER EFFECT & ZERO CURSOR CHANGE ON ALL TABLE HEADERS AND CATEGORY BANNERS */
th,
th:hover,
tr:hover th,
thead tr:hover,
thead tr:hover th,
.pos-table th, 
.pos-table th:hover,
.pos-table tr:hover th,
.admin-table th, 
.admin-table th:hover,
.admin-table tr:hover th,
.table th,
.table th:hover,
.table tr:hover th,
.table-category-header,
.table-category-header:hover,
.table-category-header td,
.table-category-header:hover td,
.table-category-header td:hover,
.admin-table .table-category-header,
.admin-table .table-category-header:hover,
.admin-table .table-category-header td,
.admin-table .table-category-header:hover td,
.pos-table .table-category-header,
.pos-table .table-category-header:hover,
.pos-table .table-category-header td,
.pos-table .table-category-header:hover td {
    background-color: #2563eb !important;
    background: #2563eb !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800 !important;
    vertical-align: middle;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 2px solid #1d4ed8 !important;
    padding: 0.9rem 0.75rem !important;
    white-space: nowrap !important; /* FAIL-PROOF SINGLE LINE */
    cursor: default !important; /* NO POINTER CURSOR ON HOVER */
    pointer-events: none !important; /* NON-CLICKABLE STATIC BANNER */
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: none !important; /* NO CSS TRANSITIONS */
    opacity: 1 !important;
    filter: none !important;
    --bs-table-hover-bg: #2563eb !important;
    --bs-table-accent-bg: #2563eb !important;
    box-shadow: none !important;
}

/* Fail-Proof Removal of Vertical Lines on Table Headers */
thead th,
th,
.pos-table th,
.admin-table th,
.table th {
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
}

.pos-table th i,
.admin-table th i,
.table th i,
th i,
.table-category-header td i,
.table-category-header:hover td i {
    color: #ffffff !important;
}

.pos-table th {
    position: sticky;
    top: 0;
    z-index: 10;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
}

/* Table Data Cells - FAIL-PROOF ZERO WRAPPING */
.pos-table td, .admin-table td, .table td {
    vertical-align: middle;
    font-size: 0.92rem !important;
    padding: 0.75rem 0.6rem !important;
    border-bottom: 1px solid #f1f5f9;
    word-wrap: normal !important;
    overflow-wrap: normal !important;
    white-space: nowrap !important;
    background-color: #ffffff !important;
}

.pos-table td.cell-itemname {
    white-space: normal !important; /* Allow product title wrapping cleanly if long */
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* COMPLETE REMOVAL OF ALL TABLE ROW HOVER BACKGROUND COLOR CHANGES ACROSS BOTH ADMIN & POS */
.table-hover > tbody > tr:hover > *,
.table-hover > tbody > tr:hover,
.pos-table tr:hover,
.pos-table tr:hover td,
.admin-table tr:hover,
.admin-table tr:hover td,
.table tr:hover,
.table tr:hover td,
tbody tr:hover,
tbody tr:hover td {
    background-color: #ffffff !important;
    background: #ffffff !important;
    --bs-table-hover-bg: #ffffff !important;
    --bs-table-accent-bg: #ffffff !important;
    box-shadow: none !important;
}

/* Global Lock on Table Layout to Prevent Shifting / Shaking */
.pos-table,
.admin-table {
    table-layout: fixed !important;
    width: 100% !important;
}

/* Category Section Header Row (LOCKED Solid Blue #2563eb - LEFT ALIGNED MATCHING SCREENSHOT) */
.table-category-header td,
.table-category-header:hover td {
    font-weight: 800 !important;
    font-size: 0.88rem !important;
    padding: 0.65rem 0.75rem !important;
    border-top: 1px solid #1d4ed8 !important;
    border-bottom: 1px solid #1d4ed8 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: left !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.table-category-header td i,
.table-category-header td div,
.table-category-header td span,
.table-category-header:hover td i,
.table-category-header:hover td div,
.table-category-header:hover td span {
    color: #ffffff !important;
    margin-right: 12px !important;
}

/* Table Alignment Classes */
.align-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    white-space: nowrap !important;
}

.align-center {
    text-align: center;
    white-space: nowrap !important;
}

/* Add to Cart Button - Desktop View (>= 768px) */
@media (min-width: 768px) {
    .btn-add-cart {
        background-color: #2563eb !important;
        color: #ffffff !important;
        border: none !important;
        font-weight: 700 !important;
        font-size: 0.78rem !important;
        padding: 0.35rem 0.65rem !important;
        border-radius: 6px !important;
        transition: all 0.15s ease !important;
        box-shadow: 0 1px 3px rgba(37, 99, 235, 0.18) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .btn-add-cart:hover {
        background-color: #1d4ed8 !important;
        color: #ffffff !important;
        box-shadow: none !important;
    }

    .btn-add-cart.added {
        background-color: #10b981 !important;
    }
}

/* INDEPENDENT RIGHT SIDE CART PANEL (Desktop/Large Screens) */
.billing-panel-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: none !important;
    background: #ffffff;
}

.billing-panel-card .card-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    padding: 0.55rem 0.9rem !important;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .billing-panel-card {
        height: calc(100vh - 96px) !important;
        max-height: calc(100vh - 96px) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .billing-panel-card .card-body {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        height: auto !important;
        padding: 0.65rem 0.85rem !important;
        overflow-y: auto !important;
        flex: 1 1 auto !important;
    }

    #cartSummarySection {
        margin-top: auto !important;
        flex-shrink: 0 !important;
    }
}

/* Selected Items Section Header - Clean Comfortable Gap above */
.selected-items-header {
    margin-top: 14px !important;
    margin-bottom: 8px !important;
}

.customer-details-row {
    margin-bottom: 12px !important;
}

/* Cart Items Container - Flows naturally with main billing container scrollbar */
#cartItemsList {
    display: flex !important;
    flex-direction: column !important;
    padding-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#cartItemsList.cart-items-empty-state {
    flex: 1 1 auto !important;
    min-height: 180px !important;
}

#cartItemsList.cart-items-has-data {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
}

#cartItemsList .empty-cart-card {
    height: 100% !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 180px !important;
}

/* Sleek Floating Cart Item Card with Uniform Clean Border (Zero Red Left Line Border) */
.cart-item-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important; /* Uniform Clean Border on all 4 sides - Zero Left Accent Line! */
    border-radius: 10px !important;
    padding: 8px 12px !important;
    margin-bottom: 8px !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.02) !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    word-break: break-word !important;
}

.cart-item-card:hover {
    border-color: #cbd5e1 !important;
}

/* Pulse highlight animation when item is added to the cart */
@keyframes itemHighlightPulse {
    0% { background-color: #ffe4e6 !important; border-color: #f43f5e !important; transform: scale(1.01); }
    50% { background-color: #fff1f2 !important; border-color: #fb7185 !important; }
    100% { background-color: #ffffff !important; border-color: #e2e8f0 !important; transform: scale(1); }
}

.cart-item-card.item-just-added {
    animation: itemHighlightPulse 1.4s ease-out !important;
}

/* Sleek Square Box-Shaped Color-Filled Quantity Stepper Container & Buttons */
.qty-stepper-container {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important; /* Square Box Capsule Container */
    padding: 2px 4px !important;
    gap: 4px !important;
}

.qty-stepper-btn {
    width: 26px !important;
    height: 26px !important;
    border-radius: 6px !important; /* Square Box Shape with Subtle Rounded Corners */
    background: #e11d48 !important; /* Solid Crimson Red Color Filled Background */
    background-color: #e11d48 !important;
    border: none !important;
    color: #ffffff !important; /* Pure White Icon */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease, transform 0.1s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.qty-stepper-btn i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.qty-stepper-btn:hover {
    background: #be123c !important;
    background-color: #be123c !important;
    color: #ffffff !important;
}

.qty-stepper-btn:active {
    transform: scale(0.95) !important;
}

.qty-stepper-val {
    font-weight: 800 !important;
    font-size: 0.9rem !important;
    color: #0f172a !important;
    min-width: 28px !important;
    width: 38px !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    padding: 1px 2px !important;
    margin: 0 !important;
    -moz-appearance: textfield !important;
}

.qty-stepper-val::-webkit-outer-spin-button,
.qty-stepper-val::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.qty-stepper-val:focus {
    background: transparent !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Summary Item Lines with Dashed Borders */
.summary-item-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0 !important;
    font-size: 0.88rem !important;
    border-bottom: 1px dashed #e2e8f0 !important;
    margin-bottom: 4px !important;
}

/* Prominent Payable Highlight Card in Soft Light Red / Rose Theme */
.summary-net-total {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%) !important; /* Soft Light Red Gradient */
    border: 1.5px solid #fecdd3 !important; /* Soft Rose Red Border */
    border-radius: 12px !important;
    padding: 12px 14px !important;
    text-align: center;
    margin-top: 14px !important;
    margin-bottom: 12px !important;
}

.summary-net-total .payable-label,
.payable-label {
    color: #0f172a !important; /* Solid Dark Black Text */
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.payable-amount-display {
    font-size: 1.7rem !important;
    font-weight: 800 !important;
    color: #e11d48 !important; /* Crisp Crimson Red Amount */
    line-height: 1.2 !important;
    letter-spacing: -0.02em;
    display: block !important;
}

/* Main Checkout Action Button in Vibrant Crimson Red */
#generateBillBtn {
    background-color: #e11d48 !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    border-radius: 10px !important;
    padding: 0.6rem 1rem !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

#generateBillBtn:hover {
    background-color: #be123c !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* Flat Clean Admin Metric Stat Cards - ZERO Drop Shadows & Glow Borders */
.mockup-stat-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.35rem;
    display: flex;
    align-items: center;
    box-shadow: none !important; /* ZERO SHADOW EFFECT */
    transition: border-color 0.2s ease;
}

.mockup-stat-card:hover {
    transform: none !important;
    box-shadow: none !important; /* ZERO SHADOW EFFECT ON HOVER */
    border-color: var(--border-light) !important;
}

/* Red Square Icon Box inside Metric Cards - ZERO Drop Shadow */
.mockup-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background-color: var(--theme-red);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-right: 14px;
    flex-shrink: 0;
    box-shadow: none !important; /* ZERO SHADOW EFFECT */
}

.mockup-stat-icon i {
    margin-right: 0 !important;
}

/* Action Buttons - ZERO Drop Shadows */
.btn-red-action {
    background-color: var(--theme-red);
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.4rem 0.95rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

.btn-red-action:hover {
    background-color: var(--theme-red-hover);
    color: #ffffff;
    box-shadow: none !important;
    transform: none !important;
}

.btn-blue-action {
    background-color: var(--accent-blue);
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.4rem 0.95rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

.btn-blue-action:hover {
    background-color: #1d4ed8;
    color: #ffffff;
    box-shadow: none !important;
    transform: none !important;
}

.btn-green-add {
    background-color: #10b981;
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.55rem 1.35rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: none !important;
}

.btn-green-add:hover {
    background-color: #059669;
    color: #ffffff;
    box-shadow: none !important;
    transform: none !important;
}

.btn-danger {
    box-shadow: none !important;
}

.btn-danger:hover {
    box-shadow: none !important;
}

/* Plain Normal Text for Category Labels */
.badge-category {
    background-color: transparent !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: 0.92rem !important;
    display: inline-flex;
    align-items: center;
}

/* Ultra-Premium Pure White Card Toast Notification Theme (Black Text & Green Tick Check Icon) */
.custom-toast {
    min-width: 320px;
    max-width: 520px;
    border-radius: 50px !important; /* Premium Rounded Capsule Bar */
    padding: 10px 20px !important;
    box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.12) !important;
    animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important; /* Single Line - No Ugly Wrapping */
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

@keyframes toastSlideIn {
    from { transform: translateY(-16px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Pure Crisp White Background Card for Added / Success Toast Notifications */
.toast-light-success {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

.toast-light-success .toast-icon {
    color: #10b981 !important; /* Vibrant Emerald Green Tick Check Icon */
    margin-right: 12px !important;
    font-size: 1.3rem !important;
    flex-shrink: 0 !important;
}

.toast-light-success .toast-text {
    color: #0f172a !important; /* Solid Dark Black Text */
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    white-space: nowrap !important;
}

.toast-light-danger {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #fecdd3 !important;
}

.toast-light-danger .toast-icon {
    color: #e11d48 !important;
    margin-right: 12px !important;
    font-size: 1.3rem !important;
    flex-shrink: 0 !important;
}

.toast-light-danger .toast-text {
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    white-space: nowrap !important;
}

.toast-light-warning {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #fde68a !important;
}

.toast-light-warning .toast-icon {
    color: #d97706 !important;
    margin-right: 12px !important;
    font-size: 1.3rem !important;
    flex-shrink: 0 !important;
}

.toast-light-warning .toast-text {
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    white-space: nowrap !important;
}

.toast-close-btn {
    background: transparent;
    border: none;
    color: #4b5563;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 4px;
    margin-left: 16px !important;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.15s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Toast Notifications Container */
#toastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px !important;
}

/* ==========================================================================
   Motorola Moto Pad 60 Neo & Tablet Universal Responsive Styling System
   Optimized for 11.0" 2560x1600 (16:10) Display in Portrait & Landscape
   ========================================================================== */

/* Tablet Portrait Mode (768px - 991.98px | Moto Pad Neo ~800px width) */
@media (min-width: 768px) and (max-width: 991.98px) {
    html.pos-app-body, body.pos-app-body {
        height: 100vh !important;
        max-height: 100vh !important;
        overflow: hidden !important;
    }

    /* Permanently Fixed Top Navbar on Tablet - Zero Scroll / Never Disappears */
    .navbar-pos {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 60px !important;
        min-height: 60px !important;
        z-index: 1030 !important;
        background-color: #ffffff !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 0.35rem 0.75rem !important;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
    }

    .pos-logo-icon {
        width: 30px !important;
        height: 30px !important;
    }

    #displayShopName {
        font-size: 1rem !important;
        max-width: 220px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .address-header-text {
        display: none !important;
    }

    .nav-auth-actions {
        gap: 6px !important;
    }

    .user-nav-badge {
        padding: 0.22rem 0.55rem !important;
        font-size: 0.76rem !important;
        gap: 0.35rem !important;
    }

    .user-nav-badge .role-pill-admin,
    .user-nav-badge .role-pill-user {
        font-size: 0.62rem !important;
        padding: 0.15rem 0.4rem !important;
    }

    .btn-nav-admin-portal,
    .btn-nav-logout {
        padding: 0.28rem 0.6rem !important;
        font-size: 0.76rem !important;
    }

    .pos-app-main {
        margin-top: 60px !important;
        height: calc(100vh - 60px) !important;
        max-height: calc(100vh - 60px) !important;
        overflow: hidden !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        padding-top: 6px !important;
        padding-bottom: 8px !important;
    }

    /* Products Panel on Tablet Portrait */
    .pos-products-panel {
        height: auto !important;
        max-height: none !important;
    }

    .pos-products-panel .card {
        margin-bottom: 6px !important;
    }

    .pos-products-panel .card-body {
        padding: 6px 8px !important;
    }

    #categorySelect {
        height: 36px !important;
        font-size: 0.8rem !important;
        padding: 0.25rem 0.5rem !important;
    }

    .custom-pill-search-container {
        height: 36px !important;
    }

    .custom-pill-search-input {
        font-size: 0.8rem !important;
        padding: 0.25rem 0.7rem !important;
    }

    .custom-pill-search-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
    }

    /* Optimized 63% / 37% Tablet Portrait Dual-Panel Split */
    #posProductsPanel {
        width: 63% !important;
        max-width: 63% !important;
        flex: 0 0 63% !important;
    }

    #posCartPanel {
        width: 37% !important;
        max-width: 37% !important;
        flex: 0 0 37% !important;
    }

    .pos-products-panel .pos-table-card {
        height: calc(100vh - 142px) !important;
        max-height: calc(100vh - 142px) !important;
        min-height: 0 !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        border: 1px solid #e2e8f0 !important;
    }

    /* Zero Horizontal Scrollbar - Everything Fits 100% On Screen */
    .pos-table-card .table-responsive {
        height: 100% !important;
        overflow-x: hidden !important; /* ZERO HORIZONTAL SCROLL */
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
    }

    .pos-table {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
    }

    /* Table Column Widths & Fonts on Tablet Portrait */
    .pos-table th {
        font-size: 0.68rem !important;
        padding: 0.42rem 2px !important;
        white-space: nowrap !important;
    }

    .pos-table td {
        font-size: 0.78rem !important;
        padding: 0.4rem 2px !important;
        vertical-align: middle !important;
    }

    .col-slno-th { width: 6% !important; text-align: center !important; padding: 0.42rem 1px !important; }
    .col-items-th { width: 42% !important; padding-left: 4px !important; padding-right: 2px !important; }
    .col-unit-th { width: 9% !important; text-align: center !important; padding: 0.42rem 1px !important; }
    .col-mrp-th { width: 16% !important; text-align: right !important; padding-right: 4px !important; }
    .col-netrate-th { width: 16% !important; text-align: right !important; padding-right: 4px !important; }
    .col-action-th { width: 11% !important; text-align: center !important; padding: 0.42rem 1px !important; }

    .cell-mrp {
        font-size: 0.74rem !important;
        padding-right: 4px !important;
        color: #94a3b8 !important;
        white-space: nowrap !important;
    }

    .cell-netrate {
        font-size: 0.8rem !important;
        font-weight: 800 !important;
        padding-right: 4px !important;
        color: #059669 !important;
        white-space: nowrap !important;
    }

    .product-title-text {
        font-size: 0.78rem !important;
        font-weight: 700 !important;
        line-height: 1.22 !important;
        color: #0f172a !important;
    }

    /* 100% Fully Visible Add to Cart Button (Never Requires Scrolling) */
    .btn-add-cart {
        width: 34px !important;
        height: 32px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        padding: 0 !important;
        border-radius: 7px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
        background-color: #2563eb !important;
        color: #ffffff !important;
        touch-action: manipulation !important;
        user-select: none !important;
        -webkit-user-select: none !important;
    }

    .btn-add-cart:active {
        transform: scale(0.95) !important;
    }

    .btn-add-cart i {
        font-size: 1.05rem !important;
        margin: 0 !important;
        line-height: 1 !important;
    }

    .btn-add-cart .btn-text {
        display: none !important;
    }

    .btn-add-cart.added {
        background-color: #10b981 !important;
        color: #ffffff !important;
    }

    /* Right Panel Billing Summary on Tablet Portrait */
    .billing-panel-card {
        height: calc(100vh - 74px) !important;
        max-height: calc(100vh - 74px) !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        border-radius: 12px !important;
        border: 1px solid #e2e8f0 !important;
    }

    .billing-panel-card .card-header {
        padding: 0.4rem 0.7rem !important;
    }

    .billing-panel-card .card-body {
        padding: 0.5rem 0.65rem !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
    }

    #customerNameInput, #customerPhoneInput {
        height: 36px !important;
        font-size: 0.8rem !important;
        padding: 0.25rem 0.5rem !important;
        border-radius: 8px !important;
    }

    .form-label {
        font-size: 0.68rem !important;
        margin-bottom: 2px !important;
    }

    #cartItemsList .empty-cart-card img {
        width: 55px !important;
        height: 55px !important;
    }

    #cartItemsList .empty-cart-card .fs-5 {
        font-size: 0.98rem !important;
    }

    #cartItemsList .empty-cart-card .text-sm {
        font-size: 0.74rem !important;
    }

    .cart-item-card {
        padding: 7px 9px !important;
        margin-bottom: 6px !important;
        border-radius: 9px !important;
    }

    .cart-item-card .text-sm {
        font-size: 0.8rem !important;
    }

    .qty-stepper-container {
        padding: 2px 3px !important;
        gap: 3px !important;
        border-radius: 7px !important;
    }

    .qty-stepper-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.85rem !important;
        border-radius: 6px !important;
        touch-action: manipulation !important;
        user-select: none !important;
        -webkit-user-select: none !important;
    }

    .qty-stepper-val {
        font-size: 0.85rem !important;
        min-width: 24px !important;
        width: 32px !important;
    }

    #cartSummarySection {
        margin-top: auto !important;
        padding-top: 8px !important;
    }

    .summary-item-line {
        padding: 4px 0 !important;
        font-size: 0.82rem !important;
        margin-bottom: 2px !important;
    }

    .summary-net-total {
        padding: 8px 12px !important;
        margin-top: 8px !important;
        margin-bottom: 8px !important;
        border-radius: 10px !important;
    }

    .payable-label {
        font-size: 0.68rem !important;
        margin-bottom: 3px !important;
        display: block !important;
    }

    .payable-amount-display {
        font-size: 1.55rem !important;
        display: block !important;
        font-weight: 900 !important;
    }

    #generateBillBtn {
        height: 46px !important;
        min-height: 46px !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 0.92rem !important;
        font-weight: 800 !important;
        border-radius: 10px !important;
        touch-action: manipulation !important;
        user-select: none !important;
        -webkit-user-select: none !important;
    }

    #generateBillBtn:active {
        transform: scale(0.98) !important;
    }
}

/* Tablet Landscape Mode (992px - 1280px | Moto Pad Neo ~1280px width) */
@media (min-width: 992px) and (max-width: 1280px) {
    html.pos-app-body, body.pos-app-body {
        height: 100vh !important;
        max-height: 100vh !important;
        overflow: hidden !important;
    }

    .navbar-pos {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 62px !important;
        min-height: 62px !important;
        z-index: 1030 !important;
        background-color: #ffffff !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 0.4rem 1rem !important;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
    }

    #displayShopName {
        font-size: 1.05rem !important;
    }

    .pos-app-main {
        margin-top: 62px !important;
        height: calc(100vh - 62px) !important;
        max-height: calc(100vh - 62px) !important;
        overflow: hidden !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Products Panel Table in Landscape */
    .pos-products-panel .pos-table-card {
        height: calc(100vh - 146px) !important;
        max-height: calc(100vh - 146px) !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }

    .pos-table-card .table-responsive {
        height: 100% !important;
        overflow-x: hidden !important; /* Zero horizontal scroll */
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
    }

    .pos-table th {
        font-size: 0.74rem !important;
        padding: 0.45rem 0.25rem !important;
        white-space: nowrap !important;
    }

    .pos-table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
    }

    .pos-table td {
        font-size: 0.82rem !important;
        padding: 0.45rem 0.25rem !important;
    }

    .col-slno-th { width: 6% !important; text-align: center !important; }
    .col-items-th { width: 42% !important; padding-left: 6px !important; }
    .col-unit-th { width: 9% !important; text-align: center !important; }
    .col-mrp-th { width: 16% !important; text-align: right !important; padding-right: 8px !important; }
    .col-netrate-th { width: 16% !important; text-align: right !important; padding-right: 8px !important; }
    .col-action-th { width: 11% !important; text-align: center !important; }

    .cell-mrp {
        font-size: 0.78rem !important;
        padding-right: 8px !important;
        color: #94a3b8 !important;
        white-space: nowrap !important;
    }

    .cell-netrate {
        font-size: 0.84rem !important;
        font-weight: 800 !important;
        padding-right: 8px !important;
        color: #059669 !important;
        white-space: nowrap !important;
    }

    .product-title-text {
        font-size: 0.84rem !important;
        font-weight: 700 !important;
    }

    .btn-add-cart {
        width: 38px !important;
        height: 34px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        padding: 0 !important;
        border-radius: 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
        touch-action: manipulation !important;
        user-select: none !important;
        -webkit-user-select: none !important;
    }

    .btn-add-cart:active {
        transform: scale(0.96) !important;
    }

    .btn-add-cart i {
        font-size: 1.18rem !important;
        margin: 0 !important;
        line-height: 1 !important;
    }

    .btn-add-cart .btn-text {
        display: none !important;
    }

    /* Right Panel Billing Summary in Landscape */
    .billing-panel-card {
        height: calc(100vh - 76px) !important;
        max-height: calc(100vh - 76px) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .billing-panel-card .card-header {
        padding: 0.45rem 0.8rem !important;
    }

    .billing-panel-card .card-body {
        padding: 0.55rem 0.75rem !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
    }

    #customerNameInput, #customerPhoneInput {
        height: 36px !important;
        font-size: 0.82rem !important;
        padding: 0.3rem 0.55rem !important;
        border-radius: 8px !important;
    }

    .cart-item-card {
        padding: 7px 10px !important;
        margin-bottom: 6px !important;
    }

    .qty-stepper-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.85rem !important;
        touch-action: manipulation !important;
    }

    .qty-stepper-val {
        font-size: 0.85rem !important;
        min-width: 24px !important;
        width: 34px !important;
    }

    .summary-item-line {
        padding: 5px 0 !important;
        font-size: 0.84rem !important;
    }

    .summary-net-total {
        padding: 9px 14px !important;
        margin-top: 8px !important;
        margin-bottom: 8px !important;
    }

    .payable-amount-display {
        font-size: 1.65rem !important;
        font-weight: 900 !important;
    }

    #generateBillBtn {
        height: 48px !important;
        min-height: 48px !important;
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        border-radius: 10px !important;
        touch-action: manipulation !important;
    }

    #generateBillBtn:active {
        transform: scale(0.98) !important;
    }
}

/* Tablet Universal Touch & Dialog Enhancements (768px - 1280px) */
@media (min-width: 768px) and (max-width: 1280px) {
    #receiptModal .modal-dialog {
        max-width: 440px !important;
        margin: 1.5rem auto !important;
    }

    #receiptModal .modal-content {
        border-radius: 14px !important;
    }

    #receiptModal .modal-footer {
        padding: 8px 14px !important;
    }

    #receiptModal .modal-footer .btn {
        height: 44px !important;
        border-radius: 10px !important;
    }

    /* Subtle Slim Tablet Scrollbars for Smooth Touch Navigation */
    .table-responsive::-webkit-scrollbar,
    #billingCardBody::-webkit-scrollbar {
        width: 5px !important;
        height: 5px !important;
    }

    .table-responsive::-webkit-scrollbar-thumb,
    #billingCardBody::-webkit-scrollbar-thumb {
        background-color: rgba(148, 163, 184, 0.45) !important;
        border-radius: 10px !important;
    }

    .table-responsive::-webkit-scrollbar-track,
    #billingCardBody::-webkit-scrollbar-track {
        background: transparent !important;
    }
}

/* Exact Thermal Receipt Universal Uniform Font System (Screen & Modal & Print) */
.exact-thermal-receipt,
.exact-thermal-receipt *,
#receiptContent,
#receiptContent *,
#receiptContent span,
#receiptContent div {
    font-size: 0.78rem !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
}

/* Hidden on screen, visible only when printing */
#printArea {
    display: none;
}

/* Thermal Receipt Machine (80mm POS Paper Roll) & PDF Print - Zero Blank Page */
@media print {
    @page {
        size: auto;
        margin: 0mm;
    }

    *, *::before, *::after {
        box-sizing: border-box !important;
    }

    html, body, body.modal-open {
        width: 100% !important;
        height: auto !important;
        min-height: 100% !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #ffffff !important;
        color: #000000 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Hide everything on body EXCEPT #printArea */
    body > *:not(#printArea),
    nav,
    .navbar,
    .pos-app-main,
    .modal,
    .modal-backdrop,
    .mobile-bottom-nav,
    .no-print {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
    }

    #printArea {
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        width: 100% !important;
        max-width: 68mm !important;
        margin: 0 auto !important;
        padding: 2mm 3mm 4mm 3mm !important;
        background: #ffffff !important;
        color: #000000 !important;
        box-shadow: none !important;
        border: none !important;
        overflow: visible !important;
        z-index: 99999 !important;
        float: none !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }

    #printArea * {
        visibility: visible !important;
        color: #000000 !important;
        box-sizing: border-box !important;
    }

    #printArea .exact-thermal-receipt {
        display: block !important;
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        color: #000000 !important;
        background: #ffffff !important;
        box-sizing: border-box !important;
        visibility: visible !important;
        font-size: 0.78rem !important;
    }

    #printArea .exact-thermal-receipt * {
        font-size: 0.78rem !important;
    }

    #printArea .d-flex {
        display: flex !important;
    }

    #printArea .justify-content-between {
        justify-content: space-between !important;
    }

    #printArea .align-items-center {
        align-items: center !important;
    }

    #printArea .align-items-start {
        align-items: flex-start !important;
    }

    #printArea .text-center {
        text-align: center !important;
    }

    #printArea .text-start {
        text-align: left !important;
    }

    #printArea .text-end {
        text-align: right !important;
    }

    #printArea .text-nowrap {
        white-space: nowrap !important;
    }
}

/* ==========================================================================
   MOBILE CART BUTTON & ICON ABSOLUTE CENTER ALIGNMENT (< 768px)
   Guarantees 100% mathematical vertical & horizontal centering of cart icon
   ========================================================================== */
@media (max-width: 767.98px) {
    .pos-table td.cell-action {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
        width: auto !important;
        border: none !important;
    }

    .pos-table td.cell-action .btn-add-cart,
    .btn-add-cart {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
        background-color: #2563eb !important;
        color: #ffffff !important;
        box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
    }

    .pos-table td.cell-action .btn-add-cart.added,
    .btn-add-cart.added {
        background-color: #10b981 !important;
        border-color: #10b981 !important;
        box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35) !important;
        color: #ffffff !important;
    }

    .pos-table td.cell-action .btn-add-cart.added:hover,
    .pos-table td.cell-action .btn-add-cart.added:active,
    .btn-add-cart.added:hover,
    .btn-add-cart.added:active {
        background-color: #059669 !important;
        border-color: #059669 !important;
    }

    .pos-table td.cell-action .btn-add-cart i,
    .btn-add-cart i {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 1.15rem !important;
        line-height: 1 !important;
        vertical-align: 0 !important;
        text-align: center !important;
    }

    .pos-table td.cell-action .btn-add-cart i::before,
    .btn-add-cart i::before {
        display: inline-block !important;
        line-height: 1 !important;
        vertical-align: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .pos-table td.cell-action .btn-add-cart .btn-text,
    .btn-add-cart .btn-text {
        display: none !important;
    }
}

/* ==========================================================================
   FAIL-PROOF MODAL & MOBILE PRINT BUTTON VISIBILITY FIX
   ========================================================================== */
/* Hide mobile bottom navigation bar when modal is open so it NEVER covers modal buttons */
body.modal-open .mobile-bottom-nav,
.modal-open .mobile-bottom-nav {
    display: none !important;
}

/* Ensure modal always layers above any other UI element */
.modal {
    z-index: 10050 !important;
}
.modal-backdrop {
    z-index: 10040 !important;
}

/* Mobile Receipt Modal Sticky Header & Footer with Always-Visible Print Button */
@media (max-width: 767.98px) {
    #receiptModal .modal-dialog,
    .modal-dialog.modal-dialog-scrollable {
        margin: 8px auto !important;
        max-width: calc(100% - 16px) !important;
        height: calc(100% - 16px) !important;
        max-height: calc(100% - 16px) !important;
        display: flex !important;
        flex-direction: column !important;
    }

    #receiptModal .modal-content,
    .modal-dialog.modal-dialog-scrollable .modal-content {
        height: 100% !important;
        max-height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
    }

    #receiptModal .modal-header {
        flex-shrink: 0 !important;
        padding: 10px 14px !important;
        background: #ffffff !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }

    #receiptModal .modal-body {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 10px !important;
        background: #f8fafc !important;
    }

    #receiptModal .modal-footer {
        flex-shrink: 0 !important;
        position: sticky !important;
        bottom: 0 !important;
        background: #ffffff !important;
        border-top: 1px solid #e2e8f0 !important;
        padding: 10px 14px !important;
        display: flex !important;
        gap: 10px !important;
        z-index: 105 !important;
    }

    #receiptModal .modal-footer .btn {
        margin: 0 !important;
        height: 44px !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
    }

    #receiptModal .modal-footer .btn-secondary {
        flex: 0 0 85px !important;
        font-size: 0.88rem !important;
    }

    #receiptModal .modal-footer #triggerPrintBtn {
        flex: 1 1 auto !important;
        background-color: #e11d48 !important;
        border-color: #e11d48 !important;
        color: #ffffff !important;
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        box-shadow: 0 3px 10px rgba(225, 29, 72, 0.3) !important;
    }

    /* Mobile Cart Panel & Billing Card Clean Natural Flow - ZERO CLIPPING & ZERO EMPTY SPACE */
    .pos-cart-panel {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding-bottom: 0 !important;
    }

    .pos-cart-panel .billing-panel-card,
    .billing-panel-card {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        margin-top: 4px !important;
        margin-bottom: 0 !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 14px !important;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04) !important;
    }

    .billing-panel-card .card-body {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0.75rem !important;
    }

    #cartItemsList {
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible !important;
        margin-bottom: 0.5rem !important;
    }

    #cartSummarySection {
        margin-top: 0.5rem !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0 !important;
    }

    #generateBillBtn {
        height: 46px !important;
        min-height: 46px !important;
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        border-radius: 10px !important;
        margin-top: 8px !important;
        margin-bottom: 0 !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   Pagination Component Styling (MADAN TRADERS Red Crimson Theme)
   ========================================================================== */
.pagination {
    margin: 0;
    gap: 4px;
}

.pagination .page-item .page-link {
    color: #475569;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px !important;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.32rem 0.65rem;
    min-width: 34px;
    text-align: center;
    line-height: 1.4;
    transition: all 0.15s ease-in-out;
    box-shadow: none;
    white-space: nowrap;
}

.pagination .page-item .page-link:hover:not(:disabled) {
    background-color: #fff1f2;
    border-color: #fecdd3;
    color: var(--theme-red, #e11d48);
}

.pagination .page-item.active .page-link {
    background-color: var(--theme-red, #e11d48) !important;
    border-color: var(--theme-red, #e11d48) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.25);
}

.pagination .page-item.disabled .page-link {
    color: #94a3b8;
    background-color: #f8fafc;
    border-color: #e2e8f0;
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

#historyPaginationCard {
    background-color: #ffffff;
}

@media (max-width: 576px) {
    .pagination .page-item .page-link {
        font-size: 0.78rem;
        padding: 0.24rem 0.45rem;
        min-width: 28px;
    }
}

/* User Accounts Table Layout, Scrollable Container & Spacing */
.users-table-scroll-container {
    max-height: 420px !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

.users-table-scroll-container::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

.users-table-scroll-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.users-table-scroll-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}

.users-table-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.table-users-management {
    width: 100% !important;
    min-width: 720px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.table-users-management thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background-color: #2563eb !important;
    color: #ffffff !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em;
    padding: 0.95rem 1.25rem !important;
    border: none !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

.table-users-management tbody td {
    padding: 1.15rem 1.25rem !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background-color: #ffffff !important;
}

.table-users-management tbody tr:hover td {
    background-color: #f8fafc !important;
}

.table-users-management .btn-blue-action {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2) !important;
    transition: all 0.15s ease !important;
}

.table-users-management .btn-blue-action:hover {
    background-color: #1d4ed8 !important;
    box-shadow: 0 3px 6px rgba(37, 99, 235, 0.3) !important;
}

.table-users-management .btn-red-action {
    background-color: #dc3545 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(220, 53, 69, 0.2) !important;
    transition: all 0.15s ease !important;
}

.table-users-management .btn-red-action:hover {
    background-color: #bb2d3b !important;
    box-shadow: 0 3px 6px rgba(220, 53, 69, 0.3) !important;
}

/* Perfect Center Alignment for Action Buttons & Trash Icon */
.table-users-management .delete-user-btn,
.delete-user-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.table-users-management .delete-user-btn i,
.delete-user-btn i {
    margin: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
}

/* Mobile Responsive Card Transformation for User Accounts Table (< 768px) */
@media (max-width: 767.98px) {
    .users-table-scroll-container {
        max-height: none !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        padding: 0 !important;
    }

    .table-users-management {
        min-width: 100% !important;
        width: 100% !important;
        display: block !important;
        border: none !important;
    }

    .table-users-management colgroup,
    .table-users-management thead {
        display: none !important;
    }

    .table-users-management tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 12px 10px !important;
        width: 100% !important;
        background: transparent !important;
    }

    .table-users-management tbody tr {
        display: flex !important;
        flex-direction: column !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 14px !important;
        padding: 14px 16px !important;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05) !important;
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .table-users-management tbody td {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        width: 100% !important;
    }

    .table-users-management tbody td.ps-4 {
        padding-left: 0 !important;
        border-bottom: 1px dashed #e2e8f0 !important;
        padding-bottom: 10px !important;
    }

    .table-users-management tbody td:nth-child(2)::before {
        content: "Username";
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        color: #64748b;
    }

    .table-users-management tbody td:nth-child(3)::before {
        content: "Password";
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        color: #64748b;
    }

    .table-users-management tbody td.pe-4 {
        padding-right: 0 !important;
        padding-top: 10px !important;
        border-top: 1px solid #f1f5f9 !important;
        width: 100% !important;
    }

    .table-users-management tbody td.pe-4 .d-inline-flex {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }

    .table-users-management tbody td.pe-4 .btn-blue-action {
        flex: 1 1 auto !important;
        height: 38px !important;
    }

    .table-users-management tbody td.pe-4 .delete-user-btn {
        flex: 0 0 38px !important;
        height: 38px !important;
        width: 38px !important;
    }
}



