/* Prepare a payment application template (ew2/web/ipa.js). Brand tokens from app.css; greens, ambers and greys only. */
.ipa-new .field { display: grid; gap: 4px; }
.ipa-new input[type=file] { max-width: 100%; }
.ipa-cost { margin: 4px 0 0; }

.ipa-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 10px 0 14px; }
.ipa-steps li { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: .92rem; }
.ipa-steps li.now { color: var(--ink); font-weight: 600; }
.ipa-step-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); font-size: .78rem; background: var(--sheet); }
.ipa-steps li.done .ipa-step-n { background: var(--tint); border-color: var(--sage); color: var(--low); }
.ipa-steps li.now .ipa-step-n { background: var(--ink); border-color: var(--ink); color: #fff; }

.ipa-step { margin-top: 6px; }
.ipa-prev { overflow-wrap: anywhere; }
table.ipa-bills { margin: 6px 0 14px; }
table.ipa-bills td:first-child { min-width: 200px; }
.ipa-details input, .ipa-step .pay-terms input { width: 100%; }
.ipa-backup { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0; }
.ipa-go { margin-top: 4px; }
.ipa-cols { margin: 6px 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); }

@media (max-width: 640px) {
  .ipa-steps { gap: 6px 12px; }
  .ipa-steps li span:last-child { font-size: .85rem; }
  table.ipa-bills td:first-child { min-width: 140px; }
}
table.ipa-bills td:nth-child(2) { white-space: nowrap; }
