.template-form-box {
  &:has(.template-extra) {
    padding-bottom: 60px;
  }
  &.is-single-col {
    .el-input,.el-select {
      width: 400px;
    }
  }

  .el-row {
    display: flex;
    flex-wrap: wrap;
    // margin-left: -20px;
  }

  .el-col {
    display: flex;

    .el-form-item {
      width: 100%;
      margin-left: 20px;
    }
  }

  .el-autocomplete, .el-select, .el-cascader, .el-date-editor {
    width: 100%;
  }

  .template-component {
    width: 100%;
  }

  .el-form-item__label {
    color: var(--el-text-color-secondary)
  }
  .el-form-item__content {
    &:has(.form-head) {
      margin-left: 0 !important;
    }
  }

//  anchor锚点部分
//  必须是滚动容器，才能实现锚点功能
  &:has(.el-anchor) {
    .anchor-scroll-box {
      overflow-y: auto;
      padding-left: 200px;
      height: 500px;
    }
  }
}

.template-main {
  .filter-list-wrap > div {
    width: 100%;
  }

  .el-select, .el-cascader {
    width: 100%;
  }

  // 第一列表格 无法 ellipsis
  .el-table td .el-tooltip {
    width: 100% !important;
  }

  .el-date-editor .el-range-input {
    width: 44%;
  }

  .el-dialog {
    width: 1000px;
  }
}

.template-form-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
}

// 查看详情状态下  需要边框的话
.is-border {
  &.template-form-box .el-row {
    margin: 0;
    border-top: 1px solid var(--el-border-color-lighter);
    border-left: 1px solid var(--el-border-color-lighter);
  }

  .el-form-item {
    margin: 0 !important;
  }

  .el-form-item__label, .el-form-item__content {
    border: 1px solid var(--el-border-color-lighter);
    border-left: none;
    padding: 6px;

    &:has(.form-head) {
      border: none;
      border-bottom: 1px solid var(--el-border-color-lighter);
    }
  }

  .el-form-item__label {
    width: 100%;
    background-color: var(--el-fill-color-light);
    margin-bottom: 0;
    border-bottom: none;
    border-top: none;
    font-weight: 700;
    color: var(--el-text-color-regular)
  }
  // 标签在左时的样式
  .el-form--label-left {
    .el-form-item__label{
      height: 100%;
      border-bottom: 1px solid var(--el-border-color-lighter);
    }
    .el-form-item__content {
      height: 100%;
      border-top: none;
    }
  }

  .el-form-item__content {
    height: calc(100% - 34px);
    align-items: flex-start;

    &:has(.form-head) {
      height: auto;
    }
  }

  .form-head1 {
    border: none;
    padding: 10px 0;

  }
}
