/* 
* Isuzu East Africa Theme
* Bootstrap CSS Overrides
*/
:root {
    /* Main Bootstrap Color Variables */
    --bs-primary: #002D62;     /* Isuzu Blue */
    --bs-secondary: #FFB612;   /* Isuzu Yellow/Gold */
    --bs-success: #006D38;     /* Isuzu Green */
    --bs-danger: #E31937;      /* Isuzu Red */
    --bs-warning: #FFB612;     /* Isuzu Yellow/Gold (same as secondary) */
    --bs-info: #00417C;        /* Lighter Isuzu Blue */
    --bs-light: #F7FAFC;       /* Light background */
    --bs-dark: #58595B;        /* Isuzu Gray */
    --bs-purple: #8A2BE2;
    
    /* RGB Values for opacity variations */
    --bs-primary-rgb: 0, 45, 98;
    --bs-secondary-rgb: 255, 182, 18;
    --bs-success-rgb: 0, 109, 56;
    --bs-danger-rgb: 227, 25, 55;
    --bs-warning-rgb: 255, 182, 18;
    --bs-info-rgb: 0, 65, 124;
    --bs-light-rgb: 247, 250, 252;
    --bs-dark-rgb: 88, 89, 91;
    
    /* Text Colors */
    --text-primary: #32325D;      /* Dark blue-gray for main text */
    --text-secondary: #58595B;    /* Isuzu Gray for secondary text */
    --text-muted: #8898AA;        /* Light gray for muted text */
    --text-body: #525F7F;         /* Medium blue-gray for body text */
    
    /* Background Colors */
    --card-bg: #FFFFFF;           /* White for card backgrounds */
    --body-bg: #F7FAFC;           /* Light gray for body background */
    --sidebar-bg: #002D62;        /* Isuzu Blue for sidebar */
    --header-bg: #FFFFFF;         /* White for header */
    
    /* Border Colors */
    --border-color: #E9ECEF;      /* Light gray for borders */
    --border-color-dark: #CED4DA; /* Darker gray for emphasized borders */
    
    /* Status Colors */
    --status-active: #006D38;     /* Isuzu Green */
    --status-inactive: #E31937;   /* Isuzu Red */
    --status-pending: #FFB612;    /* Isuzu Yellow/Gold */
    
    /* Gradient Colors */
    --gradient-primary-start: #002D62;
    --gradient-primary-end: #00417C;
    --gradient-secondary-start: #FFB612;
    --gradient-secondary-end: #FFCC33;
    
    /* Shadow Variables */
    --shadow-sm: 0 .125rem .25rem rgba(0, 0, 0, .075);
    --shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, .175);
    
    /* Button Shadows */
    --btn-shadow: 0 4px 6px rgba(0, 45, 98, 0.15);
    --btn-shadow-hover: 0 6px 8px rgba(0, 45, 98, 0.2);
    
    /* Card Shadows */
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
    
    /* Navigation Variables */
    --nav-link-color: #002D62;
    --nav-link-hover-color: #00417C;
    --nav-active-bg: #002D62;
    --nav-active-color: #FFFFFF;
    
    /* Focus State */
    --focus-ring-color: rgba(0, 45, 98, 0.25);
    
    /* Form Control */
    --input-border: #CED4DA;
    --input-focus-border: #002D62;
}

/* Dark Theme Variables - if needed */
[data-bs-theme=dark] {
    --bs-primary: #003A80;     /* Darker Isuzu Blue for dark theme */
    --text-primary: #E9ECEF;   /* Light color for main text in dark mode */
    --text-secondary: #CED4DA; /* Lighter gray for secondary text in dark mode */
    --card-bg: #2D3748;        /* Dark card background */
    --body-bg: #1A202C;        /* Dark body background */
    --border-color: #4A5568;   /* Darker border for dark theme */
}

/* Light Theme with Isuzu Colors */
[data-bs-theme=light][data-color-theme=Isuzu_Theme] {
    --bs-primary: #002D62;
    --bs-secondary: #FFB612;
    --bs-success: #006D38;
    --bs-danger: #E31937;
    --bs-warning: #FFB612;
    --bs-info: #00417C;
}

/* Primary Button - Isuzu Blue */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #002D62;
    --bs-btn-border-color: #002D62;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #00417C;
    --bs-btn-hover-border-color: #00417C;
    --bs-btn-focus-shadow-rgb: 38, 77, 123;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #003B72;
    --bs-btn-active-border-color: #003567;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #002D62;
    --bs-btn-disabled-border-color: #002D62;
}

/* Secondary Button - Isuzu Yellow/Gold */
.btn-secondary {
    --bs-btn-color: #000;
    --bs-btn-bg: #FFB612;
    --bs-btn-border-color: #FFB612;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #E3A000;
    --bs-btn-hover-border-color: #E3A000;
    --bs-btn-focus-shadow-rgb: 255, 182, 18;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #D69600;
    --bs-btn-active-border-color: #CA8F00;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #000;
    --bs-btn-disabled-bg: #FFB612;
    --bs-btn-disabled-border-color: #FFB612;
}

/* Success Button - Isuzu Green */
.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: #006D38;
    --bs-btn-border-color: #006D38;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #00522A;
    --bs-btn-hover-border-color: #00522A;
    --bs-btn-focus-shadow-rgb: 38, 131, 85;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #004D27;
    --bs-btn-active-border-color: #004723;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #006D38;
    --bs-btn-disabled-border-color: #006D38;
}

/* Danger Button - Isuzu Red */
.btn-danger {
    --bs-btn-color: #fff;
    --bs-btn-bg: #E31937;
    --bs-btn-border-color: #E31937;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #C10D28;
    --bs-btn-hover-border-color: #C10D28;
    --bs-btn-focus-shadow-rgb: 231, 60, 85;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #B50C25;
    --bs-btn-active-border-color: #A80B22;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #E31937;
    --bs-btn-disabled-border-color: #E31937;
}

/* Info Button - Isuzu Blue (same as primary but kept for consistency) */
.btn-info {
    --bs-btn-color: #fff;
    --bs-btn-bg: #002D62;
    --bs-btn-border-color: #002D62;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #00417C;
    --bs-btn-hover-border-color: #00417C;
    --bs-btn-focus-shadow-rgb: 38, 77, 123;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #003B72;
    --bs-btn-active-border-color: #003567;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #002D62;
    --bs-btn-disabled-border-color: #002D62;
}

/* Warning Button - Isuzu Yellow/Gold (same as secondary but kept for consistency) */
.btn-warning {
    --bs-btn-color: #000;
    --bs-btn-bg: #FFB612;
    --bs-btn-border-color: #FFB612;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #E3A000;
    --bs-btn-hover-border-color: #E3A000;
    --bs-btn-focus-shadow-rgb: 255, 182, 18;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #D69600;
    --bs-btn-active-border-color: #CA8F00;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #000;
    --bs-btn-disabled-bg: #FFB612;
    --bs-btn-disabled-border-color: #FFB612;
}

/* Light Button */
.btn-light {
    --bs-btn-color: #000;
    --bs-btn-bg: #f8f9fa;
    --bs-btn-border-color: #f8f9fa;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #d3d4d5;
    --bs-btn-hover-border-color: #c6c7c8;
    --bs-btn-focus-shadow-rgb: 211, 212, 213;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #c6c7c8;
    --bs-btn-active-border-color: #babbbc;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #000;
    --bs-btn-disabled-bg: #f8f9fa;
    --bs-btn-disabled-border-color: #f8f9fa;
}

/* Dark Button - Isuzu Gray */
.btn-dark {
    --bs-btn-color: #fff;
    --bs-btn-bg: #58595B;
    --bs-btn-border-color: #58595B;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #414243;
    --bs-btn-hover-border-color: #414243;
    --bs-btn-focus-shadow-rgb: 88, 89, 91;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #3A3B3D;
    --bs-btn-active-border-color: #343536;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #58595B;
    --bs-btn-disabled-border-color: #58595B;
}

/* Outline Primary Button */
.btn-outline-primary {
    --bs-btn-color: #002D62;
    --bs-btn-border-color: #002D62;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #002D62;
    --bs-btn-hover-border-color: #002D62;
    --bs-btn-focus-shadow-rgb: 0, 45, 98;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #002D62;
    --bs-btn-active-border-color: #002D62;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #002D62;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #002D62;
    --bs-gradient: none;
}

/* Outline Secondary Button */
.btn-outline-secondary {
    --bs-btn-color: #FFB612;
    --bs-btn-border-color: #FFB612;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #FFB612;
    --bs-btn-hover-border-color: #FFB612;
    --bs-btn-focus-shadow-rgb: 255, 182, 18;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #FFB612;
    --bs-btn-active-border-color: #FFB612;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #FFB612;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #FFB612;
    --bs-gradient: none;
}

/* Outline Success Button */
.btn-outline-success {
    --bs-btn-color: #006D38;
    --bs-btn-border-color: #006D38;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #006D38;
    --bs-btn-hover-border-color: #006D38;
    --bs-btn-focus-shadow-rgb: 0, 109, 56;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #006D38;
    --bs-btn-active-border-color: #006D38;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #006D38;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #006D38;
    --bs-gradient: none;
}

/* Outline Danger Button */
.btn-outline-danger {
    --bs-btn-color: #E31937;
    --bs-btn-border-color: #E31937;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #E31937;
    --bs-btn-hover-border-color: #E31937;
    --bs-btn-focus-shadow-rgb: 227, 25, 55;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #E31937;
    --bs-btn-active-border-color: #E31937;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #E31937;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #E31937;
    --bs-gradient: none;
}

/* Button Theme Overrides */
[data-bs-theme=light][data-color-theme=Blue_Theme]:root .btn-primary {
    --bs-btn-bg: #002D62 !important;
    --bs-btn-border-color: #002D62 !important;
    --bs-btn-hover-bg: #00417C !important;
    --bs-btn-hover-border-color: #00417C !important;
}

[data-bs-theme=light][data-color-theme=Blue_Theme]:root .btn-secondary {
    --bs-btn-bg: #FFB612 !important;
    --bs-btn-border-color: #FFB612 !important;
    --bs-btn-hover-bg: #E3A000 !important;
    --bs-btn-hover-border-color: #E3A000 !important;
}

/* Button Box Shadow */
.btn {
    box-shadow: 0 4px 6px rgba(0, 45, 98, 0.15);
    transition: all 0.3s ease;
}

.btn:hover {
    box-shadow: 0 6px 8px rgba(0, 45, 98, 0.2);
    transform: translateY(-1px);
}

.btn:active {
    box-shadow: 0 2px 4px rgba(0, 45, 98, 0.1);
    transform: translateY(1px);
}

/* Disabled Buttons */
.btn.disabled, 
.btn:disabled, 
fieldset:disabled .btn {
    box-shadow: none !important;
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
}

/* Button Sizes */
.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.25rem;
    border-radius: 0.5rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

/* Button Group Styling */
.btn-group .btn {
    box-shadow: none;
}

.btn-group .btn:hover {
    transform: none;
}

/* Specific button with icon styling */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon i, 
.btn-icon svg {
    margin-right: 0.5rem;
}

.btn-icon-only {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Fix for buttons in cards */
.card .btn {
    box-shadow: 0 2px 4px rgba(0, 45, 98, 0.1);
}

/* Sidebar styles */
.sidebar-nav ul .sidebar-item.selected>.sidebar-link, 
.sidebar-nav ul .sidebar-item.selected>.sidebar-link.active, 
.sidebar-nav ul .sidebar-item>.sidebar-link.active {
    background-color: #002D62;
    color: var(--bs-white);
    box-shadow: 0 17px 20px -8px rgba(0, 45, 98, 0.23);
}

.sidebar-item .sidebar-link:not(.active):hover,
.sidebar-item .sidebar-link:not(.active):hover .ic,
.sidebar-item .sidebar-link:not(.active):hover .hide-menu {
    color: #002D62 !important;
}

/* Navigation tabs */
.nav-tabs .nav-item.show .nav-link, 
.nav-tabs .nav-link.active {
    color: var(--bs-nav-tabs-link-active-color);
    background-color: #002D62;
    border-color: #002D62;
}

/* Text colors */
.text-primary {
    --bs-text-opacity: 1;
    color: #002D62 !important;
}

.text-bg-primary {
    color: white !important;
    background-color: #002D62 !important;
}

/* Gradient backgrounds */
.primary-gradient {
    background: linear-gradient(180deg, rgba(0, 45, 98, 0.12) 0, rgba(0, 45, 98, 0.03) 100%);
}

.text-bg-danger {
    color: white !important;
    background-color: #E31937 !important;
}

.danger-gradient {
    background: linear-gradient(180deg, rgba(227, 25, 55, 0.12) 0, rgba(227, 25, 55, 0.03) 100%);
}

/* Secondary color - Isuzu Gray */
.bg-secondary {
    --bs-bg-opacity: 1;
    background-color: #58595B !important;
    border-color: #58595B !important;
}

.bg-purple-subtle {
    background-color: rgba(138, 43, 226, 0.1);
}

.text-purple {
    color: #8A2BE2;
}


/* Accent colors */
.bg-warning {
    background-color: #FFB612 !important;
    border-color: #FFB612 !important;
}

.text-bg-warning {
    color: white !important;
    background-color: #FFB612 !important;
}

.text-warning {
    --bs-text-opacity: 1;
    color: #FFB612 !important;
}

.text-white {
    --bs-text-opacity: 1;
    color: #fff !important;
}

.bg-primary{
    background-color: #002D62 !important;
    border-color: #002D62 !important;
}

.bg-primary-subtle {
    background-color: rgb(0 45 98 / 20%) !important;
}

.btn-warning {
    background-color: #FFB612 !important;
    border-color: #FFB612 !important;
}

.btn-warning:hover {
    background-color: #E6A200 !important;
    border-color: #E6A200 !important;
}

/* Custom Isuzu badge styles */
.badge-isuzu-blue {
    background-color: #002D62;
    color: white;
}

.badge-isuzu-red {
    background-color: #E31937;
    color: white;
}

/* Card styles */
.card-header-isuzu {
    background-color: #002D62;
    color: white;
    border-bottom: 2px solid #FFB612;
}

/* Border colors */
.border-primary {
    border-color: #002D62 !important;
}

.border-success {
    border-color: #006D38 !important;
}

.border-danger {
    border-color: #E31937 !important;
}

/* Progress bar */
.progress-bar-isuzu {
    background-color: #002D62;
}

/* Form focus states */
.form-control:focus,
.form-select:focus {
    border-color: rgba(0, 45, 98, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(0, 45, 98, 0.25);
}

/* Links */
a {
    color: #002D62;
}

a:hover {
    color: #00417C;
}

/* Pagination */
.page-item.active .page-link {
    background-color: #002D62;
    border-color: #002D62;
}

.page-link {
    color: #002D62;
}

.page-link:hover {
    color: #00417C;
    background-color: rgba(0, 45, 98, 0.1);
}

/* Forms */

.form-control {
    border-color: rgba(0, 45, 98, 0.5);
}

.form-select {
    border-color: rgba(0, 45, 98, 0.5);
    padding: 0.375rem 0.75rem;
}

.form-check-input:checked {
    background-color: #002D62;
    border-color: #002D62;
}

.form-check-input:focus {
    border-color: rgba(0, 45, 98, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(0, 45, 98, 0.25);
}

/* Style for checkboxes */
.dropdown-item input[type="checkbox"] {
    margin-right: 0.5rem;
}

.form-check-input[type="checkbox"]:indeterminate {
    background-color: #002D62;
    border-color: #002D62;
}

.form-check-input[type="checkbox"]:indeterminate:focus {
    border-color: rgba(0, 45, 98, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(0, 45, 98, 0.25);
}

.form-check-input[type="checkbox"]:indeterminate:hover {
    background-color: #00417C;
    border-color: #00417C;
}   

.form-check-input[type="checkbox"]:indeterminate:checked {
    background-color: #002D62;
    border-color: #002D62;
}

.form-check-input[type="checkbox"]:indeterminate:checked:focus {
    border-color: rgba(0, 45, 98, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(0, 45, 98, 0.25);
}

.form-check-input[type="checkbox"]:indeterminate:checked:hover {
    background-color: #00417C;
    border-color: #00417C;
}

.form-check-input[type="checkbox"]:checked {
    background-color: #002D62;
    border-color: #002D62;
}

.form-check-input[type="checkbox"]:checked:focus {
    border-color: rgba(0, 45, 98, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(0, 45, 98, 0.25);
}

.form-check-input[type="checkbox"]:checked:hover {
    background-color: #00417C;
    border-color: #00417C;
}

/* Style for radio buttons */
.dropdown-item input[type="radio"] {
    margin-right: 0.5rem;
}

.form-check-input[type="radio"] {
    margin-right: 0.5rem;
}

.form-check-input[type="radio"]:indeterminate {
    background-color: #002D62;
    border-color: #002D62;
}

.form-check-input[type="radio"]:indeterminate:focus {
    border-color: rgba(0, 45, 98, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(0, 45, 98, 0.25);
}

.form-check-input[type="radio"]:indeterminate:hover {
    background-color: #00417C;
    border-color: #00417C;
}

.form-check-input[type="radio"]:indeterminate:checked {
    background-color: #002D62;
    border-color: #002D62;
}

.form-check-input[type="radio"]:indeterminate:checked:focus {
    border-color: rgba(0, 45, 98, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(0, 45, 98, 0.25);
}

.form-check-input[type="radio"]:indeterminate:checked:hover {
    background-color: #00417C;
    border-color: #00417C;
}

.form-check-input[type="radio"]:checked {
    background-color: #002D62;
    border-color: #002D62;
}

.form-check-input[type="radio"]:checked:focus {
    border-color: rgba(0, 45, 98, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(0, 45, 98, 0.25);
}

.form-check-input[type="radio"]:checked:hover {
    background-color: #00417C;
    border-color: #00417C;
}

.form-check-input[type="radio"]:focus {
    border-color: rgba(0, 45, 98, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(0, 45, 98, 0.25);
}

.form-check-input[type="radio"]:hover {
    background-color: #00417C;
    border-color: #00417C;
}   

.form-check-input[type="radio"]:not(:checked) {
    background-color: #fff;
    /* border-color: #fff; */
}

.form-check-input[type="radio"]:not(:checked):focus {
    border-color: rgba(0, 45, 98, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(0, 45, 98, 0.25);
}

.form-check-input[type="radio"]:not(:checked):hover {
    background-color: #00417C;
    border-color: #00417C;
}

.form-check-input[type="radio"] {
    border: 1px solid #002D62;
}

.form-check-label {
    color: #002D62;
}

.form-check-label:hover {
    color: #00417C;
}

.form-control:focus {
    border-color: rgba(0, 45, 98, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(0, 45, 98, 0.25);
}

/* Strong and specific custom override */
/* body .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
body .select2-container--default .select2-results__option--selected {
    background-color: #002D62!important; /* or any custom color *
    color: #fff !important;              /* white text *
} */


.form-select:focus {
    border-color: rgba(0, 45, 98, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(0, 45, 98, 0.25);
}

.form-select:hover {
    border-color: rgba(0, 45, 98, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(0, 45, 98, 0.25);        
}

.form-select:not([multiple]):not([size]) {    
    height: calc(2.25rem + 2px);
}

.form-select:not([multiple]):not([size]):focus {
    border-color: rgba(0, 45, 98, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(0, 45, 98, 0.25);
}

.form-select:not([multiple]):not([size]):hover {
    border-color: rgba(0, 45, 98, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(0, 45, 98, 0.25);
}

.form-select[multiple], .form-select[size]:not([size="1"]) {
    height: auto;
}

.form-select[multiple]:focus, .form-select[size]:focus:not([size="1"]) {
    border-color: rgba(0, 45, 98, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(0, 45, 98, 0.25);
}

.form-select[multiple]:hover, .form-select[size]:hover:not([size="1"]) {
    border-color: rgba(0, 45, 98, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(0, 45, 98, 0.25);
}

.form-select[multiple] option:checked, .form-select[size]:not([size="1"]) option:checked {
    background-color: #002D62;
    border-color: #002D62;
}

.form-select[multiple] option:checked:focus, .form-select[size]:not([size="1"]) option:checked:focus {
    border-color: rgba(0, 45, 98, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(0, 45, 98, 0.25);
}

.form-select[multiple] option:checked:hover, .form-select[size]:not([size="1"]) option:checked:hover {
    background-color: #00417C;
    border-color: #00417C;
}

.form-select[multiple] option:not(:checked), .form-select[size]:not([size="1"]) option:not(:checked) {
    background-color: #fff;
    border-color: #fff;
}

.form-select[multiple] option:not(:checked):focus, .form-select[size]:not([size="1"]) option:not(:checked):focus {
    border-color: rgba(0, 45, 98, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(0, 45, 98, 0.25);
}

.form-select[multiple] option:not(:checked):hover, .form-select[size]:not([size="1"]) option:not(:checked):hover {
    background-color: #00417C;
    border-color: #00417C;
}

.form-select[multiple] option:disabled, .form-select[size]:not([size="1"]) option:disabled {
    background-color: #fff;
    border-color: #fff;
    color: #6C757D;
    cursor: not-allowed;
}

.form-select[multiple] option:disabled:focus, .form-select[size]:not([size="1"]) option:disabled:focus {
    border-color: rgba(0, 45, 98, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(0, 45, 98, 0.25);
}

.form-select[multiple] option:disabled:hover, .form-select[size]:not([size="1"]) option:disabled:hover {    
    background-color: #00417C;
    border-color: #00417C;
}

/* 
* Isuzu East Africa Theme - Table Styles
*/
.table td {
    font-size: 12px;
    vertical-align: middle;
}

/* Basic table borders */
.table td, .table th {
    border-top: 1px solid rgba(0, 45, 98, 0.2);
}

.table thead th {
    border-bottom: 2px solid #002D62;
    color: #002D62;
    font-weight: 600;
}

/* Table header styling */
.table thead {
    background-color: rgba(0, 45, 98, 0.1);
}

/* Standard striped tables - more subtle for readability */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 45, 98, 0.05);
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: #fff;
}

/* Isuzu branded striped tables - for featured content */
.table-isuzu-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 45, 98, 0.9);
    color: #fff;
}

.table-isuzu-striped tbody tr:nth-of-type(even) {
    background-color: rgba(0, 66, 124, 0.8);
    color: #fff;
}

/* Hover effects */
.table-hover tbody tr:hover {
    background-color: rgba(0, 45, 98, 0.1);
}

.table-isuzu-hover tbody tr:hover {
    background-color: rgba(0, 66, 124, 0.9);
    color: #fff;
}

/* Active state */
.table-active, 
.table-active > td, 
.table-active > th {
    background-color: rgba(0, 45, 98, 0.2);
}

/* Table variants */
.table-primary,
.table-primary > td,
.table-primary > th {
    background-color: rgba(0, 45, 98, 0.8);
    color: #fff;
}

.table-secondary,
.table-secondary > td,
.table-secondary > th {
    background-color: rgba(88, 89, 91, 0.8);
    color: #fff;
}

.table-success,
.table-success > td,
.table-success > th {
    background-color: rgba(0, 109, 56, 0.8);
    color: #fff;
}

.table-danger,
.table-danger > td,
.table-danger > th {
    background-color: rgba(227, 25, 55, 0.8);
    color: #fff;
}

.table-warning,
.table-warning > td,
.table-warning > th {
    background-color: rgba(255, 182, 18, 0.8);
    color: #000;
}

/* Responsive tables */
/* .table-responsive {
    border: 1px solid rgba(0, 45, 98, 0.2);
    border-radius: 4px;
} */

/* Special styles for data tables */
.dataTables_wrapper .dataTables_paginate .paginate_button.current, 
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #002D62 !important;
    color: white !important;
    border-color: #002D62 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(0, 45, 98, 0.1) !important;
    color: #002D62 !important;
    border-color: #002D62 !important;
}

/* Bordered table variation */
.table-bordered {
    border: 1px solid rgba(0, 45, 98, 0.2);
}

.table-bordered td, 
.table-bordered th {
    border: 1px solid rgba(0, 45, 98, 0.2);
}

/* Small table variation */
.table-sm td,
.table-sm th {
    padding: 0.3rem;
}

/* Table with card styling */
.card .table {
    margin-bottom: 0;
}

.card-table-header {
    background-color: #002D62;
    color: white;
    padding: 0.75rem 1.25rem;
    border-bottom: 2px solid #FFB612;
}

.table td {
    max-width: 250px; 
    white-space: wrap;
    overflow: wrap;
    text-overflow: ellipsis;
}
/* // sticky columns  */
/* .table-responsive {
    overflow-x: auto;
    position: relative;
} */

/* Sticky first column */
/* .table th:first-child,
.table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background-color: inherit;
} */

.table th:first-child,
.table td:first-child {
    min-width: 160px;
    overflow: auto;
}

/* .table thead th:first-child {
    z-index: 2;
    background-color: inherit; 
    background-color: #e0e6eb;
}  */
/* Add this to ensure dropdowns in sticky columns work properly */
.table td:last-child .dropdown-menu {
    right: 0;
    left: auto !important;
}

/* Sticky last column */
/* .table th:last-child,
.table td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    background-color: inherit;
}

.table thead th:last-child {
    z-index: 3;
    background-color: inherit;
} */

/* Fix for dropdown menu */
.dropdown {
    position: relative; /* Ensure proper positioning context */
}

.dropdown-menu {
    z-index: 1050 !important; /* Higher z-index than table elements */
    position: absolute !important;
    transform: none !important; /* Override Bootstrap positioning if needed */
}

/* 
* Isuzu East Africa Theme - Card Styles
*/

/* Base Card Styling */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.card-header {
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background-color: transparent;
}

.card-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background-color: transparent;
}

/* Primary Card - Isuzu Blue */
.card-primary {
    border-top: 4px solid #002D62;
}

.card-primary .card-header {
    color: #002D62;
    background-color: rgba(0, 45, 98, 0.05);
}

.card-header-primary {
    background-color: #002D62;
    color: white;
    border-bottom: 2px solid #FFB612;
}

/* Secondary Card - Isuzu Yellow/Gold */
.card-secondary {
    border-top: 4px solid #FFB612;
}

.card-secondary .card-header {
    color: #000;
    background-color: rgba(255, 182, 18, 0.15);
}

.card-header-secondary {
    background-color: #FFB612;
    color: #000;
    border-bottom: 2px solid #002D62;
}

/* Success Card - Isuzu Green */
.card-success {
    border-top: 4px solid #006D38;
}

.card-success .card-header {
    color: #006D38;
    background-color: rgba(0, 109, 56, 0.05);
}

.card-header-success {
    background-color: #006D38;
    color: white;
    border-bottom: 2px solid #FFB612;
}

/* Danger Card - Isuzu Red */
.card-danger {
    border-top: 4px solid #E31937;
}

.card-danger .card-header {
    color: #E31937;
    background-color: rgba(227, 25, 55, 0.05);
}

.card-header-danger {
    background-color: #E31937;
    color: white;
    border-bottom: 2px solid #FFB612;
}

/* Dark Card - Isuzu Gray */
.card-dark {
    border-top: 4px solid #58595B;
}

.card-dark .card-header {
    color: #58595B;
    background-color: rgba(88, 89, 91, 0.05);
}

.card-header-dark {
    background-color: #58595B;
    color: white;
    border-bottom: 2px solid #FFB612;
}

/* Light Card */
.card-light {
    border-top: 4px solid #f8f9fa;
    background-color: #fff;
}

.card-light .card-header {
    color: #212529;
    background-color: #f8f9fa;
}

/* Special Cards */

/* Fully Branded Card */
.card-isuzu-branded {
    background-color: #002D62;
    color: white;
}

.card-isuzu-branded .card-header {
    border-bottom: 2px solid #FFB612;
    color: white;
}

.card-isuzu-branded .card-footer {
    border-top: 2px solid #FFB612;
    color: white;
}

/* Executive Card */
.card-isuzu-executive {
    background: linear-gradient(to bottom right, #002D62, #00417C);
    color: white;
}

.card-isuzu-executive .card-header {
    border-bottom: 2px solid #FFB612;
    background: transparent;
    color: white;
}

.card-isuzu-executive .card-footer {
    border-top: 2px solid #FFB612;
    background: transparent;
    color: white;
}

/* Dashboard Widget Cards */
.card-widget {
    border-radius: 0.8rem;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-widget-primary {
    background: linear-gradient(45deg, #002D62, #00417C);
    color: white;
}

.card-widget-secondary {
    background: linear-gradient(45deg, #FFB612, #FFCC33);
    color: #000;
}

.card-widget-success {
    background: linear-gradient(45deg, #006D38, #00894A);
    color: white;
}

.card-widget-danger {
    background: linear-gradient(45deg, #E31937, #FF3855);
    color: white;
}

/* Card with border bottom instead of top */
.card-border-bottom-primary {
    border-top: none;
    border-bottom: 4px solid #002D62;
}

.card-border-bottom-secondary {
    border-top: none;
    border-bottom: 4px solid #FFB612;
}

.card-border-bottom-success {
    border-top: none;
    border-bottom: 4px solid #006D38;
}

.card-border-bottom-danger {
    border-top: none;
    border-bottom: 4px solid #E31937;
}

/* Card with left border */
.card-border-left-primary {
    border-top: none;
    border-left: 4px solid #002D62;
}

.card-border-left-secondary {
    border-top: none;
    border-left: 4px solid #FFB612;
}

.card-border-left-success {
    border-top: none;
    border-left: 4px solid #006D38;
}

.card-border-left-danger {
    border-top: none;
    border-left: 4px solid #E31937;
}

/* Stats Cards */
.card-stats {
    padding: 1rem;
    display: flex;
}

.card-stats-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    margin-right: 1rem;
}

.card-stats-icon-primary {
    background-color: rgba(0, 45, 98, 0.1);
    color: #002D62;
}

.card-stats-icon-secondary {
    background-color: rgba(255, 182, 18, 0.1);
    color: #FFB612;
}

.card-stats-icon-success {
    background-color: rgba(0, 109, 56, 0.1);
    color: #006D38;
}

.card-stats-icon-danger {
    background-color: rgba(227, 25, 55, 0.1);
    color: #E31937;
}

/* Cards with highlight bars */
.card-highlight-top-primary {
    border-top: 4px solid #002D62;
}

.card-highlight-top-secondary {
    border-top: 4px solid #FFB612;
}

.card-highlight-top-success {
    border-top: 4px solid #006D38;
}

.card-highlight-top-danger {
    border-top: 4px solid #E31937;
}

/* Utility classes for card content */
.card-title-isuzu {
    color: #002D62;
    font-weight: 600;
}

.card-subtitle-isuzu {
    color: #58595B;
    font-weight: 400;
}

/* Card with icon in header */
.card-header-with-icon {
    display: flex;
    align-items: center;
}

.card-header-with-icon i,
.card-header-with-icon svg {
    margin-right: 0.5rem;
}

/* Active/Inactive status cards */
.card-status {
    position: relative;
    overflow: hidden;
}

.card-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.card-status-active::before {
    background-color: #006D38;
}

.card-status-inactive::before {
    background-color: #E31937;
}

.card-status-pending::before {
    background-color: #FFB612;
}

/* workflow record progress bar */
.workflow-progress {
    padding: 2rem 0;
    font-family: Arial, sans-serif;
}

.workflow-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
}

.step-wrapper {
    flex: 1;
    text-align: center;
    min-width: 120px;
    max-width: 200px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-wrapper:not(:last-child) {
    margin-right: 0;
}

.step-circle {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    z-index: 2;
}

.step-number {
    font-size: 1.25rem;
    font-weight: 600;
    color: #344767;
}

.step-text {
    width: 100%;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.step-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #344767;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    text-align: center;
    word-wrap: break-word;
}

.step-icon {
    display: none;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.progress-line {
    position: absolute;
    top: 30px;
    left: calc(50% + 30px);
    width: calc(100% - 100px);
    height: 4px;
    z-index: 1;
}

.progress {
    height: 100%;
    width: 200px;
    background-color: transparent;
    overflow: visible;
}

.progress-bar {
    height: 100%;
    transition: width 0.3s ease;
    background-color: #e9ecef;
}

.step-wrapper:last-child .progress-line {
    display: none;
}

/* Isuzu Theme Colors - Primary Blue */
.step-circle.active .circle[data-color="primary"] {
    animation: glowPrimary 1.5s infinite;
}

.step-circle.active .circle[data-color="primary"]::before {
    background-color: rgba(0, 45, 98, 0.186);
}

.step-circle.complete .circle[data-color="primary"] {
    background-color: #002D62;
    border-color: #002D62;
}

/* Isuzu Theme Colors - Success Green */
.step-circle.active .circle[data-color="success"] {
    animation: glowSuccess 1.5s infinite;
}

.step-circle.active .circle[data-color="success"]::before {
    background-color: rgba(0, 109, 56, 0.186);
}

.step-circle.complete .circle[data-color="success"] {
    background-color: #006D38;
    border-color: #006D38;
}

/* Isuzu Theme Colors - Warning Yellow */
.step-circle.active .circle[data-color="warning"] {
    animation: glowWarning 1.5s infinite;
}

.step-circle.active .circle[data-color="warning"]::before {
    background-color: rgba(255, 182, 18, 0.186);
}

.step-circle.complete .circle[data-color="warning"] {
    background-color: #FFB612;
    border-color: #FFB612;
}

/* Isuzu Theme Colors - Danger Red */
.step-circle.active .circle[data-color="danger"] {
    animation: glowDanger 1.5s infinite;
}

.step-circle.active .circle[data-color="danger"]::before {
    background-color: rgba(227, 25, 55, 0.186);
}

.step-circle.complete .circle[data-color="danger"] {
    background-color: #E31937;
    border-color: #E31937;
}

/* Isuzu Theme Colors - Info Light Blue */
.step-circle.active .circle[data-color="info"] {
    animation: glowInfo 1.5s infinite;
}

.step-circle.active .circle[data-color="info"]::before {
    background-color: rgba(0, 65, 124, 0.186);
}

.step-circle.complete .circle[data-color="info"] {
    background-color: #00417C;
    border-color: #00417C;
}
.bg-purple {
    background-color: #8A2BE2 !important;
}

/* Isuzu Theme Colors - Purple (for Recalled status) */
.step-circle.active .circle[data-color="purple"] {
    animation: glowPurple 1.5s infinite;
}

.step-circle.active .circle[data-color="purple"]::before {
    background-color: rgba(138, 43, 226, 0.186);
}

.step-circle.complete .circle[data-color="purple"] {
    background-color: #8A2BE2;
    border-color: #8A2BE2;
}

/* Add the purple glow animation */
@keyframes glowPurple {
    from {
        box-shadow: 0 0 10px #8A2BE2, 0 0 20px #8A2BE2, 0 0 30px #8A2BE2;
    }

    to {
        box-shadow: 0 0 20px #8A2BE2, 0 0 30px #8A2BE2, 0 0 40px #8A2BE2;
    }
}

.step-circle.active .circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: ripple 1.5s infinite;
    opacity: 0;
}

/* Updated glow animations with Isuzu colors */
@keyframes glowPrimary {
    from {
        box-shadow: 0 0 10px #002D62, 0 0 20px #002D62, 0 0 30px #002D62;
    }

    to {
        box-shadow: 0 0 20px #002D62, 0 0 30px #002D62, 0 0 40px #002D62;
    }
}

@keyframes glowSuccess {
    from {
        box-shadow: 0 0 10px #006D38, 0 0 20px #006D38, 0 0 30px #006D38;
    }

    to {
        box-shadow: 0 0 20px #006D38, 0 0 30px #006D38, 0 0 40px #006D38;
    }
}

@keyframes glowWarning {
    from {
        box-shadow: 0 0 10px #FFB612, 0 0 20px #FFB612, 0 0 30px #FFB612;
    }

    to {
        box-shadow: 0 0 20px #FFB612, 0 0 30px #FFB612, 0 0 40px #FFB612;
    }
}

@keyframes glowDanger {
    from {
        box-shadow: 0 0 10px #E31937, 0 0 20px #E31937, 0 0 30px #E31937;
    }

    to {
        box-shadow: 0 0 20px #E31937, 0 0 30px #E31937, 0 0 40px #E31937;
    }
}

@keyframes glowInfo {
    from {
        box-shadow: 0 0 10px #00417C, 0 0 20px #00417C, 0 0 30px #00417C;
    }

    to {
        box-shadow: 0 0 20px #00417C, 0 0 30px #00417C, 0 0 40px #00417C;
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.step-circle.complete .step-number,
.step-circle.active .step-number {
    display: none;
}

.step-circle.complete .step-icon,
.step-circle.active .step-icon {
    display: block;
}

.step-text {
    width: 100%;
}

.step-title {
    font-size: 1rem;
    font-weight: 600;
    color: #344767;
    margin-bottom: 0.25rem;
}

.step-subtitle {
    font-size: 0.875rem;
    color: #7b809a;
}

/* Progress bars with Isuzu colors */
.progress-bar-primary {
    background-color: #002D62;
}

.progress-bar-success {
    background-color: #006D38;
}

.progress-bar-warning {
    background-color: #FFB612;
}

.progress-bar-danger {
    background-color: #E31937;
}

.progress-bar-info {
    background-color: #00417C;
}

/* Media queries */
@media (max-width: 768px) {
    .workflow-steps {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 1rem;
        gap: 1rem;
    }

    .step-wrapper {
        width: 100%;
        max-width: none;
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .step-circle {
        margin-right: 1rem;
        margin-bottom: 0;
    }

    .progress-line {
        display: none;
    }

    .step-text {
        flex: 1;
        padding: 0;
    }
}

/* workflow data */

.dashboard-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /* Ensures even spacing */
    gap: 1rem;
    max-width: 100%;
    margin: 0 auto;
}

.stat-card {
    flex: 1 1 calc(20% - 1rem);
    /* Adjust width to fit 5 cards evenly */
    min-width: 200px;
    /* Prevents shrinking too much on smaller screens */
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    text-align: center;
}


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

.card-wrapper {
    display: flex;
    padding: 1.25rem;
}

.icon-container {
    height: 48px;
    width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    flex-shrink: 0;
}

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

.completed-icon {
    background-color: var(--bs-success);
}

.recalled-icon {
    background-color: var(--bs-purple);
}

.rejected-icon {
    background-color: var(--bs-danger);
}

.total-icon {
    background-color: var(--bs-info);
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    font-size: 1.50rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-bar {
    height: 4px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.05);
}

.progress-value {
    height: 100%;
}

.pending-progress {
    background-color: var(--bs-warning);
    width: 45%;
}


.approved-progress {
    background-color: #32325D;
    width: 30%;
}

.completed-progress {
    background-color: var(--bs-success);
    width: 25%;
}

.recalled-progress {
    background-color: var(--bs-purple);
    width: 15%;
}

.rejected-progress {
    background-color: var(--bs-danger);
    width: 15%;
}

.total-progress {
    background-color: var(--bs-info);
    width: 100%;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
}


/* Responsive Design */
@media (max-width: 1200px) {
    .stat-card {
        grid-column: span 4;
    }
}

@media (max-width: 992px) {
    .stat-card {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .stat-card {
        grid-column: span 6;
    }
}

@media (max-width: 576px) {
    .stat-card {
        grid-column: span 12;
    }

    .dashboard-stats {
        gap: 0.75rem;
    }

    .card-wrapper {
        padding: 1rem;
    }

    .icon-container {
        height: 40px;
        width: 40px;
    }

}

/* workflow journey */
.workflow-journey-tracker .journey-path {
    position: relative;
}

.workflow-journey-tracker .workflow-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 2px;
    background: #e9ecef;
    z-index: 0;
}

.workflow-journey-tracker .checkpoint-section:not(:last-child) {
    padding-bottom: 20px;
}

.workflow-journey-tracker .checkpoint-section .section-title {
    margin-bottom: 15px;
    padding-left: 50px;
}

.workflow-journey-tracker .checkpoint-node {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.workflow-journey-tracker .completed-node {
    width: 64px;
    height: 64px;
}

.workflow-journey-tracker .pulsing-node::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.3);
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.workflow-journey-tracker .checkpoint-item {
    position: relative;
    z-index: 1;
}

.workflow-journey-tracker .current-item {
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.15);
}


.stat-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.stat-card.active-filter {
    border: 2px solid #1c84c4;
    background-color: rgba(28, 132, 196, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Animation for when a card is selected */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(28, 132, 196, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(28, 132, 196, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(28, 132, 196, 0);
    }
}

.stat-card.active-filter {
    animation: pulse 2s infinite;
}

/* Clear filter button */
.clear-filter {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
    display: none;
    padding: 5px 10px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
}

.clear-filter.visible {
    display: block;
}

/* spinner */

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Button with spinner state */
.btn-with-spinner {
    position: relative;
}

.btn-with-spinner:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}
/* sidebar */
/* Add these styles to your custom.css file */

/* Brand logo container fixes */
.brand-logo {
    height: 60px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Control the size of the logo in the brand-logo container */
.brand-logo .logo-container {
    max-height: 44px;
    max-width: 100%;
}

.brand-logo img {
    max-height: 38px;
    width: auto;
    object-fit: contain;
}

/* End */

/* .select2-container {
    z-index: 9999 !important;
}

.select2-dropdown {
    z-index: 9999 !important;
}

.modal .select2-container {
    z-index: 10060 !important;
}

.modal .select2-dropdown {
    z-index: 10060 !important;
} */