.dx-blazor-tagbox {
    background-color: transparent !important;

    & .dx-blazor-tag .btn.dxbs-cmd-btn.dxbs-tag-remove-btn {
        color: #000 !important;
        transform: scale(1);

        &:before {
            opacity: 0.25;
            content: "";
            position: absolute;
            z-index: -1;
            width: 100%;
            height: 100%;
            background-color: currentColor;
            left: 0;
            top: 0;
            border-radius: 50%;
        }

        &:focus,
        &:hover {
            &:before {
                opacity: 0.5;
            }
        }

        & > span {
            color: #e4e5e6;
        }
    }
}

.dxbs-toolbar:not(.dxbs-ta-nib) .btn-group .dxbs-toolbar-btn {
    input.form-control {
        border-radius: 3em;
    }

    .input-group-prepend {
        &,
        & > .input-group-text {
            border-radius: 3em 0 0 3em;
        }
    }

    .dxbs-input-group-append, /* bz */
    .input-group-append {
        &,
        & > .input-group-text {
            border-radius: 0 3em 3em 0;
        }

    }
}

// ListBox

.dxbs-listbox {
    &.form-control {
        background-color: #fff;
        border-top: 1px solid rgba(0, 0, 0, 0.125) !important;
        border-left: 1px solid rgba(0, 0, 0, 0.125) !important;
        border-right: 1px solid rgba(0, 0, 0, 0.125) !important;
    }

    &.form-control.card {
        border-bottom-color: rgba(0, 0, 0, 0.3);
        border-bottom-width: 2px;
        border-radius: 0;
    }

    &.card,
    & .card {
        box-shadow: none;
    }
}

.dxbs-focus-hidden {
    @each $color, $value in $theme-colors {
        .btn-#{$color} {
            &:focus,
            &.focus {
                &:not(:hover):not(.hover):not(:active):not(.active) {
                    color: color-yiq($value);
                    @include gradient-bg($value);
                }

                border-color: $value;
                @if $color == "secondary" {
                    &,
                    &:not(:disabled):not(.disabled) {
                        @if $enable-shadows {
                            box-shadow: $btn-box-shadow !important;
                        } @else {
                            box-shadow: none !important;
                        }
                    }
                } @else {
                    @if $enable-shadows {
                        box-shadow: $btn-box-shadow !important;
                    } @else {
                        box-shadow: none !important;
                    }
                }
            }
        }
        .btn-outline-#{$color} {
            &:focus,
            &.focus {
                box-shadow: none !important;
            }
        }
        .btn-group,
        .btn-group-vertical,
        .input-group > .dxbs-input-group-append, /* bz */
        .input-group, /* bs5 */
        .input-group > .input-group-prepend,
        .input-group > .input-group-append {
            .btn-#{$color} {
                &:focus,
                &.focus {
                    box-shadow: none !important;

                    @if $color == "secondary" {
                        &:not(:disabled):not(.disabled) {
                            box-shadow: none !important;
                        }
                    }
                }
            }
        }
        .input-group > .input-group-prepend,
        .input-group > .dxbs-input-group-append, /* bz */
        .input-group, /* bs5 */
        .input-group > .input-group-append {
            & > .btn-#{$color} {
                &:focus,
                &.focus {
                    border-color: $input-border-color;
                    background-color: $input-bg;
                }
            }
        }
    }

    .btn-link {
        &:focus,
        &.focus {
            box-shadow: none !important;
            text-decoration: none;
        }
    }
}

.dxbs-menu {
    .dropdown-menu.dx-dropdown-menu {
        border: 1px solid #e3e3e3;
        border-radius: 2px;
        box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.18);
    }
}

:root {
    --dx-grid-header-color: rgb(251, 252, 252);
    --dx-grid-group-footer-color: rgb(253, 254, 254);
    --dx-grid-footer-color: rgb(251, 252, 252);
    --dx-grid-selection-color: rgb(240, 241, 241);
    --dx-grid-touch-color: rgb(222, 222, 223);

    --dx-calendar-header-hover-color: rgb(233, 233, 234);
    --dx-calendar-table-hover-color: rgb(244, 244, 244);
    --dx-calendar-table-selection-color: rgb(233, 233, 234);
    --dx-calendar-table-active-color: rgb(211, 211, 212);
}