@root-entry-name: 'default';
@import '../index.less';
@auto-scroll-table: ~'@{ant-prefix}-auto-scroll-table';

.@{auto-scroll-table} {
  th,
  td {
    align-self: center;
    text-align: center;
    color: var(--body-font);
  }

  &-top {
    background: rgba(0, 0, 0, 0);
    tr {
      display: grid;
    }
  }
  &-scrollBox {
    position: relative;
    overflow: hidden;
    th,
    td {
      padding-top: 6px;
      padding-bottom: 6px;
      font-size: 12px;
      font-weight: normal;
    }
  }
  &-tabScroll {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-top: none;
    td {
      text-align: center;
      border-top: none;
    }
  }
  &-grid {
    display: grid;
  }
  &-scrollBox tbody:nth-child(even) > tr:nth-child(even),
  &-scrollBox tbody:nth-child(odd) > tr:nth-child(odd) {
    background: var(--fill-1);
    border-radius: 4px;
  }
}
