body { background:#eef1f2;color:#232c31; }
.site-header nav{gap:24px}.site-header nav a{display:block!important}.site-header .brand img{width:170px;height:85px}.header-inner{min-height:100px}
.billing-shell{width:min(100% - 40px,1120px);margin:38px auto 70px}.billing-hero{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:30px}.billing-hero h1{font-size:clamp(34px,5vw,48px);margin-top:9px}.billing-hero p{color:#59656d;margin-top:12px;max-width:590px}.billing-hero .eyebrow{color:#865100}
.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.button,button{cursor:pointer}.button{font:700 14px var(--heading);min-height:44px;gap:12px;border:1px solid transparent}.button.secondary{background:white;border:1px solid #a6b0b5;color:#232c31}.button.danger{background:#fff;color:#a81e2c;border:1px solid #d4a0a7}.button:disabled{opacity:.55;cursor:wait}.button.small{min-height:34px;padding:6px 12px;font-size:13px}.text-button{border:0;background:none;color:#294b60;text-decoration:underline;font:500 14px Roboto,sans-serif;cursor:pointer;padding:6px}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a66a00;outline-offset:3px}.tabs{display:flex;gap:8px;border-bottom:1px solid #c9d0d4;margin-bottom:26px}.tabs button{border:0;background:none;padding:13px 20px;font:700 16px var(--heading);color:#5a6972;border-bottom:3px solid transparent}.tabs button[aria-selected=true]{color:#232c31;border-bottom-color:#d98b00}
.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}.metric,.panel{background:#fff;border:1px solid #cbd2d6;padding:24px}.metric{border-top:3px solid #f29100}.metric:nth-child(2){border-top-color:#ed0718}.metric:nth-child(3){border-top-color:#009649}.metric p{font-size:13px;color:#59656d}.metric strong{font:700 29px var(--heading);display:block;margin:8px 0}.metric small{color:#59656d}.panel+.panel{margin-top:24px}.panel h2{font-size:24px}.panel h3{font-size:18px;margin-bottom:16px}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.muted{color:#59656d}.small-copy{font-size:13px;color:#59656d;line-height:1.6}.setup-note{background:#fff6dc;border-left:4px solid #d98b00;padding:16px 20px;margin:0 0 24px;font-size:14px}.setup-note strong{display:block;margin-bottom:4px}.success-note{border-color:#009649;background:#e9f5ef}
.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px}th{text-align:left;text-transform:uppercase;letter-spacing:.7px;font-size:11px;color:#59656d;background:#f4f6f7}th,td{padding:14px 12px;border-bottom:1px solid #dde2e5;vertical-align:top}td strong{display:block}.numeric{text-align:right;white-space:nowrap}.badge{display:inline-block;white-space:nowrap;padding:3px 9px;font-size:11px;font-weight:700;border-radius:3px;background:#e8edf0;color:#35434c;text-transform:uppercase}.badge.paid{background:#dff2e8;color:#006934}.badge.unpaid,.badge.part_paid{background:#fff0cc;color:#805100}.badge.overdue{background:#fde4e7;color:#a41b29}.badge.void{background:#eee;color:#555}.empty{text-align:center;padding:52px 20px}.empty h3{font-size:23px;margin-bottom:12px}.empty p{color:#59656d;max-width:440px;margin:0 auto 22px}.filter-row{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:18px}.filter-row input{flex:1;min-width:180px}.filter-row select{width:auto}
label{display:block;font-size:13px;font-weight:500;color:#35434c;margin-bottom:6px}input,select,textarea{width:100%;border:1px solid #9aa8af;background:#fff;color:#232c31;padding:10px 11px;font:14px/1.4 Roboto,sans-serif;border-radius:2px;min-height:42px}textarea{resize:vertical;min-height:90px}input[type=checkbox]{width:18px;min-height:18px;accent-color:#d98b00}.check-label{display:flex;gap:10px;align-items:center;margin:18px 0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid .full{grid-column:1/-1}.form-section{border-top:1px solid #d6dde0;padding-top:22px;margin-top:24px}.form-section h3{margin-bottom:18px}.form-footer{display:flex;justify-content:end;gap:10px;border-top:1px solid #d6dde0;padding-top:20px;margin-top:24px}.item-list{display:grid;gap:12px}.line-item{display:grid;grid-template-columns:minmax(160px,1fr) 88px 112px 38px;gap:10px;align-items:start}.line-item textarea{min-height:67px}.remove-item{width:34px;height:34px;border:1px solid #bdc8cd;background:white;font-size:22px;margin-top:24px}.totals-preview{background:#f4f6f7;padding:18px;text-align:right;font-size:14px;margin-top:18px}.totals-preview strong{font:700 22px var(--heading);display:block;margin-top:5px}
dialog{border:0;padding:0;width:min(94vw,900px);max-height:90vh;color:#232c31;background:white;box-shadow:0 18px 100px #0005}dialog::backdrop{background:#152029b0}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 26px;border-bottom:1px solid #d6dde0;position:sticky;top:0;background:#fff;z-index:1}.dialog-head h2{font-size:23px}.dialog-body{padding:24px 26px}.close-button{background:none;border:0;font-size:30px;padding:2px 8px;line-height:1}.notice{padding:13px 18px;border:1px solid #e4a5ae;color:#a41b29;background:#fff1f3;margin-bottom:18px;white-space:pre-line}.notice.success{background:#e7f5ec;border-color:#a1cdb3;color:#006934}.notice:empty{display:none}.notice[hidden]{display:none}.loading{padding:30px;color:#59656d}
.access-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.access-card h2{font-size:26px;margin-bottom:12px}.access-card p{color:#59656d;margin-bottom:22px}.access-card .button{margin-top:18px}.access-card .small-copy{margin-top:18px;margin-bottom:0}.private-label{font:700 11px var(--heading);letter-spacing:1px;color:#7d4a00;text-transform:uppercase;margin-bottom:14px}.client-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.client-heading h2{font-size:23px}.invoice-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px;flex-wrap:wrap}.invoice-paper{background:#fff;max-width:850px;margin:auto;border:1px solid #cbd2d6;padding:clamp(20px,5vw,48px);box-shadow:0 4px 18px #14232a0b}.invoice-brand{display:flex;justify-content:space-between;gap:20px;align-items:start;padding-bottom:24px;border-bottom:3px solid #ffc400}.invoice-brand img{width:160px;height:80px;object-fit:contain}.invoice-brand h2{font-size:30px}.invoice-brand .badge{margin-top:8px}.invoice-meta{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:28px 0}.invoice-meta h3{font:700 11px var(--heading);letter-spacing:1px;color:#59656d;margin-bottom:8px}.multiline{white-space:pre-line;overflow-wrap:anywhere}.invoice-meta p,.invoice-notes p{font-size:14px;line-height:1.6}.invoice-dates{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;background:#f4f6f7;padding:16px;margin:24px 0;font-size:13px}.invoice-dates span{display:block;color:#59656d;font-size:11px;margin-bottom:5px}.invoice-totals{margin:24px 0 24px auto;width:min(100%,320px)}.invoice-totals div{display:flex;justify-content:space-between;padding:8px 0;font-size:14px}.invoice-totals .balance{border-top:2px solid #232c31;font-weight:700;font-size:19px}.invoice-notes{margin-top:24px}.invoice-notes h3{font-size:13px;margin-bottom:8px}.payment-panel{border-top:1px solid #d6dde0;margin-top:26px;padding-top:22px}.payment-panel h3{font-size:19px;margin-bottom:12px}.payment-panel .actions{margin:18px 0}.share-box{background:#f5f7f7;padding:20px;margin-top:20px}.share-box input{margin:10px 0}.led-footer{border-top:1px solid #cbd2d6;padding:22px 20px;display:flex;justify-content:space-between;gap:18px;font-size:12px;color:#59656d}.led-footer a{color:#232c31}.filters-search{max-width:360px}
@media(max-width:750px){.summary-grid{grid-template-columns:1fr}.metric{padding:16px}.metric strong{font-size:26px}.billing-hero{align-items:start;flex-direction:column}.billing-shell{margin-top:28px}.site-header nav{gap:12px}.site-header nav a{font-size:12px}.header-inner{min-height:80px}.site-header .brand img{width:120px;height:60px}.access-grid,.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.line-item{grid-template-columns:1fr 1fr 34px}.line-item>div:first-child{grid-column:1/-1}.line-item>div:nth-child(2),.line-item>div:nth-child(3){grid-row:2}.remove-item{grid-row:2;margin-top:25px}.panel{padding:18px}.invoice-meta{grid-template-columns:1fr}.invoice-dates{grid-template-columns:1fr 1fr}.invoice-brand img{width:120px;height:60px}.invoice-brand h2{font-size:23px}.dialog-head,.dialog-body{padding:18px}.led-footer{flex-direction:column}.tabs button{padding:12px 14px}}
@media print{.site-header,.billing-hero,.invoice-toolbar,.payment-panel,.led-footer,.notice,.dialog-head{display:none!important}body{background:white}.invoice-paper{border:0;box-shadow:none;padding:0}.billing-shell{margin:0;width:100%}.invoice-paper table{font-size:11px}.invoice-paper .invoice-notes{break-inside:avoid}}
