.form-control[readonly]:not([disabled]).dx-reset-readonly-style {
    background-color: $input-bg;
}

.dxbs-gridview {
    font-size: 0.8125rem;

    & > .card > .card-header,
    & > .card-header,
    & > .card > .card-body,
    & > .card-body,
    & > .card > .card-footer,
    & > .card-footer {
        padding: 0.375rem !important;
    }

    & > .card > .card-body.dxbs-pager > .card-body {
        padding-bottom: 0 !important;
    }

    .dxbs-fixed-header-content > button.btn.btn-link,
    .dxbs-grid-edit-form .dxbs-fl-ctrl > button.btn.btn-link,
    .dxbs-cmd-cell > button.btn.btn-link {
        font-size: 0.8125rem;
    }
}

.dx-dragging-state {
    &,
    .dxbs-fixed-header-content > button.btn.btn-link,
    .dxbs-cmd-cell > button.btn.btn-link {
        font-size: 0.8125rem;
    }
}

.dxbs-fl.form-horizontal > .row:first-child {
    margin-top: .5rem;
}

.dxbs-fl .form-group {
    margin-bottom: .5rem;
}

.dx-blazor-tagbox .dx-blazor-tag .btn.dxbs-cmd-btn.dxbs-tag-remove-btn {
    @mixin child-outside($offset) {
        &:before {
            @content;
            width: calc(100% + #{2 * $offset});
            height: calc(100% + #{2 * $offset});
            left: -$offset;
            top: -$offset;
        }
    }

    &:not(:focus):not(:hover) {
        color: #737373 !important;
    }

    &:focus,
    &:hover {
        color: #fff !important;
        @include child-outside(.408em) {
            opacity: 1;
            background-color: $blue;
        }
    }

    &.btn-sm:focus,
    &.btn-sm:hover {
        @include child-outside(.204em);
    }
}

.dxbs-focus-hidden {
    @each $color, $value in $theme-colors {
        .btn-#{$color} {
            &:focus,
            &.focus {
                @if $color == "secondary" {
                    &:not(:hover):not(.hover):not(:active):not(.active) {
                        color: #212529;
                        background-color: #fff;
                    }
                    border-color: #fff;
                    &:not(:disabled):not(.disabled) {
                        box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.2) !important;
                    }
                } @else {
                    &:not(:hover):not(.hover):not(:active):not(.active) {
                        color: color-yiq($value);
                        @include gradient-bg($value);
                    }
                    border-color: $value;
                }
                box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.2) !important;
            }
        }
        .btn-outline-#{$color} {
            &:focus,
            &.focus {
                box-shadow: none !important;
            }
        }
        .btn-group,
        .btn-group-vertical,
        .input-group > .input-group-prepend,
        .input-group > .dxbs-input-group-append, /* bz */
        .input-group, /* bs5 */
        .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;
                }
            }
        }
    }

    .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(246, 246, 246);
    --dx-grid-group-footer-color: rgb(251, 251, 251);
    --dx-grid-footer-color: rgb(246, 246, 246);
    --dx-grid-selection-color: rgb(237, 237, 237);
    --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);
}

