.transfer-companies-wrap {
  margin: 1rem 0;
}

.transfer-companies-wrap summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

@media (min-width: 769px) {
  /* Large screens: behave like a normal open section */
  .transfer-companies-wrap summary {
    display: none;
  }
}

.transfer-companies-table {
  width: 100%;
  border-collapse: collapse;
}

.transfer-companies-table th,
.transfer-companies-table td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  vertical-align: top;
  text-align: left;
}

.transfer-companies-table th:first-child,
.transfer-companies-table td:first-child {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .transfer-companies-table thead {
    display: none;
  }

  .transfer-companies-table,
  .transfer-companies-table tbody,
  .transfer-companies-table tr,
  .transfer-companies-table td {
    display: block;
    width: 100%;
  }

  .transfer-companies-table tr {
    margin-bottom: 0.85rem;
    border: 1px solid #ccc;
    padding: 0.35rem;
    background: #fff;
  }

  .transfer-companies-table td {
    border: none;
    border-bottom: 1px solid #eee;
    padding: 0.35rem 0.35rem 0.35rem 45%;
    position: relative;
    min-height: 2rem;
  }

  .transfer-companies-table td:last-child {
    border-bottom: none;
  }

  .transfer-companies-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0.35rem;
    top: 0.35rem;
    width: 42%;
    font-weight: 600;
    white-space: normal;
  }
}
