/* ========================================
   SIDEBAR LAYOUT - Dark Blue Modern Design
   With Icons and Clean Organization
   ======================================== */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    --sidebar-width: 260px;
    --header-height: 60px;

    /* Blue Theme - Lighter */
    --sidebar-bg: #1E3A5F;
    --sidebar-bg-light: #2D4A6F;
    --submenu-bg: #264B73;
    --header-bg: #1E3A5F;
    --body-bg: #F1F5F9;
    --border-color: rgba(255, 255, 255, 0.1);

    /* Text Colors */
    --text-white: #FFFFFF;
    --text-muted: #FFFFFF;
    --text-light: rgba(255, 255, 255, 0.85);

    /* Accent Color - Teal */
    --accent-color: #10B981;
    --accent-light: rgba(16, 185, 129, 0.2);

    /* Transitions */
    --transition: 0.25s ease;
}

/* ========================================
   MAIN LAYOUT CONTAINER
   ======================================== */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
    background: var(--body-bg);
}

.app-container.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
    width: 0;
}

.app-container.sidebar-collapsed .main-wrapper {
    margin-left: 0;
    width: 100%;
}

.app-container.sidebar-collapsed .top-header {
    left: 0;
}

/* ========================================
   SIDEBAR STYLES
   ======================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    transition: transform var(--transition), width var(--transition), left var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Custom scrollbar */
.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ========================================
   SIDEBAR LOGO
   ======================================== */
.sidebar-logo {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.sidebar-logo a {
    display: flex;
    align-items: center;
}

.sidebar-logo img {
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
}

.sidebar-logo-text {
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ========================================
   SIDEBAR MENU
   ======================================== */
.sidebar-menu {
    padding: 15px 12px;
    padding-bottom: 20px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Force white color for all menu links */
.sidebar-menu a,
.sidebar-menu a:link,
.sidebar-menu a:visited,
.sidebar-menu a:active {
    color: #FFFFFF !important;
    text-decoration: none;
}

/* Scrollbar for menu */
.sidebar-menu::-webkit-scrollbar {
    width: 5px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Section Category Label */
.sidebar-menu .menu-category {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 18px 15px 8px 15px;
    margin-top: 5px;
}

.sidebar-menu .menu-category:first-child {
    margin-top: 0;
    padding-top: 5px;
}

/* Menu Section Headers (Parent Items) */
.sidebar-menu .menu-header {
    display: flex;
    align-items: center;
    padding: 11px 15px;
    margin: 2px 0;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--transition);
    outline: none !important;
    position: relative;
}

.sidebar-menu .menu-header:hover {
    background: var(--sidebar-bg-light);
    color: var(--text-white);
}

.sidebar-menu .menu-header.ui-accordion-header-active,
.sidebar-menu .menu-header.ui-state-active {
    background: var(--accent-light);
    color: var(--accent-color);
}

/* Menu Icon Container */
.sidebar-menu .menu-header .menu-icon {
    width: 22px;
    height: 22px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Default Icon */
.sidebar-menu .menu-header .menu-icon::before {
    content: '';
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.sidebar-menu .menu-header:hover .menu-icon::before,
.sidebar-menu .menu-header.ui-state-active .menu-icon::before {
    opacity: 1;
}

/* Dashboard Icon */
.sidebar-menu .menu-header[data-menu="dashboard"] .menu-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='9'/%3E%3Crect x='14' y='3' width='7' height='5'/%3E%3Crect x='14' y='12' width='7' height='9'/%3E%3Crect x='3' y='16' width='7' height='5'/%3E%3C/svg%3E");
}

/* Masters Icon - Database/Settings */
.sidebar-menu .menu-header[data-menu="masters"] .menu-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cellipse cx='12' cy='5' rx='9' ry='3'/%3E%3Cpath d='M21 12c0 1.66-4 3-9 3s-9-1.34-9-3'/%3E%3Cpath d='M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5'/%3E%3C/svg%3E");
}

/* Transactions Icon - Exchange */
.sidebar-menu .menu-header[data-menu="transactions"] .menu-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M17 1l4 4-4 4'/%3E%3Cpath d='M3 11V9a4 4 0 0 1 4-4h14'/%3E%3Cpath d='M7 23l-4-4 4-4'/%3E%3Cpath d='M21 13v2a4 4 0 0 1-4 4H3'/%3E%3C/svg%3E");
}

/* Reports Icon - Chart */
.sidebar-menu .menu-header[data-menu="reports"] .menu-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M18 20V10'/%3E%3Cpath d='M12 20V4'/%3E%3Cpath d='M6 20v-6'/%3E%3C/svg%3E");
}

/* Payments Icon - Credit Card */
.sidebar-menu .menu-header[data-menu="payments"] .menu-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3C/svg%3E");
}

/* Devices Icon - Hardware */
.sidebar-menu .menu-header[data-menu="devices"] .menu-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='4' y='4' width='16' height='16' rx='2' ry='2'/%3E%3Crect x='9' y='9' width='6' height='6'/%3E%3Cline x1='9' y1='1' x2='9' y2='4'/%3E%3Cline x1='15' y1='1' x2='15' y2='4'/%3E%3Cline x1='9' y1='20' x2='9' y2='23'/%3E%3Cline x1='15' y1='20' x2='15' y2='23'/%3E%3Cline x1='20' y1='9' x2='23' y2='9'/%3E%3Cline x1='20' y1='14' x2='23' y2='14'/%3E%3Cline x1='1' y1='9' x2='4' y2='9'/%3E%3Cline x1='1' y1='14' x2='4' y2='14'/%3E%3C/svg%3E");
}

/* Users Icon */
.sidebar-menu .menu-header[data-menu="users"] .menu-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

/* Settings Icon */
.sidebar-menu .menu-header[data-menu="settings"] .menu-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E");
}

/* Inventory Icon - Box */
.sidebar-menu .menu-header[data-menu="inventory"] .menu-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'/%3E%3C/svg%3E");
}

/* Suppliers Icon - Truck */
.sidebar-menu .menu-header[data-menu="suppliers"] .menu-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='1' y='3' width='15' height='13'/%3E%3Cpolygon points='16 8 20 8 23 11 23 16 16 16 16 8'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E");
}

/* Collection Icon - Droplet */
.sidebar-menu .menu-header[data-menu="collection"] .menu-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z'/%3E%3C/svg%3E");
}

/* Routes Icon - Map */
.sidebar-menu .menu-header[data-menu="routes"] .menu-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolygon points='1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6'/%3E%3Cline x1='8' y1='2' x2='8' y2='18'/%3E%3Cline x1='16' y1='6' x2='16' y2='22'/%3E%3C/svg%3E");
}

/* Ledger Icon - Book */
.sidebar-menu .menu-header[data-menu="ledger"] .menu-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
}

/* Procurement Icon - Shopping Cart */
.sidebar-menu .menu-header[data-menu="procurement"] .menu-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
}

/* Material Management Icon - Layers */
.sidebar-menu .menu-header[data-menu="material"] .menu-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolygon points='12 2 2 7 12 12 22 7 12 2'/%3E%3Cpolyline points='2 17 12 22 22 17'/%3E%3Cpolyline points='2 12 12 17 22 12'/%3E%3C/svg%3E");
}

/* Milk Management Icon - Droplet with Plus */
.sidebar-menu .menu-header[data-menu="collection"] .menu-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z'/%3E%3C/svg%3E");
}

/* Actual Stock Entry Icon - Clipboard Check */
.sidebar-menu .menu-header[data-menu="actual"] .menu-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Crect x='8' y='2' width='8' height='4' rx='1' ry='1'/%3E%3Cpath d='M9 14l2 2 4-4'/%3E%3C/svg%3E");
}

/* Visit Reports Icon - Eye */
.sidebar-menu .menu-header[data-menu="visit"] .menu-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

/* Default Icon - Grid */
.sidebar-menu .menu-header[data-menu="default"] .menu-icon::before,
.sidebar-menu .menu-header:not([data-menu]) .menu-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}

/* Active state - teal color for icons */
.sidebar-menu .menu-header.ui-state-active .menu-icon::before {
    filter: brightness(0) saturate(100%) invert(67%) sepia(52%) saturate(5765%) hue-rotate(127deg) brightness(92%) contrast(87%);
}

.sidebar-menu .menu-header .menu-title {
    flex: 1;
}

/* Chevron Arrow on Right */
.sidebar-menu .menu-header::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(-45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
    margin-left: auto;
}

.sidebar-menu .menu-header:hover::after {
    border-color: var(--text-white);
}

.sidebar-menu .menu-header.ui-state-active::after {
    transform: rotate(45deg);
    border-color: var(--accent-color);
}

/* Hide jQuery UI default icon */
.sidebar-menu .menu-header .ui-accordion-header-icon {
    display: none !important;
}

/* ========================================
   SUBMENU CONTENT - AUTO HEIGHT
   ======================================== */
.sidebar-menu .menu-content {
    padding: 8px 8px 8px 8px;
    margin: 0 8px 8px 8px;
    background: var(--submenu-bg);
    border-radius: 8px;
    border: none !important;
    overflow: visible !important;
    height: auto !important;
}

/* Submenu Items */
.sidebar-menu .menu-item {
    display: flex;
    align-items: center;
    padding: 10px 12px 10px 12px;
    margin: 2px 0;
    color: #FFFFFF !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

/* Submenu prefix indicator */
.sidebar-menu .menu-item::before {
    content: '\00BB';
    margin-right: 10px;
    color: #FFFFFF !important;
    font-size: 14px;
    transition: color 0.2s ease;
}

.sidebar-menu .menu-item:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-menu .menu-item:hover::before {
    color: var(--accent-color);
}

.sidebar-menu .menu-item.active {
    color: var(--accent-color);
    font-weight: 500;
    background: rgba(16, 185, 129, 0.2);
}

.sidebar-menu .menu-item.active::before {
    color: var(--accent-color);
}

/* Level-specific menu item indentation */
.sidebar-menu .menu-item.level-2 {
    padding-left: 14px;
}

.sidebar-menu .menu-item.level-3 {
    padding-left: 28px;
    font-size: 12.5px;
}

.sidebar-menu .menu-item.level-4 {
    padding-left: 42px;
    font-size: 12px;
}

/* Level 3 menu node styling */
.sidebar-menu .menu-node.level-3 > .node-header {
    padding-left: 28px;
    font-size: 12.5px;
}

.sidebar-menu .menu-node.level-3 > .node-content {
    background: rgba(0, 0, 0, 0.06);
}

/* ========================================
   SUBCATEGORY (Level 2) STYLES
   ======================================== */
.sidebar-menu .menu-subcategory {
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-menu .menu-subcategory:last-child {
    border-bottom: none;
}

.sidebar-menu .subcategory-header {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    padding-left: 14px;
    color: #FFFFFF !important;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-menu .subcategory-header:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF !important;
}

.sidebar-menu .subcategory-header.active {
    background: var(--accent-light);
    color: var(--accent-color) !important;
}

/* Subcategory Icon */
.sidebar-menu .subcategory-header .subcategory-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-right: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
    flex-shrink: 0;
}

.sidebar-menu .subcategory-header:hover .subcategory-icon,
.sidebar-menu .subcategory-header.active .subcategory-icon {
    opacity: 1;
}

/* Subcategory Icons by data attribute - Each with unique icon */

/* User Roles - Shield with user */
.sidebar-menu .menu-subcategory[data-subcategory="user-roles"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3Cpath d='M12 13v2'/%3E%3C/svg%3E");
}

/* Stakeholders - Network/People */
.sidebar-menu .menu-subcategory[data-subcategory="stakeholders"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='12' cy='5' r='3'/%3E%3Ccircle cx='5' cy='19' r='3'/%3E%3Ccircle cx='19' cy='19' r='3'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='12' x2='5' y2='16'/%3E%3Cline x1='12' y1='12' x2='19' y2='16'/%3E%3C/svg%3E");
}

/* Approval/Master History - Clipboard Check */
.sidebar-menu .menu-subcategory[data-subcategory="approval"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M9 11l3 3L22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E");
}

/* Configuration - Sliders */
.sidebar-menu .menu-subcategory[data-subcategory="configuration"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cline x1='4' y1='21' x2='4' y2='14'/%3E%3Cline x1='4' y1='10' x2='4' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12' y2='3'/%3E%3Cline x1='20' y1='21' x2='20' y2='16'/%3E%3Cline x1='20' y1='12' x2='20' y2='3'/%3E%3Cline x1='1' y1='14' x2='7' y2='14'/%3E%3Cline x1='9' y1='8' x2='15' y2='8'/%3E%3Cline x1='17' y1='16' x2='23' y2='16'/%3E%3C/svg%3E");
}

/* Address - Map Pin */
.sidebar-menu .menu-subcategory[data-subcategory="address"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

/* Item - Package */
.sidebar-menu .menu-subcategory[data-subcategory="item"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M16.5 9.4l-9-5.19M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'/%3E%3C/svg%3E");
}

/* Rates - Dollar/Rupee Sign */
.sidebar-menu .menu-subcategory[data-subcategory="rates"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cline x1='12' y1='1' x2='12' y2='23'/%3E%3Cpath d='M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'/%3E%3C/svg%3E");
}

/* Incentives - Award/Star */
.sidebar-menu .menu-subcategory[data-subcategory="incentives"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E");
}

/* Deduction - Minus Circle */
.sidebar-menu .menu-subcategory[data-subcategory="deduction"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='8' y1='12' x2='16' y2='12'/%3E%3C/svg%3E");
}

/* Reasons - Help Circle */
.sidebar-menu .menu-subcategory[data-subcategory="reasons"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
}

/* Logistics - Truck */
.sidebar-menu .menu-subcategory[data-subcategory="logistics"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='1' y='3' width='15' height='13'/%3E%3Cpolygon points='16 8 20 8 23 11 23 16 16 16 16 8'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E");
}

/* Payments - Credit Card */
.sidebar-menu .menu-subcategory[data-subcategory="payments"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3C/svg%3E");
}

/* Assessment - Clipboard */
.sidebar-menu .menu-subcategory[data-subcategory="assessment"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Crect x='8' y='2' width='8' height='4' rx='1' ry='1'/%3E%3Cline x1='9' y1='12' x2='15' y2='12'/%3E%3Cline x1='9' y1='16' x2='15' y2='16'/%3E%3C/svg%3E");
}

/* Profiling - User Check */
.sidebar-menu .menu-subcategory[data-subcategory="profiling"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='8.5' cy='7' r='4'/%3E%3Cpolyline points='17 11 19 13 23 9'/%3E%3C/svg%3E");
}

/* Deviation - Alert Triangle */
.sidebar-menu .menu-subcategory[data-subcategory="deviation"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
}

/* Evaluation - Bar Chart */
.sidebar-menu .menu-subcategory[data-subcategory="evaluation"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cline x1='18' y1='20' x2='18' y2='10'/%3E%3Cline x1='12' y1='20' x2='12' y2='4'/%3E%3Cline x1='6' y1='20' x2='6' y2='14'/%3E%3C/svg%3E");
}

/* Visit - Calendar */
.sidebar-menu .menu-subcategory[data-subcategory="visit"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

/* Issue - Alert Circle */
.sidebar-menu .menu-subcategory[data-subcategory="issue"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
}

/* History - Clock */
.sidebar-menu .menu-subcategory[data-subcategory="history"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
}

/* Supplier - Briefcase */
.sidebar-menu .menu-subcategory[data-subcategory="supplier"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E");
}

/* BCF - Building */
.sidebar-menu .menu-subcategory[data-subcategory="bcf"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
}

/* Transporter - Navigation */
.sidebar-menu .menu-subcategory[data-subcategory="transporter"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolygon points='3 11 22 2 13 21 11 13 3 11'/%3E%3C/svg%3E");
}

/* Inventory - Layers */
.sidebar-menu .menu-subcategory[data-subcategory="inventory"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolygon points='12 2 2 7 12 12 22 7 12 2'/%3E%3Cpolyline points='2 17 12 22 22 17'/%3E%3Cpolyline points='2 12 12 17 22 12'/%3E%3C/svg%3E");
}

/* Milk Procurement - Droplet */
.sidebar-menu .menu-subcategory[data-subcategory="milk-procurement"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z'/%3E%3C/svg%3E");
}

/* Milk Payment - Wallet */
.sidebar-menu .menu-subcategory[data-subcategory="milk-payment"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M20 12V8H6a2 2 0 0 1-2-2c0-1.1.9-2 2-2h12v4'/%3E%3Cpath d='M4 6v12c0 1.1.9 2 2 2h14v-4'/%3E%3Cpath d='M18 12a2 2 0 0 0 0 4h4v-4z'/%3E%3C/svg%3E");
}

/* Monthly - Calendar Days */
.sidebar-menu .menu-subcategory[data-subcategory="monthly"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3Cline x1='8' y1='14' x2='8' y2='14'/%3E%3Cline x1='12' y1='14' x2='12' y2='14'/%3E%3Cline x1='16' y1='14' x2='16' y2='14'/%3E%3C/svg%3E");
}

/* Material - Grid */
.sidebar-menu .menu-subcategory[data-subcategory="material"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}

/* Analysis - Pie Chart */
.sidebar-menu .menu-subcategory[data-subcategory="analysis"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M21.21 15.89A10 10 0 1 1 8 2.83'/%3E%3Cpath d='M22 12A10 10 0 0 0 12 2v10z'/%3E%3C/svg%3E");
}

/* Additional - Plus Square */
.sidebar-menu .menu-subcategory[data-subcategory="additional"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='12' y1='8' x2='12' y2='16'/%3E%3Cline x1='8' y1='12' x2='16' y2='12'/%3E%3C/svg%3E");
}

/* Integration/SAP - Link */
.sidebar-menu .menu-subcategory[data-subcategory="integration"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
}

/* Comparison - Git Compare */
.sidebar-menu .menu-subcategory[data-subcategory="comparison"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='18' cy='18' r='3'/%3E%3Ccircle cx='6' cy='6' r='3'/%3E%3Cpath d='M13 6h3a2 2 0 0 1 2 2v7'/%3E%3Cpath d='M11 18H8a2 2 0 0 1-2-2V9'/%3E%3C/svg%3E");
}

/* Dashboard - Activity */
.sidebar-menu .menu-subcategory[data-subcategory="dashboard"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolyline points='22 12 18 12 15 21 9 3 6 12 2 12'/%3E%3C/svg%3E");
}

/* Herd - Heart (for cattle/animals) */
.sidebar-menu .menu-subcategory[data-subcategory="herd"] .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
}

/* Default subcategory icon - Folder */
.sidebar-menu .menu-subcategory[data-subcategory="default"] .subcategory-icon,
.sidebar-menu .menu-subcategory:not([data-subcategory]) .subcategory-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

.sidebar-menu .subcategory-title {
    flex: 1;
}

/* Subcategory Arrow */
.sidebar-menu .subcategory-arrow {
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(-45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
    margin-left: 8px;
}

.sidebar-menu .subcategory-header:hover .subcategory-arrow {
    border-color: var(--text-white);
}

.sidebar-menu .subcategory-header.active .subcategory-arrow {
    transform: rotate(45deg);
    border-color: var(--accent-color);
}

/* Subcategory Content (Level 3 items) */
.sidebar-menu .subcategory-content {
    display: none;
    padding: 4px 0 4px 20px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 0 0 6px 6px;
    margin-top: 2px;
}

.sidebar-menu .subcategory-content.open {
    display: block;
}

/* Level 3 menu items - smaller and indented */
.sidebar-menu .subcategory-content .menu-item {
    padding: 8px 12px;
    font-size: 12px;
    margin: 1px 0;
}

.sidebar-menu .subcategory-content .menu-item::before {
    content: '›';
    font-size: 12px;
    margin-right: 8px;
}

/* ========================================
   TOP HEADER STYLES
   ======================================== */
.top-header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 999;
    transition: left var(--transition);
}

/* Hamburger Button */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    transition: all 0.2s ease;
}

.hamburger-btn:focus {
    outline: none;
}

.hamburger-btn:hover {
    background: var(--sidebar-bg-light);
    border-color: rgba(255, 255, 255, 0.15);
}

.hamburger-line {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-white);
    border-radius: 1px;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Today's Date - Standalone */
.today-date {
    color: #FFFFFF !important;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

/* User Dropdown Container */
.user-dropdown-container {
    position: relative;
}

.user-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: var(--sidebar-bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.user-dropdown-trigger.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--accent-color);
}

.user-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent-color);
    border-radius: 50%;
    color: #FFFFFF;
}

.user-icon svg {
    width: 18px;
    height: 18px;
}

.user-dropdown-trigger .user-name {
    color: var(--text-white);
    font-weight: 500;
    font-size: 14px;
}

.dropdown-arrow {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.user-dropdown-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #374151 !important;
    text-decoration: none !important;
    font-size: 14px;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: #F3F4F6;
    color: var(--accent-color) !important;
}

.dropdown-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
}

.dropdown-item:hover .dropdown-item-icon {
    color: var(--accent-color);
}

.dropdown-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 4px 0;
}

.logout-item {
    color: #DC2626 !important;
}

.logout-item .dropdown-item-icon {
    color: #DC2626;
}

.logout-item:hover {
    background: #FEF2F2;
    color: #DC2626 !important;
}

/* Legacy styles - keep for backward compatibility */
.user-actions {
    display: flex;
    gap: 10px;
}

.header-action-btn {
    padding: 9px 16px;
    color: #FFFFFF !important;
    background: var(--accent-color);
    border: none;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.header-action-btn:hover {
    background: #059669;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ========================================
   MAIN CONTENT WRAPPER
   ======================================== */
.main-wrapper {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    width: calc(100% - var(--sidebar-width));
    transition: margin-left var(--transition), width var(--transition);
    display: flex;
    flex-direction: column;
    background: var(--body-bg);
}

.main-content {
    flex: 1;
    padding: 24px;
    background: #FFFFFF;
    margin: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ========================================
   HIDE MAIN FOOTER (moved to sidebar)
   ======================================== */
.main-wrapper .footer {
    display: none !important;
}

/* ========================================
   SIDEBAR FOOTER
   ======================================== */
.sidebar-footer {
    padding: 0px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sidebar-footer-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    color: var(--text-muted);
    font-size: 11px;
}

.sidebar-footer-item .footer-icon {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
}

.sidebar-footer-item .footer-icon.company-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
}

.sidebar-footer-item.company-version {
    font-weight: 500;
    justify-content: center;
    padding-bottom: 2px;
}

.sidebar-footer-item.powered-by {
    justify-content: center;
    padding-top: 2px;
}

.sidebar-footer-item.powered-by .footer-text,
.sidebar-footer-item.company-version .footer-text {
    text-align: center;
}

.sidebar-footer-item a {
    color: var(--text-white);
    text-decoration: none;
}

.sidebar-footer-item a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* ========================================
   SIDEBAR OVERLAY (MOBILE)
   ======================================== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-container.sidebar-open .sidebar-overlay {
    display: block;
    opacity: 1;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media screen and (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.3);
    }

    .app-container.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }

    .top-header {
        left: 0;
    }
}

@media screen and (max-width: 768px) {
    .header-right {
        gap: 10px;
    }

    .today-date {
        display: none;
    }

    .header-action-btn {
        padding: 7px 12px;
        font-size: 12px;
    }

    .main-content {
        padding: 16px;
        margin: 12px;
    }

    .user-dropdown-trigger .user-name {
        display: none;
    }

    .user-dropdown-trigger {
        padding: 6px 10px;
    }

    .dropdown-arrow {
        display: none;
    }
}

@media screen and (max-width: 576px) {
    .user-actions {
        gap: 6px;
    }

    .header-action-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .hamburger-btn {
        width: 34px;
        height: 34px;
    }

    .main-content {
        margin: 8px;
        border-radius: 8px;
    }

    .user-dropdown-menu {
        min-width: 180px;
        right: -10px;
    }

    .dropdown-item {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* ========================================
   JQUERY UI ACCORDION - COMPLETE RESET
   ======================================== */
.ui-accordion {
    border: none !important;
    background: none !important;
}

.ui-accordion .ui-accordion-header {
    border: none !important;
    background: none !important;
    margin: 10px !important;
    padding: 10px !important;
}

/* Critical: Let content auto-size */
.ui-accordion .ui-accordion-content {
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    overflow: visible !important;
}

.ui-accordion .ui-accordion-content-active {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
}

/* Remove all jQuery UI theming */
.sidebar-menu .ui-state-default,
.sidebar-menu .ui-state-hover,
.sidebar-menu .ui-state-active,
.sidebar-menu .ui-state-focus {
    border: none !important;
    background: none !important;
    outline: none !important;
}

.ui-widget-content {
    border: none !important;
    background: none !important;
}

/* ========================================
   CONTENT AREA
   ======================================== */
#content_wrapper_table {
    height: auto !important;
    min-height: 400px;
}

.main-content .breadcrum-wrapper {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E5E7EB;
}

/* ========================================
   PAGE TITLE STYLING
   ======================================== */
.main-content h1,
.main-content .page-title {
    color: #1F2937;
    font-weight: 600;
}

/* ========================================
   DASHBOARD STYLES
   ======================================== */
.dashboard-header {
    margin-bottom: 20px;
}

.dashboard-title {
    font-size: 24px;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
}

/* ========================================
   PENDING CARDS - Module Breakdown
   ======================================== */
.pending-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.pending-card {
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #E5E7EB;
    overflow: hidden;
}

.pending-card-header {
    background: linear-gradient(135deg, #1E3A5F 0%, #2D4A6F 100%);
    color: #FFFFFF;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
}

.pending-card-body {
    padding: 0;
}

.pending-table {
    width: 100%;
    border-collapse: collapse;
}

.pending-table th,
.pending-th {
    background: #F8FAFC;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.pending-table th:last-child,
.pending-th:last-child {
    text-align: right;
}

.pending-table td,
.pending-td {
    padding: 10px 16px;
    font-size: 13px;
    color: #4B5563;
    border-bottom: 1px solid #F3F4F6;
}

.pending-table tr:last-child td {
    border-bottom: none;
}

.pending-table .count-cell,
.pending-td.count-cell {
    text-align: right;
    font-weight: 600;
    color: #1E3A5F;
}

.pending-link {
    color: #3B82F6;
    text-decoration: none;
    font-weight: 600;
}

.pending-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .pending-cards-container {
        gap: 12px;
    }

    .pending-card {
        min-width: 100%;
        max-width: 100%;
    }
}

/* Ticker Container */
.ticker-container {
    margin-bottom: 20px;
    background: #F8FAFC;
    border-radius: 8px;
    padding: 8px 0;
    border: 1px solid #E5E7EB;
}

/* ========================================
   MODERN CHART CARDS
   ======================================== */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.chart-card {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #E5E7EB;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.chart-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.chart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1E3A5F 0%, #2D4A6F 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
}

.chart-link {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.chart-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

.chart-dropdown {
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.chart-dropdown:hover,
.chart-dropdown:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.chart-dropdown option {
    background: #1E3A5F;
    color: #FFFFFF;
}

.chart-wrapper {
    padding: 20px;
    height: 320px;
    position: relative;
}

.chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Responsive Chart Cards */
@media screen and (max-width: 992px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .charts-container {
        gap: 16px;
    }

    .chart-card-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .chart-wrapper {
        height: 280px;
        padding: 16px;
    }

    .chart-title {
        font-size: 14px;
    }
}

/* Responsive Stat Cards */
@media screen and (max-width: 768px) {
    .stat-cards-container {
        gap: 12px;
    }

    .stat-card {
        min-width: 150px;
        padding: 16px;
    }

    .stat-card-value {
        font-size: 22px;
    }

    .stat-card-icon {
        width: 40px;
        height: 40px;
    }

    .stat-card-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* ========================================
   N-LEVEL RECURSIVE MENU STYLES
   ======================================== */

/* Menu Node Container - supports unlimited depth */
.sidebar-menu .menu-node {
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-menu .menu-node:last-child {
    border-bottom: none;
}

/* Node Header - Collapsible items with children */
.sidebar-menu .node-header {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.02);
}

.sidebar-menu .node-header:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

.sidebar-menu .node-header.active {
    background: var(--accent-light);
    color: var(--accent-color);
}

/* Node Icon */
.sidebar-menu .node-header .node-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.75;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

.sidebar-menu .node-header:hover .node-icon,
.sidebar-menu .node-header.active .node-icon {
    opacity: 1;
}

/* Node Title */
.sidebar-menu .node-header .node-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Node Arrow */
.sidebar-menu .node-header .node-arrow {
    width: 6px;
    height: 6px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(-45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
    margin-left: 8px;
    flex-shrink: 0;
}

.sidebar-menu .node-header:hover .node-arrow {
    border-color: rgba(255, 255, 255, 0.8);
}

.sidebar-menu .node-header.active .node-arrow {
    transform: rotate(45deg);
    border-color: var(--accent-color);
}

/* Node Content - Hidden by default */
.sidebar-menu .node-content {
    display: none;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 0;
}

.sidebar-menu .node-content.open {
    display: block;
}

/* Depth-based indentation and styling */
/* Depth 1 */
.sidebar-menu .menu-node[data-depth="1"] > .node-header {
    padding-left: 14px;
    font-size: 13px;
}

.sidebar-menu .menu-item[data-depth="1"] {
    padding-left: 14px;
}

/* Depth 2 */
.sidebar-menu .menu-node[data-depth="2"] > .node-header {
    padding-left: 28px;
    font-size: 12.5px;
}

.sidebar-menu .menu-item[data-depth="2"] {
    padding-left: 28px;
}

/* Depth 3 */
.sidebar-menu .menu-node[data-depth="3"] > .node-header {
    padding-left: 42px;
    font-size: 12px;
}

.sidebar-menu .menu-item[data-depth="3"] {
    padding-left: 42px;
}

/* Depth 4 */
.sidebar-menu .menu-node[data-depth="4"] > .node-header {
    padding-left: 56px;
    font-size: 12px;
    opacity: 0.95;
}

.sidebar-menu .menu-item[data-depth="4"] {
    padding-left: 56px;
}

/* Depth 5+ */
.sidebar-menu .menu-node[data-depth="5"] > .node-header,
.sidebar-menu .menu-node[data-depth="6"] > .node-header {
    padding-left: 70px;
    font-size: 11.5px;
    opacity: 0.9;
}

.sidebar-menu .menu-item[data-depth="5"],
.sidebar-menu .menu-item[data-depth="6"] {
    padding-left: 70px;
}

/* Visual hierarchy - background gets darker with depth */
.sidebar-menu .menu-node[data-depth="2"] > .node-content {
    background: rgba(0, 0, 0, 0.08);
}

.sidebar-menu .menu-node[data-depth="3"] > .node-content {
    background: rgba(0, 0, 0, 0.06);
}

.sidebar-menu .menu-node[data-depth="4"] > .node-content {
    background: rgba(0, 0, 0, 0.04);
}

/* Node-specific Icons by data-subcategory */
/* Supplier */
.sidebar-menu .menu-node[data-subcategory="supplier"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E");
}

/* BCF */
.sidebar-menu .menu-node[data-subcategory="bcf"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
}

/* Transporter */
.sidebar-menu .menu-node[data-subcategory="transporter"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='1' y='3' width='15' height='13'/%3E%3Cpolygon points='16 8 20 8 23 11 23 16 16 16 16 8'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E");
}

/* Advance */
.sidebar-menu .menu-node[data-subcategory="advance"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cline x1='12' y1='1' x2='12' y2='23'/%3E%3Cpath d='M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'/%3E%3C/svg%3E");
}

/* Milk */
.sidebar-menu .menu-node[data-subcategory="milk"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z'/%3E%3C/svg%3E");
}

/* Retention */
.sidebar-menu .menu-node[data-subcategory="retention"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

/* Bonus */
.sidebar-menu .menu-node[data-subcategory="bonus"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E");
}

/* Government/Subsidy */
.sidebar-menu .menu-node[data-subcategory="government"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

/* Process */
.sidebar-menu .menu-node[data-subcategory="process"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolyline points='22 12 18 12 15 21 9 3 6 12 2 12'/%3E%3C/svg%3E");
}

/* Approval */
.sidebar-menu .menu-node[data-subcategory="approval"] > .node-header .node-icon,
.sidebar-menu .menu-node[data-subcategory="approver"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M9 11l3 3L22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E");
}

/* Disburse */
.sidebar-menu .menu-node[data-subcategory="disburse"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3C/svg%3E");
}

/* Outward */
.sidebar-menu .menu-node[data-subcategory="outward"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cline x1='7' y1='17' x2='17' y2='7'/%3E%3Cpolyline points='7 7 17 7 17 17'/%3E%3C/svg%3E");
}

/* Inward */
.sidebar-menu .menu-node[data-subcategory="inward"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cline x1='17' y1='7' x2='7' y2='17'/%3E%3Cpolyline points='17 17 7 17 7 7'/%3E%3C/svg%3E");
}

/* Overhead */
.sidebar-menu .menu-node[data-subcategory="overhead"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3C/svg%3E");
}

/* Farmer */
.sidebar-menu .menu-node[data-subcategory="farmer"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

/* Center */
.sidebar-menu .menu-node[data-subcategory="center"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

/* Material */
.sidebar-menu .menu-node[data-subcategory="material"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}

/* Rates */
.sidebar-menu .menu-node[data-subcategory="rates"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cline x1='12' y1='1' x2='12' y2='23'/%3E%3Cpath d='M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'/%3E%3C/svg%3E");
}

/* Inventory */
.sidebar-menu .menu-node[data-subcategory="inventory"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolygon points='12 2 2 7 12 12 22 7 12 2'/%3E%3Cpolyline points='2 17 12 22 22 17'/%3E%3Cpolyline points='2 12 12 17 22 12'/%3E%3C/svg%3E");
}

/* Route */
.sidebar-menu .menu-node[data-subcategory="route"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='6' cy='19' r='3'/%3E%3Cpath d='M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15'/%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3C/svg%3E");
}

/* Transport/Transportation */
.sidebar-menu .menu-node[data-subcategory="transport"] > .node-header .node-icon,
.sidebar-menu .menu-node[data-subcategory="transportation"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='1' y='3' width='15' height='13'/%3E%3Cpolygon points='16 8 20 8 23 11 23 16 16 16 16 8'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E");
}

/* Stock */
.sidebar-menu .menu-node[data-subcategory="stock"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'/%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'/%3E%3C/svg%3E");
}

/* Reports/Report */
.sidebar-menu .menu-node[data-subcategory="reports"] > .node-header .node-icon,
.sidebar-menu .menu-node[data-subcategory="report"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E");
}

/* Deduction */
.sidebar-menu .menu-node[data-subcategory="deduction"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='8' y1='12' x2='16' y2='12'/%3E%3C/svg%3E");
}

/* Incentive */
.sidebar-menu .menu-node[data-subcategory="incentive"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
}

/* Bill/Billing */
.sidebar-menu .menu-node[data-subcategory="bill"] > .node-header .node-icon,
.sidebar-menu .menu-node[data-subcategory="billing"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3C/svg%3E");
}

/* Summary */
.sidebar-menu .menu-node[data-subcategory="summary"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E");
}

/* Collection */
.sidebar-menu .menu-node[data-subcategory="collection"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M22 12h-4l-3 9L9 3l-3 9H2'/%3E%3C/svg%3E");
}

/* Quality */
.sidebar-menu .menu-node[data-subcategory="quality"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
}

/* Purchase */
.sidebar-menu .menu-node[data-subcategory="purchase"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
}

/* Sale/Sales */
.sidebar-menu .menu-node[data-subcategory="sale"] > .node-header .node-icon,
.sidebar-menu .menu-node[data-subcategory="sales"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cline x1='12' y1='1' x2='12' y2='23'/%3E%3Cpath d='M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'/%3E%3C/svg%3E");
}

/* Transfer */
.sidebar-menu .menu-node[data-subcategory="transfer"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolyline points='17 1 21 5 17 9'/%3E%3Cpath d='M3 11V9a4 4 0 0 1 4-4h14'/%3E%3Cpolyline points='7 23 3 19 7 15'/%3E%3Cpath d='M21 13v2a4 4 0 0 1-4 4H3'/%3E%3C/svg%3E");
}

/* Loan */
.sidebar-menu .menu-node[data-subcategory="loan"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E");
}

/* Recovery */
.sidebar-menu .menu-node[data-subcategory="recovery"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolyline points='1 4 1 10 7 10'/%3E%3Cpath d='M3.51 15a9 9 0 1 0 2.13-9.36L1 10'/%3E%3C/svg%3E");
}

/* Agent */
.sidebar-menu .menu-node[data-subcategory="agent"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

/* Bank */
.sidebar-menu .menu-node[data-subcategory="bank"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='3' y1='9' x2='21' y2='9'/%3E%3Cline x1='9' y1='21' x2='9' y2='9'/%3E%3C/svg%3E");
}

/* Cash */
.sidebar-menu .menu-node[data-subcategory="cash"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cline x1='1' y1='10' x2='5' y2='10'/%3E%3Cline x1='19' y1='10' x2='23' y2='10'/%3E%3Cline x1='1' y1='14' x2='5' y2='14'/%3E%3Cline x1='19' y1='14' x2='23' y2='14'/%3E%3C/svg%3E");
}

/* User/Users */
.sidebar-menu .menu-node[data-subcategory="user"] > .node-header .node-icon,
.sidebar-menu .menu-node[data-subcategory="users"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

/* Settings/Configuration */
.sidebar-menu .menu-node[data-subcategory="settings"] > .node-header .node-icon,
.sidebar-menu .menu-node[data-subcategory="configuration"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E");
}

/* Master */
.sidebar-menu .menu-node[data-subcategory="master"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

/* Entry */
.sidebar-menu .menu-node[data-subcategory="entry"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E");
}

/* Society */
.sidebar-menu .menu-node[data-subcategory="society"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
}

/* Can/Cans/Aluminium Cans */
.sidebar-menu .menu-node[data-subcategory="can"] > .node-header .node-icon,
.sidebar-menu .menu-node[data-subcategory="cans"] > .node-header .node-icon,
.sidebar-menu .menu-node[data-subcategory="aluminium-cans"] > .node-header .node-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M5 2h14a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cline x1='3' y1='18' x2='21' y2='18'/%3E%3C/svg%3E");
}

/* Default Node Icon - Folder (fallback for all other subcategories) */
.sidebar-menu .menu-node > .node-header .node-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
    margin-right: 10px;
}

/* ========================================
   IMPROVED BREADCRUMB STYLING
   ======================================== */

/* Breadcrumb Container - COMPACT */
.breadcrumb-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.breadcrumb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #1E3A5F;
    border-radius: 4px;
    color: #FFFFFF;
    flex-shrink: 0;
}

.breadcrumb-icon svg {
    width: 10px;
    height: 10px;
}

/* SiteMapPath Container */
.breadcrumb-path {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}

/* Breadcrumb Items */
.breadcrumb-item,
.breadcrumb-item a {
    color: #64748B;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    padding: 3px 6px;
    border-radius: 3px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item a:hover {
    color: #1E3A5F;
    background: rgba(30, 58, 95, 0.1);
}

/* Root node (Home) */
.breadcrumb-root,
.breadcrumb-root a {
    color: #475569;
    font-weight: 500;
}

/* Current Page (last item) */
.breadcrumb-current {
    color: #1E3A5F !important;
    font-weight: 600 !important;
    font-size: 10px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #1E3A5F 0%, #2D4A6F 100%);
    color: #FFFFFF !important;
    border-radius: 3px;
}

/* Breadcrumb Separator */
.breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    margin: 0 1px;
}

.breadcrumb-separator svg {
    width: 10px;
    height: 10px;
}

/* Page Title */
.breadcrumb-title {
    flex-shrink: 0;
}

.breadcrumb-title label {
    font-size: 12px;
    font-weight: 600;
    color: #1E3A5F;
    letter-spacing: -0.2px;
}

/* Legacy support for old breadcrum-wrapper class */
.main-content .breadcrum-wrapper {
    margin-bottom: 20px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Responsive Breadcrumbs */
@media screen and (max-width: 992px) {
    .breadcrumb-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .breadcrumb-title {
        width: 100%;
        padding-top: 8px;
        border-top: 1px solid #E2E8F0;
    }
}

@media screen and (max-width: 768px) {
    .breadcrumb-container {
        padding: 12px 14px;
        margin-bottom: 16px;
    }

    .breadcrumb-icon {
        width: 28px;
        height: 28px;
    }

    .breadcrumb-icon svg {
        width: 14px;
        height: 14px;
    }

    .breadcrumb-item,
    .breadcrumb-item a {
        font-size: 12px;
        padding: 4px 8px;
    }

    .breadcrumb-current {
        font-size: 12px;
        padding: 4px 10px;
    }

    .breadcrumb-title label {
        font-size: 16px;
    }

    .breadcrumb-separator svg {
        width: 12px;
        height: 12px;
    }
}

@media screen and (max-width: 576px) {
    .breadcrumb-nav {
        gap: 4px;
    }

    .breadcrumb-item,
    .breadcrumb-item a {
        font-size: 11px;
        padding: 3px 6px;
    }

    .breadcrumb-current {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* ========================================
   TABLE HEADER STYLING - Theme Consistent
   ======================================== */

/* Global table header styling for ui-state-default */
td.ui-state-default,
th.ui-state-default {
    background: linear-gradient(135deg, #1E3A5F 0%, #2D4A6F 100%) !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    padding: 12px 14px !important;
    text-align: left !important;
    border: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: 2px solid #152a47 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    vertical-align: middle !important;
    line-height: 1.4 !important;
}

td.ui-state-default:last-child,
th.ui-state-default:last-child {
    border-right: none !important;
}

/* Table data rows - Clean white background */
.tableItem,
td.tableItem {
    background: #FFFFFF !important;
    border: none !important;
    border-bottom: 1px solid #E5E7EB !important;
    color: #374151 !important;
    padding: 10px 14px !important;
    vertical-align: middle !important;
}

/* Remove any hover effects on data rows */
tr:hover .tableItem {
    background: #F9FAFB !important;
}

/* Ensure table and all containers have no background */
table,
table tbody,
table tbody tr,
table tr {
    background: transparent !important;
    background-color: transparent !important;
}

/* Remove background from nested lists in table cells */
.tableItem ul,
.tableItem li {
    background: transparent !important;
}

/* Remove background from UpdatePanel content area */
div[id*="UpdatePanel"],
div[id*="UpdatePanel"] > div,
.main-content table,
.main-wrapper table {
    background: transparent !important;
    background-color: transparent !important;
}

/* Ensure only header cells have background, not the entire row */
tr:not(:has(td.ui-state-default)):not(:has(th.ui-state-default)) {
    background: transparent !important;
}

/* Force white background on data cells */
td:not(.ui-state-default),
th:not(.ui-state-default) {
    background: #FFFFFF !important;
}
