.customer-collection-dialog{width:min(1100px,96vw)}
.collection-payment-heading{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:10px 14px;align-items:start;margin:10px 0}
.collection-payment-heading>.field{margin:0}
.collection-payment-date{display:grid;gap:4px;font-size:12px;font-weight:600}
.collection-payment-date input{width:100%;min-width:0;min-height:34px;padding:6px 8px}
.collection-payment-date small{font-size:11px;font-weight:400;color:#536b82}
.customer-collection-amounts .collection-payment-date{width:165px}
.customer-collection-amounts .collection-payment-date input{width:100%}
.customer-collection-amounts .collection-payment-date small{display:none}
@media(max-width:520px){.collection-payment-heading{grid-template-columns:1fr}.collection-payment-date{max-width:220px}}
.receivable-row-actions{width:220px;min-width:220px;max-width:220px}
.receivable-row-actions summary{cursor:pointer;list-style:revert;width:max-content}
.receivable-row-actions>div{display:grid;gap:4px;margin-top:5px;padding:6px;border:1px solid #c6d8e8;border-radius:6px;background:#f4f8fc}
.receivable-row-actions>div .tiny-btn{display:block;margin:0;text-align:left;font-size:12px;white-space:normal}
.collection-register-panel{padding:14px}
#receivable-filters{padding:18px}
#receivable-filters .form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#receivable-filters .field{margin:0}
#receivable-filters input,#receivable-filters select{min-height:38px;padding:8px 10px}
#receivable-filters .row{margin-top:12px}
@media(max-width:900px){#receivable-filters .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){#receivable-filters .form-grid{grid-template-columns:1fr}}
.collection-register-table{max-height:clamp(240px,46vh,520px);overflow:auto;max-width:100%;border:1px solid #b8ccdf;border-radius:8px;background:#fff;overscroll-behavior:contain;scrollbar-gutter:stable}
.collection-register-table:focus-visible{outline:2px solid #4277a4;outline-offset:2px}
.collection-register-table table{width:100%;font-size:13px}
.collection-register-table th,.collection-register-table td{padding:9px 12px;vertical-align:top}
.collection-register-table thead th{position:sticky;top:0;z-index:2;background:#e8f1f8;border-bottom:1px solid #aac2d7;color:#31526e}
.collection-register-table tbody tr:nth-child(even){background:#f5f8fc}
.collection-register-table small{font-size:11px;line-height:1.45}
.receivable-register-table table{min-width:760px}
.receivable-register-table th:nth-child(3),.receivable-register-table th:nth-child(4),.receivable-register-table td:nth-child(3),.receivable-register-table td:nth-child(4){text-align:right;white-space:nowrap}
.receivable-register-table td:last-child{min-width:155px}
.receipt-register-table table{min-width:980px}
.collection-register-table.receipt-register-table th,.collection-register-table.receipt-register-table td{min-width:0}
.receipt-register-table thead th{white-space:normal}
.collection-register-table.receipt-register-table td:first-child{min-width:140px}
.collection-register-table.receipt-register-table td:nth-child(3){min-width:150px}
.receipt-register-table th:nth-child(n+5):nth-child(-n+7){text-align:right}
.receipt-register-table td:nth-child(n+5):nth-child(-n+7){text-align:right;white-space:nowrap}
.receipt-register-table td:last-child{white-space:nowrap}
@media(max-width:650px){.collection-register-table{max-height:50dvh}.collection-register-panel{padding:9px}.collection-register-table th,.collection-register-table td{padding:8px 10px}}
@media print{.collection-register-table{max-height:none;overflow:visible}.collection-register-table thead th{position:static}}
.customer-collection-dialog h2{margin-bottom:8px}
.customer-collection-identity{display:flex;flex-wrap:wrap;gap:5px 18px;margin:0 0 10px}
.customer-collection-identity span{font-size:12px}
#customer-collection-fields{border:0;padding:0;margin:0;min-width:0}
.customer-collection-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:8px 0}
.customer-collection-toolbar .checkline{margin:0}
.customer-collection-table{max-height:clamp(175px,23vh,230px);overflow:auto;border:1px solid #bcd1e4;border-radius:7px}
.customer-collection-table table{width:100%;min-width:690px;font-size:12px}
.customer-collection-table thead th{position:sticky;top:0;z-index:1;background:#e8f1f8}
.customer-collection-table td,.customer-collection-table th{padding:7px 9px;vertical-align:middle}
.customer-collection-table tbody tr:nth-child(even){background:#f4f8fc}
.customer-collection-table input[data-collection-amount]{width:112px;min-width:0;padding:5px 7px;font-size:13px}
.customer-collection-table .numeric{text-align:right;white-space:nowrap}
.customer-collection-amounts{display:flex;flex-wrap:wrap;align-items:end;gap:10px 14px;margin:10px 0 5px;padding:9px 10px;border:1px solid #bdd8ce;border-radius:6px;background:#edf6f0}
.customer-collection-amounts label{display:grid;gap:4px;font-size:12px;font-weight:600}
.customer-collection-amounts input{width:190px;padding:6px 8px}
.customer-collection-amounts p{margin:0;flex:1 1 250px}
.customer-collection-help{margin:6px 0 10px}
.customer-collection-dialog .customer-collection-scope{margin:0}
.customer-collection-payment{display:grid;grid-template-columns:1fr 1.4fr;gap:8px 14px;align-items:start}
.customer-collection-payment #cash-session-field{grid-column:2;grid-row:1}
.customer-collection-payment #cash-payment-fields,.customer-collection-payment #electronic-reference-field{grid-column:1/-1}
.customer-collection-payment #cash-payment-fields{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px}
.customer-collection-payment [hidden]{display:none!important}
.customer-collection-payment .field{margin:0}
.customer-collection-payment .field label{font-size:12px}
.customer-collection-payment input,.customer-collection-payment select{min-height:32px;padding:5px 8px}
.customer-collection-payment p{margin:4px 0}
.customer-collection-payment .summary-row{padding:5px 8px}
.customer-collection-payment #payment-change{font-size:24px;padding:5px 8px}
.customer-collection-dialog .pos-split-payment{margin:6px 0;padding:6px 0}
.customer-collection-dialog .pos-split-payment>.checkline{margin:4px 0}
.customer-collection-dialog #customer-collection-fields>.checkline{margin:6px 0}
.customer-collection-dialog .form-actions{position:sticky;bottom:-20px;background:#fff;z-index:2;padding:10px 0;margin-top:10px;border-top:1px solid #c7d7e6}
@media(max-width:650px){.customer-collection-payment{grid-template-columns:1fr}.customer-collection-payment #cash-session-field{grid-column:1;grid-row:auto}.customer-collection-table{max-height:250px}.customer-collection-dialog .form-actions{bottom:-12px}}
