label.required:after, legend.required:after {
    content: "*";
}

input:required, select:required {
    background-color: #fffadd;
    border-color: #bbbbbb;
}

.role-tree-list {
    list-style-type: none;
    padding-inline-start: 20px;
    padding-top: calc(0.5rem + 1px);
}

.role-tree-list > ul {
    list-style-type: none;
    padding-inline-start: 20px;
}

.select2-selection:focus, .select2-selection[aria-expanded="true"] {
    border-color: #8a92a6;
}

.select2-selection {
    background-color: #fff;
    border: 0;
    border-radius: 0;
    color: #555555;
    font-size: 14px;
    outline: 0;
    min-height: 48px;
    text-align: left;
}

.form-select-sm + .select2-container {
    .select2-selection {
        min-height: 30px;
    }

    .select2-selection__rendered {
        margin: 0;
    }

    .select2-selection__arrow {
        margin: 0;
    }
}

.select2-container {
    margin-top: 6px;
}

.select2-selection__rendered {
    margin: 10px;
}

/** Only for multiselect */
.select2-selection--multiple > .select2-selection__rendered {
    white-space: normal !important;
}

.select2-selection__arrow {
    margin: 10px;
}

/** Center the clear (x) button vertically (the library default sticks it to the top), left of the arrow */
.select2-container.select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute;
    top: 50%;
    right: 32px;
    float: none;
    height: auto;
    margin: 0;
    line-height: 1;
    transform: translateY(-50%);
}

.form-select-sm + .select2-container.select2-container--default .select2-selection--single .select2-selection__clear {
    right: 24px;
}

.invalid-feedback {
    white-space: normal;
}

.form-control-sm {
    padding: 0.2rem 0.5rem !important;
}
/** A checkbox centered in a table cell (the form-check wrapper floats the input and has a left padding) */
.checkbox-center .form-check {
    display: flex;
    justify-content: center;
    margin: 0;
    padding-left: 0;
}

.checkbox-center .form-check-input {
    float: none;
    margin: 0;
}
