@font-face{font-family:InvoiceSans;src:url('/fonts/LiberationSans-Regular.ttf') format('truetype');font-weight:400;font-display:swap}@font-face{font-family:InvoiceSans;src:url('/fonts/LiberationSans-Bold.ttf') format('truetype');font-weight:700;font-display:swap}
dialog.invoice-canvas-modal{width:calc(100% - 28px);max-width:1320px;max-height:calc(100dvh - 24px)}.invoice-canvas-modal .modal-body{padding:0 20px 18px}.invoice-canvas-modal .modal-head{padding:18px 20px}.invoice-canvas-modal .form-footer{position:sticky;bottom:-18px;background:white;padding:15px 0 5px;z-index:3;border-top:1px solid #dce4eb}.invoice-canvas-modal #dialog-error{padding:0 12px}.invoice-canvas{min-width:0}.iv-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0}.iv-mode-label{font-weight:650;font-size:14px}.iv-toolbar p{margin:4px 0 0;color:#596779;font-size:12px}.iv-toolbar-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.iv-toolbar-actions .btn{font-size:12px;padding:10px 12px}.iv-toolbar-actions [aria-pressed=true]{background:#e8efff;color:#244ac3;border-color:#b6c8ef}.iv-save-status{background:#eef5f4;color:#264d44;padding:10px 14px;border-radius:8px;font-size:12px;margin-bottom:12px}.iv-discard{background:#fff4e7;border:1px solid #d89a44;padding:12px;margin-bottom:10px;border-radius:8px}.iv-workspace{display:grid;grid-template-columns:245px minmax(0,1fr);gap:16px;align-items:start}.iv-controls{padding:16px 14px;background:#f5f7fa;border:1px solid #dce4eb;border-radius:10px;min-width:0}.iv-controls h3{font-size:13px;margin:0 0 12px}.iv-controls details{padding:12px 0;border-top:1px solid #dce4eb}.iv-controls summary{font-size:13px;font-weight:650;cursor:pointer;min-height:32px;display:list-item}.iv-control-label{display:block;font-size:11px;font-weight:550;margin:10px 0}.iv-controls select,.iv-controls input:not([type=checkbox]){width:100%;min-width:0;margin-top:6px;font-size:12px;min-height:40px;border:1px solid #cfdae5;border-radius:6px;padding:8px;background:#fff;color:#152334}.iv-controls input[type=file]{font-size:10px;padding:8px 4px}.iv-control-label small{display:block;font-size:10px;color:#627082;margin-top:5px}.iv-controls .btn{font-size:11px;min-height:36px;padding:8px 10px;margin:4px 0}.iv-controls .checkline{font-size:11px;align-items:center;gap:8px;margin:10px 0}.iv-controls .checkline input{flex-shrink:0}.iv-control-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}.iv-billing-email{font-size:11px;line-height:1.5;overflow-wrap:anywhere;color:#526477}.iv-document-area{background:#e6ebf1;padding:18px;border-radius:10px;min-width:0;overflow:hidden}.iv-paper{--iv-accent:#183f45;max-width:794px;min-height:950px;margin:auto;background:#fff;box-shadow:0 3px 18px #112b4024;padding:52px 54px 32px;font-family:InvoiceSans,Arial,sans-serif;color:#111;font-size:13.33px;line-height:1.35;min-width:0;position:relative}.iv-paper[data-layout=modern]{border-top:14px solid var(--iv-accent)}.iv-paper[data-layout=minimal] .iv-paper-brand strong{color:#111}.iv-paper[data-body="9"]{font-size:12px}.iv-paper[data-body="11"]{font-size:14.67px}.iv-paper-brand{display:flex;align-items:center;justify-content:space-between;min-height:34px;margin-bottom:8px;gap:8px}.iv-paper-brand strong{color:var(--iv-accent);font-size:21px;overflow-wrap:anywhere}.iv-paper .btn{font-family:Inter,Arial,sans-serif;font-size:10px;min-height:30px;padding:6px 8px;color:#536078;background:transparent}.iv-paper-brand .btn{border-style:dashed;flex-shrink:0}.iv-logo{max-width:160px;max-height:60px;object-fit:contain}.iv-paper[data-logo=right] .iv-paper-brand{flex-direction:row-reverse}.iv-paper[data-logo-size="80"] .iv-logo{max-width:107px}.iv-paper[data-logo-size="120"] .iv-logo{max-width:160px}.iv-paper[data-logo-size="160"] .iv-logo{max-width:213px}.iv-draft-stamp{font-size:11px;color:#a4291e;font-weight:700;margin:8px 0 22px}.iv-addresses{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin-bottom:20px}.iv-issuer{color:#677079}.iv-issuer p{margin:6px 0;overflow-wrap:anywhere}.iv-small-label{font-size:9px;color:#7b8490;display:block;margin-bottom:6px;text-transform:uppercase;letter-spacing:.06em}.iv-street-row{display:flex;gap:4px}.iv-street-row .iv-edit{min-width:0;flex:1;width:50%}.iv-street-row [data-bind$=".building"],.iv-street-row [data-bind$=".postcode"]{max-width:40%}.iv-paper .iv-edit{font-family:inherit;font-size:inherit;line-height:inherit;display:block;width:100%;min-width:0;border:1px solid transparent;border-radius:4px;padding:3px 4px;margin:0;background:transparent;color:inherit;box-shadow:none;min-height:28px;box-sizing:border-box}.iv-paper textarea.iv-edit{resize:none;overflow:hidden;max-height:none}.iv-paper .iv-edit:hover{border-color:#c6d4e2;background:#f4f8fc}.iv-paper .iv-edit:focus{outline:2px solid #3659df;outline-offset:1px;background:#f4f8ff;border-color:transparent}.iv-paper .iv-edit::placeholder{opacity:.9;color:#8591a0;font-size:11px}.iv-paper .iv-heading{font-size:33.33px;line-height:1.15;font-weight:700;color:var(--iv-accent);margin:12px 0}.iv-paper[data-heading="20"] .iv-heading{font-size:26.67px}.iv-paper[data-heading="30"] .iv-heading{font-size:40px}.iv-paper .iv-heading::placeholder{font-size:inherit;color:inherit;opacity:1}.iv-paper[data-align=center] .iv-heading{text-align:center}.iv-paper[data-align=right] .iv-heading{text-align:right}.iv-invoice-meta{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:12px;font-size:12px}.iv-invoice-meta label{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:4px 0;font-size:11px;white-space:nowrap}.iv-invoice-meta input[type=date]{font-size:11px;min-width:100px;width:125px}.iv-invoice-meta strong{display:block;font-size:13px;margin-bottom:3px}.iv-paper [data-bind="recipient_override.contact"]{margin-bottom:12px}.iv-paper [data-bind="design.intro"]{margin:16px 0}.iv-services{margin-top:18px}.iv-table-head,.iv-service-main{display:grid;grid-template-columns:minmax(0,1fr) 106px 53px 76px;gap:10px;align-items:start}.iv-table-head{padding:8px 6px;font-weight:700;font-size:11px;margin-bottom:8px}.iv-paper[data-table=tinted]:not([data-layout=minimal]) .iv-table-head{background:#eff4f4}.iv-paper[data-table=ruled] .iv-table-head{border-bottom:1px solid var(--iv-accent)}.iv-service-row{padding:8px 6px;border-bottom:1px solid #e5e9ee}.iv-paper[data-table=clean] .iv-service-row{border-bottom:0}.iv-service-main output{text-align:right;display:block;padding-top:4px;white-space:nowrap;font-size:13px}.iv-service-main .iv-price-inputs{display:flex;align-items:center;gap:3px}.iv-price-inputs input{font-size:11px!important;width:52px!important;min-width:0}.iv-price-inputs input:first-child{width:38px!important}.iv-tax-cell input.iv-decimal{display:inline-block!important;width:34px!important;font-size:11px!important;text-align:right}.iv-service-main .iv-tax-cell span{font-size:11px}.iv-discount-label{font-size:10px;display:flex;align-items:center;gap:3px;color:#798291;max-width:170px}.iv-discount-label input{width:50px!important;font-size:10px!important}.iv-line-tools{display:flex;gap:5px;margin-top:5px;opacity:.55}.iv-service-row:hover .iv-line-tools,.iv-line-tools:focus-within{opacity:1}.iv-line-tools .btn{font-size:9px;padding:3px 5px;min-height:24px}.iv-add-line{margin-top:10px}.iv-paper[data-spacing=compact] .iv-service-row{padding-top:4px;padding-bottom:4px}.iv-paper[data-quantity=false] .iv-quantity-cell,.iv-paper[data-tax=false] .iv-tax-cell{display:none}.iv-paper[data-quantity=false] .iv-table-head,.iv-paper[data-quantity=false] .iv-service-main{grid-template-columns:minmax(0,1fr) 53px 76px}.iv-paper[data-tax=false] .iv-table-head,.iv-paper[data-tax=false] .iv-service-main{grid-template-columns:minmax(0,1fr) 106px 76px}.iv-paper[data-quantity=false][data-tax=false] .iv-table-head,.iv-paper[data-quantity=false][data-tax=false] .iv-service-main{grid-template-columns:minmax(0,1fr) 76px}.iv-totals{margin:24px 0 22px auto;width:min(280px,100%);text-align:right}.iv-totals p{display:flex;justify-content:space-between;gap:16px;margin:8px 0;font-size:12px}.iv-totals strong{display:flex;justify-content:space-between;gap:14px;color:var(--iv-accent);font-size:17px;margin-top:12px}.iv-vat-id{font-size:11px;color:#677079}.iv-text-section{margin:18px 0;border:1px dashed #d6dee9;border-radius:5px;padding:6px}.iv-section-heading{font-weight:700;color:var(--iv-accent)!important}.iv-section-tools{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px;align-items:center;color:#8390a1;font-size:9px;margin-bottom:4px}.iv-section-tools>span{margin-right:auto}.iv-section-tools .btn{padding:3px 4px;min-height:22px;font-size:9px}.iv-notes{margin:20px 0;color:#677079}.iv-payment-summary{display:grid;grid-template-columns:1.2fr 1fr;gap:18px;border-top:1px dashed #aaa;margin:36px -54px -32px;padding:22px 34px;background:#fafafa;font-size:11px;line-height:1.5}.iv-payment-summary strong{font-size:12px;display:block}.iv-payment-summary p{margin:6px 0;overflow-wrap:anywhere}.iv-payment-summary span{font-size:10px}.iv-exact-preview img{display:block;width:100%;height:auto;margin:0 auto 18px;background:white;box-shadow:0 3px 14px #102c401c}.iv-pdf-caption{font-size:12px;color:#41566b;margin-bottom:12px;line-height:1.5}.iv-controls[inert]{opacity:.55}.iv-paper[hidden],.iv-exact-preview[hidden],.iv-discard[hidden]{display:none}
@media(max-width:1100px){.iv-paper{padding:32px 30px}.iv-payment-summary{margin:30px -30px -32px;padding:20px}.iv-table-head,.iv-service-main{gap:5px;grid-template-columns:minmax(0,1fr) 90px 43px 62px}.iv-paper .iv-invoice-meta{gap:12px}.iv-addresses{gap:20px}.iv-document-area{padding:12px}}
@media(max-width:800px){.iv-workspace{grid-template-columns:1fr}.iv-controls{display:flex;gap:12px;flex-wrap:wrap;align-items:start}.iv-controls>h3{width:100%;margin-bottom:0}.iv-controls>.iv-control-label,.iv-controls>.iv-control-pair{width:calc(50% - 6px)}.iv-controls>details{width:100%;border-top:1px solid #dce4eb}.iv-controls>.iv-billing-email{width:100%;margin:0}.iv-controls>.small{width:100%}.iv-toolbar{align-items:start;flex-direction:column}.iv-toolbar-actions{justify-content:flex-start}.iv-paper{min-height:750px}.invoice-canvas-modal .modal-body{padding:0 12px 12px}.invoice-canvas-modal .modal-head{padding:15px 12px}.iv-payment-summary{margin-bottom:-32px}.iv-controls>details:not([open]){padding:6px 0}.iv-paper-brand strong{font-size:19px}}
@media(max-width:480px){dialog.invoice-canvas-modal{width:calc(100% - 10px);max-height:calc(100dvh - 10px)}.iv-paper{padding:22px 12px;font-size:12px}.iv-document-area{padding:5px}.iv-addresses{gap:10px}.iv-paper-brand strong{font-size:16px}.iv-paper-brand .btn{font-size:9px}.iv-paper .iv-heading{font-size:27px}.iv-paper[data-heading="30"] .iv-heading{font-size:31px}.iv-invoice-meta{grid-template-columns:1fr}.iv-invoice-meta>div:nth-child(2){display:flex;gap:8px;flex-wrap:wrap}.iv-invoice-meta label{white-space:normal;flex:1;min-width:120px;display:block}.iv-paper .iv-invoice-meta input[type=date]{width:100%;padding-left:0;min-width:0}.iv-table-head,.iv-service-main{grid-template-columns:minmax(0,1fr) 58px 34px 48px;gap:2px}.iv-price-inputs{flex-wrap:wrap;justify-content:flex-end}.iv-price-inputs input{width:48px!important;text-align:right}.iv-price-inputs span{display:none}.iv-service-main output{font-size:10px}.iv-paper .iv-table-head{font-size:9px;padding:5px 0}.iv-table-head .iv-edit::placeholder{font-size:9px}.iv-service-row{padding:7px 0}.iv-tax-cell input.iv-decimal{width:25px!important;font-size:10px!important;padding-left:0!important;padding-right:0!important}.iv-line-tools .btn{font-size:8px;padding:4px;min-height:28px}.iv-paper[data-quantity=false] .iv-table-head,.iv-paper[data-quantity=false] .iv-service-main{grid-template-columns:minmax(0,1fr) 34px 48px}.iv-paper[data-tax=false] .iv-table-head,.iv-paper[data-tax=false] .iv-service-main{grid-template-columns:minmax(0,1fr) 58px 48px}.iv-paper[data-quantity=false][data-tax=false] .iv-table-head,.iv-paper[data-quantity=false][data-tax=false] .iv-service-main{grid-template-columns:minmax(0,1fr) 48px}.iv-payment-summary{grid-template-columns:1fr;margin:28px -12px -22px;padding:18px 14px}.iv-controls{padding:12px;gap:8px}.iv-controls>.iv-control-label,.iv-controls>.iv-control-pair{width:100%}.iv-controls>details[open]{width:100%}.iv-toolbar-actions .btn{font-size:11px;padding:8px}.iv-section-tools .btn{font-size:8px;min-height:28px}.iv-totals strong{font-size:15px}}
#iv-download-preview[hidden]{display:none}.iv-paper .iv-edit:invalid:not(:placeholder-shown){border-color:#b73939}
.iv-insert-bar{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding:10px 12px;background:#fff;border:1px solid #dce4eb;border-radius:8px;margin:0 0 10px}.iv-insert-bar>span:first-child{font-size:12px;font-weight:650;margin-right:4px}.iv-insert-bar .btn{font-size:12px;padding:9px 12px}.iv-insert-hint{font-size:11px;color:#63748a;margin-left:auto}.iv-insert-bar input[hidden]{display:none}.iv-object-inspector{margin:-4px 0 16px;padding:4px 0 14px;border-bottom:1px solid #dce4eb;width:100%}.iv-object-inspector>h3{font-size:14px;margin-bottom:8px;color:#23434d}.iv-object-actions{display:flex;flex-wrap:wrap;gap:5px}.iv-controls .iv-object-actions .btn{margin:0;min-height:34px}.iv-design-cards{display:grid;gap:8px}.iv-design-cards .btn{padding:24px 10px!important;font-size:13px!important;position:relative}.iv-design-cards [data-preset=modern]{border-top:6px solid #183f45}.iv-design-cards [data-preset=minimal]{border:1px solid #252525;background:#fff;color:#252525}.iv-paper .iv-object-selected{outline:2px solid #3659df;outline-offset:3px;background-color:#f3f7ff}.iv-text-section{border-color:transparent}.iv-text-section:hover{border-color:#b7c7db}.iv-section-tools,.iv-line-tools{opacity:0}.iv-text-section:hover .iv-section-tools,.iv-text-section:focus-within .iv-section-tools,.iv-service-row:hover .iv-line-tools,.iv-service-row:focus-within .iv-line-tools{opacity:1}.iv-logo-stage{width:100%;position:relative;min-height:30px;flex:1}.iv-logo-object{position:absolute;touch-action:none;cursor:move;line-height:0;border:1px solid transparent;box-sizing:content-box}.iv-logo-object:hover,.iv-logo-object:focus{border-color:#3659df;outline:2px solid #3659df;outline-offset:2px}.iv-paper .iv-logo-object .iv-logo{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;user-select:none}.iv-logo-resize{position:absolute;width:12px;height:12px;right:-6px;bottom:-6px;background:#fff;border:2px solid #3659df;cursor:nwse-resize;opacity:0}.iv-logo-object:hover .iv-logo-resize,.iv-logo-object:focus .iv-logo-resize,.iv-logo-object.iv-object-selected .iv-logo-resize{opacity:1}.iv-reference-panel{background:#fff;border:1px solid #d5dfeb;border-radius:8px;padding:14px;margin-bottom:16px;font-family:Inter,Arial,sans-serif}.iv-reference-panel[hidden]{display:none}.iv-reference-panel summary{font-size:13px;font-weight:650;cursor:pointer;overflow-wrap:anywhere}.iv-reference-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:12px 0}.iv-reference-panel .btn{font-size:11px;padding:8px 9px}.iv-reference-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.iv-reference-image{position:relative;line-height:0;overflow:hidden;border:1px solid #dce4eb;touch-action:pan-y}.iv-reference-image img{display:block;width:100%;height:auto;user-select:none}.iv-cropping .iv-reference-image{touch-action:none;cursor:crosshair}.iv-crop-selection{position:absolute;border:2px solid #3659df;background:#3659df22;pointer-events:none;box-sizing:border-box}.iv-crop-selection[hidden],[data-crop-controls][hidden]{display:none}.iv-reference-panel textarea{display:block;width:100%;min-height:240px;resize:vertical;margin-top:8px;padding:10px;border:1px solid #cbd7e6;border-radius:6px;font-family:inherit;font-size:12px;line-height:1.5}.iv-crop-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.iv-crop-fields label{font-size:11px}.iv-crop-fields input{display:block;width:100%;min-height:34px;margin-top:5px;border:1px solid #cbd7e6;border-radius:5px;padding:6px}.iv-controls .iv-object-inspector input,.iv-controls .iv-object-inspector select{min-height:34px}.iv-reference-actions output{font-size:12px}.iv-reference-panel .iv-control-label{margin-top:0}
@media(max-width:800px){.iv-insert-hint{width:100%;margin:3px 0 0}.iv-object-inspector{margin-bottom:0}.iv-reference-grid{grid-template-columns:1fr}.iv-reference-image{max-height:none}.iv-insert-bar .btn{font-size:11px;padding:8px}.iv-section-tools,.iv-line-tools{opacity:.7}.iv-logo-resize{opacity:1}}

.iv-example-readonly{white-space:pre-wrap}.invoice-canvas[data-mode=invoice] .iv-logo-object{cursor:default}.invoice-canvas[data-mode=invoice] .iv-logo-object:hover{border-color:transparent;outline:none}.iv-controls textarea{width:100%;min-width:0;margin-top:6px;font-size:12px;border:1px solid #cfdae5;border-radius:6px;padding:8px;resize:vertical}

.invoice-canvas[data-mode=invoice] .iv-section-tools,.invoice-canvas[data-mode=design] .iv-line-tools{display:none}.iv-paper .iv-example-readonly:hover{border-color:transparent;background:transparent}.invoice-canvas[data-mode=invoice] .iv-text-section:hover{border-color:transparent}

.iv-price-inputs>.iv-example-readonly{width:auto;min-width:0;text-align:right}.iv-service-main .iv-tax-cell>.iv-example-readonly{display:inline;width:auto;min-width:0;padding-left:0;padding-right:0}.iv-discount-label>.iv-example-readonly{display:inline;width:auto;min-width:0}.invoice-canvas[data-mode=design] .iv-price-inputs{flex-wrap:wrap}

.iv-paper[data-layout=letterhead]{padding:0;min-width:595px;min-height:0;border-top:0;font-size:calc(10 * var(--iv-point,1px));line-height:1.2}.iv-letterhead-preview{position:relative;min-height:calc(841.89 * var(--iv-point,1px));font-size:inherit}.iv-letterhead-preview>div:not(.iv-logo-stage){position:absolute}.iv-letterhead-preview .iv-logo-stage{position:absolute;inset:0;min-height:0;margin:0;pointer-events:none}.iv-letterhead-preview .iv-logo-object{pointer-events:auto}.iv-letterhead-issuer{white-space:pre-wrap;line-height:1.2;font-weight:700}.iv-letterhead-issuer strong{display:block;font-size:calc(var(--iv-issuer-name-size,10) * var(--iv-point,1px));color:#111;border-bottom:calc(.8 * var(--iv-point,1px)) solid var(--iv-accent);padding-bottom:calc(3 * var(--iv-point,1px));margin-bottom:calc(3 * var(--iv-point,1px))}.iv-letterhead-issuer p{margin:0;line-height:1.2;font-style:var(--iv-issuer-italic,italic)}.iv-letterhead-vat,.iv-letterhead-date{font-size:inherit;color:#111}.iv-letterhead-recipient .iv-small-label{display:none}.iv-letterhead-preview .iv-edit{padding:0;border-radius:0;min-height:calc(12 * var(--iv-point,1px));line-height:1.2;font-size:inherit}.iv-letterhead-preview .iv-street-row [data-bind$='.building'],.iv-letterhead-preview .iv-street-row [data-bind$='.postcode']{max-width:30%}.iv-letterhead-title{display:flex;align-items:baseline;justify-content:space-between;gap:calc(20 * var(--iv-point,1px))}.iv-letterhead-title .iv-heading{font-size:calc(var(--iv-letterhead-heading,14) * var(--iv-point,1px))!important;line-height:1.2;margin:0;color:#111}.iv-letterhead-title>strong{font-size:calc(10 * var(--iv-point,1px));font-weight:400;flex-shrink:0}.iv-letterhead-intro [data-bind='design.intro']{margin:0;font-weight:700;font-size:calc(var(--iv-intro-font-size,9) * var(--iv-point,1px))}.iv-letterhead-services .iv-services{margin:0}.iv-letterhead-services[data-show-header=false] .iv-table-head{display:none}.iv-letterhead-services .iv-service-row{padding:0 0 calc(7 * var(--iv-point,1px));margin:0;font-size:inherit}.iv-letterhead-services .iv-service-main{gap:calc(6 * var(--iv-point,1px))}.iv-letterhead-services .iv-service-main output{padding-top:0;font-size:inherit}.iv-letterhead-services .iv-table-head{font-size:calc(9 * var(--iv-point,1px));padding:calc(5 * var(--iv-point,1px)) 0}.iv-letterhead-services .iv-totals{margin:calc(12 * var(--iv-point,1px)) 0 calc(14 * var(--iv-point,1px));width:100%;color:#111;font-size:inherit}.iv-letterhead-services .iv-totals p{font-size:inherit;margin:calc(6 * var(--iv-point,1px)) 0}.iv-letterhead-services .iv-totals strong{font-size:calc(11 * var(--iv-point,1px));color:#111;margin-top:calc(7 * var(--iv-point,1px))}.iv-letterhead-services[data-totals=underlined] .iv-totals strong{padding-bottom:calc(4 * var(--iv-point,1px));border-bottom:calc(3 * var(--iv-point,1px)) double #111}.iv-letterhead-services .iv-vat-id{display:none}.iv-letterhead-services .iv-add-line{margin-top:calc(7 * var(--iv-point,1px))}.iv-letterhead-services .iv-notes,.iv-letterhead-services .iv-text-section{font-size:inherit;margin:calc(9 * var(--iv-point,1px)) 0}.iv-letterhead-footer{font-weight:700;font-size:inherit}.iv-letterhead-footer [data-bind='design.footer']{margin:0}.iv-paper[data-layout=letterhead]>.iv-payment-summary{margin:0;padding:22px 34px}.iv-paper[data-layout=letterhead] .iv-draft-stamp{position:absolute;left:calc(62 * var(--iv-point,1px));top:calc(111 * var(--iv-point,1px));margin:0;font-size:calc(8 * var(--iv-point,1px));z-index:1}.iv-paper[data-layout=letterhead] .iv-line-tools,.iv-paper[data-layout=letterhead] .iv-section-tools{font-size:10px}.iv-paper[data-layout=letterhead] .iv-edit::placeholder{font-size:inherit}
@media(max-width:800px){.iv-document-area:has(.iv-paper[data-layout=letterhead]){overflow-x:auto}.iv-paper[data-layout=letterhead]{min-width:595px}}

.iv-reference-actions [hidden]{display:none}.iv-reference-panel[aria-busy=true] [data-reference-ai-status]{color:#264d44;background:#eef5f4;padding:10px;border-radius:6px}.iv-letterhead-services .iv-services,.iv-letterhead-services .iv-totals{width:var(--iv-letterhead-service-width,100%)}.iv-letterhead-date>span,.iv-letterhead-date>input,.iv-letterhead-date>.iv-example-readonly{display:inline-block;width:auto;vertical-align:baseline}.iv-letterhead-number{white-space:nowrap;font-size:calc(10 * var(--iv-point));font-weight:400}.iv-paper[data-layout=letterhead]{font-size:calc(var(--iv-body-size,10) * var(--iv-point,1px))}.iv-letterhead-title .iv-heading{max-width:60%}.iv-letterhead-services[data-totals=underlined] .iv-totals>p:first-child>span{padding-top:calc(5 * var(--iv-point));border-top:calc(.5 * var(--iv-point)) solid #111}

.iv-reference-panel [data-reference-ai-status]{white-space:pre-line}

/* Platform attribution is fixed output, separate from editable design wording. */
.iv-platform-branding{color:#747b83;font-family:InvoiceSans,Arial,sans-serif;font-size:10px;font-weight:400;line-height:1.2;text-align:center;overflow-wrap:anywhere;user-select:text}.iv-paper:not([data-layout=letterhead])>.iv-platform-branding{position:relative;margin:48px 0 0}.iv-letterhead-preview>.iv-platform-branding{position:absolute;left:0;width:100%;margin:0;font-size:calc(7 * var(--iv-point,1px))}

/* Column headings are writing fields; numeric controls only style numeric amounts. */
.iv-table-head>div,.iv-service-main>div{min-width:0}.iv-table-head .iv-edit{white-space:pre-wrap;overflow-wrap:anywhere;font-size:inherit;line-height:1.25}.iv-service-main textarea.iv-edit,.iv-service-main .iv-example-readonly{overflow-wrap:anywhere}
/* Both header and rows use one point-scaled layout, including every toggle state. */
.iv-paper[data-layout=letterhead] .iv-table-head,.iv-paper[data-layout=letterhead] .iv-service-main{grid-template-columns:minmax(0,1fr) calc(95 * var(--iv-point,1px)) calc(45 * var(--iv-point,1px)) calc(90 * var(--iv-point,1px));column-gap:calc(6 * var(--iv-point,1px))}
.iv-paper[data-layout=letterhead][data-quantity=false] .iv-table-head,.iv-paper[data-layout=letterhead][data-quantity=false] .iv-service-main{grid-template-columns:minmax(0,1fr) calc(45 * var(--iv-point,1px)) calc(90 * var(--iv-point,1px))}
.iv-paper[data-layout=letterhead][data-tax=false] .iv-table-head,.iv-paper[data-layout=letterhead][data-tax=false] .iv-service-main{grid-template-columns:minmax(0,1fr) calc(95 * var(--iv-point,1px)) calc(90 * var(--iv-point,1px))}
.iv-paper[data-layout=letterhead][data-quantity=false][data-tax=false] .iv-table-head,.iv-paper[data-layout=letterhead][data-quantity=false][data-tax=false] .iv-service-main{grid-template-columns:minmax(0,1fr) calc(90 * var(--iv-point,1px))}
.iv-paper[data-layout=letterhead] .iv-price-inputs{gap:calc(3 * var(--iv-point,1px));flex-wrap:wrap;justify-content:flex-end}.iv-paper[data-layout=letterhead] .iv-price-inputs input.iv-decimal{width:calc(43 * var(--iv-point,1px))!important;max-width:100%;font-size:inherit!important;padding:0;text-align:right}.iv-paper[data-layout=letterhead] .iv-price-inputs input.iv-decimal:first-child{width:calc(32 * var(--iv-point,1px))!important}.iv-paper[data-layout=letterhead] .iv-tax-cell input.iv-decimal{width:calc(30 * var(--iv-point,1px))!important;max-width:100%;font-size:inherit!important;padding:0}.iv-paper[data-layout=letterhead] .iv-service-main .iv-tax-cell span{font-size:inherit}
/* Numeric headings and their values share the same column ending. */
.iv-table-head>.iv-quantity-cell,.iv-table-head>.iv-tax-cell,.iv-table-head>div:last-child{text-align:right}.iv-table-head .iv-edit{padding-left:0;padding-right:0;text-align:inherit}.iv-service-main .iv-tax-cell{text-align:right;white-space:nowrap}.iv-service-main .iv-price-inputs{justify-content:flex-end}
/* Optional freehand mode uses an A4 coordinate stage for every saved style. */
.iv-freehand-options{border-top:1px solid #dce4eb;padding:12px 0}.iv-freehand-properties{background:#eef3ff;border:1px solid #b8c8e8;border-radius:8px;padding:12px;margin-bottom:12px}.iv-freehand-properties[hidden]{display:none}.iv-paper[data-freehand=true]{padding:0;min-width:595px;min-height:0;border-top:0;font-size:calc(var(--iv-body-size,10) * var(--iv-point,1px));line-height:1.2}.iv-freehand-preview{position:relative;min-height:calc(841.89 * var(--iv-point,1px));overflow:visible}.iv-freehand-section{position:absolute;box-sizing:border-box;margin:0;padding:0;line-height:1.2;color:#111}.iv-freehand-content{min-width:0;overflow-wrap:anywhere}.iv-freehand-issuer{font-weight:700}.iv-paper[data-freehand=true] .iv-edit{font:inherit;line-height:1.2;padding:0;min-height:calc(12 * var(--iv-point,1px));border-radius:0;text-align:inherit}.iv-paper[data-freehand=true] .iv-heading{font-size:inherit!important;line-height:inherit;margin:0;width:100%;max-width:none;color:inherit}.iv-paper[data-freehand=true] .iv-edit::placeholder{font-size:inherit}.iv-freehand-section[data-freehand-section=title]{font-weight:700}.iv-freehand-section[data-freehand-section=date] .iv-edit{display:inline-block;width:auto;vertical-align:baseline}.iv-freehand-section[data-freehand-section=date] label{display:block}.iv-freehand-section[data-freehand-section=tax],.iv-freehand-section[data-freehand-section=notes]{color:#677079}.iv-freehand-logo .iv-freehand-content{height:100%}.iv-freehand-logo .iv-logo{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;object-position:left top}.iv-freehand-preview .iv-services{margin:0}.iv-freehand-preview .iv-table-head,.iv-freehand-preview .iv-service-main{display:block;position:relative;padding:0;min-width:0;gap:0}.iv-freehand-preview .iv-table-head{margin:0 0 calc(6 * var(--iv-point,1px));padding:0;font-weight:700}.iv-freehand-preview [data-freehand-column],.iv-freehand-preview [data-freehand-value]{position:absolute;box-sizing:border-box;min-width:0;margin:0;overflow-wrap:anywhere}.iv-freehand-preview [data-freehand-value=quantity]{display:flex;justify-content:flex-end;gap:calc(3 * var(--iv-point,1px));flex-wrap:wrap}.iv-freehand-preview .iv-service-row{padding:0;margin:0;font-size:inherit;border:0}.iv-freehand-preview .iv-service-main output{font-size:inherit;line-height:1.2;padding:0;white-space:nowrap}.iv-freehand-preview .iv-price-inputs input.iv-decimal{font-size:inherit!important;max-width:100%;width:calc(43 * var(--iv-point,1px))!important;padding:0;text-align:right}.iv-freehand-preview .iv-price-inputs input.iv-decimal:first-child{width:calc(32 * var(--iv-point,1px))!important}.iv-freehand-preview .iv-tax-cell input.iv-decimal{font-size:inherit!important;width:calc(30 * var(--iv-point,1px))!important;padding:0}.iv-freehand-preview .iv-service-main .iv-tax-cell span{font-size:inherit}.iv-freehand-preview .iv-totals{margin:0;width:100%;text-align:left}.iv-freehand-preview .iv-totals p,.iv-freehand-preview .iv-totals strong{margin:0;font-size:inherit;line-height:1.2;min-height:var(--iv-total-leading,24px);gap:calc(18 * var(--iv-point,1px))}.iv-freehand-preview .iv-totals p>span,.iv-freehand-preview .iv-totals strong>span{text-align:right;white-space:nowrap}.iv-freehand-preview .iv-line-tools:empty{display:none}.iv-freehand-preview .iv-section-tools{margin:0}.iv-freehand-preview>.iv-platform-branding{position:absolute;left:0;width:100%;margin:0;font-size:calc(7 * var(--iv-point,1px))}.iv-paper[data-freehand=true]>.iv-payment-summary{margin:0;padding:22px 34px}.iv-freehand-draft{margin:0;padding:6px 18px;color:#a4291e;font-size:11px;font-weight:700}.iv-freehand-selected{outline:1px dashed #3659df;outline-offset:2px}.iv-freehand-handle{position:absolute;z-index:6;width:22px;height:22px;min-width:22px;min-height:22px;padding:0;border:1px solid #8aa6e9;border-radius:4px;background:#f0f4ff;color:#2749b4;font-size:14px;line-height:20px;touch-action:none;opacity:.2;cursor:move}.iv-freehand-move{left:0;top:-23px}.iv-freehand-resize{right:-11px;top:-23px;cursor:ew-resize}.iv-freehand-section:hover>.iv-freehand-handle,[data-freehand-column]:hover>.iv-freehand-handle,.iv-freehand-selected>.iv-freehand-handle,.iv-freehand-handle:focus-visible{opacity:1}.iv-freehand-handle:focus-visible{outline:2px solid #244ac3;outline-offset:2px}.iv-document-area:has(.iv-paper[data-freehand=true]){overflow-x:auto}

/* Table handles sit outside its frame; column handles sit above their labels. */
.iv-freehand-services>.iv-freehand-move{left:-23px;top:0}.iv-freehand-services>.iv-freehand-resize{right:-23px;top:0}
.iv-service-controls{width:100%;min-width:0;border-top:1px solid #dce4eb;padding-top:14px}.iv-service-controls h3{margin:0 0 12px}.iv-service-controls>.btn{margin:4px 0 8px}.iv-service-control-line{min-width:0;margin:14px 0;padding:12px;border:1px solid #d6e1ea;border-radius:8px;background:#fff}.iv-service-control-line legend{font-weight:700;padding:0 5px}.iv-service-control-line .iv-control-pair{gap:10px}.iv-controls .iv-service-controls input:not([type=checkbox]),.iv-controls .iv-service-controls select,.iv-controls .iv-service-controls textarea{box-sizing:border-box;width:100%;min-width:0;min-height:44px;font-size:16px;padding:9px;border:1px solid #c7d4df;border-radius:6px;background:#fff;color:#183247}.iv-service-controls textarea{resize:vertical}.iv-service-control-line output{display:block;margin:8px 0;font-weight:600}.iv-service-controls .iv-control-label{min-width:0}.iv-service-control-line>.btn{min-height:44px}@media(max-width:800px){.iv-controls>.iv-service-controls{flex-basis:100%}.iv-service-control-line .iv-control-pair{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
