/* ###### 3.6 Forms ###### */

.form-control {
  border-radius: 0;

  &:focus {
    border-color: #{$color};
    box-shadow: none;
  }
}

[type="search"] {

  &::-webkit-search-cancel-button,
  &::-webkit-search-decoration {
    -webkit-appearance: none;
  }
}

option {
  color: #{$gray-700};
}

.form-label {
  display: block;
  margin-block-end: 5px;
  color: #{$default-color};
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.5;
  color: #{$default-color};
  background-color: transparent;
  background-clip: padding-box;
  border: 1px solid #{$border};
  border-radius: 4px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;


  &:focus {
    color: #{$color};
    background-color: #{$primary-02};
    border-color: #{$primary};
    outline: 0;
    box-shadow: none;
  }

  &::placeholder {
    color:rgba(255,255,255,1);
    opacity: 1;
  }

  &:disabled,
  &[readonly] {
    background-color: #{$background};
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-control {
    transition: none;
  }
}

.form-control-file,
.form-control-range {
  display: block;
  width: 100%;
}

.col-form-label {
  padding-block-start: calc(0.375rem + 1px);
  padding-block-end: calc(0.375rem + 1px);
  margin-block-end: 0;
  font-size: inherit;
  line-height: 1.5;
}

.col-form-label-lg {
  padding-block-start: calc(0.5rem + 1px);
  padding-block-end: calc(0.5rem + 1px);
  font-size: 1.09375rem;
  line-height: 1.5;
}

.col-form-label-sm {
  padding-block-start: calc(0.25rem + 1px);
  padding-block-end: calc(0.25rem + 1px);
  font-size: 0.76562rem;
  line-height: 1.5;
}

.form-control-plaintext {
  display: block;
  width: 100%;
  padding-block-start: 0.375rem;
  padding-block-end: 0.375rem;
  margin-block-end: 0;
  line-height: 1.5;
  color: #{$default-color};
  background-color: transparent;
  border: solid transparent;
  border-width: 1px 0;

  &.form-control-sm,
  &.form-control-lg {
    padding-inline-end: 0;
    padding-inline-start: 0;
  }
}

.form-control-sm {
  height: calc(1.5em + 0.5rem + 2px);
  padding: 0.25rem 0.5rem;
  font-size: .785rem;
  line-height: 1.5;
  border-radius: 0.2rem;
}

.form-control-lg {
  height: calc(1.5em + 1rem + 2px);
  padding: 0.5rem 1rem;
  font-size: 1.09375rem;
  line-height: 1.5;
  border-radius: 0.3rem;
}

select.form-control {

  &[size],
  &[multiple] {
    height: auto;
  }
}

textarea.form-control {
  height: auto;
}

.form-group {
  margin-block-end: 1rem;
}

.form-text {
  display: block;
  margin-block-start: 0.25rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin-inline-end: -5px;
  margin-inline-start: -5px;

  > {

    .col,
    [class*="col-"] {
      padding-inline-end: 5px;
      padding-inline-start: 5px;
    }
  }
}

.form-check {
  position: relative;
  display: block;
  padding-inline-start: 1.25rem;
}

.form-check-input {
  position: absolute;
  margin-block-start: 0.3rem;
  margin-inline-start: -1.25rem;

  &:disabled~.form-check-label {
    color: #{$gray-600};
  }
}

.form-check-label {
  margin-block-end: 0;
}

.form-check-inline {
  display: inline-flex;
  align-items: center;
  padding-inline-start: 0;
  margin-inline-end: 0.75rem;

  .form-check-input {
    position: static;
    margin-block-start: 0;
    margin-inline-end: 0.3125rem;
    margin-inline-start: 0;
  }
}

.valid-feedback {
  display: none;
  width: 100%;
  margin-block-start: 0.25rem;
  font-size: 80%;
  color: #{$success};
}

.valid-tooltip {
  position: absolute;
  inset-block-start: 100%;
  z-index: 5;
  display: none;
  max-width: 100%;
  padding: 0.25rem 0.5rem;
  margin-block-start: .1rem;
  font-size: 0.76562rem;
  line-height: 1.5;
  color: rgb($white);
  background-color: #{$success};
  border-radius: 3px;
}

.was-validated .form-control:valid,
.form-control.is-valid,
input.form-control.parsley-success,
textarea.form-control.parsley-success {
  border-color: #{$success};
  padding-inline-end: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2300744cb3 ' 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:valid:focus,
.form-control.is-valid:focus,
input.form-control.parsley-success:focus,
textarea.form-control.parsley-success:focus {
  border-color: #{$success};
  box-shadow: 0 0 0 0.2rem rgba($success, 0.25);
}

.was-validated .form-control:valid~ {

  .valid-feedback,
  .valid-tooltip {
    display: block;
  }
}

.form-control.is-valid~.valid-feedback,
input.form-control.parsley-success~.valid-feedback,
textarea.form-control.parsley-success~.valid-feedback,
.form-control.is-valid~.valid-tooltip,
input.form-control.parsley-success~.valid-tooltip,
textarea.form-control.parsley-success~.valid-tooltip {
  display: block;
}

.was-validated textarea.form-control:valid {
  padding-inline-end: calc(1.5em + 0.75rem);
  background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem);
}

textarea.form-control {

  &.is-valid,
  &.parsley-success {
    padding-inline-end: calc(1.5em + 0.75rem);
    background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem);
  }
}

.was-validated .custom-select:valid,
.custom-select.is-valid,
input.custom-select.parsley-success,
textarea.custom-select.parsley-success {
  border-color: #{$success};
  padding-inline-end: calc((1em + 0.75rem) * 3 / 4 + 1.75rem);
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%233b4863' 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='%2300cccc ' 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") rgb($white) no-repeat center right (1.75rem / calc(0.75em + 0.375rem)) calc(0.75em + 0.375rem);
}

.was-validated .custom-select:valid:focus,
.custom-select.is-valid:focus,
input.custom-select.parsley-success:focus,
textarea.custom-select.parsley-success:focus {
  border-color: #{$success};
  box-shadow: 0 0 0 0.2rem rgba($success, 0.25);
}

.was-validated .custom-select:valid~ {

  .valid-feedback,
  .valid-tooltip {
    display: block;
  }
}

.custom-select.is-valid~.valid-feedback,
input.custom-select.parsley-success~.valid-feedback,
textarea.custom-select.parsley-success~.valid-feedback,
.custom-select.is-valid~.valid-tooltip,
input.custom-select.parsley-success~.valid-tooltip,
textarea.custom-select.parsley-success~.valid-tooltip {
  display: block;
}

.was-validated .form-control-file:valid~ {

  .valid-feedback,
  .valid-tooltip {
    display: block;
  }
}

.form-control-file.is-valid~.valid-feedback,
input.form-control-file.parsley-success~.valid-feedback,
textarea.form-control-file.parsley-success~.valid-feedback,
.form-control-file.is-valid~.valid-tooltip,
input.form-control-file.parsley-success~.valid-tooltip,
textarea.form-control-file.parsley-success~.valid-tooltip {
  display: block;
}

.was-validated .form-check-input:valid~.form-check-label,
.form-check-input.is-valid~.form-check-label,
input.form-check-input.parsley-success~.form-check-label,
textarea.form-check-input.parsley-success~.form-check-label {
  color: #{$success};
}

.was-validated .form-check-input:valid~ {

  .valid-feedback,
  .valid-tooltip {
    display: block;
  }
}

.form-check-input.is-valid~.valid-feedback,
input.form-check-input.parsley-success~.valid-feedback,
textarea.form-check-input.parsley-success~.valid-feedback,
.form-check-input.is-valid~.valid-tooltip,
input.form-check-input.parsley-success~.valid-tooltip,
textarea.form-check-input.parsley-success~.valid-tooltip {
  display: block;
}

.was-validated .custom-control-input:valid~.custom-control-label,
.custom-control-input.is-valid~.custom-control-label,
input.custom-control-input.parsley-success~.custom-control-label,
textarea.custom-control-input.parsley-success~.custom-control-label {
  color: #{$success};
}

.was-validated .custom-control-input:valid~.custom-control-label::before,
.custom-control-input.is-valid~.custom-control-label::before,
input.custom-control-input.parsley-success~.custom-control-label::before,
textarea.custom-control-input.parsley-success~.custom-control-label::before {
  border-color: #{$success};
}

.was-validated .custom-control-input:valid~ {

  .valid-feedback,
  .valid-tooltip {
    display: block;
  }
}

.custom-control-input.is-valid~.valid-feedback,
input.custom-control-input.parsley-success~.valid-feedback,
textarea.custom-control-input.parsley-success~.valid-feedback,
.custom-control-input.is-valid~.valid-tooltip,
input.custom-control-input.parsley-success~.valid-tooltip,
textarea.custom-control-input.parsley-success~.valid-tooltip {
  display: block;
}

.was-validated .custom-control-input:valid:checked~.custom-control-label::before,
.custom-control-input.is-valid:checked~.custom-control-label::before,
input.custom-control-input.parsley-success:checked~.custom-control-label::before,
textarea.custom-control-input.parsley-success:checked~.custom-control-label::before {
  border-color: #{$success};
  background-color: #{$success};
}

.was-validated .custom-control-input:valid:focus~.custom-control-label::before,
.custom-control-input.is-valid:focus~.custom-control-label::before,
input.custom-control-input.parsley-success:focus~.custom-control-label::before,
textarea.custom-control-input.parsley-success:focus~.custom-control-label::before {
  box-shadow: 0 0 0 0.2rem rgba($success, 0.25);
}

.was-validated .custom-control-input:valid:focus:not(:checked)~.custom-control-label::before,
.custom-control-input.is-valid:focus:not(:checked)~.custom-control-label::before,
input.custom-control-input.parsley-success:focus:not(:checked)~.custom-control-label::before,
textarea.custom-control-input.parsley-success:focus:not(:checked)~.custom-control-label::before,
.was-validated .custom-file-input:valid~.custom-file-label,
.custom-file-input.is-valid~.custom-file-label,
input.custom-file-input.parsley-success~.custom-file-label,
textarea.custom-file-input.parsley-success~.custom-file-label {
  border-color: #{$success};
}

.was-validated .custom-file-input:valid~ {

  .valid-feedback,
  .valid-tooltip {
    display: block;
  }
}

.custom-file-input.is-valid~.valid-feedback,
input.custom-file-input.parsley-success~.valid-feedback,
textarea.custom-file-input.parsley-success~.valid-feedback,
.custom-file-input.is-valid~.valid-tooltip,
input.custom-file-input.parsley-success~.valid-tooltip,
textarea.custom-file-input.parsley-success~.valid-tooltip {
  display: block;
}

.was-validated .custom-file-input:valid:focus~.custom-file-label,
.custom-file-input.is-valid:focus~.custom-file-label,
input.custom-file-input.parsley-success:focus~.custom-file-label,
textarea.custom-file-input.parsley-success:focus~.custom-file-label {
  border-color: #{$success};
  box-shadow: 0 0 0 0.2rem rgba($success, 0.25);
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-block-start: 0.25rem;
  font-size: 80%;
  color: #{$danger};
}

.invalid-tooltip {
  position: absolute;
  inset-block-start: 100%;
  z-index: 5;
  display: none;
  max-width: 100%;
  padding: 0.25rem 0.5rem;
  margin-block-start: .1rem;
  font-size: 0.76562rem;
  line-height: 1.5;
  color: rgb($white);
  background-color: rgba($danger, 0.9);
  border-radius: 3px;
}

.was-validated .form-control:invalid,
.form-control.is-invalid,
input.form-control.parsley-error,
textarea.form-control.parsley-error {
  border-color: #{$danger};
  padding-inline-end: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fa5c7c' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23fa5c7c' 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:invalid:focus,
.form-control.is-invalid:focus,
input.form-control.parsley-error:focus,
textarea.form-control.parsley-error:focus {
  border-color: #{$danger};
  box-shadow: 0 0 0 0.2rem rgba($danger, 0.25);
}

.was-validated .form-control:invalid~ {

  .invalid-feedback,
  .invalid-tooltip {
    display: block;
  }
}

.form-control.is-invalid~.invalid-feedback,
input.form-control.parsley-error~.invalid-feedback,
textarea.form-control.parsley-error~.invalid-feedback,
.form-control.is-invalid~.invalid-tooltip,
input.form-control.parsley-error~.invalid-tooltip,
textarea.form-control.parsley-error~.invalid-tooltip {
  display: block;
}

.was-validated textarea.form-control:invalid {
  padding-inline-end: calc(1.5em + 0.75rem);
  background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem);
}

textarea.form-control {

  &.is-invalid,
  &.parsley-error {
    padding-inline-end: calc(1.5em + 0.75rem);
    background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem);
  }
}

.was-validated .custom-select:invalid,
.custom-select.is-invalid,
input.custom-select.parsley-error,
textarea.custom-select.parsley-error {
  border-color: #{$danger};
  padding-inline-end: calc((1em + 0.75rem) * 3 / 4 + 1.75rem);
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%233b4863' 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='%23fa5c7c' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23fa5c7c' 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") rgb($white) no-repeat center right (1.75rem / calc(0.75em + 0.375rem)) calc(0.75em + 0.375rem);
}

.was-validated .custom-select:invalid:focus,
.custom-select.is-invalid:focus,
input.custom-select.parsley-error:focus,
textarea.custom-select.parsley-error:focus {
  border-color: #{$danger};
  box-shadow: 0 0 0 0.2rem rgba($danger, 0.25);
}

.was-validated .custom-select:invalid~ {

  .invalid-feedback,
  .invalid-tooltip {
    display: block;
  }
}

.custom-select.is-invalid~.invalid-feedback,
input.custom-select.parsley-error~.invalid-feedback,
textarea.custom-select.parsley-error~.invalid-feedback,
.custom-select.is-invalid~.invalid-tooltip,
input.custom-select.parsley-error~.invalid-tooltip,
textarea.custom-select.parsley-error~.invalid-tooltip {
  display: block;
}

.was-validated .form-control-file:invalid~ {

  .invalid-feedback,
  .invalid-tooltip {
    display: block;
  }
}

.form-control-file.is-invalid~.invalid-feedback,
input.form-control-file.parsley-error~.invalid-feedback,
textarea.form-control-file.parsley-error~.invalid-feedback,
.form-control-file.is-invalid~.invalid-tooltip,
input.form-control-file.parsley-error~.invalid-tooltip,
textarea.form-control-file.parsley-error~.invalid-tooltip {
  display: block;
}

.was-validated .form-check-input:invalid~.form-check-label,
.form-check-input.is-invalid~.form-check-label,
input.form-check-input.parsley-error~.form-check-label,
textarea.form-check-input.parsley-error~.form-check-label {
  color: #{$danger};
}

.was-validated .form-check-input:invalid~ {

  .invalid-feedback,
  .invalid-tooltip {
    display: block;
  }
}

.form-check-input.is-invalid~.invalid-feedback,
input.form-check-input.parsley-error~.invalid-feedback,
textarea.form-check-input.parsley-error~.invalid-feedback,
.form-check-input.is-invalid~.invalid-tooltip,
input.form-check-input.parsley-error~.invalid-tooltip,
textarea.form-check-input.parsley-error~.invalid-tooltip {
  display: block;
}

.was-validated .custom-control-input:invalid~.custom-control-label,
.custom-control-input.is-invalid~.custom-control-label,
input.custom-control-input.parsley-error~.custom-control-label,
textarea.custom-control-input.parsley-error~.custom-control-label {
  color: #{$danger};
}

.was-validated .custom-control-input:invalid~.custom-control-label::before,
.custom-control-input.is-invalid~.custom-control-label::before,
input.custom-control-input.parsley-error~.custom-control-label::before,
textarea.custom-control-input.parsley-error~.custom-control-label::before {
  border-color: #{$danger};
}

.was-validated .custom-control-input:invalid~ {

  .invalid-feedback,
  .invalid-tooltip {
    display: block;
  }
}

.custom-control-input.is-invalid~.invalid-feedback,
input.custom-control-input.parsley-error~.invalid-feedback,
textarea.custom-control-input.parsley-error~.invalid-feedback,
.custom-control-input.is-invalid~.invalid-tooltip,
input.custom-control-input.parsley-error~.invalid-tooltip,
textarea.custom-control-input.parsley-error~.invalid-tooltip {
  display: block;
}

.was-validated .custom-control-input:invalid:checked~.custom-control-label::before,
.custom-control-input.is-invalid:checked~.custom-control-label::before,
input.custom-control-input.parsley-error:checked~.custom-control-label::before,
textarea.custom-control-input.parsley-error:checked~.custom-control-label::before {
  border-color: #{$danger};
  background-color: #{$danger};
}

.was-validated .custom-control-input:invalid:focus~.custom-control-label::before,
.custom-control-input.is-invalid:focus~.custom-control-label::before,
input.custom-control-input.parsley-error:focus~.custom-control-label::before,
textarea.custom-control-input.parsley-error:focus~.custom-control-label::before {
  box-shadow: 0 0 0 0.2rem rgba($danger, 0.25);
}

.was-validated .custom-control-input:invalid:focus:not(:checked)~.custom-control-label::before,
.custom-control-input.is-invalid:focus:not(:checked)~.custom-control-label::before,
input.custom-control-input.parsley-error:focus:not(:checked)~.custom-control-label::before,
textarea.custom-control-input.parsley-error:focus:not(:checked)~.custom-control-label::before,
.was-validated .custom-file-input:invalid~.custom-file-label,
.custom-file-input.is-invalid~.custom-file-label,
input.custom-file-input.parsley-error~.custom-file-label,
textarea.custom-file-input.parsley-error~.custom-file-label {
  border-color: #{$danger};
}

.was-validated .custom-file-input:invalid~ {

  .invalid-feedback,
  .invalid-tooltip {
    display: block;
  }
}

.custom-file-input.is-invalid~.invalid-feedback,
input.custom-file-input.parsley-error~.invalid-feedback,
textarea.custom-file-input.parsley-error~.invalid-feedback,
.custom-file-input.is-invalid~.invalid-tooltip,
input.custom-file-input.parsley-error~.invalid-tooltip,
textarea.custom-file-input.parsley-error~.invalid-tooltip {
  display: block;
}

.was-validated .custom-file-input:invalid:focus~.custom-file-label,
.custom-file-input.is-invalid:focus~.custom-file-label,
input.custom-file-input.parsley-error:focus~.custom-file-label,
textarea.custom-file-input.parsley-error:focus~.custom-file-label {
  border-color: #{$danger};
  box-shadow: 0 0 0 0.2rem rgba($danger, 0.25);
}

.form-inline {
  display: flex;
  flex-flow: row wrap;
  align-items: center;

  .form-check {
    width: 100%;
  }
}

@media (min-width: 576px) {
  .form-inline {
    label {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-block-end: 0;
    }

    .form-group {
      display: flex;
      flex: 0 0 auto;
      flex-flow: row wrap;
      align-items: center;
      margin-block-end: 0;
    }

    .form-control {
      display: inline-block;
      width: auto;
      vertical-align: middle;
    }

    .form-control-plaintext {
      display: inline-block;
    }

    .input-group,
    .custom-select {
      width: auto;
    }

    .form-check {
      display: flex;
      align-items: center;
      justify-content: center;
      width: auto;
      padding-inline-start: 0;
    }

    .form-check-input {
      position: relative;
      flex-shrink: 0;
      margin-block-start: 0;
      margin-inline-end: 0.25rem;
      margin-inline-start: 0;
    }

    .custom-control {
      align-items: center;
      justify-content: center;
    }

    .custom-control-label {
      margin-block-end: 0;
    }
  }
}

/* ###### 5.3 Forms   ###### */

.main-form-group {
  padding: 12px 15px;
  border: 1px solid #{$border};
  border-radius: 5px;

  &.focus {
    border-color:#{$gray-400};
    box-shadow: 0 0 0 2px #{$bg-hover};
  }

  .form-label {
    font-size: 13px;
    margin-block-end: 2px;
    font-weight: 400;
    color: #{$gray-500};
  }

  .form-control {
    padding: 0;
    border-width: 0;
    height: 25px;
    color: #{$gray-900};
    font-weight: 500;

    &:focus {
      box-shadow: none;
    }
  }
}

.formgroup-wrapper {
  .form-control {
    height: 40px !important;
  }

  .main-form-group .form-label {
    margin-block-end: 0px;
  }
}

.main-header-center .form-control {
  padding: 1rem;

  &::placeholder {
    padding-inline-start: 0rem;
    padding-inline-end: 0rem;
  }
}

.browse-file.form-control {
  background-color: transparent;
  border-start-end-radius: 0;
  border-end-end-radius: 0;

}

.file-browser .btn-default {
  background: #f1f4fb;
  border-start-end-radius: 3px !important;
  border-end-end-radius: 3px !important;
  padding: .6rem 15px;
  color: #68769a;
  border-radius: 0;
  border: 1px solid #{$border};
}

.form-select {
  border: 1px solid #{$border};

  &:focus {
    box-shadow: none;
    border-color: #{$border} !important;
  }
}


.SumoSelect>.CaptionCont {
  border: 1px solid #{$border};
}

.form-control {

  &::-webkit-file-upload-button {
    background-color: #{$background};
  }

  &:hover:not(disabled):not([readonly])::-webkit-file-upload-button {
    background-color: #{$background} !important;
  }
}

.colorinput {
  margin: 0;
  position: relative;
  cursor: pointer;
}

.colorinput-input {
  position: absolute;
  z-index: -1;
  opacity: 0;
}

.colorinput-color {
  display: inline-block;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  color: rgb($white);
}

.colorinput-input:checked~.colorinput-color:before {
  opacity: 1;
}

.colorinput-color:before {
  content: "";
  opacity: 0;
  position: absolute;
  inset-block-start: 0.25rem;
  inset-inline-start: 0.25rem;
  height: 1.25rem;
  width: 1.25rem;
  transition: 0.3s opacity;
  background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E") no-repeat center center/50% 50%;
}

.dropify-wrapper input {
  z-index: 0;
}

.SumoSelect>.optWrapper>.options li.opt:hover {
  background-color: #{$gray-100};
}

.SumoSelect>.optWrapper.multiple>.options li.opt.selected span i,
.SumoSelect .select-all.selected>span i,
.SumoSelect .select-all.partial>span i {
  background-color: #{$primary};
}

.SumoSelect>.optWrapper.multiple>.MultiControls>p:hover,
.SumoSelect>.optWrapper.multiple.okCancelInMulti>.MultiControls>p:focus {
  background-color: #{$primary};
  border-color: #{$primary};
  color: rgb($white);
}

.SumoSelect:focus>.CaptionCont {
  border-color: #{$primary};
}

.richText .richText-toolbar ul li a .richText-dropdown-outer .richText-dropdown {
  z-index: 5;
}

.note-btn.btn-default {
  background-color: rgb($white);
  color: #{$muted};

  &:hover,
  &:not(:disabled):not(.disabled).active {
    background-color: #{$bg-hover};
    color: #{$primary};
  }
}


.richText {
  overflow: hidden;

  .richText-toolbar ul li a .richText-dropdown-outer ul.richText-dropdown li,
  .richText-editor {
    font-family: inherit;
  }

  .richText-toolbar ul li a,
  .richText-undo,
  .richText-redo {
    color: #{$muted} !important;
  }

  .richText-undo,
  .richText-redo {
    border: none;
    border-radius: 4px;
    margin: 2px;
  }

  .richText-toolbar ul li a:hover,
  .richText-undo:hover,
  .richText-undo:focus,
  .richText-redo:hover,
  .richText-redo:focus {
    background-color: #{$gray-100} !important;
    color: #{$primary} !important;
  }
}

.form-control::-webkit-file-upload-button {
  color: #{$color};
  background-color: #{$bg-hover};
}

.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button {
  background-color: rgb($white);
}

.form-select {
  color: #{$color};
  background-color: rgb($white);
  border: 1px solid #{$border};
}