/* Responsive Table Overrides for Tabler UI */
/* ----------------------------------------- */

.table-responsive-custom table {
  border: 1px solid #ddd;
  border-collapse: collapse;
  margin: 0;
  padding: 0;
  width: 100%;
  table-layout: auto;
}

.table-responsive-custom caption {
  font-size: 1.5em;
  margin: .5em 0 .75em;
}

.table-responsive-custom tr {
  padding: .35em;
}

.table-responsive-custom th,
.table-responsive-custom td {
  padding: .625em;
}

.table-responsive-custom th {
  font-size: .85em;
  letter-spacing: .1em;
}

/* By default, show Initials */
.full-name { display: none; }
.initials { display: inline; }

/* Mobile view (≤ 600px) */
@media screen and (max-width: 600px) {
  .table-responsive-custom table {
    border: 0;
  }

  .table-responsive-custom caption {
    font-size: 1.3em;
  }

  .table-responsive-custom thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  .table-responsive-custom tr {
    border-bottom: 3px solid #ddd;
    display: block;
    margin-bottom: .625em;
  }

  .table-responsive-custom td {
    border-bottom: 1px solid #ddd;
    display: block;
    font-size: .8em;
    text-align: right;
  }

  .table-responsive-custom td::before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }

  .table-responsive-custom td:last-child {
    border-bottom: 0;
  }
  /* On small screens, hide full name and show initials */
  .full-name {
    display: inline;
  }
  .initials {
    display: none;
  }
}
