.manual-payment-workspace { align-items: start; display: grid; gap: 24px; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.6fr); }
.manual-payment-context { min-width: 0; }
.manual-payment-context h2 { font-size: 22px; }
.manual-payment-context .details { grid-template-columns: minmax(0, 1fr); }
.manual-payment-context dd { font-variant-numeric: tabular-nums; }
.manual-payment-form { display: grid; gap: 20px; min-width: 0; }
.manual-payment-form h2 { font-size: 22px; margin: 0; }
.manual-payment-form .grid-form { gap: 16px; }
.manual-payment-form input,
.manual-payment-form select,
.manual-payment-form .button { min-height: 44px; }
.manual-payment-form .checkbox-label { align-items: start; display: flex; gap: 10px; }
.manual-payment-form .checkbox-label input { flex: 0 0 18px; height: 18px; margin-top: 3px; min-height: 18px; width: 18px; }
.manual-funding-option { border-top: 1px solid var(--line); padding-top: 18px; }
.manual-funding-option p { font-size: 13px; margin: 10px 0 0; }
.manual-payment-warning { border-left: 3px solid #bd8b34; color: #74531d; font-size: 13px; padding: 4px 0 4px 14px; }
.manual-payment-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.invoice-payment-actions { display: grid; gap: 8px; min-width: 145px; }
.invoice-payment-actions .button { font-size: 13px; min-height: 44px; padding: 9px 10px; }
.invoice-payment-actions svg { flex-shrink: 0; height: 16px; width: 16px; }
.invoice-payment-history .payment-history-manageable { min-width: 1180px; }
.invoice-payment-history .payment-history-manageable th { white-space: nowrap; }
.invoice-payment-history .payment-history-manageable td { overflow-wrap: normal; word-break: normal; }
.invoice-payment-corrections { margin: 24px auto; max-width: 980px; min-width: 0; }
.invoice-payment-corrections .table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.invoice-payment-corrections table { min-width: 760px; }
.invoice-payment-corrections td { overflow-wrap: anywhere; }
@media (min-width: 681px) {
    .payment-history-manageable th:last-child,
    .payment-history-manageable td:last-child { background: #f4f8f6; border-left: 1px solid var(--line); box-shadow: -5px 0 10px rgba(31, 41, 44, .06); min-width: 170px; position: sticky; right: 0; z-index: 1; }
}
@media (max-width: 980px) {
    .manual-payment-workspace { grid-template-columns: minmax(0, 1fr); }
    .manual-payment-context .details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .manual-payment-form .grid-form { grid-template-columns: minmax(0, 1fr); }
    .manual-payment-buttons .button { flex: 1 1 100%; min-height: 48px; }
    .invoice-payment-history .payment-history-manageable,
    .invoice-payment-corrections table { min-width: 0; }
    .invoice-payment-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
    .invoice-payment-actions .button { min-width: 0; white-space: normal; }
}
