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

.dv-scroll-table2 {
  position: relative;
  width: 100%;
  height: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  border-collapse: collapse;

  ::-webkit-scrollbar {
    width: 0;
    height: 0;
    z-index: 0;
    background-color: transparent;
  }

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

    .header-item {
      padding: 16px 8px;
      box-sizing: border-box;
    }
  }

  .dv-scroll-rows {
    flex: 1;
    overflow: auto;
    .dv-scroll-content {
      border-collapse: collapse;
      border-spacing: 0;
    }

    .dv-scroll-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;
      font-size: @font-size-base;
      font-variant: @font-variant-base;
      line-height: @line-height-base;
    }
    
    .arrow-down {
      margin-left: 6px;
      user-select: none;
      white-space: nowrap;
      cursor: pointer;
    }

    .arrow-down-icon {
      font-size: 12px;
      margin-left: 4px;
    }

    .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;
    }
    .dv-scroll-rows {
      .ceil {
        padding: 12px 6px;
      }
    }
  }

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

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

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

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