html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Begin custom classes */

.element-h6 {
    font-size: 1em;
    font-weight: 700;
}

.muted-color {
   color: #6c757d !important;
}

.theme-main-color {
    color: #00bcd4;
}

.theme-secondary-color {
    color: #f96332;
}

.cyan {
    background-color: #17a2b8;
    color: white;
}

h4, h5 {
    font-weight: bold;
}

.btn-bs-primary {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-bs-primary:hover {
    color: #fff;
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.float-end{
    float: inline-end;
}

.float-start {
    float: inline-start;
}

.form-control-valid {
    border-color: #18ce0f !important;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2318ce0f' d='M2.3 6.73.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: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

    .form-control-valid:focus {
        border-color: #18ce0f !important;
        box-shadow: 0 0 0 .10rem rgba(40, 167, 69, 0.25);
    }

.form-control-icon-valid {
    border-color: #18ce0f !important;
    padding-right: calc(1.5em + .75rem);
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

    .form-control-icon-valid:focus {
        border-color: #18ce0f !important;
        box-shadow: 0 0 0 .10rem rgba(40, 167, 69, 0.25);
    }

.form-control-invalid {
    border-color: #FF3636 !important;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23FF3636'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

    .form-control-invalid:focus {
        border-color: #FF3636 !important;
        box-shadow: 0 0 0 .10rem rgba(255, 54, 54, 0.25);
    }

.form-control-icon-invalid {
    border-color: #FF3636 !important;
    padding-right: calc(1.5em + .75rem);
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

    .form-control-icon-invalid:focus {
        border-color: #FF3636 !important;
        box-shadow: 0 0 0 .10rem rgba(255, 54, 54, 0.25);
    }

.dataTables_length select {
    border-radius: 5px;
    padding: 5px;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
}

li::marker {
    content: none;
}

.custom-dropdown-menu {
    max-width: 150px !important;
    right: 0 !important; 
    top: 25px !important; 
    left: -135px !important; 
    transform: none !important; 
}

.spinner-border {
    border-radius: 80%;
    border-style: solid;
    border-width: 2px; 
    width: 20px;
    height: 20px;
    border-top-color: transparent;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* End custom classes */

/* Begin overriding the Bootbox */
.table {
    width: 100% !important;
}

.modal-footer {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    background-color: var(--bs-modal-footer-bg);
    border-top: var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);
    border-bottom-right-radius: var(--bs-modal-inner-border-radius);
    border-bottom-left-radius: var(--bs-modal-inner-border-radius);
    justify-content: end !important;
}

.modal-content .modal-footer button {
    margin: 5px;
    padding-left: 16px;
    padding-right: 16px;
    width: auto;
}

.bootbox-close-button {
    top: unset !important;
    padding: unset !important;
}

/* End overriding the Bootbox */

/* Start overriding the Select2 */

.select2-container--bootstrap4 .select2-selection--single {
    height: calc(2.25rem + 2px); 
    border: 1px solid #ced4da; 
    border-radius: 50px; 
    padding: 0.375rem 0.75rem; 
    color: #999; 
}

.select2-container--bootstrap4 .select2-selection__arrow {
    height: calc(2.25rem + 2px);
    top: 0;
    right: 10px; 
}

.select2-container--bootstrap4 .select2-dropdown {
    background-color: #fff; 
    max-height: 320px; 
    overflow-y: auto; 
    border-radius: 0.25rem; 
    border: 1px solid #ced4da; 
    box-shadow: 0px 10px 50px 0px rgba(0,0,0,0.2); 
    font-family: 'Muli', Arial, Tahoma, sans-serif;
    font-size: .8571em;
    font-weight: 400;
    padding-top: .5rem;
    padding-bottom: .5rem;
    margin-top: 5px;
}

.select2-container--bootstrap4 .select2-results__options {
    max-height: 300px; 
}

    .select2-container--bootstrap4 .select2-results__options::-webkit-scrollbar {
        width: 8px; 
    }

    .select2-container--bootstrap4 .select2-results__options::-webkit-scrollbar-thumb {
        background-color: #ced4da; 
        border-radius: 10px; 
    }

.select2-container--bootstrap4 .select2-results__option {
    padding: 0.375rem 1.25rem; 
    color: #495057; 
    font-size: 1rem; 
    cursor: pointer; 
}

.select2-container--bootstrap4 .select2-results__option--highlighted,
.select2-container--bootstrap4 .select2-results__option--selected {
    background-color: #ccc; 
    color: black;
}

.select2-container--bootstrap4 .select2-search--dropdown .select2-search__field {
    width: 100%;
    padding: 0.375rem 0.75rem;
    border: 1px solid #f96332; 
    border-radius: 50px; 
    margin-bottom: 8px; 
    margin-top: 10px; 
}

.select2-container--bootstrap4 .select2-results__option[aria-disabled=true] {
    background-color: #e9ecef;
    color: #6c757d; 
    cursor: not-allowed; 
}

.select2-container--bootstrap4 .select2-dropdown {
    z-index: 1050; 
}

/* End overriding the Select2 */