/* Residents suite, Rent & Renewals tab (Phase 3): the renewal pipeline, offers, Section 8 steps, Do not renew and
   housing authorities. Spec: Fix Mds/residents-suite-phase3-spec.md. Builds on residents.css and maintenance.css
   (.mt-wrap, .mt-board, .mt-list, .mt-panel, .mt-form). Shell tokens only (design rule, CLAUDE.md "New screens match
   the app's design"). */

.rr-switch { align-self: flex-start; margin-bottom: 4px; }
.res-mhead + .rr-switch { margin: 0 0 12px; }

.rr-next { font-weight: 600; color: var(--text); }
.rr-late { color: var(--danger); }

.mt-list.rr-list .mt-row { grid-template-columns: minmax(200px, 2fr) 1fr 0.8fr 1fr 1.6fr; }
.mt-list.rr-pha-list .mt-row { grid-template-columns: minmax(200px, 2fr) 1fr 1fr; }

/* Offers: read-only list and the three-row editor. */
.rr-offers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rr-offers li {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px;
  border: 1px solid var(--border2); border-radius: var(--radius-xl, 16px); background: var(--bg2); font-size: 14px; color: var(--text);
}
.rr-offers li.is-chosen { border-color: var(--accent); background: var(--accent-soft); }
.rr-offer-n {
  min-width: 24px; height: 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg3); color: var(--text2); font-size: 12px; font-weight: 700;
}
.rr-offers-form { display: flex; flex-direction: column; gap: 10px; }
.rr-offer-row { display: grid; grid-template-columns: 24px 1fr 1.4fr 1.6fr; gap: 10px; align-items: end; }
.rr-offer-row .rr-offer-n { margin-bottom: 8px; }
.rr-change { padding-bottom: 10px; min-height: 1em; }
.rr-offer-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rr-offers-form .mt-form-actions { justify-content: flex-end; }

/* Do not renew: the lawyer warning sits inline in the panel, never in a popup. */
.rr-warn {
  padding: 10px 12px; border-radius: var(--radius-xl, 16px); border: 1px solid var(--danger);
  background: var(--danger-soft, var(--bg2)); color: var(--text);
}

@media (max-width: 768px) {
  .rr-switch { width: 100%; }
  .rr-switch .mt-tab { flex: 1; justify-content: center; }
  .rr-offer-row { grid-template-columns: 24px 1fr 1fr; }
  .rr-offer-row .rr-change { grid-column: 2 / -1; padding-bottom: 0; }
  .rr-offer-meta { grid-template-columns: 1fr; }
  .mt-list.rr-list .mt-row, .mt-list.rr-pha-list .mt-row { grid-template-columns: 1fr; }
}
