// ==========================================================================
// Tables
// ==========================================================================

table {
  display: table;
  color: $gray-darker;
  font-size: $font-sm;
  border-collapse: collapse;
  overflow: scroll;
  text-align: left;

  @media (max-width: $mobile) {
    font-size: $font-xs;
  }

  th {
    text-transform: uppercase;
    color: $gray-dark;
    font-size: $font-xs;
    display: table-header-group;
  }

  td, th {
    display: table-cell;
    min-width: auto;
    padding: 10px 0;

    &:not(:last-child) {
      padding-right: 15px;
    }

    a {
      overflow-wrap: break-word;
      word-wrap: break-word;
    }
  }

  tr {
    display: table-row;
    border-bottom: 1px solid $gray-lighter;
    padding: 8px 0;
  }

  &.zebra {
    tr {
      &:nth-child(2n) {
        background: rgba($gray-lighter, .2);
      }
    }
  }

  tfoot {
    display: table-footer-group;
  }

  .center {
    text-align: center;
  }

  &.full-width {
    width: 100%;
  }
}
