#client-drawer .client-debt-bulk-actions {display:flex;justify-content:flex-end;margin:0 0 12px}
#client-drawer .client-debt-bulk-actions button {font-size:14px;min-height:40px}
.debt-checkout-dialog {--profile-due-ink:#ffd2d2;--debt-due-border:#e56b6b;--debt-due-bg:#432729;--debt-success-ink:#8bc6aa;--debt-success-bg:#6fba981a;--debt-success-line:#6fba9840}
:root[data-theme=light] .debt-checkout-dialog {--profile-due-ink:#922b29;--debt-due-border:#dba5a0;--debt-due-bg:#fcebe9;--debt-success-ink:#2c7051;--debt-success-bg:#eaf3ed;--debt-success-line:#bfd7c7}
:root body > dialog.debt-checkout-dialog {width:min(1120px,calc(100vw - 40px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--v7-line);border-radius:20px;background:var(--v7-surface);color:var(--v7-ink);box-shadow:0 28px 90px #0005;overflow:hidden;font-family:var(--font-heading);font-size:16px;line-height:1.55}
.debt-checkout-dialog::backdrop {background:#08080db3;backdrop-filter:blur(5px)}
:root body > dialog.debt-checkout-dialog[open] {display:flex;flex-direction:column}
.debt-checkout-dialog [hidden] {display:none!important}
.debt-checkout-dialog > .dialog-header {display:flex;gap:24px;justify-content:space-between;align-items:center;flex-shrink:0;margin:0;padding:22px 28px;background:var(--v7-section-header);border-bottom:1px solid var(--v7-section-header-line);color:#fff}
.debt-checkout-dialog .dialog-header > div {min-width:0}
.debt-checkout-dialog .dialog-header h2 {font-size:25px;font-weight:750;letter-spacing:-.6px;line-height:1.3;margin:0;color:#fff}
.debt-checkout-dialog .dialog-header p {margin:8px 0 0;font-size:16px;line-height:1.5;color:#f1dce2;overflow-wrap:anywhere}
.debt-checkout-dialog .icon-close {width:42px;height:42px;flex:0 0 42px;padding:0;border:1px solid #ffffff50;border-radius:10px;background:#ffffff12;color:#fff;font-size:24px}
.debt-checkout-body {padding:28px;overflow:auto;min-height:0;overscroll-behavior:contain;scroll-padding:24px}
.debt-editor {display:grid;grid-template-columns:minmax(0,1.35fr) minmax(360px,.95fr);gap:24px;align-items:start}
.debt-items-panel,.debt-payment-panel,.debt-balances {min-width:0}
.debt-list-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.debt-list-heading label,.debt-confirm {display:flex;align-items:flex-start;gap:10px;font-size:15px;line-height:1.6}
.debt-checkout-dialog input[type=checkbox] {width:18px;height:18px;min-height:18px;flex:0 0 18px;margin:3px 0 0;accent-color:#b82b3b}
.debt-selection-total {margin:14px 0 18px;font-size:14px;line-height:1.6;color:var(--v7-muted)}
.debt-choices {display:grid;gap:14px}
.debt-choice {border:1px solid var(--v7-line);background:var(--v7-panel);border-radius:14px;padding:18px;min-width:0}
.debt-choice:has([data-debt-key]:checked) {border-color:var(--debt-due-border)}
.debt-choice-head {display:flex;align-items:flex-start;gap:10px;min-width:0}
.debt-choice-head > span {display:grid;gap:7px;flex:1;min-width:0}
.debt-choice-head strong {font-size:16px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}
.debt-choice-head small,.debt-option-hint {font-size:14px;line-height:1.6;color:var(--v7-muted);overflow-wrap:anywhere}
.debt-choice-head > b {font-size:18px;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--profile-due-ink,#ef9296)}
.debt-package-choice {display:grid;gap:8px;margin:16px 0 0 28px;font-size:14px;color:var(--v7-muted);min-width:0}
.debt-option-hint {display:block;margin:8px 0 0 28px}
.debt-payment-panel {position:sticky;top:0;padding:22px;border:1px solid var(--v7-line);border-radius:16px;background:var(--v7-panel)}
.debt-checkout-dialog h3 {font-size:20px;font-weight:700;letter-spacing:-.3px;line-height:1.4;margin:0 0 18px;color:var(--v7-ink)}
.debt-checkout-dialog :is(h2,h3)[tabindex="-1"]:focus {outline:none}
.debt-money-total {margin:0 0 18px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:14px;color:var(--v7-muted)}
.debt-money-total strong {font-size:24px;line-height:1.3;color:var(--v7-ink);font-variant-numeric:tabular-nums}
.debt-funding {padding:18px 0;border-top:1px solid var(--v7-divider)}
.debt-funding-fields {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(100px,.8fr) 36px;gap:10px;align-items:end}
.debt-funding label:not(.debt-confirm),.debt-search {display:grid;gap:8px;font-size:14px;line-height:1.5;color:var(--v7-muted);min-width:0}
.debt-funding > label {margin-top:14px}
.debt-checkout-dialog :is(input:not([type=checkbox]),select,.bl-select-trigger) {box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:46px;padding:10px 12px;border:1px solid var(--v7-line);border-radius:10px;background:var(--v7-input);color:var(--v7-ink);font:inherit;font-size:16px;line-height:1.5}
.debt-checkout-dialog .bl-select {min-width:0;max-width:100%}
.debt-checkout-dialog .bl-select-trigger {text-align:left;display:flex;gap:5px;align-items:center}
.debt-checkout-dialog .bl-select-value {flex:1;min-width:0;overflow-wrap:anywhere}
.debt-checkout-dialog .debt-remove {width:36px;min-height:46px;padding:0;font-size:22px}
.debt-fill {font-size:14px;margin-top:12px;padding:7px 10px;min-height:38px}
.debt-search {margin-top:10px}
.debt-left {margin:16px 0 0;font-size:15px;line-height:1.6;font-weight:600}
.debt-order-hint {font-size:14px;line-height:1.6;color:var(--v7-muted);margin:12px 0 18px}
.debt-checkout-dialog .is-error,.debt-remaining {color:var(--profile-due-ink,#ef9296)}
.debt-checkout-dialog .debt-settled {color:#78b79c}
:root[data-theme=light] .debt-checkout-dialog .debt-settled {color:#27674e}
.debt-review-summary {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}
.debt-review-summary > div {display:grid;align-content:start;gap:12px;padding:20px;border:1px solid var(--v7-line);border-radius:14px;background:var(--v7-panel);min-width:0}
.debt-review-summary > div.has-due {background:var(--debt-due-bg);border-color:var(--debt-due-border)}
.debt-review-summary > div.has-due span {color:var(--profile-due-ink)}
.debt-review-summary span {font-size:14px;line-height:1.5;color:var(--v7-muted)}
.debt-review-summary strong {font-size:26px;line-height:1.3;color:var(--v7-ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.debt-review-list {border:1px solid var(--v7-line);border-radius:14px;background:var(--v7-panel);padding:0 22px}
.debt-review-list article {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;padding:20px 0;border-bottom:1px solid var(--v7-divider);font-size:16px;line-height:1.55}
.debt-review-list article:last-child {border-bottom:0}
.debt-review-list article > div {min-width:0;overflow-wrap:anywhere}
.debt-review-list small {display:block;font-size:14px;line-height:1.6;color:var(--v7-muted);margin-top:8px}
.debt-review-list .debt-remaining {color:var(--profile-due-ink)}
.debt-review-list .debt-settled {color:#78b79c}
.debt-review-list p {display:flex;justify-content:space-between;gap:14px;margin:0 0 8px;font-size:15px;line-height:1.6;flex-wrap:wrap}
.debt-review-list p strong {font-size:15px;white-space:nowrap}
.debt-balances {margin-top:22px;padding:22px;border:1px solid var(--v7-line);border-radius:14px;background:var(--v7-panel)}
.debt-balances p {display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:14px 0 0;font-size:15px;line-height:1.6;overflow-wrap:anywhere}
.debt-balances strong {font-size:16px;font-variant-numeric:tabular-nums}
.debt-final-confirm {margin:24px 0 0;padding:18px 20px;border:1px solid var(--v7-line);border-radius:12px;background:var(--v7-panel)}
.debt-checkout-dialog > .dialog-footer {display:flex;align-items:center;justify-content:space-between;gap:20px;flex-shrink:0;flex-wrap:wrap;padding:20px 28px;border-top:1px solid var(--v7-line);background:var(--v7-surface)}
.debt-checkout-dialog .debt-footer-actions {display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-left:auto}
.debt-footer-summary {display:grid;gap:4px;min-width:0}
.debt-footer-summary small {font-size:13px;color:var(--v7-muted)}
.debt-footer-summary [data-footer-total] {font-size:20px;line-height:1.4;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.debt-footer-summary:has([data-footer-total]:empty) {display:none}
.debt-checkout-dialog button {font-family:inherit;font-size:15px;line-height:1.5;min-height:44px;white-space:normal;overflow-wrap:anywhere}
.debt-checkout-dialog .dialog-footer button {min-height:46px;padding:11px 18px;border-radius:10px;font-weight:650}
.debt-checkout-dialog .dialog-footer .primary {border:1px solid #ad394c;background:linear-gradient(115deg,#8c2038,#a92e43);color:#fff}
.debt-checkout-dialog button:focus-visible {outline:2px solid var(--accent);outline-offset:3px}
.debt-checkout-dialog .dialog-header button:focus-visible {outline-color:#fff}
.debt-checkout-dialog [data-error]:not(:empty) {padding:12px;border:1px solid var(--profile-due-ink,#ef9296);border-radius:10px;background:var(--v7-panel);font-size:14px;line-height:1.5;margin:12px 0 0;overflow-wrap:anywhere}
.debt-empty {max-width:680px;margin:0 auto;padding:38px 20px;text-align:center;font-size:16px;line-height:1.7}
.debt-empty p {color:var(--v7-muted)}
.debt-refresh {display:block;margin-top:10px}
.debt-success {max-width:900px;margin:0 auto;padding:28px 4px 36px;text-align:left}
.debt-success-heading {display:flex;align-items:flex-start;gap:20px;margin-bottom:32px}
.debt-success-heading > div {min-width:0}
.debt-success-symbol {display:grid;place-items:center;width:56px;height:56px;flex:0 0 56px;border:1px solid var(--debt-success-line);border-radius:16px;background:var(--debt-success-bg);color:var(--debt-success-ink)}
.debt-success-symbol svg {width:30px;height:30px}
.debt-success-heading h3 {font-size:30px;font-weight:750;line-height:1.3;letter-spacing:-.7px;margin:0;color:var(--v7-ink)}
.debt-success-heading h3:focus {outline:none}
.debt-success-heading p {max-width:580px;margin:10px 0 0;color:var(--v7-muted);font-size:15px;line-height:1.65}
.debt-result-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:16px}
.debt-result-card {display:grid;align-content:start;gap:18px;min-width:0;min-height:130px;padding:24px;border:1px solid var(--v7-line);border-radius:16px;background:var(--v7-panel)}
.debt-result-card > span {font-size:14px;line-height:1.5;color:var(--v7-muted);overflow-wrap:anywhere}
.debt-result-card > strong {font-size:30px;font-weight:750;line-height:1.3;letter-spacing:-.6px;font-variant-numeric:tabular-nums;color:var(--v7-ink);overflow-wrap:anywhere}
.debt-result-card.has-due {background:var(--debt-due-bg);border-color:var(--debt-due-border)}
.debt-result-card.has-due > span {color:var(--profile-due-ink)}
.debt-checkout-dialog:has(.debt-success) .debt-footer-summary {display:none}
.debt-checkout-dialog:has(.debt-success) .dialog-footer [data-close] {min-width:156px;border:1px solid #ad394c;background:linear-gradient(115deg,#8c2038,#a92e43);color:#fff}
@media(max-width:880px){.debt-editor {grid-template-columns:minmax(0,1fr);gap:24px}.debt-payment-panel {position:static}.debt-review-list article {grid-template-columns:minmax(0,1fr);gap:12px}.debt-review-summary {gap:12px}.debt-review-summary > div {padding:16px}.debt-review-summary strong {font-size:23px}}
@media(max-width:600px){:root body > dialog.debt-checkout-dialog {width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:16px}.debt-checkout-dialog > .dialog-header {padding:18px 16px;gap:12px;align-items:flex-start}.debt-checkout-dialog .dialog-header h2 {font-size:22px;letter-spacing:-.4px}.debt-checkout-dialog .dialog-header p {font-size:15px;margin-top:7px}.debt-checkout-body {padding:20px 16px}.debt-choice {padding:16px}.debt-choice-head {flex-wrap:wrap}.debt-choice-head > b {margin-left:28px;flex-basis:100%}.debt-payment-panel {padding:18px 16px}.debt-package-choice {margin-left:0}.debt-review-summary {grid-template-columns:minmax(0,1fr);gap:10px}.debt-review-summary > div {display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px}.debt-review-summary span {flex:1;min-width:0}.debt-review-summary strong {max-width:55%;text-align:right}.debt-review-list {padding-inline:16px}.debt-balances {padding:18px 16px}.debt-final-confirm {padding:16px}.debt-checkout-dialog > .dialog-footer {gap:14px;padding:16px}.debt-checkout-dialog .debt-footer-actions {width:100%;margin:0;gap:8px}.debt-checkout-dialog .debt-footer-actions button {flex:1;min-width:0}.debt-checkout-dialog .dialog-footer [data-preview],.debt-checkout-dialog .dialog-footer [data-apply] {flex:1 1 100%}.debt-funding-fields {grid-template-columns:minmax(0,1fr) minmax(96px,.85fr) 36px;gap:8px}.debt-success {padding:8px 0 14px}.debt-success-heading {gap:14px;margin-bottom:24px}.debt-success-symbol {width:44px;height:44px;flex-basis:44px;border-radius:13px}.debt-success-symbol svg {width:25px;height:25px}.debt-success-heading h3 {font-size:25px;letter-spacing:-.5px}.debt-success-heading p {font-size:14px;margin-top:8px}.debt-result-grid {grid-template-columns:minmax(0,1fr);gap:12px}.debt-result-card {min-height:100px;padding:18px 20px;gap:10px;border-radius:14px}.debt-result-card > strong {font-size:28px}.debt-checkout-dialog:has(.debt-success) .debt-footer-actions {width:auto;margin-left:auto}.debt-checkout-dialog:has(.debt-success) .dialog-footer [data-close] {min-width:156px}}
@media(max-width:360px){.debt-checkout-dialog .dialog-header h2 {font-size:20px}.debt-checkout-dialog .dialog-header p {font-size:14px}.debt-funding-fields {grid-template-columns:minmax(0,1fr) 36px}.debt-funding-fields > label:first-child {grid-column:1/-1}.debt-funding-fields > label:nth-child(2) {grid-column:1}.debt-success-heading {gap:12px}.debt-success-heading h3 {font-size:23px}}
