/* Preserve the profile hero, identity, portfolio and selected-contract structure. */
#customerWalletSummary{margin:0 0 24px}#customerWalletSummary .customer-wallet-metrics{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:10px}#customerWalletSummary .customer-wallet-metrics b{font-size:clamp(16px,1.45vw,21px)}.customer-wallet-caption{display:block;font-size:11px;line-height:1.5;color:#687f92;margin-top:7px}.customer-wallet-link{display:block;background:none;border:0;padding:5px 0;color:#056aa6;font-size:11px;font-weight:700;text-align:left;cursor:pointer}.customer-wallet-selected{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px;border:1px solid #cce1ef;border-radius:12px;background:#f4faff}.customer-wallet-selected p{font-size:12px;line-height:1.7;margin:7px 0}.customer-wallet-selected small{display:block;color:#60788e;line-height:1.6;font-size:11px}.customer-wallet-selected .customer-wallet-ready{color:#12684d;font-weight:700}.customer-wallet-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.customer-wallet-actions button{font-size:12px;min-height:42px;white-space:normal}.customer-wallet-warning{padding:14px;background:#fff7e8;border:1px solid #eed397;border-radius:11px;font-size:13px;line-height:1.7}#customerWalletHistory{margin-top:16px;border:1px solid #d6e4ed;border-radius:12px;padding:15px}#customerWalletHistory summary{font-size:13px;font-weight:700;cursor:pointer}.customer-wallet-history{padding:12px 0;border-bottom:1px solid #dbe7ef}.customer-wallet-history:last-child{border-bottom:0}.customer-wallet-history h5{font-size:13px;margin:4px 0}.customer-wallet-history p{font-size:12px;line-height:1.7}.customer-wallet-history ol{padding-left:20px;margin:12px 0}.customer-wallet-history li{padding:10px 0;font-size:12px;border-bottom:1px solid #edf1f5;overflow-wrap:anywhere}.customer-wallet-history li span,.customer-wallet-history li small{display:block;margin-top:5px;color:#60788e;line-height:1.6}#customerWalletDialog{width:min(760px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:88vh;overflow:auto;box-sizing:border-box;padding:26px;border:1px solid #ccdfea;border-radius:18px;background:white;color:#123b5b;font:14px/1.6 Inter,Arial,sans-serif}#customerWalletDialog::backdrop{background:#0b244566;backdrop-filter:blur(3px)}#customerWalletDialog *{box-sizing:border-box;min-width:0;overflow-wrap:anywhere}#customerWalletDialog header{display:flex;align-items:start;justify-content:space-between;gap:16px}#customerWalletDialog header button{flex:0 0 auto;white-space:nowrap;font-size:12px}#customerWalletDialog h2{font:750 23px/1.4 Inter,Arial,sans-serif;text-transform:none;margin:0}#customerWalletDialog label{display:grid;gap:6px;font-size:12px;font-weight:650;margin:13px 0}#customerWalletDialog :is(input:not([type=checkbox]),select,textarea){width:100%;padding:11px 12px;border:1px solid #cadcea;border-radius:9px;font:inherit;color:inherit;background:white}#customerWalletDialog textarea{resize:vertical;min-height:80px}.customer-wallet-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}#customerWalletDialog .customer-wallet-confirm{display:flex;align-items:start;gap:10px;font-weight:450}#customerWalletDialog .customer-wallet-confirm input{width:19px;flex:0 0 19px;margin-top:3px}#customerWalletPreview{margin:16px 0;padding:16px;background:#f2f8fc;border-radius:12px;font-size:12px}#customerWalletPreview dt{font-weight:600}#customerWalletPreview dd{margin:5px 0 12px}#customerWalletError{font-size:12px;color:#924620}#customerWalletDialog :is(button,input,select,textarea):focus-visible{outline:3px solid #75b3d8;outline-offset:3px}
/* History has no nested vertical or horizontal scrolling, and never clips rows. */
#receivableSheet #installmentProgressTable{min-width:0!important;width:100%;box-sizing:border-box;max-height:none!important;height:auto!important;overflow:visible!important;max-width:100%;position:static}#receivableSheet #installmentProgressTable:after{display:none!important}#receivableSheet #receivableTable{width:100%;min-width:0!important;table-layout:fixed}#receivableSheet #receivableTable :is(th,td){position:static!important;min-width:0!important;max-width:none;white-space:normal!important;overflow-wrap:anywhere;vertical-align:top;padding:13px 9px;font-size:12px}#receivableSheet #receivableTable th{font-size:10px;line-height:1.5}#receivableSheet #receivableTable th:nth-child(1){width:6%}#receivableSheet #receivableTable th:nth-child(2),#receivableSheet #receivableTable th:nth-child(3){width:9%}#receivableSheet #receivableTable th:nth-child(4){width:26%}#receivableSheet #receivableTable th:nth-child(5),#receivableSheet #receivableTable th:nth-child(6),#receivableSheet #receivableTable th:nth-child(7){width:10%}#receivableSheet #receivableTable th:nth-child(8){width:12%}#receivableSheet #receivableTable th:nth-child(9){width:8%}#receivableSheet #receivableTable .payment-timing{white-space:normal;font-size:10px}#receivableSheet #receivableTable .payment-evidence{min-width:0!important}#customerWalletHistory,.customer-wallet-history{max-height:none!important;overflow:visible!important}
@media(max-width:1100px){#customerWalletSummary .customer-wallet-metrics{grid-template-columns:1fr 1fr}.customer-wallet-selected{display:grid}.customer-wallet-actions{justify-content:start}#receivableSheet #receivableTable,#receivableSheet #receivableTable tbody{display:block}#receivableSheet #receivableTable thead{display:none}#receivableSheet #receivableTable tbody{display:grid;gap:12px}#receivableSheet #receivableTable tr{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:16px;border:1px solid #d4e4ee;border-radius:12px;background:#fff}#receivableSheet #receivableTable td{display:block!important;padding:0!important;border:0;text-align:left!important}#receivableSheet #receivableTable td:before{content:attr(data-label);display:block;font-size:10px;color:#698095;font-weight:600;margin-bottom:5px}#receivableSheet #receivableTable .payment-evidence{grid-column:1/-1}#receivableSheet #receivableTable .money{font-size:12px}#receivableSheet #receivableTable tr td[colspan]{grid-column:1/-1}}
@media(max-width:600px){#customerWalletSummary .customer-wallet-metrics{grid-template-columns:minmax(0,1fr)}.customer-wallet-form-grid{grid-template-columns:1fr}#customerWalletDialog{padding:18px}.customer-wallet-actions{display:grid}.customer-wallet-actions button{width:100%}#customerWalletSummary .customer-wallet-metrics{gap:9px}#customerWalletSummary .customer-wallet-metrics>div{padding:12px}#customerWalletSummary .customer-wallet-metrics b{font-size:16px}}
@media print{.customer-wallet-actions,.customer-wallet-link,#customerWalletDialog,#checkCustomerWallet{display:none!important}#customerWalletSummary{break-inside:avoid}#customerWalletSummary .customer-wallet-metrics{grid-template-columns:repeat(4,minmax(0,1fr))!important}#customerWalletHistory:not([open]){display:none}.customer-wallet-selected{display:block}#receivableSheet #installmentProgressTable{overflow:visible!important;max-height:none!important}#receivableSheet #receivableTable{display:table!important;min-width:0!important;width:100%!important}#receivableSheet #receivableTable thead{display:table-header-group!important}#receivableSheet #receivableTable tbody{display:table-row-group!important}#receivableSheet #receivableTable tr{display:table-row!important;break-inside:avoid}#receivableSheet #receivableTable td{display:table-cell!important;padding:2mm 1.4mm!important;font-size:7.4pt!important}#receivableSheet #receivableTable td:before{display:none!important}}

.receipt-reconciliation-dialog{width:min(900px,96vw);max-height:92dvh;overflow-y:auto;border:1px solid #cfe0f0;border-radius:16px;color:#143957;padding:20px;box-sizing:border-box}.receipt-reconciliation-dialog::backdrop{background:#091e3dcc}.receipt-reconciliation-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}.receipt-reconciliation-dialog h2{font-family:inherit;font-size:1.25rem}.receipt-reconciliation-dialog form{display:grid;gap:14px;min-width:0}.receipt-reconciliation-dialog label{display:grid;gap:6px}.receipt-reconciliation-dialog fieldset{min-width:0;border:1px solid #cfe0f0;border-radius:10px;padding:12px;display:grid;gap:10px}.receipt-reconciliation-dialog legend,.receipt-reconciliation-dialog p,.receipt-reconciliation-dialog li{overflow-wrap:anywhere}.receipt-reconciliation-dialog input,.receipt-reconciliation-dialog select,.receipt-reconciliation-dialog textarea{width:100%;min-width:0;box-sizing:border-box}.receipt-reconciliation-dialog .customer-wallet-confirm{display:flex;align-items:flex-start}.receipt-reconciliation-dialog input[type=checkbox]{width:auto;flex:none}.receipt-reconciliation-receipts{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:600px){.receipt-reconciliation-receipts{grid-template-columns:1fr}.receipt-reconciliation-dialog{padding:14px}}@media print{.receipt-reconciliation-dialog,#openReceiptReconciliation{display:none!important}}

.receipt-reconciliation-dialog textarea{font:inherit;line-height:1.5;padding:10px 12px;border:1px solid #cfe0f0;border-radius:10px;resize:vertical}.receipt-reconciliation-dialog [hidden]{display:none!important}@media print{#openCustomerIdentity{display:none!important}}
