////////表格////////
////基本////
.d-table {
  table-layout: fixed;
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  color: @sys-color-gray;
  caption {
    padding-top: 8px;
    padding-bottom: 8px;
    color: #777;
    text-align: left;
  }
  th {
    text-align: left;
  }
  & > thead > tr > th,
  & > tbody > tr > th,
  & > tfoot > tr > th,
  & > thead > tr > td,
  & > tbody > tr > td,
  & > tfoot > tr > td{
    padding: @base-padding;
    line-height: @base-line-height;
    vertical-align: top;
    border-top: 1px solid @color-border;
    &.d-vm {
      vertical-align: middle;
    }
    &.d-condensed {
      padding: 0;
    }
  }
  & > thead > tr > th {
    vertical-align: bottom;
    border-bottom: 1px solid @color-border;
  }
  & > caption + thead > tr:first-child > th,
  & > colgroup + thead > tr:first-child > th,
  & > thead:first-child > tr:first-child > th,
  & > caption + thead > tr:first-child > td,
  & > colgroup + thead > tr:first-child > td,
  & > thead:first-child > tr:first-child > td {
    border-top: 0;
  }
  & > tbody + tbody {
    border-top: 1px solid @color-border;
  }
  & > tbody > tr {
    transition-duration: @sys-duration-sm;
    &.active {
      background-color: darken(#f5f5f5, 5%);
    }
  }
}

////圆角表格////
// .d-table-radius {
//   border-radius: @sys-radius-sm;
// }

////表格自适应////
.d-table-suit {
  width: auto;
  max-width: none;
}

////列宽由表格宽度和列宽度设定////
.d-table-fixed {
  table-layout: fixed;
}

////紧缩表格////
.d-table-condensed {
  & > thead > tr > th,
  & > tbody > tr > th,
  & > tfoot > tr > th,
  & > thead > tr > td,
  & > tbody > tr > td,
  & > tfoot > tr > td{
    padding: @base-padding / 2;
  }
}

////边框////
.d-table-bordered {
  border: 1px solid #ddd;
  & > thead > tr > th,
  & > tbody > tr > th,
  & > tfoot > tr > th,
  & > thead > tr > td,
  & > tbody > tr > td,
  & > tfoot > tr > td{
    border: 1px solid #ddd;
  }
  // & > thead > tr > th,
  // & > thead > tr > td {
  //   border-bottom-width: 2px;
  // }
}
.d-table-bordered-column {
  border: 1px solid #ddd;
  & > thead > tr > th,
  & > tbody > tr > th,
  & > tfoot > tr > th,
  & > thead > tr > td,
  & > tbody > tr > td,
  & > tfoot > tr > td{
    border-width: 0 1px 0 0;
    border-style: solid;
    border-color: #e6e6e6;
  }
}

////无边框////
.d-table-noborder {
  border: 0;
  & > thead > tr > th,
  & > tbody > tr > th,
  & > tfoot > tr > th,
  & > thead > tr > td,
  & > tbody > tr > td,
  & > tfoot > tr > td{
    border: 0;
    border-color:transparent;
  }
}

////条纹////
.d-table-striped {
  & > thead > tr > th {
    background-color: #eee;
  }
  & > tbody > tr:nth-of-type(odd) {
    background-color: #f9f9f9;
  }
}

////悬浮////
.d-table-hover {
  & > tbody > tr:hover,
  & > tbody > tr:active {
    background-color: lighten(@color-theme, 32%);
  }
  & > tbody > tr.active:hover {
    background-color: lighten(@color-theme, 30%);
  }
}

////////扩展////////
////情景////
