@import '../../../../../style/variables.less';

.pro-form-list-block-title {
  height: 14px;
  margin: @zaui-space-size-xs 0;
  padding-left: @zaui-space-size-sm;
  font-weight: 600;
  line-height: 14px;
  border-left: 4px solid @zaui-brand;
}

.pro-form-list {
  display: flex;
  padding-bottom: 0;
  .drag-icon {
    font-size: 18px;
    color: #949599;
  }

  .single-delete {
    width: 14px !important;
    height: 14px !important;
    color: @zaui-placeholder;

    &:hover {
      color: @zaui-aide-text;
    }
  }

  &:nth-child(1) {
    flex: 1;
  }

  .pro-form-list-action {
    padding-bottom: var(--zaui-height-size-md, 16px);

    & > .@{ant-prefix}-space-item:first-child > .@{ant-prefix}-btn-link {
      margin-left: @zaui-space-size-sm;
    }

    & .@{ant-prefix}-btn {
      transition: none;
    }
  }

  .pro-form-list-drag-handle {
    display: flex;
    align-items: center;
    height: 32px;
    margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
    padding: 0;
    padding-right: @zaui-space-size-sm;
    border: none;
  }
}

.pro-form-list-line {
  padding: var(--zaui-height-size-md, 16px);
  padding-bottom: 0;

  &:hover {
    background: rgba(0, 0, 0, 0.018);
  }
}

.pro-form-list-toolbar,
.pro-form-list-action {
  .@{ant-prefix}-btn-link {
    padding: @zaui-space-size-xs 0;
  }

  .@{ant-prefix}-btn-text:hover {
    background: transparent;
  }
  .pro-form-list-tool-btn {
    .@{ant-prefix}-btn-icon {
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }

  .pro-form-list-tool-btn-less {
    &:hover {
      background: transparent !important;
    }
  }
}

.pro-form-list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  .pro-form-list-empty-img {
    width: 80px;
    height: 80px;
  }

  .pro-form-list-empty-content {
    display: flex;
    justify-content: center;
    margin-top: var(--zaui-space-size-md, 16px);
    color: @zaui-aide-text;

    .@{ant-prefix}-btn-link {
      padding: 0;
    }
  }
}

.pro-form-list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  .pro-form-list-empty-img {
    width: 80px;
    height: 80px;
  }

  .pro-form-list-empty-content {
    display: flex;
    justify-content: center;
    margin-top: var(--zaui-space-size-md, 16px);
    color: @zaui-aide-text;

    .@{ant-prefix}-btn-link {
      padding: 0;
    }
  }
}

// 左侧标题布局样式
.pro-form-list-mode-block.pro-form-list-title-left {
  .@{ant-prefix}-collapse-title {
    display: none;
  }
  .pro-form-list-left-title-wrapper {
    display: flex;
    gap: 16px;
    align-items: flex-start;

    .pro-form-list-left-title {
      flex: 0 0 80px;
      font-weight: 600;
      font-size: 14px;
      line-height: 1.4;
      color: @zaui-text;
      padding-top: 8px;
    }

    .pro-form-list-left-content {
      flex: 1;
      min-width: 0;
    }
  }

  // 移动端响应式
  @media (max-width: 768px) {
    .pro-form-list-left-title-wrapper {
      flex-direction: column;
      gap: 8px;

      .pro-form-list-left-title {
        flex: none;
        width: 100%;
        padding-top: 0;
        margin-bottom: 8px;
      }
    }
  }
}
