/*****Bootstrap elements*****/

.alert {
  padding-right: 2.3rem;
  border-radius: 0;
}

.alert svg {
  transform: scale(1.2);
}

.breadcrumb {
  background-color: transparent;
  padding-bottom: 5px;
}

.breadcrumb-item.active a {
  text-decoration: underline;
}

.col-form-label {
  word-break: break-word;
}

.container {
  max-width: 100%;
}

.custom-control-input:focus ~ .custom-control-label:before {
  box-shadow: none !important;
  /*Fix bootstrap shadows*/
}

.custom-control-input.is-valid ~ .custom-control-label,
.was-validated .custom-control-input:valid ~ .custom-control-label {
  color: black;
}

.custom-control-input.is-valid:checked ~ .custom-control-label::before,
.was-validated
  .custom-control-input:valid:checked
  ~ .custom-control-label::before {
  border-color: black;
  background-color: black;
}

.custom-control-input.is-valid ~ .custom-control-label::before,
.was-validated .custom-control-input:valid ~ .custom-control-label::before,
.custom-control-input.is-valid:focus:not(:checked)
  ~ .custom-control-label::before,
.was-validated
  .custom-control-input:valid:focus:not(:checked)
  ~ .custom-control-label::before {
  border-color: #adb5bd;
}

.custom-checkbox {
  font-size: 1rem;
}

.custom-switch {
  display: -ms-flexbox;
  display: flex;
  height: 100%;
  align-items: center;
  padding-left: 1.8rem;
  cursor: pointer;
}

.custom-switch .custom-control-label {
  line-height: 1.5rem;
  padding-left: 5px;
  user-select: none;
  width: 100%;
  cursor: pointer;
}

.custom-control-input:checked ~ .custom-control-label::before {
  background-color: black;
  border-color: black;
}

.custom-control-input:focus:not(:checked) ~ .custom-control-label::before {
  border-color: #adb5bd;
}

.custom-control-input:not(:disabled):active ~ .custom-control-label::before {
  background-color: #ddd;
  border-color: #ddd;
}

.custom-switch.disabled,
.custom-switch.disabled .custom-control-label {
  cursor: default;
}

.custom-switch.disabled:active .custom-control-label::before {
  background-color: white !important;
  border: #adb5bd solid 1px !important;
}

.custom-switch.disabled:active
  .custom-control-input:checked
  ~ .custom-control-label::before {
  background-color: black !important;
  border: black !important;
}

.custom-switch .custom-control-label:before {
  top: 0.3rem;
  left: -1.8rem;
}

.custom-switch .custom-control-label:after {
  top: calc(0.3rem + 2px);
  left: calc(-1.8rem + 2px);
}

.custom-switch.switch-right {
  padding-left: 0;
  padding-right: 2.1rem;
}

.custom-switch.switch-right .custom-control-label {
  padding-left: 0;
  padding-right: 5px;
}

.custom-switch.switch-right .custom-control-label:before {
  left: auto;
  right: -1.8rem;
}

.custom-switch.switch-right .custom-control-label:after {
  left: auto;
  right: calc(-1.05rem + 2px);
}

.dropdown-item:hover {
  background-color: #bfe5fb;
}

.dropdown-menu {
  padding-left: 5px;
  padding-right: 5px;
}

.dropdown-toggle {
  border: solid white;
  border-width: 0 0 0 1px;
}

.form-check-inline {
  padding-top: 0.5rem;
}

.form-control.is-valid,
.was-validated .form-control:valid,
.form-control.is-invalid,
.was-validated .form-control:invalid {
  background-image: none;
  padding-right: 0;
}

.form-control {
  border-radius: 2px;
  color: #333;
  background-color: white;
  border-color: #ced4da;
}

.form-control:focus {
  background-color: white;
  color: black;
  border-color: #80bdff;
  box-shadow: none;
}

a.form-control,
a.form-control:focus,
label.form-control {
  background-color: transparent;
}

select.form-control {
  padding-left: 0.4rem;
}

.form-group {
  margin-bottom: 0.5rem;
}

.form-group > .col-form-label {
  max-width: 170px;
  font-weight: 600;
}

.form-group label + div,
.form-group .label + div {
  flex: 1;
  max-width: 100%;
}

.form-group.row {
  margin-left: 0;
  margin-right: 0;
}

.form-group.row > * {
  padding-left: 5px;
  padding-right: 5px;
}

input[type="checkbox"].large {
  width: 20px;
  height: 20px;
}

.invalid-feedback {
  margin-top: 0;
}

.popover {
  max-height: 200px;
  overflow-y: auto;
  z-index: 2600;
  word-break: break-word;
}

.status-icon {
  margin: 0 5px;
}

.text-muted {
  color: #cad7e2 !important;
  /*Fix bootstrap color*/
}

.text-heat {
  color: #dc6702;
}

.ui-menu .ui-state-active,
.ui-menu .ui-state-focus {
  margin: 0;
  border-width: 0;
  background-color: #25aadf;
}

.was-validated .form-control:valid,
.form-control.is-valid,
.was-validated .form-control:focus:valid,
.form-control.is-valid:focus {
  border-color: #ced4da;
}

.was-validated .form-control:invalid:focus,
.was-validated .form-control:valid:focus {
  box-shadow: none;
}

@media all and (max-width: 575.98px) {
  .custom-control {
    padding-top: 0;
  }
  .form-group label,
  .form-group .col-form-label {
    max-width: 100%;
  }
}

/*****Custom colors*****/

.alert-info {
  background-color: #adf4ff;
}

.bg-success {
  background-color: #0a9e00 !important;
}

.border-success {
  border-color: #0a9e00 !important;
}

.bg-warning {
  background-color: #daa100 !important;
}

.border-warning {
  border-color: #daa100 !important;
}

.bg-heat {
  background-color: #dc6702 !important;
}

.border-heat {
  border-color: #dc6702 !important;
}

.bg-semisuccess {
  background-color: #9ac100 !important;
}

.border-semisuccess {
  border-color: #9ac100 !important;
}

.bg-danger {
  background-color: #d64141 !important;
}

.border-danger {
  border-color: #d64141 !important;
}

.bg-secondary {
  background-color: #6c757d !important;
}

.border-secondary {
  border-color: #6c757d !important;
}

.bg-info {
  background-color: #00adad !important;
}

.border-info {
  border-color: #00adad !important;
}

/*****Buttons*****/

.btn {
  border-radius: 0;
  font-weight: 600;
  box-shadow: none !important;
  /*Block all bootstrap shadows*/
}

.btn:focus {
  border-color: #80bdff;
}

.btn:disabled {
  cursor: not-allowed;
}

.btn-primary {
  /*FIX mdb style*/
  background-color: #0090b5 !important;
  border-color: #0090b5;
}

.btn-primary:not([disabled]):not(.disabled).active,
.btn-primary:not([disabled]):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
  /*FIX mdb style*/
  background-color: #006f8c !important;
}

.btn-primary:hover {
  /*FIX mdb style*/
  background-color: #006f8c !important;
  border-color: #006f8c;
}

.btn-outline-warning {
  color: #daa100;
  border-color: #daa100;
}

.btn-outline-warning:not(:disabled):not(.disabled).active,
.btn-outline-warning:not(:disabled):not(.disabled):active,
.btn-outline-warning:not(:disabled):not(.disabled):hover {
  color: white;
  background-color: #daa100;
  border-color: #daa100;
}

.btn-outline-semisuccess {
  color: #9ac100;
  border-color: #9ac100;
}

.btn-outline-semisuccess:not(:disabled):not(.disabled).active,
.btn-outline-semisuccess:not(:disabled):not(.disabled):active,
.btn-outline-semisuccess:not(:disabled):not(.disabled):hover {
  color: white;
  background-color: #9ac100;
  border-color: #9ac100;
}

.btn-info {
  background-color: #00adad;
  border-color: #00adad;
}

.btn-info:not(:disabled):not(.disabled).active,
.btn-info:not(:disabled):not(.disabled):active,
.show > .btn-info.dropdown-toggle,
.btn-info:hover {
  color: #fff;
  background-color: #027777;
  border-color: #027777;
}

@media all and (max-width: 575.98px) {
  .btn-outline-warning:not(.active):hover {
    /*Fix for mobiles - remove color after tap if not active*/
    color: #daa100 !important;
    background-color: white !important;
  }
  .btn-outline-success:not(.active):hover {
    /*Fix for mobiles - remove color after tap if not active*/
    color: #0a9e00 !important;
    background-color: white !important;
  }
  .btn-outline-heat:not(.active):hover {
    /*Fix for mobiles - remove color after tap if not active*/
    color: #dc6702 !important;
    background-color: white !important;
  }
  .btn-outline-danger:not(.active):hover {
    /*Fix for mobiles - remove color after tap if not active*/
    color: #d64141 !important;
    background-color: white !important;
  }
  .btn-outline-secondary:not(.active):hover {
    /*Fix for mobiles - remove color after tap if not active*/
    color: #6c757d !important;
    background-color: white !important;
  }
  .btn-outline-info:not(.active):hover {
    /*Fix for mobiles - remove color after tap if not active*/
    color: #17a2b8 !important;
    background-color: white !important;
  }
  .btn-outline-dark:not(.active):hover {
    /*Fix for mobiles - remove color after tap if not active*/
    color: #343a40 !important;
    background-color: white !important;
  }
  .container {
    padding-left: 5px;
    padding-right: 5px;
  }
  .container .row {
    margin-left: -5px;
    margin-right: -5px;
  }
}
