.yee-table-wrapper {
  width: 100%;
  margin-top: 0.75rem;

  .top-container {
    min-height: 32px;
    margin-bottom: 12px;

    .title-content {
      font-size: 15px;
      font-weight: 500;
      color: rgba(0, 0, 0, 0.85);
    }

    .operation-content {
      margin-left: auto;
    }
  }

  .batch-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    position: absolute;
    width: 100%;
    left: 0;
    height: 45px;
    bottom: 0;
    border-radius: 2px;
    z-index: 10;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
      0 -6px 16px -8px rgba(0, 0, 0, 0.08),
      0 -9px 28px 0 rgba(0, 0, 0, 0.05),
      0 -12px 48px 16px rgba(0, 0, 0, 0.03);
    .dot {
      color: @primary-color;
      font-size: 40px;
      position: absolute;
      top: -10px;
      left: 24px;
    }
    .dot + span {
      margin-left: 48px;
    }
  }

  .ant-pagination {
    float: none;
    display: flex;
    justify-content: flex-end;
    position: relative;
    .ant-pagination-total-text {
      position: absolute;
      left: 0;
    }
  }

  /* table operation */
  .tableOper-wrap {
    display: flex;
    align-items: center;
    .icon-wrap {
      height: 16px;
      width: 16px;
      margin-left: 18px;
      cursor: pointer;
      display: flex;
      align-items: center;
      &:last-child {
        margin-right: 0;
      }
    }
  }

  .columns-wrap {
    width: 200px;
    background-color: #fff;
    border-radius: 2px;
    box-shadow:
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 9px 28px 8px rgba(0, 0, 0, 0.05);
    .header {
      padding: 0 8px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    .col-list {
      padding: 8px 0;
      max-height: 300px;
      overflow-y: auto;
      cursor: pointer;
      .col-item {
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        height: 28px;
        .icon-wrap {
          display: flex;
          align-items: center;
          width: 40px;
          .icon-more {
            cursor: grab;
            width: 4px;
            color: #999;
          }
        }

        &:last-child {
          margin-bottom: 0;
        }
        &:hover {
          background-color: @item-hover-bg;
          .icon-wrap {
            .icon-more {
              color: #666;
            }
          }
        }
      }
    }
  }

  .check-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    width: 110px;
    display: inline-block;
    vertical-align: middle;
  }

  .circle-tag {
    position: relative;
    top: -1px;
    display: inline-block;
    width: 6px;
    height: 6px;
    vertical-align: middle;
    border-radius: 50%;
    margin-right: 8px;
  }

  .table-icon-help {
    vertical-align: middle;
    margin: 0 0 2px 4px;
  }

  tr.ant-table-expanded-row,
  tr.ant-table-expanded-row:hover {
    background-color: #fff;
  }

  tr.ant-table-expanded-row > td {
    padding: 0 !important;
  }

  // only for table operation button in config handle
  .operation-content .config-handle {
    left: auto !important;
    right: -1px;
  }

  /* -------------------------------- 表头 sticky ------------------------------- */
  .header-sticky .ant-table-thead {
    position: sticky;
    top: 0;
    z-index: 1;
  }
  /* ---------------------------------- 列垂直对齐 --------------------------------- */
  @vAlignList: top, middle, bottom;
  each(@vAlignList, {
    @column-valign-classname: ~'.column-valign-@{value}';
    @{column-valign-classname} .ant-table-thead > tr > th, @{column-valign-classname} .ant-table-tbody > tr > td {
      vertical-align: @value;
    }
  });
}

/* ----------------------------------- 子表格 ---------------------------------- */
.ant-table-scroll .ant-table-expanded-row {
  & > td {
    background: #fafafa;
  }
  .yee-table-wrapper {
    margin-top: 0;
  }
}

.ant-table-fixed .ant-table-expanded-row {
  position: relative;
  z-index: 2;
}
/* ----------------------------------- 子表格 ---------------------------------- */

.yee-table-oper-dropdown {
  width: 200px;
  background-color: #fff;
  border-radius: 2px;
  box-shadow:
    0 3px 6px -4px rgba(0, 0, 0, 0.12),
    0 6px 16px 0 rgba(0, 0, 0, 0.08),
    0 9px 28px 8px rgba(0, 0, 0, 0.05);
  .header {
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .col-list {
    padding: 8px 0;
    max-height: 300px;
    overflow-y: auto;
    cursor: pointer;
    .col-item {
      margin-bottom: 4px;
      display: flex;
      align-items: center;
      height: 28px;
      .icon-wrap {
        display: flex;
        align-items: center;
        width: 40px;
        .icon-more {
          cursor: grab;
          width: 4px;
          color: #999;
        }
      }

      &:last-child {
        margin-bottom: 0;
      }
      &:hover {
        background-color: @item-hover-bg;
        .icon-wrap {
          .icon-more {
            color: #666;
          }
        }
      }
    }
  }
}

.yee-table-oper-dropdown-check-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  width: 110px;
  display: inline-block;
  vertical-align: middle;
}
