.responsive-cards {
  padding: 8px 0;
}
.responsive-card {
  border: 1px solid #e7e7e7;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
}
.responsive-card__label {
  font-weight: 600;
  color: #666;
  padding-bottom: 6px;
}
.responsive-card__value {
  color: #333;
  padding-bottom: 6px;
  /* Allow wrapping on mobile but avoid breaking words awkwardly */
  word-break: break-word;
  overflow-wrap: anywhere;
}
.responsive-card__actions {
  margin-top: 8px;
}

/* Keep table layout on larger screens */
@media (min-width: 768px) {
  .responsive-cards {
    display: none;
  }
}

@media (max-width: 767px) {
  .table-responsive {
    display: none !important;
  }
}

/* Table cells inside the responsive-table should truncate nicely on desktop */
.responsive-table table td,
.responsive-table table th {
  vertical-align: middle;
}
.responsive-table table td {
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* For email links, show full value on hover via title; on small screens allow wrapping */
.responsive-table .responsive-card__value a,
.responsive-table table td a {
  color: #337ab7;
  text-decoration: none;
}
.responsive-table .responsive-card__value a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .responsive-card__label {
    font-size: 13px;
  }
  .responsive-card__value {
    font-size: 14px;
  }
}
