div.dt-buttons > .dt-button:focus:not(.disabled), div.dt-buttons > div.dt-button-split .dt-button:focus:not(.disabled) {
    outline: none;
}

.iti--allow-dropdown {
    width: 100%;
}

.iti__selected-flag {
    gap: 4px;
    padding: 0 15px;
}

    .iti__selected-flag:before {
        position: absolute;
        content: "";
        height: 40%;
        top: 50%;
        right: 4px;
        transform: translateY(-50%);
        width: 1px;
        background-color: var(--dark-color);
        opacity: .2;
    }

.iti__selected-dial-code {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-color);
}

.iti__dial-code,
.iti__country-name {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 12px;
}

.iti__country-list {
    width: 100%;
    border: none;
    left: 1px;
}

.iti__country-name {
    width: 80%;
    white-space: pre-wrap;
}

.iti-search-box.input-style {
    width: 100% !important;
    padding-left: 13px !important;
    border-radius: 5px !important;
}

.iti-search-wrapper.inputGroup svg {
    right: 20px;
}

.iti__standard.iti__active {
    background-color: var(--grey-01);
}

.iti #mobile_code {
    padding-left: 112px;
    border-radius: 8px 8px 0 0;
}

.iti:has(.iti__country-list.iti__hide) #mobile_code {
    border-radius: 8px;
}

.iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag,
.iti--separate-dial-code .iti__selected-flag {
    background-color: rgb(255 255 255 / 5%);
}

.flatpickr-day.today {
    border-color: var(--primary-theme-color);
}

.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected.inRange, .flatpickr-day.startRange.inRange, .flatpickr-day.endRange.inRange, .flatpickr-day.selected:focus, .flatpickr-day.startRange:focus, .flatpickr-day.endRange:focus, .flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover, .flatpickr-day.selected.prevMonthDay, .flatpickr-day.startRange.prevMonthDay, .flatpickr-day.endRange.prevMonthDay, .flatpickr-day.selected.nextMonthDay, .flatpickr-day.startRange.nextMonthDay, .flatpickr-day.endRange.nextMonthDay {
    background: var(--primary-theme-color);
    border-color: var(--primary-theme-color);
}

span.flatpickr-weekday,
.flatpickr-current-month input.cur-year,
.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary-theme-color);
}

.flatpickr-day {
    font-weight: 600;
    color: var(--color-slate-700);
}

.flatpickr-calendar {
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: unset !important;
}

.slick-slide > div {
    padding: 0 10px;
    box-sizing: border-box;
}

.slick-list {
    margin: 0 -10px;
}

.multi-tag {
    background-color: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-right: 4px;
    margin-bottom: 4px;
}

.remove-tag {
    margin-left: 6px;
    cursor: pointer;
}

.custom-select-display {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    padding: 4px;
    cursor: pointer;
}

.switch {
    display: inline-block;
    border: none;
    background-color: var(--light-color);
    height: 43px;
    width: 70px;
    font-weight: 600;
    color: green;
    border: 1px solid var(--input-border-color);
    box-shadow: 0 0px 4px #919eab1f;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}


    .switch input {
        opacity: 0;
        position: absolute;
        height: 100%;
        width: 100%;
        z-index: 999;
        cursor: pointer;
    }

.custom-select {
    position: relative;
    display: inline-block;
    width: 100%;
}
/* .custom-select:has(.CustomDateFilter){
            width:auto;
        }*/
.custom-select__button > span {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 150px;
    margin-bottom: -5px;
}

.custom-select__button {
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--input-border-color);
    box-shadow: 0 0px 4px #919eab1f;
    color: var(--dark-color);
    background-color: var(--light-color);
    border-radius: .375rem;
    line-height: 1.4;
    padding: 7px 35px 7px 10px !important;
    cursor: pointer;
}

.modal-body .sharing-box .custom-select__button {
    background-color: var(--light-color) !important;
}

.offcanvas .custom-select-display,
.offcanvas .custom-select__button {
    display: block;
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--input-border-color);
    padding: 8px 13px !important;
    height: 45px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: none;
    line-height: 1.8;
    color: #444050;
    background-color: var(--input-bg-color);
}

.offcanvas .custom-select__button {
    padding-right: 28px !important;
}

.offcanvas .custom-select__list {
    max-height: 200px;
    overflow: auto;
}

.offcanvas .details .custom-select-display,
.offcanvas .details .custom-select__button {
    background-color: var(--light-color);
}

    .offcanvas .details .custom-select__button span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }

.modal-body .custom-select__button:not(.modal-body .flatpickr-current-month .custom-select__button) {
    display: block;
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--input-border-color);
    padding: 8px 13px !important;
    height: 45px;
    font-size: 14px;
    font-weight: 500;
    line-height: 28px;
    color: #444050;
    box-shadow: none;
    background-color: var(--input-bg-color);
}

.modal-body .custom-select__button span:not(.modal-body .flatpickr-current-month .custom-select__button span) {
    font-size: 14px;
    font-weight: 500;
    color: #444050;
    line-height: 1.95;
    display: inline-block;
    max-width: 92%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select__caret {
    margin-left: 8px;
    transition: 0.2s ease;
}

.custom-select.open .custom-select__caret {
    transform: rotate(180deg);
}

.custom-select__list {
    position: absolute;
    padding: 5px;
    top: 115%;
    left: 0;
    width: 100%;
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: none;
    z-index: 100;
    list-style: none;
}

.modal-body .custom-select__list {
    max-height: 167px;
    overflow: auto;
    border: 1px solid var(--input-border-color);
    background-color: var(--input-bg-color);
    box-shadow: none;
}

.custom-select__search {
    width: 97.2%;
    border: none;
    margin: 5px 5px 9px;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.05);
    background: #ffffff;
    font-size: 13px;
    outline: none;
    position: sticky;
    top: 0;
}

.custom-select.open .custom-select__list {
    display: block;
}

#couponFilterBar .coupon-option-filter .custom-select {
    min-width: 180px;
}

#couponFilterBar #couponDateRangeParent,
#couponFilterBar #couponDateRange {
    width: 250px;
}

#couponFilterBar #couponDateRange {
    padding-left: 40px;
}

@media (max-width: 575px) {
    #couponFilterBar #couponDateRangeParent,
    #couponFilterBar #couponDateRange {
        width: 100%;
    }
}

#couponFilterBar .coupon-option-filter .custom-select__list {
    width: max-content;
    min-width: 100%;
}

#couponFilterBar .coupon-option-filter .custom-select__button span,
#couponFilterBar .coupon-option-filter .custom-select__item {
    white-space: nowrap;
    word-break: normal;
}

#couponFilterBar .coupon-status-filter .custom-select__list {
    width: max-content;
    min-width: 120px;
}

#couponFilterBar .coupon-status-filter .custom-select__item {
    white-space: nowrap;
    word-break: normal;
}

.custom-select__item {
    padding: 9px 10px 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-slate-700);
    transition: all 0.2s ease;
    border-radius: 5px;
    word-break: break-all;
}

    .custom-select__item:hover {
        background: var(--primary-light-theme-color);
        color: var(--primary-theme-color);
    }

    /*.modal-body .custom-select__item:hover {
    background: var( --light-color);
}*/

    .custom-select__item.active {
        background-color: var(--primary-theme-color);
        color: #fff;
    }

.custom-select:has(.CustomDateFilter) .custom-select__button {
    width: 150px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.dt-length .custom-select__item {
    text-align: center;
}

table.dataTable thead tr > .dtfc-fixed-left, table.dataTable thead tr > .dtfc-fixed-right, table.dataTable tfoot tr > .dtfc-fixed-left, table.dataTable tfoot tr > .dtfc-fixed-right {
    background-color: var(--table-th-bg);
    padding: 8px 15px;
    white-space: nowrap;
    border-right: 1px solid #ffffff;
}

.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month {
    top: -4px;
}

.tippy-content {
    padding: 3px 5px;
    font-size: 12px;
    color: var(--dark-color);
    word-break: break-all;
}

.tippy-box {
    border-radius: 5px;
    background-color: var(--light-color) !important;
    border: 1px solid var(--light-border-color);
    box-shadow: #919eab33 0px 0px 2px 0px, #919eab1f 0px 12px 24px -4px;
}

.tippy-arrow {
    color: var(--light-color);
}

.custom-select:has(.has-multi) .custom-select__button {
    font-size: 14px;
}

.details .custom-select .custom-select__search {
    background-color: var(--grey-01);
    border: 1px solid var(--light-border-color);
    box-shadow: none;
    margin-bottom: 3px;
}

.custom-select__no-data {
    background-color: var(--grey-01);
    border: 1px solid var(--light-border-color);
    width: 97.2%;
    margin: 0px 5px 4px;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    font-size: 14px;
    color: var(--label-color);
    font-weight: 500;
    opacity: .7;
}

.modal-body .custom-select__no-data {
    background: #ffffff;
}

.tooltip {
    z-index: 99;
}

    .tooltip.remark-tooltip-custom {
        width: 500px !important;
        max-width: 100%;
    }

        .tooltip.remark-tooltip-custom .tooltip-inner {
            max-width: 100% !important;
        }

button:disabled {
    cursor: no-drop;
}

.text-primary {
    color: var(--primary-theme-color) !important;
}

.input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating) {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.inputGroup {
    position: relative;
}

#menuSearchResults {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 8px 16px rgba(0,0,0,0.08), 0 24px 60px rgba(0,0,0,0.14);
    z-index: 99999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px) scale(0.985);
    transition: opacity 0.18s ease, transform 0.18s ease;
    max-height: 460px;
}

    #menuSearchResults.msr-open {
        display: flex;
        opacity: 1;
        transform: translateY(0) scale(1);
    }

[data-theme="dark"] #menuSearchResults {
    background: #181b2e;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.07), 0 8px 16px rgba(0,0,0,0.3), 0 24px 60px rgba(0,0,0,0.45);
}

.msr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px 11px;
    border-bottom: 1.5px solid #f1f5f9;
    flex-shrink: 0;
}

[data-theme="dark"] .msr-header {
    border-bottom-color: rgba(255,255,255,0.07);
}

.msr-header-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #94a3b8;
    font-family: inherit;
}

.msr-count-badge {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.msr-list {
    overflow-y: auto;
    flex: 1;
    padding: 7px 8px 6px;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}

    .msr-list::-webkit-scrollbar {
        width: 4px;
    }

    .msr-list::-webkit-scrollbar-thumb {
        background: #e2e8f0;
        border-radius: 4px;
    }

[data-theme="dark"] .msr-list::-webkit-scrollbar-thumb {
    background: #2d3252;
}

.msr-item {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    padding: 9px 10px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    color: inherit !important;
    position: relative !important;
    margin-bottom: 1px !important;
    transition: background 0.13s ease, transform 0.1s ease !important;
    border: none !important;
    background: transparent !important;
}

    .msr-item:hover,
    .msr-item:focus {
        background: linear-gradient(135deg, rgba(0,180,216,0.09) 0%, rgba(0,119,182,0.06) 100%) !important;
        transform: translateX(3px) !important;
        outline: none !important;
        text-decoration: none !important;
        color: inherit !important;
    }

    .msr-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%) scaleY(0);
        width: 3px;
        height: 55%;
        background: linear-gradient(180deg, #00b4d8, #0077b6);
        border-radius: 0 3px 3px 0;
        transition: transform 0.15s ease;
    }

    .msr-item:hover::before,
    .msr-item:focus::before {
        transform: translateY(-50%) scaleY(1);
    }

.msr-icon-box {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(0,180,216,0.13), rgba(0,119,182,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.13s ease;
}

.msr-item:hover .msr-icon-box,
.msr-item:focus .msr-icon-box {
    background: linear-gradient(135deg, rgba(0,180,216,0.22), rgba(0,119,182,0.15));
}

.msr-text-group {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.msr-parent-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #94a3b8;
    display: block;
    line-height: 1;
}

[data-theme="dark"] .msr-parent-label {
    color: #4a5578;
}

.msr-item-name {
    font-size: 13.5px;
    font-weight: 500;
    color: #1e293b;
    display: block;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .msr-item-name {
    color: #e2e8f0;
}

.msr-chevron {
    flex-shrink: 0;
    color: #00b4d8;
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity 0.13s ease, transform 0.13s ease;
}

.msr-item:hover .msr-chevron,
.msr-item:focus .msr-chevron {
    opacity: 1;
    transform: translateX(0);
}

.msr-highlight {
    background: rgba(255, 200, 0, 0.4);
    border-radius: 3px;
    padding: 0 2px;
    font-weight: 700;
}

.msr-empty {
    padding: 36px 20px;
    text-align: center;
}

.msr-empty-circle {
    width: 52px;
    height: 52px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

[data-theme="dark"] .msr-empty-circle {
    background: #1e2540;
}

.msr-empty-title {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 5px;
}

.msr-empty-hint {
    font-size: 12px;
    color: #94a3b8;
}

.msr-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 16px;
    border-top: 1.5px solid #f1f5f9;
    flex-shrink: 0;
    background: #fafbfd;
}

[data-theme="dark"] .msr-footer {
    border-top-color: rgba(255,255,255,0.07);
    background: #151828;
}

.msr-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #94a3b8;
}

.msr-kbd {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-bottom-width: 2.5px;
    border-radius: 5px;
    padding: 1px 6px;
    font-size: 10px;
    font-family: monospace;
    color: #64748b;
    line-height: 1.7;
    display: inline-block;
}

[data-theme="dark"] .msr-kbd {
    background: #1e2540;
    border-color: #334155;
    color: #94a3b8;
}

.required-star {
    color: red
}

.page-details {
    opacity: 0;
    transition: opacity 0.15s ease;
}

    .page-details.css-loaded {
        opacity: 1;
    }

.form-select.flatpickr-input.active {
    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 11 6-6 6 6'/%3e%3c/svg%3e") !important;
}

.custom-popup-loader {
    position: absolute;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,.7);
    z-index: 99999;
}

.custom-datatable-loader {
    position: absolute;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,.8);
    z-index: 9999;
}

.datatableloading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

    .datatableloading::after {
        content: '';
        position: absolute;
        width: 18px;
        height: 18px;
        top: 50%;
        left: 50%;
        margin-left: -9px;
        margin-top: -9px;
        border: 2px solid #fff;
        border-top-color: transparent;
        border-radius: 50%;
        animation: btn-spin .7s linear infinite;
    }

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Shared visibility control for the Web and Dashboard user-type matrices. */
.rbac-visibility-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    margin: 0;
    padding: 5px 9px;
    border: 1px solid var(--input-border-color);
    border-radius: 6px;
    background: var(--input-bg-color);
    cursor: pointer;
    white-space: nowrap;
    vertical-align: middle;
}

    .rbac-visibility-control input {
        position: absolute;
        width: 34px;
        height: 20px;
        margin: 0;
        opacity: 0;
    }

.rbac-visibility-track {
    position: relative;
    flex: 0 0 34px;
    width: 34px;
    height: 20px;
    border-radius: 20px;
    background: var(--light-text-color);
    transition: background .15s ease;
}

    .rbac-visibility-track::after {
        content: '';
        position: absolute;
        top: 3px;
        left: 3px;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
        transition: transform .15s ease;
    }

.rbac-visibility-control input:checked + .rbac-visibility-track {
    background: var(--primary-theme-color);
}

    .rbac-visibility-control input:checked + .rbac-visibility-track::after {
        transform: translateX(14px);
    }

.rbac-visibility-control input:focus-visible + .rbac-visibility-track {
    outline: 2px solid var(--secondary-theme-color);
    outline-offset: 3px;
}

.rbac-visibility-state {
    color: var(--light-secondary-text-color);
    font-size: 12px;
    font-weight: 600;
}

.rbac-visibility-control input:checked ~ .rbac-visibility-state {
    color: var(--secondary-theme-color);
}

    .rbac-visibility-on, .rbac-visibility-control input:checked ~ .rbac-visibility-state .rbac-visibility-off {
        display: none;
    }

    .rbac-visibility-control input:checked ~ .rbac-visibility-state .rbac-visibility-on {
        display: inline;
    }

.rbac-visibility-control.is-protected {
    cursor: not-allowed;
}

.rbac-visibility-control input:disabled + .rbac-visibility-track {
    opacity: .6;
}

.rbac-visibility-master {
    gap: 10px;
    padding: 7px 10px;
    border-color: transparent;
    background: var(--primary-light-theme-color);
}

    .rbac-visibility-master:hover {
        border-color: var(--primary-theme-color);
    }

.rbac-visibility-master-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

    .rbac-visibility-master-text strong {
        color: var(--secondary-theme-color);
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
    }

    .rbac-visibility-master-text small {
        color: var(--light-secondary-text-color);
        font-size: 10px;
        font-weight: 400;
        line-height: 1.2;
    }

.rbac-visibility-master input:indeterminate + .rbac-visibility-track {
    background: var(--primary-theme-color);
}

    .rbac-visibility-master input:indeterminate + .rbac-visibility-track::after {
        transform: translateX(7px);
    }

@media (prefers-reduced-motion: reduce) {
    .rbac-visibility-track, .rbac-visibility-track::after {
        transition: none;
    }
}
