/* Machine purchases: buy option cards, short terms, purchase status, admin purchase card + modals, Sales & deposit policy editor. */
.po-cards { display: grid; gap: .6rem; }
.po-card { display: block; border: 2px solid #e5e7eb; border-radius: .6rem; padding: .75rem .9rem; cursor: pointer; background: #fff; margin: 0; }
.po-card.selected, .po-card:has(.po-radio:checked) { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, .15); }
.po-card.disabled { cursor: default; opacity: .85; }
.po-card:focus-within { outline: 2px solid #7c3aed; outline-offset: 2px; }
.po-radio { width: 1.35rem; height: 1.35rem; margin-top: .1rem; flex: none; accent-color: #7c3aed; }
.po-body { min-width: 0; display: block; }
.po-title { color: #2e1065; }
.po-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.po-money > span { display: block; background: #f5f3ff; border-radius: .4rem; padding: .3rem .45rem; }
.po-money small { display: block; color: #6b7280; font-size: .72rem; line-height: 1.1; }
.po-money strong { display: block; font-size: .95rem; color: #2e1065; overflow-wrap: anywhere; }
.po-timeline { font-size: .85rem; color: #4c1d95; }
.po-terms { font-size: .85rem; background: #f5f3ff; border-left: 3px solid #7c3aed; padding: .5rem .75rem; border-radius: .35rem; }
.po-terms-full { white-space: pre-line; }
.po-status dt { font-weight: 600; color: #4c1d95; }
.po-status dd { margin-bottom: .35rem; }

/* Admin purchase card + modals (same pattern as the other admin modals: 44px touch targets, centered, page scroll locked). */
.pf-actions .btn { min-height: 44px; }
.pf-modal .modal-dialog { max-width: min(560px, calc(100vw - 1rem)); }
.pf-modal .form-control, .pf-modal .form-select, .pf-modal .btn { min-height: 44px; }
body:has(.pf-modal) { overflow: hidden; }
.pf-overdue { color: #b91c1c; font-weight: 600; }

/* Sales & deposit policy editor. */
.sp-path { border: 1px solid #e5e7eb; border-radius: .5rem; padding: .6rem .75rem; margin-bottom: .5rem; background: #fff; }
.sp-path .form-control, .sp-path .form-select, .sp-touch { min-height: 44px; }
.sp-example { background: #faf5ff; border: 1px solid #ddd6fe; border-radius: .6rem; padding: .75rem; }
.sp-example table { font-size: .9rem; }
.sp-sticky-save { position: sticky; bottom: 0; background: rgba(255, 255, 255, .95); border-top: 1px solid #e5e7eb; padding: .5rem 0; z-index: 5; }
@media (max-width: 575.98px) {
    .po-money strong { font-size: .88rem; }
    .po-card { padding: .65rem .7rem; }
}

/* Clickable option cards (button) + request modal */
button.po-card { font: inherit; color: inherit; }
.po-card:not(.disabled):not(:disabled):hover { border-color: #7c3aed; background: #faf7ff; }
.po-card:focus-visible { outline: 3px solid #7c3aed; outline-offset: 2px; }
.po-card:disabled, .po-card.disabled { cursor: not-allowed; opacity: .8; }
.po-cta { font-size: .85rem; font-weight: 700; color: #7c3aed; }
@media (max-width: 575.98px) { .po-money { grid-template-columns: 1fr 1fr 1fr; } .po-money strong { font-size: .85rem; } }
