
:required {
    background-color: var(--color-primary-50);
    border-color: var(--color-primary);
}

    :required:disabled {
        border-color: #b3b5b7 !important;
        background-color: #4e4e4e21 !important;
    }

    :required:read-only {
        border-color: #b3b5b7 !important;
        background-color: #4e4e4e21 !important;
    }

.select2-container--bootstrap4.select2-container--disabled .select2-selection {
    border-color: #b3b5b7 !important;
    background-color: #4e4e4e21 !important;
}

.form-control:focus:required {
    color: #495057;
    background-color: var(--color-primary-50);
    border-color: var(--color-primary);
    box-shadow: none;
    outline: 0;
}

.valid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    color: #28a745;
}

.valid-tooltip {
    position: absolute;
    top: 100%;
    z-index: 5;
    display: none;
    max-width: 100%;
    padding: 0.25rem 0.5rem;
    margin-top: .1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #ffffff;
    background-color: rgba(40, 167, 69, 0.9);
    border-radius: 0.25rem;
}

.was-validated .form-control.has-success {
    border-color: #28a745;
    background-color: #cfe7e6;
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center right calc(0.775em + 0.1875rem);
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .input-group-text.has-success {
    border-color: #28a745;
    background-color: #cfe7e6;
}

.was-validated .form-control-left-bold-icon.has-success {
    border-color: #28a745;
    background-color: #cfe7e6;
}

    .was-validated .form-control.has-success:focus {
        border-color: #28a745;
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.25);
    }

    .was-validated .form-control.has-success ~ .valid-feedback,
    .was-validated .form-control.has-success ~ .valid-tooltip {
        display: block;
    }

.was-validated textarea.form-control.has-success {
    padding-right: 2.25rem;
    background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem);
}

.was-validated .custom-select.has-success {
    border-color: #28a745;
    padding-right: calc((1em + 0.75rem) * 3 / 4 + 1.75rem);
    background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right 0.75rem center/8px 10px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") #ffffff no-repeat center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

    .was-validated .custom-select.has-success:focus {
        border-color: #28a745;
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.25);
    }

    .was-validated .custom-select.has-success ~ .valid-feedback,
    .was-validated .custom-select.has-success ~ .valid-tooltip {
        display: block;
    }

.was-validated .form-control-file.has-success ~ .valid-feedback,
.was-validated .form-control-file.has-success ~ .valid-tooltip {
    display: block;
}

.was-validated .form-check-input.has-success ~ .form-check-label {
    color: #28a745;
}

.was-validated .form-check-input.has-success ~ .valid-feedback,
.was-validated .form-check-input.has-success ~ .valid-tooltip {
    display: block;
}

.was-validated .custom-control-input.has-success ~ .custom-control-label {
    color: #28a745;
}

    .was-validated .custom-control-input.has-success ~ .custom-control-label::before {
        border-color: #28a745;
    }

.was-validated .custom-control-input.has-success ~ .valid-feedback,
.was-validated .custom-control-input.has-success ~ .valid-tooltip {
    display: block;
}

.was-validated .custom-control-input.has-success:checked ~ .custom-control-label::before {
    border-color: #34ce57;
    background-color: #34ce57;
}

.was-validated .custom-control-input.has-success:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.25);
}

.was-validated .custom-control-input.has-success:focus:not(:checked) ~ .custom-control-label::before {
    border-color: #28a745;
}

.was-validated .custom-file-input.has-success ~ .custom-file-label {
    border-color: #28a745;
}

.was-validated .custom-file-input.has-success ~ .valid-feedback,
.was-validated .custom-file-input.has-success ~ .valid-tooltip {
    display: block;
}

.was-validated .custom-file-input.has-success:focus ~ .custom-file-label {
    border-color: #28a745;
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.25);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    font-weight: 400;
    color: #dc3545;
}

.invalid-tooltip {
    position: absolute;
    top: 100%;
    z-index: 5;
    display: none;
    max-width: 100%;
    padding: 0.25rem 0.5rem;
    margin-top: .1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #ffffff;
    background-color: rgba(220, 53, 69, 0.9);
    border-radius: 0.25rem;
}

.was-validated .form-control.has-danger {
    border-color: #dc3545;
    background-color: #f6ced2;
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E");
    background-repeat: no-repeat;
    background-position: center right calc(0.775em + 0.1875rem);
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .input-group-text.has-danger {
    border-color: #dc3545;
    background-color: #f6ced2;
}

.was-validated .form-control-left-bold-icon.has-danger {
    border-color: #dc3545;
    background-color: #f6ced2;
}

    .was-validated .form-control.has-danger:focus {
        border-color: #dc3545;
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.25);
    }

    .was-validated .form-control.has-danger ~ .invalid-feedback,
    .was-validated .form-control.has-danger ~ .invalid-tooltip {
        display: block;
    }

.was-validated .checkButton.has-danger ~ .invalid-feedback,
.was-validated .checkButton.has-danger ~ .invalid-tooltip {
    display: block;
}

.was-validated textarea.form-control.has-danger {
    padding-right: 2.25rem;
    background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem);
}

.was-validated .custom-select.has-danger {
    border-color: #dc3545;
    padding-right: calc((1em + 0.75rem) * 3 / 4 + 1.75rem);
    background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right 0.75rem center/8px 10px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E") #ffffff no-repeat center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

    .was-validated .custom-select.has-danger:focus {
        border-color: #dc3545;
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.25);
    }

    .was-validated .custom-select.has-danger ~ .invalid-feedback,
    .was-validated .custom-select.has-danger ~ .invalid-tooltip {
        display: block;
    }

.was-validated .form-control-file.has-danger ~ .invalid-feedback,
.was-validated .form-control-file.has-danger ~ .invalid-tooltip {
    display: block;
}

.was-validated .form-check-input.has-danger ~ .form-check-label {
    color: #dc3545;
}

.was-validated .form-check-input.has-danger ~ .invalid-feedback,
.was-validated .form-check-input.has-danger ~ .invalid-tooltip {
    display: block;
}

.was-validated .custom-control-input.has-danger ~ .custom-control-label {
    color: #dc3545;
}

    .was-validated .custom-control-input.has-danger ~ .custom-control-label::before {
        border-color: #dc3545;
    }

.was-validated .custom-control-input.has-danger ~ .invalid-feedback,
.was-validated .custom-control-input.has-danger ~ .invalid-tooltip {
    display: block;
}

.was-validated .custom-control-input.has-danger:checked ~ .custom-control-label::before {
    border-color: #e4606d;
    background-color: #e4606d;
}

.was-validated .custom-control-input.has-danger:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.25);
}

.was-validated .custom-control-input.has-danger:focus:not(:checked) ~ .custom-control-label::before {
    border-color: #dc3545;
}

.was-validated .custom-file-input.has-danger ~ .custom-file-label {
    border-color: #dc3545;
}

.was-validated .custom-file-input.has-danger ~ .invalid-feedback,
.was-validated .custom-file-input.has-danger ~ .invalid-tooltip {
    display: block;
}

.was-validated .custom-file-input.has-danger:focus ~ .custom-file-label {
    border-color: #dc3545;
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.25);
}

/*#region Parsley Input Validation */

.was-validated .form-control.has-success {
    border-color: #28a745;
    background-color: #cfe7e6;
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center right calc(0.375em + 0.1875rem);
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control.has-success:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.25);
}

.was-validated .form-control.has-success ~ .valid-feedback,
.was-validated .form-control.has-success ~ .valid-tooltip {
    display: block;
}

.was-validated textarea.form-control.has-success {
    padding-right: 2.25rem;
    background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem);
}

.was-validated .custom-select.has-success {
    border-color: #28a745;
    padding-right: calc((1em + 0.75rem) * 3 / 4 + 1.75rem);
    background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right 0.75rem center/8px 10px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") #ffffff no-repeat center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .custom-select.has-success:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.25);
}

.was-validated .custom-select.has-success ~ .valid-feedback,
.was-validated .custom-select.has-success ~ .valid-tooltip {
    display: block;
}

.was-validated .form-control-file.has-success ~ .valid-feedback,
.was-validated .form-control-file.has-success ~ .valid-tooltip {
    display: block;
}

.was-validated .form-check-input.has-success ~ .form-check-label {
    color: #28a745;
}

.was-validated .form-check-input.has-success ~ .valid-feedback,
.was-validated .form-check-input.has-success ~ .valid-tooltip {
    display: block;
}

.was-validated .custom-control-input.has-success ~ .custom-control-label {
    color: #28a745;
}

.was-validated .custom-control-input.has-success ~ .custom-control-label::before {
    border-color: #28a745;
}

.was-validated .custom-control-input.has-success ~ .valid-feedback,
.was-validated .custom-control-input.has-success ~ .valid-tooltip {
    display: block;
}

.was-validated .custom-control-input.has-success:checked ~ .custom-control-label::before {
    border-color: #34ce57;
    background-color: #34ce57;
}

.was-validated .custom-control-input.has-success:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.25);
}

.was-validated .custom-control-input.has-success:focus:not(:checked) ~ .custom-control-label::before {
    border-color: #28a745;
}

.was-validated .custom-file-input.has-success ~ .custom-file-label {
    border-color: #28a745;
}

.was-validated .custom-file-input.has-success ~ .valid-feedback,
.was-validated .custom-file-input.has-success ~ .valid-tooltip {
    display: block;
}

.was-validated .custom-file-input.has-success:focus ~ .custom-file-label {
    border-color: #28a745;
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.25);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    font-weight: 400;
    color: #dc3545;
}

.invalid-tooltip {
    position: absolute;
    top: 100%;
    z-index: 5;
    display: none;
    max-width: 100%;
    padding: 0.25rem 0.5rem;
    margin-top: .1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #ffffff;
    background-color: rgba(220, 53, 69, 0.9);
    border-radius: 0.25rem;
}

.was-validated .form-control.has-danger {
    border-color: #dc3545;
    background-color: #f6ced2;
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E");
    background-repeat: no-repeat;
    background-position: center right calc(0.375em + 0.1875rem);
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control.has-danger:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.25);
}

.was-validated .form-control.has-danger ~ .invalid-feedback,
.was-validated .form-control.has-danger ~ .invalid-tooltip {
    display: block;
}

.was-validated textarea.form-control.has-danger {
    padding-right: 2.25rem;
    background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem);
}

.was-validated .custom-select.has-danger {
    border-color: #dc3545;
    padding-right: calc((1em + 0.75rem) * 3 / 4 + 1.75rem);
    background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right 0.75rem center/8px 10px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E") #ffffff no-repeat center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .custom-select.has-danger:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.25);
}

.was-validated .custom-select.has-danger ~ .invalid-feedback,
.was-validated .custom-select.has-danger ~ .invalid-tooltip {
    display: block;
}

.was-validated .form-control-file.has-danger ~ .invalid-feedback,
.was-validated .form-control-file.has-danger ~ .invalid-tooltip {
    display: block;
}

.was-validated .form-check-input.has-danger ~ .form-check-label {
    color: #dc3545;
}

.was-validated .form-check-input.has-danger ~ .invalid-feedback,
.was-validated .form-check-input.has-danger ~ .invalid-tooltip {
    display: block;
}

.was-validated .custom-control-input.has-danger ~ .custom-control-label {
    color: #dc3545;
}

.was-validated .custom-control-input.has-danger ~ .custom-control-label::before {
    border-color: #dc3545;
}

.was-validated .custom-control-input.has-danger ~ .invalid-feedback,
.was-validated .custom-control-input.has-danger ~ .invalid-tooltip {
    display: block;
}

.was-validated .custom-control-input.has-danger:checked ~ .custom-control-label::before {
    border-color: #e4606d;
    background-color: #e4606d;
}

.was-validated .custom-control-input.has-danger:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.25);
}

.was-validated .custom-control-input.has-danger:focus:not(:checked) ~ .custom-control-label::before {
    border-color: #dc3545;
}

.was-validated .custom-file-input.has-danger ~ .custom-file-label {
    border-color: #dc3545;
}

.was-validated .custom-file-input.has-danger ~ .invalid-feedback,
.was-validated .custom-file-input.has-danger ~ .invalid-tooltip {
    display: block;
}

.was-validated .custom-file-input.has-danger:focus ~ .custom-file-label {
    border-color: #dc3545;
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.25);
}

/*#endregion Parsley Input Validation */