﻿html {
    font-size: 14px;
}

:root {
    --blenny-blue: #3399ff;
    --theme-heading-font: "Quicksand", sans-serif;
    --theme-font: "Poppins", sans-serif;
    --theme-color: #8692a6;
    --theme-background-color: #FFFFFF;
    --theme-footer-color: #FFFFFF;
    --menu-color-background: #575757;
    --menu-color-text: #FFFFFF;
    --menu-color-active-background: #878787;
    --menu-color-active-text: #3F96FF;
    --menu-color-hover: #3F96FF;
    --popover-link-color: rgb(211, 211, 211);
    --menu-color-shadow: rgba(0, 0, 0, 0.25);
    --menu-color-scrollbar-primary: #8A8A8A;
    --menu-color-scrollbar-secondary: #8A8A8A;
    --dt-row-selected: 208, 208, 208 !important;
    --dt-row-selected-text: 0,0,0 !important;
    --dt-row-selected-border: 0.2rem solid #198754 !important;
    --dt-row-selected-bg: 240, 255, 240 !important;
    --menu-color-scrollbar-track: #D7D7D7;
    --header-color-background: #FFFFFF;
    --header-color-text: #000000;
    --header-color-shadow: rgba(0, 0, 0, 0.25);
    --white-color: #ffff;
    --white-color-light: #e0e0e0;
    /* Modern Dark Grey Button Design - Lighter */
    --primary-color: var(--dark-blue);
    --primary-hover-color: #279AF1;
    --secondary-color: var(--dark-blue);
    --blue-400: #0C92E7;
    --blue-800: #2052BA;
    --red-color: #FA2121;
    --black-color: #1E1E1E;
    --gray-300: #EEEEEE;
    --gray-400: var(--dark-blue);
    --gray-500: var(--dark-blue);
    --dark-blue: var(--dark-blue);
    --green-color: #25DF4E;
    --red-400: #FA3A3A;
    --color-gray-90: #909090;
    --color-gray-F5: #F5F5F5;
    --rgba-color: rgba(32, 82, 186, 0.5);
    --border-color-1: rgba(156, 163, 175, 0.30);
    --border-color-2: #E8E8E8;
    /* Modern Design System */
    --border-radius: 30px;
    --border-radius-small: 15px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition-smooth: all 0.3s ease;
    /* Sidebar variables removed - now defined in navbar component */
    --form-button-color: #FFFFFF;
    --calendar-base-width: 320px;
    --calendar-base-height: 40px;
    --calendar-base-font: 1rem;
    --calendar-base-padding: 1.5rem;
    --calendar-scale-factor: 1;
}



/*button {
    border-radius: 20px !important;
}

input {
    border-radius: 20px !important;
}

select {
    border-radius: 20px !important;
}
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body, html {
    font-family: var(--theme-font) !important;
    font-size: 1rem;
    background-color: var(--theme-background-color);
    padding-bottom: 12px;
}

h1 {
    font-weight: 500;
    font-size: 3rem;
    line-height: normal;
    color: var(--header-color-text);
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.125rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--theme-heading-font);
    font-weight: 500;
}

.header-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    background: #FFFFFF !important;
    padding-top: 8px;
    padding-bottom: 0;
    border: none !important;
    box-shadow: none !important;
    transition: box-shadow 0.3s ease;
}

/* Scroll-triggered shadow effect */
.header-bar.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.navbar-brand {
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Notification bell styling moved to navbar.css for navbar header components */

    .user-account-option a:hover {
        background: rgba(255, 255, 255, 0.9);
        border-color: rgba(33, 150, 243, 0.1);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.user-account-option img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    transition: all 0.3s ease;
    filter: grayscale(0.3);
}

.user-account-option a:hover img {
    opacity: 1;
    filter: grayscale(0);
}



/* Dropdown items styling */
.dropdown-item {
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--dark-blue);
    font-weight: 500;
    border: 1px solid transparent;
}

    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.9);
        border-color: rgba(33, 150, 243, 0.1);
        color: #000000;
        transform: translateX(2px);
    }

    /* Dropdown icons styling */
    .dropdown-item .icon-small {
        width: 16px;
        height: 16px;
        margin-right: 12px;
        opacity: 0.6;
        transition: all 0.3s ease;
        filter: grayscale(0.3);
    }
        
    .dropdown-item:hover .icon-small {
        opacity: 1;
        filter: grayscale(0);
    }

    /* Dropdown text styling */
    .dropdown-item .small {
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    /* Logout item special styling */
    .dropdown-item[href*="logout"] {
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        margin-top: 8px;
        padding-top: 12px;
    }

        .dropdown-item[href*="logout"]:hover {
            background: rgba(220, 53, 69, 0.1);
            border-color: rgba(220, 53, 69, 0.2);
            color: #dc3545;
        }

.navbar-brand {
    padding: 0;
}

.border-bottom-darker {
    border-bottom: 1px solid #dee2e6 !important;
}

#pnlCompanyFile {
    max-width: 450px;
    margin: auto;
    border-radius: 8px;
}

#bulkCompanyFileErrors p {
    margin-bottom: 5px;
}

.form-buttons {
    background: var(--form-button-color);
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}
/*FORM BUTTON BAR*/
/*.formbuttonbar {
    box-shadow: 1px 1px 10px var(--header-color-shadow);
    box-shadow: 1px 1px 10px var(--header-color-shadow);
    position: fixed !important;
    bottom: 0px;
    width: 100%;
    background-color: var(--header-color-background);
    z-index: 0;
}*/
/*.formbuttonbar button {
    min-width:100px;
    margin-right:10px;
}*/
/*HEADER*/
/*
.header {
>>>>>>> ae84048 (Admin Theme - Navbar and top bar mainly fixed)
    top: 0;
    z-index: 10;
    background-color: var(--header-color-background);
    color: var(--header-color-text);
    min-height: 60px;
    padding-top: 10px;
    width: 100%;
    padding-bottom: 10px;
    box-shadow: 1px 1px 10px var(--header-color-shadow);
    position: fixed !important;
}*/
/*
.header-container {
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
}

.header-column-left {
    width: auto;
    display: flex;
    align-items: center;
}
*/
.payroll-serach-block {
    max-width: 240px;
    width: 100%;
}

/* Removed - conflicting with navbar styles */
/*
.header-column-right {
    max-width: 530px;
    width: 100%;
    margin-left: auto;
    padding-right: 0;
}*/
/* Notification bell styling moved to navbar.css for navbar header components */


/* Dropdown chevron - Bootstrap compatible */
.dropdown-toggle::after {
    display: inline-block !important;
    margin-left: 0.255em !important;
    vertical-align: 0.255em !important;
    content: "" !important;
    border-top: 0.3em solid currentColor !important;
    border-right: 0.3em solid transparent !important;
    border-bottom: 0 !important;
    border-left: 0.3em solid transparent !important;
    color: #343a40 !important;
    transition: transform 0.3s ease !important;
}

.dropdown-toggle:hover::after {
    color: #279AF1 !important;
}

.dropdown-toggle.show::after {
    transform: rotate(180deg);
}
.user-account-option .dropdown-menu,
.dropdown-menu[aria-labelledby="navbarDropdown"],
#navbarDropdown + .dropdown-menu {
    padding: 20px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
}

.user-account-option .dropdown-item {
    padding: 16px 16px 16px 24px;
}

.user-account-option .dropdown-menu li:first-child .dropdown-item,
.dropdown-menu[aria-labelledby="navbarDropdown"] li:first-child .dropdown-item,
#navbarDropdown + .dropdown-menu li:first-child .dropdown-item {
    border-radius: 50px 50px 0px 0px;
}

.user-account-option .dropdown-menu li:last-child .dropdown-item,
.dropdown-menu[aria-labelledby="navbarDropdown"] li:last-child .dropdown-item,
#navbarDropdown + .dropdown-menu li:last-child .dropdown-item {
    border-radius: 0px 0px 50px 50px;
    color: var(--red-color);
}

.user-account-option .dropdown-item:focus,
.dropdown-item:hover {
    background: rgba(4, 111, 225, 0.05);
    color: var(--blue-800);
}

.form-control-sm {
    border-radius: 22px !important;
}

/* Form select styling moved to dropdown-system.css */

textarea .form-label-sm {
    padding: .1rem .75rem;
}

div.dt-scroll-body {
    border-bottom-style: none !important;
}

.column-spacing {
    margin-top: 1.8rem !important;
}

/* ===== SIDEBAR STYLES REMOVED - NOW HANDLED BY NAVBAR COMPONENT ===== */
/* Content margin removed - sidebar is now positioned fixed and doesn't affect content margin */

/* Ensure containers allow overflow for dropdowns */
.container-fluid {
    overflow: visible !important;
}

/* Filter dropdown styling - wider container */
.dropdown-menu,
#filterDropdown + .dropdown-menu {
    min-width: 240px !important;
    width: 240px !important;
    border-radius: 50px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Scale filter button to fit dropdown properly */
.dropdown-menu .btn,
.dropdown-menu .btn-primary,
.dropdown-menu .btn-sm,
#filterDropdown + .dropdown-menu .btn {
    font-size: 0.875rem !important;
    padding: 8px 16px !important;
    width: auto !important;
    max-width: 200px !important;
    min-width: 120px !important;
    margin: 0 auto !important;
    display: block !important;
    text-align: center !important;
}
.popover-link{
    font-size:18px!important;
    text-decoration: none;
    align-items: center;
    color: var(--popover-link-color) !important;
    transition: all ease 0.5s;
}

    .popover-link svg {
        fill: red; /* Change to any color */
    }

.popover-link:hover{
    color: var(--black-color) !important;
}

.repeat-icon {
    width: 14px; /* You can adjust the width */
    height: 14px; /* You can adjust the height */
    object-fit: contain; /* Ensures the icon scales proportionally */
}

.modal-dialog {
    max-width: 1000px;
}


.form-label {
    transition: color 0.2s ease, font-weight 0.2s ease;
}

/* Highlight label when associated input is focused */
.row:has(.form-control:focus) .form-label,
.row:has(.form-select:focus) .form-label,
.row:has(input:focus) .form-label,
.row:has(textarea:focus) .form-label,
.form-group:has(.form-control:focus) .form-label,
.form-group:has(.form-select:focus) .form-label,
.form-group:has(input:focus) .form-label,
.form-group:has(textarea:focus) .form-label {
    color: #355771 !important;
    font-weight: 600 !important;
}

/* ===== MODERN JQUERY UI DATEPICKER STYLING ===== */
/* Override jQuery UI DatePicker with modern design system */

.ui-datepicker {
    /* Modern container styling */
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 2px solid #e9ecef !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow-soft) !important;
    padding: 1.5rem !important;
    width: 320px !important;
    font-family: inherit !important;
    backdrop-filter: blur(10px) !important;
    transition: var(--transition-smooth) !important;
}

.ui-datepicker:hover {
    box-shadow: var(--shadow-hover) !important;
    transform: translateY(-2px) !important;
}

/* DatePicker Header */
.ui-datepicker-header {
    background: transparent !important;
    border: none !important;
    padding: 0 0 1rem 0 !important;
    margin-bottom: 1rem !important;
    position: relative !important;
}

.ui-datepicker-title {
    text-align: center !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: var(--primary-color) !important;
    margin: 0 !important;
    padding: 0.5rem 0 !important;
}

/* Navigation arrows - Complete redesign */
.ui-datepicker-prev,
.ui-datepicker-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: var(--primary-color) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    cursor: pointer !important;
    transition: none !important;
    overflow: hidden !important;
    /* Completely hide all text content */
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;
    color: transparent !important;
}

.ui-datepicker-prev {
    left: 0 !important;
}

.ui-datepicker-next {
    right: 0 !important;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background: var(--primary-hover-color) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='3'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M15 19l-7-7 7-7'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 16px 16px !important;
}

.ui-datepicker-next:hover {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='3'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5l7 7-7 7'/%3e%3c/svg%3e") !important;
}

/* Use CSS background images for arrows instead of text */
.ui-datepicker-prev {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='3'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M15 19l-7-7 7-7'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 16px 16px !important;
}

.ui-datepicker-next {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='3'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5l7 7-7 7'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 16px 16px !important;
}

/* Completely hide all child elements and text */
.ui-datepicker-prev *,
.ui-datepicker-next *,
.ui-datepicker-prev span,
.ui-datepicker-next span,
.ui-datepicker-prev .ui-icon,
.ui-datepicker-next .ui-icon,
.ui-datepicker-prev .ui-datepicker-month,
.ui-datepicker-next .ui-datepicker-month,
.ui-datepicker-prev .ui-datepicker-year,
.ui-datepicker-next .ui-datepicker-year {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;
    color: transparent !important;
    background: none !important;
}

/* Ensure no text content is visible */
.ui-datepicker-prev:before,
.ui-datepicker-next:before,
.ui-datepicker-prev:after,
.ui-datepicker-next:after {
    display: none !important;
}

/* Calendar table */
.ui-datepicker-calendar {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0.25rem !important;
    margin: 0 !important;
}

/* Weekday headers */
.ui-datepicker-calendar thead th {
    background: rgba(39, 154, 241, 0.05) !important;
    border: none !important;
    padding: 0.5rem 0 !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    color: var(--dark-blue) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: var(--border-radius-small) !important;
}

/* Calendar days */
.ui-datepicker-calendar td {
    border: none !important;
    padding: 0.25rem !important;
    text-align: center !important;
}

.ui-datepicker-calendar td a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 36px !important;
    border-radius: var(--border-radius-small) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    background: transparent !important;
    text-decoration: none !important;
    transition: var(--transition-smooth) !important;
    cursor: pointer !important;
    border: none !important;
}

.ui-datepicker-calendar td a:hover {
    background: rgba(39, 154, 241, 0.1) !important;
    color: var(--primary-color) !important;
}

/* Today */
.ui-datepicker-calendar td.ui-datepicker-today a {
    background: rgba(34, 197, 94, 0.1) !important;
    color: #059669 !important;
    font-weight: 600 !important;
    border: 2px solid rgba(34, 197, 94, 0.3) !important;
}

.ui-datepicker-calendar td.ui-datepicker-today a:hover {
    background: rgba(34, 197, 94, 0.2) !important;
    border-color: rgba(34, 197, 94, 0.5) !important;
}

/* Selected date */
.ui-datepicker-calendar td.ui-datepicker-current-day a {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover-color) 100%) !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(39, 154, 241, 0.3) !important;
    transform: translateY(-1px) !important;
}

.ui-datepicker-calendar td.ui-datepicker-current-day a:hover {
    background: linear-gradient(135deg, var(--primary-hover-color) 0%, var(--primary-color) 100%) !important;
}

/* Other month days */
.ui-datepicker-calendar td.ui-datepicker-other-month a {
    color: #d1d5db !important;
    cursor: not-allowed !important;
}

.ui-datepicker-calendar td.ui-datepicker-other-month a:hover {
    background: transparent !important;
    transform: none !important;
}

/* Disabled days */
.ui-datepicker-calendar td.ui-datepicker-unselectable a {
    color: #d1d5db !important;
    cursor: not-allowed !important;
}

.ui-datepicker-calendar td.ui-datepicker-unselectable a:hover {
    background: transparent !important;
    transform: none !important;
}

/* Universal jQuery UI DatePicker scaling - Smaller overall size */
.ui-datepicker {
    width: clamp(200px, 20vw, 280px) !important;
    padding: clamp(0.4rem, 1.5vw, 1.2rem) !important;
}

.ui-datepicker-title {
    font-size: clamp(0.8rem, 1vw, 1rem) !important;
}

.ui-datepicker-calendar td a {
    height: clamp(24px, 2.5vw, 32px) !important;
    font-size: clamp(0.7rem, 1vw, 0.85rem) !important;
}

.ui-datepicker-calendar thead th {
    font-size: clamp(0.6rem, 0.8vw, 0.7rem) !important;
    padding: clamp(0.2rem, 0.6vw, 0.4rem) 0 !important;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    width: clamp(18px, 2vw, 26px) !important;
    height: clamp(18px, 2vw, 26px) !important;
}

.ui-datepicker-calendar {
    border-spacing: clamp(0.08rem, 0.25vw, 0.2rem) !important;
}

/* Universal Custom Calendar scaling - Smaller overall size */
.custom-calander {
    width: clamp(200px, 20vw, 280px) !important;
    padding: clamp(0.4rem, 1.5vw, 1.2rem) !important;
}

.custom-calander .custom-calander-header {
    font-size: clamp(0.8rem, 1vw, 1rem) !important;
}

.custom-calander .custom-calander-day {
    height: clamp(24px, 2.5vw, 32px) !important;
    font-size: clamp(0.7rem, 1vw, 0.85rem) !important;
}

.custom-calander .custom-calander-weekday {
    font-size: clamp(0.6rem, 0.8vw, 0.7rem) !important;
    padding: clamp(0.2rem, 0.6vw, 0.4rem) 0 !important;
}

.custom-calander .custom-calander-nav {
    width: clamp(18px, 2vw, 26px) !important;
    height: clamp(18px, 2vw, 26px) !important;
}

/* High DPI and Retina Display Support - Smaller overall size */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .ui-datepicker {
        width: clamp(180px, 18vw, 260px) !important;
        padding: clamp(0.3rem, 1.3vw, 1rem) !important;
    }
    
    .ui-datepicker-calendar td a {
        height: clamp(22px, 2.2vw, 30px) !important;
        font-size: clamp(0.65rem, 0.9vw, 0.8rem) !important;
    }
    
    .ui-datepicker-title {
        font-size: clamp(0.75rem, 0.9vw, 0.95rem) !important;
    }
    
    .ui-datepicker-prev,
    .ui-datepicker-next {
        width: clamp(16px, 1.8vw, 24px) !important;
        height: clamp(16px, 1.8vw, 24px) !important;
    }
    
    .custom-calander {
        width: clamp(180px, 18vw, 260px) !important;
        padding: clamp(0.3rem, 1.3vw, 1rem) !important;
    }
    
    .custom-calander .custom-calander-day {
        height: clamp(22px, 2.2vw, 30px) !important;
        font-size: clamp(0.65rem, 0.9vw, 0.8rem) !important;
    }
    
    .custom-calander .custom-calander-header {
        font-size: clamp(0.75rem, 0.9vw, 0.95rem) !important;
    }
    
    .custom-calander .custom-calander-nav {
        width: clamp(16px, 1.8vw, 24px) !important;
        height: clamp(16px, 1.8vw, 24px) !important;
    }
}

/* Ultra-wide monitors (1920px+) - Smaller overall size */
@media (min-width: 1920px) {
    .ui-datepicker {
        width: clamp(240px, 16vw, 300px) !important;
        padding: clamp(0.8rem, 1.2vw, 1.5rem) !important;
    }
    
    .ui-datepicker-calendar td a {
        height: clamp(28px, 2vw, 36px) !important;
        font-size: clamp(0.75rem, 0.8vw, 0.9rem) !important;
    }
    
    .ui-datepicker-title {
        font-size: clamp(0.85rem, 0.9vw, 1rem) !important;
    }
    
    .ui-datepicker-prev,
    .ui-datepicker-next {
        width: clamp(20px, 1.6vw, 28px) !important;
        height: clamp(20px, 1.6vw, 28px) !important;
    }
    
    .custom-calander {
        width: clamp(240px, 16vw, 300px) !important;
        padding: clamp(0.8rem, 1.2vw, 1.5rem) !important;
    }
    
    .custom-calander .custom-calander-day {
        height: clamp(28px, 2vw, 36px) !important;
        font-size: clamp(0.75rem, 0.8vw, 0.9rem) !important;
    }
    
    .custom-calander .custom-calander-header {
        font-size: clamp(0.85rem, 0.9vw, 1rem) !important;
    }
    
    .custom-calander .custom-calander-nav {
        width: clamp(20px, 1.6vw, 28px) !important;
        height: clamp(20px, 1.6vw, 28px) !important;
    }
}

/* Small screens (≤480px) - Mobile - Smaller overall size */
@media (max-width: 480px) {
    .ui-datepicker {
        width: clamp(160px, 70vw, 200px) !important;
        padding: clamp(0.2rem, 3vw, 0.5rem) !important;
    }
    
    .ui-datepicker-calendar td a {
        height: clamp(20px, 5vw, 24px) !important;
        font-size: clamp(0.6rem, 2.5vw, 0.7rem) !important;
    }
    
    .ui-datepicker-title {
        font-size: clamp(0.7rem, 3.5vw, 0.8rem) !important;
    }
    
    .ui-datepicker-prev,
    .ui-datepicker-next {
        width: clamp(14px, 4vw, 18px) !important;
        height: clamp(14px, 4vw, 18px) !important;
    }
    
    .ui-datepicker-calendar {
        border-spacing: clamp(0.04rem, 0.8vw, 0.08rem) !important;
    }
    
    .ui-datepicker-calendar thead th {
        padding: clamp(0.08rem, 1.5vw, 0.2rem) 0 !important;
        font-size: clamp(0.5rem, 2vw, 0.65rem) !important;
    }
    
    .custom-calander {
        width: clamp(160px, 70vw, 200px) !important;
        padding: clamp(0.2rem, 3vw, 0.5rem) !important;
    }
    
    .custom-calander .custom-calander-day {
        height: clamp(20px, 5vw, 24px) !important;
        font-size: clamp(0.6rem, 2.5vw, 0.7rem) !important;
    }
    
    .custom-calander .custom-calander-header {
        font-size: clamp(0.7rem, 3.5vw, 0.8rem) !important;
    }
    
    .custom-calander .custom-calander-nav {
        width: clamp(14px, 4vw, 18px) !important;
        height: clamp(14px, 4vw, 18px) !important;
    }
}

/* Tablet screens (481px - 768px) - Smaller overall size */
@media (min-width: 481px) and (max-width: 768px) {
    .ui-datepicker {
        width: clamp(180px, 30vw, 240px) !important;
        padding: clamp(0.3rem, 2.5vw, 0.6rem) !important;
    }
    
    .ui-datepicker-calendar td a {
        height: clamp(22px, 3.5vw, 28px) !important;
        font-size: clamp(0.65rem, 2vw, 0.75rem) !important;
    }
    
    .ui-datepicker-title {
        font-size: clamp(0.75rem, 3vw, 0.85rem) !important;
    }
    
    .ui-datepicker-prev,
    .ui-datepicker-next {
        width: clamp(16px, 3.5vw, 20px) !important;
        height: clamp(16px, 3.5vw, 20px) !important;
    }
    
    .ui-datepicker-calendar {
        border-spacing: clamp(0.06rem, 1.2vw, 0.12rem) !important;
    }
    
    .custom-calander {
        width: clamp(180px, 30vw, 240px) !important;
        padding: clamp(0.3rem, 2.5vw, 0.6rem) !important;
    }
    
    .custom-calander .custom-calander-day {
        height: clamp(22px, 3.5vw, 28px) !important;
        font-size: clamp(0.65rem, 2vw, 0.75rem) !important;
    }
    
    .custom-calander .custom-calander-header {
        font-size: clamp(0.75rem, 3vw, 0.85rem) !important;
    }
    
    .custom-calander .custom-calander-nav {
        width: clamp(16px, 3.5vw, 20px) !important;
        height: clamp(16px, 3.5vw, 20px) !important;
    }
}

/* Standard tablet screens (769px - 1024px) - Smaller overall size */
@media (min-width: 769px) and (max-width: 1024px) {
    .ui-datepicker {
        width: clamp(200px, 25vw, 260px) !important;
        padding: clamp(0.5rem, 2vw, 0.8rem) !important;
    }
    
    .ui-datepicker-calendar td a {
        height: clamp(24px, 3vw, 30px) !important;
        font-size: clamp(0.7rem, 1.5vw, 0.8rem) !important;
    }
    
    .ui-datepicker-title {
        font-size: clamp(0.8rem, 2vw, 0.9rem) !important;
    }
    
    .ui-datepicker-prev,
    .ui-datepicker-next {
        width: clamp(18px, 2.5vw, 24px) !important;
        height: clamp(18px, 2.5vw, 24px) !important;
    }
    
    .ui-datepicker-calendar {
        border-spacing: clamp(0.08rem, 1.5vw, 0.15rem) !important;
    }
    
    .custom-calander {
        width: clamp(200px, 25vw, 260px) !important;
        padding: clamp(0.5rem, 2vw, 0.8rem) !important;
    }
    
    .custom-calander .custom-calander-day {
        height: clamp(24px, 3vw, 30px) !important;
        font-size: clamp(0.7rem, 1.5vw, 0.8rem) !important;
    }
    
    .custom-calander .custom-calander-header {
        font-size: clamp(0.8rem, 2vw, 0.9rem) !important;
    }
    
    .custom-calander .custom-calander-nav {
        width: clamp(18px, 2.5vw, 24px) !important;
        height: clamp(18px, 2.5vw, 24px) !important;
    }
}


/* Global Settings tab content container */
#nav-tabContent {
    min-height: 70vh !important;
    padding-bottom: 2rem !important;
}

/* Individual tab panes */
#nav-tabContent .tab-pane {
    min-height: 65vh !important;
    padding-bottom: 3rem !important;
}

/* Data table containers in Global Settings */
#nav-tabContent .container-fluid {
    min-height: 60vh !important;
    padding-bottom: 2rem !important;
}

/* Data table wrapper */
#nav-tabContent .dataTables_wrapper {
    min-height: 55vh !important;
    padding-bottom: 4rem !important;
}

/* Data table pagination area */
#nav-tabContent .dataTables_paginate {
    margin-top: 2rem !important;
    padding-bottom: 1rem !important;
}

/* Data table info area */
#nav-tabContent .dataTables_info {
    margin-top: 2rem !important;
    padding-bottom: 1rem !important;
}

/* Specific Global Settings tables */
#nav-tabContent table[id*="tblGlobalSettings"],
#nav-tabContent table[id*="tblLocations"],
#nav-tabContent table[id*="tblDepartments"],
#nav-tabContent table[id*="tblCostCentres"],
#nav-tabContent table[id*="tblEarnings"],
#nav-tabContent table[id*="tblAllowance"],
#nav-tabContent table[id*="tblOvertime"],
#nav-tabContent table[id*="tblDeduction"],
#nav-tabContent table[id*="tblShifts"],
#nav-tabContent table[id*="tblSalary"] {
    margin-bottom: 3rem !important;
}

/* Data table processing overlay */
#nav-tabContent .dataTables_processing {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* DataTable controls hidden by master rules - spacing not needed */

/* Data table footer area */
#nav-tabContent .dataTables_wrapper .dataTables_paginate,
#nav-tabContent .dataTables_wrapper .dataTables_info {
    margin-top: 1.5rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid #dee2e6 !important;
}

/* Employee Status dropdown container moved to consolidated data table styling */

/* Employee Status dropdown will use the custom dropdown system with rounded options */
#statusFilter {
    width: 280px !important;
    min-width: 280px !important;
}

.custom-dropdown-wrapper:has(#statusFilter) {
    width: 280px !important;
    min-width: 280px !important;
}

.custom-dropdown-wrapper:has(#statusFilter) .form-select {
    width: 280px !important;
    min-width: 280px !important;
}

.custom-dropdown-wrapper:has(#statusFilter) .custom-dropdown-list {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
}

/* More aggressive width locking for status filter dropdown */
#statusFilter + .custom-dropdown-list,
.custom-dropdown-wrapper:has(#statusFilter) .custom-dropdown-list {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    box-sizing: border-box !important;
}

/* Prevent any width changes during animation */
.custom-dropdown-wrapper:has(#statusFilter) .custom-dropdown-list.show {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
}

/* Disable any transitions that might affect width */
.custom-dropdown-wrapper:has(#statusFilter) .custom-dropdown-list {
    transition: none !important;
    animation: none !important;
}

/* Force width on all states */
.custom-dropdown-wrapper:has(#statusFilter) .custom-dropdown-list,
.custom-dropdown-wrapper:has(#statusFilter) .custom-dropdown-list:not(.show),
.custom-dropdown-wrapper:has(#statusFilter) .custom-dropdown-list.show {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
}

/* Remove scrollbar completely */
.custom-dropdown-wrapper:has(#statusFilter) .custom-dropdown-list {
    overflow-y: auto !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE and Edge */
}

.custom-dropdown-wrapper:has(#statusFilter) .custom-dropdown-list::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera */
}

/* Scale down icons in table cells */
.table tbody tr td i,
.table tbody tr td .fas,
.table tbody tr td .far,
.table tbody tr td .material-symbols-outlined {
    font-size: 20px !important;
    line-height: 1 !important;
}

/* Employee Status label */
#myTable_wrapper .form-label,
#EmployeeTable_wrapper .form-label,
#tblPaymentHistory_wrapper .form-label,
#tblErrorLog_wrapper .form-label,
#tblVatInvoices_wrapper .form-label,
#tblFundContibutions_wrapper .form-label {
    color: var(--primary-color) !important;
    font-weight: 400 !important;
    font-size: 0.9rem !important;
    margin-bottom: 0 !important;
    white-space: nowrap !important;
}

/* DataTable search bar alignment moved to consolidated section */

/* DataTable search input and label styling moved to consolidated section */

/* ========================================
   GLOBAL DATATABLE STANDARDIZATION - MASTER RULES
   These rules apply to ALL data tables project-wide
   ======================================== */

/* Hide default DataTables controls globally */
.dataTables_filter,
.dataTables_wrapper .dataTables_filter {
    display: none !important;
}

.dataTables_length,
.dataTables_wrapper .dataTables_length {
    display: none !important;
}

/* MASTER TABLE STYLING - Dark blue header with white text */
.table thead th,
.table-light thead th,
.dataTables_wrapper .table thead th,
.dataTables_wrapper .table-light thead th,
body .table thead th,
[class*="Setting"] .table thead th,
[class*="Admin"] .table thead th,
.nav-tabs.tabs-small ~ * .table thead th,
body:has(.nav-tabs.tabs-small) .table thead th {
    background-color: #355771 !important;
    color: white !important;
    border: none !important;
    padding: 12px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 0.875rem !important;
    text-align: center !important;
    position: static !important;
}

/* Remove any pseudo-elements from headers */
.table thead th::after,
.table-light thead th::after {
    display: none !important;
    content: none !important;
}


/* HORIZONTAL BORDERS BETWEEN ROWS - ENFORCED */
.table tbody tr,
.dataTables_wrapper .table tbody tr,
.table-bordered tbody tr {
    border-bottom: 0.5px solid #e0e0e0 !important;
    background-color: transparent !important;
}

/* Remove zebra striping */
.table tbody tr:nth-child(even) {
    background-color: transparent !important;
}

/* Hover effect */
.table-hover tbody tr:hover,
.dataTables_wrapper .table-hover tbody tr:hover,
.table tbody tr:hover {
    background-color: #f5f5f5 !important;
}

/* Cell styling - NO left/right borders */
.table tbody td,
.dataTables_wrapper .table tbody td,
[class*="Setting"] .table tbody td,
[class*="Admin"] .table tbody td,
.nav-tabs.tabs-small ~ * .table tbody td,
body:has(.nav-tabs.tabs-small) .table tbody td {
    border-left: none !important;
    border-right: none !important;
    border: 0.5px solid rgb(212, 212, 212) !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 300 !important;
    text-align: center !important;
    font-size: 0.9rem !important;
    padding: 0.10rem !important;
  
   
}

/* Last row - NO bottom border, rounded corners */
.table tbody tr:last-child td,
.dataTables_wrapper .table tbody tr:last-child td,
.table tbody tr:last-of-type td,
#EmployersTable tbody tr:last-of-type td,
#EmployeeTable tbody tr:last-of-type td,
#tblSchedules tbody tr:last-of-type td,
#tblPaymentHistory tbody tr:last-of-type td,
#tblErrorLog tbody tr:last-of-type td,
#tblVatInvoices tbody tr:last-of-type td,
#tblFundContibutions tbody tr:last-of-type td {
    border: 0.5px solid rgb(212, 212, 212) !important;
}

/* Rounded bottom corners for last row - ENFORCED */
.table tbody tr:last-child td:first-child,
.table tbody tr:last-of-type td:first-child,
#EmployersTable tbody tr:last-of-type td:first-child,
#EmployeeTable tbody tr:last-of-type td:first-child,
#tblSchedules tbody tr:last-of-type td:first-child,
#tblPaymentHistory tbody tr:last-of-type td:first-child,
#tblErrorLog tbody tr:last-of-type td:first-child,
#tblVatInvoices tbody tr:last-of-type td:first-child,
#tblFundContibutions tbody tr:last-of-type td:first-child {
    border-bottom-left-radius: 30px !important;
}

.table tbody tr:last-child td:last-child,
.table tbody tr:last-of-type td:last-child,
#EmployersTable tbody tr:last-of-type td:last-child,
#EmployeeTable tbody tr:last-of-type td:last-child,
#tblSchedules tbody tr:last-of-type td:last-child,
#tblPaymentHistory tbody tr:last-of-type td:last-child,
#tblErrorLog tbody tr:last-of-type td:last-child,
#tblVatInvoices tbody tr:last-of-type td:last-child,
#tblFundContibutions tbody tr:last-of-type td:last-child {
    border-bottom-right-radius: 30px !important;
}

/* Prevent other rows from getting radius */
.table tbody tr:not(:last-child) td,
#EmployeeTable tbody tr:not(:last-of-type) td,
#tblSchedules tbody tr:not(:last-of-type) td,
#tblPaymentHistory tbody tr:not(:last-of-type) td,
#tblErrorLog tbody tr:not(:last-of-type) td,
#tblVatInvoices tbody tr:not(:last-of-type) td,
#tblFundContibutions tbody tr:not(:last-of-type) td {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Table border-collapse for proper borders */
.table,
#tblSchedules,
#tblPaymentHistory,
#tblErrorLog,
#tblVatInvoices,
#tblFundContibutions {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

/* CUSTOM FLAT DESIGN - Outside border, NO shadow, rounded corners */
.table,
.table-bordered,
.dataTables_wrapper .table {
    border: 0.5px solid #dee2e6 !important;
    box-shadow: none !important;
    border-radius: 30px !important;
    overflow: hidden !important;
}

/* Ensure the entire table container has rounded corners */
.rounded .table-responsive,
.table-responsive {
    border-radius: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    box-shadow: none !important;
    -webkit-overflow-scrolling: touch;
}

/* NO shadow on wrapper - flat design */
.rounded,
div:has(> .table-responsive) {
    box-shadow: none !important;
    border-radius: 8px !important;
}

/* ======================================== */

/* Hide default checkbox appearance */
input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #6c757d !important;
    border-radius: var(--border-radius-small) !important;
    background: #ffffff !important;
    cursor: pointer !important;
    position: relative !important;
    transition: var(--transition-smooth) !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

/* Hover state */
input[type="checkbox"]:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(39, 154, 241, 0.15) !important;
    transform: translateY(-1px) !important;
}

/* Focus state */
input[type="checkbox"]:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(39, 154, 241, 0.1) !important;
}

/* Checked state */
input[type="checkbox"]:checked {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(39, 154, 241, 0.3) !important;
}

/* Checkmark icon */
input[type="checkbox"]:checked::after {
    content: "✓" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: white !important;
    font-size: 12px !important;
    font-weight: bold !important;
    line-height: 1 !important;
}

/* Hover state for checked checkbox */
input[type="checkbox"]:checked:hover {
    background: var(--primary-hover-color) !important;
    border-color: var(--primary-hover-color) !important;
    box-shadow: 0 4px 12px rgba(39, 154, 241, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* Disabled state */
input[type="checkbox"]:disabled {
    background: #f8f9fa !important;
    border-color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

input[type="checkbox"]:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Form check styling for Bootstrap compatibility */
.form-check-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #6c757d !important;
    border-radius: var(--border-radius-small) !important;
    background: #ffffff !important;
    cursor: pointer !important;
    position: relative !important;
    transition: var(--transition-smooth) !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

.form-check-input:hover,
input[type="radio"]:hover,
input[type="checkbox"]:hover,
.form-check input[type="radio"]:hover,
.form-check input[type="checkbox"]:hover {
    border-color: var(--primary-hover-color) !important;
    box-shadow: 0 2px 8px rgba(39, 154, 241, 0.15) !important;
    transform: translateY(-1px) !important;
}

.form-check-input:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(39, 154, 241, 0.1) !important;
}

.form-check-input:checked {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(39, 154, 241, 0.3) !important;
}

.form-check-input:checked::after {
    content: "✓" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: white !important;
    font-size: 12px !important;
    font-weight: bold !important;
    line-height: 1 !important;
}

.form-check-input:checked:hover {
    background: var(--primary-hover-color) !important;
    border-color: var(--primary-hover-color) !important;
    box-shadow: 0 4px 12px rgba(39, 154, 241, 0.4) !important;
    transform: translateY(-1px) !important;
}

.form-check-input:disabled {
    background: #f8f9fa !important;
    border-color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.form-check-input:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Form check container spacing - Enhanced alignment */
.form-check {
    margin-bottom: 1rem !important;
    padding-left: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    min-height: 24px !important;
}

/* Checkbox alignment - Perfect vertical centering with text */
.form-check-input {
    margin-top: -2px !important;
    margin-right: 0.5rem !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
    align-self: center !important;
    position: relative !important;
    top: 0 !important;
    vertical-align: middle !important;
}

/* Additional spacing when checkbox is inside label */
.form-check-label .form-check-input,
label .form-check-input,
.form-check-label input[type="checkbox"],
.form-check-label input[type="radio"],
label input[type="checkbox"],
label input[type="radio"] {
    margin-right: 0.5rem !important;
}

/* Simple hover state for labels - blue text only */
.form-check:hover .form-check-label,
.form-check:hover .form-label {
    color: var(--primary-hover-color) !important;
}

/* Checkbox list spacing */
.checkbox-list,
.checkbox-group {
    margin: 0 !important;
    padding: 0 !important;
}

.checkbox-list .form-check,
.checkbox-group .form-check {
    margin-bottom: 0.75rem !important;
}

.checkbox-list .form-check:last-child,
.checkbox-group .form-check:last-child {
    margin-bottom: 0 !important;
}

/* Section spacing for checkbox groups */
.checkbox-section {
    margin-bottom: 2rem !important;
}

.checkbox-section:last-child {
    margin-bottom: 0 !important;
}

/* Custom checkbox wrapper for better control */
.checkbox-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    padding: 0.5rem 0 !important;
}

.checkbox-wrapper:last-child {
    margin-bottom: 0 !important;
}

.checkbox-wrapper input[type="checkbox"] {
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.checkbox-wrapper label {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    color: #374151 !important;
    cursor: pointer !important;
    user-select: none !important;
    flex: 1 !important;
}

.checkbox-wrapper:hover label {
    color: var(--primary-color) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-check {
        margin-bottom: 0.75rem !important;
        gap: 0.5rem !important;
    }
    
    .checkbox-wrapper {
        margin-bottom: 0.5rem !important;
        gap: 0.5rem !important;
    }
    
    .form-check-label,
    .checkbox-wrapper label {
        font-size: 0.9rem !important;
    }
}

/* File input container - Higher specificity */
input[type="file"],
input[type="file"].form-control,
.form-control[type="file"],
.form-control input[type="file"],
.file-input,
.profile-picture-upload input[type="file"] {
    border-radius: var(--border-radius) !important;
    border: 2px solid #e9ecef !important;
    background: #ffffff !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    min-height: 40px !important;
    transition: var(--transition-smooth) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

input[type="file"]:hover,
input[type="file"].form-control:hover,
.form-control[type="file"]:hover,
.form-control input[type="file"]:hover,
.file-input:hover,
.profile-picture-upload input[type="file"]:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(39, 154, 241, 0.15) !important;
}

input[type="file"]:focus,
input[type="file"].form-control:focus,
.form-control[type="file"]:focus,
.form-control input[type="file"]:focus,
.file-input:focus,
.profile-picture-upload input[type="file"]:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(39, 154, 241, 0.1) !important;
    outline: none !important;
}

/* File input button styling - Higher specificity */
input[type="file"]::-webkit-file-upload-button,
input[type="file"].form-control::-webkit-file-upload-button,
.form-control[type="file"]::-webkit-file-upload-button,
.form-control input[type="file"]::-webkit-file-upload-button,
.file-input::-webkit-file-upload-button,
.profile-picture-upload input[type="file"]::-webkit-file-upload-button {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--border-radius-small) !important;
    padding: 0.5rem 1rem !important;
    margin-right: 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
}

.form-control[type="file"]::-webkit-file-upload-button:hover,
input[type="file"]::-webkit-file-upload-button:hover {
    background: var(--primary-hover-color) !important;
    transform: translateY(-1px) !important;
    box-shadow: none !important;
}

/* Custom file upload wrapper */
.file-upload-wrapper {
    position: relative !important;
    display: inline-block !important;
    width: 100% !important;
}

.file-upload-wrapper input[type="file"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 100% !important;
    height: 100% !important;
    cursor: pointer !important;
}

.file-upload-display {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border: 2px solid #e9ecef !important;
    border-radius: var(--border-radius) !important;
    padding: 0.75rem 1.25rem !important;
    min-height: 40px !important;
    transition: var(--transition-smooth) !important;
    cursor: pointer !important;
}

.file-upload-display:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(39, 154, 241, 0.15) !important;
}

.file-upload-display:focus-within {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(39, 154, 241, 0.1) !important;
}

.file-upload-text {
    color: var(--dark-blue) !important;
    font-size: 0.95rem !important;
    flex: 1 !important;
}

.file-upload-button {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--border-radius-small) !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.file-upload-button:hover {
    background: var(--primary-hover-color) !important;
    transform: translateY(-1px) !important;
    box-shadow: none !important;
}

.file-upload-button:active {
    transform: translateY(0px) !important;
    box-shadow: none !important;
}

/* File upload instructions */
.file-upload-instructions {
    font-size: 0.8rem !important;
    color: var(--dark-blue) !important;
    margin-top: 0.5rem !important;
    line-height: 1.4 !important;
}

/* Profile picture specific styling */
.profile-picture-upload {
    border-radius: var(--border-radius) !important;
}

.profile-picture-upload .file-upload-display {
    border-radius: var(--border-radius) !important;
}

.profile-picture-upload .file-upload-button {
    border-radius: var(--border-radius-small) !important;
}

/* Main file input display - Maximum specificity to override all existing rules */
.file-input-display,
div.file-input-display,
.file-input-display.file-input-display,
body .file-input-display,
html body .file-input-display,
.container .file-input-display,
.row .file-input-display,
div.file-input-display[class*="file-input-display"],
.file-input-display[style*="border-radius"],
div[class*="file-input-display"] {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border: 2px solid #e9ecef !important;
    border-radius: 25px !important;
    padding: 0.75rem 1.25rem !important;
    min-height: 40px !important;
    height: 40px !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
    position: relative !important;
    width: 100% !important;
}

/* Hover and focus states */
.file-input-display:hover,
div.file-input-display:hover,
body .file-input-display:hover {
    border-color: var(--primary-hover-color) !important;
    box-shadow: 0 2px 8px rgba(39, 154, 241, 0.15) !important;
}

.file-input-display:focus-within,
div.file-input-display:focus-within,
body .file-input-display:focus-within {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(39, 154, 241, 0.1) !important;
}

/* File placeholder text */
.file-placeholder {
    color: var(--dark-blue) !important;
    font-size: 0.875rem !important;
    flex: 1 !important;
    text-align: left !important;
    font-style: italic !important;
}

/* Browse button - Maximum specificity */
.file-browse-btn,
.file-input-display .file-browse-btn,
div.file-input-display .file-browse-btn {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    border-radius: 18px !important;
    padding: 0.4rem 0.8rem !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    white-space: nowrap !important;
    margin-left: 0.5rem !important;
    height: 28px !important;
    min-height: 28px !important;
}

.file-browse-btn:hover,
.file-input-display .file-browse-btn:hover {
    background: var(--primary-hover-color) !important;
    transform: translateY(-1px) !important;
    box-shadow: none !important;
}

.file-browse-btn:active,
.file-input-display .file-browse-btn:active {
    transform: translateY(0px) !important;
    box-shadow: none !important;
}

.file-browse-btn i,
.file-input-display .file-browse-btn i {
    font-size: 0.75rem !important;
}

/* Profile picture specific styling */
.profile-picture-upload .file-input-display {
    border-radius: 25px !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0.75rem 1.25rem !important;
}

.profile-picture-upload .file-browse-btn {
    border-radius: 18px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0.4rem 0.8rem !important;
}

/* Hover effect for Upload Profile Picture label - DISABLED */
/* .form-group.row:has(.file-input-display:hover) .col-lg-5 .form-label,
.form-group.row:has(.subtle-file-input:hover) .col-lg-5 .form-label,
div.row:has(.file-input-display:hover) .col-lg-5 .form-label,
div.row:has(.subtle-file-input:hover) .col-lg-5 .form-label {
    color: var(--primary-hover-color) !important;
    font-weight: 600 !important;
    transform: translateX(3px) !important;
    transition: var(--transition-smooth) !important;
} */
/* Removed commented-out navigation styles */
/* Removed large block of commented-out navigation styles */
.btn-icon {
    padding: 0;
    width: 27px;
    height: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-repeat: no-repeat;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    outline: none;
    min-width: auto;
    box-shadow: none;
    color: lightgrey;
}

.logo-input {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 11px;
    text-align: left !important;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

/* Navigation Active State Styling */
.nav-link.active .nav-item-text {
    color: var(--celestial-blue) !important;
}

.nav-sub-link.active .nav-item-text {
    color: var(--celestial-blue) !important;
}

.nav-sub-link {
    border-radius: 14px;
    transition: border-radius 0.2s ease;
}

.nav-sub-link:hover,
.nav-sub-link:focus {
    border-radius: 999px;
}

.nav-payslip-outline {
    border: 1px solid rgba(17, 51, 84, 0.18);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    background-color: rgba(17, 51, 84, 0.05);
    transition: all 0.25s ease-in-out;
    margin: 0.25rem 0;
}

.nav-payslip-outline .nav-item-text {
    font-weight: 600;
    color: #113354 !important;
}

.nav-payslip-outline img {
    opacity: 0.85;
}

.nav-payslip-outline:hover,
.nav-payslip-outline:focus {
    background-color: rgba(39, 154, 241, 0.12);
    border-color: rgba(39, 154, 241, 0.45);
    transform: translateX(4px);
    box-shadow: 0 8px 18px rgba(39, 154, 241, 0.2);
}

/* Cancel Button Hover Styling - Red hover for cancel buttons */
.btn-secondary:hover,
a.btn-secondary:hover,
button.btn-secondary:hover {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
}

/* Dropdown Normal State - Ensure arrow points down when collapsed */
.form-select,
select.form-select,
select.form-select-sm,
select[data-custom-dropdown],
.custom-dropdown-wrapper .form-select,
.modal .form-select,
.modal select.form-select,
.modal select.form-select-sm,
.modal select[data-custom-dropdown],
.dataTables_length select {
    /* Ensure arrow points down in normal/collapsed state */
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    min-height: 40px !important;
    padding: 0.55rem 2.5rem 0.55rem 1rem !important;
    border: 1px solid #bbbbbb !important;
    border-radius: 30px !important;
    color: #113354 !important; /* Dark blue text to match Tax Year dropdown */
    background-color: #ffffff !important; /* White background */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
}

/* Dropdown Hover Styling - Celestial Blue hover for all dropdowns */
.form-select:hover,
select.form-select:hover,
select.form-select-sm:hover,
select[data-custom-dropdown]:hover,
.custom-dropdown-wrapper .form-select:hover,
.modal .form-select:hover,
.modal select.form-select:hover,
.modal select.form-select-sm:hover,
.modal select[data-custom-dropdown]:hover,
.dataTables_length select:hover {
    border-color: var(--primary-hover-color) !important;
    box-shadow: 0 2px 8px rgba(39, 154, 241, 0.15) !important;
    transform: translateY(-1px) !important;
    color: #113354 !important; /* Maintain dark blue text on hover */
    background-color: #ffffff !important; /* Maintain white background on hover */
    
    /* Celestial blue arrow on hover */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23279AF1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
}

/* Dropdown Focus/Active Styling - Celestial Blue with upside-down arrow */
.form-select:focus,
select.form-select:focus,
select.form-select-sm:focus,
select[data-custom-dropdown]:focus,
.custom-dropdown-wrapper .form-select:focus,
.modal .form-select:focus,
.modal select.form-select:focus,
.modal select.form-select-sm:focus,
.modal select[data-custom-dropdown]:focus,
.dataTables_length select:focus {
    border-color: var(--primary-hover-color) !important;
    box-shadow: 0 0 0 3px rgba(39, 154, 241, 0.1) !important;
    outline: none !important;
    color: #113354 !important; /* Maintain dark blue text on focus */
    background-color: #ffffff !important; /* Maintain white background on focus */
    
    /* Rotate arrow upside down on focus/active - Celestial blue */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23279AF1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 11l6-6 6 6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
}

/* Force dark blue text color for custom dropdown buttons - override text-muted and all states */
/* This ensures ALL custom dropdown buttons show dark blue text, matching the Tax Year dropdown */
/* HIGHEST SPECIFICITY - Must come after all other dropdown rules to ensure it overrides */
.custom-dropdown-wrapper .form-select,
.custom-dropdown-wrapper .form-select.text-muted,
.custom-dropdown-wrapper .form-select.form-select-sm,
.custom-dropdown-wrapper .form-select.form-select-sm.text-muted,
.custom-dropdown-wrapper .form-select:hover,
.custom-dropdown-wrapper .form-select:focus,
.custom-dropdown-wrapper .form-select:active,
.custom-dropdown-wrapper .form-select[aria-expanded="false"],
.custom-dropdown-wrapper .form-select[aria-expanded="true"],
.custom-dropdown-wrapper .form-select.text-muted:hover,
.custom-dropdown-wrapper .form-select.text-muted:focus,
.custom-dropdown-wrapper .form-select.text-muted:active,
.custom-dropdown-wrapper .form-select.text-muted[aria-expanded="false"],
.custom-dropdown-wrapper .form-select.text-muted[aria-expanded="true"],
.custom-dropdown-wrapper .form-select.form-select-sm:hover,
.custom-dropdown-wrapper .form-select.form-select-sm:focus,
.custom-dropdown-wrapper .form-select.form-select-sm:active,
.custom-dropdown-wrapper .form-select.form-select-sm[aria-expanded="false"],
.custom-dropdown-wrapper .form-select.form-select-sm[aria-expanded="true"],
.custom-dropdown-wrapper .form-select.form-select-sm.text-muted:hover,
.custom-dropdown-wrapper .form-select.form-select-sm.text-muted:focus,
.custom-dropdown-wrapper .form-select.form-select-sm.text-muted:active,
.custom-dropdown-wrapper .form-select.form-select-sm.text-muted[aria-expanded="false"],
.custom-dropdown-wrapper .form-select.form-select-sm.text-muted[aria-expanded="true"] {
    color: #113354 !important;
    background-color: #ffffff !important;
}

/* Modern Button System - Matching Login Design - Perfectly Pill-shaped */
.btn {
    border-radius: 50px !important;
    transition: var(--transition-smooth);
    font-weight: 400;
    padding: 0.65rem 1.5rem !important;
    font-size: 0.875rem !important;
    min-height: 40px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-sm {
    padding: 0.5rem 1.25rem !important;
    font-size: 0.875rem !important;
    min-height: 40px !important;
    border-radius: 50px !important;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    padding: 0.75rem 1.5rem;
    box-shadow: none !important;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover-color) !important;
    border-color: var(--primary-hover-color) !important;
    transform: translateY(-1px);
    box-shadow: none !important;
}

.btn-secondary {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: #ffffff !important;
    padding: 0.75rem 1.5rem;
    box-shadow: none !important;
    transition: var(--transition-smooth);
}

.btn-outline-primary {
    background-color: transparent !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    padding: 0.75rem 1.5rem;
    transition: var(--transition-smooth);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: none !important;
}

.btn-sm {
    border-radius: 50px !important;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Success button styling */
.btn-success, .btn-save {
    background-color: var(--success-color) !important;
    border-color: var(--success-color) !important;
    color: white !important;
}

.btn-success:hover, .btn-save:hover {
    background-color: #22c55e !important;
    border-color: #22c55e !important;
}

/* Outline secondary button styling */
.btn-outline-secondary {
    border-color: var(--dark-blue) !important;
    color: var(--dark-blue) !important;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: var(--dark-blue) !important;
    border-color: var(--dark-blue) !important;
    color: white !important;
    transform: translateY(-1px);
}

/* Card styling */
.card.no-shadow {
    box-shadow: none !important;
    border: 1px solid #dee2e6;
}

/* Profile Picture & Dropdown Hover Styling moved to navbar.css for navbar header components */

.kit-display {
    border-radius: var(--border-radius);
}

.Kit-display-disabled {
    padding: .4rem .75rem !important;
}
.sub-nav-item {
    padding: var(--menu-sub-item-padding);
}

/* Removed - sidebar styles now handled by navbar component */

.blenny-box-border {
    border-radius: 12px;;
    border-right: 6px solid #4c4c4c;
    box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.1); 
    transform: translateY(-3px); 
}


.blenny-dark-border {
    border-radius: var(--border-radius); /* Same border-radius for uniform design */
    border: 3px solid rgba(0, 0, 0, 0.25)
}

 

.nav-pills .nav-link{
    color: var(--black-color);
    border-radius: 50px !important;
    min-height: 40px !important;
    font-size: 0.875rem !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.nav-tabs {
    font-size: 12px;
    border: none;
}



.form-control {
/*    font-size: 11px;*/
    text-align: left !important;
    padding: 0.5rem !important;
}

.form-currency-control {
    text-align: left !important;
}


.form-percentage-control {
    text-align: left !important;
}

/* Removed - conflicting with navbar styles */
.nav-tabs .nav-link {
    border: none;
    background-color: transparent;
    color: var(--black-color);
    padding: 8px 16px;
    transition: color 0.3s;
}

    .nav-tabs .nav-link:hover {
        color: var(--blenny-blue);
        text-decoration: none;
    }

    .nav-tabs .nav-link.active {
        border: none;
        border-bottom: none;
        color: var(--blenny-blue);
        font-weight: bold;
    }


.sub-nav .nav-tabs .nav-link {
    color: var(--gray-color);
}

    .sub-nav .nav-tabs .nav-link:hover {
        color: var(--light-blue); 
    }

    .sub-nav .nav-tabs .nav-link.active {
        border: none;
        border-bottom: none;
        color: var(--blenny-blue);
    }


.modal-text{
    font-size: 12px;
}

/* Salary Schedules Tab Highlight */
.salary-schedules-highlight {
    position: relative;
    border: 1px solid #dee2e6 !important;
    border-bottom: 2px solid white;
    font-weight: 500 !important;
    box-shadow: 0 2px 4px rgba(37, 223, 78, 0.1) !important;
    transition: none !important;
    margin-left: 12px !important;
}

.salary-schedules-highlight:hover {
/*    border-color: var(--blenny-blue) !important;*/
/*    box-shadow: 0 4px 8px rgba(37, 223, 78, 0.15) !important;*/
    color: var(--blenny-blue) !important;
/*    transform: translateY(-1px);*/
}

    .salary-schedules-highlight.active {
        background: 4D4D4D;
        background: linear-gradient(90deg,rgba(77, 77, 77, 1) 0%, rgba(64, 64, 64, 1) 100%);
        color: var(--white-color) !important;
/*        border-color: var(--blenny-blue) !important;*/
        font-weight: 600 !important;
    }

/* Short border bottom styling */
.short-border-bottom {
    border-bottom: 1px solid lightgrey;
    width: 100%;
    margin: 0 auto;
    margin-top: 10px;
}


.modal-text-heading{
    font-size: 12px;
    font-weight: bold;
}

/* SIC7 Table Container and Modal Tables */
.sic7-table-container {
    position: relative;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #ffffff;
}

.sic7-table-container table {
    margin-bottom: 0 !important;
}

/* SIC7 Table Header - Match main data table design */
#Sci7table thead th {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 600;
    border: none !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* First header cell rounded left */
#Sci7table thead tr:first-child th:first-child {
    border-top-left-radius: 30px !important;
}

/* Last header cell rounded right */
#Sci7table thead tr:first-child th:last-child {
    border-top-right-radius: 30px !important;
}

/* SIC7 Table Body */
#Sci7table tbody td {
    padding: 0.875rem 1rem !important;
    font-size: 0.875rem !important;
    color: var(--black-color);
    border-bottom: 1px solid #dee2e6 !important;
    vertical-align: middle;
}

/* Vertical line between first and second column */
#Sci7table thead th:first-child,
#Sci7table tbody td:first-child {
    border-right: 2px solid #dee2e6 !important;
}

/* Left and right borders for all table cells */
#Sci7table tbody td:first-child {
    border-left: 1px solid #dee2e6 !important;
}

#Sci7table tbody td:last-child {
    border-right: 1px solid #dee2e6 !important;
}

/* Bottom border for last row */
#Sci7table tbody tr:last-child td {
    border-bottom: 1px solid #dee2e6 !important;
}

/* Rounded bottom corners for last row */
#Sci7table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 30px !important;
}

#Sci7table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 30px !important;
}

/* Remove modal-text font override for better consistency */
#Sci7table .modal-text {
    font-size: 0.875rem !important;
}

/* SIC7 Table hover effect */
#Sci7table tbody tr:hover {
    background-color: rgba(39, 154, 241, 0.05) !important;
    transition: var(--transition-smooth);
}

/* Selected row styling - dark grey shadow */
#Sci7table tbody tr.selected {
    background-color: rgba(0, 0, 0, 0.15) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    color: var(--black-color) !important;
}

#Sci7table tbody tr.selected td {
    color: var(--black-color) !important;
}

/* Radio button styling in SIC7 table */
#Sci7table .sci7code_button {
    margin-right: 0.5rem;
    cursor: pointer;
}

#Sci7table label {
    cursor: pointer;
    margin-bottom: 0;
    width: 100%;
    text-align: left !important;
}

/* Force left alignment on second column */
#Sci7table thead th:last-child,
#Sci7table tbody td:last-child {
    text-align: left !important;
}

.modal-header .close {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0;
    margin: 0;

    padding: 0.5rem;
    border: none;
    background: none;
    color: #000; /* Black color for the icon */
    font-size: 1.5rem; /* Size of the close icon */
    cursor: pointer;
    transition: all 0.3s ease;
}

    .modal-header .close:hover {
        color: #dc3545; /* Red color on hover */
    }

    /* Focus style (for accessibility) */
    .modal-header .close:focus {
        outline: none; /* Removes the default focus outline */
    }

    /* Optional: Styling the close button icon itself */
    .modal-header .close span {
        font-weight: bold; /* Bold the icon */
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Adds a subtle shadow to make the icon stand out */
    }


#search-input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Optional: Style for rows when they are highlighted */
.body_sci7code tr {
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for both background and text color */
}

    /* Optional: Adjusting the background color of rows */
    .body_sci7code tr:hover {
        background-color: #f1f1f1; /* Light background color on hover */
    }

/* Modern Action Button Styling */
.action-tab {
    width: 40px;
    text-align: center;
}

.action-tab a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-small);
    background-color: #f8f9fa;
    color: var(--gray-500);
    text-decoration: none;
    transition: var(--transition-smooth);
    margin: 0 2px;
}

.action-tab a:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-tab a.btn-edit:hover {
    background-color: #007bff;
}

.action-tab a.btn-delete:hover {
    background-color: #dc3545;
}

.active-btn {
    border: 2px solid var(--blenny-blue); /* Customize the color and width */
    color: var(--blenny-blue);
    padding: 0.5rem 1rem; /* Optional: Padding for a better appearance */
    border-radius: 0.25rem; /* Optional: Add rounded corners */
    font-size: 10px;
    transition: all ease 0.3s;
}



.center-text option {
    text-align: center;
}

.tabs-small > .nav-link .active {
    border-bottom: none;
}


i  {
    font-size: 18px !important;
}

div.top-filter {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-bottom: 10px;
    gap: 10px;
}

.btn-gap {
    margin-right: 14px;
}


.multiselect-option{
    font-size: 0.75rem;
}


div.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    width: 100%;
}
    div.top .left {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center; /* Centers items horizontally */
        align-items: center; /* Centers items vertically */
        height: 100%; /* Ensure it takes full height */
    }

    div.top .right {
        display: flex;
        flex-wrap: nowrap; 
        justify-content: flex-end; 
        align-items: center; 
    }

.dt-length {
    font-size: 0.857rem;
    margin-bottom: 12px;
}
    .dt-length select {
        border: 1px solid #ddd;
        border-radius: 12px;
        margin-bottom: 0;
        padding: 4px 8px;
        font-size: 0.857rem;
        margin-left: 5px;
    }

.dt-search input {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 0;
    padding: 4px 8px;
    font-size: 0.857rem;
    width: 200px;
    margin-left: 5px;
}

.dt-search {
    font-size: 0.857rem;
    display: flex;
    margin-bottom: 14px;
    align-content: end;
    justify-content: end;
    align-items: center;
}

/* Duplicate table.dataTable rules removed - consolidated in data table styling section */

.dt-paging-button {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: var(--dark-blue) !important;
    border: 2px solid #e9ecef !important;
    border-radius: 22px !important;
    padding: 0.75rem 1rem !important;
    margin: 0 0.25rem !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: none !important;
    min-width: 40px !important;
    min-height: 40px !important;
    text-align: center !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

    .dt-paging-button:hover {
        background-color: var(--primary-hover-color) !important;
        color: #ffffff !important;
        border-color: var(--primary-hover-color) !important;
        transform: translateY(-1px) !important;
        box-shadow: none !important;
    }


    .dt-paging-button.current {
        background-color: var(--dark-blue) !important;
        color: #ffffff !important;
        border-color: var(--dark-blue) !important;
        font-weight: 500 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .dt-paging-button:disabled,
    .dt-paging-button.disabled {
        background-color: #f8f9fa !important;
        color: #9ca3af !important;
        border-color: #e9ecef !important;
        cursor: not-allowed !important;
        transform: none !important;
        box-shadow: none !important;
    }


.dt-paging {
    text-align: center !important;
}

.dt-paging {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center;
    flex-direction: row;
}

.dt-info {
    font-size: 13px;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    text-align: center;
}

.status-linked {
    background: #d1ecf1;
    color: #0c5460;
    display: inline-flex;
}

.status-not-linked {
    background: linear-gradient(180deg, #fde8ea 0%, #fbd5d9 100);
    color: #9b1c1c;
    border: 1px solid rgba(220, 53, 69, 0.25);
    box-shadow: 0 1px 2px rgba(220, 53, 69, 0.12);
    text-transform: uppercase;
    letter-spacing: .3px;
    align-items: center;
    display: inline-flex;
    gap: .35rem;
}

.status-not-linked i {
    font-size: .8rem !important;
}

.status-not-linked:hover {
    border-color: rgba(220, 53, 69, 0.4);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.18);
}

/* Employer dropdown styling moved to navbar.css for navbar header components */

/* Employer dropdown wrapper styling moved to navbar.css */

/* All remaining employer dropdown styling moved to navbar.css */

/*Payslip Control*/
.payslip-control-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: none;
}

    .payslip-control-card .card-body {
        padding: 1.5rem;
        width: 100%;
    }

/* Filter Labels */
.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* All remaining employer dropdown CSS moved to navbar.css */

/*Payslip Control*/
.payslip-control-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: none;
}

    .payslip-control-card .card-body {
        padding: 1.5rem;
        width: 100%;
    }

/* Filter Labels */
.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* All remaining employer dropdown CSS moved to navbar.css */

/*Payslip Control*/
.payslip-control-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: none;
}

    .payslip-control-card .card-body {
        padding: 1.5rem;
        width: 100%;
    }

/* All remaining employer dropdown CSS moved to navbar.css */

/*Payslip Control*/
.payslip-control-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: none;
}

    .payslip-control-card .card-body {
        padding: 1.5rem;
    width: 100%;
    }

/* All remaining employer dropdown CSS moved to navbar.css */

/* Old employer dropdown rules removed */

/* Filter Labels */
.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

/*Payslip Control*/
.payslip-control-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: none;
}

    .payslip-control-card .card-body {
        padding: 1.5rem;
        width: 100%;
    }

/* Filter Labels */
.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}


/* Status Filter Area */
.status-filter-area {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}


.data-capture-container {
    background: white;
    min-height: 100vh;
    width: 100%;
    margin: 0;
}

/* Top Navigation Bar */
.top-navbar {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}


div.dt-container div.dt-search input {
    justify-self: start;
    margin-top: 20px !important;
}

div.dt-container div.dt-search input {
    margin-top: 10px;
    width: 300px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 25px;
    font-size: 0.9rem;
    background: #f8f9fa url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%236c757d" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>') no-repeat calc(100% - 0.75rem) center;
    background-size: 16px;
    margin: 0;
}

    div.dt-container div.dt-search input[type="search"]:focus {
        outline: none;
        border-color: #007bff;
        background-color: white;
        box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    }

    div.dt-container div.dt-search input[type="search"]::placeholder {
        color: var(--dark-blue);
        font-style: italic;
    }

.nav-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
    text-decoration: none;
}

.nav-btn.primary {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

    .nav-btn.primary:hover {
        background: #0056b3;
        border-color: #0056b3;
    }

/* Data Summary Bar */
.data-summary {
    background: #f8f9fa;
    padding: 0.75rem 2rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: var(--dark-blue);
}

/* Filter Section */
.filter-section {
    padding: 1.5rem 2rem;
    background: white;
    border-bottom: 1px solid #e9ecef;
    width: 100%;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.85rem;
    color: #495057;
    font-weight: 500;
    white-space: nowrap;
}

.filter-select {
    padding: 0.4rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    font-size: 0.85rem;
    background: white;
    min-width: 200px;
}

    .filter-select:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
    }

.apply-btn {
    padding: 0.4rem 1rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .apply-btn:hover {
        background: #0056b3;
    }

/* Table Container */
.table-container {
    padding: 0 2rem 2rem 2rem;
    background: white;
    width: 100%;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    padding-top: 0.75rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* Enhanced Table styling moved to consolidated data table styling section */

/* Action Buttons */
.action-btn {
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.75rem;
    text-decoration: none;
    display: inline-block;
    margin: 0.1rem;
    transition: all 0.2s ease;
    text-align: center;
}

/* Actions column specific styling */
.data-table td:last-child {
    text-align: left;
    white-space: nowrap;
}

.btn-create {
    background: #28a745;
    color: white;
}

    .btn-create:hover {
        background: #218838;
        color: white;
        text-decoration: none;
    }

.btn-edit {
    background: var(--blenny-blue);
    color: rgb(255, 255, 255);
}

    .btn-edit:hover {
        background: rgb(9, 116, 238);
        color: rgb(255, 255, 255);
        text-decoration: none;
    }

/* ===== MODERN DESIGN SYSTEM - MATCHING LOGIN STYLE ===== */

/* ===== CONSOLIDATED DATA TABLE STYLING ===== */
/* All data table rules consolidated here to eliminate conflicts and overwrites */

/* Custom tooltip styling for data tables */
.custom-tooltip .tooltip-inner {
    background-color: #355771;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.875rem;
}

.custom-tooltip .tooltip-arrow::before {
    border-top-color: #355771;
}

/* Modern DataTable Design */
.dataTables_wrapper {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: visible !important;
}

/* Modern DataTables Info and Pagination */
.dataTables_wrapper .dataTables_info {
    color: var(--dark-blue);
    font-size: 0.875rem;
    margin-top: 1rem;
    font-weight: 500;
}

.dataTables_wrapper .dataTables_paginate {
    margin-top: 1.5rem;
}

/* Ultra-specific pagination button targeting to override DataTables Bootstrap CSS */
    .dataTables_wrapper .dataTables_paginate .paginate_button,
    .dataTables_wrapper .dataTables_paginate .paginate_button.page-item,
    .dataTables_wrapper .dataTables_paginate .paginate_button a,
    .dataTables_wrapper .dataTables_paginate .paginate_button a.page-link,
    #EmployersTable_wrapper .dataTables_paginate .paginate_button,
    #EmployersTable_wrapper .dataTables_paginate .paginate_button a,
    .page-item .page-link {
        border-radius: 22px !important;
        padding: 0.15rem 0.5rem !important;
        margin: 0 0.25rem !important;
        border: 2px solid #e9ecef !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        color: var(--dark-blue) !important;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
        font-weight: 400 !important;
        font-size: 0.875rem !important;
        box-shadow: none !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 40px !important;
        min-height: 40px !important;
        text-align: center !important;
    }

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current.page-item,
.dataTables_wrapper .dataTables_paginate .paginate_button.current a,
.dataTables_wrapper .dataTables_paginate .paginate_button.current a.page-link,
#EmployersTable_wrapper .dataTables_paginate .paginate_button.current,
#EmployersTable_wrapper .dataTables_paginate .paginate_button.current a,
.page-item.active .page-link {
    background: var(--dark-blue) !important;
    background-color: var(--dark-blue) !important;
    border-color: var(--dark-blue) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    font-weight: 500 !important;
    transform: none !important;
}

/* Modern Table styling */

/* Hide default DataTable buttons */
.buttons-copy,
.buttons-excel,
.buttons-csv,
.buttons-pdf,
.buttons-print {
    display: none !important;
}


/* Modern Card Design */
.card, .pr-title-block {
    background: #ffffff;
    border-radius: var(--border-radius) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid #e9ecef;
    transition: var(--transition-smooth);
    padding: 1rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: visible;
}

/* Clean, minimal card design that matches the existing interface */
.sub-sub-nav-card {
    background: #ffffff !important;
    border: 1px solid #e9ecef !important;
    border-radius: var(--border-radius) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    padding: 1rem 1.5rem !important;
    margin: 1rem auto !important;
    width: 80% !important;
    max-width: 80% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Sub-sub navigation tabs styling - clean and minimal */
.sub-sub-nav-card .nav-tabs {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    gap: 0.25rem !important;
}

/* Override all existing nav-link rules for sub-sub navigation */
.sub-sub-nav-card .nav-tabs .nav-link,
.sub-sub-nav-card .nav-tabs .nav-link:hover,
.sub-sub-nav-card .nav-tabs .nav-link.active,
.sub-sub-nav-card .nav-tabs .nav-link:focus {
    border: none !important;
    border-bottom: none !important;
    border-radius: 50px !important;
    background: transparent !important;
    color: var(--dark-blue) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    padding: 0.5rem 1rem !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    margin-bottom: 0 !important;
    text-decoration: none !important;
    outline: none !important;
    animation: none !important;
    transform: none !important;
}

.sub-sub-nav-card .nav-tabs .nav-link:hover {
    background: #f8f9fa !important;
    color: var(--primary-color) !important;
}

.sub-sub-nav-card .nav-tabs .nav-link.active {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Responsive adjustments for sub-sub navigation */
@media (max-width: 768px) {
    .sub-sub-nav-card {
        padding: 0.75rem 1rem !important;
        margin: 0.75rem 0 !important;
    }
    
    .sub-sub-nav-card .nav-tabs .nav-link {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.85rem !important;
    }
}

/* Modal form styling moved to dropdown-system.css for consistency */

.modal .form-label {
    font-weight: 500 !important;
    color: #495057 !important;
    margin-bottom: 0.5rem !important;
}

.modal .row {
    margin-bottom: 1rem !important;
}

.modal .row.mb-3 {
    margin-bottom: 1.5rem !important;
}

/* Modal dropdown styling moved to dropdown-system.css */

/* Modal fieldset styling */
.modal fieldset {
    border: none !important;
    padding: 1.5rem !important;
}

.modal fieldset.border {
    border: 1px solid #e9ecef !important;
    border-radius: var(--border-radius) !important;
    padding: 1.5rem !important;
}

/* Modal validation styling */
.modal .text-danger {
    font-size: 0.8rem !important;
    margin-top: 0.25rem !important;
}

.modal .validation-summary-errors {
    background: #f8d7da !important;
    border: 1px solid #f5c6cb !important;
    border-radius: var(--border-radius-small) !important;
    padding: 0.75rem !important;
    margin-bottom: 1rem !important;
    color: #721c24 !important;
}

/* Match Edit Employer spacing exactly - account for extra #content wrapper */
body:has([href*="GlobalSetting"]) #content {
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body:has([href*="GlobalSetting"]) .row.mt-3 {
    margin-bottom: 0 !important;
}

body:has([href*="GlobalSetting"]) .pr-title-block {
    margin-bottom: 2rem !important;
}

body:has([href*="GlobalSetting"]) section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Global Settings Navigation Card Layout */
body:has([href*="GlobalSetting"]) .card nav {
    border-bottom: none !important;
}

body:has([href*="GlobalSetting"]) .card nav .nav-tabs {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

/* Global Settings Add New Button Styling */
body:has([href*="GlobalSetting"]) #globalAddNewBtn {
    transition: var(--transition-smooth) !important;
    border-radius: var(--border-radius-small) !important;
}

body:has([href*="GlobalSetting"]) #globalAddNewBtn:hover {
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-hover) !important;
}

/* Override the old calendar styling with modern design system */

.custom-calander {
    /* Modern container styling */
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 2px solid #e9ecef !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow-soft) !important;
    padding: 1.5rem !important;
    max-width: 380px !important;
    width: 100% !important;
    margin: 0 auto !important;
    backdrop-filter: blur(10px) !important;
    transition: var(--transition-smooth) !important;
}

.custom-calander:hover {
    box-shadow: var(--shadow-hover) !important;
    transform: translateY(-2px) !important;
}

/* Calendar header with month/year selectors */
.custom-calander .month-year {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 1.5rem !important;
    gap: 0.75rem !important;
}

.custom-calander .month-year .form-select {
    /* Modern dropdown styling to match form fields */
    background: #ffffff !important;
    border: 2px solid #e9ecef !important;
    border-radius: var(--border-radius-small) !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    color: var(--primary-color) !important;
    min-width: 110px !important;
    transition: var(--transition-smooth) !important;
    box-shadow: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23279AF1' stroke-width='2'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e") !important;
    background-position: right 0.75rem center !important;
    background-repeat: no-repeat !important;
    background-size: 16px 16px !important;
    padding-right: 2.5rem !important;
}

.custom-calander .month-year .form-select:focus {
    border-color: var(--primary-hover-color) !important;
    box-shadow: 0 0 0 3px rgba(39, 154, 241, 0.1) !important;
    outline: none !important;
}

.custom-calander .month-year .form-select:hover {
    border-color: var(--primary-hover-color) !important;
    transform: translateY(-1px) !important;
}

/* Navigation arrows */
.custom-calander .month-year .nav-arrow {
    background: var(--primary-color) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 0.875rem !important;
    transition: var(--transition-smooth) !important;
    cursor: pointer !important;
}

.custom-calander .month-year .nav-arrow:hover {
    background: var(--primary-hover-color) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-hover) !important;
}

/* Weekday headers */
.custom-calander ul.weekdays {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
    padding: 0 !important;
}

.custom-calander ul.weekdays li {
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    color: var(--dark-blue) !important;
    padding: 0.5rem 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    background: rgba(39, 154, 241, 0.05) !important;
    border-radius: var(--border-radius-small) !important;
}

/* Calendar days grid */
.custom-calander ul.days {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 0.5rem !important;
    padding: 0 !important;
    margin: 0 !important;
}

.custom-calander ul.days li {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: 40px !important;
}

.custom-calander ul.days li span {
    /* Modern day styling */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: var(--border-radius-small) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    background: transparent !important;
    transition: var(--transition-smooth) !important;
    cursor: pointer !important;
    position: relative !important;
}

.custom-calander ul.days li span:hover {
    background: rgba(39, 154, 241, 0.1) !important;
    color: var(--primary-color) !important;
    transform: translateY(-1px) !important;
}

/* Active/selected day */
.custom-calander ul.days li span.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover-color) 100%) !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(39, 154, 241, 0.3) !important;
    transform: translateY(-1px) !important;
}

.custom-calander ul.days li span.active:hover {
    background: linear-gradient(135deg, var(--primary-hover-color) 0%, var(--primary-color) 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(39, 154, 241, 0.4) !important;
}

/* Today indicator */
.custom-calander ul.days li span.today {
    background: rgba(34, 197, 94, 0.1) !important;
    color: #059669 !important;
    font-weight: 600 !important;
    border: 2px solid rgba(34, 197, 94, 0.3) !important;
}

.custom-calander ul.days li span.today:hover {
    background: rgba(34, 197, 94, 0.2) !important;
    border-color: rgba(34, 197, 94, 0.5) !important;
}

/* Holiday styling */
.custom-calander ul.days li span.holiday {
    color: #dc2626 !important;
    font-weight: 600 !important;
    position: relative !important;
}

.custom-calander ul.days li span.holiday::before {
    content: "" !important;
    position: absolute !important;
    bottom: 2px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 4px !important;
    height: 4px !important;
    background: #dc2626 !important;
    border-radius: 50% !important;
}

/* Disabled/other month days */
.custom-calander ul.days li span.other-month {
    color: #d1d5db !important;
    cursor: not-allowed !important;
}

.custom-calander ul.days li span.other-month:hover {
    background: transparent !important;
    transform: none !important;
}

/* ===== CUSTOM CALENDAR RESPONSIVE ADJUSTMENTS ===== */
/* Large screens - Default size */
@media (min-width: 1200px) {
    .custom-calander {
        width: 320px !important;
        padding: 1.5rem !important;
    }
    
    .custom-calander ul.days li {
        height: 40px !important;
        font-size: 0.875rem !important;
    }
    
    .custom-calander .month-year .form-select {
        font-size: 0.875rem !important;
        padding: 0.6rem 1rem !important;
    }
}

/* Medium screens - Slightly smaller */
@media (max-width: 1199px) and (min-width: 992px) {
    .custom-calander {
        width: 300px !important;
        padding: 1.25rem !important;
    }
    
    .custom-calander ul.days li {
        height: 38px !important;
        font-size: 0.875rem !important;
    }
    
    .custom-calander .month-year .form-select {
        font-size: 0.875rem !important;
        padding: 0.55rem 0.9rem !important;
    }
}

/* Small screens - Compact */
@media (max-width: 991px) and (min-width: 768px) {
    .custom-calander {
        width: 280px !important;
        padding: 1rem !important;
    }
    
    .custom-calander ul.days li {
        height: 36px !important;
        font-size: 0.875rem !important;
    }
    
    .custom-calander .month-year .form-select {
        font-size: 0.875rem !important;
        padding: 0.5rem 0.8rem !important;
    }
    
    .custom-calander .month-year .nav-arrow {
        width: 28px !important;
        height: 28px !important;
    }
}

/* Extra small screens - Very compact */
@media (max-width: 767px) {
    .custom-calander {
        width: 260px !important;
        padding: 0.75rem !important;
    }
    
    .custom-calander ul.days li {
        height: 32px !important;
        font-size: 0.875rem !important;
    }
    
    .custom-calander .month-year .form-select {
        font-size: 0.875rem !important;
        padding: 0.45rem 0.7rem !important;
    }
    
    .custom-calander .month-year .nav-arrow {
        width: 24px !important;
        height: 24px !important;
    }
    
    .custom-calander ul.days {
        gap: 0.3rem !important;
    }
}

/* Mobile screens - Minimal */
@media (max-width: 480px) {
    .custom-calander {
        width: 240px !important;
        padding: 0.5rem !important;
    }
    
    .custom-calander ul.days li {
        height: 28px !important;
        font-size: 0.875rem !important;
    }
    
    .custom-calander .month-year .form-select {
        font-size: 0.875rem !important;
        padding: 0.4rem 0.6rem !important;
    }
    
    .custom-calander .month-year .nav-arrow {
        width: 20px !important;
        height: 20px !important;
    }
    
    .custom-calander ul.days {
        gap: 0.25rem !important;
    }
    
    .custom-calander ul.weekdays li {
        font-size: 0.7rem !important;
        padding: 0.25rem 0 !important;
    }
}

/* Global Settings Buttons - Target specifically */
.nav-tabs.tabs-small ~ * .btn,
body:has(.nav-tabs.tabs-small) .btn {
    border-radius: 50px !important;
    border: 2px solid var(--dark-blue) !important;
    background: var(--dark-blue) !important;
    color: #ffffff !important;
    font-weight: 400 !important;
    font-size: 0.9rem !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: none !important;
}

.nav-tabs.tabs-small ~ * .btn:hover,
body:has(.nav-tabs.tabs-small) .btn:hover {
    background: var(--primary-hover-color) !important;
    border-color: var(--primary-hover-color) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}


/* Admin Settings Modern Design */
/* Apply same modern styling to admin settings screens */
[class*="Setting"] .container-fluid,
[class*="Admin"] .container-fluid {
    background: #ffffff;
    border-radius: var(--border-radius) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid #e9ecef;
    margin-bottom: 2rem;
    padding: 2rem;
    transition: var(--transition-smooth);
}

/* Admin Settings Buttons */
[class*="Setting"] .btn,
[class*="Admin"] .btn {
    border-radius: 50px !important;
    border: 2px solid var(--dark-blue) !important;
    background: var(--dark-blue) !important;
    color: #ffffff !important;
    font-weight: 400 !important;
    font-size: 0.9rem !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: none !important;
}

[class*="Setting"] .btn:hover,
[class*="Admin"] .btn:hover {
    background: var(--primary-hover-color) !important;
    border-color: var(--primary-hover-color) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}



/* Header styling */
.pr-title-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pr-title-block h4 {
    color: var(--black-color);
    font-family: var(--theme-heading-font); /* Quicksand */
    font-weight: 400; /* Regular weight */
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    flex: 1;
}

/* First letter blue styling */
.pr-title-block h4::first-letter {
    color: var(--blenny-blue);
}

/* Action buttons in header */
.pr-title-block .form {
    flex-shrink: 0;
}

.pr-title-block .btn {
    border-radius: 50px !important;
    border: 2px solid var(--dark-blue) !important;
    background: var(--dark-blue) !important;
    color: #ffffff !important;
    font-weight: 400 !important;
    font-size: 0.875rem !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: none !important;
    margin-left: 0.5rem;
}

.pr-title-block .btn:hover {
    background: var(--primary-hover-color) !important;
    border-color: var(--primary-hover-color) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* Side-by-Side Card Navigation Styling */
.card .nav-pills .nav-link,
.modal .nav-pills .nav-link,
.modal-content .nav-pills .nav-link {
    border: none;
    color: var(--dark-blue);
    font-family: var(--theme-heading-font); /* Quicksand */
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin-left: 0.25rem;
    border-radius: 50px !important;
    min-height: 40px !important;
    font-size: 0.875rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
    background: none;
    text-decoration: none;
}

.card .nav-pills .nav-link:hover,
.modal .nav-pills .nav-link:hover,
.modal-content .nav-pills .nav-link:hover {
    color: var(--primary-hover-color);
    background-color: rgba(39, 154, 241, 0.1);
    text-decoration: none;
}

.card .nav-pills .nav-link.active,
.modal .nav-pills .nav-link.active,
.modal-content .nav-pills .nav-link.active {
    color: #ffffff;
    background-color: var(--primary-hover-color);
    border: none;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(39, 154, 241, 0.3);
}

/* Side-by-Side Card Title Styling */
.card h4 {
    color: var(--black-color);
    font-family: var(--theme-heading-font); /* Quicksand */
    font-weight: 400; /* Regular weight */
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

/* First letter blue styling for card titles */
.card h4::first-letter {
    color: var(--blenny-blue);
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--black-color);
    font-weight: 600;
    letter-spacing: -0.25px;
}

/* Terms of Service Content Styling */
.terms-service-content {
    padding: 2rem;
}

.terms-text-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
    font-family: var(--theme-font);
    max-width: 100%;
    text-align: justify;
}

.terms-text-content strong,
.terms-text-content b {
    color: var(--primary-color);
    font-weight: 600;
}

.terms-text-content p {
    margin-bottom: 1.5rem;
}

.terms-text-content h1,
.terms-text-content h2,
.terms-text-content h3,
.terms-text-content h4 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.terms-text-content ul,
.terms-text-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.terms-text-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* Loading States */
.dataTables_processing {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(5px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: none !important;
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Modern Form Controls */
.form-control {
    border-radius: 22px !important;
    border: 1px solid #bbbbbb !important;
    transition: var(--transition-smooth);
    line-height: 1.4 !important;
    min-height: 40px !important;
    font-size: 0.875rem !important;
    background-color: #ffffff !important;
}

.form-control:focus {
    border-color: var(--primary-hover-color) !important;
    box-shadow: 0 0 0 3px rgba(39, 154, 241, 0.1) !important;
    outline: none !important;
    background-color: #ffffff !important;
}

/* Custom Search Input - Fix invisible text */
.custom-search-input {
    color: #374151 !important;
}

.form-control:hover {
    border-color: var(--primary-hover-color) !important;
}

.form-control-sm:focus {
    border-color: var(--primary-hover-color) !important;
    box-shadow: 0 0 0 3px rgba(39, 154, 241, 0.1) !important;
}

.form-control-sm:hover {
    border-color: var(--primary-hover-color) !important;
}

/* Small form select styling moved to dropdown-system.css */

/* ===== REUSABLE MODERN FORM STYLING ===== */
/* This section contains all form styling that can be applied across pages */

/* Modern Form Row Layout with Connected Hover */
.form-group.row {
    margin-bottom: 1.5rem !important;
    align-items: center !important;
}

.form-group.row .form-label {
    font-weight: 500 !important;
    color: var(--primary-color) !important;
    margin-bottom: 0 !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
}


/* Large screens: col-lg-5 / col-lg-7 (Employer_Information, Statutory_PAYE, SDL, UIF) */
/* Hover highlighting re-enabled for non-employee forms */
fieldset:not(.employee-form-no-hover) .form-group.row .col-lg-7:hover ~ .col-lg-5 .form-label,
fieldset:not(.employee-form-no-hover) .form-group.row:has(.col-lg-7 .form-control:hover) .col-lg-5 .form-label,
fieldset:not(.employee-form-no-hover) .form-group.row:has(.col-lg-7 .form-select:hover) .col-lg-5 .form-label,
fieldset:not(.employee-form-no-hover) .form-group.row:has(.col-lg-7 .form-control:focus) .col-lg-5 .form-label,
fieldset:not(.employee-form-no-hover) .form-group.row:has(.col-lg-7 .form-select:focus) .col-lg-5 .form-label {
    color: var(--primary-hover-color) !important;
    font-weight: 600 !important;
    transform: translateX(3px) !important;
    transition: var(--transition-smooth) !important;
}

/* Small screens: col-sm-5 / col-sm-7 (Payroll_Information, Statutory_Classification, Contact) */
/* Hover highlighting re-enabled for non-employee forms */
fieldset:not(.employee-form-no-hover) .form-group.row .col-sm-7:hover ~ .col-sm-5 .form-label,
fieldset:not(.employee-form-no-hover) .form-group.row:has(.col-sm-7 .form-control:hover) .col-sm-5 .form-label,
fieldset:not(.employee-form-no-hover) .form-group.row:has(.col-sm-7 .form-select:hover) .col-sm-5 .form-label,
fieldset:not(.employee-form-no-hover) .form-group.row:has(.col-sm-7 .form-control:focus) .col-sm-5 .form-label,
fieldset:not(.employee-form-no-hover) .form-group.row:has(.col-sm-7 .form-select:focus) .col-sm-5 .form-label {
    color: var(--primary-hover-color) !important;
    font-weight: 600 !important;
    transform: translateX(3px) !important;
    transition: var(--transition-smooth) !important;
}


/* Medium screens: col-md-5 / col-md-7 (Some Statutory sections) */
/* Hover highlighting re-enabled for non-employee forms */
fieldset:not(.employee-form-no-hover) .form-group.row .col-md-7:hover ~ .col-md-5 .form-label,
fieldset:not(.employee-form-no-hover) .form-group.row:has(.col-md-7 .form-control:hover) .col-md-5 .form-label,
fieldset:not(.employee-form-no-hover) .form-group.row:has(.col-md-7 .form-select:hover) .col-md-5 .form-label,
fieldset:not(.employee-form-no-hover) .form-group.row:has(.col-md-7 .form-control:focus) .col-md-5 .form-label,
fieldset:not(.employee-form-no-hover) .form-group.row:has(.col-md-7 .form-select:focus) .col-md-5 .form-label {
    color: var(--primary-hover-color) !important;
    font-weight: 600 !important;
    transform: translateX(3px) !important;
    transition: var(--transition-smooth) !important;
}

/* Alternative: div.row instead of .form-group.row - DISABLED */
/* div.row .col-lg-7:hover ~ .col-lg-5 .form-label,
div.row:has(.col-lg-7 .form-control:hover) .col-lg-5 .form-label,
div.row:has(.col-lg-7 .form-select:hover) .col-lg-5 .form-label,
div.row:has(.col-lg-7 .form-control:focus) .col-lg-5 .form-label,
div.row:has(.col-lg-7 .form-select:focus) .col-lg-5 .form-label,

div.row .col-sm-7:hover ~ .col-sm-5 .form-label,
div.row:has(.col-sm-7 .form-control:hover) .col-sm-5 .form-label,
div.row:has(.col-sm-7 .form-select:hover) .col-sm-5 .form-label,
div.row:has(.col-sm-7 .form-control:focus) .col-sm-5 .form-label,
div.row:has(.col-sm-7 .form-select:focus) .col-sm-5 .form-label,

div.row .col-md-7:hover ~ .col-md-5 .form-label,
div.row:has(.col-md-7 .form-control:hover) .col-md-5 .form-label,
div.row:has(.col-md-7 .form-select:hover) .col-md-5 .form-label,
div.row:has(.col-md-7 .form-control:focus) .col-md-5 .form-label,
div.row:has(.col-md-7 .form-select:focus) .col-md-5 .form-label, */

/* Special handling for input-group structures (search buttons, etc.) - DISABLED */
/* .form-group.row:has(.col-lg-7 .input-group .form-control:hover) .col-lg-5 .form-label,
.form-group.row:has(.col-lg-7 .input-group .form-control:focus) .col-lg-5 .form-label,
.form-group.row:has(.col-sm-7 .input-group .form-control:hover) .col-sm-5 .form-label,
.form-group.row:has(.col-sm-7 .input-group .form-control:focus) .col-sm-5 .form-label,
.form-group.row:has(.col-md-7 .input-group .form-control:hover) .col-md-5 .form-label,
.form-group.row:has(.col-md-7 .input-group .form-control:focus) .col-md-5 .form-label,

div.row:has(.col-lg-7 .input-group .form-control:hover) .col-lg-5 .form-label,
div.row:has(.col-lg-7 .input-group .form-control:focus) .col-lg-5 .form-label,
div.row:has(.col-sm-7 .input-group .form-control:hover) .col-sm-5 .form-label,
div.row:has(.col-sm-7 .input-group .form-control:focus) .col-sm-5 .form-label,
div.row:has(.col-md-7 .input-group .form-control:hover) .col-md-5 .form-label,
div.row:has(.col-md-7 .input-group .form-control:focus) .col-md-5 .form-label, */

/* SOLUTION 1: Enhanced CSS Specificity for Nested Row Structures */
/* Handle nested row structures like in Employer_Information where there's an outer .row containing .form-group.row */

/* Nested row support for large screens: col-lg-5 / col-lg-7 */
.row .form-group.row:has(.col-lg-7 .form-control:hover) .col-lg-5 .form-label,
.row .form-group.row:has(.col-lg-7 .form-select:hover) .col-lg-5 .form-label,
.row .form-group.row:has(.col-lg-7 .form-control:focus) .col-lg-5 .form-label,
.row .form-group.row:has(.col-lg-7 .form-select:focus) .col-lg-5 .form-label,

/* Nested row support for small screens: col-sm-5 / col-sm-7 */
.row .form-group.row:has(.col-sm-7 .form-control:hover) .col-sm-5 .form-label,
.row .form-group.row:has(.col-sm-7 .form-select:hover) .col-sm-5 .form-label,
.row .form-group.row:has(.col-sm-7 .form-control:focus) .col-sm-5 .form-label,
.row .form-group.row:has(.col-sm-7 .form-select:focus) .col-sm-5 .form-label,

/* Nested row support for medium screens: col-md-5 / col-md-7 */
.row .form-group.row:has(.col-md-7 .form-control:hover) .col-md-5 .form-label,
.row .form-group.row:has(.col-md-7 .form-select:hover) .col-md-5 .form-label,
.row .form-group.row:has(.col-md-7 .form-control:focus) .col-md-5 .form-label,
.row .form-group.row:has(.col-md-7 .form-select:focus) .col-md-5 .form-label,

/* Nested row support for input-group structures */
.row .form-group.row:has(.col-lg-7 .input-group .form-control:hover) .col-lg-5 .form-label,
.row .form-group.row:has(.col-lg-7 .input-group .form-control:focus) .col-lg-5 .form-label,
.row .form-group.row:has(.col-sm-7 .input-group .form-control:hover) .col-sm-5 .form-label,
.row .form-group.row:has(.col-sm-7 .input-group .form-control:focus) .col-sm-5 .form-label,
.row .form-group.row:has(.col-md-7 .input-group .form-control:hover) .col-md-5 .form-label,
.row .form-group.row:has(.col-md-7 .input-group .form-control:focus) .col-md-5 .form-label {
    color: var(--primary-hover-color) !important;
    font-weight: 600 !important;
    transform: translateX(3px) !important;
}

/* ===== EMPLOYEE FORM HOVER HIGHLIGHTING ===== */
/* Highlight ONLY the label in the same field row as the hovered control. */
/* Use direct-child combinators (>) to avoid matching outer wrapper rows. */
fieldset .row:has(> .col-lg-7 :is(.form-control:hover, .form-select:hover)) > .col-lg-5 .form-label,
fieldset .row:has(> .col-lg-7 :is(.form-control:focus, .form-select:focus)) > .col-lg-5 .form-label,

fieldset .row:has(> .col-sm-7 :is(.form-control:hover, .form-select:hover)) > .col-sm-5 .form-label,
fieldset .row:has(> .col-sm-7 :is(.form-control:focus, .form-select:focus)) > .col-sm-5 .form-label,

fieldset .row:has(> .col-md-7 :is(.form-control:hover, .form-select:hover)) > .col-md-5 .form-label,
fieldset .row:has(> .col-md-7 :is(.form-control:focus, .form-select:focus)) > .col-md-5 .form-label {
    color: var(--primary-hover-color) !important;
    font-weight: 600 !important;
    transform: translateX(3px) !important;
    transition: var(--transition-smooth) !important;
}

/* ===== EMPLOYEE FORM HOVER DISABLE ===== */
/* Disable hover highlighting ONLY for employee forms with specific class */
.employee-form-no-hover .form-group.row .form-label:hover,
.employee-form-no-hover .form-group .form-label:hover,
.employee-form-no-hover div.row .form-label:hover,
.employee-form-no-hover .form-label:hover {
    color: inherit !important;
    font-weight: inherit !important;
    transform: none !important;
    transition: none !important;
}

/* Disable hover effects on form groups ONLY for employee forms with specific class */
.employee-form-no-hover .form-group.row:hover .form-label,
.employee-form-no-hover .form-group:hover .form-label,
.employee-form-no-hover div.row:hover .form-label {
    color: inherit !important;
    font-weight: inherit !important;
    transform: none !important;
    transition: none !important;
}

/* ===== DROPDOWN STYLING OVERRIDES ===== */
/* Ensure dropdown-system.css styles take precedence */
.form-select,
select.form-select,
select.form-select-sm,
select[data-custom-dropdown],
.custom-dropdown-wrapper .form-select,
.modal .form-select,
.modal select.form-select,
.modal select.form-select-sm,
.modal select[data-custom-dropdown],
/* Dropdown placeholder and option text styling */
.form-select::placeholder,
select.form-select::placeholder,
select.form-select-sm::placeholder {
    font-size: 0.875rem !important;
    font-weight: 400 !important;
}

/* ===== INTEGRATED FORM FILE UPLOAD ===== */
/* Subtle file upload that blends with existing form design */
/* ===== PAYSLIP CONTROL TABLE CLEANUP ===== */
.payslip-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}
.payslip-table thead th {
    background-color: #355771 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    vertical-align: middle !important;
}
.payslip-table thead .action-tab { width: 44px !important; }
.payslip-table thead tr:first-child th:first-child { border-top-left-radius: 10px !important; }
.payslip-table thead tr:first-child th:last-child { border-top-right-radius: 10px !important; }
.payslip-table tbody td { vertical-align: middle !important; }
.payslip-table tbody tr:hover { background-color: rgba(39,154,241,0.04) !important; }
.payslip-table .status-badge {
    padding: 0.15rem 0.5rem !important;
    border-radius: 999px !important;
    font-size: 0.72rem !important;
}
.payslip-table .dt-button-exclude { margin-right: .25rem !important; }
.payslip-table .action-tab { width: 36px !important; }

/* Fill top-right header corner gap on Payslip: Current by rounding header cell and removing margin */
.payslip-table thead tr:first-child th:last-child {
    border-top-right-radius: 14px !important;
}

/* Visual pill for group header to smooth the right edge; add a decorative capsule on the right */
.payslip-table thead .th-group-current {
    position: relative;
    overflow: visible;
}
.payslip-table thead .th-group-current::after {
    content: "";
    position: absolute;
    right: -14px; top: -1px; bottom: 0;
    width: 14px;
    background: #355771;
    border-top-right-radius: 14px;
}

/* ===== RESPONSIVE NAVIGATION DESIGN ===== */

/* Responsive breadcrumb card adjustments */
@media (max-width: 767.98px) {
    .breadcrumb-card-pill {
        border-radius: 25px !important;
    }
    
    .breadcrumb-card-pill h4 {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 575.98px) {
    .breadcrumb-card-pill {
        border-radius: 20px !important;
    }
    
    .breadcrumb-card-pill h4 {
        font-size: 1rem !important;
        line-height: 1.2 !important;
    }
}

/* Responsive navigation button adjustments */
@media (max-width: 1199.98px) {
    .gs-nav-btn, .emp-nav-btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
        border-radius: 40px !important;
    }
    
    .emp-subnav-btn {
        padding: 0.3rem 0.7rem !important;
        font-size: 0.75rem !important;
        border-radius: 30px !important;
    }
}

@media (max-width: 991.98px) {
    .gs-nav-btn, .emp-nav-btn {
        padding: 0.35rem 0.7rem !important;
        font-size: 0.75rem !important;
        border-radius: 35px !important;
    }
    
    .emp-subnav-btn {
        padding: 0.25rem 0.6rem !important;
        font-size: 0.7rem !important;
        border-radius: 25px !important;
    }
}

@media (max-width: 767.98px) {
    .gs-nav-btn, .emp-nav-btn {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.7rem !important;
        border-radius: 30px !important;
        white-space: nowrap !important;
        min-height: 2.2rem !important;
    }
    
    .emp-subnav-btn {
        padding: 0.2rem 0.5rem !important;
        font-size: 0.65rem !important;
        border-radius: 20px !important;
        min-height: 1.8rem !important;
    }
    
    /* Hide dividers on mobile */
    .gs-divider {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    .gs-nav-btn, .emp-nav-btn {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.65rem !important;
        border-radius: 25px !important;
        min-height: 2rem !important;
    }
    
    .emp-subnav-btn {
        padding: 0.15rem 0.4rem !important;
        font-size: 0.6rem !important;
        border-radius: 15px !important;
        min-height: 1.6rem !important;
    }
}

/* Responsive action buttons */
@media (max-width: 767.98px) {
    .btn-sm {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.7rem !important;
        border-radius: 30px !important;
        min-height: 2rem !important;
    }
}

@media (max-width: 575.98px) {
    .btn-sm {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.65rem !important;
        border-radius: 25px !important;
        min-height: 1.8rem !important;
    }
}

/* Responsive employee sub-navigation card */
@media (max-width: 767.98px) {
    .employee-subnav-card {
        border-radius: 25px !important;
    }
}

@media (max-width: 575.98px) {
    .employee-subnav-card {
        border-radius: 20px !important;
    }
}

/* Inline Logo Preview in Label Column (like other form fields) */
.form-logo-preview-inline {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #e9ecef;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.12),
        0 4px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    margin-left: 1rem;
}

.form-logo-preview-inline:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.18),
        0 5px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-hover-color);
}

.logo-preview-inline {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.logo-placeholder-inline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: var(--dark-blue);
    z-index: 1;
}

.logo-placeholder-inline i {
    font-size: 2.5rem;
    opacity: 0.6;
}

.logo-preview-inline[src*="EmployerLogo"]:not([src=""]) + .logo-placeholder-inline {
    display: none;
}

/* Subtle File Input - Looks like Regular Input */
.subtle-file-input {
    position: relative;
    display: block;
    width: 100% !important;
}

.file-input-hidden {
    display: none;
}

/* REMOVED - Duplicate rules consolidated above */

/* ===== MODERN DROPDOWN DESIGN SYSTEM ===== */
/* Comprehensive solution for consistent, modern dropdowns */

/* REMOVED: Conflicting global select rule that was causing double arrows */
/* This rule was redundant and conflicted with our targeted approach below */

/* Removed duplicate form-select definition - using consolidated version above */

/* Removed duplicate hover and focus states - using consolidated versions above */

/* Removed duplicate form-select-sm definition - using consolidated version above */

/* Multiple select styling */
.form-select[multiple] {
    border-radius: 18px !important;
    min-height: 120px !important;
    padding: 0.75rem 1.25rem !important;
    background-image: none !important;
}

/* DataTables select styling - removed duplicate rules */

/* Custom option styling (modern browsers) */
select option {
    background-color: #ffffff !important;
    color: #374151 !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.875rem !important;
    font-family: var(--theme-font) !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

select option:hover {
    background-color: #279AF1 !important;
    color: #ffffff !important;
}

select option:checked,
select option:focus {
    background-color: var(--dark-blue) !important;
    color: white !important;
    font-weight: 500 !important;
}

/* Disabled state */
.form-select:disabled,
select:disabled {
    background: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: var(--dark-blue) !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    box-shadow: none !important;
}

/* ===== MISSING LAYOUT CLASSES ===== */
/* Blenny border styling */
.blenny-border {
    border: 2px solid var(--border-color-2) !important;
    border-radius: var(--border-radius-small) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: var(--shadow-soft) !important;
    transition: var(--transition-smooth) !important;
}

.blenny-border:hover {
    box-shadow: var(--shadow-hover) !important;
    transform: translateY(-2px) !important;
}

/* Page title inner styling */
.pr-title-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.pr-title-inner h4 {
    margin: 0;
    color: var(--header-color-text);
    font-family: var(--theme-heading-font);
    font-weight: 600;
    font-size: 1.5rem;
}

.pr-title-inner h4::first-letter {
    color: var(--blenny-blue);
}

/* Right common inner styling */
.right-commen-inner {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-small);
    border: 1px solid var(--border-color-2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.employee-profile-inner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
}

/* ===== MOBILE NAVIGATION STYLING ===== */
/* Mobile nav link styling */
.mobile-nav-link {
    color: var(--dark-blue) !important;
    font-weight: 500;
    transition: var(--transition-smooth);
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover {
    background-color: rgba(51, 153, 255, 0.1) !important;
    color: var(--blenny-blue) !important;
    border-left-color: var(--blenny-blue);
    transform: translateX(4px);
}

.mobile-nav-link.active {
    background-color: rgba(51, 153, 255, 0.15) !important;
    color: var(--blenny-blue) !important;
    border-left-color: var(--blenny-blue);
    font-weight: 600;
}

/* Mobile offcanvas styling */
.offcanvas {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)) !important;
    backdrop-filter: blur(12px) !important;
}

.offcanvas-header {
    background: var(--sidebar-color) !important;
    border-bottom: 1px solid var(--border-color-2) !important;
}

/* Mobile toggle button styling */
.btn-primary {
    background: var(--blenny-blue) !important;
    border-color: var(--blenny-blue) !important;
    box-shadow: none !important;
    transition: var(--transition-smooth) !important;
}

.btn-primary:hover {
    background: var(--primary-hover-color) !important;
    border-color: var(--primary-hover-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: none !important;
}

/* Fix for conflicting Bootstrap styles */
/* Form select background styling moved to dropdown-system.css */

/* ===== TARGETED CUSTOM DROPDOWN SYSTEM ===== */
/* Only apply custom dropdown system to specific problematic dropdowns */

/* Only exclude elements explicitly marked to skip */
select[data-custom-dropdown-skip] {
    display: block !important;
}

/* Selects with data-custom-dropdown attribute are handled by the custom dropdown system */

/* Ensure original form-select-sm styling is preserved for all non-custom dropdowns */
/* Form select styling moved to dropdown-system.css */

/* Show custom dropdown wrappers when they exist */
.custom-dropdown-wrapper {
    display: inline-block !important;
    width: 100% !important;
}

/* Hide original select only when custom dropdown wrapper exists */
.custom-dropdown-wrapper select {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Force custom dropdown styling for custom dropdown elements only */
/* Custom dropdown wrapper styling moved to dropdown-system.css */

/* ===== CUSTOM DROPDOWN REPLACEMENT ===== */
/* Modern dropdown that replaces native options list */

/* Hide native select when custom dropdown is active */
.custom-dropdown-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff !important;
    border: 2px solid #e9ecef !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    z-index: 1000;
    max-height: 280px;
    overflow-y: auto;
    margin-top: 6px;
    opacity: 0;
    visibility: hidden;
    padding: 0 !important;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.custom-dropdown-list.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Smooth entry animation for individual options */
.custom-dropdown-list.show .custom-dropdown-option {
    animation: fadeInUp 0.3s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-4px);
    }
}

/* Custom dropdown options */
.custom-dropdown-option {
    padding: 0.85rem 1.4rem;
    color: #374151;
    cursor: pointer;
    font-family: var(--theme-font);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.4;
    border-bottom: 1px solid rgba(233, 236, 239, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0;
    transform: translateY(4px);
}

.custom-dropdown-option:first-child {
    border-radius: 18px 18px 0 0;
    color: #9ca3af !important; /* Light grey for placeholder */
}

.custom-dropdown-option:last-child {
    border-radius: 0 0 18px 18px;
    border-bottom: none;
}

.custom-dropdown-option:only-child {
    border-radius: 18px;
    border-bottom: none;
}

.custom-dropdown-option:hover {
    background: #279AF1;
    color: #ffffff;
}

.custom-dropdown-option.selected {
    background: transparent;
    color: var(--primary-hover-color);
    font-weight: 500;
}

.custom-dropdown-option.selected:hover {
    background: transparent;
    color: var(--primary-hover-color);
}

/* Header option styling (like "Select Province") */
.custom-dropdown-option.header {
    background: var(--dark-blue);
    color: white;
    font-weight: 600;
    padding: 1rem 1.4rem;
    font-size: 0.9rem;
    cursor: default;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filter dropdown specific styling for employers */
#filterDropdown + .dropdown-menu .form-select option:hover {
    background-color: #279AF1 !important;
    color: #ffffff !important;
}

#filterDropdown + .dropdown-menu .form-select option:checked,
#filterDropdown + .dropdown-menu .form-select option:focus {
    background-color: transparent !important;
    color: var(--primary-hover-color) !important;
    font-weight: 500 !important;
}

/* Global rule: All dropdown selected options - only celestial blue text */
select option:checked,
.form-select option:checked,
select option[selected],
.form-select option[selected] {
    background-color: transparent !important;
    color: var(--primary-hover-color) !important;
    font-weight: 500 !important;
}

/* ===== EMPLOYER SCREENS RESPONSIVE DESIGN ===== */

/* Employer Cards - Responsive */
.employer-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* Default card styling - allow custom widths and margins */
.card {
    width: 100%;
    max-width: 100%;
}

/* Global Settings - allow custom card sizing */
body:has([href*="GlobalSetting"]) .card {
    width: auto;
    max-width: none;
    margin: auto;
}

/* Leave Settings Page - Force Standard Spacing with Maximum Specificity */
html body .container-fluid .tab-content #nav-employersettings .form-group.row .col-lg-5,
html body .container-fluid .tab-content #nav-employersettings .form-group.row .col-lg-7,
html body .LS_EmployerSettings .form-group.row .col-lg-5,
html body .LS_EmployerSettings .form-group.row .col-lg-7 {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
}

html body .container-fluid .tab-content #nav-employersettings .form-group.row .col-lg-5,
html body .LS_EmployerSettings .form-group.row .col-lg-5 {
    flex: 0 0 41.66666667% !important;
    width: 41.66666667% !important;
    max-width: 41.66666667% !important;
}

html body .container-fluid .tab-content #nav-employersettings .form-group.row .col-lg-7,
html body .LS_EmployerSettings .form-group.row .col-lg-7 {
    flex: 0 0 58.33333333% !important;
    width: 58.33333333% !important;
    max-width: 58.33333333% !important;
}

/* Override any conflicting flex rules */
html body .container-fluid .tab-content #nav-employersettings .form-group.row,
html body .LS_EmployerSettings .form-group.row {
    display: flex !important;
    flex-wrap: nowrap !important;
    margin-right: -15px !important;
    margin-left: -15px !important;
}

html body .container-fluid .tab-content #nav-employersettings .form-group.row > *,
html body .LS_EmployerSettings .form-group.row > * {
    padding-right: 15px !important;
    padding-left: 15px !important;
}

/* Override any flex: 1 rules that might be affecting the columns */
html body .container-fluid .tab-content #nav-employersettings .form-group.row .col-lg-5,
html body .container-fluid .tab-content #nav-employersettings .form-group.row .col-lg-7,
html body .LS_EmployerSettings .form-group.row .col-lg-5,
html body .LS_EmployerSettings .form-group.row .col-lg-7 {
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    flex-basis: auto !important;
}

/* Force the exact Bootstrap grid behavior */
html body .container-fluid .tab-content #nav-employersettings .form-group.row .col-lg-5 {
    flex: 0 0 41.66666667% !important;
}

html body .container-fluid .tab-content #nav-employersettings .form-group.row .col-lg-7 {
    flex: 0 0 58.33333333% !important;
}

html body .LS_EmployerSettings .form-group.row .col-lg-5 {
    flex: 0 0 41.66666667% !important;
}

html body .LS_EmployerSettings .form-group.row .col-lg-7 {
    flex: 0 0 58.33333333% !important;
}

/* Employer Navigation Tabs - Responsive */
.employer-nav-tabs,
.nav-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 0 !important;
}

.employer-nav-tabs .nav-link,
.nav-pills .nav-link {
    min-width: 120px !important;
    flex-shrink: 0 !important;
    text-align: center !important;
    font-size: 0.875rem !important;
    padding: 0.5rem 1rem !important;
    min-height: 40px !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Employer Form Buttons - Responsive */
.employer-form-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    justify-content: center !important;
}

.employer-form-buttons .btn {
    min-width: 100px !important;
    flex-shrink: 0 !important;
}

/* Responsive Breakpoints for Employer Screens */
@media (max-width: 1600px) {
    .employer-nav-tabs .nav-link,
    .nav-pills .nav-link {
        min-width: 100px !important;
        font-size: 0.875rem !important;
        padding: 0.4rem 0.8rem !important;
        min-height: 40px !important;
    }
    
    .employer-form-buttons .btn {
        min-width: 90px !important;
        font-size: 0.85rem !important;
    }
}

@media (max-width: 1200px) {
    .employer-nav-tabs .nav-link,
    .nav-pills .nav-link {
        min-width: 90px !important;
        font-size: 0.875rem !important;
        padding: 0.35rem 0.7rem !important;
        min-height: 40px !important;
    }
    
    .employer-form-buttons .btn {
        min-width: 80px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 992px) {
    .employer-nav-tabs,
    .nav-pills {
        justify-content: flex-start !important;
    }
    
    .employer-nav-tabs .nav-link,
    .nav-pills .nav-link {
        min-width: 80px !important;
        font-size: 0.75rem !important;
        padding: 0.3rem 0.6rem !important;
        min-height: 40px !important;
    }
    
    .employer-form-buttons {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .employer-form-buttons .btn {
        width: 100% !important;
        max-width: 200px !important;
    }
}

@media (max-width: 768px) {
    .employer-nav-tabs .nav-link,
    .nav-pills .nav-link {
        min-width: 70px !important;
        font-size: 0.75rem !important;
        padding: 0.25rem 0.5rem !important;
        min-height: 36px !important;
    }
    
    .employer-form-buttons .btn {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
    }
}

@media (max-width: 576px) {
    .employer-nav-tabs .nav-link,
    .nav-pills .nav-link {
        min-width: 60px !important;
        font-size: 0.75rem !important;
        padding: 0.2rem 0.4rem !important;
        min-height: 36px !important;
    }
    
    .employer-form-buttons .btn {
        font-size: 0.7rem !important;
        padding: 0.35rem 0.7rem !important;
    }
}

.custom-dropdown-option.header:hover {
    background: var(--dark-blue);
    color: white;
    transform: none;
}

/* Remove scrollbar completely from all custom dropdowns */
.custom-dropdown-list {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE and Edge */
}

.custom-dropdown-list::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera */
}

/* Removed scrollbar indicator - no longer needed */

/* Small dropdown variant */
.custom-dropdown-wrapper.small .custom-dropdown-list {
    border-radius: 16px;
    margin-top: 2px;
    padding: 0 !important;
}

/* Small dropdown also has no scrollbar */
.custom-dropdown-wrapper.small .custom-dropdown-list {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE and Edge */
}

.custom-dropdown-wrapper.small .custom-dropdown-list::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera */
}

.custom-dropdown-wrapper.small .custom-dropdown-option {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.custom-dropdown-wrapper.small .custom-dropdown-option:first-child {
    border-radius: 14px 14px 0 0;
}

.custom-dropdown-wrapper.small .custom-dropdown-option:last-child {
    border-radius: 0 0 14px 14px;
}

.custom-dropdown-wrapper.small .custom-dropdown-option:only-child {
    border-radius: 14px;
}

/* ===== MODERN TOOLTIP/POPOVER DESIGN ===== */
/* Custom styling for Bootstrap popovers to match modern design */

.popover {
    border: none !important;
    border-radius: var(--border-radius-small) !important;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.08) !important;
    max-width: 350px !important;
    font-family: var(--theme-font) !important;
    overflow: hidden !important;
}

.popover-header {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 1rem 1.25rem !important;
    margin: 0 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    font-family: var(--theme-heading-font) !important;
    border-radius: 0 !important;
}

.popover-body {
    background: #ffffff !important;
    color: #444444 !important;
    padding: 1.25rem !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    border-radius: 0 0 var(--border-radius-small) var(--border-radius-small) !important;
}

.popover-body p {
    margin-bottom: 0.75rem !important;
    color: #555555 !important;
}

.popover-body p:last-child {
    margin-bottom: 0 !important;
}

.popover-body br {
    margin-bottom: 0.5rem !important;
}

/* Popover Arrow Styling */
.popover .popover-arrow {
    display: none !important;
}

.popover[data-popper-placement^="top"] > .popover-arrow::before {
    border-top-color: var(--primary-color) !important;
}

.popover[data-popper-placement^="right"] > .popover-arrow::before {
    border-right-color: var(--primary-color) !important;
}

.popover[data-popper-placement^="bottom"] > .popover-arrow::before {
    border-bottom-color: var(--primary-color) !important;
}

.popover[data-popper-placement^="left"] > .popover-arrow::before {
    border-left-color: var(--primary-color) !important;
}

/* Tooltip styling */
.tooltip {
    font-family: var(--theme-font) !important;
}

.tooltip-inner {
    background: var(--primary-color) !important;
    color: white !important;
    border-radius: var(--border-radius-small) !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.15),
        0 3px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Enhanced Info Button Styling */
.popover-button, .popover-link {
    color: var(--primary-color) !important;
    opacity: 0.7 !important;
    transition: var(--transition-smooth) !important;
    font-size: 1rem !important;
    margin-left: 0.5rem !important;
    text-decoration: none !important;
}

.popover-button:hover, .popover-link:hover {
    color: var(--primary-hover-color) !important;
    opacity: 1 !important;
    transform: scale(1.15) !important;
    text-decoration: none !important;
}

/* ===== REUSABLE SEARCH BUTTON STYLING ===== */
/* Modern Search Button Styling - Dark Grey Fill */
.btn[onclick*="searchModal"], 
.btn[data-bs-toggle="modal"],
button[type="button"][onclick*="search"] {
    background: var(--primary-color) !important;
    border: none !important;
    border-radius: var(--border-radius-small) !important;
    padding: 0.65rem 1rem !important;
    min-height: 40px !important;
    width: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: var(--transition-smooth) !important;
    color: #ffffff !important;
    margin-left: 0.5rem !important;
    box-shadow: none !important;
}

.btn[onclick*="searchModal"]:hover, 
.btn[data-bs-toggle="modal"]:hover,
button[type="button"][onclick*="search"]:hover {
    background: var(--primary-hover-color) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: none !important;
}

/* Search Icon Styling */
.btn[onclick*="searchModal"] i, 
.btn[data-bs-toggle="modal"] i,
button[type="button"][onclick*="search"] i {
    font-size: 0.875rem !important;
    transition: transform 0.2s ease !important;
}

.btn[onclick*="searchModal"]:hover i, 
.btn[data-bs-toggle="modal"]:hover i,
button[type="button"][onclick*="search"]:hover i {
    transform: scale(1.1) !important;
}

/* Input Group Styling for Form Fields with Search Buttons */
.input-group {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
}

.input-group .form-control {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    flex: 1 !important;
}

.input-group .btn {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    margin-left: 0 !important;
}

.input-group .form-control:focus + .btn {
    background: var(--primary-hover-color) !important;
    box-shadow: 0 4px 12px rgba(39, 154, 241, 0.3) !important;
}

/* Info Popover Button Styling */
.popover-link {
    color: var(--primary-color) !important;
    opacity: 0.7 !important;
    transition: all 0.2s ease !important;
    font-size: 1rem !important;
    margin-left: 0.5rem !important;
}

.popover-link:hover {
    color: var(--primary-hover-color) !important;
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

/* Modern Form Buttons Container */
.form-buttons-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Ultra-Modern Form Buttons Widget */
.modern-form-buttons {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}

.modern-form-buttons:hover {
    transform: none;
    box-shadow: none;
}

/* Modern Button Styling */
.btn-modern {
    border-radius: 50px !important;
    padding: 0.75rem 1rem !important;
    font-weight: 400 !important;
    font-size: 0.875rem !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 2px solid var(--dark-blue) !important;
    background: var(--dark-blue) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    box-shadow: none !important;
    min-height: 40px !important;
}

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

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

.btn-modern:hover {
    background: var(--primary-hover-color) !important;
    border-color: var(--primary-hover-color) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: none !important;
}

.btn-modern:active {
    transform: translateY(0) !important;
}

/* Button Icon Styling */
.btn-modern i {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.btn-modern:hover i {
    transform: scale(1.1);
}

/* Specific button color overrides */
.btn-modern.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-modern.btn-primary:hover {
    background-color: var(--primary-hover-color) !important;
    border-color: var(--primary-hover-color) !important;
}

.btn-modern.btn-outline-primary {
    background: var(--dark-blue) !important;
    color: #ffffff !important;
    border-color: var(--dark-blue) !important;
}

.btn-modern.btn-outline-primary:hover {
    background-color: var(--primary-hover-color) !important;
    border-color: var(--primary-hover-color) !important;
    color: #ffffff !important;
}

/* ===== GLOBAL SETTINGS NAVIGATION DESIGN ===== */
/* Compact inline navigation for Global Settings */

/* Pill-shaped breadcrumb card */
.breadcrumb-card-pill {
    border-radius: 50px !important;
}

/* ===== FLOATING SALARY SUMMARY CARD ===== */
.salary-summary-float {
    position: fixed;
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Offset by half its height */
    right: -380px; /* Hide content off-screen by default, only tag visible */
    width: 380px;
    max-height: 80vh;
    transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1040;
}

/* When content is visible, slide the widget into view */
.salary-summary-float.content-visible {
    right: 0;
}

.summary-toggle-btn {
    position: absolute;
    left: -60px;
    top: 50%; /* Center vertically relative to parent */
    transform: translateY(-50%);
    width: 60px;
    height: 120px;
    background: linear-gradient(135deg, #279AF1 0%, #1a7bc4 100%);
    border: none;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.summary-toggle-btn:hover {
    background: linear-gradient(135deg, #1a7bc4 0%, #279AF1 100%);
    transform: translateY(-50%) translateX(-3px);
    box-shadow: -6px 6px 16px rgba(0, 0, 0, 0.2);
}

.summary-toggle-btn i {
    font-size: 1.2rem;
}

.summary-toggle-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    letter-spacing: 1px;
}

.summary-content {
    background: white;
    border-radius: 25px;
    max-height: calc(80vh - 40px);
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.summary-content .card {
    margin: 0 !important;
    border: none !important;
}

/* Close button styling */
.summary-close-btn-container {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 20 !important;
    pointer-events: auto !important;
}

/* Custom scrollbar for summary */
.summary-content::-webkit-scrollbar {
    width: 8px;
}

.summary-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 25px;
}

.summary-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #279AF1 0%, #1a7bc4 100%);
    border-radius: 25px;
}

.summary-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1a7bc4 0%, #279AF1 100%);
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .salary-summary-float {
        width: 340px;
        right: -340px;
    }
    
    .salary-summary-float.content-visible {
        right: 0;
    }
}

@media (max-width: 991px) {
    .salary-summary-float {
        width: 320px;
        right: -320px;
        max-height: 70vh;
    }
    
    .salary-summary-float.content-visible {
        right: 0;
    }
    
    .summary-toggle-btn {
        width: 50px;
        height: 100px;
        left: -50px;
        font-size: 0.75rem;
    }
}

@media (max-width: 767px) {
    .salary-summary-float {
        width: 100%;
        right: -100%;
        bottom: 0;
        top: auto;
        transform: none;
        max-height: 60vh;
    }
    
    .salary-summary-float.content-visible {
        right: 0;
    }
    
    .summary-toggle-btn {
        left: 20px;
        top: auto;
        bottom: 100%;
        transform: none;
        width: 120px;
        height: 50px;
        border-radius: 25px 25px 0 0;
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .summary-toggle-btn:hover {
        transform: translateY(-3px);
    }
    
    .summary-toggle-text {
        writing-mode: horizontal-tb;
        transform: rotate(0deg);
    }
    
    .summary-content {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
}

/* Sub-navigation pill card for employee forms */
.employee-subnav-card {
    border-radius: 50px !important;
    box-shadow: none !important;
    width: 80% !important;
    max-width: 80% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Responsive adjustments for employee sub-nav */
@media (max-width: 991px) {
    .employee-subnav-card {
        width: 90% !important;
        max-width: 90% !important;
    }
}

@media (max-width: 767px) {
    .employee-subnav-card {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 30px !important;
    }
}

/* Main navigation buttons (compact inline style matching Global Settings) */
.emp-nav-btn {
    background: transparent !important;
    border: 2px solid #e9ecef !important;
    border-radius: 50px !important;
    padding: 0.5rem 1rem !important;
    min-height: 40px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #495057 !important;
    margin-bottom: 0 !important;
    margin-right: 0.5rem !important;
    text-decoration: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1 !important;
}

.emp-nav-btn i {
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.emp-nav-btn:hover,
.emp-nav-btn:focus {
    background: #f8f9fa !important;
    border-color: var(--primary-hover-color) !important;
    color: var(--primary-hover-color) !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.emp-nav-btn:hover i,
.emp-nav-btn:focus i {
    opacity: 1;
}


/* Employee navigation buttons - active states with higher specificity */
button.nav-link.emp-nav-btn.active,
.nav-link.emp-nav-btn.active,
.emp-nav-btn.active,
button.emp-nav-btn.active,
.nav-tabs button.nav-link.emp-nav-btn.active,
.nav-tabs .nav-link.emp-nav-btn.active,
.nav-tabs .emp-nav-btn.active,
.nav-tabs button.emp-nav-btn.active {
    background: linear-gradient(135deg, #279AF1 0%, #1a7bc4 100%) !important;
    border-color: #1a7bc4 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #1a7bc4 !important;
    box-shadow: 0 4px 12px rgba(26, 123, 196, .25) !important;
}

button.nav-link.emp-nav-btn.active i,
.nav-link.emp-nav-btn.active i,
.emp-nav-btn.active i,
button.emp-nav-btn.active i {
    opacity: 1 !important;
    color: #ffffff !important;
}

/* Sub-navigation buttons (smaller, more compact) */
.emp-subnav-btn {
    background: transparent !important;
    border: 2px solid #e9ecef !important;
    border-radius: 50px !important;
    padding: 0.5rem 1rem !important;
    min-height: 40px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #495057 !important;
    margin-bottom: 0 !important;
    margin-right: 0.5rem !important;
    text-decoration: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}

.emp-subnav-btn:hover,
.emp-subnav-btn:focus {
    background: #f8f9fa !important;
    border-color: var(--primary-hover-color) !important;
    color: var(--primary-hover-color) !important;
    text-decoration: none !important;
}

button.nav-link.emp-subnav-btn.active,
.nav-link.emp-subnav-btn.active,
.emp-subnav-btn.active,
button.emp-subnav-btn.active,
.nav-tabs button.nav-link.emp-subnav-btn.active,
.nav-tabs .nav-link.emp-subnav-btn.active,
.nav-tabs .emp-subnav-btn.active,
.nav-tabs button.emp-subnav-btn.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-bottom: 2px solid var(--primary-color) !important;
    box-shadow: none !important;
}

/* Override any conflicting nav-tabs styles for emp-nav-btn */
.nav-tabs .emp-nav-btn.active,
.nav-tabs button.emp-nav-btn.active,
button.nav-tabs .emp-nav-btn.active {
    background: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color) !important;
    color: #ffffff !important;
}

.nav-tabs .emp-subnav-btn.active,
.nav-tabs button.emp-subnav-btn.active,
button.nav-tabs .emp-subnav-btn.active {
    background: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color) !important;
    color: #ffffff !important;
}

/* Remove default Bootstrap tab borders */
#nav-tab.emp-nav-tabs,
#nav-tab-pihome.emp-subnav-tabs,
#nav-tab-employmenthome.emp-subnav-tabs {
    border-bottom: none !important;
}

/* Responsive adjustments for navigation buttons */
@media (max-width: 767px) {
    .emp-nav-btn {
        padding: 0.4rem 1rem !important;
        font-size: 0.85rem !important;
        margin-right: 0.25rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .emp-subnav-btn {
        padding: 0.35rem 0.85rem !important;
        font-size: 0.8rem !important;
        margin-right: 0.25rem !important;
        margin-bottom: 0.5rem !important;
    }
}

.gs-nav-btn {
    background: transparent !important;
    border: 2px solid #e9ecef !important;
    border-radius: 50px !important;
    padding: 0.5rem 1rem !important;
    min-height: 40px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: var(--dark-blue) !important;
    /* Optimized transition - only animate specific properties */
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    /* Override Bootstrap nav-link defaults */
    margin-bottom: 0 !important;
    text-decoration: none !important;
    /* Ensure clickability */
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1 !important;
    /* Performance optimization */
    will-change: background-color, border-color, color;
}

.gs-nav-btn i {
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.gs-nav-btn:hover,
.gs-nav-btn:focus {
    background: #f8f9fa !important;
    border-color: var(--primary-hover-color) !important;
    color: var(--primary-hover-color) !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.gs-nav-btn:hover i,
.gs-nav-btn:focus i {
    opacity: 1;
}

.nav-link.gs-nav-btn.active,
.gs-nav-btn.active,
button.nav-link.gs-nav-btn.active,
button.gs-nav-btn.active,
.nav-tabs button.nav-link.gs-nav-btn.active,
.nav-tabs .nav-link.gs-nav-btn.active,
.nav-tabs .gs-nav-btn.active,
.nav-tabs button.gs-nav-btn.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-bottom: 2px solid var(--primary-color) !important;
    box-shadow: none !important;
}

.nav-link.gs-nav-btn.active i,
.gs-nav-btn.active i {
    opacity: 1 !important;
    color: #ffffff !important;
}

/* Divider between sections */
.gs-divider {
    width: 2px;
    height: 32px;
    background: linear-gradient(to bottom, transparent, #d1d5db 20%, #d1d5db 80%, transparent);
    margin: 0 0.5rem;
    flex-shrink: 0;
}

/* Highlighted Salary Schedules Button */
.gs-nav-btn-highlight {
    background: var(--primary-hover-color) !important;
    border-color: var(--primary-hover-color) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
/*    padding: 0.5rem 1.5rem !important;*/
    box-shadow: 0 2px 8px rgba(39, 154, 241, 0.3) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

.gs-nav-btn-highlight i {
    opacity: 1 !important;
}

.gs-nav-btn-highlight:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(39, 154, 241, 0.4) !important;
}

.nav-link.gs-nav-btn-highlight.active,
.gs-nav-btn-highlight.active {
    background: var(--dark-blue) !important;
    border-color: var(--dark-blue) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(53, 87, 113, 0.4) !important;
}

/* ===== OPTIMIZED MODERN NAVIGATION TABS ===== */
/* This CSS is designed to be reusable across all pages */

.nav-tabs {
    border-bottom: 2px solid #e9ecef !important;
    margin-bottom: 0.75rem !important; /* Further reduced margin for even smaller card height */
    background: transparent !important;
    position: relative !important;
    overflow: visible !important;
    z-index: 1 !important; /* Create stacking context for nav tabs */
}

.nav-tabs .nav-link {
    /* Reset all Bootstrap defaults */
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    
    /* Typography - Smaller and minimalistic */
    color: var(--primary-color) !important;
    font-weight: 400 !important;
    font-size: 0.8rem !important;
    
    /* Layout - Ultra compact padding for minimal card height */
    padding: 0.5rem 0.75rem !important;
    margin-bottom: 0 !important;
    position: relative !important;
    
    /* Smooth transitions */
    transition: color 0.15s ease, font-weight 0.15s ease !important;
    
    /* Remove any outline or box-shadow */
    outline: none !important;
    box-shadow: none !important;
}

/* Active state - only celestial blue text, no border (exclude custom button classes) */
.nav-tabs .nav-link.active:not(.emp-nav-btn):not(.emp-subnav-btn):not(.gs-nav-btn),
.nav-tabs .nav-link[aria-selected="true"]:not(.emp-nav-btn):not(.emp-subnav-btn):not(.gs-nav-btn),
.nav-tabs button.nav-link.active:not(.emp-nav-btn):not(.emp-subnav-btn):not(.gs-nav-btn),
.nav-tabs button.nav-link[aria-selected="true"]:not(.emp-nav-btn):not(.emp-subnav-btn):not(.gs-nav-btn) {
    color: var(--primary-hover-color) !important;
    font-weight: 600 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    margin-bottom: 0 !important;
    z-index: 100 !important; /* Much higher z-index to ensure it's on top */
    position: relative !important; /* Ensure positioning context */
}

/* Hover state - only for non-active tabs */
.nav-tabs .nav-link:not(.active):hover {
    color: var(--primary-hover-color) !important;
    background: transparent !important;
    margin-bottom: -2px !important;
    z-index: 50 !important; /* Higher z-index for hover */
    position: relative !important; /* Ensure positioning context */
}

/* Focus state for accessibility */
.nav-tabs .nav-link:focus {
    color: var(--primary-hover-color) !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove any conflicting Bootstrap animations (exclude custom button classes) */
.nav-tabs .nav-link.active:not(.emp-nav-btn):not(.emp-subnav-btn):not(.gs-nav-btn),
.nav-tabs .nav-link:hover:not(.emp-nav-btn):not(.emp-subnav-btn):not(.gs-nav-btn),
.nav-tabs .nav-link:focus:not(.emp-nav-btn):not(.emp-subnav-btn):not(.gs-nav-btn) {
    animation: none !important;
    transform: none !important;
}

/* Disable any fade animations on tab content */
.tab-content .tab-pane {
    animation: none !important;
    transition: none !important;
}

.tab-content .tab-pane.fade {
    opacity: 1 !important;
}

.tab-content .tab-pane.fade.show {
    opacity: 1 !important;
}

/* Form Fieldsets */
fieldset {
    border: none !important;
    padding: 0;
    margin: 0 0 2rem 0;
}

fieldset .card {
    border: none;
    box-shadow: var(--shadow-soft);
    border-radius: var(--border-radius) !important;
}

/* Form Section Headers */
fieldset h5 {
    color: var(--black-color) !important;
    font-family: var(--theme-heading-font);
    font-weight: 500 !important;
    margin-bottom: 1rem;
}

fieldset h5::first-letter {
    color: var(--blenny-blue);
}

/* Modern Modal Design */
.modal-content {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    border: none;
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* ===== ULTRA-SPECIFIC FILE INPUT OVERRIDE ===== */
/* Maximum specificity to override ALL existing styles */
html body .container .row .col-lg-7 .subtle-file-input .file-input-display,
html body .container-fluid .row .col-lg-7 .subtle-file-input .file-input-display,
html body .form-group .col-lg-7 .subtle-file-input .file-input-display,
html body .subtle-file-input .file-input-display,
html body div.file-input-display,
html body .file-input-display,
body .file-input-display,
.file-input-display {
    border-radius: 25px !important;
    -webkit-border-radius: 25px !important;
    -moz-border-radius: 25px !important;
    border-top-left-radius: 25px !important;
    border-top-right-radius: 25px !important;
    border-bottom-left-radius: 25px !important;
    border-bottom-right-radius: 25px !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0.75rem 1.25rem !important;
}

/* Nuclear option - Override with attribute selectors and maximum specificity */
div[class*="file-input-display"],
div[class*="file-input-display"][style*="border-radius"],
div[class*="file-input-display"]:not([style*="border-radius: 0"]),
div[class*="file-input-display"]:not([style*="border-radius:0"]),
div[class*="file-input-display"]:not([style*="border-radius:none"]),
div[class*="file-input-display"]:not([style*="border-radius: none"]) {
    border-radius: 25px !important;
    -webkit-border-radius: 25px !important;
    -moz-border-radius: 25px !important;
    border-top-left-radius: 25px !important;
    border-top-right-radius: 25px !important;
    border-bottom-left-radius: 25px !important;
    border-bottom-right-radius: 25px !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0.75rem 1.25rem !important;
}

/* Force override any inline styles */
div.file-input-display[style] {
    border-radius: 25px !important;
    -webkit-border-radius: 25px !important;
    -moz-border-radius: 25px !important;
    border-top-left-radius: 25px !important;
    border-top-right-radius: 25px !important;
    border-bottom-left-radius: 25px !important;
    border-bottom-right-radius: 25px !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0.75rem 1.25rem !important;
}

/* ===== FIX PARENT ELEMENT CLIPPING ISSUES ===== */
/* Ensure parent containers don't clip the rounded corners */
.subtle-file-input,
.col-lg-7,
.form-group,
.row,
.container,
.container-fluid {
    overflow: visible !important;
}

/* Ensure the file input display has proper box model */
.file-input-display,
div.file-input-display {
    box-sizing: border-box !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Debugging border removed - file input is now properly rounded! */

/* ===== ULTRA-SPECIFIC TOGGLE BUTTON HOVER OVERRIDE ===== */
/* Force blue hover state for all toggle buttons */
html body .form-check-input:hover,
html body input[type="radio"]:hover,
html body input[type="checkbox"]:hover,
body .form-check-input:hover,
body input[type="radio"]:hover,
body input[type="checkbox"]:hover,
.form-check-input:hover,
input[type="radio"]:hover,
input[type="checkbox"]:hover {
    border-color: var(--primary-hover-color) !important;
    box-shadow: 0 2px 8px rgba(39, 154, 241, 0.15) !important;
    transform: translateY(-1px) !important;
}

/* Force blue hover state for labels - Simple */
html body .form-check:hover .form-check-label,
html body .form-check:hover .form-label,
body .form-check:hover .form-check-label,
body .form-check:hover .form-label,
.form-check:hover .form-check-label,
.form-check:hover .form-label {
    color: var(--primary-hover-color) !important;
}

/* ===== ULTRA-SPECIFIC TOGGLE ALIGNMENT FIXES ===== */
/* Ensure perfect alignment for all toggle buttons - Override ALL conflicting styles */
html body .form-check,
body .form-check,
.form-check {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    min-height: 24px !important;
    margin-bottom: 1rem !important;
}

/* Force centering - Override Bootstrap and style.css defaults */
html body .form-check-input,
body .form-check-input,
.form-check-input,
html body input[type="checkbox"],
body input[type="checkbox"],
input[type="checkbox"],
html body input[type="radio"],
body input[type="radio"],
input[type="radio"] {
    margin-top: -2px !important;
    margin-right: 0.5rem !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    flex-shrink: 0 !important;
    align-self: center !important;
    position: relative !important;
    top: 0 !important;
    vertical-align: middle !important;
    transform: none !important;
}

/* Ultra-specific: Additional spacing when checkbox is inside label */
html body .form-check-label .form-check-input,
html body label .form-check-input,
body .form-check-label .form-check-input,
body label .form-check-input,
.form-check-label .form-check-input,
label .form-check-input,
html body .form-check-label input[type="checkbox"],
html body .form-check-label input[type="radio"],
html body label input[type="checkbox"],
html body label input[type="radio"],
body .form-check-label input[type="checkbox"],
body .form-check-label input[type="radio"],
body label input[type="checkbox"],
body label input[type="radio"],
.form-check-label input[type="checkbox"],
.form-check-label input[type="radio"],
label input[type="checkbox"],
label input[type="radio"] {
    margin-right: 0.5rem !important;
}

/* ===== NAV CARD ACTION BUTTONS RESPONSIVE BEHAVIOR ===== */
/* Hide action buttons (Cancel, Save, Prev, Next) on smaller screens when they don't fit */
@media (max-width: 1100px) {
    .nav-card-action-buttons {
        display: none !important;
    }
}

/* ===== GLOBAL CUSTOM SCROLLBAR STYLING ===== */
/* Applies to all scrollable elements project-wide */

/* WebKit browsers (Chrome, Safari, Edge) */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px;
    transition: background 0.2s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background: #4a90e2;
}

*::-webkit-scrollbar-thumb:active {
    background: #1a7bc4;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 #f8f9fa;
}

/* Optional: Specific styling for certain elements if needed */
select::-webkit-scrollbar,
textarea::-webkit-scrollbar,
div::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

/* ===== FINAL OVERRIDE FOR CUSTOM DROPDOWN TEXT COLOR ===== */
/* This rule is placed at the very end to ensure it overrides ALL other rules */
/* Ensures Monthly dropdown matches Tax Year dropdown exactly */
.custom-dropdown-wrapper .form-select.text-muted.form-select-sm,
.custom-dropdown-wrapper .form-select.text-muted.form-select-sm:hover,
.custom-dropdown-wrapper .form-select.text-muted.form-select-sm:focus,
.custom-dropdown-wrapper .form-select.text-muted.form-select-sm:active,
.custom-dropdown-wrapper .form-select.text-muted.form-select-sm[aria-expanded="false"],
.custom-dropdown-wrapper .form-select.text-muted.form-select-sm[aria-expanded="true"] {
    color: #113354 !important;
    background-color: #ffffff !important;
}