.billing-type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr auto auto;gap:12px;margin-top:14px;align-items:stretch}
.billing-type{display:grid;grid-template-rows:subgrid;grid-row:span 3;min-width:0;padding:14px;border:1px solid var(--border,#bdc9c3);border-radius:8px}
.billing-type>.panel-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:8px;flex:1}
.billing-type>.panel-head>div{display:flex;flex-direction:column;min-width:0}.billing-type>.panel-head>div>.muted{display:block;margin-top:auto;min-height:38px;line-height:19px}
.billing-type>.panel-head>.q-btn{align-self:start}
.billing-type>.panel-head>.billing-type-controls{flex-direction:row;gap:2px;align-self:start}.billing-type-controls>span{display:inline-flex}
.billing-type .billing-rate{padding:8px 0}.billing-type .billing-version,.billing-type .billing-rate>.panel-head{flex-wrap:wrap}
.billing-type .q-item{padding-left:0;padding-right:0}.billing-type .q-item__section--avatar{min-width:32px}
.billing-type h3{font-size:16px;margin:0 0 5px}.billing-type p{margin:6px 0}
.billing-rate{padding:10px 12px}.billing-version{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--border,#bdc9c3)}
.billing-version .muted{margin-left:auto}
.billing-form{display:grid;gap:14px}.billing-filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0}.billing-filters>.q-field{min-width:220px}
.billing-initial-tariffs{display:grid;gap:12px}.billing-reading-history th,.billing-reading-history td{text-align:left}
.billing-totals{display:flex;gap:24px;flex-wrap:wrap;padding:10px 0}.billing-charge-toolbar{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;padding-bottom:8px}.billing-charge-toolbar h2{font-size:16px;line-height:1.3;margin:0;flex:none}.billing-charge-toolbar .billing-filters{flex:1 1 600px;margin:0;flex-wrap:nowrap}.billing-charge-toolbar .billing-filters>.q-field{min-width:170px;flex:1 1 190px}.billing-charge-toolbar .billing-totals{gap:14px;padding:0;white-space:nowrap}.billing-charge-toolbar>.actions{margin-left:auto;flex-wrap:nowrap}.billing-modal{width:640px;max-width:95vw}.billing-charges .q-table__middle{max-height:none!important}.billing-workspace{margin-bottom:12px}
@media(max-width:900px){.billing-charge-toolbar .billing-filters{flex-basis:100%;flex-wrap:wrap}.billing-charge-toolbar .billing-totals{white-space:normal}}@media(max-width:650px){.billing-account{gap:8px}.billing-filters>.q-field{width:100%}.billing-totals{gap:10px}.billing-version{flex-wrap:wrap}}
@media(min-width:1600px){.billing-type-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:750px){.billing-type-grid{grid-template-columns:minmax(0,1fr)}}
.billing-view-toggle .q-btn{min-height:32px;padding-inline:9px}
.table-workspace .page>.billing-workspace{flex:1 1 0;min-height:0;display:flex;flex-direction:column;overflow:hidden;margin-bottom:0}
.table-workspace .billing-workspace>.billing-matrix,.table-workspace .billing-workspace>.billing-charges,.table-workspace .billing-workspace>.billing-accounts{flex:1 1 0;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.table-workspace .billing-matrix>.q-table__container,.table-workspace .billing-charges>.q-table__container,.table-workspace .billing-accounts>.q-table__container{flex:1 1 0;min-height:140px}
.table-workspace .billing-matrix .q-table__middle,.table-workspace .billing-charges .q-table__middle,.table-workspace .billing-accounts .q-table__middle{flex:1 1 0;min-height:0;max-height:none;overflow:auto}
.billing-accounts>.panel-head{gap:10px}.billing-accounts>.panel-head>.q-field{width:min(320px,40vw);margin-left:auto}.billing-accounts>p{margin:3px 0 7px;line-height:1.3}
.billing-accounts-table .q-table{min-width:780px;table-layout:fixed}.billing-accounts-table th:nth-child(1),.billing-accounts-table td:nth-child(1){width:160px}.billing-accounts-table th:nth-child(2),.billing-accounts-table td:nth-child(2),.billing-accounts-table th:nth-child(3),.billing-accounts-table td:nth-child(3){width:145px}.billing-accounts-table th:last-child,.billing-accounts-table td:last-child{width:52px}
.billing-account-link{border:0;background:transparent;color:var(--primary,#00642e);font:inherit;font-weight:700;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.billing-account-link:focus-visible{outline:2px solid var(--primary,#00642e);outline-offset:3px;border-radius:2px}.billing-account-assignments{display:grid;gap:3px}.billing-account-assignments>span{display:block;overflow-wrap:anywhere;line-height:1.3}
.billing-account-status{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:30px;padding-top:5px;font-size:12px;flex:none}
.table-workspace .billing-matrix>.panel-head{margin-bottom:3px}
.table-workspace .billing-matrix>.panel-head p{margin:2px 0 0;line-height:1.3}
.table-workspace .billing-matrix .billing-filters{gap:8px;margin:4px 0}
.table-workspace .billing-matrix>.billing-totals{gap:18px;padding:4px 0}
.table-workspace .billing-matrix>p{margin:2px 0 4px;line-height:1.3}
.billing-matrix-table .q-table{min-width:var(--matrix-width);table-layout:fixed}
.billing-matrix-table th{white-space:normal!important;min-height:48px;background:var(--table-head-bg,var(--panel,#e2e8e4));position:sticky;top:0;z-index:2}
.billing-matrix-table th:first-child,.billing-matrix-table td:first-child{width:105px}
.billing-matrix-table th:nth-child(2),.billing-matrix-table td:nth-child(2){width:195px;text-align:left}
.billing-matrix-table th:nth-child(3),.billing-matrix-table td:nth-child(3){width:90px;text-align:right}
.billing-matrix-table th:first-child,.billing-matrix-table th:nth-child(2),.billing-matrix-table td:first-child,.billing-matrix-table td:nth-child(2){white-space:normal!important;overflow-wrap:anywhere;word-break:break-word}
.billing-matrix-table td:first-child b,.billing-matrix-table td:nth-child(2) strong{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-word;line-height:1.25}
.billing-matrix-table th:nth-last-child(-n+5),.billing-matrix-table td:nth-last-child(-n+5){width:115px}
.billing-matrix-table th:last-child,.billing-matrix-table td:last-child{width:175px}
.billing-matrix-table th.billing-matrix-actions,.billing-matrix-table td.billing-matrix-actions{width:56px;min-width:56px;max-width:56px;padding-inline:4px}
.billing-matrix-table th:first-child,.billing-matrix-table td:first-child{position:sticky;left:0;background:var(--panel,#edf2ef);z-index:1}
.billing-matrix-table th:nth-child(2),.billing-matrix-table td:nth-child(2){position:sticky;left:105px;background:var(--panel,#edf2ef);z-index:1}
.billing-matrix-table th:last-child,.billing-matrix-table td:last-child{position:sticky;right:0;background:var(--panel,#edf2ef);z-index:1;border-left:1px solid var(--border,#bdc9c3)}
.table-workspace .billing-matrix-table .q-table thead th:first-child,.table-workspace .billing-matrix-table .q-table thead th:nth-child(2),.table-workspace .billing-matrix-table .q-table thead th:last-child{z-index:8}
.billing-person-row td:first-child,.billing-person-row td:nth-child(2),.billing-person-row td:last-child{background:color-mix(in srgb,var(--primary,#00642e) 6%,var(--panel,#edf2ef))}
.billing-matrix-table td{vertical-align:top;padding:10px 8px;white-space:normal}
.billing-matrix-table td .muted{font-size:11px;line-height:1.35;margin-top:4px}
.billing-matrix-cell{display:flex;flex-direction:column;gap:4px;align-items:flex-end;width:100%;border:0;background:none;color:inherit;font:inherit;cursor:pointer;text-align:right;padding:0}
.billing-matrix-cell strong{color:var(--primary,#00642e);text-decoration:underline;text-underline-offset:3px}
.billing-matrix-cell span{font-size:11px;line-height:1.35;opacity:.8}
.billing-matrix-cell:focus-visible{outline:2px solid var(--primary,#00642e);outline-offset:4px;border-radius:2px}
.billing-person-row{background:color-mix(in srgb,var(--primary,#00642e) 6%,transparent)}
.billing-historical-owner-row{background:color-mix(in srgb,#c62828 9%,transparent)!important}
.billing-historical-owner-row td:first-child,.billing-historical-owner-row td:nth-child(2),.billing-historical-owner-row td:last-child{background:color-mix(in srgb,#c62828 9%,var(--panel,#edf2ef))!important}
.billing-matrix-owed,.billing-matrix-summary td{font-weight:700}
.billing-matrix-advance{font-weight:700;color:var(--primary,#00642e)}
.billing-matrix-summary td{background:var(--panel,#e2e8e4)}
.billing-matrix-detail{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--border,#bdc9c3)}
@media(max-width:750px){.billing-matrix-table td:first-child{position:static}.billing-matrix-table th:first-child{left:auto}.billing-matrix-table th:nth-child(2),.billing-matrix-table td:nth-child(2){left:0}}
.web-app.billing-screen.table-workspace .page:has(> .accrual-documents){overflow:hidden}
.web-app.billing-screen.table-workspace .page>.accrual-documents{flex:1 1 0;min-height:0;max-height:100%;display:flex;flex-direction:column;overflow:hidden}
.table-workspace .accrual-documents>.q-table__container{flex:1 1 0;min-height:0}
.table-workspace .accrual-documents .q-table__middle{height:100%;max-height:none;overflow:auto}
.accrual-document-table th:last-child,.accrual-document-table td:last-child{position:sticky;right:0;background:var(--panel,#edf2ef);z-index:2;border-left:1px solid var(--border,#bdc9c3);width:64px}
.accrual-document-filters{display:grid;grid-template-columns:minmax(230px,1.3fr) repeat(4,minmax(170px,1fr));gap:8px;margin:6px 0}.accrual-document-filters>.q-field{width:100%;min-width:0}.accrual-document-filters>.q-btn{justify-self:start}
.q-dialog__inner .accrual-document-dialog{width:min(1500px,calc(100vw - 40px));max-width:calc(100vw - 40px);height:min(900px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);display:flex;flex-direction:column;overflow:hidden}
.accrual-document-dialog>.q-card__section{flex:1 1 auto;min-height:0;overflow:auto}.accrual-document-lines .q-table{width:100%;min-width:0;table-layout:fixed}.accrual-document-lines th,.accrual-document-lines td{white-space:normal;overflow-wrap:anywhere}.accrual-document-lines th:nth-child(1){width:18%}.accrual-document-lines th:nth-child(2){width:38%}.accrual-document-lines th:nth-child(3),.accrual-document-lines th:nth-child(4){width:15%}.accrual-document-lines th:nth-child(5){width:14%}.accrual-document-lines .q-table__middle{overflow-x:hidden;max-height:min(46dvh,520px)}
.document-history-row{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--border,#bdc9c3)}
@media(max-width:1300px){.accrual-document-filters{grid-template-columns:repeat(3,minmax(180px,1fr))}}@media(max-width:650px){.accrual-document-filters{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){.q-dialog__inner .accrual-document-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.accrual-document-lines .q-table{min-width:680px;table-layout:auto}.accrual-document-lines .q-table__middle{overflow-x:auto}.document-history-row{align-items:flex-start;flex-direction:column;gap:4px}}
.web-app.billing-screen.table-workspace .page:has(> .receipt-journal){overflow:hidden}
.web-app.billing-screen.table-workspace .page>.receipt-journal{flex:1 1 0;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.web-app.billing-screen.table-workspace .receipt-journal>.web-table{flex:1 1 0;min-height:160px}
.q-dialog__inner .billing-payment-modal{width:min(1080px,96vw);max-width:96vw;height:min(92dvh,900px);max-height:92dvh;overflow:hidden}
.billing-payment-modal>.billing-modal-form{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.billing-payment-modal .panel-head,.billing-payment-modal .q-card__actions{flex:none}
.billing-payment-modal .billing-payment-form{flex:1 1 0;min-height:0;display:flex;flex-direction:column;gap:10px;overflow:hidden;padding-top:8px;padding-bottom:8px}
.billing-payment-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;flex:none}
.billing-payment-fields>.note{grid-column:1/-1;margin:0}
.billing-payment-distribution{flex:1 1 0;min-height:160px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--border,#bdc9c3);border-radius:6px;padding:10px}
.billing-payment-distribution>h3{margin:0 0 8px;font-size:16px}
.billing-payment-warning{margin-bottom:8px;border-left:3px solid var(--warning,#b36b00)}
.billing-payment-table{min-width:100%}.billing-payment-table table{table-layout:fixed;width:100%}
.billing-payment-table th{position:sticky;top:0;z-index:1;background:var(--panel,#edf2ef)}
.billing-payment-table th:first-child,.billing-payment-table td:first-child{width:34%}
.billing-payment-table th:last-child,.billing-payment-table td:last-child{width:28%;white-space:nowrap}.billing-payment-table td:last-child .q-field{min-width:150px}
.billing-payment-table tfoot th{position:sticky;bottom:0;background:var(--panel,#edf2ef);font-weight:700}
.billing-payment-advance-row{color:var(--primary,#00642e);font-weight:700}
.billing-payment-summary{margin:8px 0 0;text-align:right}
.billing-infinite-sentinel{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;color:var(--muted,#5f6b65)}
.billing-payer-modal{width:min(680px,94vw);max-width:94vw}
.billing-charge-actions{white-space:nowrap}.billing-charge-actions>.q-btn+.q-btn{margin-left:3px}
.q-dialog__inner .member-payment-dialog{width:680px;max-width:calc(100vw - 24px)}
.member-payment-dialog>.q-card__section{max-height:calc(100dvh - 170px);overflow:auto}
.member-payment-summary{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:14px 16px;margin-bottom:12px;border-radius:8px;background:color-mix(in srgb,var(--primary,#00642e) 8%,transparent)}
.member-payment-summary strong{font-size:25px;color:var(--primary,#00642e);white-space:nowrap}.member-payment-charge{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.member-payment-charge small,.member-payment-copy-row small,.member-payment-open-charges small{display:block;color:var(--muted,#5f6b65);font-weight:400}
.member-payment-open-charges{margin-bottom:12px}.member-payment-open-charges>p{margin:0 0 6px}.member-payment-open-charges>button{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;width:100%;padding:9px 6px;border:0;border-bottom:1px solid var(--border,#bdc9c3);background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.member-payment-open-charges>button:hover,.member-payment-open-charges>button:focus-visible{background:color-mix(in srgb,var(--primary,#00642e) 6%,transparent)}
.member-payment-copy-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--border,#bdc9c3)}.member-payment-copy-row b{display:block;overflow-wrap:anywhere}
.member-payment-requisites{margin-top:16px;padding:14px;border:1px solid var(--border,#bdc9c3);border-radius:8px}.member-payment-requisites .panel-head{margin-bottom:8px}.member-payment-requisites h3{margin:0}.member-payment-note{margin:14px 0 0}
@media(max-width:560px){.member-payment-copy-row{grid-template-columns:minmax(0,1fr)}.member-payment-copy-row>.q-btn{justify-self:start}.member-payment-open-charges>button{grid-template-columns:minmax(0,1fr) auto}.member-payment-open-charges>button>.q-icon{display:none}.member-payment-summary strong{font-size:21px}}
@media(max-height:760px){.billing-payment-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.billing-payment-fields>.note{grid-column:1/-1}.q-dialog__inner .billing-payment-modal{height:94dvh;max-height:94dvh}}
@media(max-width:700px){.billing-payment-fields{grid-template-columns:minmax(0,1fr)}.billing-payment-fields>.note{grid-column:auto}.billing-payment-table th:first-child,.billing-payment-table td:first-child{width:38%}.q-dialog__inner .billing-payment-modal{width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}}
