.font-poppins {
    font-family: "Poppins" !important;
}

.font-proxima {
    font-family: "Proxima Nova", sans-serif !important;
}

.chip-active {
    background-color: #fce9ea !important;
    font-size: 13px;
    color: #e6232f !important;
    font-family: "Poppins" !important;
    height: 35px !important;
    border-radius: 5px;
}

.detail-heading {
    font-size: 20px;
    font-weight: 600;
    line-height: 100%;
}

.color-1c {
    color: #1c1c1c;
}

.color-66 {
    color: #666666;
}

.color-theme {
    color: #e6232f !important;
}

.back-arrow-partners {
    margin-right: 5px;
    margin-top: -3px;
}

.edit-btn-partner {
    border: 1px solid #e6232f;
}

.edit-btn-partner:hover {
    color: #e6232f;
}

.reject-btn:hover {
    color: #e6232f;
    background-color: white;
    border: 1px solid #e6232f;
}

.reject-btn:focus,
.reject-btn:active,
.reject-btn:focus-visible,
.reject-btn:focus:active,
.approve-btn:focus,
.approve-btn:active,
.approve-btn:focus-visible,
.approve-btn:focus:active,
.reject-send-btn:focus,
.reject-send-btn:active,
.reject-send-btn:focus-visible,
.reject-send-btn:focus:active,
.reject-cancel-btn:focus,
.reject-cancel-btn:active,
.reject-cancel-btn:focus-visible,
.reject-cancel-btn:focus:active {
    box-shadow: none !important;
    outline: none !important;
}

.btn-large {
    height: 47px !important;
    width: 176px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    border: 1px solid #e6232f !important;
    border-radius: 8px !important;
}

.btn-large.approve-btn,
.approve-btn:hover {
    background-color: #e6232f !important;
    color: white !important;
}

.reject-send-btn {
    background-color: #e6232f !important;
    color: white !important;
    height: 47px !important;
    width: 171px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    border: 1px solid #e6232f !important;
    border-radius: 8px !important;
}

.reject-cancel-btn {
    background-color: white !important;
    color: #e6232f !important;
    height: 47px !important;
    width: 171px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    border: 1px solid #e6232f !important;
    border-radius: 8px !important;
}

.margin-close-btn {
    margin-top: 25px !important;
    margin-right: 25px !important;
    cursor: pointer;
}

.reject-modal-title {
    font-size: 22px;
    font-weight: 700;
    margin-top: 25px;
}

.reject-modal-subtitle {
    font-size: 18px;
    font-weight: 400;
    margin-top: 5px;
    line-height: 150%;
}

.reject-reason {
    margin-top: 24px;
    margin-left: 25px;
    font-size: 16px;
    font-weight: 600;
}

.reject-reason-textarea {
    margin-inline: 25px;
    border-radius: 6px;
    height: 112px;
    width: 87%;
    resize: none;
}

.b2b-inputs {
    border-color: #e5e5e5 !important;
    font-size: 13px;
    font-weight: 400;
    line-height: 100%;
    color: #666666 !important;
}

.b2b-inputs:focus {
    box-shadow: none !important;
    border-color: #e5e5e5 !important;
    color: #666666 !important;
}

.b2b-inputs:-webkit-autofill,
.b2b-inputs:-webkit-autofill:hover,
.b2b-inputs:-webkit-autofill:focus,
.b2b-inputs:-webkit-autofill:active {
    -webkit-text-fill-color: #666666 !important;
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    box-shadow: 0 0 0 30px white inset !important;
}

.font-error {
    font-size: 12px;
    line-height: 100%;
    font-weight: 400;
    margin-top: 5px;
}

.assign-bonus-margin {
    /* margin-left: 25px; */
    margin-top: 24px;
}

.invalid-border {
    border: 1px solid #e6232f !important;
}

.percent-sign {
    pointer-events: none;
    right: 12px !important;
    top: 45px !important;
}

.bonus-btn-margin {
    margin-top: 15.5px;
}

/* Add Staff – disabled Send Invite button */
.send-invite-btn:disabled {

    background-color: #E1E1E1 !important;
    color: #9A9A9A !important;
    border-color: #E1E1E1 !important;
}

.send-invite-btn {
    font-family: 'Montserrat' !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    background-color: #E6232F !important;
    border-radius: 10px !important;
    color: #FFFFFF !important;
    width: 120px !important;
    height: 50px !important;
}

.date-dropdown li,
.status-dropdown li,
.country-dropdown li a {
    font-family: "Poppins" !important;
    font-size: 13px;
    font-weight: 400;
    color: #1c1c1c;
    line-height: 100%;
}

.date-dropdown li:hover,
.status-dropdown li:hover,
.country-dropdown li a:hover {
    text-decoration: none;
    color: #e6232f;
    cursor: pointer;
}

.date-dropdown li:first-child,
.status-dropdown li:first-child {
    padding-top: 3.5px !important;
}

.country-dropdown li:first-child {
    padding-top: 0px !important;
}

#countrySearchInputLi {
    border-bottom: none !important;
}

#countrySearchInput {
    border-radius: 6px !important;
    width: 196px !important;
    margin-left: -8px !important;
}

.country-flag {
    border-radius: 10px !important;
    object-fit: cover !important;
    width: 18px !important;
    height: 18px !important;
}

.date-dropdown li,
.status-dropdown li,
.country-dropdown li {
    border-bottom: 1px solid #eaeaea;
    padding-top: 14.5px;
    padding-bottom: 14.5px;
    padding-left: 12px;
}

.date-dropdown li:last-child,
.status-dropdown li:last-child,
.country-dropdown li:last-child {
    padding-bottom: 2.5px !important;
    border-bottom: none !important;
}

.date-dropdown {
    min-height: 265px;
    min-width: 220px;
    margin-top: 6px;
}

.country-dropdown {
    max-height: 300px;
    overflow-y: auto;
    width: 220px;
    margin-top: 6px;
    right: 0;
    left: auto;
}

.country-dropdown::-webkit-scrollbar,
.create-partner-country-list::-webkit-scrollbar {
    width: 4px;
}

.country-dropdown::-webkit-scrollbar-button,
.create-partner-country-list::-webkit-scrollbar-button {
    display: none;
}

.country-dropdown::-webkit-scrollbar-track,
.create-partner-country-list::-webkit-scrollbar-track {
    background: #ffffff;
    /* Optional: style the track */
}

.country-dropdown::-webkit-scrollbar-thumb,
.create-partner-country-list::-webkit-scrollbar-thumb {
    background: #e5e5e5;
    /* Optional: style the thumb */
}

.status-dropdown {
    min-height: 135px;
    min-width: 220px;
    margin-top: 6px;
}

.date-dropdown-btn {
    width: 107px !important;
}

.status-dropdown-btn {
    width: 120px !important;
}

.country-dropdown-btn {
    width: 134px !important;
}

.status-dropdown-btn,
.date-dropdown-btn,
.country-dropdown-btn {
    color: #e6232f !important;
    background-color: white !important;
    border: 1px solid #e6232f !important;
    border-radius: 8px !important;
    /* Safari/Firefox cross-browser consistency */
    /* display: inline-flex !important; */
    /* align-items: center !important; */
    /* justify-content: space-between !important; */
    gap: 6px !important;
    padding: 6px 22px !important;
    height: 35px !important;
    line-height: 1 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    white-space: nowrap !important;
}

.status-dropdown-btn:focus,
.status-dropdown-btn:active,
.date-dropdown-btn:focus,
.date-dropdown-btn:active,
.country-dropdown-btn:focus,
.country-dropdown-btn:active {
    outline: none;
    box-shadow: none;
}

.status-dropdown-btn.show,
.date-dropdown-btn.show,
.country-dropdown-btn.show {
    color: white !important;
    background-color: #e6232f !important;
    border: none !important;
}

.status-dropdown-caret .status-chevron-up,
.date-dropdown-caret .date-chevron-up,
.country-dropdown-caret .country-chevron-up {
    display: none;
}

.status-dropdown-btn.show .status-dropdown-caret .status-chevron-down,
.date-dropdown-btn.show .date-dropdown-caret .date-chevron-down,
.country-dropdown-btn.show .country-dropdown-caret .country-chevron-down {
    display: none;
}

.status-dropdown-btn.show .status-dropdown-caret .status-chevron-up,
.date-dropdown-btn.show .date-dropdown-caret .date-chevron-up,
.country-dropdown-btn.show .country-dropdown-caret .country-chevron-up {
    display: inline-block;
}

/* Ensure caret icons are sized/aligned consistently across browsers */
/* .status-dropdown-caret img,
.date-dropdown-caret img,
.country-dropdown-caret img {
    width: 12px !important;
    height: 12px !important;
    display: inline-block !important;
    vertical-align: middle !important;
} */

.cancel-btn,
.cancel-btn:hover,
.cancel-btn:focus {
    border: 1px solid #e6232f;
    color: #e6232f;
    background-color: white;
    box-shadow: none;
}

.update-btn,
.update-btn:hover,
.update-btn:focus {
    color: white;
    background-color: #e6232f;
    box-shadow: none;
}

.esim-partners {
    margin-left: -4px !important;
}

.esim-partners .nav-link-icon {
    color: #898a90;
}

.nav-link:hover .esim-partners .nav-link-icon,
.nav-item.active .esim-partners .nav-link-icon {
    color: #e6232f !important;
}

.modal-body.custom-date-body {
    padding: 0px 0px !important;
}

.modal-dialog.custom-date-modal {
    max-width: 325px !important;
}

.flatpickr-day.today {
    border-color: #e6232f !important;
    background-color: #ffffff !important;
    color: #1c1c1c !important;
}

.flatpickr-day.today:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.startRange,
.flatpickr-day.selected.endRange {
    background-color: #e6232f !important;
    color: #ffffff !important;
}

/* In-range days: fill background, remove gaps */
.flatpickr-day.inRange {
    background: #fce9ea !important;
    color: #1c1c1c !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Prevent hover from breaking continuity */
.flatpickr-day.inRange:hover {
    background: #fce9ea !important;
    color: #1c1c1c !important;
}

/* Start of range */
.flatpickr-day.startRange {
    background: #e6232f !important;
    color: #fff !important;
    border-radius: 50% !important;
    position: relative;
    z-index: 2;
    /* keep circle on top */
}

/* End of range */
.flatpickr-day.endRange {
    background: #e6232f !important;
    color: #fff !important;
    border-radius: 50% !important;
    position: relative;
    z-index: 2;
    /* keep circle on top */
}

/* Middle of range: extend full width */
.flatpickr-day.inRange::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -50%;
    /* extend to left cell edge */
    right: -50%;
    /* extend to right cell edge */
    background: #fce9ea;
    z-index: -1;
    /* put behind day number */
}

/* Inactive account modal (login) */
.inactive-account-modal .modal-dialog.inactive-account-dialog {
    max-width: 380px;
}

.inactive-account-modal .inactive-account-content {
    border-radius: 10px !important;
    border: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    padding: 26px 32px 28px;
    position: relative;
}

.inactive-account-body {
    text-align: center;
}

.inactive-account-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1c1c1c !important;
}

.inactive-account-text {
    font-weight: 400;
    color: #666666 !important;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
}

.inactive-account-btn {
    min-width: 190px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    background-color: #e6232f !important;
    border-color: #e6232f !important;
    color: #FFFFFF;
    text-transform: none !important;
}

.inactive-account-btn:hover,
.inactive-account-btn:focus {
    background-color: #e6232f !important;
    border-color: #e6232f !important;
    box-shadow: none;
    color: #FFFFFF;
    text-transform: none !important;
}

.inactive-modal-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    border: none;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    color: #999999;
    cursor: pointer;
    padding: 0;
}

.inactive-modal-close-btn:focus {
    outline: none;
    box-shadow: none;
}

.inactive-account-modal.modal.fade .modal-dialog {
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

.inactive-account-modal.show .modal-dialog {
    transform: translate(0, 0);
}

.inactive-account-backdrop {
    position: fixed;
    inset: 0;
    background: #000000B2;
    z-index: 1040;
    display: none;
}

.inactive-account-backdrop.show {
    display: block;
}

.flatpickr-calendar {
    border: none !important;
    box-shadow: none !important;
}

.flatpickr-day,
.flatpickr-weekday {
    font-size: 10px !important;
}

.custom-date-btn {
    background-color: #e6232f !important;
    color: white !important;
    border-radius: 8px !important;
}

.top-center-alert {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    position: fixed;
    background-color: #ffffff;
    top: 7%;
    color: #00b102;
    font-size: 14px;
    font-weight: 400;
    left: 53%;
    transform: translateX(-50%);
    z-index: 1050;
    max-width: 372px;
    width: 100%;
    height: 41px;
}

.toast-close-span {
    margin-left: 43px;
    cursor: pointer;
}

.clickable-row {
    cursor: pointer;
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.clickable-row:hover td {
    color: #e6232f !important;
    background-color: #f9f9f9 !important;
}

.partner-req-detail-label {
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    color: #666666;
}

.custom-range-modal-title {
    font-weight: 500;
    font-size: 18px;
    line-height: 100%;
    color: #1c1c1c;
}

.custom-close-btn {
    cursor: pointer;
}

/* Move month title (month + year) to start, arrows to end */
.flatpickr-months {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 8px !important;
    position: relative !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    position: static !important;
    margin: 0 4px !important;
    flex-shrink: 0 !important;
}

/* Arrange elements */
.flatpickr-prev-month {
    order: 2 !important;
}

.flatpickr-next-month {
    order: 3 !important;
}

.flatpickr-month {
    order: 1 !important;
}

.flatpickr-current-month {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 0px !important;
    margin-left: -30px !important;
}

.flatpickr-current-month .numInputWrapper {
    pointer-events: none !important; /* disable clicks */
    background: none !important;
}

.flatpickr-current-month .numInputWrapper input {
    border: none !important;
    background: transparent !important;
    color: inherit !important;
    pointer-events: none !important;
}

.flatpickr-current-month .numInputWrapper span.arrowUp,
.flatpickr-current-month .numInputWrapper span.arrowDown {
    display: none !important;
}

.flatpickr-current-month .cur-month {
    font-size: 18px !important;
    font-weight: 500 !important;
    /* margin-right: 0 !important; */
}

.flatpickr-current-month .cur-month:hover {
    background: none !important;
    /* margin-right: 0 !important; */
}

.flatpickr-months > .flatpickr-month {
    flex: 1 1 auto !important;
}

/* Success Toast/Alert Styling - Figma Design */
#success-alert {
    position: fixed !important;
    top: 56px !important;
    left: 52% !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    width: auto !important;
    max-width: 600px !important;
    min-width: 400px !important;
    background: #ffffff !important;
    border: 1px solid #cfe9cf !important;
    border-radius: 10px !important;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05) !important;
    padding: 12px 16px !important;
    animation: slideDown 0.3s ease-in-out !important;
    display: flex !important;
    align-items: center !important;
}

#success-alert > div {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
}

#success-alert .mr-1,
#success-alert .mx-2 {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

#success-alert .mr-1 img,
#success-alert .mx-2 img {
    width: 16px !important;
    height: 16px !important;
}

#success-alert span.text-center {
    color: #00b102 !important;
    font-family: "Proxima Nova", sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 21px !important;
    flex: 1 !important;
    text-align: left !important;
    white-space: nowrap !important;
}

#success-alert .toast-close-span {
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

#success-alert .toast-close-span img {
    width: 14px !important;
    height: 14px !important;
    opacity: 0.6 !important;
    transition: opacity 0.2s ease !important;
}

#success-alert .toast-close-span:hover img {
    opacity: 1 !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.reject-model {
    max-width: 393px !important;
}

.text-dark-2 {
    color: #090909 !important;
}

.last-login {
    font-family: Poppins;
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
    margin-top: 8px;
}

.update-partner-btn {
    color: #ffffff;
    background-color: #e6232f;
    border-radius: 6px;
    height: 35px;
    width: 104px;
    font-size: 14px;
    font-weight: 600;
    border: none;
}

.update-partner-btn:hover {
    background-color: #e6232f;
    color: #ffffff;
}

.update-partner-btn:focus,
.update-partner-btn:active,
.update-partner-btn:focus-visible,
.update-partner-btn:focus:active {
    box-shadow: none !important;
    outline: none !important;
}

.cancel-partner-btn {
    background-color: #ffffff;
    border-radius: 6px;
    color: #e6232f;
    height: 35px;
    width: 104px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #e6232f;
    margin-right: 6px;
}

.cancel-partner-btn:hover {
    color: #e6232f !important;
}

.cancel-partner-btn:focus,
.cancel-partner-btn:active,
.cancel-partner-btn:focus-visible,
.cancel-partner-btn:focus:active {
    box-shadow: none !important;
    outline: none !important;
}

.fs-13 {
    font-size: 13px;
}

#dropdownMenuButton.btn-link:hover,
#dropdownMenuButton.btn-link:focus,
#dropdownMenuButton.btn-link:active {
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.create-partner-country-list {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
}

.country-limit-reset {
    background-color: #e6232f !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: normal !important;
}

.country-limit-reset:hover,
.country-limit-reset:focus,
.country-limit-reset:active,
.country-limit-reset:focus-visible,
.country-limit-reset:focus:active {
    background-color: #e6232f !important;
    color: #ffffff !important;
    box-shadow: none !important;
    outline: none !important;
}

.search-filter {
    width: 140px !important;
    border: 1px solid #cecece;
    border-radius: 5px !important;
    padding: 3px 5px 3px 25px !important;
    outline: none !important;
}

.edit-hourly-limit,
.edit-hourly-limit:hover,
.edit-hourly-limit:focus,
.edit-hourly-limit:active,
.edit-hourly-limit:focus-visible,
.edit-hourly-limit:focus:active {
    box-shadow: none !important;
    outline: none !important;
}

.meta-view-btn,
.meta-view-btn:hover,
.meta-view-btn:focus,
.meta-view-btn:active,
.meta-view-btn:focus-visible,
.meta-view-btn:focus:active {
    background-color: #e6232f !important;
    color: #ffffff;
    box-shadow: none !important;
    outline: none !important;
}

.input-edit-hourly-limit,
.input-edit-hourly-limit:hover,
.input-edit-hourly-limit:focus,
.input-edit-hourly-limit:active,
.input-edit-hourly-limit:focus-visible,
.input-edit-hourly-limit:focus:active {
    border: 1px solid #e5e5e5;
    box-shadow: none !important;
    outline: none !important;
}

.otp-prefix-response-mode,
.otp-prefix-response-mode:hover,
.otp-prefix-response-mode:focus,
.otp-prefix-response-mode:active,
.otp-prefix-response-mode:focus-visible,
.otp-prefix-response-mode:focus:active {
    color: #898989 !important;
    width: 150px !important;
    padding: 5px 10px !important;
    border: 1px solid #cecece !important;
    box-shadow: none !important;
    outline: none !important;
}

.country-limit-status,
.country-limit-status:hover,
.country-limit-status:focus,
.country-limit-status:active,
.country-limit-status:focus-visible,
.country-limit-status:focus:active {
    color: #898989 !important;
    border: 1px solid #cecece !important;
    padding: 1px 5px !important;
    width: 100px !important;
    height: 29px !important;
    box-shadow: none !important;
    outline: none !important;
}

.sms-rate-limit-status,
.sms-rate-limit-status:hover,
.sms-rate-limit-status:focus,
.sms-rate-limit-status:active,
.sms-rate-limit-status:focus-visible,
.sms-rate-limit-status:focus:active {
    color: #898989 !important;
    border: 1px solid #cecece !important;
    padding: 1px 5px !important;
    width: 90px !important;
    height: 29px !important;
    box-shadow: none !important;
    outline: none !important;
}

.sms-rate-limit-platform,
.sms-rate-limit-platform:hover,
.sms-rate-limit-platform:focus,
.sms-rate-limit-platform:active,
.sms-rate-limit-platform:focus-visible,
.sms-rate-limit-platform:focus:active {
    color: #898989 !important;
    border: 1px solid #cecece !important;
    padding: 1px 5px !important;
    width: 110px !important;
    height: 29px !important;
    box-shadow: none !important;
    outline: none !important;
}

.sms-rate-limit-device-type,
.sms-rate-limit-device-type:hover,
.sms-rate-limit-device-type:focus,
.sms-rate-limit-device-type:active,
.sms-rate-limit-device-type:focus-visible,
.sms-rate-limit-device-type:focus:active {
    color: #898989 !important;
    border: 1px solid #cecece !important;
    padding: 1px 5px !important;
    width: 90px !important;
    height: 29px !important;
    box-shadow: none !important;
    outline: none !important;
}

.assign-bonus-input {
    border-color: #e5e5e5;
    font-size: 13px;
    font-weight: 400;
    line-height: 100%;
    color: #666666;
}

.assign-bonus-input:focus {
    box-shadow: none !important;
    border-color: #e5e5e5 !important;
    color: #666666;
}

.assign-bonus-input:-webkit-autofill,
.assign-bonus-input:-webkit-autofill:hover,
.assign-bonus-input:-webkit-autofill:focus,
.assign-bonus-input:-webkit-autofill:active {
    -webkit-text-fill-color: #666666 !important;
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    box-shadow: 0 0 0 30px white inset !important;
}

.login-section {
    height: 100vh !important;
    display: flex !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.login-image-section {
    flex: 0 0 50%;
    width: 50%;
    height: 100vh !important;
    position: relative;
    display: block !important;
    overflow: hidden;
}

.login-background-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

/* Responsive adjustments for different screen sizes */
@media (max-width: 991px) {
    .login-image-section {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .login-image-section {
        display: block !important;
    }
}

.login-image-logo {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 10;
}

.login-logo-on-image {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1); /* Makes logo white */
}

.login-image-text {
    position: absolute;
    bottom: 30px;
    left: 41px;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    font-family: 'Montserrat' !important;
}

.login-welcome-text {
    font-size: 48px;
    line-height: 100%;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    padding: 0;
}

.login-welcome-text-description {
    font-size: 26px;
    font-weight: 300;
    line-height: 36px;
    color: #FFFFFF;
}

/* Login Form Section Styles */
.login-form-section {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-form-container {
    width: 100%;
    max-width: 372px;
}

.login-logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.forgot-password-logo-container.login-logo-container {
    margin-bottom: 50px !important;
}
.login-logo-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.login-logo {
    width: 170px;
    padding-right: 15px;
}

.forgot-password-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 16px;
    gap: 18px;
}

.forgot-password-success-text {
    font-family: 'Montserrat' !important;
    font-size: 20px;
    font-weight: 600;
    line-height: 130%;
    color: #1C1C1C;
    margin: 0;
}

.login-error {
    text-align: center;
}

.login-label {
    color: #1C1C1C;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 100% !important;
}

.form-label.login-label.forgot-password-email-label {
    margin-bottom: 12px !important;
}

.login-input {
    border-radius: 10px !important;
    border-color: #E5E5E5 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: 0% !important;
    color: #1C1C1C !important;
    height: 50px !important;
}

/* Override autofill styles */
.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus,
.login-input:-webkit-autofill:active,
.login-section .login-input:-webkit-autofill,
.login-section .login-input:-webkit-autofill:hover,
.login-section .login-input:-webkit-autofill:focus,
.login-section .login-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: #1C1C1C !important;
    box-shadow: 0 0 0 1000px white inset !important;
    background-color: white !important;
    background-clip: content-box !important;
    color: #1C1C1C !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

.login-input::placeholder {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 100% !important;
    letter-spacing: 0% !important;
    color: #BABABA !important;
}

.login-input::-webkit-input-placeholder {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 100% !important;
    letter-spacing: 0% !important;
    color: #BABABA !important;
}

.login-input::-moz-placeholder {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 100% !important;
    letter-spacing: 0% !important;
    color: #BABABA !important;
    opacity: 1;
}

.login-input:-ms-input-placeholder {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 100% !important;
    letter-spacing: 0% !important;
    color: #BABABA !important;
}

.login-password-wrapper {
    margin-bottom: 10px;
    position: relative;
}

.login-password-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: #1C1C1C;
    text-align: left;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    line-height: 100% !important;
}

.login-password-input-wrapper {
    position: relative;
}

.login-password-input {
    border-radius: 10px !important;
    border-color: #E5E5E5 !important;
    padding-right: 45px;
    font-family: 'Montserrat' !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    letter-spacing: 0% !important;
    color: #1C1C1C !important;
    height: 50px !important;
}

/* Override autofill styles */
.login-password-input:-webkit-autofill,
.login-password-input:-webkit-autofill:hover,
.login-password-input:-webkit-autofill:focus,
.login-password-input:-webkit-autofill:active,
.login-section .login-password-input:-webkit-autofill,
.login-section .login-password-input:-webkit-autofill:hover,
.login-section .login-password-input:-webkit-autofill:focus,
.login-section .login-password-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: #1C1C1C !important;
    box-shadow: 0 0 0 1000px white inset !important;
    background-color: white !important;
    background-clip: content-box !important;
    color: #1C1C1C !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

.login-password-input::placeholder {
    font-family: 'Montserrat' !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 100% !important;
    letter-spacing: 0px !important;
    color: #BABABA !important;

}

.login-password-input::-webkit-input-placeholder {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 100% !important;
    letter-spacing: 0% !important;
    color: #BABABA !important;
}

.login-password-input::-moz-placeholder {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 100% !important;
    letter-spacing: 0% !important;
    color: #BABABA !important;
    opacity: 1;
}

.login-password-input:-ms-input-placeholder {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 100% !important;
    letter-spacing: 0% !important;
    color: #BABABA !important;
}

/* When password is masked with asterisks - placeholder should still use Montserrat */
.login-password-input.masked::placeholder {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 100% !important;
    letter-spacing: 0% !important;
    color: #BABABA !important;
}

.login-password-input.masked::-webkit-input-placeholder {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 100% !important;
    letter-spacing: 0% !important;
    color: #BABABA !important;
}

.login-password-input.masked::-moz-placeholder {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 100% !important;
    letter-spacing: 0% !important;
    color: #BABABA !important;
    opacity: 1;
}

.login-password-input.masked:-ms-input-placeholder {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 100% !important;
    letter-spacing: 0% !important;
    color: #BABABA !important;
}

/* Ensure placeholder always uses Montserrat regardless of input font-family */
.login-password-input[style*="monospace"]::placeholder,
.login-password-input[style*="monospace"]::-webkit-input-placeholder,
.login-password-input[style*="monospace"]::-moz-placeholder,
.login-password-input[style*="monospace"]:-ms-input-placeholder {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 100% !important;
    letter-spacing: 0% !important;
    color: #BABABA !important;
}

.login-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none;
    cursor: pointer;
    color: #1C1C1C;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-eye-icon {
    width: 16px;
    height: 16px;
    display: block;
    background: none !important;
}

.login-recaptcha {
    display: none;
}

.login-forgot-password-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 24px;
}

.login-forgot-password-wrapper .login-error-message {
    margin-top: 0;
    flex: 0 1 auto;
}

.login-forgot-password-link {
    color: #1C1C1C;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    text-decoration: none !important;
}

.login-forgot-password-link:hover {
    color: #1C1C1C !important;
    text-decoration: none !important;
}

.login-submit-btn {
    font-family: 'Montserrat' !important;
    width: 100%;
    background-color: #E1E1E1 !important;
    color: #9A9A9A !important;
    border: none !important;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-transform: none !important;
}

.login-submit-btn.forgot-password-email-btn {
    font-size: 14px !important;
}

.login-submit-btn:disabled,
.login-submit-btn[disabled] {
    background-color: #E1E1E1 !important;
    color: #9A9A9A !important;
    cursor: not-allowed !important;
}

/* Override any btn class styles that might conflict */
.btn.login-submit-btn,
button.login-submit-btn,
.login-submit-btn.btn {
    background-color: #E1E1E1 !important;
    color: #9A9A9A !important;
    border: none !important;
    text-transform: none !important;
}

.login-section input:focus {
    border-color: #E6232F !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

/* Remove box shadow on focus for login inputs - override general rule */
.login-input:focus,
.login-input:focus-visible,
.login-input:focus-within,
.login-input:active {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    outline: none !important;
}

.login-password-input:focus,
.login-password-input:focus-visible,
.login-password-input:focus-within,
.login-password-input:active {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    outline: none !important;
}

.btn.login-submit-btn:hover,
button.login-submit-btn:hover {
    background-color: #E1E1E1 !important;
    color: #9A9A9A !important;
}

/* Enabled state when both email and password are filled */
.login-submit-btn.enabled,
.btn.login-submit-btn.enabled,
button.login-submit-btn.enabled,
.login-section button[type="submit"].enabled {
    background-color: #E6232F !important;
    color: #FFFFFF !important;
}

.login-submit-btn.enabled:hover,
.btn.login-submit-btn.enabled:hover,
button.login-submit-btn.enabled:hover,
.login-section button[type="submit"].enabled:hover {
    background-color: #E6232F !important;
    color: #FFFFFF !important;
}

/* Login Page HTML/Body Reset Styles */
/* These styles apply to the guest layout used for login/register pages */
body:has(.login-section) html,
body:has(.login-section) {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
    font-family: 'Montserrat' !important;
}

body:has(.login-section) .font-sans.text-gray-900.antialiased {
    margin: 0 !important;
    padding: 0 !important;
    height: 100vh !important;
}

.login-error-message {
    font-family: Montserrat !important;
    margin-top: 10px;
    font-weight: 400 !important;
    font-size: 12px !important;
    line-height: 100% !important;
    color: #E6232F !important;
}

/* Toast Component Styles */
.toast-component {
    position: fixed;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    min-width: 300px;
    max-width: 600px;
    height: 41px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: Montserrat;
}

.toast-component.toast-show {
    opacity: 1;
}

/* Success Toast - Match Screenshot Style */
.toast-component.toast-success {
    border: 1px solid #cfe9cf;
    padding: 12px 16px;
    height: 41px;
}

.toast-component.toast-success .toast-text {
    color: #00b102;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
}

/* Compact variant for short messages (e.g. copy password) */
.toast-component.toast-compact {
    min-width: 220px;
    max-width: 360px;
}

/* Error Toast */
.toast-component.toast-error {
    border: 1px solid #f5c6cb;
    padding: 12px 16px;
}

.toast-component.toast-error .toast-text {
    color: #E6232F;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
}

/* Warning Toast */
.toast-component.toast-warning {
    border: 1px solid #ffeaa7;
    padding: 12px 16px;
}

.toast-component.toast-warning .toast-text {
    color: #FF9800;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
}

/* Info Toast */
.toast-component.toast-info {
    border: 1px solid #b3d9ff;
    padding: 12px 16px;
}

.toast-component.toast-info .toast-text {
    color: #2196F3;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
}

/* Toast Positions */
.toast-top-right {
    top: 20px;
    right: 20px;
    left: auto;
    transform: translateY(-20px);
}

.toast-top-right.toast-show {
    transform: translateY(0);
}

.toast-top-left {
    top: 20px;
    left: 20px;
    transform: translateY(-20px);
}

.toast-top-left.toast-show {
    transform: translateY(0);
}

.toast-top-center {
    top: 52px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    animation: toastSlideDown 0.3s ease-in-out;
}

.toast-top-center.toast-show {
    transform: translateX(-50%) translateY(0);
}

.toast-bottom-right {
    bottom: 20px;
    right: 20px;
    left: auto;
    transform: translateY(20px);
}

.toast-bottom-right.toast-show {
    transform: translateY(0);
}

.toast-bottom-left {
    bottom: 20px;
    left: 20px;
    transform: translateY(20px);
}

.toast-bottom-left.toast-show {
    transform: translateY(0);
}

.toast-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
}

.toast-bottom-center.toast-show {
    transform: translateX(-50%) translateY(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    width: 100%;
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast-icon-img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.toast-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    color: #1c1c1c;
    flex: 1;
    text-align: left;
    white-space: nowrap;
}

.toast-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.toast-close:hover {
    opacity: 0.7;
}

.toast-close img {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.toast-close:hover img {
    opacity: 1;
}

@keyframes toastSlideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .toast-component {
        min-width: calc(100% - 40px);
        max-width: calc(100% - 40px);
    }

    .toast-top-right,
    .toast-top-left,
    .toast-bottom-right,
    .toast-bottom-left {
        left: 20px;
        right: 20px;
    }
}

/* ============================================
   Link Expired Modal (Forgot Password)
   ============================================ */
.link-expired-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.link-expired-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.link-expired-card {
    width: 360px;
    max-width: 100%;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    position: relative;
    padding: 22px 22px 18px;
    transform: translateY(6px);
    transition: transform 180ms ease;
}

.link-expired-overlay.is-open .link-expired-card {
    transform: translateY(0);
}

.link-expired-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    opacity: 0.85;
}

.link-expired-title {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
    color: #1c1c1c;
}

.link-expired-subtitle {
    margin: 6px 0 14px;
    font-size: 14px;
    color: #666666;
}

.link-expired-btn {
    border-radius: 10px !important;
    padding: 10px 20px;
    border: 0;
    background-color: #E6232F !important;
    color: #ffffff !important;
    font-weight: 600;
    min-width: 140px;
    text-transform: none;
}

.link-expired-btn:hover,
.link-expired-btn:focus {
    color: #ffffff !important;
    background-color: #E6232F !important;
    box-shadow: none;
}

.reset-password-email {
    background-color: #fafafa !important;
    color: #BBBBBB !important;
}

.login-input.reset-password-email:focus {
    border-color: #E5E5E5 !important;
}

.staff-password-input-wrapper {
    position: relative;
}

.staff-password-input {
    border-radius: 10px !important;
    padding-right: 45px;
    font-family: 'Montserrat' !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #1C1C1C !important;
    width: 330px !important;
    height: 50px !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.staff-password-input:focus {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    outline: none !important;
    border-color: #E6232F !important;
}

.staff-password-input:-webkit-autofill,
.staff-password-input:-webkit-autofill:hover,
.staff-password-input:-webkit-autofill:focus,
.staff-password-input:-webkit-autofill:active {
    -webkit-box-shadow: none !important;
    -webkit-text-fill-color: #1C1C1C !important;
    box-shadow: none !important;
    background-color: white !important;
    background-clip: content-box !important;
    color: #1C1C1C !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* Prevent yellow/grey autofill background on Add Staff inputs */
.add-staff-input:-webkit-autofill,
.add-staff-input:-webkit-autofill:hover,
.add-staff-input:-webkit-autofill:focus,
.add-staff-input:-webkit-autofill:active,
.permission-search-input:-webkit-autofill,
.permission-search-input:-webkit-autofill:hover,
.permission-search-input:-webkit-autofill:focus,
.permission-search-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #1C1C1C !important;
    background-color: #ffffff !important;
    background-clip: content-box !important;
    color: #1C1C1C !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

.staff-password-input::placeholder {
    font-family: 'Montserrat' !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #BABABA !important; /* existing subtle grey */
    transition: color 0.15s ease-in-out;
}

.staff-password-input:focus::placeholder {
    color: transparent !important;
}

.staff-toggle-password {
    position: absolute;
    /* Default: eye icon inside the input on the right */
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none;
    cursor: pointer;
    color: #1C1C1C;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-eye-icon {
    width: 24px;
    height: 24px;
    display: block;
    background: none !important;
}

.staff-copy-password {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none;
    cursor: pointer;
    color: #1C1C1C;
    padding: 4px;
    display: none; /* shown only after generator click */
    align-items: center;
    justify-content: center;
}

/* When copy is available, shift eye icon left and show copy button */
.staff-password-input-wrapper.has-copy .staff-toggle-password {
    right: 75px;
}

.staff-password-input-wrapper.has-copy .staff-copy-password {
    display: flex;
}

.staff-copy-icon {
    font-size: 18px;
    line-height: 1;
}

.password-generator-btn-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-top: 0; /* align with first requirement bullet */
}

.password-generator-btn {
    width: 184px !important;
    height: 50px !important;
    border-radius: 10px !important;
    border: 1px solid #E6232F !important;
    color: #E6232F !important;
    font-family: 'Montserrat' !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 100% !important;
}

.password-generator-btn:hover,
.password-generator-btn:focus {
    box-shadow: none !important;
    outline: none !important;
}

.add-staff-input {
    width: 330px !important;
    height: 50px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #1C1C1C !important;
}

/* Hide placeholder on focus for Add Staff inputs */
.add-staff-input::placeholder {
    font-family: 'Montserrat' !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #BABABA !important; /* existing subtle grey */
    transition: color 0.15s ease-in-out;
}

.add-staff-input:focus::placeholder {
    color: transparent !important;
}

.add-staff-input:focus {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    outline: none !important;
    border-color: #E6232F !important;
}

/* Left sticky nav items (Add Staff / Role & Permissions) */
.left-nav-item {
    font-family: 'Montserrat' !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 100% !important;
    color: #666666; /* muted grey by default */
}

.left-nav-item.active {
    color: #E6232F !important;
}

/* Custom role dropdown (Add Staff page) */
.role-select-dropdown {
    position: relative;
    width: 100%;
}

.role-select-toggle {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border: 1px solid #E6E6E6;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    font-family: 'Montserrat' !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #1C1C1C !important;
}

.role-select-toggle-text {
    flex: 1;
    text-align: left;
}

.role-select-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

.role-select-icon {
    width: 24px;
    height: 24px;
}

.role-select-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #E6E6E6;
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    margin-top: 2px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 20;
    padding: 4px 0;
}

.role-select-item {
    border-radius: 0;
    background: transparent;
    border: none;
    padding: 6px 14px;
    font-family: 'Montserrat' !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #1C1C1C !important;
}

.role-select-item:hover,
.role-select-item.active {
    background-color: #ffffff !important;
    color: #E6232F !important;
}

/* MFA checkbox: black when checked (Add Staff page only) */
.mfa-checkbox-input:checked {
    background-color: #1C1C1C !important;
    border-color: #1C1C1C !important;
}

.mfa-checkbox-input:focus {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    outline: none !important;
    border-color: #1C1C1C !important;
}

.mfa-checkbox-label {
    font-family: 'Montserrat' !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 120% !important;
    color: #1C1C1C !important;
}

.add-staff-label {
    font-family: 'Montserrat' !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 100% !important;
    color: #1C1C1C !important;
}

.add-staff-main-div {
    height: calc(100vh - 80px) !important;
}

.add-staff-row {
    margin-left: 75px !important;
    margin-right: 75px !important;
    margin-top: 10px !important;
}

.sticky-card {
    width: 270px !important;
    position: fixed !important;
    top: 90px !important;
}

.role-label {
    font-family: 'Montserrat' !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 100% !important;
    color: #1C1C1C !important;
    margin-bottom: 12px !important;
}

.permissions-search-label {
    font-family: 'Montserrat' !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 100% !important;
    color: #1C1C1C !important;
    margin-bottom: 16px !important;
}

.permission-search-wrapper {
    position: relative;
    width: 100%;
}

.permission-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.permission-search-input {
    width: 100% !important;
    height: 50px;
    padding-left: 48px;
    padding-right: 16px;
    border-radius: 10px;
    border: 1px solid #E6E6E6;
    background-color: #ffffff;
    font-family: 'Montserrat' !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #1C1C1C !important;
}

.permission-search-input::placeholder {
    color: #BABABA;
}

.permission-search-input:focus {
    border-color: #E6232F !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Permission list styling (Add Staff) */
.permission-actions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.permission-action {
    font-family: 'Montserrat' !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #1C1C1C !important;
}

.permission-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #1C1C1C;
    accent-color: #000000;
}

.permission-checkbox:checked {
    background-color: #1C1C1C !important;
    border-color: #1C1C1C !important;
}

.permission-checkbox:focus {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    outline: none !important;
    border-color: #1C1C1C !important;
}

.permission-action-label {
    line-height: 1.4;
}

.permission-submodule {
    margin-bottom: 12px;
}

.permission-submodule-title {
    font-family: 'Montserrat' !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1C1C1C !important;
    margin-bottom: 4px;
}

/* Permissions list container (inside second card) */
.permissions-card {
    max-height: none;
    overflow-y: visible;
}

/* Remove underline from + / − toggle in permission modules */
.permission-module .btn-link,
.permission-module .btn-link:hover,
.permission-module .btn-link:focus,
.permission-module .btn-link:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.permission-toggle-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.permission-toggle-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.permission-module-title, .permission-module-count {
    font-family: 'Montserrat' !important;
    font-size: 14px !important;
    line-height: 100% !important;
    font-weight: 600 !important;
    color: #1C1C1C !important;
}

.staff-status-active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 5px !important;
    width: 70px !important;
    height: 28px !important;
    background-color: #EEFAF4 !important;
    color: #30AB62 !important;
}

.staff-status-inactive {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 5px !important;
    width: 70px !important;
    height: 28px !important;
    background-color: #FFF0F0 !important;
    color: #E6232F !important;
}

.staff-management-page {
    min-height: calc(90vh - 45px) !important;
    font-family: 'Montserrat' !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    gap: 25px !important;
    display: flex !important;
    flex-direction: column !important;
}

.staff-management-page .staff-list-card-body {
    flex: 1 !important;
    min-height: 0 !important;
}

.staff-list-empty-state {
    min-height: 0 !important;
}

.staff-management-title {
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 100% !important;
    color: #1C1C1C !important;
    margin-bottom: 10px !important;
}

.staff-members-count {
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 100% !important;
    color: #666666 !important;
}

.add-staff-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 106px !important;
    height: 40px !important;
    font-family: 'Montserrat' !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 100% !important;
    background-color: #E6232F !important;
    color: #ffffff !important;
    border-radius: 10px !important;
}

.add-staff-btn:focus {
    box-shadow: none !important;
    outline: none !important;
    background-color: #E6232F !important;
    color: #ffffff !important;
}

.add-staff-btn:hover {
    background-color: #E6232F !important;
    color: #ffffff !important;
}

.staff-listing-search-input{
    font-family: 'Montserrat' !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #BCBCBC !important;
    line-height: 100% !important;
    border: 1px solid #E5E5E5 !important;
    width: 200px !important;
    height: 40px !important;
}

.staff-listing-search-input:focus {
    box-shadow: none !important;
    outline: none !important;
    border: 1px solid #E5E5E5 !important;
}

.staff-listing-role-filter-btn,
.staff-listing-status-filter-btn {
    font-family: 'Montserrat' !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #262626 !important;
    width: 120px !important;
    height: 40px !important;
    line-height: 100% !important;
    border: 1px solid #E5E5E5 !important;
    border-radius: 5px !important;
    background-color: #ffffff !important;
}

.staff-listing-role-filter-btn:focus,
.staff-listing-status-filter-btn:focus {
    box-shadow: none !important;
    outline: none !important;
    border: 1px solid #E5E5E5 !important;
    background-color: #ffffff !important;
}

.staff-listing-role-filter-btn:hover,
.staff-listing-status-filter-btn:hover {
    background-color: #ffffff !important;
}

.staff-role-chevron-wrapper,
.staff-status-chevron-wrapper {
    margin-left: auto;
    margin-right: -10px;
    display: inline-flex;
    align-items: center;
}

.staff-role-chevron-up,
.staff-status-chevron-up {
    display: none;
}

.staff-listing-role-filter-btn[aria-expanded="true"] .staff-role-chevron-up,
.staff-listing-status-filter-btn[aria-expanded="true"] .staff-status-chevron-up {
    display: inline-block;
}

.staff-listing-role-filter-btn[aria-expanded="true"] .staff-role-chevron-down,
.staff-listing-status-filter-btn[aria-expanded="true"] .staff-status-chevron-down {
    display: none;
}

.staff-listing-role-dropdown .dropdown-item.active,
.staff-listing-role-dropdown .dropdown-item:active,
.staff-listing-role-dropdown .dropdown-item:focus,
.staff-listing-role-dropdown .dropdown-item:focus-within,
.staff-listing-status-dropdown .dropdown-item.active,
.staff-listing-status-dropdown .dropdown-item:active,
.staff-listing-status-dropdown .dropdown-item:focus,
.staff-listing-status-dropdown .dropdown-item:focus-within {
    color: #E6232F !important;
    background-color: #ffffff !important;
}

.staff-list-table-header {
    font-family: 'Montserrat' !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 100% !important;
    color: #666666 !important;
}

.staff-list-table-cell {
    font-family: 'Montserrat' !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 100% !important;
    color: #333333 !important;
}

.staff-list-action-btn:focus {
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
    background-color: transparent !important;
}

.staff-list-action-btn:hover {
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
}

.custom-pagination-staff-list ul.pagination li,
.custom-pagination-staff-list ul.pagination li button{
    font-family: 'Montserrat' !important;
}

.custom-pagination-staff-list ul.pagination li button,
.custom-pagination-staff-list .pagination .page-item.disabled .page-link {
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
}

.staff-action-dropdown-item {
    font-family: 'Montserrat' !important;
}

.action-modal-title {
    font-family: 'Montserrat' !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 100% !important;
    color: #1C1C1C !important;
    margin-top: 25px !important;
}

.action-modal-subtitle {
    font-family: 'Montserrat' !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 150% !important;
    color: #666666 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 326px !important;
    margin: 5px auto 20px !important; /* center block horizontally */
    text-align: center !important;    /* center multi-line text */
}

.staff-action-modal .modal-dialog {
    max-width: 402px !important;
    width: 100% !important;
    height: 233px !important;
}

.staff-action-modal-content {
    border-radius: 10px !important;
}

.staff-action-confirm-btn{
    background-color: #E6232F !important;
    color: #ffffff !important;
    font-family: 'Montserrat' !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 25px !important;
    width: 171px !important;
    height: 50px !important;
    border-radius: 10px !important;
}

.staff-action-cancel-btn {
    background-color: #ffffff !important;
    color: #E6232F !important;
    font-family: 'Montserrat' !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 25px !important;
    width: 171px !important;
    height: 50px !important;
    border-radius: 10px !important;
    border: 1px solid #E6232F !important;
}
.staff-action-cancel-btn:focus,
.staff-action-cancel-btn:hover {
    box-shadow: none !important;
    outline: none !important;
    background-color: #ffffff !important;
    color: #E6232F !important;
}

.staff-action-confirm-btn:focus,
.staff-action-confirm-btn:hover {
    box-shadow: none !important;
    outline: none !important;
    background-color: #E6232F !important;
    color: #ffffff !important;
}

.no-staff-members-title{
    font-family: 'Montserrat' !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 100% !important;
    color: #000000 !important;
    margin-top: 16px !important;
}

.no-staff-members-description{
    font-family: Montserrat;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    color: #545454 !important;
    margin-top: 10px !important;
}

.no-staff-members-add-btn{
    margin-top: 16px !important;
}

/* =============================================
   Fixed card height & visible scrollbars (all modules)
   ============================================= */

/* Main content area: fixed height and visible scrollbar */
.data {
    max-height: calc(100vh - 70px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-gutter: stable;
}

/* Page-level cards: fixed min height and visible scrollbar */
.data > .card,
.data > .container-fluid.card {
    min-height: calc(100vh - 120px) !important;
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-gutter: stable;
    display: flex !important;
    flex-direction: column !important;
}

.data > .card .card-body,
.data > .container-fluid.card .card-body,
.data > .container-fluid.card > .card-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
    scrollbar-gutter: stable;
}

/* Force visible scrollbars (WebKit) */
.data::-webkit-scrollbar,
.data > .card::-webkit-scrollbar,
.data > .container-fluid.card::-webkit-scrollbar,
.data > .card .card-body::-webkit-scrollbar,
.data > .container-fluid.card .card-body::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.data::-webkit-scrollbar-track,
.data > .card .card-body::-webkit-scrollbar-track,
.data > .container-fluid.card .card-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.data::-webkit-scrollbar-thumb,
.data > .card::-webkit-scrollbar-thumb,
.data > .container-fluid.card::-webkit-scrollbar-thumb,
.data > .card .card-body::-webkit-scrollbar-thumb,
.data > .container-fluid.card .card-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.data::-webkit-scrollbar-thumb:hover,
.data > .card .card-body::-webkit-scrollbar-thumb:hover,
.data > .container-fluid.card .card-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.35);
}

/* Firefox: visible scrollbar */
.data,
.data > .card,
.data > .container-fluid.card,
.data > .card .card-body,
.data > .container-fluid.card .card-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.25) rgba(0, 0, 0, 0.05);
}
