.rule-form {
  display: flex;
  flex-wrap: wrap;
  border-left: 1px solid #E8F0F3;
  border-bottom: 1px solid #E8F0F3;
  .el-form-item--small {
    display: flex;
    &.el-form-item {
      width: 50%;
      border: 1px solid #E8F0F3;
      margin-bottom: 0px;
      border-bottom: 0px;
      .el-input__inner {
        border: 0px;
      }
      .el-textarea__inner {
        border: 0px;
      }
      // &:not(:last-child) {
      //   border-bottom: 0px;
      // }
      &:nth-of-type(n) {
        border-left: 0px;
      }
      // 多选
      .el-checkbox-group, .el-radio-group, .el-switch {
        margin-left: 12px;
      }
    }
    .el-form-item__label {
      background: #F0F9FC;
      border-right: none;
      font-weight: normal;
      font-size: 14px;
      line-height: 35px;
      padding-left: 10px;
      box-sizing: border-box;
    }
    .el-form-item__content {
      line-height: 30px;
      margin-left: 0px !important;
      flex: 1;
    }
    .el-input-group__append {
      border: 0px;
    }
  }
  /* 文本域 */
  .el-textarea__inner {
    border-radius: 0px;
    border: 1px solid #E8F0F3;
  }
  .textarea-content .el-form-item__label{
    height: 71px;
  }

  .el-textarea.is-disabled .el-textarea__inner,
  .el-input.is-disabled .el-input__inner  {
    background-color: #fff;
    color: #333;
  }

  // 单选
  .el-radio-group .is-disabled.is-checked .el-radio__inner {
    background: #409EFF;
    border-color: #409EFF;
    color: #409EFF;
    &::after {
      background-color: #fff;
    }
  }
  .el-radio__input.is-disabled+span.el-radio__label {
    color: #333;
  }

  // 多选
  .el-checkbox-group .is-disabled.is-checked .el-checkbox__inner {
    background-color: #409EFF;
    border-color: #409EFF;
    &::after {
      border-color: #fff;
    }
  }
  .el-checkbox-group .is-disabled.is-checked .el-checkbox__label {
    color: #409EFF;
  }
  .el-checkbox__input.is-disabled+span.el-checkbox__label {
    color: #333;
  }
  .el-form-item__error {
    position: relative;
    margin-bottom: 2px;
    top: 0px;
    left: 15px;
  }

}


$orangeColor: #E9423A;
.rule-form-orange {
  display: flex;
  flex-wrap: wrap;
  .el-form-item {
    width: calc(33.33% - 20px);
    &.two-form-item {
      width: calc(66.66% - 20px);
    }
    &.one-form-item {
      width: calc(50% - 20px);
    }
    margin-right: 20px;
    margin-bottom: 10px;
    .el-form-item__label {
      padding: 5px 0px 5px;
      color: #222931;
    }
  }
  .slot-name-desc {
    color: #FF0000;
    font-size: 14px;
    margin-left: 10px;
  }
}

/* form 添加红点 */
.form-required > .el-form-item__label:before {
  content: '*';
  color: #F56C6C;
  margin-right: 4px;
  font-size: 12px;
}

// 输入框
.el-input.is-active .el-input__inner, .el-input__inner:focus {
  border-color: $orangeColor;
}

.el-input-group__append, .el-input-group__prepend {
  background-color: #fff;
}

// 级联
.el-cascader .el-input .el-input__inner:focus, .el-cascader .el-input.is-focus .el-input__inner {
  border-color: $orangeColor;
}
// 下拉框
.el-select {
  width: 100%;
}
.el-select .el-input.is-focus .el-input__inner {
  border-color: $orangeColor;
}

.el-select .el-input__inner:focus {
  border-color: $orangeColor;
}

.el-select-dropdown__item.selected {
  color: $orangeColor;
}

// 开关
.el-switch.is-checked .el-switch__core {
  border-color: $orangeColor;
  background-color: $orangeColor;
}

// 多选
.el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner {
  border-color: $orangeColor;
  background-color: $orangeColor;
}
.el-checkbox__input.is-checked+.el-checkbox__label {
  color: $orangeColor
}

// 单选
.el-radio__input.is-checked .el-radio__inner {
  border-color: $orangeColor;
  background-color: $orangeColor;
}
.el-radio__input.is-checked+.el-radio__label {
  color: $orangeColor
}

// 分页
.el-pagination.is-background .el-pager li:not(.disabled):hover {
  color: $orangeColor
}

// 时间
.el-date-table td.today span {
  color: $orangeColor;
}

.el-date-table td.current:not(.disabled) span {
  background-color:  $orangeColor;
}

.el-date-table td.available:hover {
  color: $orangeColor;
}

/* disable开始 */
.el-textarea.is-disabled .el-textarea__inner,
.el-input.is-disabled .el-input__inner,
.el-range-editor.is-disabled input {
  // background-color: #fff;
  color: #333;
}

// 文本框
.el-textarea__inner:focus {
  border-color: $orangeColor;
}

// 单选
.el-radio-group .is-disabled.is-checked .el-radio__inner {
  background: $orangeColor;
  border-color: $orangeColor;
  color: $orangeColor;
  &::after {
    background-color: #fff;
  }
}
.el-radio__input.is-disabled+span.el-radio__label {
  color: #333;
}

// 多选
.el-checkbox-group .is-disabled.is-checked .el-checkbox__inner {
  background-color: $orangeColor;
  border-color: $orangeColor;
  &::after {
    border-color: #fff;
  }
}
.el-checkbox-group .is-disabled.is-checked .el-checkbox__label {
  color: $orangeColor;
}
.el-checkbox__input.is-disabled+span.el-checkbox__label {
  color: #333;
}

// 分页
.el-pagination.is-background .el-pager li:not(.disabled).active {
  background-color: $orangeColor;
}
/* disable结束 */
