/* Payment workspaces: readable at desktop and exhibition-phone widths. */
.payment-workspace{max-width:1440px;margin-inline:auto;min-width:0}.payment-workspace [hidden]{display:none!important}
.payment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-block:1.25rem}
.payment-type{background:var(--surface,#fff);border:1px solid var(--border,#e5e7eb);border-radius:1.15rem;padding:1.25rem;display:flex;flex-direction:column;gap:.7rem;min-width:0}
.payment-type h2{font-size:1.1rem;font-weight:700;margin:0}.payment-type p{color:var(--muted,#64748b);font-size:.9rem;line-height:1.8;flex:1;margin:0}.payment-type__symbol{display:grid;place-items:center;width:2.7rem;height:2.7rem;border-radius:.8rem;background:#fff1f2;color:#991b1b;font-size:1.1rem;font-weight:700}
.payment-type .finance-actions{margin-block-start:.3rem}.payment-type .btn{white-space:normal;line-height:1.5}
.payment-journey{list-style:none;padding:1rem;margin:0 0 1.25rem;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem;border:1px solid #eadfe0;background:#fff;border-radius:1rem}
.payment-stage{display:flex;align-items:center;gap:.65rem;padding:.65rem;border-radius:.7rem;min-width:0;color:#64748b;font-size:.9rem;overflow-wrap:anywhere}
.payment-stage:before{content:attr(data-step);display:grid;place-items:center;width:1.8rem;height:1.8rem;flex:none;border-radius:50%;background:#f1f5f9;font-weight:700}
.payment-stage.is-current{background:#fff1f2;color:#991b1b;font-weight:700}.payment-stage.is-current:before{background:#991b1b;color:white}.payment-stage.is-complete:before{background:#dcfce7;color:#166534}
.payment-summary,.payment-action-panel{background:#fff;border:1px solid #e5e7eb;border-radius:1rem;padding:1.25rem;margin-block:1rem;min-width:0}
.payment-action-panel{border-inline-start:4px solid #991b1b}.payment-action-panel h2,.payment-summary h2{font-size:1.1rem;font-weight:700;margin-block-end:.7rem}
.payment-filter{display:grid;grid-template-columns:minmax(180px,2fr) repeat(2,minmax(130px,1fr)) auto;gap:.75rem;align-items:end;margin-block:1rem}.payment-filter .filter-field{min-width:0}
.payment-request-list{display:grid;gap:.7rem}.payment-request-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(140px,1fr) auto;gap:1rem;align-items:center;padding:1rem;background:#fff;border:1px solid #e5e7eb;border-radius:.8rem;min-width:0}.payment-request-row bdi{display:block;overflow-wrap:anywhere}.payment-request-row__title{font-weight:600}.payment-request-row__meta{font-size:.82rem;color:#64748b;line-height:1.7;margin-block-start:.2rem}.payment-request-row .badge{white-space:normal;line-height:1.6}
.payment-composer{display:grid;gap:1rem;min-width:0}.payment-composer__step{border:1px solid #e5e7eb;border-radius:1rem;background:#fff;padding:1.25rem;min-width:0}.payment-composer__step h2{font-weight:700;font-size:1.15rem;margin-block-end:.7rem}.payment-order-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;margin-block:1rem}.payment-order-option{border:1px solid #e5e7eb;border-radius:.7rem;padding:.85rem;display:flex;align-items:center;justify-content:space-between;gap:.8rem;min-width:0}.payment-order-option>div{min-width:0}.payment-order-option bdi{display:block;overflow-wrap:anywhere;line-height:1.6}.payment-order-option .btn{flex:none}.payment-line{border:1px solid #e5e7eb;border-radius:.8rem;padding:1rem;margin-block:.75rem;min-width:0}.payment-line header{display:flex;justify-content:space-between;align-items:start;gap:1rem;margin-block-end:1rem}.payment-line header bdi{overflow-wrap:anywhere;display:block}.payment-line .finance-form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.payment-line .input,.payment-line .select{width:100%}.payment-review-total{display:flex;flex-wrap:wrap;gap:1rem;margin-block:1rem}.payment-review-total strong{background:#f8fafc;padding:.7rem 1rem;border-radius:.6rem;font-variant-numeric:tabular-nums}.payment-toolbar{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center}.payment-workspace .field-error{color:#b91c1c}.payment-empty{padding:2rem;text-align:center;background:#fff;border:1px dashed #cbd5e1;border-radius:1rem;color:#64748b}
@media(max-width:1000px){.payment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.payment-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.payment-line .finance-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.payment-order-list{grid-template-columns:1fr}}
@media(max-width:600px){.payment-grid{grid-template-columns:1fr}.payment-journey{grid-template-columns:repeat(2,minmax(0,1fr));padding:.5rem;gap:.25rem}.payment-stage{font-size:.8rem;gap:.4rem;padding:.5rem}.payment-request-row{grid-template-columns:minmax(0,1fr) auto;gap:.6rem}.payment-request-row>:nth-child(2){grid-row:2;grid-column:1/-1}.payment-composer__step,.payment-summary{padding:.85rem}.payment-filter{grid-template-columns:1fr}.payment-line .finance-form-grid{grid-template-columns:1fr}.payment-type .finance-actions{display:flex;flex-wrap:wrap}.payment-type .btn{flex:1}}

.payment-stage[data-state="current"]{background:#fff1f2;color:#991b1b;font-weight:700}.payment-stage[data-state="done"]:before{background:#dcfce7;color:#166534}

.payment-request-document{grid-template-columns:minmax(0,1fr) auto}
.payment-request-document>.btn{grid-area:1/2;align-self:start}
.payment-currency-totals{grid-column:1/-1;min-width:0;max-width:100%;overflow:auto}
.payment-currency-totals table{width:100%;font-variant-numeric:tabular-nums}
.payment-currency-totals th,.payment-currency-totals td{padding:.4rem .65rem;text-align:start}
.payment-currency-totals th:first-child{position:sticky;inset-inline-start:0;background:var(--surface,#fff)}
.payment-currency-totals td[dir=ltr]{text-align:end;white-space:nowrap}

.payment-order-list{max-height:420px;overflow:auto;padding:.2rem;scrollbar-gutter:stable}.payment-order-list:focus-visible{outline:2px solid #991b1b;outline-offset:2px}@media(max-width:600px){.payment-order-list{max-height:330px}}

.payment-line header>div{min-width:0}.payment-line header>.btn{flex:none;min-width:4.5rem;white-space:nowrap}.payment-line details{margin-block:.8rem}.payment-line details>summary{cursor:pointer;color:#64748b;padding:.5rem 0}.payment-line details[open]>.finance-form-grid{margin-block-start:.7rem}

.payment-summary--fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;align-items:start}.payment-summary--fields>div{min-width:0}.payment-summary--fields strong{display:block;overflow-wrap:anywhere}.payment-summary--fields .label{margin-bottom:.5rem}@media(max-width:1000px){.payment-summary--fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.payment-summary--fields{grid-template-columns:1fr}}

.payment-paper-handoff{border-inline-start:4px solid #991b1b;background:#fffafa;min-width:0}
.payment-paper-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-block:1rem;padding-inline-start:1.5rem;list-style:decimal;line-height:1.8}
.payment-paper-steps li{padding-inline:.4rem}.payment-paper-steps li::marker{color:#991b1b;font-weight:700}
.payment-paper-handoff .btn,.payment-country-distribution .btn{white-space:normal;line-height:1.6}
.payment-country-distribution{min-width:0;margin-block:1rem}.payment-country-distribution .table-wrap{max-width:100%;overflow:auto}.payment-country-distribution table{min-width:540px;font-variant-numeric:tabular-nums}.payment-country-distribution th,.payment-country-distribution td{white-space:nowrap}.payment-country-distribution td:first-child{white-space:normal;min-width:110px;overflow-wrap:anywhere}.payment-country-distribution bdi{display:block;color:#64748b;font-size:.8rem}
.payment-paper-acknowledgement{display:flex;align-items:flex-start;gap:.65rem;padding:1rem;background:#fff7ed;border:1px solid #fed7aa;border-radius:.7rem}.payment-paper-acknowledgement label{flex:1;order:1;line-height:1.8;margin:0}.payment-paper-acknowledgement input[type=checkbox]{flex:none;order:0;width:1.2rem;height:1.2rem;margin-block-start:.3rem}
@media(max-width:600px){.payment-paper-steps{grid-template-columns:1fr;gap:.6rem}.payment-paper-handoff .finance-actions{display:flex;flex-direction:column;align-items:stretch}.payment-paper-handoff .btn{width:100%}}
