#walletPaymentDialog { width:min(480px,calc(100vw - 32px)); max-height:90vh; box-sizing:border-box; padding:0; border:1px solid #d7dbe1; border-radius:14px; color:#24272d; box-shadow:0 16px 56px #16274629; }
#walletPaymentDialog::backdrop { background:rgb(20 28 43 / 38%); }
#walletPaymentDialog form { padding:0; margin:0; display:block; }
#walletPaymentDialog header { padding:22px 24px 16px; border-bottom:1px solid #e5e8ee; }
#walletPaymentDialog h3 { margin:0; font-size:20px; line-height:1.3; }
#walletPaymentDialog header p { margin:6px 0 0; color:#626a78; font-size:13px; overflow-wrap:anywhere; }
#walletPaymentDialog section { display:grid; gap:16px; padding:20px 24px; }
#walletPaymentDialog .wallet-pay-total { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; background:#f1f5fc; color:#344b73; border-radius:8px; padding:12px 14px; font-size:13px; }
#walletPaymentDialog .wallet-pay-total strong { font-size:20px; font-variant-numeric:tabular-nums; }
#walletPaymentDialog label { display:grid; gap:6px; font-size:13px; font-weight:600; }
#walletPaymentDialog :is(input,select) { box-sizing:border-box; width:100%; min-width:0; height:40px; padding:0 12px; border:1px solid #cdd3dc; border-radius:6px; background-color:white; font:inherit; }
#walletPaymentDialog output,#walletPaymentDialog [role=status] { font-size:13px; }
#walletPaymentDialog :is(output,[role=status]):empty { display:none; }
#walletPaymentDialog footer { display:flex; justify-content:flex-end; gap:8px; padding:14px 24px; border-top:1px solid #e5e8ee; }
#walletPaymentDialog footer button { min-height:36px; padding:0 16px; }
#walletPaymentDialog [type=submit] { background:#416ed0; color:white; }
#walletPaymentDialog [type=submit]:disabled { background:#e7eaf0; color:#626b7a; }

.project-invoice-table .project-invoice-progress-cell .wallet-payment-notes { display:block; max-width:24ch; margin-inline:auto; white-space:pre-line; overflow-wrap:anywhere; }

/* Keep the selection gutter inside the existing project column. */
.project-invoice-table td:has(> .invoice-group-check) { position:relative; }
.project-invoice-table td:has(> .invoice-group-check) > :is(strong,.table-subtext) { position:relative; left:40px; max-width:calc(100% - 40px); }
.project-invoice-table .invoice-group-check { position:absolute; inset:0 auto 0 0; display:grid; place-items:center; width:40px; margin:0; }
.project-invoice-table .invoice-group-check input { width:18px; height:18px; margin:0; }


#costLedgerPanel .petty-cash-history-row .petty-cash-pending-project > strong { color: #996300; }