@import '../../base/bootstrap-extended/include'; // Bootstrap includes
@import '../../base/components/include'; // Components includes
.el-table__header-wrapper {
  padding-top: 10px;
  padding-bottom: 10px;
}
.el-table .descending .sort-caret.descending{
  border-top-color: $primary;
}
.el-table .ascending .sort-caret.ascending{
  border-bottom-color: $primary;
}
.el-table {
  color: $body-color;
}
// 去除底部线
.el-table::before,
.el-table__fixed::before,
.el-table__fixed-right::before{
  display: none !important;
}
/* element表格 */
.el-table th {
  background-color: $table-head-bg !important;
  color: $body-color !important;
  border-bottom: none;
  font-size: 1.1rem !important;
}
.el-table  td, .el-table  th,
.el-table  td, .el-table  th.is-leaf {
  border-bottom: none;
}

/* 滚动条整体部分 */
.el-table__body-wrapper::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

/* scroll轨道背景 */
.el-table__body-wrapper::-webkit-scrollbar-track{
  background-color: transparent;
}

/* 滚动条中能上下移动的小块 */
.el-table__body-wrapper::-webkit-scrollbar-thumb {
  border-radius: 10px;
  //-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
  background-color: rgba($secondary, .1);
}

.el-dashed-border {
  .el-table__header-wrapper,
  .el-table__body-wrapper th, .el-table__body-wrapper td, .el-table__body-wrapper th.is-leaf,
  .el-table__fixed-body-wrapper th, .el-table__fixed-body-wrapper td, .el-table__fixed-body-wrapper th.is-leaf {
    //&:not(:last-child) {
    //}
    border-bottom: 1px $table-border-color dashed ;
  }
}

.el-table_dashed {
  .el-table__row  td {
    border-top: $table-dashed-line;
  }
}
.dark-layout {
  .el-table {
    background-color: $theme-dark-table-bg;
  }
  .el-dashed-border {
    .el-table__header-wrapper,
    .el-table__body-wrapper th, .el-table__body-wrapper td, .el-table__body-wrapper th.is-leaf,
    .el-table__fixed-body-wrapper th, .el-table__fixed-body-wrapper td, .el-table__fixed-body-wrapper th.is-leaf {
      //&:not(:last-child) {
      //}
      border-bottom: $theme-dark-table-dashed-line;
    }
  }
  .el-table__header-wrapper,
  .el-table__body-wrapper {
    background-color: $theme-dark-table-bg;
  }
  /* element表格 */
  .el-table th {
    background-color: $theme-dark-table-bg !important;
    color: #fff !important;
  }
  .el-table tr {
    background-color: $theme-dark-table-header-bg !important;
  }
  .el-table_dashed {
    .el-table__row  td {
      border-top: $theme-dark-table-dashed-line;
    }
  }
  .el-table {
    color: #b4b7bd;
  }
  .el-table--border::after,  .el-table--group::after, .el-table::before {
    background-color: $theme-dark-table-dashed-line;
  }

  .el-table .el-table__body tr.current-row > td ,
  .el-table .el-table__body tr.hover-row > td ,
  .el-table .el-table__body tr:hover > td{
    background-color: $theme-dark-table-hover-bg !important;
  }

  .el-table__empty-block {
    background-color: $theme-dark-table-dashed-line !important;
  }
  .el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner {
    background-color: $primary !important;
    border-color: $primary !important;
  }
  // 行展开背景
  .el-table__expanded-cell {
    background-color: $theme-dark-table-row-bg;
  }
}
