/* Grow Admin · shared/ap-check-payments.css — the "Record check payment" dialog, the order's "Paid by check" card and the
   "Check subscriptions ending in 30 days" list (tl-check-payment). Design-system tokens only. */
.ap-chkform { min-width: min(560px, 100%); }
.ap-chkform .seg { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-chkwho { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; padding: 9px 12px; border-radius: var(--r-tile, 10px); background: var(--sf-2, var(--sf)); font-size: 14px; }
.ap-chkwho svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.ap-chkwho small { color: var(--ink-3); }
.ap-chkhits { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; max-height: 220px; overflow: auto; }
.ap-chkhits li button { display: block; width: 100%; text-align: left; padding: 8px 10px; min-height: 40px; border-radius: 8px; }
.ap-chkhits li button:hover, .ap-chkhits li button:focus-visible { background: var(--sf-2, var(--sf)); }
.ap-chkhits small { color: var(--ink-3); }
[data-cp-card] .ap-nextline { margin: 0 0 12px; }
[data-cp-card] .ap-card-h { align-items: center; }
.ap-cardfoot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
[data-cp-ending] { margin-top: 18px; }
@media (max-width: 600px) {
  .ap-chkform { min-width: 0; }
  .ap-cardfoot { justify-content: stretch; }
  .ap-cardfoot .btn { flex: 1; justify-content: center; min-height: 44px; }
}
/* Orders on a phone: the toolbar (search, Status, Source, Payment, two dates) wraps instead of running off the screen, and
   "Record check payment" gets its own full-width line above Export CSV instead of being squeezed beside it */
@container main (max-width: 620px) {
  .ap-btools.ap-lbar { flex-wrap: wrap; }
  .ap-btools.ap-lbar > label:not(.ap-lsearch):not(.ap-bdate) { flex: 1 1 calc(50% - 6px); min-width: 0; }
  .ap-btools.ap-lbar > label:not(.ap-lsearch):not(.ap-bdate) .sel { width: 100%; min-width: 0; }
  .ap-btools.ap-lbar > .ap-bdate { flex: 1 1 100%; min-width: 0; }
  .ap-btools.ap-lbar > .ap-bdate > span { flex: 0 0 5.5em; white-space: nowrap; }
  .ap-btools.ap-lbar > .ap-bdate .inp { flex: 1 1 auto; min-width: 0; width: 100%; }
  .ap-ph .ph-act:has([data-cp-record]) { flex-wrap: wrap; }
  .ap-ph .ph-act:has([data-cp-record]) > [data-cp-record] { flex: 1 1 100%; white-space: nowrap; }
}
