html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1,
h2,
h3,
h4 {
    font-weight: 900;
}

h5,
h6 {
    font-weight: 700;
}

.clear {
    clear: both;
}

a, a:hover, a:active {
    text-decoration: none !important;
}

.text-medium {
    font-size: 1.2em;
}

.text-big {
    font-size: 1.5em;
}

.text-dark-blue {
    color: #0f253c;
}

.text-garnet {
    color: #B34141 !important;
}

.text-orange {
    color: #ED9E2E !important;
}

label {
    font-weight: bold;
}

.fade {
    transition: none;
}

ul.list-li-mb li {
    margin-bottom: 1em;
}

ul.list-li-mb li:last-child {
    margin-bottom: 0;
}

@media (max-width: 575px) {
    .modal-body {
        max-height: calc(100vh - 245px) !important;
    }

    .processes-iframe-modal .modal-body {
        height: calc(100vh - 175px) !important;
        max-height: calc(100vh - 175px) !important;
    }

    .modal-header {
        padding: 0.5rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .modal-footer {
        padding: 0.5rem !important;
        padding-right: 0.75rem;
    }

    .registration-guide-video-button {
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .modal-body {
        max-height: calc(100vh - 150px) !important;
    }

    .processes-iframe-modal .modal-body {
        height: calc(100vh - 100px) !important;
        max-height: calc(100vh - 100px) !important;
    }
}

@media (max-width: 991px) {
    .w-auto-mobile {
        width: auto !important;
    }

    .w-100-mobile {
        width: 100% !important;
    }
}

.modal-body {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

.send-email-modal .modal-body {
    height: calc(100vh - 220px) !important;
    max-height: calc(100vh - 220px) !important;
}

.show-multiple-images-modal .modal-body {
    height: calc(100vh - 220px) !important;
    max-height: calc(100vh - 220px) !important;
}

.loading-modal .modal-dialog {
    display: table;
    position: relative;
    margin: 0 auto;
    top: calc(50% - 24px);
}

.loading-modal .modal-dialog .modal-content {
    background-color: transparent;
    border: none;
}

.errors-modal .multiple-errors {
    margin-bottom: 0 !important;
    padding-left: 1rem;
}

.is-invalid {
    border: 1px solid red;
}

.form-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice, .input-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice, .select2-container--bootstrap .select2-selection--multiple.input-sm .select2-selection__choice {
    font-size: 14px !important;
}

/**
 * Hack to avoid iOS zoom on input fields when focus
 */

@media (max-width: 991px) {
    .form-control-sm,
    .select2-container--bootstrap .select2-search--dropdown .select2-search__field,
    .form-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice,
    .input-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice,
    .select2-container--bootstrap .select2-selection--multiple.input-sm .select2-selection__choice,
    .select2-container--bootstrap .select2-selection--single, .select2-container--bootstrap .select2-selection--multiple {
        font-size: max(1rem, 16px) !important;
    }
}

/**
 * End hack
 */

.custom-control-inline {
    height: calc(1.5em + .5rem - 2px);
}

footer.footer {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.custom-file-input ~ .custom-file-label::after {
    content: "Buscar";
}

.form-optional-input {
    font-weight: normal;
}

.success-modal p {
    margin-bottom: 0 !important;
}

.cursor-default {
    cursor: default !important;
}

.cursor-pointer:not([disabled]) {
    cursor: pointer;
}

.ui-draggable-handle, .ui-sortable-handle {
    cursor: move;
}

.modal-xxl {
    max-width: 95%;
}

.modal-xxxl {
    max-width: 95%;
}

@media (max-width: 992px) {
    .modal-lg, .modal-xl {
        max-width: 95%;
    }
}

.bg-orange {
    background-color: #ED9E2E;
    color: white;
}

.bg-purple {
    background-color: #5B338E;
    color: white;
}

.bg-yellow {
    background-color: #FFBC24;
    color: white;
}

.bg-garnet {
    background-color: #B34141;
    color: white;
}

.bg-blue {
    background-color: #285E8D;
    color: white;
}

.bg-danger-light {
    background-color: #FFA8A8 !important;
}

.bg-warning-light {
    background-color: #FFFFAA !important;
}

.bg-success-light {
    background-color: #A3FEBA !important;
}

.bg-readonly {
    background-color: #e9ecef !important;
}

.bg-blue-light {
    background-color: #8fbfff;
}

.bg-gray {
    background-color: #f5f5f5;
}

.bg-lavender {
    background-color: #7c6c77;
}

.bg-grullo {
    background-color: #8d8d8d;
}

.bg-formal-blue {
    background-color: #545e75;
}

.bg-red-violet {
    background-color: #90323d;
}

.overflow-x-scroll {
    overflow-x: scroll;
}

.overflow-y-scroll {
    overflow-y: scroll;
}

.w-40 {
    width: 40%;
}

.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active, a.ui-button:active, .ui-button:active, .ui-button.ui-state-active:hover {
    background: #69a73e !important;
    border-color: #466b2b !important;
}

/**
 * Summernote
 */

.note-editable {
    white-space: normal;
}

/**
 * Table header sticky
 */

.table-sticky thead th {
    position: sticky;
    z-index: 100;
}

.table-sticky tfoot th {
    position: sticky;
    bottom: 0;
}

/**
 * Form with steps
 */

.form-steps-index {
    padding-left: 0;
    margin-bottom: 30px;
    overflow: hidden;
    color: lightgrey
}

.form-steps-index .active {
    color: #000000
}

.form-steps-index li {
    list-style-type: none;
    width: 25%;
    float: left;
    position: relative
}

.form-steps-index {
    text-align: center;
}

.form-steps-index li:before {
    width: 50px;
    height: 50px;
    line-height: 45px;
    display: block;
    font-size: 18px;
    color: #ffffff;
    background: lightgray;
    border-radius: 50%;
    margin: 0 auto 10px auto;
    padding: 2px
}

.form-steps-index li:after {
    content: '';
    width: 100%;
    height: 2px;
    background: lightgray;
    position: absolute;
    left: 0;
    top: 25px;
    z-index: -1
}

.form-steps-index li.active:before,
.form-steps-index li.active:after {
    background: #6cbd45
}

/**
 * Select2
 */

.select2-container--bootstrap .select2-results__option--highlighted[aria-selected] {
    background-color: #7aaf34 !important;
}

.select2-container--bootstrap .select2-selection.is-invalid {
    border-color: #dc3545;
}

.select2-container--bootstrap .select2-selection.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, .25);
}

.select2-container--bootstrap .select2-selection--single, .select2-container--bootstrap .select2-selection--multiple {
    min-height: 31px !important;
}

@media (min-width: 991px) {
    .select2-container--bootstrap .select2-selection--single, .select2-container--bootstrap .select2-selection--multiple {
        font-size: 14px !important;
    }
}

.select2-container--bootstrap .select2-selection--single {
    height: 31px !important;
}

.select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field {
    min-width: 10em !important;
}

.select2-container--bootstrap .select2-selection--multiple .select2-selection__choice {
    margin: 3px 0 0 3px !important;
}

.select2-dropdown {
    z-index: 9999999999 !important;
}

.rich-search-template-selection {
    max-width: 80%;
    overflow: hidden;
    margin-right: 10px;
}

/**
 * Select2 adapter for mobile devices
 */

body:not(.user-agent-ios).is-mobile .select2-results {
    height: 90% !important;
}

body:not(.user-agent-ios).is-mobile .select2-results__options {
    max-height: 100% !important;
    height: 100% !important;
    overflow-y: scroll !important;
}

body:not(.user-agent-ios).is-mobile .select2-dropdown--below.opened, body.is-mobile .select2-dropdown--above.opened {
    display: block !important;
    position: fixed !important;
    top: 0px !important;
    left: 0px !important;
    background: white !important;
    width: 250px !important;
    height: 100%;
    z-index: 3000 !important;
    border-top-right-radius: 3px !important;
    border-top-left-radius: 3px !important;
    border-top: 1px solid #8ec742 !important;
}

body:not(.user-agent-ios).is-mobile .select2-container--bootstrap.select2-container--open.select2-container--below .select2-selection {
    border-bottom-right-radius: 3px !important;
    border-bottom-left-radius: 3px !important;
    border-bottom-color: #8ec742 !important;
}

/**
 * End Select2 adapter for mobile devices
 */

.dropdown.ml-auto > .dropdown-menu {
    right: 0;
    left: auto !important;
    top: 2.6rem !important;
    transform: none !important;
}

/**
 * Cropper
 */

.crop-image-modal-right .input-group > .input-group-prepend {
    flex: 0 0 30%;
}

.crop-image-modal-right .input-group .input-group-text {
    width: 100%;
}