  table {
    width: 100%;
    text-align: left;
    border-collapse: separate;
    border-spacing: 0;
    box-sizing: border-box;
  }

  td {
    padding: 1em;
    border: 2px solid transparent;
    transition: background-color 0.3s, transform 0.3s;
  }

  tbody th {
    padding: 1em;
    border: 2px solid transparent;
    transition: background-color 0.3s, transform 0.3s;
  }

  tr {
    border: 2px solid transparent;
  }

  th {
    font-weight: 600;
  }

  .root {
    border-color: transparent;
  }

  colgroup col:nth-child(1) { width: 25%; }
  colgroup col:not(:first-child) { width: 15%; border: 2px solid transparent; }

  .first {
    border-radius: 0.5rem 0.5rem 0 0;
  }

  thead th {
    text-align: center;
    position: relative;
    font-weight: 400;
    transition: background-color 0.3s, transform 0.3s;
  }

  thead th:first-child {
    background: transparent;
  }

  thead h2 {
    font-weight: 300;
    font-size: 2em;
    line-height: 1.2;
    color: var(--brand-color);
    margin: .5em;
  }

  thead h2 + p {
    font-size: 1.25em;
  }

  tbody th {
    background: transparent;
  }

  tbody th span {
    font-weight: normal;
    font-size: 87.5%;
    color: var(--text-color);
    display: block;
  }

  tbody td {
    background: transparent;
    text-align: center;
  }

  .col-hover {
    border-color: #59c7fb;
    background-color: rgba(255, 255, 255, .3);
  }

  th:hover, td:hover {
    cursor: pointer;
    z-index: 10;
  }
  
  .border-left {
    border-left: 2px solid #59c7fb;
    border-top-color: transparent;
    border-bottom-color: transparent;
  }
  
  .border-right {
    border-right: 2px solid #59c7fb;
    border-top-color: transparent;
    border-bottom-color: transparent;
  }

  .border-top {
    border-top: 2px solid #59c7fb;
    border-bottom-color: transparent;
  }
  
  .border-bottom {
    border-bottom: 2px solid #59c7fb;
    border-top-color: transparent;
  }

  .col-selected {
    background-color: rgba(255, 255, 255, .1);
  }

  .selected-left {
    border-left: 2px solid var(--brand-color);
    border-top-color: transparent;
    border-bottom-color: transparent;
  }
  
  .selected-right {
    border-right: 2px solid var(--brand-color);
    border-top-color: transparent;
    border-bottom-color: transparent;
  }

  .selected-top {
    border-top: 2px solid var(--brand-color);
    border-bottom-color: transparent;
  }
  
  .selected-bottom {
    border-bottom: 2px solid var(--brand-color);
    border-top-color: transparent;
  }

  @media only screen and (max-width: 768px) {
    table {
      overflow-x: auto;
      white-space: nowrap;
    }
  }