/* 
 * 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;
}

/* 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-nav {
    display: none;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 64px !important;
    background-color: #ffffff !important;
    border-top: 2px solid #e2e8f0 !important;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.15) !important;
    z-index: 999999 !important;
    padding: 0 16px !important;
    align-items: center !important;
    justify-content: space-around !important;
}

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

    .pos-app-main {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
        padding-top: 0 !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;
    }

    /* Filter bar card compact on mobile */
    .card.border-0.mb-2.rounded-3.flex-shrink-0 {
        margin-bottom: 6px !important;
    }

    .card.border-0.mb-2.rounded-3.flex-shrink-0 .card-body {
        padding: 8px !important;
    }

    /* Category dropdown & search full width stacked */
    .card.border-0.mb-2.rounded-3.flex-shrink-0 .row {
        gap: 6px !important;
    }

    .card.border-0.mb-2.rounded-3.flex-shrink-0 .col-sm-5,
    .card.border-0.mb-2.rounded-3.flex-shrink-0 .col-sm-7 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

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

    /* Compact search input on mobile */
    .custom-pill-search-input {
        height: 40px !important;
        font-size: 0.85rem !important;
        padding-left: 16px !important;
        padding-right: 48px !important;
    }

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

    /* Compact custom select trigger on mobile */
    .custom-select-trigger {
        height: 40px !important;
        font-size: 0.85rem !important;
        padding: 0.5rem 1rem !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;
        width: 100% !important;
        height: 64px !important;
        background-color: #ffffff !important;
        border-top: 2px solid #e2e8f0 !important;
        box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.15) !important;
        z-index: 999999 !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 - FAIL-PROOF SINGLE LINE */
.cell-slno { color: #e11d48 !important; font-weight: 700 !important; font-family: monospace; white-space: nowrap !important; }
.cell-itemname { color: #0f172a !important; font-weight: 700 !important; }
.cell-unit { color: #475569 !important; font-weight: 600 !important; white-space: nowrap !important; }
.cell-mrp { color: #94a3b8 !important; white-space: nowrap !important; }
.cell-netrate { color: #059669 !important; font-weight: 800 !important; white-space: nowrap !important; }

/* Responsive Table Column Sizing Classes (5 Columns without MRP) */
.col-slno-th { width: 8%; min-width: 48px !important; white-space: nowrap !important; text-align: center !important; }
.col-items-th { width: 48%; min-width: 140px !important; }
.col-unit-th { width: 12%; min-width: 56px !important; white-space: nowrap !important; text-align: center !important; }
.col-netrate-th { width: 15%; min-width: 70px !important; white-space: nowrap !important; text-align: right !important; }
.col-action-th { width: 17%; min-width: 72px !important; white-space: nowrap !important; text-align: center !important; }

/* Click-to-Edit Price Styling */
.price-click-cell {
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    padding: 2px 4px;
    border-radius: 6px;
    user-select: none;
}
.price-click-cell:hover {
    background-color: #f1f5f9;
}
.price-val {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
.price-val:hover .price-edit-icon {
    opacity: 1 !important;
    color: #2563eb !important;
}
.price-val.is-overridden {
    color: #2563eb !important;
    font-weight: 800 !important;
    text-decoration: underline dotted #2563eb 2px;
}
.price-inline-editor input:focus {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
    border-color: #2563eb;
}
.reset-price-btn:hover {
    color: #e11d48 !important;
    transform: rotate(-45deg);
}

@media (max-width: 767.98px) {
    .pos-app-main {
        padding-left: 6px !important;
        padding-right: 6px !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .pos-table-card {
        border: none !important;
        background: transparent !important;
        border-radius: 0 !important;
    }

    .table-responsive {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding: 2px !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-tamil-text {
        font-size: 0.82rem !important;
        font-weight: 600 !important;
        color: #1e40af !important;
        line-height: 1.25 !important;
        margin-top: 2px !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;
        padding: 0 !important;
        margin-left: auto !important;
        margin-right: 4px !important;
        border: none !important;
        flex-shrink: 0 !important;
        align-self: center !important;
    }

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

    .pos-table td.cell-price-stack .cell-netrate {
        display: block !important;
        font-size: 0.94rem !important;
        font-weight: 800 !important;
        color: #059669 !important;
        padding: 0 !important;
        text-align: right !important;
        line-height: 1.1 !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;
    }

    /* Products panel natural height on mobile */
    #posProductsPanel {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    /* Products table card fills available space */
    .pos-table-card {
        height: auto !important;
        min-height: 300px !important;
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
    }

    .pos-table-card .table-responsive {
        overflow-y: visible !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Toast on mobile - full width */
    #toastContainer {
        top: 10px !important;
        right: 8px !important;
        left: 8px !important;
        align-items: center !important;
    }

    .custom-toast {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        font-size: 0.85rem !important;
        border-radius: 8px !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 */
.admin-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

@media (min-width: 992px) {
    .navbar-pos {
        min-height: 58px !important;
    }

    .navbar-pos .container-fluid {
        position: relative !important;
    }

    .navbar-pos .nav-segment-container {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        z-index: 10 !important;
    }

    .admin-header-actions {
        margin-left: auto !important;
    }
}

.btn-admin-nav-item {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 50px !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    padding: 0.38rem 0.9rem !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: 6px !important;
    font-size: 0.9rem !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.84rem !important;
    font-weight: 700 !important;
    padding: 0.38rem 0.9rem !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: 6px !important;
    font-size: 0.9rem !important;
    color: #e11d48 !important;
}

.btn-admin-nav-logout {
    background-color: #e11d48 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    padding: 0.38rem 1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important; /* Single line - NO wrapping! */
    flex-shrink: 0 !important;      /* Guarantee logout button never hides or shrinks */
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease !important;
}

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

.btn-admin-nav-logout i {
    margin-right: 6px !important;
    font-size: 0.9rem !important;
    color: #ffffff !important;
}

.pos-user-badge {
    height: 38px !important;
    min-height: 38px !important;
    background-color: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 50px !important;
    padding: 0 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.pos-user-badge .user-badge-name {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: 0.2px !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.pos-user-badge .user-badge-role {
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    padding: 0.25rem 0.55rem !important;
    border-radius: 50px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.btn-pos-logout {
    height: 38px !important;
    min-height: 38px !important;
    background-color: #e11d48 !important;
    border: 1px solid #e11d48 !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    padding: 0 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.25) !important;
    transition: all 0.15s ease !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
}

.btn-pos-logout:hover {
    background-color: #be123c !important;
    border-color: #be123c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.35) !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;
}

/* 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;
}

/* Ensure native select is strictly hidden when custom select wrapper is present */
.custom-select-wrapper + select,
select[data-custom-select-initialized="true"] {
    display: none !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 {
        margin-top: 64px !important;
        height: calc(100vh - 64px) !important;
        max-height: calc(100vh - 64px) !important;
        overflow: hidden !important;
        box-sizing: border-box;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

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: 0 2px 8px rgba(15,23,42,0.08) !important;
    padding: 0.6rem 0.75rem !important;
    height: auto !important;
    min-height: 64px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    flex-shrink: 0;
}

/* Admin pages - navbar sticky (not fixed), no margin-top needed */
body:not(.pos-app-body) .navbar-pos {
    position: sticky !important;
    top: 0 !important;
}

.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-logout {
    background-color: #fff1f2 !important;
    color: #e11d48 !important;
    border: 1px solid #fecdd3 !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;
    box-shadow: none !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
}

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

.btn-nav-logout i {
    margin-right: 8px !important;
    font-size: 0.95rem !important;
    transition: color 0.15s ease !important;
}

.btn-nav-logout:hover i {
    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: 50px;
    padding: 3px 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 1;
    max-width: 100%;
}

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

.nav-segment-item i {
    margin-right: 6px !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;
}

/* 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: auto !important;   /* Smooth horizontal scrolling when content exceeds viewport */
    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,
.admin-table {
    margin-bottom: 0;
    width: 100% !important;
    min-width: 100% !important;
    table-layout: fixed !important;
    background: #ffffff !important;
}

/* ZERO HOVER EFFECT & ZERO CURSOR CHANGE ON POS & ADMIN TABLE HEADERS AND CATEGORY BANNERS */
.pos-table th, 
.pos-table th:hover,
.pos-table tr:hover th,
.admin-table th, 
.admin-table th:hover,
.admin-table tr:hover th,
#editItemsTable th,
#editItemsTable th:hover,
#editItemsTable 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 POS & Admin Table Headers */
.pos-table thead th,
.pos-table th,
.admin-table thead th,
.admin-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 tbody tr:hover,
.table tbody 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;
    font-size: 0.92rem !important;
    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 - 80px) !important;
        max-height: calc(100vh - 80px) !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;
    }
}

/* 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;
}

/* 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: 24px !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* Click-to-Type Direct Quantity Input in Cart Stepper */
input.qty-stepper-val,
.cart-qty-input {
    width: 38px !important;
    min-width: 26px !important;
    height: 26px !important;
    padding: 0 2px !important;
    margin: 0 !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    font-weight: 800 !important;
    font-size: 0.92rem !important;
    color: #0f172a !important;
    text-align: center !important;
    border-radius: 6px !important;
    outline: none !important;
    -moz-appearance: textfield !important;
    box-shadow: none !important;
    cursor: text !important;
    transition: all 0.15s ease !important;
}

input.qty-stepper-val:hover,
.cart-qty-input:hover {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}

input.qty-stepper-val:focus,
.cart-qty-input:focus {
    background: #ffffff !important;
    border-color: #e11d48 !important;
    box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.2) !important;
}

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

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

/* 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: 8px 12px !important;
    text-align: center;
    margin-top: 6px !important;
    margin-bottom: 8px !important;
}

.summary-net-total .payable-label,
.payable-label {
    color: #000000 !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
}

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

/* Main Checkout Action Buttons (Print Bill & Download PDF) */
#generateBillBtn,
.btn-checkout-print {
    background-color: #e11d48 !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 800 !important;
    font-size: 0.92rem !important;
    border-radius: 10px !important;
    padding: 0.6rem 0.75rem !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

#generateBillBtn:hover,
.btn-checkout-print:hover {
    background-color: #be123c !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

#directPdfBtn,
.btn-checkout-pdf {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 800 !important;
    font-size: 0.92rem !important;
    border-radius: 10px !important;
    padding: 0.6rem 0.75rem !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

#directPdfBtn:hover,
.btn-checkout-pdf:hover {
    background-color: #1d4ed8 !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;
}

.me-1\.5 {
    margin-right: 8px !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;
    gap: 8px !important;
    box-shadow: none !important;
}

.btn-green-add i {
    margin-right: 8px !important;
    font-size: 1.05rem;
    line-height: 1;
}

.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 Modern Box Shape Toast Notification Theme */
.custom-toast {
    min-width: 320px;
    max-width: 520px;
    border-radius: 10px !important;
    padding: 11px 16px !important;
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.18), 0 4px 10px rgba(0, 0, 0, 0.06) !important;
    animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    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 White Card Toast Notification Theme (Black Text & Green Tick Check Icon) */
.toast-light-success {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #bbf7d0 !important;
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 10px rgba(15, 23, 42, 0.04) !important;
}

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

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

/* Subtle Clean Close Button for White Card Toast */
/* Zero Background Bare Close Icon (No Border, No Background, No Shadow) */
.toast-light-success .toast-close-btn,
.custom-toast.toast-light-success .toast-close-btn {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    border-radius: 50% !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: #64748b !important;
    opacity: 1 !important;
    opacity: 0.75 !important;
    padding: 0 !important;
    margin-left: 16px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 0 !important;
    transition: opacity 0.15s ease, color 0.15s ease, transform 0.15s ease !important;
}

.toast-light-success .toast-close-btn:hover,
.custom-toast.toast-light-success .toast-close-btn:hover {
    background: #f1f5f9 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    color: #0f172a !important;
    transform: scale(1.08) !important;
    opacity: 1 !important;
    transform: scale(1.15) !important;
}

.toast-light-success .toast-close-btn i,
.custom-toast.toast-light-success .toast-close-btn i {
    color: #64748b !important;
    font-size: 0.85rem !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    transition: color 0.15s ease !important;
}

.toast-light-success .toast-close-btn:hover i,
.custom-toast.toast-light-success .toast-close-btn:hover i {
    color: #0f172a !important;
    background: transparent !important;
}

.toast-light-info {
    background-color: #0284c7 !important;
    background: #0284c7 !important;
    color: #ffffff !important;
    border: 1px solid #0369a1 !important;
    box-shadow: 0 10px 25px -4px rgba(2, 132, 199, 0.35) !important;
}

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

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

.toast-light-info .toast-close-btn {
    color: #ffffff !important;
    opacity: 0.9 !important;
}

.toast-light-info .toast-close-btn:hover {
    color: #ffffff !important;
    opacity: 1 !important;
    transform: scale(1.15);
}

.toast-light-info .toast-close-btn i {
    color: #ffffff !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;
    font-size: 1.15rem;
    cursor: pointer;
    padding: 0 4px;
    margin-left: 16px !important;
    line-height: 1;
    opacity: 1 !important;
    transition: opacity 0.15s ease, transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.toast-light-danger .toast-close-btn,
.toast-light-warning .toast-close-btn {
    color: #4b5563 !important;
    opacity: 0.75 !important;
}

.toast-light-danger .toast-close-btn:hover,
.toast-light-warning .toast-close-btn:hover {
    opacity: 1 !important;
    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;
}

/* Tablet Specific Responsive Styling (768px - 1199.98px) */
@media (min-width: 768px) and (max-width: 1199.98px) {
    html.pos-app-body, body.pos-app-body {
        height: 100vh !important;
        max-height: 100vh !important;
        overflow: hidden !important;
    }

    .navbar-pos {
        height: 64px !important;
        min-height: 64px !important;
        padding: 0.4rem 0.8rem !important;
    }

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

    .address-header-text {
        font-size: 0.72rem !important;
    }

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

    /* Product Table Styling on Tablet */
    .pos-table th {
        font-size: 0.76rem !important;
        padding: 0.5rem 0.3rem !important;
        white-space: nowrap !important;
    }

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

    .col-slno-th { width: 7% !important; min-width: 36px !important; text-align: center !important; }
    .col-items-th { width: 50% !important; }
    .col-unit-th { width: 10% !important; min-width: 44px !important; text-align: center !important; }
    .col-netrate-th { width: 15% !important; text-align: right !important; }
    .col-action-th { width: 18% !important; min-width: 90px !important; text-align: center !important; }

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

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

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

    /* Right Panel Billing Summary on Tablet */
    .billing-panel-card {
        height: calc(100vh - 80px) !important;
        max-height: calc(100vh - 80px) !important;
    }

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

    .billing-panel-card .card-body {
        padding: 0.5rem 0.65rem !important;
    }

    #customerNameInput, #customerPhoneInput {
        height: 32px !important;
        font-size: 0.78rem !important;
        padding: 0.25rem 0.5rem !important;
        border-radius: 6px !important;
    }

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

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

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

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

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

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

    .qty-stepper-btn {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.8rem !important;
    }

    .qty-stepper-val {
        font-size: 0.8rem !important;
        min-width: 20px !important;
    }

    input.qty-stepper-val,
    .cart-qty-input {
        width: 32px !important;
        height: 22px !important;
        font-size: 0.82rem !important;
    }

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

    .summary-net-total {
        padding: 6px 10px !important;
        margin-top: 4px !important;
        margin-bottom: 6px !important;
    }

    .payable-label {
        font-size: 0.68rem !important;
    }

    .payable-amount-display {
        font-size: 1.38rem !important;
    }

    #generateBillBtn,
    #directPdfBtn {
        padding: 0.5rem 0.5rem !important;
        font-size: 0.84rem !important;
    }
}

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

/* ==========================================================================
   A4 SHEET PRINT BILL LAYOUT (Full A4 Portrait 210mm x 297mm)
   ========================================================================== */
.a4-invoice-container {
    background: #ffffff !important;
    color: #000000 !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Arial, sans-serif;
    padding: 6px 12px;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 auto;
    width: 100%;
    max-width: 880px;
    box-shadow: none !important;
}
.a4-items-table,
table.a4-items-table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: 1.5px solid #000000 !important;
    background: #ffffff !important;
}
.a4-items-table thead,
.a4-items-table thead tr {
    border-bottom: 2px solid #000000 !important;
    border-color: #000000 !important;
    background: #ffffff !important;
}
.a4-items-table th,
.a4-items-table td,
.a4-items-table thead th,
.a4-items-table tbody td,
.a4-items-table tr th,
.a4-items-table tr td {
    border: 1px solid #000000 !important;
    border-color: #000000 !important;
    padding: 6px 8px !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 19px !important;
}
.a4-items-table thead th {
    border-bottom: 2px solid #000000 !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    font-size: 18px !important;
    letter-spacing: 0.5px !important;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 6mm 6mm 6mm 6mm !important; /* Maximizes printable space so up to 25 items easily fit on 1 page */
    }

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

    html, body, body.modal-open {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        padding-right: 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;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !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;
    }

    #printArea * {
        visibility: visible !important;
        color: #000000 !important;
    }

    #printArea .a4-invoice-container,
    .a4-invoice-container {
        display: block !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;
        border: none !important;
        box-shadow: none !important;
        page-break-after: avoid !important;
        break-after: avoid !important;
    }

    #printArea .a4-items-table,
    .a4-items-table {
        width: 100% !important;
        margin-top: 4px !important;
        margin-bottom: 4px !important;
        font-size: 19px !important;
    }

    #printArea .a4-items-table thead,
    .a4-items-table thead {
        display: table-header-group !important; /* Repeats table header neatly if bill spans multiple pages */
    }

    #printArea .a4-items-table th,
    .a4-items-table th {
        border: 1.5px solid #000000 !important;
        background-color: #ffffff !important;
        background: #ffffff !important;
        color: #000000 !important;
        padding: 6px 6px !important;
        font-size: 18px !important;
        font-weight: 900 !important;
        line-height: 1.2 !important;
        letter-spacing: 0.3px !important;
    }

    #printArea .a4-items-table td,
    .a4-items-table td {
        border: 1px solid #000000 !important;
        background-color: #ffffff !important;
        background: #ffffff !important;
        color: #000000 !important;
        padding: 6px 8px !important;
        font-size: 19px !important;
        font-weight: 800 !important;
        line-height: 1.25 !important;
    }

    #printArea .a4-items-table tr,
    .a4-items-table tr {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    #printArea .a4-summary-table,
    .a4-summary-table,
    #printArea .a4-meta-table,
    .a4-meta-table,
    #printArea .a4-header-section,
    .a4-header-section,
    #printArea .a4-footer-section,
    .a4-footer-section {
        page-break-inside: avoid !important;
        break-inside: avoid !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;
    }
}

/* Product and Unit input capitalization */
#prodName, 
#prodUnit {
    text-transform: capitalize !important;
}

#prodCustomCategory, 
#addCategoryNameInput, 
#newCategoryName,
.uppercase-input {
    text-transform: uppercase !important;
}

/* Responsive History Pagination Styles */
#historyPaginationContainer {
    overflow-x: hidden;
}

.pagination {
    margin-bottom: 0;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination .page-item .page-link {
    color: #475569;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px !important;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    transition: all 0.15s ease-in-out;
    box-shadow: none;
    text-decoration: none;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    touch-action: manipulation;
}

.pagination .page-item .page-link:hover {
    background-color: #ffe4e6;
    border-color: #fecdd3;
    color: #e11d48;
}

.pagination .page-item.active .page-link {
    background-color: #e11d48 !important;
    border-color: #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: #f1f5f9;
    border-color: #e2e8f0;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.65;
}

/* Mobile Screens (< 576px) Optimization */
@media (max-width: 575.98px) {
    #historyPaginationContainer {
        padding: 0.85rem 0.5rem !important;
    }

    #historyPaginationContainer .d-flex {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
    }

    #historyPaginationInfo {
        font-size: 0.76rem !important;
        text-align: center !important;
        width: 100% !important;
    }

    .pagination {
        gap: 3px !important;
        width: 100% !important;
        justify-content: center !important;
    }

    .pagination .page-item .page-link {
        font-size: 0.74rem !important;
        padding: 0.2rem 0.45rem !important;
        min-width: 29px !important;
        height: 31px !important;
    }

    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        padding: 0.2rem 0.6rem !important;
        font-weight: 700 !important;
    }
}

/* ==========================================================================
   Vibrant Quantity Stepper Colors (Red Minus, Green Plus)
   ========================================================================== */
.qty-stepper-btn[data-action="dec"],
.btn-qty-minus {
    background-color: #fee2e2 !important;
    color: #dc2626 !important;
    border-color: #fecdd3 !important;
    font-weight: 900 !important;
    transition: all 0.15s ease-in-out !important;
}
.qty-stepper-btn[data-action="dec"]:hover,
.btn-qty-minus:hover {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
}
.qty-stepper-btn[data-action="inc"],
.btn-qty-plus {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    border-color: #bbf7d0 !important;
    font-weight: 900 !important;
    transition: all 0.15s ease-in-out !important;
}
.qty-stepper-btn[data-action="inc"]:hover,
.btn-qty-plus:hover {
    background-color: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
}

/* ==========================================================================
   HTML2PDF & HIGH-PRECISION A4 PDF EXPORT STYLES
   Ensures zero height clipping, zero viewport scroll cut-off, zero horizontal shift,
   and perfectly scaled single-page output.
   ========================================================================== */
.html2pdf__overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    width: 750px !important;
    max-width: 750px !important;
    height: auto !important;
    min-height: 1000px !important;
    overflow: visible !important;
    z-index: 999999 !important;
    background-color: #ffffff !important;
}

.html2pdf__container {
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    top: 0 !important;
    width: 750px !important;
    max-width: 750px !important;
    height: auto !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #ffffff !important;
}



