/* Module stylesheet: handoff. Owned by the handoff feature module; base styles live in public/style.css. */
.handoff-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}
.handoff-grid > .card {
  margin-bottom: 0;
}
.handoff-grid h3:first-child {
  margin-top: 0;
}
.approval-missing {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.approval-missing p {
  margin: 0;
}
.approved-total {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.owner-form {
  align-items: flex-end;
  margin: 0.5rem 0;
}
.owner-form label:not(.checkbox) {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.payment-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.payment-status .reason {
  overflow-wrap: anywhere;
}
.payment-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem 1rem;
  margin: 0.75rem 0;
}
.payment-actions form {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
  margin: 0;
}
.acknowledgements li {
  color: var(--warning);
}
.payment-history summary {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.milestone-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.scope-list li {
  padding: 0.3rem 0;
}
.handoff-history .acknowledged-warnings ul {
  margin: 0.2rem 0 0.2rem 1.2rem;
  padding: 0;
  color: var(--warning);
}
.handoff-history li {
  overflow-wrap: anywhere;
}
.gate .form-actions button {
  min-width: 10rem;
}
/* The shared gate form is a .stack; keep its acknowledge checkbox on one line with its label. */
.gate form.stack label.checkbox {
  flex-direction: row;
  align-items: center;
}
@media (max-width: 600px) {
  .payment-actions {
    grid-template-columns: 1fr;
  }
}
