@root-entry-name: 'default';
@import (reference) '~antd/es/style/themes/index.less';

.dv-scroll-table {
  position: relative;
  width: 100%;
  height: 100%;
  color: #fff;

  .header {
    display: grid;
    font-size: 13px;
    font-weight: 400;
    color: #999;
    line-height: 18px;

    .header-item {
      padding: 16px 8px;
      box-sizing: border-box;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }

  .rows {
    overflow: hidden;

    .row-item {
      color: @text-color;
      font-size: @font-size-base;
      font-variant: @font-variant-base;
      line-height: @line-height-base;
      min-height: 40px;
      display: grid;
    }

    .ceil {
      padding: 16px 8px;
      box-sizing: border-box;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-size: @font-size-base;
      font-variant: @font-variant-base;
      line-height: @line-height-base;
    }

    .index {
      width: 20px;
      height: 20px;
      background: #f8f8f8;
      display: inline-block;
      text-align: center;
      line-height: 20px;
      border-radius: 50%;
      color: #333;
    }

    .highlighted {
      background: var(--ant-primary-color, @primary-color);
      color: #fff;
    }
  }

  &.middle {
    .header-item {
      padding: 12px 6px;
    }
    .rows {
      .ceil {
        padding: 12px 6px;
      }
    }
  }

  &.small {
    .header-item {
      padding: 8px 4px;
    }
    .rows {
      .ceil {
        padding: 8px 4px;
      }
    }
  }

  .align-left {
    text-align: left;
  }

  .align-right {
    text-align: right;
  }

  .align-center {
    text-align: center;
  }
}
