/* new-styles.css - Complete Enterprise CSS Framework for Bootstrap 5 */

:root {
    /* Primary Color Palette */
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: #eef2ff;
    --secondary: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #343a40;
    
    /* Extended Color Palette */
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --orange: #fd7e14;
    --teal: #20c997;
    
    /* UI Variables */
    --border: #e1e5eb;
    --border-light: #f1f3f4;
    --shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --radius: 0.5rem;
    --radius-sm: 0.375rem;
    --radius-lg: 0.75rem;
    --sidebar-bg: #fff;
    
    /* Typography */
    --font-family-sans: "Roboto", sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Font size scale */
    --font-size-xs: 0.75rem;   /* 12px */
    --font-size-sm: 0.875rem;  /* 14px */
    --font-size-base: 1rem;    /* 16px */
    --font-size-md: 1.125rem;  /* 18px */
    --font-size-lg: 1.25rem;   /* 20px */
    --font-size-xl: 1.5rem;    /* 24px */
    --font-size-2xl: 1.875rem; /* 30px */
    --font-size-3xl: 2.25rem;  /* 36px */
    --font-size-4xl: 3rem;     /* 48px */
    --font-size-5xl: 3.75rem;  /* 60px */
}

/* ===== GLOBAL STYLES ===== */
body {
    background-color: #f5f7fb;
    font-family: var(--font-family-sans);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--dark);
    font-size: var(--font-size-sm);
}

/* ===== TYPOGRAPHY ENHANCEMENTS ===== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: var(--font-weight-normal);
    color: var(--dark);
}

.font-weight-600 {
    font-weight: var(--font-weight-semibold) !important;
}

.text-muted {
    color: #6c757d !important;
    opacity: 0.8;
}

small{
    font-size: 80%;
    font-weight: var(--font-weight-normal);
}

/* ===== PRE LOADER ===== */
/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
    flex-direction: column;
}

.preloader-hidden {
    opacity: 0 !important;
    pointer-events: none;
}

.loader {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.circular {
    animation: rotate 2s linear infinite;
    height: 60px;
    width: 60px;
}

.path {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    animation: dash 1.5s ease-in-out infinite;
    stroke-linecap: round;
    stroke: var(--primary);
}

.loading-text {
    color: var(--secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 1rem;
}

/* Progress Bar Styles */
.preloader-progress {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    text-align: center;
}

.progress-container {
    background: white;
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 600;
}

/* Animations */
@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124;
    }
}

/* Loading states for content */
.content-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #preloader {
        background: #1a202c;
    }
    
    .progress-container {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .progress-bar {
        background: #4a5568;
    }
    
    .loading-text {
        color: #a0aec0;
    }
    
    .progress-text {
        color: #a0aec0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .preloader-progress {
        bottom: 60px;
        width: 180px;
    }
    
    .circular {
        height: 50px;
        width: 50px;
    }
    
    .loading-text {
        font-size: 0.8rem;
    }
}

/* ===== SIDEBAR & CONTENT LAYOUT ===== 
******************************************
*/

/* MetisMenu Base Styles */
.metismenu {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
/*    width: 100%;*/
/*    max-width: 280px;*/
}


/* Sidebar Container */
.nk-sidebar {
    width: 280px;
    min-width: 60px;
    max-width: 280px;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    overflow: visible;
    background: #fff;
}


.nk-sidebar.sidebar-icons + .main-content {
    margin-left: 80px;
}

/* Compact View */
.sidebar-compact {
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    overflow: hidden;
}

.nk-sidebar.sidebar-compact + .main-content {
    margin-left: 200px !important;
}

.sidebar-compact.metismenu{
    max-width: 200px;
}


/* Main menu items */
.metismenu > li > a {
    color: #2c3e50;
    font-weight: 600;
    border-radius: 8px;
    margin: 2px 8px;
    transition: all 0.3s ease;
    position: relative;
    display: flex !important;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
}

.metismenu >li> ul > li > a > div > i{
    background-color: var(--primary);
    padding: 8px !important;
    border-radius:50%;
    height: 25px;
    width: 25px;
    align-content: center;
}

.metismenu > li > a:hover {
    background-color: #f8f9fa;
    color: #667eea;
}

/* Active menu item */
.metismenu > li.active > a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* CRITICAL FIX: Submenu visibility */
.metismenu .mm-collapse {
    display: none;
    height: 0;
    overflow: visible;
}

.metismenu .mm-collapse.mm-show {
    display: block;
    height: auto;
}

.metismenu .mm-collapse:not(.mm-show) {
    display: none !important;
}

.metismenu .mm-collapse.mm-show {
    display: block !important;
}

/* Submenu styling */
.metismenu ul {
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 8px 12px;
    padding: 8px 0;
    list-style: none;
}

.metismenu ul a {
    color: #6c757d;
    font-weight: 500;
    padding: 8px 16px;
    margin: 2px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex !important;
    align-items: center;
    text-decoration: none;
}

.metismenu ul a:hover {
    background-color: #e9ecef;
    color: #495057;
}

/* ===== BASE CARET STYLES (keep your existing) ===== */
.metismenu .has-arrow:after {
    content: '';
    border-style: solid;
    border-width: 0.1em 0.1em 0 0;
    display: inline-block;
    height: 0.4em;
    position: absolute;
    right: 1.5em;
    top: 50%;
    transform: rotate(135deg) translateY(-50%);
    transform-origin: top;
    width: 0.4em;
    border-color: #6c757d;
    transition: transform 0.3s ease;
}

.metismenu .has-arrow[aria-expanded="true"]:after {
    transform: rotate(-45deg) translateY(-50%);
    border-color: #667eea;
}

.metismenu > li > .has-arrow[aria-expanded="true"]:after {
    border-color: white;
}

/* ===== CRITICAL FIX FOR ICON VIEW SUBMENUS ===== */

/* Show carets in ALL submenus when in icon view */
.sidebar-icons .metismenu ul .has-arrow:after,
.sidebar-icons .metismenu ul ul .has-arrow:after,
.sidebar-icons .metismenu ul ul ul .has-arrow:after {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: rotate(135deg) translateY(-50%) !important;
    border-color: #6c757d !important;
}

/* Expanded state for submenu carets in icon view */
.sidebar-icons .metismenu ul .has-arrow[aria-expanded="true"]:after,
.sidebar-icons .metismenu ul ul .has-arrow[aria-expanded="true"]:after,
.sidebar-icons .metismenu ul ul ul .has-arrow[aria-expanded="true"]:after {
    transform: rotate(-45deg) translateY(-50%) !important;
    border-color: #667eea !important;
}

/* Ensure submenu items have enough padding for carets */
.sidebar-icons .metismenu ul a {
    padding-right: 35px !important;
    position: relative !important;
}

.sidebar-icons .metismenu ul ul a {
    padding-right: 30px !important;
}

.sidebar-icons .metismenu ul ul ul a {
    padding-right: 25px !important;
}
/* =======================
   Floating Submenus Container
   ======================= */
#floating-submenus {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3000;
    pointer-events: none; /* Let submenus handle hover */
    overflow: visible;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}



/* Submenu wrapper inside floating container */
#floating-submenus  {
    position: relative;
    width: auto;
    min-width: 220px;
}

/* Base submenu */
#floating-submenus  ul {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Nested submenus */
#floating-submenus  ul ul {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin-left: 210px;
}

/* 3rd level submenu */
#floating-submenus  ul ul ul {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin-left: 210px;
}

/* Menu links */
#floating-submenus  ul a {
    color: #6c757d;
    font-weight: 500;
    padding: 8px 16px;
    margin: 2px 8px;
    border-radius: 6px;
    display: flex !important;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative !important;
}

/* Active submenu link */
#floating-submenus  ul a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102,126,234,0.3);
}

/* Hover effect */
#floating-submenus ul a:hover {
    background: linear-gradient(135deg, rgba(102,126,234,0.08) 0%, rgba(118,75,162,0.08) 100%);
    color: #495057;
    transform: translateX(2px);
}

/* Icons/avatars in submenu */
#floating-submenus  ul a > div.avatar,
#floating-submenus  ul a > div.nav-icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

/* Carets for submenus */
#floating-submenus  .has-arrow:after {
    content: '';
    border-style: solid;
    border-width: 0.1em 0.1em 0 0;
    display: inline-block;
    height: 0.4em;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: rotate(135deg) translateY(-50%);
    transform-origin: top;
    width: 0.4em;
    border-color: #6c757d;
    transition: transform 0.3s ease;
}

/* Expanded caret */
#floating-submenus  .has-arrow[aria-expanded="true"]:after {
    transform: rotate(-45deg) translateY(-50%);
    border-color: #667eea;
}

/* Show submenu */
#floating-submenus  .mm-collapse.mm-show {
    display: block !important;
}

/* Smooth transition */
#floating-submenus  .mm-collapse {
    transition: all 0.3s ease;
    pointer-events: auto;
}

/* Text styling */
#floating-submenus  ul a .nav-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Optional: Scrollbar for floating menus */
#floating-submenus  ul {
    max-height: 80vh;
    overflow-y: auto;
}

#floating-submenus  ul::-webkit-scrollbar {
    width: 4px;
}

#floating-submenus  ul::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#floating-submenus  ul::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

/* Colors per top-level menu item (avatars) */
#floating-submenus  > li:nth-child(1) > a .nav-icon { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
#floating-submenus  > li:nth-child(2) > a .nav-icon { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
#floating-submenus  > li:nth-child(3) > a .nav-icon { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
#floating-submenus  > li:nth-child(4) > a .nav-icon { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
#floating-submenus  > li:nth-child(5) > a .nav-icon { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
#floating-submenus  > li:nth-child(6) > a .nav-icon { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
#floating-submenus  > li:nth-child(7) > a .nav-icon { background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%); }
#floating-submenus  > li:nth-child(8) > a .nav-icon { background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%); }

/* Active top-level menu hover */
#floating-submenus  > li.active > a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

/* Top-level menu hover */
#floating-submenus  > li > a:hover {
    background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
    color: #667eea;
}

#floating-submenus  > li > a:hover .nav-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Responsive for mobile */
@media (max-width: 768px) {
    #floating-submenus {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width:200px;
    }

    #floating-submenus  ul {
        position: relative;
        min-width: 80% !important;
        box-shadow: none !important;
        margin-left: 0 !important;
    }

    #floating-submenus  ul ul,
    #floating-submenus  ul ul ul {
        margin-left: 0 !important;
    }
}





/* Section labels */
.nav-label.sidebar-section {
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 20px 8px;
    margin-top: 8px;
}

/* Icon styling */
.nav-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

/* Icons View Specific */
.sidebar-icons .nav-text,
.sidebar-icons .nav-label.sidebar-section,
.sidebar-icons .brand-text,
.sidebar-icons .has-arrow:after {
    display: none !important;
}

.sidebar-icons .metismenu > li > a {
    justify-content: center;
    padding: 0px !important;
    width: 40px !important;
}

.sidebar-icons .nav-icon {
    margin-right: 0px !important;
    width: 40px;
    height: 40px;
}

/* Icons View Submenu Fix */
.sidebar-icons .metismenu > li {
    position: relative;
    padding: 5px !important;
/*    width: 220px;*/
}

.sidebar-icons .metismenu ul {
    overflow: visible !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    min-width: 220px !important;
    background: #fff !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 2000 !important;
    margin-left:60px;
}

.sidebar-icons .metismenu ul >li> .mm-collapse{
    margin-left: 210px !important;
}

.sidebar-icons .metismenu ul >li> .mm-collapse > li > a > div > i{
    background-color: var(--secondary);
      padding: 8px !important;
    border-radius:50%;
    height: 25px;
    width: 25px;
    align-content: center;
}

/* CSS-only hover states - but limited functionality */
.metismenu li:hover > .mm-collapse {
    display: block !important;
    height: auto !important;
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px; /* Adjust based on your content */
    }
} 

.metismenu li:not(:hover) > .mm-collapse:not(.mm-show) {
    display: none !important;
    height: 0 !important;
}

/* Add transition for smooth hide/show */
.metismenu .mm-collapse {
    transition: all 0.5s ease-in-out;
}


.metismenu li.has-children > a {
    position: relative;
    padding-right: 40px !important;
}

.metismenu li.has-children > a:after {
    content: '›';
    font-family: Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
    color: #6c757d;
}

.metismenu li.has-children > a[aria-expanded="true"]:after {
    transform: translateY(-50%) rotate(90deg);
}

.metismenu ul ul ul a i {
    background-color: var(--success) !important;
    padding: 8px;
}

/* Text elements */
.nav-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Scrollbar */
.nk-nav-scroll::-webkit-scrollbar {
    width: 4px;
}

.nk-nav-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.nk-nav-scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

/* Sidebar Header */
.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-icons .sidebar-header {
    justify-content: center;
}

.sidebar-icons .sidebar-controls {
    display: none;
}

/* View Mode Selector */
.sidebar-view-mode {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-icons .sidebar-view-mode {
    padding: 0.5rem;
}

.sidebar-icons .sidebar-view-mode .btn-group {
    flex-direction: column;
}

.sidebar-icons .sidebar-view-mode .btn span {
    display: none;
}

.metismenu {
    position:fixed;
}

/* Mobile */
@media (max-width: 768px) {
    .nk-sidebar {
        transform: translateX(-100%);
        overflow: hidden;
    }

    .metismenu {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        width: 100% !important;
        position:fixed;
    }
    
    .nk-sidebar.mobile-open {
        transform: translateX(0);
        overflow: hidden;
        margin-top: 0px;
    }

     /* Make submenus relative on mobile so they are visible */
    .sidebar-icons .metismenu ul {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        min-width: 100% !important;
        box-shadow: none !important;
    }

    .sidebar-compact .metismenu ul {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        min-width: 100% !important;
        box-shadow: none !important;
    }


    .nk-sidebar.sidebar-icons .metismenu ul {
        position: absolute; !important;
        left: 0 !important;
        top: 0 !important;
        min-width: 100% !important;
        box-shadow: none !important;
        margin-left:65px !important;
    }
    
    .content-body, .header {
        margin-left: 0 !important;
    }

    .nk-sidebar.mobile-open + .content-body, .header {
        margin-top: 0 !important; /* optional when sidebar is open */
    }

    .sidebar-icons .metismenu > li {
        width: 40px !important;
    }

    .sidebar-icons .metismenu ul > li > .mm-collapse {
        margin-left: 90px !important;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    }

    .nk-sidebar .metismenu ul ul ul  {
        background:  linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    }

 /*   .sidebar-icons .metismenu ul >li> .mm-collapse > li > a > div > i{
        background-color: var(--secondary);
          padding: 8px !important;
        border-radius:50%;
        height: 25px;
        width: 25px;
        align-content: center;
    }*/
}

.metismenu > li > a .nav-icon{
/*    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);*/
}

/* Color Variants for Menu Sections */
.metismenu > li:nth-child(1) > a .nav-icon { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
}
.metismenu > li:nth-child(2) > a .nav-icon { 
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); 
}
.metismenu > li:nth-child(3) > a .nav-icon { 
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); 
}
.metismenu > li:nth-child(4) > a .nav-icon { 
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); 
}
.metismenu > li:nth-child(5) > a .nav-icon { 
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); 
}
.metismenu > li:nth-child(6) > a .nav-icon { 
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); 
}
.metismenu > li:nth-child(7) > a .nav-icon { 
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%); 
}
.metismenu > li:nth-child(8) > a .nav-icon { 
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%); 
}

/* Active State Colors */
.metismenu > li.active > a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.metismenu > li.active > a .nav-icon {
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

/* Hover Effects with Colors */
.metismenu > li > a:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    transform: translateX(5px);
}

.metismenu > li > a:hover .nav-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Submenu Item Colors */
.metismenu ul a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.metismenu ul a:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    color: #495057;
}

/* Section Label Colors */
.nav-label.sidebar-section {
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 20px 8px;
    margin-top: 8px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(233, 236, 239, 0.8) 100%);
}

/* Arrow Colors */
.metismenu .has-arrow:after {
    border-color: #6c757d;
}

.metismenu .has-arrow[aria-expanded="true"]:after {
    border-color: #667eea;
}

.metismenu > li.active > .has-arrow:after {
    border-color: white;
}

/* Submenu Background Colors */
.metismenu ul {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.metismenu ul ul {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Sidebar Header Colors */
.sidebar-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid #e9ecef;
}

/* View Mode Selector Colors */
.sidebar-view-mode {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.sidebar-view-mode .btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
}

.sidebar-view-mode .btn-outline-primary.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.sidebar-view-mode .btn-outline-primary:hover:not(.active) {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* Icons View - FIXED WIDTH */
.nk-sidebar.sidebar-icons {
    overflow: visible !important;
    width: 40px !important;
}

.nk-sidebar.sidebar-icons .nk-nav-scroll {
    overflow: visible !important;
    position: relative;
    height: 100% i !important;
    width: 60px;

}

.nk-sidebar:not(.sidebar-icons) .metismenu {
    position: relative;
}


/* ===== LAYOUT ENHANCEMENTS ===== */

/* Main Layout Styles */
#main-wrapper {
    min-height: 100vh;
    background-color: #f5f7fb;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e9ecef;
}

/* ===== HEADER LAYOUT ===== */
.nk-header {
    position: fixed;
    top: 0;
    left: 280px; /* matches sidebar width */
    height: 70px;
    width: calc(100% - 280px);
    background: white;
    border-bottom: 1px solid var(--border);
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Mobile view */
@media (max-width: 768px) {
    .nk-header {
        left: 0 !important;
        width: 100% !important;
    }
}

/* Header Inner Content */
.nk-header .header-left,
.nk-header .header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nk-header .header-title {
    font-weight: var(--font-weight-semibold);
    font-size: 1.125rem;
    color: var(--dark);
}

.nk-header .header-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Header Buttons */
.nk-header .btn {
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.nk-header .btn i {
    margin-right: 0.35rem;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .nk-header {
        background: #2d3748;
        border-bottom-color: #4a5568;
        color: #e2e8f0;
    }

    .nk-header .header-title {
        color: #edf2f7;
    }
}


/* ===== CARD ENHANCEMENTS ===== */
.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    z-index: 1000;
}

.card-header {
    border-radius: var(--radius) var(--radius) 0 0 !important;
    background-color: white;
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
}

.card-header:first-child {
    border-radius: var(--radius) var(--radius) 0 0 !important;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: white;
    border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius) !important;
    padding: 1rem 1.5rem;
}

/* Card Variations */
.card-primary {
    border-left: 4px solid var(--primary);
}

.card-success {
    border-left: 4px solid var(--success);
}

.card-danger {
    border-left: 4px solid var(--danger);
}

.card-warning {
    border-left: 4px solid var(--warning);
}

.card-info {
    border-left: 4px solid var(--info);
}

/* ===== TABLE ENHANCEMENTS ===== */
.table {
    margin-bottom: 0;
}

.table thead th {
    border-top: none;
    font-weight: var(--font-weight-semibold);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0.75rem;
}

.table tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border-color: var(--border-light);
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.15);
}

.table-hover tbody tr:hover {
    background-color: var(--primary-light);
}

/* Table Responsive */
.table-responsive {
    border-radius: var(--radius);
}

/* ===== BUTTON ENHANCEMENTS ===== */
.btn {
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 1.125rem;
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    line-height: 2;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    border-radius: var(--radius);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Button Variations */
.btn-success {
    background-color: var(--success);
    border-color: var(--success);
    color: white;
}

.btn-danger {
    background-color: var(--danger);
    border-color: var(--danger);
    color: white;
}

.btn-warning {
    background-color: var(--warning);
    border-color: var(--warning);
    color: #212529;
}

.btn-info {
    background-color: var(--info);
    border-color: var(--info);
    color: white;
}

/* Rounded Buttons */
.btn-rounded {
    border-radius: 50px !important;
}

.btn-rounded-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-rounded-circle.btn-sm {
    width: 2rem;
    height: 2rem;
}

.btn-rounded-circle.btn-lg {
    width: 3rem;
    height: 3rem;
}

/* ===== BADGE ENHANCEMENTS ===== */
.badge {
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-sm);
    padding: 0.35em 0.65em;
}

.badge-pill {
    border-radius: 50rem;
    padding: 0.35em 0.65em;
}

.badge-primary {
    background-color: var(--primary);
}

.badge-success {
    background-color: var(--success);
}

.badge-danger {
    background-color: var(--danger);
}

.badge-warning {
    background-color: var(--warning);
    color: #212529;
}

.badge-info {
    background-color: var(--info);
}

.badge-secondary {
    background-color: var(--secondary);
}

.badge-light {
    background-color: var(--light);
    color: var(--dark);
}

/* ===== FORM ENHANCEMENTS ===== */
.form-control {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
    background-color: #fff;
}

.form-label {
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 0.875rem;
}

.form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

/* Input Groups */
.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid var(--border);
    color: #6c757d;
    font-size: 0.875rem;
}

.input-group .form-control:focus + .input-group-text {
    border-color: var(--primary);
}

/* Custom Controls */
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

/* ===== NAVIGATION ENHANCEMENTS ===== */
/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: white;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Nav Tabs */
.nav-tabs {
    border-bottom: 1px solid var(--border);
}

.nav-tabs .nav-link {
    border: none;
    color: var(--secondary);
    font-weight: var(--font-weight-medium);
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    border: none;
    color: var(--primary);
}

.nav-tabs .nav-link.active {
    background: none;
    border: none;
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
    font-weight: var(--font-weight-semibold);
}

/* ===== ALERT ENHANCEMENTS ===== */
.alert {
    border: none;
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    border-left: 4px solid transparent;
}

.alert-primary {
    background-color: rgba(67, 97, 238, 0.1);
    border-left-color: var(--primary);
    color: #2c44b3;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left-color: var(--success);
    color: #155724;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left-color: var(--danger);
    color: #721c24;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left-color: var(--warning);
    color: #856404;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    border-left-color: var(--info);
    color: #0c5460;
}

/* ===== AVATAR & ICON STYLES ===== */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: var(--font-weight-semibold);
    color: white;
    shadow: var(--shadow-sm);
}

.avatar-sm {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
}

.avatar-md {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
}

.avatar-lg {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
}

.avatar-xl {
    width: 4rem;
    height: 4rem;
    font-size: 1.25rem;
}

.avatar-primary {
    background-color: var(--primary);
}

.avatar-light {
    background-color: var(--light);
    color: var(--primary);
}

.avatar-success {
    background-color: var(--success);
}

.avatar-danger {
    background-color: var(--danger);
}

.avatar-warning {
    background-color: var(--warning);
    color: #212529;
}

.avatar-info {
    background-color: var(--info);
}

.avatar-secondary {
    background-color: var(--secondary);
}

/* ===== MODAL ENHANCEMENTS ===== */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

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

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

.modal-body {
    padding: 1.5rem;
}

/* ===== PROGRESS BAR ENHANCEMENTS ===== */
.progress {
    border-radius: var(--radius-sm);
    background-color: #e9ecef;
    height: 0.5rem;
}

.progress-bar {
    border-radius: var(--radius-sm);
    background-color: var(--primary);
}

/* ===== DROPDOWN ENHANCEMENTS ===== */
.dropdown-menu {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.5rem;
    z-index: 1000;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-size: 0.875rem;
    z-index: 1000;
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    z-index: 1000;
}

.dropdown-divider {
    border-color: var(--border-light);
}

/* ===== PAGINATION ENHANCEMENTS ===== */
.pagination {
    margin-bottom: 0;
}

.page-link {
    border: 1px solid var(--border);
    color: var(--secondary);
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ===== UTILITY CLASSES ===== */
/* Background Colors */
.bg-primary-light {
    background-color: var(--primary-light) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--success) 0%, #1e7e34 100%) !important;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #c82333 100%) !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #e0a800 100%) !important;
}

.bg-gradient-info {
    background: linear-gradient(135deg, var(--info) 0%, #138496 100%) !important;
}

.bg-purple {
  background-color: var(--purple) !important;
}

.bg-orange {
  background-color: var(--orange) !important;
}

.bg-teal {
  background-color: var(--teal) !important;
}

.bg-pink {
  background-color: var(--pink) !important;
}

.bg-indigo {
  background-color: var(--indigo) !important;
}


/* Shadow Utilities */
.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* Border Utilities */
.border-light {
    border-color: var(--border-light) !important;
}

.rounded {
    border-radius: var(--radius) !important;
}

.rounded-sm {
    border-radius: var(--radius-sm) !important;
}

.rounded-lg {
    border-radius: var(--radius-lg) !important;
}

/* Spacing Utilities */
.p-4 {
    padding: 1.5rem !important;
}

.p-5 {
    padding: 2rem !important;
}

.m-4 {
    margin: 1.5rem !important;
}

.m-5 {
    margin: 2rem !important;
}

/* ===== SPECIAL COMPONENTS ===== */
/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-active {
    background-color: var(--success);
}

.status-inactive {
    background-color: var(--secondary);
}

.status-pending {
    background-color: var(--warning);
}

/* Loading Spinner */
.spinner-primary {
    color: var(--primary);
}

/* Empty States */
.empty-state {
    padding: 1rem 1rem;
    text-align: center;
    color: var(--secondary);
}

.empty-state i {
    font-size: 1rem;
    margin-bottom: 0rem;
    opacity: 0.5;
}

.empty-state h4 {
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.empty-state p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* Stats Cards */
.stats-card {
    text-align: center;
    padding: 1.5rem;
}

.stats-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.stats-card .stats-number {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
}

.stats-card .stats-label {
    color: var(--secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .card-header {
        padding: 1rem 1.25rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-group .btn {
        margin-bottom: 0.25rem;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-state i {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 1rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #2d3748;
        --dark: #f7fafc;
        --border: #4a5568;
        --border-light: #2d3748;
    }
    
    body {
        background-color: #1a202c;
        color: #f7fafc;
    }
    
    .card {
        background-color: #2d3748;
        color: #f7fafc;
    }
    
    .card-header {
        background-color: #2d3748;
        border-bottom-color: #4a5568;
    }
    
    .table {
        color: #f7fafc;
    }
    
    .table thead th {
        background-color: #4a5568;
        color: #f7fafc;
        border-bottom-color: #718096;
    }
    
    .table tbody td {
        border-color: #4a5568;
    }
    
    .form-control {
        background-color: #2d3748;
        border-color: #4a5568;
        color: #f7fafc;
    }
    
    .form-control:focus {
        background-color: #2d3748;
        color: #f7fafc;
    }
    
    .input-group-text {
        background-color: #4a5568;
        border-color: #4a5568;
        color: #f7fafc;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
    
    .btn, .pagination, .alert {
        display: none !important;
    }
    
    .table {
        border: 1px solid #dee2e6;
    }
}


/* ===== POS HEADER COMPONENT STYLES ===== */

/* Quick Action Buttons - Exact match for your current style */
.btn-hover-scale {
    transition: all 0.3s ease;
    border: none;
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-hover-scale:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-hover-scale::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-hover-scale:hover::before {
    left: 100%;
}

/* Status Icons - Exact match */
.bg-primary,
.bg-success,
.bg-warning,
.bg-info,
.bg-danger,
.bg-secondary {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Breadcrumb Styling - Exact match */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
    float: left !important;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* Card Styling - Exact match */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 12px;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

.card-header {
    border-bottom: 2px solid #f8f9fa;
    border-radius: 12px 12px 0 0 !important;
}

/* Gradient Background - Exact match */
.bg-info.gradient-1 {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%) !important;
}

/* Status Bar Cards - Exact match */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Badge Styling - Exact match */
.badge-light {
    background-color: rgba(255,255,255,0.9);
    color: #4361ee;
    font-weight: 600;
}

/* Responsive Design - Exact match */
@media (max-width: 768px) {
    .card-body.py-3 {
        padding: 1rem 0.5rem !important;
    }
    
    .btn-block {
        padding: 0.75rem 0.5rem;
    }
    
    .btn-block i {
        font-size: 1.5rem !important;
    }
    
    .btn-block h6 {
        font-size: 0.875rem;
    }
    
    .btn-block small {
        font-size: 0.75rem;
    }
}


/* View Order Page Specific Styles */
.view-order-page .card {
    margin-bottom: 1.5rem;
}

.view-order-page .dropdown-menu {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.5rem;
}

.quick-actions-btn{
    width:100% ;
}

.view-order-page .dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.view-order-page .dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* Print section styling */
#print-pos {
    background: white;
    border-radius: var(--radius);
}

/* Responsive adjustments for view order */
@media (max-width: 768px) {
    .view-order-page .col-lg-8,
    .view-order-page .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    .view-order-page .btn-block {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .view-order-page .card-body {
        padding: 1rem;
    }
}





/*EXpense LISt*/

/* ===== EXPENSES PAGE SPECIFIC STYLES ===== */

/* Custom Switch Styling */
.custom-control-input:checked ~ .custom-control-label::before {
    border-color: var(--primary);
    background-color: var(--primary);
}

/* Dropdown Menu Enhancements */
.btn-group .dropdown-menu {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.5rem;
}

.btn-group .dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.btn-group .dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* Enhanced Table Interactions */
#expenseListTable tbody tr {
    cursor: pointer;
    transition: all 0.2s ease;
}

#expenseListTable tbody tr:hover {
    background-color: var(--primary-light) !important;
    transform: translateY(-1px);
}

/* Badge Color Variations */
.badge.badge-success {
    background-color: var(--success);
}

.badge.badge-warning {
    background-color: var(--warning);
    color: #212529;
}

.badge.badge-secondary {
    background-color: var(--secondary);
}

.badge.badge-info {
    background-color: var(--info);
}

.badge.badge-danger {
    background-color: var(--danger);
}

/* Responsive Adjustments for Expenses */
@media (max-width: 768px) {
    .expenses-filters .col-md-3,
    .expenses-filters .col-md-2 {
        margin-bottom: 1rem;
    }
    
    .btn-group .btn {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .card-body.p-4 {
        padding: 1.5rem !important;
    }
    
    .form-label {
        font-size: 0.875rem;
    }
}

/* Animation for Interactive Elements */
@keyframes gentlePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.btn-primary.animate-gentle-pulse {
    animation: gentlePulse 2s infinite;
}

/* Status Indicator in Table */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-active {
    background-color: var(--success);
}

.status-inactive {
    background-color: var(--secondary);
}

.status-paid {
    background-color: var(--success);
}

.status-unpaid {
    background-color: var(--warning);
}

/* Amount Styling Variations */
.amount-positive {
    color: var(--success);
    font-weight: var(--font-weight-semibold);
}

.amount-negative {
    color: var(--danger);
    font-weight: var(--font-weight-semibold);
}

.amount-neutral {
    color: var(--secondary);
    font-weight: var(--font-weight-semibold);
}


/* ===== NEW EXPENSE FORM STYLES ===== */

/* Input Group Enhancements */
.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    transition: all 0.2s;
}

.form-control:focus,
.selectpicker:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

/* Custom Switch Styling */
.custom-switch .custom-control-label::before {
    border-color: #adb5bd;
    background-color: #e9ecef;
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
    border-color: var(--primary);
    background-color: var(--primary);
}

/* Table row styling */
#newExpenseEntryTable tbody tr {
    transition: all 0.2s ease;
}

#newExpenseEntryTable tbody tr:hover {
    background-color: var(--primary-light);
}

/* Button hover effects */
.btn-outline-success:hover {
    transform: scale(1.1);
    transition: all 0.2s ease;
}

.btn-outline-danger:hover {
    transform: scale(1.1);
    transition: all 0.2s ease;
}

/* Amount input styling */
.amount, .tax_amount, .net_total {
    font-weight: 600;
    background-color: #f8f9fa;
}

.amount:focus, .tax_amount:focus, .net_total:focus {
    background-color: #fff;
}

/* Form validation states */
.form-control.is-valid {
    border-color: var(--success);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
}

/* Animation for new rows */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.new-row {
    animation: slideIn 0.3s ease-out;
}

/* Responsive adjustments for expense form */
@media (max-width: 768px) {
    .expense-form .card-body .row > [class*="col-"] {
        margin-bottom: 1rem;
    }
    
    .expense-form .input-group {
        margin-bottom: 0.5rem;
    }
    
    .expense-form .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
}

/* Loading state for form */
.form-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Expense table specific styles */
.expense-table .form-control {
    border-radius: var(--radius-sm);
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.expense-table .selectpicker {
    border-radius: var(--radius-sm);
}

/* Focus states for better accessibility */
.expense-weight:focus,
.expense-rate:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

.dt-search{
    float: right;
    margin-top:5px;
    margin-bottom:5px;
}

/* Additional styles for accounts page */

/* Badge variants for different account statuses */
.badge-receivable {
    background-color: #28a745;
    color: white;
}

.badge-payable {
    background-color: #dc3545;
    color: white;
}

.badge-normal {
    background-color: #6c757d;
    color: white;
}

/* Balance styling */
.text-balance-positive {
    color: #28a745;
    font-weight: 600;
}

.text-balance-negative {
    color: #dc3545;
    font-weight: 600;
}

.text-balance-zero {
    color: #6c757d;
    font-weight: 600;
}

/* Account card hover effects */
.account-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.account-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Category badges spacing */
.category-badges .badge {
    margin-right: 4px;
    margin-bottom: 4px;
}

/* Responsive table adjustments */
@media (max-width: 768px) {
    .table-accounts th,
    .table-accounts td {
        padding: 0.5rem;
    }
    
    .btn-group-accounts .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}


/* Search Box */
.search-box {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 4;
}

.search-input {
    padding-left: 45px;
    border-radius: 8px;
}

/* Stat Cards */
.stat-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.stat-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}


/* Account Number */
.account-number {
    transition: all 0.3s ease;
}

.account-row:hover .account-number {
    background: #667eea !important;
    color: white;
}


/* Table Enhancements */
.table th {
    font-weight: 600;
    color: #2c3e50;
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.table td {
    vertical-align: middle;
    border-color: #f8f9fa;
}


/* Filter Form Styles */
#filterForm .form-control {
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-header .d-flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .btn-group {
        gap: 0.5rem;
    }
    
    .btn-group .btn {
        margin: 2px 0;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    #filterForm .row > div {
        margin-bottom: 0.5rem;
    }
}



@media (max-width: 576px) {
    .account-info,
    .account-meta,
    .status-info,
    .balance-info {
        min-width: 120px;
    }
    
    .categories-info .badge {
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .btn-group .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}


/* Make selectpicker dropdown white */

/* Override the bg-light class that gets added */
/* Force white background on Bootstrap Select placeholder buttons */
/*.bootstrap-select > .dropdown-toggle{
    background-color: #fff !important;
    border-color: #dee2e6;  
    width: 100% !important;
}*/


.bootstrap-select{
    width: 100% !important;
}


/* When there's an input-group-prepend before the selectpicker, reduce width */
.input-group:has(.input-group-prepend) .bootstrap-select{
    width: calc(100% - 50px) !important;
}

/* Alternative approach using adjacent sibling selector */
.input-group-prepend + .bootstrap-select {
    width: calc(100% - 50px) !important;
}

/* Default selectpicker width */
.bootstrap-select > .dropdown-toggle {
    background-color: #fff !important;
    border-color: #dee2e6;
    width: 100% !important;
}

/* When selectpicker is inside input-group with prepend, reduce width */
.input-group .bootstrap-select > .dropdown-toggle {
    width: 100% !important;
}

/* When there's an input-group-prepend before the selectpicker, reduce width */
.input-group:has(.input-group-prepend) .bootstrap-select > .dropdown-toggle {
/*    width: calc(100% - 50px) !important;*/
}

/* Alternative approach using adjacent sibling selector */
.input-group-prepend + .bootstrap-select > .dropdown-toggle {
/*    width: calc(100% - 50px) !important;*/
}

/* Make sure the input-group takes full width */
.input-group {
    width: 100%;
}

/* Adjust the border radius when prepend is present */
.input-group-prepend + .bootstrap-select .dropdown-toggle {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}


/* Modern Form Styles */
.modern-form .form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.modern-form .input-group-text {
    background: #f8f9fa !important;
    border-color: #e9ecef;
}

.modern-form .form-control {
    border-color: #e9ecef;
    transition: all 0.3s ease;
}

.modern-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Form Sections */
.form-section {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: visible;
    margin-bottom: 1.5rem;
}

.section-title {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    border-bottom: 1px solid #e9ecef;
}


/* Cost Center Info */
.cost-center-icon, .department-icon, .manager-icon {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
}

.cost-center-link {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cost-center-link:hover {
    color: #667eea;
    text-decoration: underline;
}



.cost-center-row:hover {
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}



/* Responsive Design */
@media (max-width: 768px) {

    
    .cost-center-icon, .department-icon, .manager-icon {
        display: none;
    }
}


/* Employee Info */
.employee-avatar {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
}

.employee-link {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.employee-link:hover {
    color: #667eea;
    text-decoration: underline;
}

.employee-row:hover {
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .employee-avatar {
        display: none;
    }
}

@media (max-width: 576px) {
    
    .department-info {
        min-width: 120px;
    }
}

.employee-row, .btn {
    transition: all 0.3s ease;
}

.page-titles {
    padding: .9375rem 1.875rem;
}

.input-group-prepend,
.input-group-append {
    display: flex;
}
.input-group-prepend .btn,
.input-group-append .btn {
    position: relative;
    z-index: 2;
}
.input-group-prepend .btn + .btn,
.input-group-prepend .btn + .input-group-text,
.input-group-prepend .input-group-text + .input-group-text,
.input-group-prepend .input-group-text + .btn,
.input-group-append .btn + .btn,
.input-group-append .btn + .input-group-text,
.input-group-append .input-group-text + .input-group-text,
.input-group-append .input-group-text + .btn {
    margin-left: -1px;
}

.input-group-prepend {
    margin-right: -1px;
}

.input-group-lg > .form-control,
.input-group-lg > .input-group-prepend > .input-group-text,
.input-group-lg > .input-group-append > .input-group-text,
.input-group-lg > .input-group-prepend > .btn,
.input-group-lg > .input-group-append > .btn {
    height: calc(2.64063rem + 2px);
    padding: .5rem 1rem;

    font-size: 1.09375rem;
    line-height: 1.5;

    border-radius: .3rem;
}

.input-group-sm > .form-control,
.input-group-sm > .input-group-prepend > .input-group-text,
.input-group-sm > .input-group-append > .input-group-text,
.input-group-sm > .input-group-prepend > .btn,
.input-group-sm > .input-group-append > .btn {
    height: calc(1.64844rem + 2px);
    padding: .25rem .5rem;

    font-size: .76563rem;
    line-height: 1.5;

    border-radius: .2rem;
}

.input-group > .input-group-prepend > .btn,
.input-group > .input-group-prepend > .input-group-text,
.input-group > .input-group-append:not(:last-child) > .btn,
.input-group > .input-group-append:not(:last-child) > .input-group-text,
.input-group > .input-group-append:last-child > .btn:not(:last-child):not(.dropdown-toggle),
.input-group > .input-group-append:last-child > .input-group-text:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group > .input-group-append > .btn,
.input-group > .input-group-append > .input-group-text,
.input-group > .input-group-prepend:not(:first-child) > .btn,
.input-group > .input-group-prepend:not(:first-child) > .input-group-text,
.input-group > .input-group-prepend:first-child > .btn:not(:first-child),
.input-group > .input-group-prepend:first-child > .input-group-text:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.bootstrap-touchspin .input-group-btn,
.bootstrap-touchspin .input-group-prepend,
.bootstrap-touchspin .input-group-append,
.bootstrap-touchspin .form-control {
    margin: 10px 0 0;
}

.rtl .input-group > .input-group-append:last-child > .btn:not(:last-child):not(.dropdown-toggle),
.rtl .input-group > .input-group-append:last-child > .input-group-text:not(:last-child),
.rtl .input-group > .input-group-append:not(:last-child) > .btn,
.rtl .input-group > .input-group-append:not(:last-child) > .input-group-text,
.rtl .input-group > .input-group-prepend > .btn,
.rtl .input-group > .input-group-prepend > .input-group-text {
    border-radius: 0 .25rem .25rem 0;
}
.rtl .input-group > .input-group-append > .btn,
.rtl .input-group > .input-group-append > .input-group-text,
.rtl .input-group > .input-group-prepend:first-child > .btn:not(:first-child),
.rtl .input-group > .input-group-prepend:first-child > .input-group-text:not(:first-child),
.rtl .input-group > .input-group-prepend:not(:first-child) > .btn,
.rtl .input-group > .input-group-prepend:not(:first-child) > .input-group-text {
    border-radius: .25rem 0 0 .25rem;
}

.value-icon {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
}

.table-responsive {
    overflow: visible !important;
}