/* Patient detail: name leads, the alert says why you're here, the hidden
   clinical value sits in one panel, and the shift reads as one timeline. */
.detail-room {
  margin: var(--space-1) 0 0;
  color: var(--muted);
  font-size: var(--text-small);
}

.detail-alert {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: 16px;
  background: var(--error-container);
  color: var(--on-error-container);
  font-size: var(--text-small);
  font-weight: 600;
}

.detail-block {
  margin-top: var(--space-7);
}

.detail-block .detail-section-title {
  margin: 0 0 var(--space-3);
}

.clinical-why {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  color: var(--muted);
  font-size: var(--text-caption);
  line-height: 1.45;
}

.clinical-why .icon-svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shift-list {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--elevation-1);
  list-style: none;
}

.shift-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: start;
  gap: var(--space-3);
  min-height: 56px;
  padding: var(--space-3) var(--space-4);
}

.shift-row + .shift-row {
  border-top: 1px solid var(--stone-border);
}

.shift-time {
  padding-top: 2px;
  color: var(--muted);
  font-size: var(--text-small);
  font-variant-numeric: tabular-nums;
}

.shift-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.shift-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.shift-copy span {
  overflow-wrap: anywhere;
  color: var(--body);
  font-size: var(--text-small);
}

.shift-status {
  align-self: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-size: var(--text-caption);
  font-weight: 600;
}

.shift-row.is-done .shift-status {
  background: transparent;
  color: var(--muted);
}
