/* Shared payments view and single-editor message. */
html.family-editor-wait body{pointer-events:none}
#familyWriterBlock{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:24px;background:#0b1224f5;pointer-events:auto;color:#eef4ff;font:18px Assistant,Arial,sans-serif;text-align:center}
#familyWriterBlock[hidden]{display:none}#familyWriterBlock>div{max-width:540px;padding:32px;border:1px solid #354764;border-radius:20px;background:#17233a}#familyWriterBlock button,#familyWriterBlock a{display:inline-block;padding:10px 18px;color:#fff;background:#294867;border:1px solid #617488;border-radius:9px;margin:6px}
body.payments-only>header,body.payments-only>#login-overlay,body.payments-only #balanceSidebar,body.payments-only> :not(.workspace):not(#paymentModalBackdrop):not(#familyWriterBlock){display:none!important}
body.payments-only .workspace{width:100%;min-height:0}body.payments-only #view_payments{padding:clamp(14px,3vw,36px)}
.payment-page{max-width:1500px;margin:0 auto;color:#e5edf9;font-family:Assistant,Arial,sans-serif}.payment-page h1{font-size:30px;line-height:1.2;margin:8px 0}.payment-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}.payment-eyebrow{color:#62dbcd;letter-spacing:1px;font-size:14px;font-weight:700;margin:0}.payment-intro{margin:12px 0 24px;color:#bbc9dc}.payment-muted,.payment-footnote{color:#a9bbd0;font-size:14px;line-height:1.65}.payment-page button,.payment-editor button,.payment-page input,.payment-page select,.payment-editor input,.payment-editor select,.payment-editor textarea{font:inherit;color:#e8eef9;border:1px solid #40536e;border-radius:9px;background:#17243a;padding:10px 13px;min-height:42px;box-sizing:border-box}.payment-page button,.payment-editor button{cursor:pointer}.payment-page button:hover,.payment-editor button:hover{border-color:#5eead4}.payment-page a{color:#74e2d3}.payment-page .payment-primary,.payment-editor .payment-primary{background:#5ce0c8;color:#082323;border-color:#5ce0c8;font-weight:800}.payment-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0}.payment-stats article{background:#19273e;border:1px solid #354760;border-radius:14px;padding:17px}.payment-stats span{display:block;color:#b5c5d9;font-size:14px}.payment-stats strong{display:block;font-size:27px;margin-top:7px;white-space:nowrap}.payment-stats article:first-child strong{color:#73ead4}.payment-toolbar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px}.payment-toolbar label{display:flex;flex-direction:column;gap:5px;font-size:14px}.payment-toolbar .payment-import{display:block;cursor:pointer;border:1px solid #40536e;padding:11px 13px;border-radius:9px;background:#17243a}.payment-import input{max-width:180px;display:block;margin-top:6px;font-size:12px}.payment-table-scroll{overflow-x:auto;border:1px solid #354760;border-radius:13px;margin-top:14px}.payment-table{width:100%;border-collapse:collapse;min-width:960px;font-size:15px}.payment-table th{background:#1d2c43;color:#b4c8df;text-align:right;padding:14px 12px;white-space:nowrap}.payment-table td{padding:14px 12px;border-bottom:1px solid #2c3e57;vertical-align:top}.payment-money{white-space:nowrap;font-weight:700}.payment-notes{max-width:260px;white-space:pre-wrap;overflow-wrap:anywhere}.payment-status{display:inline-block;white-space:nowrap;border-radius:6px;padding:4px 7px;font-size:13px;background:#32435e}.status-paid{color:#9af5d8;background:#164638}.status-planned{color:#ffdf93;background:#4a3b21}.status-cancelled{color:#d4dce7;background:#343d4b}.status-legacy{color:#ffd0a6;background:#513524}.payment-empty{text-align:center;padding:45px 20px;background:#142137;color:#d3e2f5;border-radius:12px;line-height:1.8}.payment-empty span{font-size:15px;color:#a9bbd0}.payment-footnote{border-top:1px solid #34455f;padding-top:16px;margin-top:24px}#paymentMessage{color:#86eed7;min-height:24px;line-height:1.6}#paymentMessage.error,.payment-error{color:#ffb9b9}.payment-editor-backdrop{display:none;position:fixed;inset:0;background:#020914d9;z-index:20000;padding:18px;overflow:auto;align-items:flex-start;justify-content:center}.payment-editor-backdrop.open{display:flex}.payment-editor{width:min(100%,690px);background:#132138;border:1px solid #4b627f;border-radius:18px;padding:24px;color:#edf3fc;margin:auto;box-sizing:border-box}.payment-editor h2{margin:0;font-size:24px}.payment-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:24px 0 12px}.payment-form-grid label{display:flex;flex-direction:column;gap:6px;font-size:15px}.payment-form-grid input,.payment-form-grid select,.payment-form-grid textarea{width:100%;color-scheme:dark}.payment-wide{grid-column:1/-1}.payment-actions{display:flex;gap:10px}.payment-error{min-height:24px}.payment-page :focus-visible,.payment-editor :focus-visible{outline:2px solid #73ead4;outline-offset:3px}
@media(max-width:700px){.payment-stats{grid-template-columns:1fr 1fr}.payment-stats strong{font-size:23px}.payment-toolbar{align-items:stretch}.payment-toolbar label{flex:1 1 135px}.payment-form-grid{grid-template-columns:1fr}.payment-editor{padding:18px}.payment-stats article{padding:12px}.payment-page h1{font-size:26px}}
@media print{body{display:block!important;height:auto!important;overflow:visible!important;background:white!important;color:black!important}body> :not(.workspace){display:none!important}.workspace{display:block!important;overflow:visible!important;height:auto!important}#balanceSidebar,.main-view:not(#view_payments){display:none!important}#view_payments{display:block!important;overflow:visible!important;padding:0!important}.payment-page,.payment-page *{color:black!important;background:white!important}.payment-table-scroll{overflow:visible!important;border:0}.payment-table{min-width:0;font-size:10px}.payment-table td,.payment-table th{padding:5px}.payment-toolbar,.payment-heading>button,.payment-table button,.payment-table th:last-child,.payment-table td:last-child{display:none!important}.payment-stats strong{font-size:18px}.payment-page h1{font-size:22px}.payment-footnote{font-size:11px}}
