/* write style here */
.yw-table {
  .yw-table-btns {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    .batch {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      .total {
        margin-right: 12px;
        color: #666;
      }
      :global {
        .ant-btn {
          margin-right: 12px;
        }
      }
    }
    .action {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      :global {
        .ant-btn {
          margin-left: 12px;
        }
      }
    }
  }
  *[colspan='0'] {
    display: none;
  }
  *[colspan='0'] {
    padding: 0;
  }

  .yw-group-table {
    :global {
      .group-container-row > .ant-table-cell {
        padding: 0 !important;
      }
      .ant-table-thead > tr > th {
        border-top: 1px solid #f0f0f0;
        border-bottom: none;
      }
      .ant-table-thead {
        background: #fafafa;
        .ant-table-selection-column {
          display: inline-block;
          padding: 16px 8px;
        }
      }
      .ant-table-thead > tr > th:first-child {
        border-left: 1px solid #f0f0f0;
      }
      .ant-table-thead > tr > th:last-child {
        border-right: 1px solid #f0f0f0;
      }
      .ant-table-tbody > tr > td {
        border-bottom: none;
      }
      .ant-table-title {
        padding: 7px 16px;
        background: #f3f8ff;
      }
      .ant-table {
        margin: 0 !important;
        border: none;
      }
      .ant-table-wrapper {
        margin-top: 12px !important;
        border: 1px solid #f0f0f0;
      }
      .group-container-row > .ant-table-selection-column {
        display: none !important;
      }
      .group-container-row {
        .ant-table-selection-column {
          padding: 16px 0;
        }
        .ant-table-has-fix-left {
          .ant-table-selection-column + .ant-table-cell-fix-left {
            left: 32px !important;
          }
        }
      }
    }
    .group-container-row {
      :global {
        .ant-table-cell {
          padding: 0 !important;
        }
        border: none !important;
      }
      :global {
        .ant-table {
          border-left: 1px solid #f0f0f0;
          border-right: 1px solid #f0f0f0;
          border-top: 1px solid #f0f0f0;
          border-bottom: 1px solid #f0f0f0;
        }
      }
    }
  }
  .virtual-table {
    :global {
      .ant-table-selection-column {
        padding: 16px;
      }
    }
  }
  .virtual-table-cell {
    font-size: 14px;
    line-height: 14px;
    color: #666;
    vertical-align: top;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
  }
  :global {
    .ant-table {
      border-left: 1px solid #f0f0f0;
      border-right: 1px solid #f0f0f0;
      border-top: 1px solid #f0f0f0;
    }
    .ant-table-body .ant-table-selection-column {
      vertical-align: top;
    }
    .ant-table-selection-column {
      padding: 16px;
    }
    .ant-table-thead {
      .ant-table-cell {
        background: #fafafa;
        color: #333;
        font-size: 14px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        line-height: 14px;
        height: 52px;

        &::before {
          display: none;
        }
      }
    }

    .ant-table-tbody {
      .ant-table-cell {
        font-size: 14px;
        line-height: 14px;
        color: #666;
        vertical-align: top;
        .ant-radio,
        .ant-checkbox {
          top: 0;
        }
      }
    }
  }
  .row-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    word-break: break-all;
  }
  .row-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    word-break: break-all;
  }
  &-row-middle {
    .yw-table-cell-operates {
      align-items: center;
      span {
        margin-bottom: 0 !important;
      }
      :global {
        .ant-btn {
          margin-bottom: 0;
        }
      }
    }
    .virtual-table-cell {
      vertical-align: middle;
    }
    :global {
      .ant-table-tbody {
        .ant-table-cell {
          vertical-align: middle;
        }
      }
    }
  }
  &-cell-multiple-col {
    &:not(:first-child) {
      margin-top: 8px;
    }
    display: flex;
    align-items: center;
    line-height: 20px;
    justify-content: flex-start;
    .label {
      white-space: nowrap;
      color: #666;
    }
    :global {
      .ant-btn {
        padding: 0 0;
        line-height: 14px;
        height: 14px;
      }
    }
  }
  &-cell-status {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #666;
    .dot {
      display: inline-block;
      width: 8px;
      height: 8px;
      border: 1px solid #fff;
      border-radius: 50%;
      margin-right: 5px;
    }
  }
  &-cell-person {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #666;
    .avatar {
      display: inline-block;
      width: 24px;
      height: 24px;
      border: 1px solid #e4e8f0;
      border-radius: 50%;
      margin-right: 8px;
    }
  }
  &-cell-long-text {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    .title {
      line-height: 14px;
    }
  }
  &-cell-long-text-link {
    cursor: pointer;
    color: #1890ff;
    :hover {
      color: #1890ff;
    }
  }
  &-cell-tag {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    color: #666;
    height: 100%;
  }
  &-cell-index-col {
    text-align: center;
  }
  &-cell-copy-col {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #666;
    height: 100%;
    .content {
      flex: 1;
    }
  }
  &-cell-detail-info {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    .anticon-copy {
      color: #1890ff;
      margin-left: 6px;
    }
    &-img {
      img {
        max-width: 100%;
        max-height: 100%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
      width: 64px;
      height: 64px;
      position: relative;
      border-radius: 8px;
      border: 1px solid #e4e8f0;
      overflow: hidden;
    }
    .item {
      display: flex;
      align-items: center;
      justify-content: flex-start;
    }
    &-text {
      display: flex;
      align-items: flex-start;
      justify-content: flex-start;
      flex-direction: column;
      margin: 0 12px;
    }
    &-price {
      margin-top: 8px;
      .rmb {
        font-size: 12px;
        font-family: DINAlternate-Bold, DINAlternate;
        font-weight: 400;
        color: #f15a5a;
        line-height: 12px;
        margin-right: 2px;
      }
      .count {
        font-size: 18px;
        font-family: DINAlternate-Bold, DINAlternate;
        font-weight: bold;
        color: #f15a5a;
        line-height: 18px;
      }
      .line {
        font-size: 18px;
        font-family: DINAlternate-Bold, DINAlternate;
        font-weight: bold;
        color: #f15a5a;
        margin: 0 3px;
      }
    }
    &-tags {
      margin-top: 8px;
      .tag {
        border-radius: 2px;
        display: inline-block;
        border: 1px solid #1890ff;
        margin-right: 4px;
        color: #1890ff;
        opacity: 0.7;
        line-height: 12px;
        padding: 2px;
        font-size: 12px;
        font-family: PingFangSC-Regular, PingFang SC;
      }
    }
    &-row {
      .item {
        margin-top: 8px;
      }
    }
    &-tooltip {
      margin-left: 8px;
      .icon-id {
        background: #1890ff;
        border-radius: 2px;
        color: #fff;
        font-size: 10px;
        line-height: 10px;
        padding: 1px 2px;
        white-space: nowrap;
      }
    }
  }
  &-cell-progress {
    :global {
      .ant-progress-text {
        color: #666;
        font-size: 13px;
      }
    }
  }
  &-cell-operates {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    span:only-child {
      :global {
        .ant-btn {
          margin-bottom: 0;
        }
      }
    }
    :global {
      .ant-btn {
        height: 17px;
        line-height: 15px;
        padding: 0 !important;
        margin-bottom: 10px;
      }
    }
  }
}
