  body {
            font-family: 'Inter', sans-serif;
            overflow: hidden; /* Hide scrollbar during loading */
        }
        .gradient-blue-button {
            background: linear-gradient(to right, #4F46E5, #3B82F6);
            transition: background 0.3s ease;
        }
        .gradient-blue-button:hover {
            background: linear-gradient(to right, #3B82F6, #4F46E5);
        }
        .header-gradient-bg {
            background: linear-gradient(to right, #007bff, #00c6ff);
        }
       /* ... (rest of your CSS) ... */

        .nav-link.active {
            font-weight: 600;
            /* The color will be handled by the specific header/mobile menu rules */
            position: relative;
        }
        /* Override for active link in header */
        .header-gradient-bg .nav-link.active {
            color: white; /* Keep text white in header */
        }
        .nav-link.active::after {
            /* Removed content and other properties that create the underline */
            content: none; /* This is the key change to remove the underline */
        }
        /* Mobile menu active link styling */
        #primary-navigation.mobile-open .nav-link.active {
             color: #4F46E5; /* Active link color in mobile menu */
        }
        #primary-navigation.mobile-open .nav-link.active::after {
            /* Removed content and other properties that create the underline */
            content: none; /* This is the key change to remove the underline */
        }

/* ... (rest of your CSS) ... */

        /* Desktop & Mobile Dropdown base styles - hidden by default, shown with .is-open */
        .desktop-dropdown {
            position: absolute;
            top: calc(100% + 5px);
            left: 50%;
            transform: translateX(-50%);
            background-color: white;
            border-radius: 0.5rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            min-width: 220px;
            padding: 0.5rem 0;
            z-index: 30;
            display: none; /* Controlled by JS via .is-open or for mobile */
        }
        .desktop-dropdown-item {
            display: block;
            padding: 0.5rem 1rem;
            color: #374151;
            text-decoration: none;
            font-size: 0.875rem;
            transition: background-color 0.2s ease;
        }
        .desktop-dropdown-item:hover {
            background-color: #f3f4f6;
            color: #2563eb;
        }
        .desktop-dropdown.is-open {
            display: block; /* Show when .is-open class is present */
        }

        /* Profile Dropdown specific styles */
        .profile-dropdown {
            position: absolute;
            right: 0;
            top: 100%;
            background-color: white;
            border-radius: 0.5rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            width: 180px;
            padding: 1rem;
            z-index: 30;
            display: none; /* Controlled by JS via .is-open */
            margin-top: 0.5rem;
            flex-direction: column; /* This is flex by default, but hidden. */
            align-items: center;
            text-align: center;
        }
        .profile-dropdown.is-open {
            display: flex; /* Show with flex when .is-open */
        }
        .profile-dropdown .profile-img-lg {
            height: 60px;
            width: 60px;
            border-radius: 9999px;
            object-fit: cover;
            border: 2px solid #e5e7eb;
            margin-bottom: 0.75rem;
        }
        .profile-dropdown .profile-name-text {
            font-size: 0.875rem;
            font-weight: 600;
            color: #1f2937;
            margin-bottom: 1rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }
        .profile-dropdown a {
            display: block;
            width: 100%;
            text-align: center;
            font-size: 0.875rem;
            font-weight: 500;
            padding: 0.5rem 0.75rem;
            border-radius: 0.375rem;
            transition: background-color 0.2s ease, color 0.2s ease;
        }
        .profile-dropdown .change-password-link {
            color: #374151;
            background-color: transparent;
            border: 1px solid #d1d5db;
        }
        .profile-dropdown .change-password-link:hover {
            background-color: #f3f4f6;
            color: #2563eb;
        }
        .profile-dropdown .logout-button {
            background-color: #dc2626;
            color: white;
            margin-top: 0.5rem;
        }
        .profile-dropdown .logout-button:hover {
            background-color: #b91c1c;
        }

        /* Mobile Sub-menu Toggle Icon */
        .mobile-submenu-toggle {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            transition: transform 0.3s ease;
        }
        .mobile-submenu-toggle.rotate-180 { /* Changed to 180 for a full arrow rotation */
            transform: rotate(180deg);
        }

        /* Unified mobile menu when open */
        #primary-navigation.mobile-open {
            display: flex;
            flex-direction: column;
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background-color: white;
            border-top: 1px solid #e5e7eb;
            z-index: 20;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            border-bottom-left-radius: 0.75rem;
            border-bottom-right-radius: 0.75rem;
            overflow-y: auto;
            max-height: calc(100vh - 80px);
            padding-bottom: 1rem;
        }
        #primary-navigation.mobile-open li { /* Ensure full width for mobile menu items */
            width: 100%;
        }
        #primary-navigation.mobile-open .nav-link { /* Adjust padding for main mobile links */
            padding: 0.75rem 1.5rem;
            width: 100%;
            justify-content: space-between; /* To push toggle icon to the right */
            border-bottom: 1px solid #f3f4f6; /* Subtle separator for mobile links */
            color: #374151; /* Darker text for mobile main links */
        }
        #primary-navigation.mobile-open .nav-link:hover {
            background-color: #f3f4f6;
            color: #2563eb;
        }
        #primary-navigation.mobile-open li:last-child .nav-link {
            border-bottom: none; /* No border for the last main link */
        }


        /* When mobile menu is open, its children dropdowns should behave for mobile */
        #primary-navigation.mobile-open .desktop-dropdown {
            display: none; /* Start hidden, JS will toggle with .is-open */
            position: static; /* Remove absolute positioning */
            transform: none; /* Remove translateX */
            box-shadow: none; /* Remove shadow */
            border-radius: 0; /* Remove border-radius */
            background-color: transparent; /* Transparent background */
            padding: 0; /* Remove padding */
            margin-top: 0.25rem; /* Small margin from parent link */
            margin-bottom: 0.25rem;
            border-left: 2px solid #e5e7eb; /* Add mobile submenu border */
            width: auto; /* Allow content to dictate width */
            margin-left: 1rem; /* Indent sub-items */
        }
        #primary-navigation.mobile-open .desktop-dropdown.is-open {
            display: block; /* Show when open on mobile */
        }
        #primary-navigation.mobile-open .desktop-dropdown-item {
            padding: 0.5rem 0.5rem 0.5rem 1rem; /* Adjust padding for mobile sub-items, including left indent */
            font-size: 0.875rem;
            color: #4b5563; /* Gray color for mobile sub-items */
            border-bottom: 1px dashed #eff6ff; /* Subtle dashed line for sub-items */
        }
        #primary-navigation.mobile-open .desktop-dropdown-item:last-child {
            border-bottom: none;
        }


        /* Ensure desktop menu is hidden on mobile until mobile-open */
        @media (max-width: 767px) {
            #primary-navigation:not(.mobile-open) {
                display: none;
            }
            /* Hide desktop time/date on mobile */
            .header-gradient-bg .hidden.sm\:block.text-white.text-xs.font-light.text-right {
                display: none !important;
            }
        }
        /* Ensure desktop menu is flex on desktop, overriding hidden */
        @media (min-width: 768px) {
            #primary-navigation {
                display: flex !important; /* Always show on desktop */
                flex-direction: row; /* Ensure row direction on desktop */
            }
            #primary-navigation.mobile-open { /* Prevent mobile-open styles on desktop */
                position: static;
                flex-direction: row;
                background-color: transparent;
                border-top: none;
                box-shadow: none;
                border-radius: 0;
                overflow-y: visible;
                max-height: none;
                padding-bottom: 0;
            }
            #primary-navigation .nav-link { /* Reset main nav link padding for desktop */
                padding: 0;
                width: auto;
                justify-content: flex-start;
                border-bottom: none;
            }

            #primary-navigation .desktop-dropdown {
                display: none; /* Hidden by default, only show on hover using JS below */
            }
            #primary-navigation .group:hover .desktop-dropdown {
                display: block; /* Tailwind's default desktop hover behavior */
            }
            .profile-dropdown.is-open {
                display: flex !important; /* Ensure it stays flex when open on desktop */
            }
        }

  


        /* Loading Overlay Styles */
        #loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white background */
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999; /* Ensure it's on top of everything */
            transition: opacity 0.5s ease;
            opacity: 1;
        }
        #loading-overlay.hidden {
            opacity: 0;
            pointer-events: none; /* Allow clicks through once hidden */
        }
        #loading-spinner {
            width: 80px; /* Adjust size as needed */
            height: 80px; /* Adjust size as needed */
        }
		
		
		/* Custom styles for the table to make it compact and small-font */
.table.table-bordered {
    border-collapse: collapse; /* Ensure borders are collapsed for a clean look */
    width: 100%;
    font-size: 0.65em; /* Adjust for small font size */
    border: 1px solid #ccc; /* Light border around the table */
}

/* Style for table headers (th) and data cells (td) */
.table.table-bordered th,
.table.table-bordered td {
    border: 1px solid #ddd; /* Lighter border for cells */
    padding: 3px 6px; /* Reduced padding for smaller row height */
    text-align: left;
    white-space: nowrap; /* Prevent text from wrapping in cells */
}

/* Style for table headers specifically */
.table.table-bordered thead th {
    background-color: #f8f9fa; /* Light grey background for headers (Bootstrap's light grey) */
    font-weight: normal; /* Keep header font normal, not bold */
    color: #495057; /* Slightly darker text color for headers */
}

/* Adjust checkbox size if needed */
.table.table-bordered input[type="checkbox"] {
    width: 10px;
    height: 12px;
    vertical-align: middle;
}

/* Adjust badge styles for smaller text */
.table.table-bordered .badge {
    font-size: 0.8em; /* Make badges slightly smaller than table font */
    padding: 0.2em 0.5em; /* Adjust padding for smaller badges */
    display: inline-block; /* Ensure padding applies correctly */
    vertical-align: middle;
}

/* Adjust button styles for smaller text */
.table.table-bordered .btn-sm {
    padding: .1rem .3rem; /* Further reduce padding for small buttons */
    font-size: .65em; /* Match table font size or slightly larger */
    line-height: 1.5;
    border-radius: .2rem;
}


/* General table styling */
.list-table {
    font-size: 12px; /* Small font size */
    text-transform: capitalize;
    border-collapse: collapse; /* Remove default spacing between cells */
    width: 100%;
    border-radius: 8px; /* Apply border-radius to the entire table */
    overflow: hidden; /* Ensures border-radius is visible */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    margin-bottom: 20px; /* Space below the table */
}

/* Table header styling */
.list-table thead tr {
    background: linear-gradient(to right, #2c3e50, #4a6a8c); /* Dark blue gradient */
    color: white; /* White font color */
}

.list-table th,
.list-table td {
    padding: 5px 8px; /* Reduced padding for cells */
    text-align: left;
    border: 1px solid #ddd; /* Light border for cells */
}

/* Table body row alternating background for readability */
.list-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.list-table tbody tr:hover {
    background-color: #f1f1f1; /* Hover effect for rows */
}

/* Image in table */
.list-table td img {
    border-radius: 4px;
    vertical-align: middle;
}

/* Status badges */
.list-table td span[style*="background-color: green"],
.list-table td span[style*="background-color: red"],
.list-table td span[style*="background-color"] {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 11px;
    color: white; /* Ensure text is white on color background */
    white-space: nowrap; /* Prevent text wrapping in badges */
}

/* Action buttons in table */
.list-table td .btn {
    margin-left: 5px;
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 4px;
}

/* Pagination styling (adjust as needed if using Bootstrap or custom) */
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
}

.pagination .page-item {
    margin: 0 2px;
}

.pagination .page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    line-height: 1.25;
    color: #007bff;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
}

.pagination .page-item.active .page-link {
    z-index: 1;
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Adjust font size for form elements within modals for consistency */
.model-body .form-control-sm {
    font-size: 12px;
}
.model-body table td {
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Feedback bar styling */
#feedback_bar {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
}


  /* Custom CSS for modal centering */
        .model {
            display: none; /* Hidden by default */
            position: fixed; /* Stay in place */
            z-index: 1000; /* Sit on top */
            left: 0;
            top: 0;
            width: 100%; /* Full width */
            height: 100%; /* Full height */
            overflow: auto; /* Enable scroll if needed */
            background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
            /* Removed 'display: flex;' here, as it conflicts with 'display: none;' */
            align-items: center; /* Center vertically */
            justify-content: center; /* Center horizontally */
        }

        .model-contain {
            background-color: #fefefe;
            padding: 20px;
            border: 1px solid #888;
            border-radius: 8px; /* Rounded corners */
            box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
            width: 90%; /* Responsive width */
            max-width: 500px; /* Max width for larger screens */
            box-sizing: border-box; /* Include padding and border in the element's total width and height */
        }

        .model-header {
            padding: 15px;
            border-bottom: 1px solid #e5e5e5;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 1.2em;
            font-weight: bold;
        }

        .model-header span {
            cursor: pointer;
            font-size: 1.5em;
            color: #aaa;
        }

        .model-header span:hover,
        .model-header span:focus {
            color: black;
            text-decoration: none;
        }

        .model-body {
            padding: 20px 15px;
        }

        .modal-footer {
            padding: 15px;
            border-top: 1px solid #e5e5e5;
            text-align: right;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-control {
            width: 100%;
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
        }

        .btn {
            padding: 8px 15px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
        }

        .btn-info {
            background-color: #17a2b8;
            color: white;
            border: none;
        }
        .btn-dark {
            background-color: #343a40;
            color: white;
            border: none;
        }
        .btn-warning {
            background-color: #ffc107;
            color: #212529;
            border: none;
        }
        .btn-danger {
            background-color: #dc3545;
            color: white;
            border: none;
        }
        .btn-secondary {
            background-color: #6c757d;
            color: white;
            border: none;
        }
        .btn-primary {
            background-color: #007bff;
            color: white;
            border: none;
        }

        .alert {
            padding: 10px;
            margin-bottom: 15px;
            border: 1px solid transparent;
            border-radius: 4px;
        }

        .alert-success {
            color: #155724;
            background-color: #d4edda;
            border-color: #c3e6cb;
        }

        .alert-danger {
            color: #721c24;
            background-color: #f8d7da;
            border-color: #f5c6cb;
        }
		
		
		/* Your existing input, label, focus, and checkbox styling */
        .model-contain .form-group input[type="text"],
        .model-contain .form-group input[type="password"],
        .model-contain .form-group select {
            width: 100%;
            padding: 8px 12px;
            font-size: 14px;
            border: 1px solid #ccc;
            border-radius: 5px;
            box-sizing: border-box;
            margin-top: 5px;
            margin-bottom: 10px;
        }
        .model-contain .form-group label {
            font-size: 13px;
            color: #555;
            margin-bottom: 3px;
            display: block;
        }
        .model-contain .form-group input[type="text"]:focus,
        .model-contain .form-group input[type="password"]:focus,
        .model-contain .form-group select:focus {
            border-color: #007bff;
            outline: none;
            box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
        }
        .model-contain .form-group input[type="checkbox"] {
            margin-right: 5px;
        }
        .model-contain .form-group label[for="salesman"],
        .model-contain .form-group label[for="cutter"],
        .model-contain .form-contain label[for="tailor"],
        .model-contain .form-group label[for="mobile_app_user"] {
            display: inline-block;
            font-size: 14px;
            vertical-align: middle;
        }
        .model-body {
            padding: 15px 20px;
        }

        /* --- Centering the Modal and initial hidden state --- */
        .model {
            display: none; /* Initially hide the modal */
            justify-content: center; /* Center horizontally */
            align-items: center; /* Center vertically */
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.4);
        }

        .model-contain {
            background-color: #fefefe;
            padding: 0;
            border: 1px solid #888;
            width: 30%;
            box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
            border-radius: 8px;
            max-width: 500px;
            min-width: 300px;
        }

        .model-header {
            padding: 10px 15px;
            background-color: #f1f1f1;
            color: #333;
            font-size: 18px;
            font-weight: bold;
            border-bottom: 1px solid #eee;
            border-top-left-radius: 8px;
            border-top-right-radius: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .model-header span {
            cursor: pointer;
            font-size: 24px;
            font-weight: normal;
            color: #aaa;
        }

        .model-header span:hover,
        .model-header span:focus {
            color: #000;
            text-decoration: none;
        }

        .modal-footer {
            padding: 10px 15px;
            border-top: 1px solid #eee;
            text-align: right;
            background-color: #f1f1f1;
            border-bottom-left-radius: 8px;
            border-bottom-right-radius: 8px;
        }