/* Maharaja Samosa GFXToolz-Style Premium Glassmorphism Theme Stylesheet */

:root {
    --bs-primary: #000000;
    --bs-primary-rgb: 0, 0, 0;
    --bs-link-color: #000000;
    --bs-link-hover-color: #444444;
    
    /* Premium Color Identity - Monochrome */
    --theme-primary: #000000; 
    --theme-teal: #444444; 
    --theme-accent: #888888; 
    --theme-purple: #333333; 
    
    --theme-text-heading: #000000;
    --theme-text-muted: #666666;
    --theme-border-color: rgba(0, 0, 0, 0.15);
    --theme-input-border: rgba(0, 0, 0, 0.2);
    
    /* Status Badges - Monochrome */
    --badge-success-bg: #e2e2e2;
    --badge-success-color: #111111;
    --badge-warning-bg: #cccccc;
    --badge-warning-color: #111111;
    --badge-danger-bg: #000000;
    --badge-danger-color: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8f9fa !important;
    color: var(--theme-text-heading);
    min-height: 100vh;
    font-size: 13px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Glassmorphism Cards */
.card {
    background: #ffffff !important;
    border: 1px solid #ebebeb !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02) !important;
    border-radius: 16px !important;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Top Accent Bar inside glass cards */
.card-accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 10;
}
.accent-stock    { background: linear-gradient(90deg, #3B82F6, #60A5FA); }  /* Blue   — Total inventory */
.accent-sold     { background: linear-gradient(90deg, #10B981, #34D399); }  /* Green  — Sales */
.accent-remaining{ background: linear-gradient(90deg, #F59E0B, #FCD34D); }  /* Amber  — Watch remaining */
.accent-revenue  { background: linear-gradient(90deg, #14B8A6, #2DD4BF); }  /* Teal   — Revenue/money */
.accent-wastage  { background: linear-gradient(90deg, #EF4444, #F87171); }  /* Red    — Wastage/loss */
.accent-pending  { background: linear-gradient(90deg, #F97316, #FB923C); }  /* Orange — Pending/warning */

.card-body {
    padding: 14px !important;
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    padding: 10px 14px !important;
}

/* Typography Upgrades */
h1, h2, h3, h4, h5, h6 {
    color: var(--theme-text-heading);
}

.page-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.card-label {
    font-size: 10px;
    color: var(--theme-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.card-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--theme-text-heading);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.card-value-unit {
    font-size: 12px;
    font-weight: 600;
    color: var(--theme-text-muted);
    margin-left: 2px;
}

/* Section titles */
.section-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--theme-text-heading);
}

/* Trend indicators */
.trend-indicator {
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 50px;
}

.trend-up {
    color: var(--badge-success-color);
    background-color: var(--badge-success-bg);
}
.trend-down {
    color: var(--badge-danger-color);
    background-color: var(--badge-danger-bg);
}
.trend-flat {
    color: var(--theme-text-muted);
    background-color: rgba(0, 0, 0, 0.05);
}

/* Status Badges */
.badge-stock-in, .badge-status-paid {
    background-color: var(--badge-success-bg) !important;
    color: var(--badge-success-color) !important;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px !important;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    border: none;
}

.badge-stock-low, .badge-status-pending {
    background-color: var(--badge-warning-bg) !important;
    color: var(--badge-warning-color) !important;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px !important;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    border: none;
}

.badge-stock-out {
    background-color: var(--badge-danger-bg) !important;
    color: var(--badge-danger-color) !important;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px !important;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    border: none;
}

/* Status dots animations */
@keyframes badge-pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.25); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.pulse-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background-color: currentColor;
    border-radius: 50%;
    margin-right: 6px;
    animation: badge-pulse 1.8s infinite ease-in-out;
}

/* Premium Steppers */
.stepper-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(232, 114, 74, 0.15) !important;
    background: rgba(255, 255, 255, 0.8) !important;
    color: var(--theme-text-heading);
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 150ms ease;
}

.stepper-btn:hover {
    background: var(--theme-secondary) !important;
    color: var(--theme-primary) !important;
    transform: scale(1.05);
}

.stepper-input {
    width: 75px;
    padding: 0 4px;
    text-align: center;
    font-weight: 800;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9);
    height: 34px;
    font-size: 13px;
    border-radius: 8px;
}

/* Forms & Inputs */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--theme-input-border);
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--theme-text-heading);
    font-size: 13px;
    transition: all 150ms ease;
}

.form-control:focus, .form-select:focus {
    border-color: rgba(232, 114, 74, 0.6);
    box-shadow: 0 0 0 0.18rem rgba(232, 114, 74, 0.2);
    background-color: #ffffff;
}

.input-group-text {
    border-radius: 10px;
    border: 1px solid var(--theme-input-border);
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--theme-text-muted);
}

/* Stat Circle Icons */
.stat-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
.stat-icon-orange { background: #FFEFE6; color: var(--theme-primary); }
.stat-icon-green { background: #E6F7F0; color: var(--theme-teal); }
.stat-icon-blue { background: #EEF4FF; color: #4A80C4; }
.stat-icon-teal { background: #E8F9F4; color: var(--theme-teal); }

/* Table styling with rgba dividers */
.table-custom {
    width: 100%;
    border-collapse: collapse;
}

.table-custom thead th {
    background-color: transparent;
    border: none;
    font-weight: 700;
    color: var(--theme-text-muted);
    padding: 8px 12px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid rgba(232, 114, 74, 0.1);
}

.table-custom tbody tr {
    border-bottom: 1px solid rgba(232, 114, 74, 0.05);
    background-color: transparent;
    transition: background-color 150ms ease;
}

.table-custom tbody tr:last-child {
    border-bottom: none;
}

.table-custom tbody tr:hover td {
    background-color: #ffffff !important;
}

.table-custom tbody td {
    padding: 8px 12px;
    color: var(--theme-text-heading);
    font-size: 13px;
    vertical-align: middle;
}

/* Premium Button Styles */
.btn {
    border-radius: 50px !important; /* Full pill button */
    font-weight: 600;
    font-size: 12px;
    padding: 6px 14px;
    border: none;
    transition: all 150ms ease;
}

.btn:hover {
    filter: brightness(1.08);
    transform: scale(1.02);
}

.btn-primary {
    background-color: var(--theme-primary);
    color: #ffffff;
    border: 1px solid var(--theme-primary);
}

.btn-secondary-custom {
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--theme-text-heading);
    border: 1px solid rgba(232, 114, 74, 0.15);
}

.btn-secondary-custom:hover {
    background-color: #ffffff;
    color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.btn-teal {
    background-color: var(--theme-teal);
    color: #ffffff;
    border: 1px solid var(--theme-teal);
}

/* Payment mode segmented button styles */
.btn-check + .btn-outline-dark,
.btn-check + .btn-outline-teal {
    border: 1px solid currentColor !important;
    border-radius: 6px !important;
    padding: 8px 16px;
    font-size: 13px;
    background-color: transparent;
    color: var(--theme-text-muted);
}

.btn-check + .btn-outline-dark:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--theme-text-heading);
}

.btn-check + .btn-outline-teal:hover {
    background-color: rgba(13, 148, 136, 0.05);
    color: #0d9488;
}

.btn-check:checked + .btn-outline-dark {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

.btn-check:checked + .btn-outline-teal {
    background-color: #0d9488 !important;
    color: #ffffff !important;
    border-color: #0d9488 !important;
}

/* Fixed left GFXToolz Sidebar */
.sidebar {
    width: 220px;
    background: #ffffff !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-right: 1px solid #ebebeb !important;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.02) !important;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
}

.sidebar .nav-menu-title {
    margin-top: 10px !important;
    margin-bottom: 2px !important;
}

.sidebar {
    display: none !important;
}

.content-area {
    margin-left: 0 !important;
    padding: 16px 24px;
    width: 100% !important;
    max-width: 100% !important;
}

/* Sidebar links */
.nav-link-custom {
    display: flex;
    align-items: center;
    height: 33px;
    padding: 0 12px;
    margin: 3px 0;
    border-radius: 8px; /* Slightly rounded for list link */
    color: var(--theme-text-muted);
    font-weight: 500;
    text-decoration: none;
    transition: all 200ms ease;
    font-size: 12.5px;
    position: relative;
}

.nav-link-custom i,
.nav-link-custom svg {
    margin-right: 10px;
    width: 15px;
    height: 15px;
    color: var(--theme-text-muted);
    stroke-width: 1.8;
}

.nav-link-custom:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--theme-primary);
}

.nav-link-custom:hover i {
    color: var(--theme-primary);
}

.nav-link-custom.active {
    background-color: rgba(0, 0, 0, 0.08);
    color: var(--theme-primary);
    font-weight: 600;
}

.nav-link-custom.active i,
.nav-link-custom.active svg {
    color: var(--theme-primary);
}

.nav-link-custom.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background-color: var(--theme-primary);
    border-radius: 0 3px 3px 0;
}

/* Mobile bottom nav drawer */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 999;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.03);
}

.mobile-bottom-nav .nav-link-custom {
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
    margin: 0;
    font-size: 10px;
    height: 100%;
    border-radius: 0;
    background-color: transparent !important;
}

.mobile-bottom-nav .nav-link-custom::before {
    display: none;
}

.mobile-bottom-nav .nav-link-custom i {
    margin-right: 0;
    margin-bottom: 3px;
    width: 20px;
    height: 20px;
}

/* Sticky Float Preview Bar */
.sticky-mobile-btn {
    position: fixed;
    bottom: 80px;
    left: 16px;
    right: 16px;
    z-index: 998;
}

/* Order History Left Accent Bars */
.pending-row-accent {
    border-left: 4px solid rgba(244, 162, 97, 0.8) !important;
}
.completed-row-accent {
    border-left: 4px solid rgba(61, 171, 142, 0.8) !important;
}

/* Responsive Overrides */
@media (max-width: 767.98px) {
    .sidebar {
        display: none;
    }
    
    .content-area {
        margin-left: 0;
        padding: 16px 12px 160px 12px;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Bottom sheets modal */
    .modal.fade .modal-dialog {
        transform: translate(0, 100%);
        transition: transform 0.3s ease-out;
        margin: 0;
        max-width: 100%;
        width: 100%;
        position: fixed;
        bottom: 0;
    }
    .modal.show .modal-dialog {
        transform: translate(0, 0);
    }
    .modal-content {
        border-radius: 24px 24px 0 0 !important;
        max-height: 85vh;
        overflow-y: auto;
    }
    .modal-header {
        position: relative;
        padding-top: 24px !important;
    }
    .modal-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 44px;
        height: 4px;
        background-color: rgba(232, 114, 74, 0.15);
        border-radius: 2px;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .sidebar {
        width: 72px;
        padding: 24px 8px;
        align-items: center;
    }
    
    .sidebar .sidebar-logo-text, .sidebar hr, .sidebar span, .sidebar .daily-progress-tracker, .sidebar .nav-menu-title,
    .sidebar .sidebar-user-details, .sidebar .sidebar-logout-btn {
        display: none !important;
    }
    
    .sidebar .sidebar-user-info {
        justify-content: center !important;
        width: 100%;
        padding: 0 !important;
    }
    
    /* Tablet sidebar: icon-only with color-coded sections */
    .sidebar .nav-link-custom {
        width: 44px;
        height: 44px;
        justify-content: center;
        padding: 0;
        border-radius: 12px;
        transition: all 150ms ease;
        position: relative;
    }

    /* Tooltip on hover showing the page name */
    .sidebar .nav-link-custom::after {
        content: attr(data-label);
        position: absolute;
        left: 56px;
        top: 50%;
        transform: translateY(-50%);
        background: #1f2937;
        color: #fff;
        font-size: 11px;
        font-weight: 600;
        padding: 4px 10px;
        border-radius: 6px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 150ms ease;
        z-index: 9999;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    .sidebar .nav-link-custom:hover::after {
        opacity: 1;
    }

    /* Dashboard — dark */
    .sidebar .nav-link-custom[href="dashboard.php"]:hover,
    .sidebar .nav-link-custom[href="dashboard.php"].active {
        background-color: #111827 !important;
    }
    .sidebar .nav-link-custom[href="dashboard.php"]:hover i,
    .sidebar .nav-link-custom[href="dashboard.php"]:hover svg,
    .sidebar .nav-link-custom[href="dashboard.php"].active i,
    .sidebar .nav-link-custom[href="dashboard.php"].active svg {
        color: #fff !important;
    }

    /* Section: Billing & POS — Blue */
    .sidebar .nav-link-custom[href="order_entry.php"],
    .sidebar .nav-link-custom[href="dine_in_order.php"] {
        color: #2563eb;
    }
    .sidebar .nav-link-custom[href="order_entry.php"] i,
    .sidebar .nav-link-custom[href="order_entry.php"] svg,
    .sidebar .nav-link-custom[href="dine_in_order.php"] i,
    .sidebar .nav-link-custom[href="dine_in_order.php"] svg {
        color: #2563eb !important;
    }
    .sidebar .nav-link-custom[href="order_entry.php"]:hover,
    .sidebar .nav-link-custom[href="dine_in_order.php"]:hover,
    .sidebar .nav-link-custom[href="order_entry.php"].active,
    .sidebar .nav-link-custom[href="dine_in_order.php"].active {
        background-color: #2563eb !important;
    }
    .sidebar .nav-link-custom[href="order_entry.php"]:hover i,
    .sidebar .nav-link-custom[href="order_entry.php"]:hover svg,
    .sidebar .nav-link-custom[href="dine_in_order.php"]:hover i,
    .sidebar .nav-link-custom[href="dine_in_order.php"]:hover svg,
    .sidebar .nav-link-custom[href="order_entry.php"].active i,
    .sidebar .nav-link-custom[href="order_entry.php"].active svg,
    .sidebar .nav-link-custom[href="dine_in_order.php"].active i,
    .sidebar .nav-link-custom[href="dine_in_order.php"].active svg {
        color: #fff !important;
    }

    /* Section: Daily Stock — Green */
    .sidebar .nav-link-custom[href="stock_entry.php"],
    .sidebar .nav-link-custom[href="dine_in_stock.php"] {
        color: #16a34a;
    }
    .sidebar .nav-link-custom[href="stock_entry.php"] i,
    .sidebar .nav-link-custom[href="stock_entry.php"] svg,
    .sidebar .nav-link-custom[href="dine_in_stock.php"] i,
    .sidebar .nav-link-custom[href="dine_in_stock.php"] svg {
        color: #16a34a !important;
    }
    .sidebar .nav-link-custom[href="stock_entry.php"]:hover,
    .sidebar .nav-link-custom[href="dine_in_stock.php"]:hover,
    .sidebar .nav-link-custom[href="stock_entry.php"].active,
    .sidebar .nav-link-custom[href="dine_in_stock.php"].active {
        background-color: #16a34a !important;
    }
    .sidebar .nav-link-custom[href="stock_entry.php"]:hover i,
    .sidebar .nav-link-custom[href="stock_entry.php"]:hover svg,
    .sidebar .nav-link-custom[href="dine_in_stock.php"]:hover i,
    .sidebar .nav-link-custom[href="dine_in_stock.php"]:hover svg,
    .sidebar .nav-link-custom[href="stock_entry.php"].active i,
    .sidebar .nav-link-custom[href="stock_entry.php"].active svg,
    .sidebar .nav-link-custom[href="dine_in_stock.php"].active i,
    .sidebar .nav-link-custom[href="dine_in_stock.php"].active svg {
        color: #fff !important;
    }

    /* Section: Sales History — Amber */
    .sidebar .nav-link-custom[href="orders_history.php"],
    .sidebar .nav-link-custom[href="dine_in_history.php"],
    .sidebar .nav-link-custom[href="pending_orders.php"] {
        color: #d97706;
    }
    .sidebar .nav-link-custom[href="orders_history.php"] i,
    .sidebar .nav-link-custom[href="orders_history.php"] svg,
    .sidebar .nav-link-custom[href="dine_in_history.php"] i,
    .sidebar .nav-link-custom[href="dine_in_history.php"] svg,
    .sidebar .nav-link-custom[href="pending_orders.php"] i,
    .sidebar .nav-link-custom[href="pending_orders.php"] svg {
        color: #d97706 !important;
    }
    .sidebar .nav-link-custom[href="orders_history.php"]:hover,
    .sidebar .nav-link-custom[href="dine_in_history.php"]:hover,
    .sidebar .nav-link-custom[href="pending_orders.php"]:hover,
    .sidebar .nav-link-custom[href="orders_history.php"].active,
    .sidebar .nav-link-custom[href="dine_in_history.php"].active,
    .sidebar .nav-link-custom[href="pending_orders.php"].active {
        background-color: #d97706 !important;
    }
    .sidebar .nav-link-custom[href="orders_history.php"]:hover i,
    .sidebar .nav-link-custom[href="orders_history.php"]:hover svg,
    .sidebar .nav-link-custom[href="dine_in_history.php"]:hover i,
    .sidebar .nav-link-custom[href="dine_in_history.php"]:hover svg,
    .sidebar .nav-link-custom[href="pending_orders.php"]:hover i,
    .sidebar .nav-link-custom[href="pending_orders.php"]:hover svg,
    .sidebar .nav-link-custom[href="orders_history.php"].active i,
    .sidebar .nav-link-custom[href="orders_history.php"].active svg,
    .sidebar .nav-link-custom[href="dine_in_history.php"].active i,
    .sidebar .nav-link-custom[href="dine_in_history.php"].active svg,
    .sidebar .nav-link-custom[href="pending_orders.php"].active i,
    .sidebar .nav-link-custom[href="pending_orders.php"].active svg {
        color: #fff !important;
    }

    /* Section: Products — Purple */
    .sidebar .nav-link-custom[href="samosa_types.php"],
    .sidebar .nav-link-custom[href="dine_in_items.php"] {
        color: #7c3aed;
    }
    .sidebar .nav-link-custom[href="samosa_types.php"] i,
    .sidebar .nav-link-custom[href="samosa_types.php"] svg,
    .sidebar .nav-link-custom[href="dine_in_items.php"] i,
    .sidebar .nav-link-custom[href="dine_in_items.php"] svg {
        color: #7c3aed !important;
    }
    .sidebar .nav-link-custom[href="samosa_types.php"]:hover,
    .sidebar .nav-link-custom[href="dine_in_items.php"]:hover,
    .sidebar .nav-link-custom[href="samosa_types.php"].active,
    .sidebar .nav-link-custom[href="dine_in_items.php"].active {
        background-color: #7c3aed !important;
    }
    .sidebar .nav-link-custom[href="samosa_types.php"]:hover i,
    .sidebar .nav-link-custom[href="samosa_types.php"]:hover svg,
    .sidebar .nav-link-custom[href="dine_in_items.php"]:hover i,
    .sidebar .nav-link-custom[href="dine_in_items.php"]:hover svg,
    .sidebar .nav-link-custom[href="samosa_types.php"].active i,
    .sidebar .nav-link-custom[href="samosa_types.php"].active svg,
    .sidebar .nav-link-custom[href="dine_in_items.php"].active i,
    .sidebar .nav-link-custom[href="dine_in_items.php"].active svg {
        color: #fff !important;
    }

    /* Section: Reports & Setup — Rose */
    .sidebar .nav-link-custom[href="reports.php"],
    .sidebar .nav-link-custom[href="dine_in_reports.php"],
    .sidebar .nav-link-custom[href="dine_in_settings.php"] {
        color: #e11d48;
    }
    .sidebar .nav-link-custom[href="reports.php"] i,
    .sidebar .nav-link-custom[href="reports.php"] svg,
    .sidebar .nav-link-custom[href="dine_in_reports.php"] i,
    .sidebar .nav-link-custom[href="dine_in_reports.php"] svg,
    .sidebar .nav-link-custom[href="dine_in_settings.php"] i,
    .sidebar .nav-link-custom[href="dine_in_settings.php"] svg {
        color: #e11d48 !important;
    }
    .sidebar .nav-link-custom[href="reports.php"]:hover,
    .sidebar .nav-link-custom[href="dine_in_reports.php"]:hover,
    .sidebar .nav-link-custom[href="dine_in_settings.php"]:hover,
    .sidebar .nav-link-custom[href="reports.php"].active,
    .sidebar .nav-link-custom[href="dine_in_reports.php"].active,
    .sidebar .nav-link-custom[href="dine_in_settings.php"].active {
        background-color: #e11d48 !important;
    }
    .sidebar .nav-link-custom[href="reports.php"]:hover i,
    .sidebar .nav-link-custom[href="reports.php"]:hover svg,
    .sidebar .nav-link-custom[href="dine_in_reports.php"]:hover i,
    .sidebar .nav-link-custom[href="dine_in_reports.php"]:hover svg,
    .sidebar .nav-link-custom[href="dine_in_settings.php"]:hover i,
    .sidebar .nav-link-custom[href="dine_in_settings.php"]:hover svg,
    .sidebar .nav-link-custom[href="reports.php"].active i,
    .sidebar .nav-link-custom[href="reports.php"].active svg,
    .sidebar .nav-link-custom[href="dine_in_reports.php"].active i,
    .sidebar .nav-link-custom[href="dine_in_reports.php"].active svg,
    .sidebar .nav-link-custom[href="dine_in_settings.php"].active i,
    .sidebar .nav-link-custom[href="dine_in_settings.php"].active svg {
        color: #fff !important;
    }

    /* Active state: always fill with section color (override generic black) */
    .sidebar .nav-link-custom.active {
        color: #fff !important;
    }
    .sidebar .nav-link-custom.active::before {
        display: none !important;
    }

    .sidebar .nav-link-custom i,
    .sidebar .nav-link-custom svg {
        margin-right: 0;
    }

    .content-area {
        margin-left: 72px;
        padding: 20px;
    }
}

/* Prevent accidental text selections in top navbar */
.top-navbar {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Snapshot Table Column Highlighting Styles - Premium Refresh */
#snapshotTable {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

#snapshotTable thead th {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.12) !important;
    padding: 14px 10px;
    text-transform: uppercase;
}

/* Subtle vertical dividers */
#snapshotTable th:not(:last-child),
#snapshotTable td:not(:last-child) {
    border-right: 1px solid rgba(0, 0, 0, 0.04);
}

#snapshotTable tbody td {
    padding: 12px 10px;
    vertical-align: middle;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

#snapshotTable tbody tr:last-child td {
    border-bottom: none;
}

#snapshotTable .col-opening {
    background-color: rgba(108, 117, 125, 0.12) !important; /* Stronger soft slate gray tint */
    font-weight: 800 !important;
    color: #1a1e21 !important;
}

#snapshotTable .col-added {
    background-color: rgba(255, 145, 0, 0.14) !important; /* Stronger warm orange/amber tint */
    font-weight: 800 !important;
    color: #b73807 !important;
}

#snapshotTable .col-total {
    background-color: rgba(0, 0, 0, 0.02) !important; /* Clean neutral highlight */
    font-weight: 700 !important;
    color: #212529 !important;
}

#snapshotTable .col-sold {
    background-color: rgba(0, 123, 255, 0.03) !important; /* Soft blue/cyan tint for sold stock */
    font-weight: 600 !important;
    color: #0b5ed7 !important;
}

#snapshotTable .col-remaining {
    background-color: rgba(40, 167, 69, 0.04) !important; /* Soft success green tint */
    font-weight: 700 !important;
    color: #1e7e34 !important;
}

#snapshotTable .col-status {
    background-color: rgba(248, 249, 250, 0.2) !important;
}

/* Premium row hover interaction */
#snapshotTable tbody tr:hover td {
    background-color: rgba(0, 0, 0, 0.01) !important;
    filter: brightness(0.96);
}

/* Collapsible Sidebar Menu Overrides */
.sidebar .collapse-toggle {
    cursor: pointer;
    font-size: 11.5px !important;
    letter-spacing: 0.25px;
    height: 36px;
    margin-top: 12px !important;
    margin-bottom: 2px !important;
    transition: background-color 0.2s;
}
.sidebar .collapse-toggle .chevron-icon {
    transition: transform 0.25s ease;
}
.sidebar .collapse-toggle[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
}
.sidebar .collapse-sub-links {
    margin-bottom: 8px;
}
.sidebar .collapse-sub-links .nav-link-custom {
    padding-left: 28px !important;
    font-size: 12px;
}

/* Tablet Responsiveness overrides for collapsible menus */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .sidebar .collapse-toggle {
        display: none !important;
    }
    .sidebar .collapse {
        display: block !important;
        height: auto !important;
        visibility: visible !important;
    }
    .sidebar .collapse-sub-links .nav-link-custom {
        padding-left: 0 !important;
    }
}

/* ── POS / ERP Icon Navigation & Top Menu Bar ── */
.top-erp-menu-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 4px 12px;
    margin-bottom: 12px;
    border-radius: 8px;
}

.top-erp-nav-item {
    font-size: 14.5px;
    font-weight: 600;
    color: #334155;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-erp-nav-item i, .top-erp-nav-item svg {
    width: 17px;
    height: 17px;
    stroke-width: 2.2px;
}

.top-erp-nav-item:hover, .top-erp-nav-item:focus {
    background: #f1f5f9;
    color: #0f172a;
}

.top-erp-nav-item.active {
    background: #e2e8f0;
    color: #0f172a;
}

/* POS Icon Launcher Grid Cards */
.pos-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.pos-nav-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.pos-nav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
}

.pos-nav-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    position: relative;
    transition: transform 0.2s ease;
}

.pos-nav-card:hover .pos-nav-icon-wrapper {
    transform: scale(1.08);
}

.pos-nav-icon-wrapper i, .pos-nav-icon-wrapper svg {
    width: 26px;
    height: 26px;
    stroke-width: 2.2px;
}

.pos-nav-title {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
    margin-bottom: 2px;
}

.pos-nav-subtitle {
    font-size: 10px;
    font-weight: 500;
    color: #64748b;
}

/* Vibrant Icon Card Color Themes */
.pos-theme-red .pos-nav-icon-wrapper {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}
.pos-theme-teal .pos-nav-icon-wrapper {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}
.pos-theme-green .pos-nav-icon-wrapper {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}
.pos-theme-emerald .pos-nav-icon-wrapper {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}
.pos-theme-purple .pos-nav-icon-wrapper {
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
    box-shadow: 0 4px 14px rgba(147, 51, 234, 0.35);
}
.pos-theme-indigo .pos-nav-icon-wrapper {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.pos-theme-orange .pos-nav-icon-wrapper {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}
.pos-theme-blue .pos-nav-icon-wrapper {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.pos-theme-cyan .pos-nav-icon-wrapper {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.35);
}
.pos-theme-gray .pos-nav-icon-wrapper {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    box-shadow: 0 4px 14px rgba(71, 85, 105, 0.35);
}


