// Style formError classes
.formError {
  @extend .text-danger;
}

.form-control {
  border-radius: $border-radius-small;
  -webkit-box-shadow: inset 0 1px 3px rgba($gray-base, .075);
  -moz-box-shadow: inset 0 1px 3px rgba($gray-base, .075);
  box-shadow: inset 0 1px 3px rgba($gray-base, .075);

  &.title {
    font-size: $font-size-h4;
    height: 46px;
  }

  &:focus {
    -webkit-box-shadow: inset 0 1px 3px rgba($gray-base, .075);
    -moz-box-shadow: inset 0 1px 3px rgba($gray-base, .075);
    box-shadow: inset 0 1px 3px rgba($gray-base, .075);
    outline: 0;
  }

  &.error {
    border-color: $brand-danger;
  }

  &.code {
    font-family: "Source Code Pro";
  }

  &.disabled {
    color: $gray-light;
  }
}

.control-label {
  color: $gray-base;
  font-size: $font-size-base;
  font-weight: 600;
  width: 100%;
}

.radio {
  margin-top: 0;
}

.help-block {
  font-size: $font-size-small;
}

.form-inline {
  .radio {
    label {
      padding-left: 20px;
      padding-right: 8px;
    }

    input[type="radio"] {
      margin-left: -20px;
      position: absolute;
    }
  }

  .form-group {
    margin-bottom: 20px;

    .btn {
      padding: 6px 12px 7px;

      &.btn-xs {
        padding: 2px 8px;
      }
    }
  }
}

label {
  font-weight: 600;
}

abbr[title],
abbr[data-original-title] {
  border-bottom: none;
}

textarea {
  max-width: 100%;
}

select[size="1"] {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background: url('/src/Backend/Core/Layout/images/arrow.svg') no-repeat center right 10px;
  background-size: 10px;
  display: inline-block;
  font-size: $font-size-base;
  height: $input-height-base;
  padding: 5px;
  width: 100%;
}

.form-group.last {
  margin-bottom: 0;
}

.formError,
.text-danger {
  color: $brand-danger;
  font-weight: normal;
}

.input-group .input-group-addon {
  padding: 8px 12px 9px;
}

.inlineEditing input {
  min-width: 100%;
  width: 100%;
}

.editorWarning {
  color: $alert-warning-bg;
}

.input-group {

  .bootstrap-tagsinput {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  .input-group-btn .btn {
    line-height: 2.3em;
    padding-bottom: 0;
    padding-top: 0;
  }
}

.form-inline .form-group {
  width: 100%;

  select.form-control {
    width: 25%;
  }
}

fieldset {
  border-bottom: 1px solid $gray-lighter;
  margin-bottom: 15px;

  legend {
    border: 0;
    font-size: $font-size-large;
    margin-bottom: 15px;

    .help-block {
      margin: 0;
    }
  }

  &.last {
    border-bottom: 0;
    margin-bottom: 0;
  }
}
