/* The same paper, ink and soft surfaces as the existing workspace. */
#view-cash[data-debt-view=true] .cash-layout,#view-cash[data-debt-view=true] #cash-receipts{display:none}
.cash-debts-panel{padding:22px;border:1px solid var(--line);border-radius:20px;background:var(--card)}
.cash-debt-total,.client-debt-summary{background:var(--libra-soft);border:1px solid var(--line);border-radius:16px;padding:18px;margin:14px 0}
.cash-debt-total span,.cash-debt-total small{display:block;color:var(--muted)}
.cash-debt-total strong{display:block;font-size:30px;font-weight:650;margin:5px 0;font-variant-numeric:tabular-nums}
.cash-debt-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 0;border-bottom:1px solid var(--line)}
.cash-debt-row>div{min-width:0}.cash-debt-row p{margin:5px 0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.cash-debt-row small{color:var(--muted);line-height:1.5;overflow-wrap:anywhere}
.cash-client-link{border:0;border-radius:4px;background:none;color:var(--ink);padding:2px 0;min-height:32px;text-align:left;font:inherit;font-weight:650;cursor:pointer;overflow-wrap:anywhere}
.cash-client-link:hover{text-decoration:underline;text-underline-offset:3px;color:var(--sage-dark,var(--ink))}.cash-client-link:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.cash-debt-row-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex-shrink:0}.cash-debt-row-actions>strong{font-size:22px;font-variant-numeric:tabular-nums}
.client-debt-summary>div{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.client-debt-summary>div>strong{font-size:25px;white-space:nowrap}.client-debt-summary p{color:var(--muted);font-size:14px;line-height:1.5}
.client-debt-pending{margin-top:14px}.client-debt-pending summary{font-size:14px;cursor:pointer;padding:10px 0}.client-debt-pending>button{display:flex;justify-content:space-between;gap:12px;width:100%;margin:6px 0;text-align:left}.client-debt-pending small{display:block;color:var(--muted);margin-top:5px}
.visit-debt-label{padding:10px 14px;background:var(--libra-soft);border:1px solid var(--line);border-radius:12px;font-weight:600}
#cash-debt-dialog{width:min(560px,calc(100vw - 24px));box-sizing:border-box;max-height:calc(100dvh - 24px);overflow:auto}#cash-debt-dialog form,#cash-debt-dialog .dialog-head{min-width:0}#cash-debt-dialog .dialog-head h2{font-size:24px;overflow-wrap:anywhere}#cash-debt-summary p{line-height:1.5;overflow-wrap:anywhere}#cash-debt-summary .form-summary{gap:14px}

#cash-opening-dialog,#cash-reopening-dialog,#cash-closure-dialog{width:min(640px,calc(100vw - 24px));max-height:calc(100dvh - 24px);box-sizing:border-box;overflow:auto}
#cash-opening-dialog .dialog-head h2,#cash-reopening-dialog .dialog-head h2,#cash-closure-dialog .dialog-head h2{font-size:24px;overflow-wrap:anywhere}
#cash-reopening-summary p,#cash-closure-body p{line-height:1.5;overflow-wrap:anywhere}
#cash-closure-body .cash-balance-line strong{display:block;margin-top:5px;font-size:20px;line-height:1.3;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#cash-closure-body .gift-section h3{font-size:16px}
#closing-difference strong{font-size:18px;overflow-wrap:anywhere}
@media(max-width:600px){.cash-debts-panel{padding:16px}.cash-debt-row{align-items:stretch;flex-direction:column;gap:10px}.cash-debt-row-actions{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start}.cash-debt-row-actions>strong{flex-basis:100%}.cash-debt-row-actions>button{min-height:44px}.client-debt-summary{padding:14px}.client-debt-summary>div{flex-wrap:wrap}#payment-form .dialog-actions{flex-wrap:wrap}#payment-form .dialog-actions button{max-width:100%;white-space:normal}#cash-debt-dialog .dialog-head h2{font-size:22px}}
