/* Shared visual system: ink blue, soft paper, and restrained emerald accents. */
:root{--ink:#20334b;--muted:#788696;--green:#247c70;--line:#e5eaf0;--bg:#f4f6fa}
body{font-family:'Segoe UI',Arial,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased}
.sidebar{background:#172b43;border:0;padding:34px 20px;color:#eaf1f8}
.brand{color:#fff;letter-spacing:-.9px}.brand:hover{color:#fff}.brand-mark{background:#338e80;box-shadow:0 4px 12px #08192a20;border-radius:10px}
.brand-sub{color:#8ca0b7;font-size:8px;letter-spacing:1.8px}.nav-label{color:#7f94ad;font-size:9px;letter-spacing:2px;margin-top:44px}
.nav-item{color:#adbed0;font-size:12px;padding:14px 15px;border:1px solid transparent;transition:background .15s,color .15s}
.nav-item:hover{background:#223b56;color:#fff}.nav-item.active{background:#29465e;color:#fff;border-color:#365568;box-shadow:inset 3px 0 #65c4ae}.nav-item.active span{color:#8cdecb}
.workspace-note{border-color:#30425a;color:#d0deea}.workspace-note small,.logout{color:#91a5bb}.logout:hover{color:#fff}.online-dot{background:#79d1af;box-shadow:0 0 0 4px #79d1af12}
.topbar{height:74px;font-size:12px;color:#65768b;background:#ffffffd9}.avatar{border:3px solid #fff;background:#e5f1ef;color:#357466;box-shadow:0 0 0 1px #e6ecef}
.content{padding-top:34px}.page-heading{margin-bottom:28px}h1{font-size:31px;font-weight:700;letter-spacing:-1.2px}.page-heading .eyebrow{color:#77899d;font-size:9px}.page-heading p{font-size:13px!important;color:#8491a0!important}
.btn{padding:11px 18px;font-weight:600;border-radius:8px;font-size:12px;transition:background .15s,box-shadow .15s}.btn-primary{box-shadow:0 3px 7px #267b7015}.btn-primary:focus-visible,a:focus-visible{outline:3px solid #58a9d0;outline-offset:3px}.btn-light{border-color:#dfe6ed;color:#516779;background:#fff}.btn-light:hover{background:#f0f5f8;border-color:#cdd9e3}
.panel,.stat-card{border-color:#e4eaf0;box-shadow:0 3px 10px #183c5a03;border-radius:12px}.panel-heading{padding:24px 26px}.panel-heading h2{font-size:15px;font-weight:700}.panel-heading p{color:#8190a0}.stat-card{padding:23px;position:relative;overflow:hidden}.stat-card h2{color:#22374e;font-size:28px;letter-spacing:-1.2px}.stat-card>span{color:#778797;font-size:11px}.stat-card b{background:#edf2f9;color:#6683a5;border-radius:9px}.stat-card small{color:#8a98a7}.stat-card:after{content:'';position:absolute;left:23px;bottom:0;width:35px;height:3px;background:#84b7a8;border-radius:3px 3px 0 0}
.quick-panel{background:#eaf3f1;border-color:#dbe9e5}.quick-panel p{color:#748b86}.quick-panel .eyebrow{color:#6e978d}.progress{height:12px;background:#edf1f5}.progress-bar{background:#4d9b88}.legend i{background:#4d9b88}.legend .unpaid{background:#e6ecf1}.month-filter{background:transparent;color:#6d7f91}.month-filter>label{font-weight:600;font-size:11px}.month-filter input{box-shadow:0 2px 4px #23374e03}.form-control,.form-select{border-color:#dfe6ed;color:#294258}.form-label{color:#5a7087}.search{background:#f8fafc;border-color:#e7edf2}.table thead th{background:#f7f9fc;color:#8594a5;font-size:9px;border-color:#eaf0f4}.table td{padding-top:19px;padding-bottom:19px;border-color:#edf1f5}.table tbody tr:hover td{background:#fbfcfe}.table td strong{color:#314b61}.table td small{color:#93a0ad}.table-link{color:#3c7e78;font-weight:600}.status{padding:6px 10px;border-radius:20px;font-size:10px;font-weight:600}.table-footer{color:#8b9ba9;border-color:#edf1f5}.table-tools{color:#8c99a7}.page-footer{color:#96a4b2}.soft-badge{background:#f0f4f8;color:#72879a}.import-banner{background:#eaf4f0;border-color:#d6e9df}.form-actions{border-color:#e8edf2}
/* Payment workspace */
.payment-workspace{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:25px;align-items:start;max-width:1380px}.payment-workspace .rent-receipt{max-width:none;width:100%;min-width:0}.rent-receipt{max-width:930px;border:1px solid #e0e7ee;border-radius:13px;box-shadow:0 5px 25px #1e365309;overflow:hidden;font-family:inherit;color:#2e4358}
.document-kicker{display:flex;align-items:center;gap:10px;padding:23px 27px 14px;background:#fff;font-size:11px;font-weight:750;letter-spacing:1.4px}.document-emblem{width:33px;height:33px;display:grid;place-items:center;background:#223f59;color:white;border-radius:8px;font-size:11px;letter-spacing:-.5px}.document-kicker small{display:block;color:#9ba7b3;font-size:7px;letter-spacing:1.4px;font-weight:500;margin-top:4px}.document-label{margin-left:auto;font-size:8px;letter-spacing:1.2px;font-weight:600;background:#eff4f8;color:#7c92a4;border:1px solid #e5ecf2;border-radius:5px;padding:6px 8px}
.rent-title{background:white;color:#223d55;text-align:left;font-size:19px;letter-spacing:-.5px;padding:12px 27px 5px;font-weight:750}.rent-subtitle{background:white;text-align:left;color:#8a98a7;font-size:11px;font-weight:400;padding:0 27px 23px;border-bottom:1px solid #e7edf3}
.receipt-selectors{display:grid;grid-template-columns:minmax(150px,1.6fr) minmax(140px,1fr) auto;align-items:end;gap:12px;background:#f5f8fb;padding:20px 24px;border-bottom:1px solid #e3eaf1}.receipt-selectors label{background:none;color:#687d91;padding:0 0 7px;display:block;font-size:10px;font-weight:650;letter-spacing:.2px}.receipt-selectors select,.receipt-selectors input{background:#fff;border:1px solid #dce5ed;border-radius:7px;padding:10px;color:#314a60;height:40px;font-size:11px;outline-offset:2px}.receipt-selectors button{grid-column:auto;height:40px;border-radius:7px;background:#24435b;border-color:#24435b;font-size:11px;padding:8px 12px;white-space:nowrap}.receipt-selectors button:hover{background:#315974}.receipt-selectors button span{margin-left:8px}.receipt-selected{background:#f6f9fc;border-bottom:1px solid #e3eaf1;grid-template-columns:1fr 2fr 1fr 1fr;padding:13px 20px;gap:8px}.receipt-selected strong{background:none;color:#8294a5;font-size:10px;padding:6px}.receipt-selected span{font-size:11px;padding:6px;color:#3d576e}
.receipt-grid{font-size:11px;border-collapse:collapse}.receipt-grid th,.receipt-grid td{border:0;border-bottom:1px solid #eaf0f5;padding:13px 16px;line-height:1.65}.receipt-grid th{background:#fbfcfe;color:#7b8fa1;font-size:10px;font-weight:550}.receipt-grid th:first-child{padding-left:25px}.receipt-grid td{color:#304c63;background:#fff}.receipt-grid td:last-child{padding-right:25px}.receipt-grid .payment-section{background:#e9f3ef;color:#3e7b68;text-align:left;padding:11px 25px;font-size:9px;font-weight:700;letter-spacing:1.3px;border-top:1px solid #deece4;border-bottom:1px solid #deece4}.receipt-grid input,.receipt-grid textarea{background:#fff;border:1px solid #dce5ec;border-radius:6px;min-height:37px;padding:8px 11px;color:#29465c;font-size:12px;box-shadow:0 1px 3px #273b5203}.receipt-grid input:focus,.receipt-grid textarea:focus{outline:2px solid #a6cfbf;border-color:#559d87;outline-offset:1px;background:#fcfffd}.receipt-grid input[type=number]{font-size:16px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:.2px}.receipt-grid input[type=date]{font-size:11px}.receipt-grid .receipt-band{background:#f3f6fa;color:#6d8397;font-size:9px;font-weight:700;letter-spacing:.7px;padding:9px 25px}.receipt-grid .receipt-words{background:#fafcfb;text-align:left;color:#52836f;font-size:11px;padding:13px 25px;font-style:normal}.receipt-grid .receipt-pending th,.receipt-grid .receipt-pending td{background:#fffaf0;color:#a17c3d;font-style:normal}.receipt-grid #receipt-total{font-size:19px;font-weight:700;color:#2b7365;background:#f4faf7}.receipt-grid #receipt-pending{font-weight:650;font-variant-numeric:tabular-nums}.receipt-grid #receipt-status{font-weight:650;color:#4e7f71}.receipt-grid .receipt-remarks{padding:15px 25px;height:80px;vertical-align:top}.receipt-signatures{border-top:1px solid #e9eef4;padding:0 24px 18px;gap:20px}.receipt-signatures div{border-right:0;height:100px;font-size:10px;font-weight:500;color:#8393a4;position:relative;align-items:flex-end;padding:0 0 5px}.receipt-signatures div:before{content:'';position:absolute;bottom:30px;left:0;right:0;border-top:1px solid #d9e2eb}.receipt-form-actions{background:#f9fbfd;border-top:1px solid #e7edf3;padding:18px 24px}.receipt-form-actions>span{font-size:10px;color:#8a9baa;max-width:240px;line-height:1.6}.receipt-form-actions button{font-size:11px}.legacy-note{border-color:#e6edf3;background:#fffaf0;color:#95805b;padding:13px 24px;font-size:10px}
.payment-companion{position:sticky;top:22px}.payment-summary{border:1px solid #e2e9f0;border-radius:12px;background:#fff;padding:24px;box-shadow:0 3px 12px #203b5504}.payment-summary .eyebrow{font-size:8px;color:#90a0ae;letter-spacing:1.5px}.payment-summary h2{font-size:16px;color:#30485e;line-height:1.5;margin:13px 0 5px}.payment-summary>p{font-size:10px;color:#8c9cab;margin:0 0 23px}.summary-amount{border-top:1px solid #eaf0f5;border-bottom:1px solid #eaf0f5;padding:20px 0}.summary-amount span{display:block;font-size:10px;color:#8a9baa}.summary-amount strong{display:block;font-size:27px;color:#2d4b62;font-weight:650;letter-spacing:-1px;margin-top:7px;font-variant-numeric:tabular-nums}.payment-summary dl{margin:20px 0}.payment-summary dl>div{display:flex;justify-content:space-between;gap:8px;margin:12px 0;font-size:10px}.payment-summary dt{font-weight:400;color:#8a9ba9}.payment-summary dd{margin:0;color:#5d7489;font-weight:600;font-variant-numeric:tabular-nums}.summary-live{padding:15px;border-radius:7px;background:#ecf6f1;display:flex;justify-content:space-between;align-items:center;gap:8px;color:#3b806a;font-size:11px}.summary-live strong{font-size:16px}.summary-remaining{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#899ca9;margin:14px 1px 0}.summary-remaining strong{font-weight:600;color:#7b8f9f}.payment-guide{padding:28px 12px 10px}.payment-guide .eyebrow{font-size:8px;color:#8b9cab}.payment-guide ol{list-style:none;padding:0;margin:22px 0 0}.payment-guide li{display:flex;gap:12px;margin-bottom:24px}.payment-guide li>span{flex:0 0 26px;height:26px;display:grid;place-items:center;background:#e7edf4;color:#8196ab;border-radius:50%;font-size:9px;font-weight:600}.payment-guide strong{font-size:11px;font-weight:600;color:#596f83}.payment-guide p{font-size:10px;color:#91a0ae;line-height:1.8;margin:5px 0 0}.payment-help{font-size:10px;line-height:1.8;color:#9aabb8;border-top:1px solid #e3eaf1;padding:17px 12px}
@media(min-width:1600px){.payment-workspace{grid-template-columns:minmax(0,950px) 300px}.receipt-grid{font-size:12px}.receipt-grid th{font-size:11px}}
@media(max-width:1250px){.payment-workspace{grid-template-columns:minmax(0,1fr)}.payment-companion{position:static;display:grid;grid-template-columns:1fr 1fr;gap:20px}.payment-help{grid-column:1/-1}.payment-summary{padding:22px}.payment-guide{padding:22px}.summary-amount{padding:12px 0}}
@media(max-width:767px){.sidebar{padding:17px}.sidebar .nav-item{padding:10px 12px;font-size:10px}.sidebar .nav-item.active{box-shadow:inset 0 -2px #65c4ae}.content{padding:24px 14px}.page-heading{gap:15px}.topbar{height:54px}.document-kicker{padding:20px 18px 12px}.document-label{font-size:7px}.rent-title{font-size:17px;padding:10px 18px 5px}.rent-subtitle{padding:0 18px 20px;font-size:10px}.receipt-selectors{padding:18px;grid-template-columns:1fr 1fr;gap:13px}.receipt-selectors .owner-select{grid-column:1/-1}.receipt-selectors button{grid-column:auto}.receipt-grid th,.receipt-grid td{padding:10px 8px;font-size:10px}.receipt-grid th:first-child{padding-left:12px}.receipt-grid td:last-child{padding-right:12px}.receipt-grid input[type=date]{font-size:9px;padding:6px 3px}.receipt-grid .payment-section,.receipt-grid .receipt-band{padding-left:13px}.receipt-grid .receipt-words{padding:12px 14px}.receipt-grid .receipt-remarks{padding:14px}.receipt-grid #receipt-total{font-size:18px}.receipt-signatures{padding:0 12px 14px;gap:12px}.receipt-signatures div{font-size:9px;height:90px}.receipt-form-actions{padding:16px 14px;gap:12px}.receipt-form-actions>span{max-width:none}.receipt-form-actions .btn{width:100%}.payment-companion{grid-template-columns:1fr}.payment-guide{display:none}.payment-help{padding:0 10px 12px;border:0}.receipt-selected{grid-template-columns:1fr 2fr;padding:12px}.stat-card{padding:16px}.stat-card h2{font-size:23px}.stat-card:after{left:16px}.auth-brand{background:#eaf0f5}.auth-card{background:var(--bg)}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{.payment-companion{display:none!important}.payment-workspace{display:block}.rent-receipt{box-shadow:none;border:1px solid #aab8c5;border-radius:0;max-width:none}.document-kicker{padding:12px 18px 8px}.rent-title{padding:8px 18px 5px;font-size:19px}.rent-subtitle{padding:0 18px 12px}.receipt-grid th,.receipt-grid td{padding:7px 10px;font-size:10px;border-bottom:1px solid #dce4eb}.receipt-grid th:first-child{padding-left:14px}.receipt-grid .payment-section,.receipt-grid .receipt-band{padding:7px 14px}.receipt-grid .receipt-words{padding:9px 14px}.receipt-grid .receipt-remarks{padding:9px 14px;height:50px}.receipt-signatures div{height:80px}.receipt-grid #receipt-total{font-size:16px}.receipt-selected{padding:8px 14px}.legacy-note{font-size:8px;padding:8px 14px}.receipt-signatures{padding-bottom:8px}.document-label{border-color:#d8e2eb}}

/* High-contrast text on all light surfaces, including saved PDFs. */
:root{--ink:#17212e;--muted:#46515e;--bs-secondary-color:#46515e}
body,.rent-receipt,.table{color:#17212e;--bs-table-color:#17212e}
.main-shell .text-secondary,.auth-wrap .text-secondary,.page-heading p{color:#46515e!important}
.topbar,.top-date,.eyebrow,.page-heading .eyebrow,.panel-heading p,.stat-card>span,.stat-card small,.table td small,.table thead th,.table-footer,.table-tools,.page-footer,.month-filter,.month-filter>span,.form-label,.soft-badge,.source-note,.import-banner p,.quick-panel p,.quick-panel .eyebrow,.payment-progress>div>span,.legend,.auth-brand p{color:#46515e}
.form-control,.form-select,.receipt-selectors select,.receipt-selectors input,.receipt-grid input,.receipt-grid textarea{color:#17212e}
input::placeholder,textarea::placeholder{color:#56616e!important;opacity:1}
.document-kicker small,.document-label,.rent-subtitle,.receipt-selectors label,.receipt-selected strong,.receipt-selected span,.receipt-grid th,.receipt-grid td,.receipt-grid .receipt-band,.receipt-signatures div,.receipt-form-actions>span,.legacy-note,.payment-summary .eyebrow,.payment-summary>p,.summary-amount span,.payment-summary dt,.payment-summary dd,.summary-remaining,.summary-remaining strong,.payment-guide .eyebrow,.payment-guide strong,.payment-guide p,.payment-guide li>span,.payment-help{color:#263341}
.receipt-grid .receipt-words,.receipt-grid .payment-section,.receipt-grid #receipt-status,.receipt-grid #receipt-total,.summary-live,.status.paid{color:#18503d}
.receipt-grid .receipt-pending th,.receipt-grid .receipt-pending td,.status.partial{color:#714a10}
.status.pending{color:#853b2d}.balance-due{color:#714a10!important}
/* Keep navigation legible against its dark background. */
.sidebar .brand-sub,.sidebar .nav-label,.sidebar .workspace-note small,.sidebar .logout{color:#c2cfdd}
.sidebar .nav-item{color:#d3deea}.sidebar .nav-item.active,.sidebar .nav-item:hover{color:#fff}
@media print{.rent-receipt,.receipt-grid th,.receipt-grid td,.receipt-grid .receipt-band,.receipt-grid .receipt-words,.receipt-grid .payment-section,.receipt-grid #receipt-status,.receipt-grid #receipt-total,.receipt-grid #receipt-pending,.receipt-signatures div,.rent-subtitle,.document-kicker small,.document-label,.receipt-selected strong,.receipt-selected span,.legacy-note{color:#111!important}}
.payment-amount-control{display:flex;gap:10px;align-items:center}.payment-amount-control .form-select{flex:0 0 210px;max-width:50%;height:42px;font-size:12px;color:#17212e}.payment-amount-control input{flex:1;min-width:0;height:42px}@media(max-width:600px){.payment-amount-control{flex-direction:column;align-items:stretch}.payment-amount-control .form-select{flex:auto;max-width:none;width:100%}.payment-amount-control input{width:100%}}
.delete-record{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;margin-left:8px;border:1px solid #efdddd;border-radius:7px;background:#fff7f6;color:#a53630;vertical-align:middle;cursor:pointer}.delete-record:hover{background:#fce6e3;border-color:#daaaa5}.delete-record:focus-visible{outline:3px solid #d37770;outline-offset:2px}

.charges-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;border:1px solid #e1e9ec;border-radius:9px;padding:18px;background:#f7fafb}.charges-summary span{display:block;font-size:11px;color:#46515e;margin-bottom:8px}.charges-summary strong{display:block;font-size:18px;color:#17212e;font-variant-numeric:tabular-nums}.charges-summary .charges-outstanding strong{color:#714a10}.charges-summary .charges-outstanding span{font-weight:700}@media(max-width:500px){.charges-summary{grid-template-columns:1fr;gap:18px}}

.invoice-signatures{grid-template-columns:1fr 1fr;gap:70px}.invoice-total{font-size:21px;font-weight:700;background:#f0f8f4!important;color:#17212e!important}.invoice-document details{border-top:1px solid #e5eaf0;font-size:12px}.invoice-document summary{cursor:pointer;color:#9c332d}@media print{.invoice-document{break-inside:auto}.invoice-signatures{break-inside:avoid}.invoice-total{font-size:17px}}

/* Invoice text size requested: 13px on screen and in PDF output. */
.invoice-document,.invoice-document .receipt-grid,.invoice-document .receipt-grid th,.invoice-document .receipt-grid td,.invoice-document .receipt-grid .payment-section,.invoice-document .receipt-grid .receipt-band,.invoice-document .receipt-grid .receipt-words,.invoice-document .receipt-signatures div,.invoice-document .rent-subtitle,.invoice-document .document-kicker,.invoice-document .document-kicker small,.invoice-document .document-label{font-size:13px}
@media print{.invoice-document,.invoice-document .receipt-grid,.invoice-document .receipt-grid th,.invoice-document .receipt-grid td,.invoice-document .receipt-grid .payment-section,.invoice-document .receipt-grid .receipt-band,.invoice-document .receipt-grid .receipt-words,.invoice-document .receipt-signatures div,.invoice-document .rent-subtitle,.invoice-document .document-kicker,.invoice-document .document-kicker small,.invoice-document .document-label{font-size:13px}}
.invoice-document .receipt-grid .invoice-bill-to th,.invoice-document .receipt-grid .invoice-bill-to td{background:#dcefe9;color:#164c40;font-weight:700}.invoice-document .receipt-grid .invoice-bill-to th{border-left:4px solid #247c70}@media print{.invoice-document .receipt-grid .invoice-bill-to th,.invoice-document .receipt-grid .invoice-bill-to td{background:#dcefe9!important;color:#164c40!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.invoice-document .receipt-grid .invoice-bill-from th,.invoice-document .receipt-grid .invoice-bill-from td{background:#dcefe9;color:#164c40}.invoice-document .receipt-grid .invoice-bill-from th{border-left:4px solid #247c70;vertical-align:top}.invoice-bill-from td div{font-weight:400}@media print{.invoice-document .receipt-grid .invoice-bill-from th,.invoice-document .receipt-grid .invoice-bill-from td{background:#dcefe9!important;color:#164c40!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}}
