/*
 * jQuery Basic Table
 * Author: Jerry Low
 */

table.bt thead,
table.bt tbody th {
  display: none;
}

table.bt tfoot th,
table.bt tfoot td,
table.bt tbody td {
  border: none;
  display: block;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  vertical-align: top;
  /* IE 9 */
  float: left\9;
  width: 100%\9;
}

table.bt tfoot th::before,
table.bt tfoot td::before,
table.bt tbody td::before {
  content: attr(data-th) ": ";
  display: inline-block;
  -webkit-flex-shrink: 0;
  -ms-flex-shrink: 0;
  flex-shrink: 0;
  font-weight: bold;
  width: 6.5em;
}

table.bt tfoot th.bt-hide,
table.bt tfoot td.bt-hide,
table.bt tbody td.bt-hide {
  display: none;
}

table.bt tfoot th .bt-content,
table.bt tfoot td .bt-content,
table.bt tbody td .bt-content {
  vertical-align: top;
}

.bt-wrapper.active {
  max-height: 310px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

table.bt.bt--no-header tfoot td::before,
table.bt.bt--no-header tbody td::before {
  display: none;
}

/*** Customisation ***/

table {
  background: transparent;
  border-collapse: collapse;
  margin: 1.25em 0 0;
  width: 100%;
}

table tr,
table th,
table td {
  font-size: 0.875rem;
}

table th,
table td {
  padding: 10px 12px;
  text-align: left;
}

table th {
  background: #4db6ac;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: bold;
}

table tr td {
  background: transparent;
  color: #020001;
  border-bottom: 1px solid rgba(2, 0, 1, 0.12);
}

.is-style-stripes table tr td {
  border-bottom: none;
}

.is-style-stripes table tr:nth-of-type(2n + 2) td {
  background: rgba(2, 0, 1, 0.05);
}
table.bt tbody tr {
  border-bottom: 1px solid rgba(2, 0, 1, 0.12);
}

table.bt tbody td {
  font-size: 0.8125rem;
  padding: 0;
}

table.bt tbody td:before {
  background: #4db6ac;
  color: white;
  margin-right: 10px;
  padding: 8px 10px;
}

table.bt tbody td .bt-content {
  display: inline-block;
  padding: 8px 5px;
}

table.bt tbody td:first-of-type:before,
table.bt tbody td:first-of-type .bt-content {
  padding-top: 16px;
}

table.bt tbody td:last-of-type:before,
table.bt tbody td:last-of-type .bt-content {
  padding-bottom: 16px;
}

table.bt tfoot th::before,
table.bt tfoot td::before,
table.bt tbody td::before {
  width: 8rem;
}
