.xd-base-field {
  & .jfb-hidden ,& .jfb-icon-hidden {
    display: none!important;
  }

  .isFirst {
    margin-top: 0!important;
  }

  .custom-input {
    ::v-deep {
      .el-input-group__append {
        padding: 0 10px;
      }
    }
  }

   .cus-shAndBorder {
      padding-right: 0!important;
    }

  //设置组背景样式==========
  & .group-bgColor {
    background-color: #F5F7FA;
    //border-left: 1px solid #ccc;
    //border-right: 1px solid #ccc;
    margin-bottom: 0!important;
    padding:0 15px 15px;
    margin-left: 94px;

    ::v-deep {
      .el-form-item__label {
        font-size: 13px;
        font-weight: normal;
        min-width: 74px!important;
        padding-right: 10px;
        text-align: right!important;
        height: 36px;
        overflow: hidden;
        line-height: 38px;
      }
      .xd-text-and-bgc {
        background-color:rgba(0,0,0,0);
        padding: 0;
        border: 0!important;

        .el-tabs__item {
          background-color: #F5F7FA;
        }
        .el-tabs__item.is-active {
          background-color:$blue;
          color: #fff;
          border-bottom-color:$blue;
        }
        .el-tabs__item:first-child {
          border-radius: 4px 0 0 0;
        }
        .el-tabs__item:last-child {
          border-radius:0 4px 0 0;
        }
      }

    }
  }

  & .group-color-first {
    padding-top:15px;
    border-radius: 4px 4px 0 0;
    //border-top: 1px solid #ccc;
  }
  & .group-color-last {
    border-radius: 0 0 4px 4px;
    margin-bottom: 10px!important;
    //border-bottom: 1px solid #ccc;
  }

  & .group-color-one {
    border-radius: 8px;
    padding-top: 15px;
    margin-bottom: 10px!important;
    //border: 1px solid #ccc;
  }
  //设置组背景样式==========

  & ::v-deep .el-form-item {
    &.cus-inline{
      & .el-form-item__label {
        width: auto!important;
        min-width: 80px;
        float: left;
        text-align: left;
        flex-shrink: 0;

      }
    }

    & .el-input-group__append {
      padding: 0 10px;
    }

    &.cus-indent {
      padding-left: 40px;
    }

    &.subLabel {
      padding-left: 76px;
    }

    &.cus-inline .is_block {
      display: flex;
      justify-content: flex-start;
      flex-flow: wrap;
    }

    &.cus-inline .is_block {
      & ~ div {
        left: 68px;
      }
    }
  }

  .el-title {
    border-radius: 4px;
    background: #F5F7FA;
    padding: 10px;
    color: rgba(144, 147, 153, 1);
    margin: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;

    &-icon {
      cursor: pointer;
    }

    &:first-child {
      margin-top: 0 !important;
    }

    &.default {
      padding: 15px 20px;
    }

    &.mini {
      padding: 10px 20px;
    }

    &.small {
      padding: 10px 20px;
      font-size: 14px;
    }
  }

  &__box.is_inline {
    display: flex;
    justify-content: flex-start;
    align-items: center;

    & .xd-form-notice {
      margin-left: 10px;
      line-height: 22px;
      font-size: 12px;
      color: #999;
    }
  }

  &__box.is_block {
    & .xd-form-notice {
      margin-top: 6px;
      line-height: 22px;
      font-size: 12px;
      color: #999;
    }
  }

  .input100 {
    width: 100%;
  }

  .input80 {
    width: 80%;
  }

  .input70 {
    width: 70%;
  }

  .input60 {
    width: 60%;
  }

  .input50 {
    width: 50%;
  }

  .input40 {
    width: 40%;
  }

  .input30 {
    width: 30%;
  }

  .input20 {
    width: 20%;
  }

  &__upload {
    border: #999 dashed 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 6px;

    &-input {
      margin-bottom: 10px;
    }

    &-icon {
      position: absolute;
      left: 0;
      right: 0;
      height: 100%;
      width: 100%;
    }

    & > img {
      max-width: 100%;
      max-height: 100%;
    }

    &:hover, &:hover.has {
      border: #42B983 dashed 2px;
    }

    &:hover.has &-icon {
      color: rgba(255, 255, 255, .7) !important;
      background: rgba(0, 0, 0, .05);
    }
  }

  & ::v-deep .el-form-item.unit .el-form-item__content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  & ::v-deep .xd-html {
    margin-bottom: 0 !important;
  }

  .line-x {
    width: 100%;
    height: 24px;
    line-height: 24px;
    color: $blue;
    padding: 0 10px;
    font-size: 13px;
    position: relative;
    border-bottom: 1px solid $blue;


    & span {
      min-width: 60px;
      text-align: center;
      display: inline-block;
      line-height: 26px;
      height: 24px;
      overflow: hidden;
      background: #fff;
      position: relative;
      font-weight: bold;
      z-index: 1;
      padding: 0 10px;
      border-radius: 4px 4px 0 0;
      border: 1px solid $blue;
      border-bottom: 0;
    }
  }


  & .xd-line {
    height: 1px;
    overflow: hidden;
    margin-bottom: 10px;
    background-color: #efefef;
  }

  & .xd-line-title {
    line-height: 30px;
    height: 30px;
    position: relative;
    margin: 0 15px 15px;
    & > span {
      color: $blue;
      font-size: 13px;
      display: inline-block;
      height: 30px;
      line-height: 30px;
      background-color: #fff;
      position: relative;
      z-index: 1;
      padding: 0 5px 5px 0;
    }

    &:before {
      position: absolute;
      height: 1px;
      background-color: $blue;
      opacity: .15;
      content: '';
      top: 50%;
      left: 0;
      right: 0;
      margin-top: 1px;
      z-index: 0;
    }
  }
}

@media screen and (max-width: 768px) {
  .xd-base-field {
    .el-title {
      border-radius: 0;
      margin: 10px 0;
      padding: 5px;
      font-size: 1.3rem;

      &:first-child {
        margin-top: 0 !important;
      }

      &.default, &.mini, &.small {
        padding: 8px 10px;
        margin: 5px 0 10px;
      }
    }

    &__box.is_inline {
      display: block;
      justify-content: normal;
      align-items: normal;

      & .xd-form-notice {
        margin-left: 0;
        margin-top: 8px;
        line-height: 22px;
        font-size: 12px;
        color: #999;
      }
    }

    .input100, .input20, .input30, .input40, .input50, .input60, .input80, .input70 {
      width: 100%;
    }

    .el-form-item {
      margin-bottom: 20px;

      & .el-date-editor {
        width: 100% !important;
      }
    }


    & .xd-line {
      margin-bottom: 10px;
    }
  }
}
