.payment-status-link{border:0;font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:2px}.payment-history-backdrop{position:fixed;inset:0;z-index:1260;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(27,39,51,.47)}.payment-history-backdrop[hidden]{display:none}.payment-history-dialog{width:min(1100px,calc(100vw - 36px));max-height:82vh;overflow:hidden;border:1px solid #cbd6e2;border-radius:12px;background:#fff;box-shadow:0 18px 60px rgba(24,38,54,.3)}.payment-history-header{display:flex;align-items:flex-start;justify-content:space-between;padding:18px 22px;border-bottom:1px solid #d8e1ea;background:#f3f8fe}.payment-history-header h2{margin:0}.payment-history-header p{margin:4px 0 0;color:#60758a}.payment-history-close{display:inline-flex;width:36px;height:36px;align-items:center;justify-content:center;border:0;border-radius:50%;background:#e4e8ec;color:#65717c;font-size:27px;cursor:pointer}.payment-history-body{max-height:60vh;overflow-y:auto;overflow-x:hidden;padding:18px 22px}.payment-history-table{width:100%;table-layout:fixed}.payment-history-table th,.payment-history-table td{padding:8px 7px;vertical-align:top;white-space:normal;overflow-wrap:anywhere}.payment-history-table th:nth-child(1){width:84px}.payment-history-table th:nth-child(2){width:104px}.payment-history-table th:nth-child(3){width:116px}.payment-history-table th:nth-child(5),.payment-history-table th:nth-child(6){width:92px}.payment-history-table th:last-child{width:220px}.payment-history-table td:nth-child(1),.payment-history-table td:nth-child(5),.payment-history-table td:nth-child(6),.payment-history-table td:last-child{white-space:nowrap}.payment-history-total{display:flex;justify-content:flex-end;gap:12px;margin:14px 8px 0;font-weight:700}.document-payments-body{padding:16px 18px}.document-payments-empty{margin:0;color:#60758a}
.payment-history-header{cursor:move;touch-action:none;user-select:none}.payment-history-header.is-dragging{cursor:grabbing}
.payment-actions{display:flex;align-items:center;justify-content:flex-start;gap:10px;white-space:nowrap}
.payment-action-label{display:inline-block}.payment-delete-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:0;border-radius:3px;background:transparent;color:#a91020;cursor:pointer}.payment-delete-icon:before{display:block;width:17px;height:17px;content:"";background:center/17px 17px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23a91020' d='M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12ZM8 9h8v10H8V9Zm7.5-5-1-1h-5l-1 1H5v2h14V4h-3.5Z'/%3E%3C/svg%3E")}.payment-delete-icon:hover,.payment-delete-icon:focus{border:0;background:#fff1f2;outline:1px solid #e6b9be}
.payment-unallocate,.payment-history-dialog .payment-unallocate{width:auto!important;height:26px!important;min-width:0!important;min-height:0!important;flex:0 0 auto!important;margin:0!important;padding:2px 7px!important;border:1px solid #b91c1c!important;border-radius:4px!important;background:#c62828!important;color:#fff!important;font-size:12px!important;font-weight:500!important;line-height:18px!important;text-decoration:none!important;box-shadow:none!important;white-space:nowrap!important;cursor:pointer}
.payment-unallocate:hover,.payment-unallocate:focus,.payment-history-dialog .payment-unallocate:hover,.payment-history-dialog .payment-unallocate:focus{border-color:#991b1b!important;background:#a91f1f!important;color:#fff!important}
.payment-history-dialog .payment-history-table th:last-child,.payment-history-dialog .payment-history-table td:last-child{width:230px}
.document-payments-body .payment-history-table{table-layout:auto}
.document-payments-body .payment-history-table th,.document-payments-body .payment-history-table td{width:auto;padding:10px 8px;white-space:nowrap;overflow-wrap:normal}
.document-payments-body .payment-history-table th:nth-child(4),.document-payments-body .payment-history-table td:nth-child(4){white-space:normal}
.document-payments-body .payment-history-table th:last-child,.document-payments-body .payment-history-table td:last-child{width:230px;white-space:nowrap;text-align:left}
.payment-history-section+ .payment-history-section{margin-top:18px;padding-top:16px;border-top:1px solid #dce4eb}.payment-history-section h3{margin:0 0 10px;color:#263442;font-size:15px;font-weight:600}.payment-history-credit-table{width:100%;table-layout:fixed}.payment-history-credit-table th,.payment-history-credit-table td{padding:8px 7px;vertical-align:top}.payment-history-credit-table th:nth-child(1){width:145px}.payment-history-credit-table th:nth-child(2){width:88px}.payment-history-credit-table th:nth-child(4){width:90px}.payment-history-credit-table th:nth-child(5){width:72px}.payment-history-credit-table th:last-child{width:82px}.payment-history-credit-table td:nth-child(3){white-space:normal;overflow-wrap:anywhere}.payment-history-credit-table td:not(:nth-child(3)){white-space:nowrap}.credit-history-actions{display:flex;align-items:center;gap:8px}
.payment-history-body{overflow:auto}.payment-history-dialog .payment-history-table,.payment-history-dialog .payment-history-credit-table{min-width:820px}.payment-history-dialog .payment-history-table th,.payment-history-dialog .payment-history-credit-table th{height:32px!important;min-height:32px!important;padding:0 8px!important;box-sizing:border-box!important;line-height:1.2!important;vertical-align:middle!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}.payment-history-dialog .payment-history-table th:nth-child(5),.payment-history-dialog .payment-history-table th:nth-child(6){width:110px}
.payment-history-dialog .payment-history-section .payment-history-table th:nth-child(3),.payment-history-dialog .payment-history-section .payment-history-table td:nth-child(3){width:90px}.payment-history-dialog .payment-history-section .payment-history-table th:last-child,.payment-history-dialog .payment-history-section .payment-history-table td:last-child{width:190px}.payment-history-dialog .credit-history-section .payment-history-credit-table th:last-child,.payment-history-dialog .credit-history-section .payment-history-credit-table td:last-child{width:60px}
.payment-history-dialog .payment-history-grid{min-width:820px;overflow:hidden;border:1px solid #ccd7e2;border-radius:7px;background:#fff}.payment-history-dialog .payment-history-table,.payment-history-dialog .payment-history-credit-table{margin:0;border:0!important;border-collapse:collapse}.payment-history-dialog .payment-history-table th,.payment-history-dialog .payment-history-credit-table th{border:0!important;border-right:1px solid #ccd7e2!important;border-bottom:1px solid #ccd7e2!important;background:#edf3f8!important;color:#34445a!important;font-size:12px!important;font-weight:600!important}.payment-history-dialog .payment-history-table td,.payment-history-dialog .payment-history-credit-table td{border:0!important;border-right:1px solid #d7e0e8!important;border-bottom:1px solid #d7e0e8!important}.payment-history-dialog .payment-history-table th:last-child,.payment-history-dialog .payment-history-table td:last-child,.payment-history-dialog .payment-history-credit-table th:last-child,.payment-history-dialog .payment-history-credit-table td:last-child{border-right:0!important}.payment-history-dialog .payment-history-total{margin:0;padding:14px 16px;border-top:0;background:#f7faff}
