:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #D3D3D3;
    --accent: #003B73;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --green-500: #10b981;
    --green-hover: #0e9e6e;
    --red-500: #ef4444;
    --red-hover: #dc2626;
    --bs-btn-hover-color: #fff;
    --bs-border-width: 2px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-700);
    font-size: 0.875rem;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#form1 {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 235px;
    background-color: white;
    box-shadow: 1px 0 2px rgba(0, 0, 0, 0.1); /* Right-side shadow */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

    .sidebar.collapsed {
        width: 70px;
    }

        .sidebar.collapsed .nav-link span:not(.nav-indicator):not(.nav-icon) {
            font-size: 0.5rem;
            opacity: 0.8;
            white-space: nowrap;
        }

        .sidebar.collapsed .nav-link {
            justify-content: left;
            padding: 0.7rem 1.7rem;
        }

        .sidebar.collapsed .nav-icon {
            margin-right: 0rem;
        }

        .sidebar.collapsed .logo-container {
            padding: 0.5rem;
            margin: 0;
        }

        .sidebar.collapsed .lock-icon {
            bottom: 40px;
            left: 16px;
        }

        .sidebar.collapsed .nav-link {
            flex-direction: column;
            text-align: center;
            padding: 0.5rem;
        }

        .sidebar.collapsed .nav-icon {
            margin-right: 0;
        }

        .sidebar.collapsed .nav-link.active .nav-indicator {
            height: 60%;
            width: 5px;
        }

.main-content {
    flex: 1;
    overflow: hidden;
    padding: 1.5rem 1.5rem 0 1.5rem;
    height: 100vh; /* Changed from 100% to 100vh for proper viewport calculation */
    display: flex;
    flex-direction: column;
}
/* Main content styles */
.main-header {
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: white; /* Maintains existing background inherit */
    flex-shrink: 0;
    padding: 0.5rem 1rem 0.5rem 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Logo container */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Center logo horizontally */
    height: 60px; /* Fixed height for logo area */
    border-radius: 0.375rem;
    cursor: pointer;
    margin: 1rem 0rem 1rem 0rem;
}

.logo-image {
    max-height: 70%; /* Ensure image fits in container */
    max-width: 100%; /* Ensure image fits in container */
    object-fit: contain; /* Maintain aspect ratio */
}

/* Search box */
.search-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    z-index: 10;
}

.search-input {
    padding-left: 2.5rem !important;
    font-size: 0.875rem !important;
    color: var(--gray-700) !important;
    border: 1px solid var(--gray-300) !important;
    border-radius: 0.375rem !important;
    height: 2.5rem !important;
    width: 100% !important;
}

    .search-input:focus {
        border-color: var(--primary) !important;
        box-shadow: 0 0 0 3px rgba(114, 161, 229, 0.15) !important;
    }

/* Navigation */
.nav-menu {
    flex: 1;
    overflow-y: auto; /* Enables vertical scroll */
    overscroll-behavior: contain; /* Prevents scroll chaining */
    outline: none;
    position: relative;
}

.nav-link {
    color: var(--gray-700);
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    outline: none;
    pointer-events: auto;
    user-select: none;
}

    .nav-link:focus {
        outline: none;
        box-shadow: none;
    }

    .nav-link:hover {
        background-color: var(--gray-100) !important;
        color: var(--accent) !important;
    }

    .nav-link.active {
        color: var(--primary);
    }

.nav-pills .nav-link.active {
    background-color: transparent;
    color: var(--primary) !important;
    font-weight: 500;
}

.nav-link.active .nav-indicator {
    position: absolute;
    left: 0;
    height: 100%;
    width: 7px;
    background-color: var(--primary);
    border-radius: 0 20px 20px 0;
}

/* Only show focus when using keyboard navigation */
.nav-link:focus:not(:focus-visible) {
    outline: none;
}

.nav-icon {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

/* Profile card */
.profile-card {
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

    .profile-card:hover {
        background-color: var(--gray-100);
    }

.profile-name {
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1;
}


.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.page-subtitle {
    font-size: 0.875rem;
}

.card-section {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 0.8rem; /* Slightly smaller than section title */
    color: var(--gray-600); /* Muted tone for subtle emphasis */
    margin-top: -0.75rem; /* Pulls it closer to the title */
    margin-bottom: 1rem; /* Adds spacing below for next content */
    padding-left: 0.125rem; /* Slight indent for alignment polish */
    display: block; /* Ensures it behaves like a block element */
}

/* Quick links */
.quick-links-section h4 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.quick-link a {
    display: inline;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.875rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

    .quick-link a:hover {
        color: var(--accent);
    }

/* Filters */
.filter-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-control {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    color: var(--gray-700);
    height: 2.5rem;
}

    .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(114, 161, 229, 0.15);
    }

input[type="file"].form-control {
    padding-top: 0.375rem; /* Reduce top padding */
    padding-bottom: 0.375rem; /* Optional: match vertical spacing */
    line-height: 1.8; /* Helps align text vertically */
    height: auto; /* Let content define height */
}
.form-control-sm {
    height: 37px !important;
}
    .form-select {
    height: 2.5rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
}

.btn-primary-custom {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 500;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    height: 2.5rem;
    transition: background-color 0.2s;
}

    .btn-primary-custom:hover {
        background-color: var(--primary-hover);
        border-color: var(--primary-hover);
    }

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 500;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    height: 2.5rem;
    transition: background-color 0.2s;
}

    .btn-primary:hover {
        background-color: var(--primary-hover) !important;
        border-color: var(--primary-hover) !important;
    }

.btn-danger {
    background-color: var(--red-500);
    border-color: var(--red-500);
    color: white;
    font-weight: 500;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    height: 2.5rem;
    transition: background-color 0.2s;
}

    .btn-danger:hover {
        background-color: var(--red-hover) !important;
        border-color: var(--red-hover) !important;
    }

.btn-success {
    background-color: var(--green-500);
    border-color: var(--green-500);
    color: white;
    font-weight: 500;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    height: 2.5rem;
    transition: background-color 0.2s;
}

    .btn-success:hover {
        background-color: var(--green-hover) !important;
        border-color: var(--green-hover) !important;
    }

.text-primary-custom {
    color: var(--primary) !important
}
/* Leave stats */
.stat-card {
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.stat-applied {
    background-color: #dbeafe;
}

.stat-approved {
    background-color: #dcfce7;
}

.stat-rejected {
    background-color: #fee2e2;
}

.stat-pending {
    background-color: #fef3c7;
}

.stat-cancelled {
    background-color: #f3f4f6;
}

.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .table-custom thead th {
        background-color: white;
        color: var(--gray-700);
        font-weight: 600;
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--gray-200);
        text-transform: none;
    }

    .table-custom tbody td {
        padding: 0.75rem 1rem;
        vertical-align: middle;
        border-bottom: 1px solid var(--gray-200);
        font-size: 0.875rem;
        color: var(--gray-700);
    }

    .table-custom tbody tr:last-child td {
        border-bottom: none;
    }

    .table-custom tbody tr:hover {
        background-color: var(--gray-50);
    }

.employee-name {
    font-weight: 500;
    color: var(--gray-800);
}

.avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.75rem;
}

/* Badge styles */
.badge-custom {
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    display: inline-block;
}

.badge-approved {
    background-color: #d1e7dd;
    color: #0f5132;
}

.badge-pending {
    background-color: #fff3cd;
    color: #856404;
}

.badge-rejected {
    background-color: #f8d7da;
    color: #842029;
}

.badge-vacation {
    background-color: #cfe2ff;
    color: #052c65;
}

.badge-sick {
    background-color: #f8d7da;
    color: #842029;
}

.badge-personal {
    background-color: #e2d9f3;
    color: #422a7a;
}

.badge-compoff {
    background-color: #ffe5d0;
    color: #8a3d0a;
}

.badge-maternity {
    background-color: #d1e7dd;
    color: #0f5132;
}

.badge-cancelled {
    background-color: #e2e3e5;
    color: #41464b;
}

.action-btn {
    color: var(--primary);
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 0;
    font-size: 1rem;
}

    .action-btn:hover {
        color: var(--accent);
    }

/* Button adjustments */
.dt-button.btn-gray {
    background-color: var(--gray-100);
    color: var(--gray-700);
    border: none;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

button.dt-button.btn-gray:hover {
    background-color: var(--gray-200);
    color: var(--gray-800);
}

button.dt-button.btn-gray:focus {
    box-shadow: none;
}

.dt-button.btn-primary-sm {
    background-color: var(--primary);
    color: white !important;
    border: none;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

button.dt-button.btn-primary-sm:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}


/* Override default hover styles for .btn-gray */
button.dt-button.btn-gray:hover:not(.disabled),
div.dt-button.btn-gray:hover:not(.disabled),
a.dt-button.btn-gray:hover:not(.disabled) {
    background-color: var(--gray-200) !important;
    color: var(--gray-800) !important;
    border: none !important;
    background-image: none !important;
    text-shadow: none !important;
    filter: none !important;
}

/* Override default focus styles for .btn-gray */
button.dt-button.btn-gray:focus:not(.disabled),
div.dt-button.btn-gray:focus:not(.disabled),
a.dt-button.btn-gray:focus:not(.disabled) {
    box-shadow: none !important;
    border: none !important;
    background-color: var(--gray-200) !important;
    color: var(--gray-800) !important;
    background-image: none !important;
    text-shadow: none !important;
    outline: none !important;
    filter: none !important;
}

/* Override default hover styles for .btn-primary-sm */
button.dt-button.btn-primary-sm:hover:not(.disabled),
div.dt-button.btn-primary-sm:hover:not(.disabled),
a.dt-button.btn-primary-sm:hover:not(.disabled) {
    background-color: var(--primary-hover) !important;
    color: white !important;
    border: none !important;
    background-image: none !important;
    text-shadow: none !important;
    filter: none !important;
    border-color: var(--primary-hover);
}

/* Override default focus styles for .btn-primary-sm */
button.dt-button.btn-primary-sm:focus:not(.disabled),
div.dt-button.btn-primary-sm:focus:not(.disabled),
a.dt-button.btn-primary-sm:focus:not(.disabled) {
    box-shadow: none !important;
    border: none !important;
    background-color: var(--primary-hover) !important;
    color: white !important;
    background-image: none !important;
    text-shadow: none !important;
    outline: none !important;
    filter: none !important;
}


/* Footer */
.footer {
    text-align: left;
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-top: auto; /* Pushes footer to bottom */
    position: sticky;
    bottom: 0;
    z-index: 100;
    background-color: inherit; /* Maintains existing background */
    flex-shrink: 0;
}

.content-area {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For IE and Edge */
    scroll-behavior: smooth; /* Add smooth scrolling */
    overscroll-behavior: contain; /* Prevent scroll chaining */
    will-change: scroll-position;
    min-height: 0;
    scroll-behavior: auto !important;
    padding-bottom: 7rem;
}

/* Optional: Add momentum scrolling for mobile devices */
@media (pointer: coarse) {
    .content-area {
        -webkit-overflow-scrolling: touch;
    }
}

/* Hide scrollbar */
.content-area::-webkit-scrollbar {
    display: none;
}

.brand-name {
    position: relative;
    display: inline;
    font-family: Arial, sans-serif;
    font-size: 1.2em;
    color: var(--primary);
}

.tm {
    font-size: 0.6em;
    position: absolute;
    top: -0.4em;
    right: -0.6em;
    color: var(--primary);
}

/* Notification bell */
.notification-bell {
    position: relative;
    color: var(--gray-500);
    font-size: 1.25rem;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .sidebar {
        width: 220px;
    }
}

/* FIX: Mobile responsive adjustments */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }

    .profile-card {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 1rem;
    }
}

/* Fix for horizontal scroll */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

    /* Hide scrollbar for Chrome, Safari and Opera */
    .table-responsive::-webkit-scrollbar {
        display: none;
    }

/* Hide scrollbar for IE, Edge and Firefox */
.table-responsive {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
/* Fix for vertical scrollbar */
.sidebar::-webkit-scrollbar,
.main-content::-webkit-scrollbar,
.dataTables_scrollBody::-webkit-scrollbar,
.ui-autocomplete::-webkit-scrollbar,
.nav-menu::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.sidebar::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track,
.dataTables_scrollBody::-webkit-scrollbar-track,
.ui-autocomplete::-webkit-scrollbar-track,
.nav-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb,
.dataTables_scrollBody::-webkit-scrollbar-thumb,
.ui-autocomplete::-webkit-scrollbar-thumb,
.nav-menu::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}



/* Calendar Icon Styles*/
.datepicker-icon-wrapper {
    position: relative;
}

    .datepicker-icon-wrapper input {
        padding-right: 2.5rem;
    }
    /* Fix for date input height and border */
    .datepicker-icon-wrapper .form-control {
        height: 2.5rem; /* Match other form controls */
        border-radius: 0.375rem; /* Match other form controls */
        padding-right: 2.5rem; /* Space for icon */
    }

    .datepicker-icon-wrapper .calendar-icon {
        position: absolute;
        right: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        color: #6c757d;
    }


@media (max-width: 1250px) {
    .apply-filter {
        white-space: nowrap;
        padding: 0.375rem 0.65rem;
        font-size: 0.875rem;
    }

        .apply-filter i {
            margin-right: 0.25rem;
        }
}

/*Table pagination*/
.page-link {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    margin: 0 0.125rem;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    font-size: 0.875rem;
    background-color: var(--gray-100);
    transition: all 0.5s;
}

    .page-link:hover {
        background-color: var(--gray-200);
    }

.paginate_button.active > .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}
/*Custom loader panel*/
.loadpanel {
    z-index: 9999;
}

.custom-loader {
    position: fixed;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0.75rem !important;
    padding: 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 320px;
    text-align: center;
    color: var(--primary);
}

.loader-text {
    font-size: 1rem;
    color: var(--primary);
}

@media (max-width: 576px) {
    .custom-loader {
        padding: 1.5rem;
    }

    .loader-text {
        font-size: 0.9rem;
    }

    .loader-icon i {
        font-size: 2rem;
    }
}

/* Green Button */
.btn-green-custom {
    background-color: var(--green-500);
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

    .btn-green-custom:hover {
        background-color: var(--green-hover);
    }

/* Red Button */
.btn-red-custom {
    background-color: var(--red-500);
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

    .btn-red-custom:hover {
        background-color: var(--red-hover);
    }
/* Blue Button */
.btn-blue-custom {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

    .btn-blue-custom:hover {
        background-color: var(--primary-hover);
    }


/* Custom classes for modify attendance screen */
.bg-primary-custom {
    background-color: var(--primary);
}

.bg-accent-custom {
    background-color: var(--accent);
}

.bg-peach-custom {
    background-color: var(--peach);
}

.text-primary-custom {
    color: var(--primary);
}

.text-accent-custom {
    color: var(--accent);
}

.border-accent-custom {
    border-color: var(--accent);
}


.bg-primary-tru {
    background-color: #3a86ff;
}

.bg-primary-gradient {
    background-color: #d6e3f7;
    color: #3a86ff;
}

.bg-secondary-gradient {
    background-color: var(--cui-secondary, #fff);
    background-image: linear-gradient(45deg, var(--cui-secondary-start, #c8d2dc) 0%, var(--cui-secondary-stop, #fff 100%))
}

.bg-success-gradient {
    background-color: #389b0336;
    color: #389b03;
}

.bg-info-gradient {
    background-color: var(--cui-info, #686eda);
    background-image: linear-gradient(45deg, var(--cui-info-start, #9ea2f6) 0%, var(--cui-info-stop, #686eda 100%))
}

.bg-warning-gradient {
    background-color: #fff2d6;
    color: #ffab00;
}

.bg-danger-gradient {
    background-color: #ffe0db;
    color: #ff3e1d;
}

.bg-light-gradient {
    background-color: var(--cui-light, #fff);
    background-image: linear-gradient(45deg, var(--cui-light-start, #e3e8ed) 0%, var(--cui-light-stop, #fff 100%))
}

.bg-dark-gradient {
    background-color: var(--cui-dark, #212333);
    background-image: linear-gradient(45deg, var(--cui-dark-start, #3c4b64) 0%, var(--cui-dark-stop, #212333 100%))
}

/* Custom hover style for Select2 dropdown options */
.select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary) !important; /* Change to your desired hover background */
    color: #ffffff !important; /* Change to your desired hover text color */
}
/* Hover effect for Select2 dropdown options */
.select2-results__option:hover {
    background-color: var(--primary) !important; /* Your custom hover background */
    color: #ffffff !important; /* Your custom hover text color */
    cursor: pointer;
}

.select2-results__option {
    transition: background-color 0.2s ease, color 0.2s ease;
}

.is-valid {
    border-color: #28a745 !important; /* Green border for valid */
}

.is-invalid {
    border-color: #dc3545 !important; /* Red border for invalid */
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none; /* Initially hidden */
}


.btn-approved-sm {
    background-color: #d1e7dd;
    color: #0f5132 !important;
    border: none;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

    .btn-approved-sm:hover {
        background-color: #bcd9cc;
        border-color: #bcd9cc;
    }

.btn-pending-sm {
    background-color: #fff3cd;
    color: #856404 !important;
    border: none;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

    .btn-pending-sm:hover {
        background-color: #ffe8a1;
        border-color: #ffe8a1;
    }

.btn-rejected-sm {
    background-color: #f8d7da;
    color: #842029 !important;
    border: none;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

    .btn-rejected-sm:hover {
        background-color: #f1b0b7;
        border-color: #f1b0b7;
    }

.btn-vacation-sm {
    background-color: #cfe2ff;
    color: #052c65 !important;
    border: none;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

    .btn-vacation-sm:hover {
        background-color: #b0d0ff !important;
        border-color: #b0d0ff !important;
    }

.btn-sick-sm {
    background-color: #f8d7da;
    color: #842029 !important;
    border: none;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

    .btn-sick-sm:hover {
        background-color: #f1b0b7 !important;
        border-color: #f1b0b7 !important;
    }

.btn-personal-sm {
    background-color: #e2d9f3;
    color: #422a7a !important;
    border: none;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

    .btn-personal-sm:hover {
        background-color: #d3c4ec !important;
        border-color: #d3c4ec !important;
    }

.btn-compoff-sm {
    background-color: #ffe5d0;
    color: #8a3d0a !important;
    border: none;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

    .btn-compoff-sm:hover {
        background-color: #ffd2a8 !important;
        border-color: #ffd2a8 !important;
    }

/* Green Button */
.btn-green-custom {
    background-color: var(--green-500);
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

    .btn-green-custom:hover {
        background-color: var(--green-hover);
    }

.btn-maternity-sm {
    background-color: #d1e7dd;
    color: #0f5132 !important;
    border: none;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

    .btn-maternity-sm:hover {
        background-color: #bcd9cc !important;
    }

.stat-card {
    border-radius: 0.5rem;
    padding: 1rem 1rem 0.2rem 1rem;
    text-align: left;
    height: 100%;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

.stat-change {
    font-size: 0.75rem;
    font-weight: 500;
}


.stat-value a {
    display: inline;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

    .stat-value a:hover {
        color: var(--accent);
    }

.breadcrumb-item a {
    color: var(--primary);
}

    .breadcrumb-item a:hover {
        color: var(--accent);
    }

.bg-primary-custum {
    background-color: var(--primary) !important;
}

.dropdown-menu,
.dropdown-item {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.lock-icon {
    position: relative;
    bottom: 7px;
    left: 10px;
    font-size: 0.85rem;
    color: #888;
}

.nav-link {
    position: relative;
}

.disabled-link {
    opacity: 0.6;
}


/* Skeleton loading animation */
.skeleton-row {
    animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-cell {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin: 4px 0;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}
#divQuickLinks {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
}

    #divQuickLinks.hidden {
        transform: scaleY(0);
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
