/* =========================================
   ORIDIL POS - MASTER STYLESHEET (Final)
   ========================================= */

/* =========================================
   1. GLOBAL VARIABLES & THEME SETUP
   ========================================= */
:root {
    /* --- Brand Colors --- */
    --brand-primary: #FF6A00;
    /* Neon Orange */
    --brand-blue: #00d4ff;
    /* Cyan */
    --brand-green: #00ff9d;
    /* Neon Green */
    --brand-yellow: #ffc107;
    /* Warning Yellow */
    --brand-danger: #ff4757;
    /* Red */

    /* --- Backgrounds --- */
    --bg-body: #0F1015;
    /* Deep Dark Background */
    --bg-card: rgba(255, 255, 255, 0.03);
    /* Glass Effect */
    --bg-dock: rgba(20, 20, 30, 0.85);
    /* Sidebar Background */

    /* --- Inputs & Interactive --- */
    --bg-input: rgba(255, 255, 255, 0.1);
    /* Improved Visibility */
    --bg-hover: rgba(255, 255, 255, 0.15);

    /* --- Text Contrast --- */
    --text-main: #ffffff;
    /* Main Headings */
    --text-muted: #B0B3C6;
    /* Secondary Text (Readable Grey) */

    /* --- Dimensions & Borders --- */
    --border-color: rgba(255, 255, 255, 0.15);
    --sidebar-width: 80px;
    --glow-shadow: 0 0 20px rgba(255, 106, 0, 0.15);
}

/* --- LIGHT THEME OVERRIDES --- */
body.light-mode {
    --bg-body: #F4F6F9;
    --bg-card: #FFFFFF;
    --bg-dock: #FFFFFF;
    --bg-input: #E9ECEF;
    --bg-hover: #E2E6EA;
    --text-main: #212529;
    --text-muted: #6C757D;
    --border-color: #DEE2E6;
    --glow-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- Base Resets --- */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* Prevent full page scroll */
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Page Fade Animation */
.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================
   2. MAIN LAYOUT (Flexbox Fix)
   ========================================= */
.main-content {
    margin-left: 100px;
    /* Sidebar Space */
    height: 100vh;
    /* Full Height */
    display: flex;
    /* Enable Flexbox */
    flex-direction: column;
    /* Vertical Layout */
    padding: 20px 30px;
    overflow: hidden;
    /* Container No Scroll */
}

/* The Dynamic Content Area (Dashboard/POS) */
#app-content {
    flex: 1;
    /* Take remaining space */
    overflow-y: auto;
    /* Scroll ONLY this part */
    padding-right: 10px;
    padding-bottom: 20px;
    position: relative;
}

/* Custom Scrollbar */
#app-content::-webkit-scrollbar,
.activity-list::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary);
}


/* =========================================
   3. SIDEBAR (Floating Dock)
   ========================================= */
.sidebar {
    position: fixed;
    top: 20px;
    left: 20px;
    bottom: 20px;
    width: var(--sidebar-width);
    background: var(--bg-dock);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.sidebar-brand {
    font-size: 1.8rem;
    color: var(--brand-primary);
    margin-bottom: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.sidebar-bottom-actions {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.sidebar .nav-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: 14px;
    margin-bottom: 12px;
    font-size: 1.4rem;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    text-decoration: none;
}

.sidebar .nav-link:hover {
    background: var(--bg-hover);
    color: var(--text-main);
    transform: scale(1.1);
}

.sidebar .nav-link.active {
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.4);
}

/* Sidebar Tooltip */
.sidebar .nav-link::after {
    content: attr(data-title);
    position: absolute;
    left: 70px;
    background: var(--bg-card);
    color: var(--text-main);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.2s ease;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1001;
}

.sidebar .nav-link:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}


/* =========================================
   4. DASHBOARD & WIDGETS
   ========================================= */
.glass-card,
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-5px);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.stat-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Widget Colors */
.icon-blue {
    background: rgba(0, 212, 255, 0.15);
    color: var(--brand-blue);
}

.icon-green {
    background: rgba(0, 255, 157, 0.15);
    color: var(--brand-green);
}

.icon-orange {
    background: rgba(255, 106, 0, 0.15);
    color: var(--brand-primary);
}

.icon-yellow {
    background: rgba(255, 193, 7, 0.15);
    color: var(--brand-yellow);
}

/* High Visibility Dashboard Text */
.stat-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-muted) !important;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

/* Header Profile Icon */
.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    border: 1px solid var(--border-color);
}

.avatar-circle-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 106, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    font-size: 0.85rem;
}

.bg-brand-10 {
    background: rgba(255, 106, 0, 0.1) !important;
}

.text-brand {
    color: var(--brand-primary) !important;
}

.text-brand-danger {
    color: var(--brand-danger) !important;
}

.icon-box {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 5px;
}

.activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg-input);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: var(--bg-hover);
    border-color: var(--brand-primary);
    transform: translateX(5px);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 106, 0, 0.2);
    color: #FF6A00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 15px;
}

.activity-info p {
    color: #b0b3c6 !important;
    /* Fixed Visibility for small text */
}


/* =========================================
   5. TABLES & INPUTS (Global Fix)
   ========================================= */
/* Global Input Style */
.form-control,
.form-select {
    background: var(--bg-input) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    font-weight: 500;
    border-radius: 12px !important;
    padding: 10px 15px !important;
}

.form-control::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.7;
}

.form-control:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.2) !important;
}

/* Product Page Layout Fix */
#products.page.active {
    display: flex !important;
    flex-direction: column;
    height: 100%;
}

#products.page.active .container-fluid {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 0 !important;
}

.table-responsive {
    flex-grow: 1;
    overflow-y: auto !important;
    padding-bottom: 50px !important;
    margin-bottom: 10px;
}

/* Floating Search Bar */
#productManagementSearch {
    background: var(--bg-input) !important;
    border-radius: 50px;
}

#productManagementSearch:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 15px rgba(255, 106, 0, 0.3);
}

/* Table High Contrast */
.table {
    --bs-table-bg: transparent !important;
    --bs-table-color: #e0e0e0 !important;
    border-color: var(--border-color) !important;
}

#productTableMain thead th {
    background-color: var(--bg-body) !important;
    color: #ccc !important;
    /* Improved Header Visibility */
    border-bottom: 2px solid var(--brand-primary) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 20;
}

#productsTable tr {
    background-color: rgba(255, 255, 255, 0.01) !important;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

#productsTable tr:hover {
    background-color: var(--bg-hover) !important;
}

#productsTable td {
    color: var(--text-main) !important;
    vertical-align: middle;
    padding: 12px 15px;
    border: none;
}


/* =========================================
   6. MODALS
   ========================================= */
.modal-content {
    background: linear-gradient(165deg, #121318 0%, #0a0b0e 100%) !important;
    border: 1px solid rgba(255, 106, 0, 0.2) !important;
    border-radius: 24px !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(20px);
    color: var(--text-main) !important;
}

.modal-header {
    border-bottom: 1px solid var(--border-color) !important;
    padding: 1.5rem !important;
}

.modal-footer {
    border-top: 1px solid var(--border-color) !important;
    padding: 1.5rem !important;
}

.modal-backdrop {
    backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-backdrop.show {
    opacity: 1 !important;
}

/* Light Mode Override */
body.light-mode .modal-content {
    background: #ffffff !important;
    border-color: #dee2e6 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    color: #212529 !important;
}

body.light-mode .modal-header,
body.light-mode .modal-footer {
    border-color: #dee2e6 !important;
}

/* Oridil Button */
.btn-oridil-primary {
    background: var(--brand-primary) !important;
    color: #000 !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    padding: 10px 30px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3) !important;
}

.btn-oridil-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 106, 0, 0.4) !important;
}


/* =========================================
   7. PRINTING & SAFETY
   ========================================= */
@media print {

    .sidebar,
    .d-flex,
    .toast-container,
    button {
        display: none !important;
    }

    .main-content {
        margin: 0;
        padding: 0;
        height: auto;
        overflow: visible;
    }

    #receipt-template {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }

    body {
        background: #fff;
        color: #000;
        overflow: visible;
    }
}


/* =========================================
   8. LOGIN PAGE (High Visibility & Neon)
   ========================================= */
#login-container {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1a1c24 0%, #000000 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.login-brand-icon {
    font-size: 4rem;
    color: var(--brand-primary);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(255, 106, 0, 0.6));
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* Specific Login Inputs (Clear & Bright) */
.login-card .form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    /* Brighter Box */
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    /* Visible Border */
    color: #ffffff !important;
    /* Pure White Text */
    height: 50px;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 600;
}

.login-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    /* Visible Placeholder */
    opacity: 1;
    font-weight: 400;
}

.login-card .form-control:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.15) !important;
}

/* Login Button */
.login-btn {
    width: 100%;
    height: 50px;
    border-radius: 50px;
    background: var(--brand-primary);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    margin-top: 10px;
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.4);
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #ff8533;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 106, 0, 0.6);
}

/* Small Text in Login */
.login-card p.text-muted,
.login-card small {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* =========================================
   10. LIGHT MODE REPAIR KIT (Visibility Fix)
   ========================================= */

/* 1. Header එකේ සහ Clock එකේ "text-white" කියලා තියෙන ඒවා කළු කරන්න */
body.light-mode .text-white {
    color: #1a1a1a !important;
}

/* 2. Dashboard එකේ කොටු වල මාතෘකා (Today's Revenue etc.) */
body.light-mode .stat-title {
    color: #6c757d !important;
    /* තද අළු පාට */
    font-weight: 700;
}

/* 3. කොටු වල පසුබිම (White Card) */
body.light-mode .glass-card,
body.light-mode .stat-card {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05) !important;
    /* හෙවනැල්ලක් දානවා එතකොට කැපිලා පේනවා */
}

/* 4. Recent Activity ලිස්ට් එක */
body.light-mode .activity-item {
    background: #f8f9fa !important;
    /* ලා අළු පාට පසුබිමක් */
    border: 1px solid #e9ecef !important;
}

body.light-mode .activity-item:hover {
    background: #ffffff !important;
    border-color: var(--brand-primary) !important;
}

/* 5. පොඩි අකුරු (Date, Time, Labels) */
body.light-mode .text-muted,
body.light-mode small {
    color: #888888 !important;
}

/* 6. Table Header එක */
body.light-mode #productTableMain thead th {
    background-color: #f1f1f1 !important;
    color: #333 !important;
    border-bottom: 2px solid var(--brand-primary) !important;
}

/* 7. Input Fields (Search Bar etc.) */
body.light-mode .form-control,
body.light-mode .form-select {
    background: #ffffff !important;
    color: #000 !important;
    border: 1px solid #ced4da !important;
}

body.light-mode .form-control::placeholder {
    color: #adb5bd !important;
}

/* =========================================
   12. NEON LIST STYLING (The Final Fix)
   ========================================= */

/* 1. ලිස්ට් එකේ පසුබිම සම්පූර්ණයෙන්ම අයින් කරලා, කාඩ් පෙනුම ගැනීම */
#productList .list-group-item {
    background: rgba(255, 255, 255, 0.05) !important;
    /* වීදුරු වගේ */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    /* බොඳ මායිමක් */
    border-radius: 15px !important;
    /* රවුම් මුලු */
    margin-bottom: 10px;
    /* කාඩ් අතර පරතරය */
    padding: 15px 20px !important;
    transition: all 0.2s ease;
    color: #fff !important;
}

/* 2. මවුස් එක උඩට ගියාම (Hover Effect) */
#productList .list-group-item:hover {
    background: rgba(255, 106, 0, 0.15) !important;
    /* තැඹිලි පාට පසුබිම */
    border: 1px solid var(--brand-primary) !important;
    /* තැඹිලි පාට ඉර */
    transform: translateX(5px) scale(1.01);
    /* පොඩ්ඩක් ඉස්සරහට පනිනවා */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* 3. භාණ්ඩයේ නම (Product Name) */
#productList .list-group-item div:first-child {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* 4. මිල (Price) - තද කොළ පාටින් */
#productList .list-group-item small {
    display: block;
    color: var(--brand-green) !important;
    font-size: 1rem !important;
    font-weight: bold;
    margin-top: 5px;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
    /* පොඩි එළියක් */
}

/* 5. තොගය (Stock Badge) */
#productList .badge {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    font-size: 0.85rem;
}

/* 6. Active Item (Click කළාම) */
#productList .list-group-item:active {
    transform: scale(0.98);
}

/* 7. Search Bar Fix inside POS */
#productSearch {
    height: 50px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--brand-primary) !important;
    color: white !important;
    font-size: 1.1rem;
}

#productSearch::placeholder {
    color: rgba(255, 255, 255, 0.5);
}


/* =========================================
   13. CUSTOMER TABLE STYLING
   ========================================= */

/* Table Rows (Customers) */
#customersTableBody tr {
    background: rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

#customersTableBody tr:hover {
    background: rgba(255, 106, 0, 0.1) !important;
    /* ලා තැඹිලි පාට Hover */
    transform: scale(1.01);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

#customersTableBody td {
    color: #fff !important;
    padding: 15px !important;
    vertical-align: middle;
}

/* Light Mode Fixes for Customers */
body.light-mode #customersTableBody tr {
    background: #ffffff !important;
    border-bottom: 1px solid #dee2e6;
    color: #333 !important;
}

body.light-mode #customersTableBody td {
    color: #333 !important;
}

body.light-mode #customersTableBody tr:hover {
    background: #f8f9fa !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* =========================================
   14. LIGHT MODE TABLE HEADERS FIX (Final)
   ========================================= */

/* Customers සහ Products Table දෙකේම Headers සඳහා */
body.light-mode #customerTableMain thead th,
body.light-mode #productTableMain thead th {
    color: #333333 !important;
    /* තද කළු/අළු පාට අකුරු */
    background-color: #e9ecef !important;
    /* header එකට පොඩි අළු පාට පසුබිමක් */
    border-bottom: 2px solid var(--brand-primary) !important;
    /* යටින් පාට ඉරක් */
    font-weight: 700 !important;
    text-transform: uppercase;
}

/* Light Mode එකේදී Table Rows වල පාට */
body.light-mode #customersTableBody tr,
body.light-mode #productsTable tr {
    border-bottom: 1px solid #dee2e6 !important;
}

/* Hover කළාම පේන පාට (Light Mode) */
body.light-mode #customersTableBody tr:hover,
body.light-mode #productsTable tr:hover {
    background-color: #f1f3f5 !important;
}

/* =========================================
   15. SALES HISTORY SPECIFIC STYLING
   ========================================= */

/* Table Header එක අපේ අනිත් Headers වගේම හදමු */
#salesHistoryTable thead th {
    background-color: var(--bg-body) !important;
    color: var(--text-muted) !important;
    border-bottom: 2px solid var(--brand-primary) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 20;
}

/* Rows වලට අපේ Neon Hover Effect එක දීම */
#salesHistoryTableBody tr {
    background: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

#salesHistoryTableBody tr:hover {
    background: var(--bg-hover) !important;
    transform: translateX(5px);
    border-left: 3px solid var(--brand-primary);
    /* පැත්තෙන් තැඹිලි ඉරක් */
}

#salesHistoryTableBody td {
    color: var(--text-main) !important;
    padding: 15px !important;
    vertical-align: middle;
}

/* Light Mode එකේදී පෙනුම */
body.light-mode #salesHistoryTable thead th {
    background-color: #f1f1f1 !important;
    color: #333 !important;
}

body.light-mode #salesHistoryTableBody tr {
    background: #ffffff !important;
    color: #333 !important;
    border-bottom: 1px solid #dee2e6;
}

/* Table එක Smooth කරන්න */
#salesHistoryTableBody tr {
    will-change: transform;
    /* බ්‍රව්සර් එකට කලින්ම දැනුම් දෙනවා performance හදාගන්න */
    background: rgba(255, 255, 255, 0.03) !important;
}

/* Scroll කරන කොටස */
.table-responsive {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Mobile වලටත් Smooth scrolling */
    scroll-behavior: smooth;
    /* Blur එක අයින් කිරීම (ප්‍රධානම දේ) */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* =========================================
   ALERTS PAGE SPECIFIC STYLING 
   ========================================= */

#alerts .glass-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 106, 0, 0.1) !important;
    border-radius: 15px !important;
}

#alerts .table tbody tr {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s ease;
}

#alerts .table tbody tr:hover {
    background: rgba(255, 106, 0, 0.08) !important;
    transform: translateX(5px);
    box-shadow: inset 4px 0 0 var(--brand-primary);
}

#alerts .table thead.sticky-top {
    z-index: 10;
}

/* =========================================
   FIX: ALERTS TAB BUTTONS OVERLAPPING 
   ========================================= */

#alerts .nav-pills {
    flex-wrap: wrap;
    /* ඉඩ මදි වුණොත් පේළි දෙකකට යන්න දෙනවා */
    gap: 10px !important;
}

#alerts .nav-pills .nav-link {
    width: auto !important;
    /* Sidebar එකේ 48px පළල override කිරීම */
    height: auto !important;
    /* Sidebar එකේ 48px උස override කිරීම */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem !important;
    /* අකුරු වල ප්‍රමාණය හරිගැස්සීම */
    padding: 10px 20px !important;
    /* Button එක ඇතුළේ ඉඩ (Padding) */
    margin-bottom: 0 !important;
    border-radius: 50px !important;
    /* රවුම් හැඩය */
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border-color) !important;
    white-space: nowrap !important;
    /* අකුරු පේළි දෙකකට කැඩෙන එක නවත්වයි */
    transform: none !important;
    /* Sidebar hover effect එක අයින් කිරීම */
}

#alerts .nav-pills .nav-link i {
    font-size: 1.2rem !important;
    /* Icon එකේ සයිස් එක */
    margin-right: 8px !important;
}

#alerts .nav-pills .nav-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

#alerts .nav-pills .nav-link.active {
    background: var(--brand-primary) !important;
    color: #000 !important;
    /* තැඹිලි පසුබිමට කළු අකුරු (කැපී පෙනෙන්න) */
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.4) !important;
    border-color: var(--brand-primary) !important;
}

.oridil-tab-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 20px;
    color: #a0a0a0;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;
}

.oridil-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.oridil-tab-btn.active {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
}

.oridil-tab-btn i {
    font-size: 1.2rem;
    margin-right: 8px;
}

.oridil-tab-btn.active i {
    color: #ffffff !important;
}

/* ==========================================
   ORIDIL PREMIUM POS SCREEN STYLES
   ========================================== */

/* 1. Seamless Search Bar */
.pos-search-wrapper {
    background: var(--bg-card, rgba(128, 128, 128, 0.1));
    border-radius: 50px;
    padding: 5px 20px;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.pos-search-wrapper:focus-within {
    border-color: var(--brand-primary, #FF6A00);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15);
}

.pos-search-wrapper input {
    background: transparent;
    border: none;
    box-shadow: none !important;
    padding: 10px 15px;
    font-size: 1.1rem;
    width: 100%;
    color: inherit;
}

.pos-search-wrapper input:focus {
    outline: none;
}

/* 2. Soft Category Pills */
.pos-category-bar {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 5px 5px 15px 5px;
    /* Added padding to prevent transform clipping */
}

.pos-category-bar::-webkit-scrollbar {
    height: 4px;
}

/* Small but visible scrollbar */
.pos-category-bar::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.2);
    border-radius: 4px;
}

.pos-category-btn {
    white-space: nowrap;
    background: rgba(128, 128, 128, 0.1);
    border: none;
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.2s ease;
    color: inherit;
    opacity: 0.8;
}

.pos-category-btn.active,
.pos-category-btn:hover {
    background: var(--brand-primary, #FF6A00);
    color: #fff;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 106, 0, 0.2);
}

/* 3. Premium Product Cards */
.pos-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
    padding: 5px;
}

.pos-product-card {
    background: var(--bg-card, rgba(128, 128, 128, 0.05));
    border: 1px solid rgba(128, 128, 128, 0.1);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.pos-product-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-primary, #FF6A00);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.pos-product-img-wrap {
    width: 100%;
    padding-top: 75%;
    /* 4:3 Aspect Ratio */
    position: relative;
    background: rgba(128, 128, 128, 0.1);
}

.pos-product-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pos-product-details {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
    /* Prevent text overflow breaking flex */
}

.pos-product-details h6 {
    word-break: break-word;
    /* Ensure long words wrap */
}

/* 4. Unified Cart Panel (Right Side) */
.pos-cart-panel {
    background: var(--bg-card, rgba(128, 128, 128, 0.05));
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(128, 128, 128, 0.1);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    /* Keep children inside */
}

.pos-cart-header {
    padding: 20px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
    flex-shrink: 0;
    /* Prevent squishing when cart grows */
}

.pos-scrollable {
    overflow-y: auto;
}

.pos-scrollable::-webkit-scrollbar {
    width: 4px;
}

.pos-scrollable::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.2);
    border-radius: 10px;
}

/* 5. Cart Action Area */
.pos-cart-totals {
    background: rgba(128, 128, 128, 0.05);
    border-radius: 20px;
    padding: 20px;
    margin: 15px;
    flex-shrink: 0;
    /* Prevent squeezing by cart items */
}

/* Fix overlapping in Cart Items */
.pos-cart-item-row {
    background: rgba(128, 128, 128, 0.05);
    border-radius: 12px;
    border-left: 3px solid var(--brand-primary, #FF6A00);
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping if too narrow */
    align-items: center;
    gap: 10px;
}

.pos-cart-item-info {
    flex: 1;
    min-width: 120px;
    word-break: break-word;
}

.pos-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pos-cart-item-price {
    min-width: 80px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cart-qty-input {
    min-width: 45px;
    text-align: center;
}

.cart-qty-dec,
.cart-qty-inc {
    min-width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fixed Cart Quantity Inputs */
.cart-input-dark {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 2px 4px !important;
    box-shadow: none !important;
}

.cart-qty-input-large {
    width: 70px !important;
    border-radius: 8px !important;
}

.cart-qty-input-small {
    width: 50px !important;
    border-radius: 6px !important;
}

.cart-qty-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    padding: 0 !important;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.cart-qty-btn:hover {
    background: var(--brand-primary) !important;
    color: #000 !important;
    border-color: var(--brand-primary) !important;
}

.cart-qty-input-large::-webkit-inner-spin-button,
.cart-qty-input-small::-webkit-inner-spin-button {
    opacity: 1;
    /* Force stepper arrows if native */
}

/* =========================================
   14. MVC REFACTORING UTILITY CLASSES
   ========================================= */

/* Sizing & Borders */
.rounded-50 {
    border-radius: 50px !important;
}

.rounded-16 {
    border-radius: 16px !important;
}

.max-w-500 {
    max-width: 500px !important;
}

.fs-4rem {
    font-size: 4rem !important;
}

/* Components */
.search-input-transparent {
    box-shadow: none !important;
    background: transparent !important;
}

.btn-icon-40 {
    width: 40px !important;
    height: 40px !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.table-separate {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

/* POS Layout Utilities */
.text-brand-md {
    color: var(--brand-primary, #FF6A00) !important;
    font-size: 1.2rem !important;
}

.icon-muted-btn {
    opacity: 0.5;
    font-size: 1.2rem;
    cursor: pointer;
}

.icon-muted-btn:hover {
    opacity: 1;
    color: var(--brand-primary);
}

.text-gold {
    color: #FFB800 !important;
}

.text-brand {
    color: var(--brand-primary, #FF6A00) !important;
}

.search-box-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(128, 128, 128, 0.2);
}

.btn-gray-ghost {
    background: rgba(128, 128, 128, 0.1) !important;
    color: inherit !important;
}

.btn-gray-ghost:hover {
    background: rgba(128, 128, 128, 0.2) !important;
}

.opacity-70 {
    opacity: 0.7 !important;
}

.opacity-40 {
    opacity: 0.4 !important;
}

.border-danger-soft {
    border: 1px solid rgba(255, 71, 87, 0.3) !important;
}

.border-dashed-brand {
    border: 1px dashed var(--brand-primary) !important;
}

.icon-danger {
    background: rgba(255, 71, 87, 0.15) !important;
    color: var(--brand-danger, #ff4757) !important;
}

.bg-white-5 {
    background: rgba(255, 255, 255, 0.05) !important;
}

.bg-dark-20 {
    background: rgba(0, 0, 0, 0.2) !important;
}

.bg-brand-5 {
    background: rgba(255, 106, 0, 0.05) !important;
}

.panel-custom {
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.panel-custom-lg {
    border-radius: 15px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.w-fit-panel {
    width: fit-content !important;
}

.rounded-8 {
    border-radius: 8px !important;
}

.rounded-15 {
    border-radius: 15px !important;
}

.w-150px {
    width: 150px !important;
}

.w-180px {
    width: 180px !important;
}

.w-200px {
    width: 200px !important;
}

.h-25px {
    height: 25px !important;
}

.h-38px {
    height: 38px !important;
}

.h-300px {
    height: 300px !important;
}

.max-h-350px {
    max-height: 350px !important;
}

.max-h-200px-scroll {
    max-height: 200px;
    overflow-y: auto;
}

.fs-1-5rem {
    font-size: 1.5rem !important;
}

.fs-3rem {
    font-size: 3rem !important;
}

.fs-0-7rem {
    font-size: 0.7rem !important;
}

.letter-spacing-2 {
    letter-spacing: 2px !important;
}

.alert-danger-custom {
    background: rgba(255, 0, 0, 0.1) !important;
    border: 1px solid red !important;
    color: #ff6b6b !important;
    font-size: 0.9rem !important;
}

.text-accent-primary {
    color: var(--accent-primary) !important;
}

/* Custom Borders & Backgrounds for Reports */
.border-bottom-white-5 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.border-left-brand {
    border-radius: 12px !important;
    border-left: 4px solid var(--brand-primary) !important;
}

.border-left-success {
    border-radius: 12px !important;
    border-left: 4px solid #28a745 !important;
}

.border-left-danger {
    border-radius: 12px !important;
    border-left: 4px solid #dc3545 !important;
}

.border-left-warning {
    border-radius: 12px !important;
    border-left: 4px solid #ffc107 !important;
}

.border-left-info {
    border-radius: 12px !important;
    border-left: 4px solid #17a2b8 !important;
}

.panel-gradient-brand {
    border-radius: 15px !important;
    background: linear-gradient(145deg, rgba(255, 106, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%) !important;
    border: 1px solid rgba(255, 106, 0, 0.2) !important;
}

/* Sidebar Utilities */
.sidebar-bottom-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.hidden-badge {
    display: none;
    font-size: 0.6rem;
    padding: 3px 6px;
}

.text-brand-danger {
    color: var(--brand-danger, #ff4757) !important;
}

.text-muted-custom {
    color: var(--text-muted) !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

.summary-row-text {
    opacity: 0.8;
    font-size: 0.95rem;
}

.discount-row {
    border-bottom: 1px dashed rgba(128, 128, 128, 0.3);
    font-size: 0.95rem;
    cursor: pointer;
    color: var(--brand-primary, #FF6A00);
}

/* POS Action Buttons */
.btn-danger-soft {
    background: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
    border-radius: 10px !important;
}

.btn-danger-soft:hover {
    background: rgba(220, 53, 69, 0.2) !important;
}

.btn-info-soft {
    background: rgba(23, 162, 184, 0.1) !important;
    color: #17a2b8 !important;
    border-radius: 10px !important;
}

.btn-info-soft:hover {
    background: rgba(23, 162, 184, 0.2) !important;
}

.btn-warning-soft {
    background: rgba(255, 193, 7, 0.1) !important;
    color: #ffc107 !important;
    border-radius: 10px !important;
}

.btn-warning-soft:hover {
    background: rgba(255, 193, 7, 0.2) !important;
}

.btn-pay-now {
    background: var(--brand-primary, #FF6A00) !important;
    color: #fff !important;
    border-radius: 12px !important;
    border: none !important;
}

/* Modal Customizations */
.modal-content-custom {
    border-radius: 16px !important;
    border: 1px solid rgba(255, 106, 0, 0.3) !important;
}

.modal-header-custom {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.modal-footer-custom {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.btn-modal-close {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-radius: 10px !important;
}

.btn-brand {
    background: var(--brand-primary, #FF6A00) !important;
    color: white !important;
    border-radius: 10px !important;
}

/* Scroll Configs */
.max-h-250-scroll {
    max-height: 250px;
    overflow-y: auto;
}

.max-h-400-scroll {
    max-height: 400px;
    overflow-y: auto;
}

/* =========================================
   COMPREHENSIVE LIGHT MODE OVERRIDES
   All pages, tables, panels, modals, badges
   ========================================= */

/* --- Global Table Fixes (Light Mode) --- */
body.light-mode .table,
body.light-mode .table-dark {
    --bs-table-bg: transparent !important;
    --bs-table-color: #333 !important;
    --bs-table-hover-bg: #f8f9fa !important;
    --bs-table-hover-color: #333 !important;
    background-color: transparent !important;
    color: #333 !important;
}

body.light-mode .table-dark thead,
body.light-mode .table thead {
    background-color: #f1f3f5 !important;
}

body.light-mode .table-dark thead th,
body.light-mode .table thead th {
    background-color: #f1f3f5 !important;
    color: #555 !important;
    border-bottom: 2px solid var(--brand-primary) !important;
}

body.light-mode .table-dark tbody tr,
body.light-mode .table tbody tr {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e9ecef !important;
    color: #333 !important;
}

body.light-mode .table-dark tbody tr:hover,
body.light-mode .table tbody tr:hover {
    background-color: #f8f9fa !important;
}

body.light-mode .table-dark td,
body.light-mode .table td {
    color: #333 !important;
}

/* --- Global Text Color Fixes (Light Mode) --- */
body.light-mode .text-white-50 {
    color: #6c757d !important;
}

body.light-mode .fw-bold.text-white,
body.light-mode .text-white.fw-bold {
    color: #212529 !important;
}

/* Preserve brand colors in light mode */
body.light-mode .text-brand {
    color: var(--brand-primary) !important;
}

body.light-mode .text-brand-danger {
    color: var(--brand-danger) !important;
}

body.light-mode .text-warning {
    color: #e6a800 !important;
}

body.light-mode .text-danger {
    color: #dc3545 !important;
}

body.light-mode .text-success {
    color: #198754 !important;
}

/* --- BG-Dark Panels Fix (Light Mode) --- */
body.light-mode .bg-dark {
    background-color: #ffffff !important;
}

body.light-mode .bg-dark-20 {
    background: rgba(0, 0, 0, 0.03) !important;
}

body.light-mode .bg-brand-5 {
    background: rgba(255, 106, 0, 0.06) !important;
}

body.light-mode .bg-white-5 {
    background: rgba(0, 0, 0, 0.02) !important;
}

/* --- Panel & Card Borders (Light Mode) --- */
body.light-mode .panel-custom {
    border: 1px solid #dee2e6 !important;
    background: #ffffff !important;
}

body.light-mode .panel-custom-lg {
    border: 1px solid #dee2e6 !important;
    background: #ffffff !important;
}

body.light-mode .border-secondary {
    border-color: #dee2e6 !important;
}

/* --- Input & Search Fixes (Light Mode) --- */
body.light-mode .search-input-transparent {
    background: transparent !important;
    color: #333 !important;
}

body.light-mode .search-input-transparent::placeholder {
    color: #adb5bd !important;
}

/* --- Badge Fixes (Light Mode) --- */
body.light-mode .badge.bg-danger {
    color: #fff !important;
}

body.light-mode .badge.bg-success {
    color: #fff !important;
}

body.light-mode .badge.border.border-white-50,
body.light-mode .badge.border.text-white-50 {
    border-color: #adb5bd !important;
    color: #555 !important;
}

body.light-mode .badge.border.border-secondary.text-secondary {
    border-color: #adb5bd !important;
    color: #555 !important;
}

/* --- Button Fixes (Light Mode) --- */
body.light-mode .btn-outline-light {
    color: #333 !important;
    border-color: #ced4da !important;
}

body.light-mode .btn-outline-light:hover {
    background: #e9ecef !important;
    color: #000 !important;
}

body.light-mode .btn-transparent {
    color: #333 !important;
}

/* --- Returns Page (Light Mode) --- */
body.light-mode #returns .glass-card.bg-dark {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
}

body.light-mode #returns .w-fit-panel {
    background: #f1f3f5 !important;
    border: 1px solid #dee2e6 !important;
}

body.light-mode #returns .card-header {
    background: rgba(255, 106, 0, 0.05) !important;
    border-color: #dee2e6 !important;
}

body.light-mode #returns .card-footer {
    background: #f8f9fa !important;
    border-color: #dee2e6 !important;
}

body.light-mode #returns .form-control.bg-dark,
body.light-mode #returns .form-select.bg-dark {
    background: #ffffff !important;
    color: #333 !important;
    border-color: #ced4da !important;
}

body.light-mode #returns .return-qty-input,
body.light-mode #returns .sup-return-qty-input {
    background: #f8f9fa !important;
    color: #333 !important;
}

/* --- Sales History Page (Light Mode) --- */
body.light-mode #sales_history .glass-card.bg-dark {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
}

body.light-mode #salesHistoryTable thead th,
body.light-mode #returnsHistoryTable thead th,
body.light-mode #supplierReturnsHistoryTable thead th {
    background-color: #f1f3f5 !important;
    color: #555 !important;
    border-bottom: 2px solid var(--brand-primary) !important;
}

body.light-mode #salesHistoryTableBody tr,
body.light-mode #returnsHistoryTableBody tr,
body.light-mode #supplierReturnsHistoryTableBody tr {
    background: #ffffff !important;
    border-bottom: 1px solid #e9ecef !important;
}

body.light-mode #salesHistoryTableBody tr:hover,
body.light-mode #returnsHistoryTableBody tr:hover,
body.light-mode #supplierReturnsHistoryTableBody tr:hover {
    background: #f8f9fa !important;
    transform: translateX(3px);
    border-left: 3px solid var(--brand-primary);
}

body.light-mode #salesHistoryTableBody td,
body.light-mode #returnsHistoryTableBody td,
body.light-mode #supplierReturnsHistoryTableBody td {
    color: #333 !important;
}

/* --- Modal Fixes (Light Mode) --- */
body.light-mode .modal-content .text-white {
    color: #333 !important;
}

body.light-mode .modal-content .text-white-50 {
    color: #6c757d !important;
}

body.light-mode .modal-header {
    border-color: #dee2e6 !important;
}

body.light-mode .modal-footer {
    border-color: #dee2e6 !important;
}

body.light-mode .modal-content .table-dark {
    background: transparent !important;
    color: #333 !important;
}

body.light-mode .modal-content .glass-card.bg-dark {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
}

/* --- Sidebar (Light Mode) --- */
body.light-mode .sidebar {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .sidebar .nav-link {
    color: #6c757d !important;
}

body.light-mode .sidebar .nav-link:hover {
    background: #f1f3f5 !important;
    color: #333 !important;
}

body.light-mode .sidebar .nav-link.active {
    background: var(--brand-primary) !important;
    color: #fff !important;
}

body.light-mode .sidebar .nav-link::after {
    background: #ffffff !important;
    color: #333 !important;
    border: 1px solid #dee2e6 !important;
}

/* --- POS Screen (Light Mode) --- */
body.light-mode .pos-cart-panel {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
}

body.light-mode .pos-cart-header {
    border-color: #dee2e6 !important;
}

body.light-mode .pos-cart-item-row {
    background: #f8f9fa !important;
}

body.light-mode .pos-cart-totals {
    background: #f1f3f5 !important;
}

body.light-mode .pos-product-card {
    background: #ffffff !important;
    border: 1px solid #e9ecef !important;
}

body.light-mode .pos-product-card:hover {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .pos-search-wrapper {
    background: #f1f3f5 !important;
    border: 1px solid #dee2e6 !important;
}

body.light-mode .pos-category-btn {
    background: #e9ecef !important;
    color: #555 !important;
}

body.light-mode .pos-category-btn.active,
body.light-mode .pos-category-btn:hover {
    background: var(--brand-primary) !important;
    color: #fff !important;
}

body.light-mode .cart-input-dark {
    background: #f1f3f5 !important;
    border: 1px solid #ced4da !important;
    color: #333 !important;
}

body.light-mode .cart-qty-btn {
    background: #e9ecef !important;
    border: 1px solid #ced4da !important;
    color: #333 !important;
}

body.light-mode .cart-qty-btn:hover {
    background: var(--brand-primary) !important;
    color: #fff !important;
    border-color: var(--brand-primary) !important;
}

/* --- Reports Page (Light Mode) --- */
body.light-mode .panel-gradient-brand {
    background: linear-gradient(145deg, rgba(255, 106, 0, 0.06) 0%, #ffffff 100%) !important;
    border: 1px solid #dee2e6 !important;
}

body.light-mode .border-left-brand,
body.light-mode .border-left-success,
body.light-mode .border-left-danger,
body.light-mode .border-left-warning,
body.light-mode .border-left-info {
    background: #ffffff !important;
}

/* --- Suppliers Page (Light Mode) --- */
body.light-mode .oridil-tab-btn {
    background: #f1f3f5 !important;
    border: 1px solid #dee2e6 !important;
    color: #555 !important;
}

body.light-mode .oridil-tab-btn:hover {
    background: #e9ecef !important;
    color: #333 !important;
}

body.light-mode .oridil-tab-btn.active {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #ffffff !important;
}

/* --- Alerts Page (Light Mode) --- */
body.light-mode #alerts .glass-card {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
}

body.light-mode #alerts .nav-pills .nav-link {
    background: #f1f3f5 !important;
    color: #555 !important;
    border: 1px solid #dee2e6 !important;
}

body.light-mode #alerts .nav-pills .nav-link:hover {
    background: #e9ecef !important;
    color: #333 !important;
}

body.light-mode #alerts .nav-pills .nav-link.active {
    background: var(--brand-primary) !important;
    color: #000 !important;
    border-color: var(--brand-primary) !important;
}

/* --- Profile & Settings (Light Mode) --- */
body.light-mode .avatar-circle {
    background: #f1f3f5 !important;
    border: 1px solid #dee2e6 !important;
    color: var(--brand-primary) !important;
}

/* --- Data Export (Light Mode) --- */
body.light-mode .btn-gray-ghost {
    background: #f1f3f5 !important;
    color: #333 !important;
}

body.light-mode .btn-gray-ghost:hover {
    background: #e9ecef !important;
}

/* --- Product List in POS (Light Mode) --- */
body.light-mode #productList .list-group-item {
    background: #ffffff !important;
    border: 1px solid #e9ecef !important;
    color: #333 !important;
}

body.light-mode #productList .list-group-item:hover {
    background: rgba(255, 106, 0, 0.06) !important;
    border-color: var(--brand-primary) !important;
}

body.light-mode #productList .list-group-item small {
    color: #198754 !important;
    text-shadow: none !important;
}

body.light-mode #productList .badge {
    background-color: #f1f3f5 !important;
    border: 1px solid #dee2e6 !important;
    color: #555 !important;
}

/* --- Product Search in POS (Light Mode) --- */
body.light-mode #productSearch {
    background: #ffffff !important;
    border: 1px solid var(--brand-primary) !important;
    color: #333 !important;
}

body.light-mode #productSearch::placeholder {
    color: #adb5bd !important;
}

/* --- Header Elements (Light Mode) --- */
body.light-mode .glass-card.px-3.py-2 {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
}

body.light-mode .font-monospace.text-white {
    color: #333 !important;
}

body.light-mode #page-title {
    color: #212529 !important;
}

/* --- Misc (Light Mode) --- */
body.light-mode .icon-muted-btn {
    color: #6c757d;
}

body.light-mode .icon-muted-btn:hover {
    color: var(--brand-primary);
}

body.light-mode .spinner-border.text-brand {
    color: var(--brand-primary) !important;
}

body.light-mode .btn-close-white {
    filter: none !important;
}

body.light-mode .discount-row {
    border-bottom-color: #dee2e6 !important;
}