table {
  border-collapse: collapse;

  caption {
    font-weight: font-weight(medium);
  }
}

thead {
  color: color(gray, minus1);
  font-size: font-size(-1);

  tr {
    border-top: 1px solid color(gray, plus2);
    border-bottom: 2px solid color(gray, plus2);
  }
}

tbody {
  tr {
    border-bottom: 1px solid color(gray, plus2);
    transition: background 100ms linear;

    &:last-of-type {
      border-bottom: 0;
    }
  }
}

th {
  text-align: left;
}

th,
td {
  padding: padding(1);
}

.table-hoverable {
  tbody {
    tr:hover {
      background: color(gray, plus5);
      transition: background 100ms linear;
    }
  }
}

.table-striped {
  tbody {
    tr:nth-child(odd) {
      background: color(gray, plus5);
    }
  }
}

.table_header-contrasting {
  thead {
    background: color(gray, plus4);
    color: color(black);
  }
}

.table-bordered {
  td,
  th {
    border: 1px solid color(gray, plus2);
  }
}

.table-condensed {
  font-size: font-size(-2);

  thead {
    font-size: font-size(-3);
  }

  th,
  td {
    padding: padding(0.5);
  }
}
