/* Slightly modified version of
https://github.com/alcaeus/bootstrap-table-responsive/blob/master/dist/css/bootstrap-table-responsive.css
*/
.table-collapse tbody > tr > td.collapse-toggle {
  display: none;
  padding: 4px 4px 0 0;
}

@media (max-width: 768px) {
  .table-collapse {
    display: block;
  }
  .table-collapse caption {
    display: block;
  }
  .table-collapse thead,
  .table-collapse tbody,
  .table-collapse tfoot {
    display: block;
  }
  .table-collapse thead > tr,
  .table-collapse tbody > tr,
  .table-collapse tfoot > tr {
    display: block;
    border-top: 8px dotted #dddddd;
  }
  .table-collapse tbody > tr:first-child {
    border-top: none;
  }
  .table-collapse thead > tr > th,
  .table-collapse thead > tr > td,
  .table-collapse tbody > tr > th,
  .table-collapse tbody > tr > td,
  .table-collapse tfoot > tr > th,
  .table-collapse tfoot > tr > td {
    display: block;
    border: none;
    width: 100% !important;
  }
  .table-collapse tbody > tr > td.collapse-toggle {
    display: block;
    float: right;
  }
  .table-collapse tbody > tr > td.collapse {
    display: none;
  }
  .table-collapse tbody > tr > td[data-caption]:before {
    display: block;
    width: 100%;
    overflow: hidden;
    padding-bottom: 4px;
    clear: left;
    font-weight: bold;
    text-overflow: ellipsis;
    white-space: nowrap;
    content: attr(data-caption);
  }
  .table-collapse.table-bordered {
    border: none;
  }
  .table-collapse.table-bordered tbody {
    border: 1px solid #dddddd;
  }
}
