/* js/payments/payments.css
   Every class this module emits. Kept OUT of styles.css so removing payments
   is one <link> deletion in index.html, with no dead selectors left behind.
   Colours come from the app's existing custom properties, so the module
   inherits the design system rather than restating it. */

.pay-card { display: flex; flex-direction: column; gap: 0.7rem; }
.pay-card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.pay-card-head .section-title { margin: 0; }

.pay-state-pending { background: var(--warning-wash); color: var(--warning-ink); }
.pay-state-overdue { background: var(--danger-wash); color: var(--danger); }
.pay-state-paid { background: var(--success-wash); color: var(--success-ink); }

.pay-warn {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-md);
  background: var(--warning-wash);
  color: var(--warn);
  font-size: 0.78rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.pay-rows { display: flex; flex-direction: column; gap: 0.35rem; }
.pay-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-md);
  background: var(--sunken);
}
.pay-row-name { flex: 1; font-size: 0.85rem; }
.pay-row-amount { font-weight: 700; font-size: 0.85rem; }
.pay-row.is-paid .pay-row-amount { color: var(--success); }
.pay-row.is-exempt { opacity: 0.55; }
.pay-row-exempt { padding: 0.2rem 0.5rem; font-size: 0.7rem; }

.pay-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pay-actions:empty { display: none; }

/* Shared by the event-detail editor and the create-wizard custom step. */
.pay-edit { display: flex; flex-direction: column; gap: 0.5rem; }
.pay-edit-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-md);
  background: var(--sunken);
}
.pay-edit-name { flex: 1; font-size: 0.85rem; }
.pay-edit-input {
  width: 5.5rem;
  text-align: right;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
}

/* The agenda card footer: a full-width call to action under the card. */
.pay-nudge {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--warning-wash);
  color: var(--warn);
  font: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
}

/* Shown when someone already paid the venue out of pocket (the external
   booking path): the ledger is a reimbursement, not a collection. */
.pay-fronted {
  margin: 0;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-md);
  background: var(--success-wash);
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 600;
}
