legend {
    font-size: 1rem;
    font-weight: 500;
}

input[type=number] {
    text-align: right;
}

input[type=file] {
    height: auto;
}

.form-errors {
    color: #f00;
    font-weight: bold;
}

.form-group, .input-group {
    position: relative;
}

.form-check-input {
}

.type-checkboxgroup > label {
    font-weight: bold;
    margin-bottom: 0;
}

.labels-hidden label {
    display: none;
}

.labels-hidden .type-checkbox label,
.labels-hidden .type-checkboxgroup label {
    display: block;
    margin-top: .5rem
}

.labels-floating label {
    display: block;
}

.labels-floating .form-control,
.labels-floating button:not(.btn-link) {
    padding: .25rem .5rem .25rem .5rem;
    min-height: calc(2.75rem + 2px);
}

.labels-floating label {
    position: absolute;
    top: 1px;
    left: 1px;
    color: #999;
    padding: .75rem .75rem;
    white-space: nowrap;
    max-width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    pointer-events: none;
    transition: all .1s ease-in-out;
    z-index: 1;
}

.labels-floating .ffl-floated .form-control {
    padding: 1.25rem .5rem .25rem .5rem;
}

.labels-floating .ffl-floated label {
    font-size: .75rem;
    padding: .25rem .5rem;
}

.labels-floating .type-checkbox label,
.labels-floating .type-checkboxgroup label {
    position: inherit;
    overflow: inherit;
    padding: unset;
    pointer-events: inherit;
    color: inherit;
    top: 0; left: 0;
    font-size: inherit;
}

.input-group > .custom-file .custom-file-input:focus~.custom-file-label,
.input-group > .custom-select:focus,
.input-group > .form-control:focus {
    z-index: inherit;
}

.form-inline .form-check {
    padding-left: 1em;
}