// Tables
.table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;

  th {
    font-weight: normal;
  }

  @if $rtl == true {
    text-align: right;
  } @else {
    text-align: left;
  }

  &.table-fixed {
    table-layout: fixed;
  }

  &.table-header-fixed {
   thead th {
    position: sticky;
    top: 0;
    z-index: 11;
   }
  }

  &.table-striped {
    tbody {
      tr:nth-of-type(even) {
        background: $bg-1-color;
      }
    }

    &.table-striped-reverse {
      tbody {
        tr:nth-of-type(even) {
          background: inherit;
        }

        tr:nth-of-type(odd) {
          background: $bg-1-color;
        }
      }
    }
  }

  &, &.table-striped {
    tbody {
      tr {
        &.active {
          background: $bg-1-color;
        }
      }
    }
  }

  &.table-hover {
    tbody {
      tr:not([disabled]) {
        &:hover {
          background: $bg-2-color;
          cursor: pointer;
        }
      }
    }
  }

  // Tables with horizontal scrollbar
  &.table-scroll {
    height: inherit;
    display: block;
    overflow-x: auto;
    padding-bottom: .75rem;
    white-space: nowrap;
  }

  &.table-compact {
    font-size: $font-size-sm;

    td {
      padding: 0;
    }
  }

  td,
  th {
    //	border-bottom: $border-width solid $border-color;
    padding: $unit-2;
  }

  th {
    border-bottom-width: $border-width-lg;
  }
}

.table-small {
  font-size: $font-size-sm;
}

.table-reverse {
  display: flex;
  flex-direction: column-reverse;

  tr {
    display: inline-flex;
    flex-wrap: wrap;

    td {

    }
  }
}