/* Responsive table styling */
thead {
  border: 0;
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

tbody tr {
  display: block;
  margin-bottom: 1.5em;
  padding: 0 0.5em;
}

tbody tr td {
  display: block; /* browsers that don't support flex */
  display: flex;
  justify-content: space-between;
  min-width: 1px;
  text-align: right;
}

@media all and (-ms-high-contrast: none) { /* IE11 flex fix */
  tbody tr td {
    display: block;
  }
}
.responsive-table__heading {
  font-weight: 700;
  padding-right: 1em;
  text-align: left;
  word-break: initial;
}

@media (max-width: 768px) {
  tbody tr td {
    padding-right: 0;
  }
  tbody tr td:last-child {
    border-bottom: 0;
  }
  tbody tr {
    border-bottom: 3px solid grey;
  }
  .responsive-table__cell {
    text-align: right;
  }
  .govuk-table__header:last-child, .govuk-table__cell:last-child {
    padding-right: 1em;
  }
}
@media (min-width: 769px) {
  thead {
    clip: auto;
    -webkit-clip-path: none;
    clip-path: none;
    display: table-header-group;
    height: auto;
    overflow: auto;
    position: relative;
    width: auto;
  }
  tbody tr {
    display: table-row;
  }
  tbody tr td {
    display: table-cell;
    text-align: left;
  }
  .responsive-table__heading {
    display: none;
  }
}