.sheet-page{--ink:#23433f;--teal:#287d78;--line:#c6d7d4;--wash:#edf6f4;--blue:#edf4f9;max-width:1280px;margin:0 auto;padding:28px 32px 50px;color:var(--ink);font:16px/1.5 Arial,Helvetica,sans-serif}.sheet-page *,.preview-bar *{box-sizing:border-box}.sheet-page button,.sheet-page input,.sheet-page select,.sheet-page textarea{font:inherit}.sheet-page button,.sheet-page select,.sheet-page input,.sheet-page textarea{max-width:100%;min-width:0}.sheet-page button{cursor:pointer;background:#fff;border:1px solid #93afaa;border-radius:7px;color:#24564e;font-weight:700;padding:10px 16px;min-height:44px}.sheet-page button:hover{background:#edf6f4;border-color:#287d78}.sheet-page button:focus-visible,.sheet-page input:focus-visible,.sheet-page select:focus-visible,.sheet-page textarea:focus-visible{outline:3px solid #d3a43e;outline-offset:2px}.sheet-page .primary{background:#287d78;color:white;border-color:#287d78}.sheet-page button:disabled{opacity:.5;cursor:not-allowed}.crumb{font-size:14px;margin-bottom:24px}.crumb a,.help-link,.sheet-page a{color:#28665b}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:24px}.page-heading h1{font-size:32px;line-height:1.2;margin:8px 0 10px;color:#203f38;letter-spacing:-.6px}.page-heading p{margin:0;color:#58716c}.page-heading .eyebrow{color:#287d78;font-size:11px;font-weight:bold;letter-spacing:1.5px}.help-link{white-space:nowrap;font-size:14px;font-weight:bold}.workspace-bar{display:flex;align-items:end;gap:12px;padding:16px;background:#eaf2ef;border:1px solid var(--line);border-radius:10px 10px 0 0;flex-wrap:wrap}.workspace-bar label{display:grid;gap:4px;font-size:13px;font-weight:700}.workspace-bar .property-picker{flex:1;min-width:220px}.workspace-bar select{height:46px;border:1px solid #a3bab4;border-radius:6px;background:white;padding:8px 32px 8px 12px;min-width:112px;color:#23433f}.save-state{font-size:13px;color:#436c60;margin-left:auto;align-self:center}.save-state.error{color:#9b3829}.sheet-paper{border:1px solid #b9cbc6;border-top:0;padding:26px 32px;background:white;box-shadow:0 7px 24px #183d3210}.sheet-heading{display:flex;justify-content:space-between;align-items:center;padding-bottom:20px}.sheet-heading h2{margin:0;color:#287d78;font-size:27px;letter-spacing:.7px}.sheet-heading p{margin:2px 0 0;color:#60756f;font-size:14px}.year-badge{font-size:28px;font-weight:700;color:#287d78;border-left:2px solid #b9d8d3;padding-left:22px}.section-title{margin:20px 0 0;background:#287d78;color:white;font-size:14px;font-weight:700;padding:8px 12px;letter-spacing:.6px;display:flex;align-items:center;gap:10px}.section-title .section-num{font-size:11px;border:1px solid #ffffff75;border-radius:3px;padding:1px 4px;line-height:1.4}.section-title.expenses{background:#406b85}.property-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-left:1px solid var(--line);border-top:0}.property-grid>label{display:grid;gap:4px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:9px 12px;color:#4f6861;font-size:12px;font-weight:700}.property-grid .wide{grid-column:span 2}.property-grid input{width:100%;height:34px;border:0;border-bottom:1px solid #dce7e3;padding:4px 2px;border-radius:0;background:#fbfdfc;color:#203e37;font-size:16px;font-weight:400}.subsidy-option{padding:12px;border:1px solid var(--line);border-top:0;background:#f6faf8;display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:14px}.subsidy-option label{display:flex;align-items:center;gap:10px;font-weight:700;cursor:pointer}.subsidy-option input[type=checkbox]{height:20px;width:20px;accent-color:#287d78}.subsidy-option>span{font-size:12px;color:#60756f}.program-settings{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:12px;border:1px solid var(--line);border-top:0;background:#f3f8fb}.program-settings label{font-size:13px;display:grid;gap:5px}.program-settings input{width:100%;height:40px;border:1px solid var(--line);padding:8px}.table-helper{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;font-size:12px;color:#59716a}.sheet-page .small-button{font-size:12px;padding:6px 9px;min-height:34px}.ledger-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px}.ledger-table th,.ledger-table td{border:1px solid var(--line);padding:4px 8px;text-align:right;vertical-align:middle}.ledger-table th{font-size:12px;background:#e9f3f1;color:#315b52;padding:9px 7px;font-weight:700}.ledger-table .month-cell{width:82px;text-align:left;font-weight:700;background:#f7faf9}.ledger-table .detail-cell{width:98px;text-align:center}.ledger-table tbody tr:nth-child(even):not(.detail-row)>td{background:#fbfdfc}.ledger-table input{width:100%;height:40px;background:transparent;border:1px solid transparent;border-bottom-color:#d8e5e0;border-radius:3px;padding:5px 4px;text-align:right;font-size:16px;color:#1f4038;font-variant-numeric:tabular-nums}.ledger-table input:hover{background:white;border-color:#b6ccc5}.ledger-table input:focus{background:#fffce7}.ledger-table input::placeholder{color:#8ba099}.ledger-table input:invalid{outline:2px solid #b94628}.ledger-table output{font-variant-numeric:tabular-nums;font-weight:700;overflow-wrap:anywhere}.ledger-table tfoot th,.ledger-table tfoot td{background:#dfefeb;font-weight:700;height:42px;font-size:14px}.ledger-table .balance{font-size:14px;color:#9b5327;line-height:1.3}.ledger-table .balance small{display:block;font-size:10px;font-weight:400;color:#63766f;margin:2px 0}.ledger-table .balance.is-credit{color:#28716c}.sheet-page .details-button{font-size:11px;min-height:34px;padding:4px 6px;border-color:#c1d5cf;background:#f4f9f7;line-height:1.2}.sheet-page .aggregate{width:100%;padding:4px 3px;font-size:14px;min-height:40px}.aggregate small{display:block;font-size:10px;color:#63766f}.detail-row>td{padding:16px;text-align:left;background:#f1f7f5!important}.detail-panel h4{margin:0 0 10px;font-size:15px}.detail-panel p{font-size:12px;color:#63766f;margin:8px 0}.payment-item{display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1.4fr auto;gap:8px;padding:10px 0;border-bottom:1px solid #cfddd8;align-items:end}.payment-item label{font-size:11px;display:grid;gap:3px;font-weight:700;text-align:left}.payment-item input,.payment-item select,.detail-panel textarea{width:100%;font-size:14px;height:40px;min-width:0;border:1px solid #b7ccc4;background:#fff;text-align:left;padding:7px;border-radius:4px}.payment-item input[type=date]{appearance:none;-webkit-appearance:none;display:block;inline-size:100%;max-inline-size:100%}.payment-item input::-webkit-date-and-time-value{text-align:left;min-width:0}.detail-panel textarea{height:65px;resize:vertical}.detail-panel .add-payment{margin:10px 0}.detail-actions{display:flex;justify-content:space-between;align-items:center;gap:8px}.opening{margin:10px 0;border:1px solid #d4e2dc;border-radius:5px;font-size:12px}.opening summary{cursor:pointer;padding:9px 12px;color:#536e65}.opening .opening-fields{display:flex;gap:16px;padding:10px;flex-wrap:wrap}.opening label{display:grid;gap:4px}.opening input{width:150px;border:1px solid #b9ccc4;padding:8px;font-size:16px}.expense-table th{background:#eaf1f6;color:#3c6074}.expense-table tfoot th,.expense-table tfoot td{background:#dfeaf2}.expense-table input{font-size:15px}.annual-totals{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);margin:20px 0 0}.annual-totals>div{padding:13px 16px;border-right:1px solid var(--line);background:#f6faf8;min-width:0}.annual-totals>div:last-child{border:0;background:#e6f1ed}.annual-totals span{font-size:12px;display:block;color:#536e65}.annual-totals strong{font-size:22px;display:block;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.annual-caption{font-size:11px;color:#657a72;margin:6px 0}.notes{width:100%;border:1px solid var(--line);border-top:0;min-height:90px;padding:12px;resize:vertical;font-size:16px}.paper-footer{font-size:11px;color:#6a8078;display:flex;justify-content:space-between;gap:14px;margin-top:14px}.paper-footer a{color:inherit}.export-bar{padding:20px;display:flex;justify-content:space-between;gap:16px;align-items:center;border:1px solid var(--line);border-top:0;border-radius:0 0 10px 10px;background:#f3f7f5;flex-wrap:wrap}.export-actions{display:flex;gap:8px;flex-wrap:wrap}.export-options{display:flex;gap:8px;font-size:13px;align-items:center;flex-wrap:wrap}.export-options label{display:flex;gap:6px;align-items:center}.export-options select{padding:7px;border:1px solid #baccc5;background:white;border-radius:5px}.save-panel{padding:24px;border:1px solid var(--line);background:white;border-radius:10px;display:grid;grid-template-columns:1fr auto;gap:16px;margin-top:24px}.save-panel h2{font-size:18px;margin:0 0 6px}.save-panel p{font-size:14px;color:#58716a;margin:0;max-width:700px}.save-buttons{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.save-panel .save-hint{grid-column:1/-1;font-size:12px}.help-details{font-size:14px;border-bottom:1px solid var(--line);padding:18px 0;color:#536c64}.help-details summary{cursor:pointer;font-weight:700}.help-details p{max-width:900px}#notice{position:sticky;top:8px;z-index:20;border:1px solid #e3c373;border-radius:6px;padding:12px 16px;background:#fff6d8;color:#674820;margin-bottom:16px;font-size:14px}#notice[hidden]{display:none}#pdf-dialog{width:min(1000px,95vw);height:92vh;max-width:95vw;padding:0;border:1px solid #aec8bf;border-radius:10px;color:#23433f;font-family:Arial,sans-serif}#pdf-dialog::backdrop{background:#173f37a6}.preview-bar{display:flex;align-items:center;justify-content:space-between;background:#edf5f1;padding:12px 18px}.preview-bar h2{margin:0;font-size:18px}.preview-bar button{font-size:30px;background:white;border:1px solid #afc8be;border-radius:6px;width:44px;height:44px;cursor:pointer}#pdf-dialog p{font-size:14px;margin:12px 18px}#pdf-dialog a{color:#236c5d;font-weight:bold}#pdf-frame{width:100%;height:calc(100% - 125px);border:0}.sheet-page [hidden]{display:none!important}
@media(max-width:900px){.sheet-page{padding:20px}.page-heading h1{font-size:27px}.page-heading .help-link{display:none}.sheet-paper{padding:20px}.ledger-table td,.ledger-table th{padding:4px}.ledger-table .detail-cell{width:74px}.ledger-table .month-cell{width:65px}.ledger-table input{font-size:16px}.save-panel{grid-template-columns:1fr}.payment-item{grid-template-columns:repeat(3,minmax(0,1fr))}.save-state{flex-basis:100%;margin:0}.paper-footer{flex-wrap:wrap}}
@media(max-width:650px){.sheet-page{padding:18px 12px 30px}.page-heading h1{font-size:25px}.page-heading p{font-size:15px}.page-heading .eyebrow{font-size:9px;letter-spacing:1px}.workspace-bar{padding:12px;gap:8px}.workspace-bar .property-picker{min-width:0;flex-basis:100%}.workspace-bar>button{flex:1;font-size:14px;padding:8px}.workspace-bar label{flex:1}.workspace-bar select{width:100%;min-width:0}.sheet-paper{padding:16px 12px}.sheet-heading h2{font-size:21px}.year-badge{font-size:25px;padding-left:12px}.property-grid{grid-template-columns:1fr 1fr}.property-grid>label{padding:10px;font-size:13px}.property-grid input{font-size:17px;height:42px}.property-grid .address{grid-column:1/-1}.program-settings{grid-template-columns:1fr}.section-title{font-size:12px;margin-top:20px;padding:10px}.table-helper{align-items:start;font-size:13px;flex-wrap:wrap}.ledger-table,.ledger-table tbody,.ledger-table tr,.ledger-table td,.ledger-table th,.ledger-table tfoot{display:block;width:100%}.ledger-table thead{display:none}.ledger-table tbody>tr:not(.detail-row){display:grid;grid-template-columns:1fr 1fr;margin:12px 0 0;border:1px solid #b7ccc4;border-radius:6px;overflow:hidden;background:white}.ledger-table th.month-cell{width:100%;grid-column:1/-1;background:#e6f2ed;border:0;border-bottom:1px solid #b7ccc4;text-align:left;padding:10px 12px;font-size:16px}.ledger-table tbody td{border:0;padding:8px 10px;border-bottom:1px solid #e3ece7;text-align:left;min-width:0}.ledger-table td[data-label]:before{content:attr(data-label);display:block;font-size:12px;color:#506b62;font-weight:700;margin-bottom:4px}.ledger-table input{height:46px;font-size:18px;padding:8px;border:1px solid #b4cbc1;background:white;text-align:left;border-radius:4px}.ledger-table td.balance{padding-top:10px;display:flex;flex-direction:column;justify-content:center}.ledger-table td.balance output{font-size:17px}.ledger-table td.balance small{font-size:12px}.ledger-table .detail-cell{width:100%;grid-column:1/-1;padding:8px 10px}.sheet-page .details-button{width:100%;font-size:14px;height:40px}.sheet-page .aggregate{height:46px;font-size:17px}.ledger-table tfoot{margin:12px 0;border:1px solid var(--line)}.ledger-table tfoot tr{display:grid;grid-template-columns:1fr 1fr}.ledger-table tfoot th{grid-column:1/-1;text-align:left;padding:8px 12px}.ledger-table tfoot td{height:auto;padding:8px 12px;font-size:16px;border:0}.ledger-table tfoot td:before{content:attr(data-label);display:block;font-size:11px;color:#526f64}.ledger-table .detail-row{border:1px solid #bed2c7;border-top:0}.detail-row>td{padding:12px}.payment-item{grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #b7ccc4;border-radius:6px;padding:12px;margin-bottom:10px;background:#fff}.payment-item label{font-size:12px}.payment-item input,.payment-item select{font-size:16px;height:46px}.payment-item .reference{grid-column:1/-1}.payment-item>button{grid-column:1/-1}.detail-actions{flex-wrap:wrap}.detail-panel p{font-size:13px}.expense-table tbody th.month-cell{background:#e6eff6}.annual-totals{grid-template-columns:1fr}.annual-totals>div{border:0;border-bottom:1px solid var(--line);padding:12px 14px;display:flex;justify-content:space-between;gap:12px;align-items:center}.annual-totals strong{font-size:22px}.annual-totals span{font-size:13px}.export-bar{padding:14px}.export-actions,.export-options{width:100%;display:grid;grid-template-columns:1fr}.export-actions button{width:100%;min-height:48px;font-size:16px}.export-options{gap:12px}.export-options select{min-height:44px}.save-panel{padding:18px}.save-buttons{display:grid;grid-template-columns:1fr}.save-buttons button{min-height:48px}.paper-footer{font-size:11px}.opening{font-size:14px}.subsidy-option{font-size:14px}.subsidy-option label{align-items:start}.subsidy-option input[type=checkbox]{flex:0 0 22px}.subsidy-option>span{font-size:12px}.notes{font-size:17px}.detail-panel textarea{height:85px;font-size:16px}.save-state{font-size:12px}}
@media print{header,footer,.crumb,.page-heading,.workspace-bar,.export-bar,.save-panel,.help-details,#notice,.table-helper,.opening,.detail-cell,.detail-row{display:none!important}.sheet-page{max-width:none;padding:0}.sheet-paper{border:0;box-shadow:none;padding:0}.sheet-heading{padding-bottom:7px}.section-title{margin-top:10px}.ledger-table input{height:24px;font-size:10px;padding:0}.ledger-table th,.ledger-table td{font-size:9px!important;padding:2px 4px}.sheet-page button{display:none}.property-grid input{font-size:11px;height:20px}.property-grid>label{padding:4px 8px}.annual-totals strong{font-size:15px}.annual-totals>div{padding:6px}.notes{min-height:45px;font-size:11px}.paper-footer{font-size:8px}.subsidy-option{padding:5px}.program-settings{padding:5px}.program-settings input{height:22px}.sheet-heading h2{font-size:20px}.ledger-table{break-inside:avoid}.sheet-page *{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

@media(max-width:650px){.payment-item label:first-child{grid-column:1/-1}}

#print-preview{border:1px solid #9fbeb3;border-radius:5px;color:#205c4b;background:white;padding:8px 14px;font-weight:bold;min-height:40px;cursor:pointer;margin-right:8px}

#pdf-pages{padding:16px;background:#dfe7e3;min-height:300px}#pdf-pages canvas{width:100%;height:auto;display:block;background:white;box-shadow:0 2px 10px #183d3220;margin:0 auto 16px}#pdf-dialog{overflow:auto}#pdf-dialog .preview-bar{position:sticky;top:0;z-index:1}#pdf-dialog>p{line-height:1.7}

/* Property removal and recovery stay separate from the printable ledger. */
.sheet-page button.delete-property{border-color:#ceaaa4;color:#973a30;background:#fff8f6}.sheet-page button.delete-property:hover{background:#f9e9e5}.sheet-page button.deleted-properties{border-style:dashed;color:#425b4e}
.empty-properties{background:#fff;border:1px solid #c8d6cf;border-radius:14px;padding:32px;margin:24px 0}.empty-properties h2{margin:0 0 12px}.empty-actions{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}
#property-dialog{box-sizing:border-box;width:calc(100% - 32px);max-width:540px;max-height:calc(100dvh - 32px);overflow:auto;padding:0;border:1px solid #b9cac1;border-radius:16px;color:#243c32;background:#fff;font:18px/1.55 system-ui,sans-serif;box-shadow:0 18px 70px #172c3240}#property-dialog::backdrop{background:#162c34a6}#property-dialog *{box-sizing:border-box}#property-dialog .property-dialog-heading{display:flex;align-items:center;gap:12px;padding:18px 22px;border-bottom:1px solid #d9e2dc;background:#f3f7f4}#property-dialog h2{flex:1;min-width:0;font-size:23px;line-height:1.3;margin:0}#property-dialog button{font:inherit;min-height:48px;border:1px solid #aebfb4;border-radius:9px;background:white;color:#254d3d;padding:10px 18px;cursor:pointer}#property-dialog button:hover{background:#edf4ef}#property-dialog button:focus-visible{outline:3px solid #306aae;outline-offset:2px}#property-dialog .close-property{width:48px;flex:0 0 48px;padding:0;font-size:28px}#property-dialog-body{padding:8px 24px}#property-dialog p{margin:14px 0;overflow-wrap:anywhere}#property-dialog .property-to-delete{font-size:22px;font-weight:700;margin-bottom:4px}#property-dialog .property-address{color:#52655b;margin-top:0}#property-dialog-actions{display:flex;justify-content:flex-end;gap:12px;border-top:1px solid #d9e2dc;padding:18px 24px}#property-dialog .danger-button{background:#a33e32;color:white;border-color:#a33e32}#property-dialog .danger-button:hover{background:#873025}#property-dialog-error:empty{display:none}#property-dialog-error{margin:0 24px 18px;padding:12px;background:#fff0ed;color:#8c2f26;border:1px solid #e4b7af;border-radius:8px}.deleted-item{display:flex;align-items:center;gap:16px;border-top:1px solid #d9e2dc;padding:16px 0}.deleted-item>div{min-width:0;flex:1;overflow-wrap:anywhere}.deleted-item strong,.deleted-item span{display:block}.deleted-item span{font-size:16px;color:#52655b}.deleted-item button{flex-shrink:0}
@media(max-width:650px){#property-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px)}#property-dialog .property-dialog-heading{padding:14px 16px}#property-dialog-body{padding:6px 18px}#property-dialog-actions{padding:16px 18px;flex-direction:column-reverse}#property-dialog-actions button{width:100%}.empty-properties{padding:24px 18px}.empty-actions{flex-direction:column}.deleted-item{align-items:flex-start;flex-wrap:wrap}.deleted-item>div{flex-basis:100%}.deleted-item button{width:100%}}
@media print{#property-dialog,.empty-properties{display:none!important}}

/* A quiet delete action, with a full-size touch target, at the right of the toolbar. */
.workspace-bar{position:relative;padding-right:72px}.sheet-page .workspace-bar>button.delete-property{position:absolute;right:14px;top:16px;margin:0;width:44px;height:44px;min-height:44px;flex:0 0 44px;display:inline-flex;align-items:center;justify-content:center;padding:10px;border:1px solid transparent;border-radius:7px;background:transparent;color:#7b514a}.sheet-page .workspace-bar>button.delete-property:hover{background:#f7eae7;border-color:#d2b9b3;color:#913b30}.delete-property svg{display:block;flex-shrink:0}
#property-dialog .property-dialog-heading{position:sticky;top:0;z-index:2}#property-dialog-actions{position:sticky;bottom:0;background:white;z-index:2}#property-dialog .delete-summary{font-size:16px;margin:10px 0 20px}#property-dialog .delete-reasons{border:0;padding:0;margin:0 0 20px;min-width:0}#property-dialog .delete-reasons legend{font-weight:700;margin-bottom:8px;padding:0}#property-dialog .delete-reasons label{display:flex;gap:10px;align-items:center;min-height:44px;font-size:16px;cursor:pointer}#property-dialog input[type=radio],#property-dialog input[type=checkbox]{width:22px;height:22px;flex:0 0 22px;margin:0;accent-color:#287d78}#property-dialog .delete-note,#property-dialog .delete-match{display:grid;gap:8px;font-weight:650;font-size:16px}#property-dialog .delete-note{margin-bottom:20px}#property-dialog [hidden]{display:none!important}#property-dialog textarea,#property-dialog input[type=text]{font:18px/1.45 system-ui,sans-serif;border:1px solid #a4bab1;border-radius:8px;padding:11px 12px;width:100%;min-width:0;background:white;color:#243c32}#property-dialog textarea{resize:vertical;min-height:76px}#property-dialog .confirmation-target{padding:10px 12px;border:1px solid #c6d9d0;border-radius:8px;background:#f2f7f4;font-weight:600;overflow-wrap:anywhere}#delete-address{margin-top:10px}#property-dialog input[type=text]:focus-visible,#property-dialog textarea:focus-visible,#property-dialog input:focus-visible{outline:3px solid #306aae;outline-offset:2px}#property-dialog .delete-match-status{font-size:14px;color:#78572a;margin:8px 0 18px}#property-dialog .delete-match-status.matched{color:#24644a}#property-dialog .delete-acknowledge{display:flex;gap:12px;align-items:flex-start;cursor:pointer;font-size:16px;padding:12px;border:1px solid #c6d9d0;border-radius:8px;background:#f6f9f7}#property-dialog .delete-acknowledge input{margin-top:2px}#property-dialog .delete-local-note{font-size:13px;color:#5c7066;margin:12px 0 18px}#property-dialog button:disabled{background:#e4e9e6;color:#67756e;border-color:#d1dad5;cursor:not-allowed}#property-dialog .deleted-reason{margin:4px 0;font-size:14px}
#property-dialog[open]{display:flex;flex-direction:column;overflow:hidden}#property-dialog .property-dialog-heading,#property-dialog-actions{position:static;flex:0 0 auto}#property-dialog-body{flex:1 1 auto;min-height:0;overflow:auto;scroll-padding:12px}#property-dialog-error{flex:0 0 auto}
@media(max-width:650px){.workspace-bar{padding-right:12px;padding-top:12px}.workspace-bar .property-picker{padding-right:52px}.sheet-page .workspace-bar>button.delete-property{top:31px;right:12px}.workspace-bar .save-state{flex-basis:100%;margin-left:0}#property-dialog .property-dialog-heading{padding:12px 16px}#property-dialog-actions{padding:12px 18px;gap:8px}#property-dialog h2{font-size:21px}}

/* Property creation stays on a separate lower row; save status belongs with backups. */
.workspace-bar{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;padding:16px 72px 14px 16px;gap:12px;align-items:end}.workspace-bar .property-picker{min-width:0}.workspace-bar .property-picker select{width:100%}.property-actions{grid-column:1/-1;display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid #d3e0d9;padding-top:12px;margin-top:2px}.property-actions .deleted-properties{margin-left:0}.save-panel .save-state{display:block;font-size:14px;font-weight:600;margin:8px 0 10px;color:#30634c}.save-panel .save-state.error{color:#9b3829}.sheet-page .property-actions button{min-height:44px}
@media(max-width:650px){.workspace-bar{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:12px;gap:10px}.workspace-bar .property-picker{grid-column:1/-1;padding-right:52px}.workspace-bar .year-picker{min-width:0}.workspace-bar>[data-action="add-year"]{width:100%;min-height:46px}.property-actions{display:grid;grid-template-columns:1fr;gap:8px}.property-actions button{width:100%;font-size:16px}.property-actions .deleted-properties{margin-left:0}.save-panel .save-state{font-size:14px}}

#property-dialog .deleted-item{display:block;padding:18px 0}#property-dialog .deleted-item-actions{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}#property-dialog .deleted-item-actions button{font-size:16px;min-height:46px}#property-dialog .permanent-delete-link{border-color:#dbc2bb;background:#fff9f7;color:#943c30}#property-dialog .permanent-delete-link:hover{background:#f9eae5;border-color:#b36a5b}#property-dialog .permanent-warning{border:1px solid #dbafa3;border-left:4px solid #a33e32;background:#fff3ee;border-radius:8px;padding:14px 16px;margin:16px 0 22px;color:#763126;font-size:16px}#property-dialog .permanent-warning p{margin:8px 0 0}#purge-address{margin-top:10px}#property-dialog .deleted-result{padding:12px;border:1px solid #b7d5c6;border-radius:8px;background:#eef7f1;font-size:16px}
@media(max-width:650px){#property-dialog .deleted-item-actions{display:grid;grid-template-columns:1fr}#property-dialog .deleted-item-actions button{width:100%}}

#property-dialog .purge-choice{display:flex;gap:12px;align-items:flex-start;cursor:pointer;padding:6px 0;min-height:44px}#property-dialog .purge-choice input{margin-top:4px}#property-dialog .purge-choice .deleted-info{min-width:0;flex:1;overflow-wrap:anywhere}#property-dialog .purge-choice strong,#property-dialog .purge-choice span span{display:block}#property-dialog .permanent-inline-warning{font-size:15px;line-height:1.55;padding:12px 14px;background:#fff5ef;border:1px solid #e0bbae;border-radius:8px;color:#7b3b2c}#property-dialog .purge-selected{border-left:3px solid #b45f4b;padding-left:12px}#property-dialog .permanent-delete-link:enabled{color:#963829;border-color:#bf806d;background:#fff4ef}#property-dialog .permanent-delete-link:disabled{background:#f0f2f1;color:#77837c;border-color:#d8dfda;cursor:not-allowed}

.program-settings{grid-template-columns:repeat(3,minmax(0,1fr))}.program-settings>label:first-child{grid-column:1/-1}.program-settings small{font-size:13px;color:#526b62}.rent-split-warning{grid-column:1/-1;margin:0;padding:12px;border:1px solid #dcba6a;background:#fff4d6;border-radius:7px;font-size:15px}.program-settings input{font-size:17px;min-height:46px}@media(max-width:650px){.program-settings{grid-template-columns:1fr}.program-settings input{font-size:18px}}

.program-settings .rent-split-warning{color:#a12622;background:#fff1ef;border:2px solid #bd4035;font-size:16px;font-weight:600;line-height:1.55}

.month-view-controls{display:flex;align-items:center;gap:14px;flex-wrap:wrap;border:1px solid #c6d7d4;border-top:0;background:#f5f9f7;padding:14px 16px}.month-view-controls label{display:grid;gap:4px;font-size:14px;font-weight:650}.month-view-controls select{min-height:44px;border:1px solid #adc5bb;background:#fff;padding:8px 32px 8px 12px;border-radius:6px;font-size:16px}.month-view-controls p{flex-basis:100%;margin:0;font-size:13px;color:#536d62}.program-settings{background:#f3f8f7;gap:16px;padding:18px}.program-settings label{font-size:14px;font-weight:650}.program-settings input{min-height:50px;border-radius:8px;font-size:19px;padding:10px 12px}.program-settings>label:not(:first-child){padding:14px;border:1px solid #c3d8ce;background:#fff;border-radius:10px}.program-settings>label:nth-child(2){grid-column:1 / 2}.program-settings>label:nth-child(3){grid-column:2 / 4}.program-settings small{font-weight:400;line-height:1.5}.sheet-page .ledger-table tr[hidden]{display:none!important}@media(max-width:650px){.program-settings>label:nth-child(2),.program-settings>label:nth-child(3){grid-column:1/-1}.month-view-controls{align-items:stretch}.month-view-controls label,.month-view-controls button{width:100%}}@media print{.month-view-controls{display:none!important}}

.fee-fields{padding:14px;border:1px solid #d6c6a8;background:#fffbf3;border-radius:8px;margin-bottom:16px;display:grid;grid-template-columns:1fr 2fr;gap:12px}.fee-fields label{display:grid;gap:6px;font-size:14px;font-weight:600}.fee-fields p{grid-column:1/-1}.fee-fields input{background:#fff;border:1px solid #b7ccc4;text-align:left}small[data-receipt-note]{display:block;font-size:12px!important;line-height:1.4!important;color:#725527!important;margin-top:6px!important}@media(max-width:650px){.fee-fields{grid-template-columns:1fr}.fee-fields label{font-size:15px}.fee-fields input{height:46px;font-size:18px}}

.payment-help{font-size:15px!important;line-height:1.6;background:#fff;padding:14px;border:1px solid #c7dcd2;border-radius:8px}.payment-item{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px;border:1px solid #c1d6cd;border-radius:9px;margin:12px 0;background:white}.payment-item h5{grid-column:1/-1;font-size:16px;margin:0;color:#285746}.payment-item label{font-size:13px}.payment-item input,.payment-item select{min-height:46px;font-size:16px}.optional-payment-notes{border:1px solid #d4dfd8;border-radius:8px;margin:16px 0}.optional-payment-notes summary{padding:12px;cursor:pointer;font-size:14px;font-weight:650}.optional-payment-notes .fee-fields{margin:0;border:0;border-top:1px solid #dfd6c4;border-radius:0 0 8px 8px}.payment-save-actions{display:flex;gap:10px;flex-wrap:wrap;border-top:1px solid #c3d8ce;padding-top:16px;margin-top:16px}.payment-save-feedback{color:#a12e24!important;font-size:15px!important}.payment-save-feedback:empty{display:none}.payment-autosave-hint{font-size:13px!important}.expense-reference{display:grid;gap:6px;font-size:14px}.year-rent-summary{font-size:13px;color:#4d685f;margin:22px 0 8px;border-top:1px solid #cadbd2;padding-top:14px}.year-rent-summary output{font-weight:700}@media(max-width:650px){.payment-item{grid-template-columns:1fr}.payment-item label{font-size:14px}.payment-item .reference,.payment-item>button{grid-column:1}.payment-save-actions{display:grid;grid-template-columns:1fr}.payment-save-actions button{width:100%;min-height:48px}.detail-panel .add-payment{width:100%;font-size:15px}.year-rent-summary{font-size:14px}}

.vacant-toggle{display:flex;align-items:center;gap:3px;font-size:10px;font-weight:500;margin-top:5px;cursor:pointer}.vacant-toggle input{appearance:auto!important;width:15px!important;height:15px!important;min-height:15px!important;padding:0!important;accent-color:#287d78;flex:0 0 15px}.simple-notes textarea{width:100%;min-height:140px;font-size:17px;padding:12px;background:white}.pay-more,.more-buttons button{font-size:11px!important;padding:5px 7px!important;min-height:34px!important;margin-top:7px}.more-buttons{display:grid;gap:4px}.add-received>label{display:grid;gap:8px;font-size:16px;font-weight:600;max-width:380px}.add-received input{width:100%;min-height:48px;font-size:19px;text-align:left;background:white;border:1px solid #b4cbc0;padding:10px;border-radius:7px}.more-feedback,.notes-feedback{color:#a12d25!important;font-size:15px!important}.more-feedback:empty,.notes-feedback:empty{display:none}.sheet-page input[disabled]{opacity:1;color:#697a72;background:#edf1ee}@media(max-width:650px){.vacant-toggle{font-size:14px;margin-top:0}.vacant-toggle input{width:20px!important;height:20px!important;flex-basis:20px!important}.ledger-table th.month-cell{display:flex;align-items:center;justify-content:space-between}.pay-more,.more-buttons button{font-size:14px!important;min-height:40px!important}.add-received>label{max-width:none}.simple-notes textarea{min-height:160px}}

/* Clear monthly payment status */
.paid-in-full{color:#17633c;font-weight:750;}
[data-more-month][hidden]{display:none!important;}

/* Keep column meaning visible down the annual sheet. Mobile cards retain labels per field. */
@media screen and (min-width:651px){
 .ledger-table thead th{position:sticky;top:0;z-index:12;background:#e9f3f1;box-shadow:inset 0 1px #c6d7d4,inset 0 -1px #9ebcb3,0 3px 5px #23433f12;}
 .expense-table thead th{background:#eaf1f6;}
 .ledger-table input,.ledger-table button,.ledger-table textarea{scroll-margin-top:110px;}
 #notice{position:static;}
}

.year-history-hint{margin:0;padding:12px 16px;background:#f5f9f7;border:1px solid #c6d7d4;border-top:0;font-size:14px;line-height:1.5;color:#49665b;}
.property-grid .move-in-field small{font-size:12px;font-weight:400;line-height:1.4;color:#536d62;}
.property-grid input[type=date]{appearance:none;-webkit-appearance:none;display:block;box-sizing:border-box;inline-size:100%;max-inline-size:100%;min-width:0;min-height:42px;}
.property-grid input[type=date]::-webkit-date-and-time-value{text-align:left;min-width:0;}
@media(max-width:650px){.tenant-field,.move-in-field{grid-column:1/-1}.property-grid .move-in-field small{font-size:14px}.property-grid input[type=date]{font-size:17px;min-height:46px;}.year-history-hint{font-size:14px;}}
@media print{.year-history-hint{display:none}}

.expense-intro{font-size:15px;line-height:1.6;color:#4b655b}.flexible-expenses .expense-total-column{width:145px}.flexible-expenses .expense-list-cell{text-align:left;padding:12px}.expense-list-cell span{display:block;font-size:14px;line-height:1.6;margin-bottom:8px;overflow-wrap:anywhere}.expense-list-cell span:empty{display:none}.expense-list-cell button{font-size:14px;min-height:44px;padding:8px 12px}.expense-detail-row>td{text-align:left;padding:18px;background:#f1f7f5!important}.month-expense-editor h4{margin:0 0 8px;font-size:18px}.month-expense-editor p{font-size:14px;line-height:1.6}.month-expense-line{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;gap:12px;align-items:end;padding:12px 0;border-bottom:1px solid #d1e0d8}.month-expense-line label{display:grid;gap:6px;font-size:14px;font-weight:600}.month-expense-line input,.year-end-fields input{width:100%;font-size:17px;min-height:48px;border:1px solid #aac4b7;background:white;border-radius:7px;padding:10px;text-align:left}.month-expense-line button{min-height:48px;font-size:13px}.expense-editor-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.removed-expenses{margin-top:18px;font-size:14px}.removed-expenses summary{cursor:pointer;min-height:44px}.removed-expenses>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px;border-top:1px solid #cadbd1}.expense-feedback:empty{display:none}.expense-feedback{color:#963b24}.year-end-expenses{border:1px solid #bbcec5;border-radius:9px;background:#f5faf7;margin:18px 0;padding:0 16px 14px}.year-end-expenses:not([open]){padding-bottom:0}.year-end-expenses summary{cursor:pointer;font-size:16px;font-weight:700;padding:14px 0;min-height:48px;color:#285745}.year-end-expenses p{font-size:14px;line-height:1.6;color:#526a60}.year-end-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.year-end-fields label{display:grid;gap:8px;font-size:15px}
@media(max-width:650px){.flexible-expenses .expense-list-cell,.flexible-expenses td.balance{grid-column:1/-1}.flexible-expenses tbody>tr.expense-detail-row{display:block;border-radius:0;margin-top:0}.flexible-expenses .expense-detail-row>td{display:block;width:100%;padding:14px}.month-expense-line,.year-end-fields{grid-template-columns:1fr}.month-expense-line label{font-size:15px}.month-expense-line input,.year-end-fields input{font-size:18px}.expense-editor-actions{display:grid;grid-template-columns:1fr}.expense-editor-actions button{min-height:48px}.year-end-expenses{padding-left:12px;padding-right:12px}.flexible-expenses .expense-list-cell button{width:100%}.removed-expenses>div{flex-wrap:wrap}}
.flexible-expenses thead th:nth-child(2){text-align:left}
@media print{.expense-detail-row{display:none!important}.year-end-expenses{break-inside:avoid}}

.month-expense-line .expense-line-note{grid-column:1/-1;font-weight:500}.expense-line-note textarea{width:100%;min-width:0;box-sizing:border-box;min-height:76px;resize:vertical;font-family:inherit;font-size:16px;line-height:1.5;text-align:left;padding:10px 12px;border:1px solid #aac4b7;border-radius:7px;background:#fff;color:#243f36}.expense-line-note textarea:focus{outline:2px solid #a98135;outline-offset:2px}.expense-line-note textarea::placeholder{color:#677970;font-size:14px}

.account-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;margin:18px 0 24px;border:1px solid #adc5b9;border-radius:12px;background:#edf5f0;color:#214c3d}.account-bar strong,.account-bar span,.account-bar small{display:block}.account-bar span{font-size:16px;margin-top:4px}.account-bar small{font-size:14px;margin-top:5px}.account-actions{display:flex;gap:10px;flex-wrap:wrap}.account-bar button,#account-dialog button{min-height:46px;border:1px solid #abc2b4;border-radius:8px;padding:10px 18px;background:#fff;color:#214c3d;font-family:inherit;font-weight:600;font-size:16px;cursor:pointer}.account-bar .primary,#account-dialog .primary{background:#214c3d;color:#fff}.account-bar .error,#account-error{color:#a12828}#account-dialog{width:min(460px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:90dvh;box-sizing:border-box;border:1px solid #abc2b4;border-radius:14px;padding:24px;color:#203c32}#account-dialog::backdrop{background:#14251dcc}.account-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.account-dialog-heading h2{font-size:25px;margin:0 0 18px}#close-account{font-size:26px!important;padding:2px 14px!important}#account-form>label:not([hidden]){display:block;margin:12px 0;font-weight:600}#account-form input:not([type=checkbox]){display:block;box-sizing:border-box;width:100%;min-width:0;min-height:50px;padding:12px;font-size:18px;border:1px solid #aac4b7;border-radius:7px;margin-top:6px}#account-form .account-check:not([hidden]){display:flex;align-items:center;gap:10px;font-size:15px;font-weight:400}#account-form input[type=checkbox]{width:22px;height:22px;flex-shrink:0}.account-beta{font-size:14px;line-height:1.5;color:#5c625c;padding-top:12px;border-top:1px solid #dae3dd}#account-submit{width:100%;margin-top:10px}#account-form [hidden]{display:none!important}#account-form input:focus-visible{outline:3px solid #a98135;outline-offset:2px}#account-form small{font-size:14px}button:disabled{opacity:.6;cursor:wait}@media(max-width:600px){.account-bar{display:block;padding:16px}.account-actions{margin-top:14px;display:grid;grid-template-columns:1fr 1fr}.account-actions button{padding:10px 8px;font-size:16px}#account-dialog{padding:18px}}

/* Keep the selected year visible beside every month, even far down the sheet. */
.month-stamp{display:inline-flex;flex-direction:column;gap:2px;line-height:1.3;white-space:nowrap}.month-stamp .month-long{display:none}.month-stamp .month-year{font-size:13px;font-weight:600;color:inherit}
@media(max-width:650px){.month-stamp{flex-direction:row;gap:6px;align-items:baseline}.month-stamp .month-short{display:none}.month-stamp .month-long{display:inline}.month-stamp .month-year{font-size:inherit}}

.annual-notes-actions,.annual-notes-saved{display:flex;align-items:center;justify-content:flex-end;gap:14px;padding:12px;border:1px solid var(--line);border-top:0;background:#f3f8f6}.annual-notes-saved{justify-content:space-between}.annual-notes-saved span{font-size:16px;color:#315b4a}.annual-notes-section .notes{display:block;margin:0}
@media(max-width:650px){.annual-notes-actions button{width:100%}.annual-notes-saved{flex-wrap:wrap}.annual-notes-saved button{width:100%}}
@media print{.annual-notes-actions,.annual-notes-saved{display:none!important}.annual-notes-editor[hidden]{display:block!important}}

/* Clear month labels, explicit payment states and the optional handwriting download. */
.ledger-table .month-cell{width:126px}.month-stamp{display:inline;white-space:nowrap;font-size:12px;font-weight:700;line-height:1.5}.current-month-tag{display:block;font-size:10px;line-height:1.4;margin:3px 0;color:#685016;font-weight:700}.ledger-table tbody .current-month>.month-cell{background:#fff0bc;border-left:4px solid #9c761c}.ledger-table tbody .current-month>td{background:#fffdf4!important}.payment-state{display:block;line-height:1.4;margin:3px 0;font-weight:600}.payment-state.paid{color:#197448}.payment-state.due{color:#a44824}.payment-state.credit{color:#236d86}.payment-state.neutral{color:#5d716a}.blank-form-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;padding:14px 16px;margin-bottom:20px;background:#fff;border:1px solid #c6d7d4;border-radius:8px}.blank-form-toolbar strong{font-size:15px}.blank-form-toolbar label{font-size:13px;display:flex;align-items:center;gap:8px}.blank-form-toolbar select{min-height:44px;border:1px solid #a3bab4;border-radius:6px;padding:7px;background:#fff}.blank-form-toolbar button{font-size:14px}.ledger-table .balance .payment-state{font-size:13px;overflow-wrap:normal}
@media(max-width:650px){.ledger-table .month-cell{width:100%}.month-stamp{font-size:17px}.current-month-tag{display:inline-block;margin:0 0 0 10px;font-size:12px}.blank-form-toolbar{display:grid;grid-template-columns:1fr;padding:14px}.blank-form-toolbar label{display:grid;font-size:15px}.blank-form-toolbar button{width:100%;font-size:16px}.ledger-table .balance .payment-state{font-size:16px}}
@media print{.current-month>.month-cell{border-left:4px solid #333!important}.current-month-tag{color:#222}}

/* Keep month, vacancy and field labels readable on narrow phones. */
@media(max-width:650px){.ledger-table th.month-cell{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;align-items:center}.month-stamp{grid-column:1;grid-row:1}.current-month-tag{grid-column:1;grid-row:2;margin:0;text-align:left}.vacant-toggle{grid-column:2;grid-row:1 / span 2;min-height:44px}.ledger-table td[data-label]:before{font-size:14px;line-height:1.4}.sheet-page .details-button,.pay-more,.more-buttons button{min-height:44px!important}}
@media(max-width:380px){.ledger-table tbody>tr:not(.detail-row){grid-template-columns:1fr}.ledger-table th.month-cell{padding:10px}.ledger-table td.balance{align-items:flex-start}}

/* On phones and tablets, keep the same table as desktop inside a bounded frame. */
.ledger-pan-hint{display:none}.ledger-scroll{min-width:0;max-width:100%}
@media screen and (max-width:1100px){
 .ledger-pan-hint{display:block;margin:10px 0 8px;font-size:14px;line-height:1.5;color:#3c6256}
 .ledger-scroll{width:100%;max-height:70vh;max-height:70svh;overflow:auto;position:relative;isolation:isolate;border:1px solid #a6bfb5;border-radius:8px;background:#fff;scrollbar-width:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scroll-padding:90px 12px 12px 156px}
 .ledger-scroll:focus-visible{outline:3px solid #d3a43e;outline-offset:3px}
 .ledger-scroll .ledger-table{display:table;width:100%;min-width:900px;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:16px}
 .ledger-scroll .rent-table.with-program{min-width:1280px}
 .ledger-scroll .expense-table{min-width:780px}
 .ledger-scroll .ledger-table thead{display:table-header-group}
 .ledger-scroll .ledger-table tbody{display:table-row-group}
 .ledger-scroll .ledger-table tfoot{display:table-footer-group;margin:0;border:0}
 .ledger-scroll .ledger-table tr,.ledger-scroll .ledger-table tbody>tr:not(.detail-row){display:table-row;margin:0;border:0;border-radius:0;overflow:visible;background:#fff}
 .ledger-scroll .ledger-table th,.ledger-scroll .ledger-table td,.ledger-scroll .ledger-table .expense-detail-row>td{display:table-cell;width:auto;height:auto;min-width:0;padding:10px;border:0;border-right:1px solid #c6d7d4;border-bottom:1px solid #c6d7d4;vertical-align:middle;text-align:right}
 .ledger-scroll .ledger-table td[data-label]:before,.ledger-scroll .ledger-table tfoot td:before{display:none}
 .ledger-scroll .ledger-table thead th{position:sticky;top:0;z-index:4;padding:12px 10px;background:#e9f3f1;font-size:15px;line-height:1.4;text-align:left;box-shadow:0 2px 0 #a6bfb5}
 .ledger-scroll .expense-table thead th{background:#eaf1f6}
 .ledger-scroll .ledger-table th.month-cell,.ledger-scroll .ledger-table tfoot th{position:sticky;left:0;z-index:3;width:144px;min-width:144px;max-width:144px;text-align:left;background:#eaf3ef;box-shadow:2px 0 0 #a6bfb5}
 .ledger-scroll .ledger-table thead th.month-cell{z-index:6;top:0;background:#dcece5}
 .ledger-scroll .expense-table th.month-cell{background:#e6eff6}
 .ledger-scroll .ledger-table .current-month>th.month-cell{background:#fff0bc;border-left:4px solid #9c761c}
 .ledger-scroll .month-stamp{display:block;font-size:14px;line-height:1.5;white-space:nowrap}
 .ledger-scroll .current-month-tag{display:block;font-size:12px;margin:4px 0 0;text-align:left}
 .ledger-scroll .vacant-toggle{display:flex;min-height:36px;margin:5px 0 0;gap:7px;font-size:14px}
 .ledger-scroll .vacant-toggle input{width:22px!important;height:22px!important;min-height:22px!important;flex-basis:22px!important}
 .ledger-scroll .ledger-table input{height:48px;min-height:48px;font-size:18px;padding:8px;background:#fff;text-align:right;border:1px solid #aec7bb;border-radius:5px;scroll-margin:92px 12px 16px 156px}
 .ledger-scroll .ledger-table input:focus{background:#fffce7}
 .ledger-scroll .ledger-table output{font-size:16px}
 .ledger-scroll .ledger-table td.balance{display:table-cell;text-align:left;line-height:1.45}
 .ledger-scroll .ledger-table .balance .payment-state{font-size:16px}
 .ledger-scroll .ledger-table .detail-cell{width:120px;text-align:center}
 .ledger-scroll .ledger-table .details-button,.ledger-scroll .ledger-table .pay-more,.ledger-scroll .more-buttons button{width:100%;min-height:44px!important;font-size:14px!important;white-space:normal}
 .ledger-scroll .expense-total-column{width:150px}
 .ledger-scroll .expense-list-cell{text-align:left!important}
 .ledger-scroll .expense-list-cell span{font-size:16px}
 .ledger-scroll .expense-list-cell button{width:auto;font-size:16px}
 .ledger-scroll .detail-row>td,.ledger-scroll .expense-detail-row>td{padding:12px!important;text-align:left!important;background:#f1f7f5!important}
 .ledger-scroll .detail-panel,.ledger-scroll .month-expense-editor{position:sticky;left:12px;width:calc(100vw - 88px);max-width:560px;min-width:0;box-sizing:border-box}
 .ledger-scroll .detail-panel h4,.ledger-scroll .month-expense-editor h4{font-size:18px;line-height:1.4}
 .ledger-scroll .detail-panel textarea,.ledger-scroll .month-expense-editor textarea{font-size:17px}
 .ledger-scroll .month-expense-line{grid-template-columns:1fr}
 .ledger-scroll .month-expense-line label{font-size:15px}
 .ledger-scroll .payment-save-actions,.ledger-scroll .expense-editor-actions{display:grid;grid-template-columns:1fr}
 .ledger-scroll .payment-save-actions button,.ledger-scroll .expense-editor-actions button{width:100%;min-height:46px;font-size:16px}
 .ledger-scroll .ledger-table button{scroll-margin:92px 12px 16px 156px}
 #notice{position:static}
}
@media print{.ledger-pan-hint{display:none}.ledger-scroll{overflow:visible;max-height:none;border:0}.ledger-scroll th{position:static!important}}

/* Simple starting point, readable controls, and one place for year settings. */
.page-heading{margin-bottom:14px;gap:14px}.page-heading h1{font-size:30px;margin:0 0 8px}.page-heading p{font-size:16px;line-height:1.5}.crumb{margin-bottom:14px}
.blank-form-options{margin:0 0 14px;background:#fff;border:1px solid #b7cac1;border-radius:8px}.blank-form-options>summary{padding:12px 16px;min-height:48px;font-size:16px;font-weight:600;color:#28594a}.blank-form-options .blank-form-toolbar{margin:0;border:0;border-top:1px solid #d4e1da;border-radius:0;padding:14px}
.workspace-bar{grid-template-columns:minmax(0,1fr);padding-top:12px;padding-bottom:12px;gap:8px}.workspace-bar label{font-size:15px}.property-actions{margin:0;padding-top:8px}.property-actions button{font-size:15px}.sheet-heading{padding-bottom:6px}.sheet-heading h2{font-size:24px}.sheet-heading p{font-size:15px}
.sheet-page .property-grid>label,.sheet-page .program-settings label{font-size:15px;line-height:1.5}.sheet-page .property-grid input{height:46px;font-size:18px;padding:8px;border:1px solid #b4c9bf;border-radius:6px;background:white}.sheet-page .property-grid input[type=date]{width:100%;min-width:0;max-width:100%;appearance:none;-webkit-appearance:none}.sheet-page .property-grid input::-webkit-date-and-time-value{min-width:0;text-align:left}
.sheet-page .subsidy-option{font-size:16px}.subsidy-option>span{font-size:14px}.section-title{font-size:15px;letter-spacing:.2px}.ledger-table thead th{font-size:14px}.ledger-table .balance .payment-state{font-size:15px}.sheet-page .details-button{font-size:14px;min-height:44px}.sheet-page .ledger-table .month-stamp{font-size:14px}.vacant-toggle{min-height:44px!important}
.year-settings{margin-top:16px;border:1px solid #bbcdc3;border-radius:8px;background:#f5f9f6}.year-settings>summary{padding:12px 14px;min-height:48px;font-size:16px;font-weight:700;line-height:1.5}.year-settings>summary span{font-weight:400;color:#405e51;margin-left:10px}.year-settings-fields{display:flex;align-items:end;flex-wrap:wrap;gap:14px;padding:14px}.year-settings-fields label{display:grid;font-size:16px;gap:6px}.year-settings-fields select,.year-settings-fields input{min-height:46px;padding:8px 12px;font-size:17px;border:1px solid #a9beb2;background:#fff;border-radius:6px}.other-year-option summary{min-height:44px;padding:10px;font-size:16px}.year-settings .year-history-hint{margin:0;padding:8px 14px;font-size:14px}.year-settings .month-view-controls{border:0;background:transparent}.year-settings .month-view-controls label{font-size:16px}.year-settings .month-view-controls p{font-size:14px}
.ledger-shortcuts{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.ledger-shortcuts a{display:flex;align-items:center;justify-content:center;flex:1;padding:10px 12px;min-height:46px;font-size:16px;font-weight:700;border:1px solid #aac4b6;background:#f0f7f3;border-radius:7px;text-decoration:none}.table-help{margin:0 0 10px;font-size:15px}.table-help summary{padding:8px 0;min-height:44px}.table-help p{margin:0 0 12px;line-height:1.6}.table-helper{font-size:16px;margin:8px 0 0;padding:8px 0}.table-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;margin:8px 0}.entry-save-feedback{font-size:14px;color:#305d49;margin-left:auto}.entry-save-feedback.error{color:#9d2b20;font-weight:700}.sheet-page .jump-month{font-size:15px;min-height:44px;padding:9px 12px}.table-tools .ledger-pan-hint{margin:0}
.sheet-page .money-field{display:flex;align-items:center;min-width:0;width:100%;max-width:100%;border:1px solid #afc6b9;border-radius:6px;background:white;overflow:hidden;min-height:46px}.sheet-page .money-prefix{flex:0 0 auto;padding-left:10px;color:#406154;font-size:17px;font-weight:600;pointer-events:none}.sheet-page .money-field>input,.sheet-page .ledger-table .money-field>input{flex:1;width:0;min-width:0;max-width:100%;border:0!important;background:transparent;height:46px;min-height:46px;font-size:18px;border-radius:0;padding:8px;text-align:right;outline:none}.sheet-page .money-field:focus-within{outline:3px solid #9b7840;outline-offset:2px;background:#fffce7}.sheet-page .money-field:has(input:disabled){background:#eef2ef}.sheet-page .money-field:has(input:invalid){outline:2px solid #b94628}.sheet-page .ledger-table output{overflow-wrap:normal}
.export-heading{flex-basis:100%}.export-heading h3{font-size:21px;margin:0 0 6px}.export-heading p{font-size:16px;line-height:1.5;margin:0;color:#426352}.export-options{font-size:16px}.export-actions button{font-size:16px}.save-panel p,.save-panel .save-hint,.annual-caption{font-size:15px;line-height:1.6}.annual-totals span{font-size:16px}.annual-totals strong{font-size:24px}.paper-footer{font-size:14px}.detail-panel p,.expense-intro{font-size:16px;line-height:1.5}
@media screen and (max-width:1100px){
 .sheet-page{padding-left:10px;padding-right:10px}.sheet-paper{padding-left:8px;padding-right:8px}.page-heading h1{font-size:25px}.page-heading p{font-size:16px}.workspace-bar{padding:12px;grid-template-columns:minmax(0,1fr)}.workspace-bar .property-picker{grid-column:1;padding-right:52px}.property-actions{grid-template-columns:1fr;gap:6px}.sheet-heading{padding-bottom:0}.sheet-heading p{display:none}.sheet-heading h2{font-size:23px}.section-title{font-size:14px;margin-top:14px}.property-grid>label{padding:10px 8px}.year-settings>summary span{display:block;margin:3px 0 0}.year-settings-fields{align-items:stretch}.year-settings-fields>*{flex:1;min-width:120px}.ledger-shortcuts{gap:6px}.ledger-shortcuts a{font-size:15px;padding:8px 6px;min-width:0}.table-tools .ledger-pan-hint{flex-basis:100%;font-size:15px}.entry-save-feedback{font-size:14px;flex:1;text-align:right}.ledger-scroll{scroll-padding-left:138px}.ledger-scroll .ledger-table th.month-cell,.ledger-scroll .ledger-table tfoot th{width:126px;min-width:126px;max-width:126px;padding-left:7px;padding-right:7px}.ledger-scroll .ledger-table .month-stamp{font-size:14px;white-space:nowrap}.ledger-scroll .current-month-tag{font-size:12px}.ledger-scroll .ledger-table{min-width:820px}.ledger-scroll .rent-table.with-program{min-width:1200px}.ledger-scroll .expense-table{min-width:700px}.ledger-scroll .ledger-table input,.ledger-scroll .ledger-table button{scroll-margin-left:138px}.ledger-scroll .detail-panel,.ledger-scroll .month-expense-editor{width:calc(100vw - 70px)}.ledger-scroll .vacant-toggle{font-size:15px;min-height:44px}.ledger-scroll .ledger-table .money-field input{font-size:18px}.ledger-scroll .ledger-table .details-button,.ledger-scroll .ledger-table .pay-more,.ledger-scroll .more-buttons button{font-size:16px!important}.export-bar{padding:16px 12px}
}
@media print{.blank-form-options,.year-settings,.ledger-shortcuts,.table-tools,.table-help,.export-heading{display:none!important}.money-field{border:0!important;outline:0!important}.money-prefix{font-size:inherit!important}}

/* Larger vacancy targets and predictable focus movement. */
html:has(.sheet-page){scroll-behavior:auto}.sheet-page .vacant-toggle{font-size:15px;gap:6px;min-height:44px}.sheet-page .vacant-toggle input[type=checkbox]{width:22px;height:22px;min-width:22px;margin:0}

.annual-notes-section{margin-top:18px;border:1px solid #becbc3;background:#f3f5f3}.annual-notes-section .section-title{margin-top:0;background:#536b60}.annual-notes-section .annual-notes-actions{padding:10px}.sheet-page .notes{font-size:17px;line-height:1.6}.expense-detail-row>td{background:#edf4f9!important}

/* Text reads left to right; editing an amount starts beside its dollar sign. */
.sheet-page input:not([data-money]),.sheet-page textarea,.ledger-scroll .ledger-table input:not([data-money]){text-align:left;direction:ltr}.sheet-page .money-field>input:focus,.sheet-page .ledger-table .money-field>input:focus{direction:ltr;text-align:left}

/* A stable pastel for each calendar month in both tables. */
#ledger-app .ledger-table tbody>tr[data-rent-row="0"],#ledger-app .ledger-table tbody>tr[data-expense-row="0"]{--month-background:#eaf2fb}
#ledger-app .ledger-table tbody>tr[data-rent-row="1"],#ledger-app .ledger-table tbody>tr[data-expense-row="1"]{--month-background:#fbeef2}
#ledger-app .ledger-table tbody>tr[data-rent-row="2"],#ledger-app .ledger-table tbody>tr[data-expense-row="2"]{--month-background:#eaf5ee}
#ledger-app .ledger-table tbody>tr[data-rent-row="3"],#ledger-app .ledger-table tbody>tr[data-expense-row="3"]{--month-background:#f1edfa}
#ledger-app .ledger-table tbody>tr[data-rent-row="4"],#ledger-app .ledger-table tbody>tr[data-expense-row="4"]{--month-background:#fcf0e5}
#ledger-app .ledger-table tbody>tr[data-rent-row="5"],#ledger-app .ledger-table tbody>tr[data-expense-row="5"]{--month-background:#e7f5f5}
#ledger-app .ledger-table tbody>tr[data-rent-row="6"],#ledger-app .ledger-table tbody>tr[data-expense-row="6"]{--month-background:#faf5df}
#ledger-app .ledger-table tbody>tr[data-rent-row="7"],#ledger-app .ledger-table tbody>tr[data-expense-row="7"]{--month-background:#eeeffb}
#ledger-app .ledger-table tbody>tr[data-rent-row="8"],#ledger-app .ledger-table tbody>tr[data-expense-row="8"]{--month-background:#f4edf5}
#ledger-app .ledger-table tbody>tr[data-rent-row="9"],#ledger-app .ledger-table tbody>tr[data-expense-row="9"]{--month-background:#edf3e4}
#ledger-app .ledger-table tbody>tr[data-rent-row="10"],#ledger-app .ledger-table tbody>tr[data-expense-row="10"]{--month-background:#f4ede7}
#ledger-app .ledger-table tbody>tr[data-rent-row="11"],#ledger-app .ledger-table tbody>tr[data-expense-row="11"]{--month-background:#e9f1f4}
#ledger-app .ledger-table tbody>tr[data-rent-row]>*,#ledger-app .ledger-table tbody>tr[data-expense-row]>*{background:var(--month-background)!important;border-top:1px solid #bac9d2}
#ledger-app .ledger-table tbody>tr.current-month>.month-cell{border-left:4px solid #916b14}
#ledger-app .ledger-table .payment-state.paid{color:#14613b}
#ledger-app .ledger-table .payment-state.due{color:#863818}
@media print{#ledger-app .ledger-table tbody>tr[data-rent-row]>*,#ledger-app .ledger-table tbody>tr[data-expense-row]>*{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

/* Keep the year explicit while giving mobile entries more room. */
.month-stamp .month-long{display:inline}.month-stamp .month-short{display:none}
@media screen and (max-width:1100px){
 .month-stamp .month-long{display:none}.month-stamp .month-short{display:inline}
 .ledger-scroll .ledger-table th.month-cell,.ledger-scroll .ledger-table tfoot th{width:104px;min-width:104px;max-width:104px}
 .ledger-scroll{scroll-padding-left:116px}.ledger-scroll .ledger-table input,.ledger-scroll .ledger-table button{scroll-margin-left:116px}
 .ledger-scroll .ledger-table .month-stamp{font-size:14px;line-height:1.5}
 .ledger-scroll .current-month-tag{white-space:normal;font-size:12px;line-height:1.35}
}

/* Notes open outside the wide table, with no horizontal scrolling. */
.month-notes-dialog{box-sizing:border-box;width:min(560px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:0;margin:auto;border:1px solid #a5bdb1;border-radius:14px;background:#fff;color:#183d32;box-shadow:0 20px 70px #19362a40;overflow:auto}
.month-notes-dialog::backdrop{background:#152d3f80}
.month-notes-heading{display:flex;align-items:flex-start;gap:12px;padding:18px 20px;background:#e5edf5;border-bottom:1px solid #becdd8}
.month-notes-heading>div{flex:1;min-width:0}.month-notes-heading h3{font-size:21px;line-height:1.4;margin:0}.month-notes-heading p{font-size:15px;line-height:1.4;margin:5px 0 0;overflow-wrap:anywhere}
.sheet-page .month-notes-dialog .notes-close{flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #9bb3c3;background:white;color:#214a3c;border-radius:7px;font-size:28px;line-height:1}
.month-notes-body{padding:18px 20px}.month-notes-body>label{display:block;margin-bottom:8px;font-size:17px;font-weight:700}
.sheet-page .month-notes-dialog textarea{display:block;box-sizing:border-box;width:100%;min-width:0;height:clamp(130px,28dvh,250px);min-height:130px;resize:vertical;border:1px solid #9db5a7;border-radius:7px;padding:12px;font-family:inherit;font-size:18px;line-height:1.55;background:#fff;text-align:left;direction:ltr}
.month-notes-dialog .notes-feedback{margin:8px 0;min-height:0;font-size:16px;line-height:1.5}.month-notes-dialog .notes-feedback:empty{display:none}
.month-notes-dialog .unsaved-note:not(:empty){padding:12px;background:#fff4d9;border:1px solid #be9853;border-radius:6px;color:#674611}.month-notes-dialog .unsaved-note button{display:inline-block;font-size:16px;min-height:44px;margin-top:6px}
.month-notes-dialog .payment-save-actions{display:flex;gap:12px;margin:18px 0 0}.sheet-page .month-notes-dialog .payment-save-actions button{min-height:48px;font-size:17px;padding:10px 18px;flex:1}
@media screen and (max-width:420px){.month-notes-heading{padding:14px;gap:8px}.month-notes-heading h3{font-size:19px}.month-notes-body{padding:14px}.month-notes-dialog .payment-save-actions{gap:8px}.sheet-page .month-notes-dialog .payment-save-actions button{padding:10px 12px}}
@media print{.month-notes-dialog{display:none!important}}

/* Compact, calm payment status on every screen size. */
#ledger-app .rent-table .balance .payment-state{font-size:13px;font-weight:400;line-height:1.4;margin:2px 0;text-align:left}
#ledger-app .rent-table .balance .payment-state.due{color:#62574d}
#ledger-app .rent-table .balance .payment-state.paid{color:#3b6650}

/* Readable quiet labels and a full month name for assistive readers. */
.month-accessible{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#ledger-app .rent-table .balance .payment-state.neutral{color:#465e54}
#ledger-app .paper-footer,#ledger-app .paper-footer a{color:#496257}
