@import '../../style/themes/index.less';
@import '../../style/mixins/flex.less';

@depot-prefix-cls: ~'@{depot-prefix}-auto-table';

.@{depot-prefix-cls} {
  & > &-footer {
    position: absolute;
    left: 0;
    top: auto;
    bottom: 0;
    // padding: 16px 0;
    padding-left: 8px;
  }
  & > &-footer-top {
    bottom: auto;
    top: 0;
  }
  & .ant-table-pagination.ant-pagination {
    .flex;
    float: none;
    text-align: center;
    align-items: center;
    justify-content: flex-end;
    box-shadow: 0px -6px 6px -6px rgba(0, 0, 0, 0.2);
    padding: 12px 8px;
    margin: 12px 0 0;
  }
  & .ant-table-content {
    .flex-grow;
    .flex;
  }
  & > .depot-layout-temptable {
    & .ant-table-wrapper {
      .flex-grow;
      .flex;
    }
  }
  & .ant-spin-nested-loading,
  & .ant-spin-container,
  & .ant-table-body,
  & .ant-table,
  & .ant-table-scroll {
    .flex;
    .flex-col;
    .flex-grow;
  }

  & .ant-table-empty > .ant-table-content {
    & .ant-table-scroll {
      & > .ant-table-body {
        flex-grow: 0;
      }
      & > .ant-table-placeholder {
        flex-grow: 1;
      }
    }
  }
}
