@use 'sass:map';

@use 'mixins/mixins' as *;
@use 'mixins/var' as *;
@use 'common/var' as *;

.cig-table-check-btn {
  padding: 5px 0;
  text-align: right;
  border-top: 1px solid var(--el-border-color-base);
}
.cig-table {
  @include set-component-css-var('pagination', $pagination);
  .el-table-tooltip {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .el-table__empty-block {
    height: 100%;
    .cig-table-empty {
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      line-height: 1;
      .cig-table-empty-icon {
        .el-table-empty-text {
          line-height: 18px;
          width: 100%;
          text-align: center;
          padding-top: 8px;
        }
      }
    }
  }
  .header-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    > .button-group {
      &:first-child {
        text-align: left;
      }
      &:last-child {
        text-align: right;
        .cig-icon--right {
          margin-left: 5px;
          transition: transform 0.3s ease;
          &.is-change {
            transform: rotate(180deg);
          }
        }
      }
    }
  }
  .csi-table-footer {
    display: flex;
    justify-content: space-between;
    padding: 10px 0 0;
    .selection {
      display: flex;
      align-items: center;
      font-size: var(--el-pagination-font-size);
      color: var(--el-pagination-text-color);
      .check {
        padding-left: 12px;
      }
    }
    .csi-page {
      .el-pagination {
        font-weight: normal;
      }
      .total {
        padding-right: 12px;
      }
    }
  }
  .cell {
    position: relative;
    .el-column-setting {
      display: inline-block;
      line-height: 24px;
    }
    .el-popover-column {
      position: absolute;
      top: 0;
      right: 12px;
    }

    .el-tooltip__trigger {
      &:not(.el-popover-column, .el-tag) {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }
  }
}
