@media only screen and (max-width: 768px),
  (min-device-width: 768px) and (max-device-width: 1024px) {
  /* Force table to not be like tables anymore */
  table#hub-contacts-table,
  table#hub-contacts-table th,
  table#hub-contacts-table td,
  table#hub-contacts-table tbody tr.odd,
  table#hub-contacts-table tbody tr.even {
    display: block;
  }

  table#hub-contacts-table {
    background-color: transparent;
    border-top: none;
  }

  table#hub-contacts-table thead {
    /* display: none; */
  }

  /* Hide table headers (but not display: none;, for accessibility) */
  table#hub-contacts-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  table#hub-contacts-table tr {
    border: 1px solid #ccc;
    margin-bottom: 2em;
  }

  table#hub-contacts-table tr.dt-hasChild {
    margin-bottom: 0;
  }

  table#hub-contacts-table tbody tr td {
    /* Behave  like a "row" */
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding: 2em 0.5em 0.125em 1em;
  }

  table#hub-contacts-table tbody tr td table {
    background: none !important;
  }

  table#hub-contacts-table tbody td table td {
    padding: 0.5em;
  }

  table#hub-contacts-table td:before {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    font-weight: bold;
    text-shadow: 1px 1px #fff;
    color: #333;
  }

  table#hub-contacts-table td.dt-control {
    height: 1.25em;
  }

  table#hub-contacts-table td.dt-control::before {
    height: 25px;
    width: 17px;
    border-radius: 15px;
    margin-top: 0;
    display: inline-block;
    color: white;
    border: 0.125em solid white;
    box-shadow: 0 0 0.2em #444;
    box-sizing: content-box;
    text-align: center;
    text-indent: 0 !important;
    font-family: "Courier New", Courier, monospace;
    line-height: 1em;
    content: "+";
    background-color: #31b131;
    padding-left: 7px;
    padding-top: 4px;
    font-size: 1.5em;
  }

  table#hub-contacts-table tr.dt-hasChild td.dt-control::before {
    content: "-";
    background-color: #d33333;
  }

  /* responsive child-row styles  */

  table#hub-contacts-table td table.hub-vendor-details {
    width: 100%;
  }

  table#hub-contacts-table td table.hub-vendor-details tbody tr {
    display: block;
    margin-bottom: -1px;
    background: #fff;
  }

  table#hub-contacts-table td table.hub-vendor-details tbody tr td {
    display: inline-block;
  }

  /*
	Label the data
	*/

  table#hub-contacts-table tbody tr.odd td:nth-of-type(2):before,
  table#hub-contacts-table tbody tr.even td:nth-of-type(2):before {
    content: "Vendor Name";
  }

  table#hub-contacts-table tbody tr.odd td:nth-of-type(3):before,
  table#hub-contacts-table tbody tr.even td:nth-of-type(3):before {
    content: "Business Description";
  }

  table#hub-contacts-table tbody tr.odd td:nth-of-type(4):before,
  table#hub-contacts-table tbody tr.even td:nth-of-type(4):before {
    content: "City";
  }

  table#hub-contacts-table tbody tr.odd td:nth-of-type(5):before,
  table#hub-contacts-table tbody tr.even td:nth-of-type(5):before {
    content: "County";
  }

  table#hub-contacts-table tbody tr.odd td:nth-of-type(6):before,
  table#hub-contacts-table tbody tr.even td:nth-of-type(6):before {
    content: "HUB Eligibility";
  }

  table#hub-contacts-table tbody tr.odd td:nth-of-type(7):before,
  table#hub-contacts-table tbody tr.even td:nth-of-type(7):before {
    content: "Vendor ID";
  }
}

#hub-contacts-table_wrapper {
  margin: 20px 0;
  overflow-x: auto;
  font-size: 14px;
}

table#hub-contacts-table {
  font-size: 12px;
}

table#hub-contacts-table thead th {
  text-shadow: 1px 1px #fff;
  background: #dbdbdb;
}

/* custom hub */
.hub-vendor-details {
  border-top: 3px solid var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
  background-color: rgba(var(--bs-emphasis-color-rgb), 0.05);
}

#hub-contacts-table {
  border-top: 3px solid var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
}

#hub-contacts-table td[colspan="7"] {
  padding: 6px;
  padding-bottom: 12px;
}