.billing-page{max-width:1700px;margin:auto;padding:32px;color:#263329}

.bill-page-heading,.bill-table-toolbar,.bill-footer,.bill-stage-heading,.bill-print-toolbar{display:flex;align-items:center;gap:20px;justify-content:space-between}

.billing-page h1{font-size:30px;margin:7px 0}
.billing-page h2{font-size:19px;margin:0 0 8px}
.billing-page p{color:#6a746d;font-size:13px;line-height:1.5;margin:5px 0}

.bill-eyebrow{font-size:11px;letter-spacing:1.6px;color:#6b7e70}

.bill-button{border:1px solid #d7dfd9;background:white;border-radius:8px;padding:11px 16px;font:inherit;font-size:13px;color:#35493b;cursor:pointer;white-space:nowrap}
.bill-button.primary{background:#245b40;border-color:#245b40;color:white}
.bill-button:disabled{opacity:.45;cursor:default}

.billing-page button:focus-visible,.billing-page input:focus-visible,.billing-page select:focus-visible,.billing-dialog button:focus-visible{outline:3px solid #8ab5d5;outline-offset:2px}

.bill-steps{display:flex;gap:12px;margin:25px 0 14px;border-bottom:1px solid #e1e6e2;padding-bottom:16px}
.bill-steps button{display:flex;align-items:center;gap:10px;background:none;border:0;padding:8px 20px 8px 0;color:#748077;font:inherit;cursor:pointer}
.bill-steps button span{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#edf0ee}
.bill-steps [aria-current]{color:#245b40;font-weight:bold}
.bill-steps [aria-current] span{background:#245b40;color:white}

.billing-page .bill-demo{background:#f1f4f2;padding:9px 13px;border-radius:7px;font-size:12px}
.home-cards.bill-cards{grid-template-columns:repeat(3,1fr);margin:22px 0}

.bill-table-panel{border:1px solid #e2e7e3;border-radius:14px;background:white;overflow:hidden}
.bill-table-toolbar{padding:20px}
.bill-table-toolbar>div{margin-right:auto}
.billing-page label{font-size:12px;color:#64736a}
.billing-page input:not([type=checkbox]),.billing-page select{display:block;border:1px solid #d4ddd6;border-radius:6px;padding:9px 10px;background:#fff;color:#263329;font:inherit;margin-top:5px}

.bill-table-scroll{overflow:auto}
.bill-table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}
.bill-table th{background:#f6f8f6;font-size:11px;color:#66756a;text-align:left;padding:13px 12px;font-weight:500}
.bill-table td{padding:12px;border-top:1px solid #edf0ed}
.bill-table .bill-group th{background:#edf2ee;color:#355a41;font-weight:bold;padding:10px 15px}
.bill-group span{font-weight:normal;margin-left:12px;color:#839287}
.bill-row small{display:block;margin-top:5px;color:#718076;font-size:10px}
.bill-row.filled{background:#f6fbf7}
.bill-row.review{background:#fff5f3}
.bill-row.review small{color:#9c4c3c}
.bill-row input{width:78px!important;margin:0!important}
.bill-row [aria-invalid=true]{border-color:#c87b68!important}
.bill-eye{border:1px solid #dce5de;background:#fff;color:#42674f;border-radius:6px;width:32px;height:30px;cursor:pointer;padding:5px}
.bill-eye svg{width:100%;height:100%}
.billing-page .bill-table-note{padding:12px 18px;font-size:11px}

.bill-footer{margin-top:20px}
.bill-footer>div{margin-right:auto}
.bill-footer [role=status]{max-width:650px;color:#855d26}
.bill-stage-heading{margin:24px 0 18px}
.bill-review-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:24px;align-items:start}
.bill-client-list{background:white;border:1px solid #e0e6e1;border-radius:12px;padding:18px;position:sticky;top:15px}
.bill-client-list input:not([type=checkbox]){width:100%;box-sizing:border-box}
.bill-selection-actions{display:flex;flex-wrap:wrap;gap:10px;margin:15px 0}
.bill-selection-actions button{background:none;border:0;padding:0;font:inherit;font-size:11px;color:#245b40;cursor:pointer;text-decoration:underline}
.bill-client{display:flex;gap:10px;padding:13px 0;border-top:1px solid #edf1ee;align-items:center}
.bill-client input{accent-color:#245b40}
.bill-client b{font-size:12px}
.bill-client small{display:block;font-size:10px;margin-top:5px}
.bill-client-list>p{font-size:11px;margin-top:15px}
.bill-documents{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.bill-document>header{display:flex;align-items:center;justify-content:space-between;padding:0 0 9px;font-size:11px;color:#53675a}
.bill-paper-frame{container-type:inline-size}

.invoice-paper{aspect-ratio:1493/1054;background:white;position:relative;overflow:hidden;padding:0;margin:0;box-shadow:0 2px 9px #1c38251a}
.invoice-approved-original{display:block;width:100%;height:100%;object-fit:contain}

.bill-print-toolbar{padding:18px;background:white;border:1px solid #e0e6e1;border-radius:10px;margin-bottom:22px}

.bill-print-toolbar input{width:65px}

.bill-empty{padding:50px;text-align:center;color:#758078;border:1px dashed #cdd8cf;grid-column:1/-1}

.billing-dialog{border:1px solid #dce3de;border-radius:15px;padding:25px;max-width:min(1250px,94vw);width:1100px;color:#35493b;font-family:inherit}

.billing-dialog::backdrop{background:#14271eb3}

.billing-dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}

.billing-dialog-heading h1{font-size:20px;margin:0}

.bill-expanded{display:grid;grid-template-columns:minmax(0,3fr) 1fr;gap:25px;container-type:inline-size}

.bill-expanded .invoice-paper{font-size:1.5cqw;align-self:start}

.bill-expanded aside{border-left:1px solid #dbe3dd;padding:15px;font-size:13px}

.bill-expanded aside p{color:#778579;line-height:1.6}

.bill-expanded aside dd{margin:5px 0 20px;font-weight:bold}

.billing-print-root{display:none}

@media(max-width:1100px){.billing-page{padding:20px}

.bill-documents{grid-template-columns:1fr}

.bill-review-layout{grid-template-columns:215px minmax(0,1fr)}

.bill-table-toolbar{flex-wrap:wrap}

.bill-expanded{grid-template-columns:1fr}

.bill-expanded aside{border:0}

.bill-footer{flex-wrap:wrap}

}

@media print{@page billinginvoice{size:210mm 148mm;margin:0}

body>*:not(.billing-print-root){display:none!important}

.billing-print-root{display:block!important;width:210mm;container-type:inline-size}

.billing-print-root .invoice-paper{page:billinginvoice;width:210mm;height:148mm;break-after:page;box-shadow:none;print-color-adjust:exact}

.billing-print-root .invoice-paper:last-child{break-after:auto}

}




.invoice-viewer{width:calc(100vw - 90px);max-width:1600px;height:calc(100vh - 70px);max-height:940px;padding:0;border-radius:4px;overflow:hidden;color:#131722}
.invoice-viewer .billing-dialog-heading{height:64px;margin:0;padding:12px 22px;border-bottom:1px solid #e8ecf0;gap:16px}
.invoice-viewer .billing-dialog-heading h1{font-size:21px;white-space:nowrap}
.invoice-viewer h1 span{font-weight:400}
.invoice-viewer-controls{display:flex;align-items:center;gap:8px}
.invoice-viewer-controls [data-position]{font-size:12px;color:#627086;margin-right:6px}
.invoice-viewer-controls .bill-button{padding:8px 12px;border-color:#e1e6ee;border-radius:4px;color:#34445a}
.invoice-viewer-controls select{padding:8px 10px;border:1px solid #e1e6ee;border-radius:4px;color:#34445a;background:white;font:inherit;font-size:12px}
.invoice-viewer-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;height:calc(100% - 64px)}
.invoice-viewer-canvas{overflow:auto;background:#f7f8fa;padding:20px;min-width:0;min-height:0}
.invoice-viewer-sheet{margin:0 auto;flex:none;max-width:none}
.invoice-viewer-summary{overflow:auto;border-left:1px solid #e8ecf0;padding:8px 12px 18px}
.invoice-viewer-summary dl{margin:0}
.invoice-viewer-summary dl>div{padding:14px 8px;border-bottom:1px solid #edf0f3}
.invoice-viewer-summary dt{font-size:12px;color:#627086;margin-bottom:9px}
.invoice-viewer-summary dd{display:flex;justify-content:space-between;align-items:baseline;margin:0;gap:12px}
.invoice-viewer-summary dd b{font-size:20px}
.invoice-viewer-summary dd span{font-size:13px;color:#627086}
.invoice-viewer-summary .invoice-viewer-total{background:#eaf8f7;border-bottom:0;margin-top:8px}
.invoice-viewer-total dt{color:#008e83;font-weight:bold}
.invoice-viewer-summary [data-back]{width:100%;margin-top:12px;background:#00988c;border-color:#00988c;color:white;border-radius:4px;font-weight:bold}
.invoice-viewer-summary p{font-size:11px;color:#6d7786;line-height:1.5;margin:12px 5px 0}
.invoice-viewer-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:1000px){.invoice-viewer{width:calc(100vw - 30px);height:calc(100vh - 30px)}.invoice-viewer .billing-dialog-heading{height:100px;flex-wrap:wrap;padding:10px 16px;gap:8px}.invoice-viewer-layout{height:calc(100% - 100px);grid-template-columns:minmax(0,1fr) 210px}.invoice-viewer-controls{width:100%}.invoice-viewer-controls [data-position]{margin-right:auto}.invoice-viewer .billing-dialog-heading h1{font-size:18px}}
.bill-sort{position:relative;margin-right:0!important;align-self:flex-end}.bill-sort-trigger{display:flex;align-items:center;gap:7px;height:36px}.bill-sort-options{position:fixed;inset:auto;margin:0;width:260px;padding:10px;border:1px solid #dce3de;border-radius:9px;background:white;color:#35493b;box-shadow:0 8px 24px #17332224;font-family:inherit}.bill-sort-options strong{display:block;padding:6px;font-size:12px}.bill-sort-options button{display:block;width:100%;padding:10px;text-align:left;border-radius:5px;font:inherit;font-size:13px}.bill-sort-options button:hover,.bill-sort-options button[aria-pressed=true]{background:#eaf3ee}.bill-sort-options button[aria-pressed=true]::after{content:'✓';float:right}.bill-sort-options p{font-size:11px;color:#738076;line-height:1.4;margin:8px 6px 3px}.bill-sort-options button:focus-visible{outline:2px solid #3578c8;outline-offset:-2px}
.bill-client-list .bill-select-all{display:flex;align-items:center;gap:9px;margin:16px 0 10px;font-size:13px;color:#35493b;cursor:pointer}.bill-select-all input{width:16px;height:16px;margin:0;accent-color:#245b40}.bill-select-all input:focus-visible{outline:2px solid #3578c8;outline-offset:3px}
