.customer-advances-apply{padding:14px 16px;border:1px solid #d7e5e0;border-radius:12px;background:#f6faf8}
.customer-advances-apply .allocation-title{margin-bottom:10px;gap:10px;flex-wrap:wrap}
.customer-advance-row{display:grid;grid-template-columns:minmax(0,1fr) 150px 150px;gap:16px;align-items:center;padding:12px;border:1px solid #dce7e2;border-radius:8px;background:#fff;margin-bottom:8px}
.customer-advance-choice{display:flex!important;align-items:center;gap:10px;margin:0!important;cursor:pointer}
.customer-advance-choice input{width:18px!important;height:18px!important;min-height:0!important;accent-color:#16715c;flex:none}
.customer-advance-choice span{display:flex;flex-direction:column;gap:3px}
.customer-advance-row small{color:#71847c;font-size:11px}
.customer-advance-value{display:flex;flex-direction:column;gap:4px;text-align:right;font-variant-numeric:tabular-nums}
.customer-advance-row.advance-selected{border-color:#65a590;background:#edf7f2}
.customer-advance-row-readonly{grid-template-columns:minmax(0,1fr) 150px;background:#edf7f2}
.customer-advance-row-readonly>div:first-child{display:flex;flex-direction:column;gap:3px}
.customer-advances-balance{display:block;padding-top:5px;color:#42685a}
#modalRoot.mode-cash:has(.receipt-purpose:not(.hidden) select[name="receipt_purpose"] option[value="advance"]:checked) .cash-amount{display:block!important;min-width:0}
#modalRoot.mode-cash .cash-amount input[name="simple_amount"]{display:block;width:100%}
#modalRoot.mode-cash:has(.receipt-purpose:not(.hidden) select[name="receipt_purpose"] option[value="advance"]:checked) .allocation-invoices{display:none!important}
@media(max-width:650px){.customer-advance-row{grid-template-columns:1fr 1fr;gap:10px}.customer-advance-choice{grid-column:1/-1}.customer-advance-value{text-align:left}}
