.held-lab-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  max-width: 64rem;
}

.held-lab-results-header h1 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.held-lab-results-header p,
.held-lab-result-note,
.held-lab-result-received {
  color: var(--muted-foreground, #555);
  font-size: 0.875rem;
  margin: 0;
}

.held-lab-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.held-lab-result-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border, #ddd);
  border-radius: 0.5rem;
  background: var(--card, #fff);
}

.held-lab-result-summary {
  flex: 1 1 18rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.held-lab-result-test {
  font-weight: 600;
  margin: 0;
  overflow-wrap: anywhere;
}

.held-lab-result-meta,
.held-lab-result-reason {
  margin: 0;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.held-lab-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.held-lab-results-loading,
.held-lab-result-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.held-lab-result-sent {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 0.75rem;
  margin: 0;
  font-size: 0.875rem;
}

.held-lab-result-sent dt {
  color: var(--muted-foreground, #555);
}

.held-lab-result-sent dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .held-lab-results {
    padding: 0.75rem;
  }

  .held-lab-result-actions {
    width: 100%;
  }

  .held-lab-result-actions > button {
    flex: 1 1 auto;
  }

  .held-lab-result-sent {
    grid-template-columns: 1fr;
  }
}

.held-lab-result-warning {
  color: var(--destructive);
}
