.invoice-editor-page{--editor-ink:#1d3028;--editor-forest:#214d3c;--editor-sage:#748879;--editor-line:#e6e9e2;--editor-soft:#f1f3ed;min-height:100vh;color:var(--editor-ink);background:#faf9f6;padding:20px 0 80px}.editor-shell{max-width:1440px}.editor-loading{text-align:center;color:#64756a;padding:120px 0}.editor-topbar{justify-content:space-between;align-items:center;gap:16px;min-height:42px;margin-bottom:37px;display:flex}.editor-back{color:var(--editor-forest);letter-spacing:-.02em;align-items:center;gap:9px;font-weight:750;text-decoration:none;display:inline-flex}.editor-back svg{transition:transform .18s}.editor-back:hover svg{transform:translate(-3px)}.editor-topbar-actions{align-items:center;gap:8px;display:flex}.save-indicator{color:#77837b;align-items:center;gap:7px;margin-right:8px;font-size:12px;font-weight:600;display:inline-flex}.save-indicator-saved{color:#377152}.save-indicator-error{color:#a7463d}.spin{animation:.95s linear infinite editor-spin}@keyframes editor-spin{to{transform:rotate(360deg)}}.editor-quiet-button,.editor-secondary-button,.editor-add-item,.preview-print-button,.icon-button{color:#314a3d;cursor:pointer;font:inherit;background:#fff;border:1px solid #dfe4dc;border-radius:10px;justify-content:center;align-items:center;gap:8px;transition:border-color .18s,background .18s,transform .18s;display:inline-flex}.editor-quiet-button{min-height:38px;padding:0 12px;font-size:12px;font-weight:650}.editor-quiet-button:hover,.editor-secondary-button:hover,.editor-add-item:hover,.preview-print-button:hover{background:#f6f8f3;border-color:#aebcaf}.editor-quiet-button:active,.editor-secondary-button:active{transform:translateY(1px)}.editor-page-heading{justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:28px;display:flex}.editor-eyebrow,.editor-step{color:#66806f;letter-spacing:.13em;font-size:10px;font-weight:800;display:block}.editor-page-heading h1{letter-spacing:-.055em;color:var(--editor-ink);margin:8px 0 4px;font-size:clamp(30px,3vw,42px);line-height:1.08}.editor-page-heading p{color:#708076;margin:0;font-size:14px}.editor-secondary-button{white-space:nowrap;min-height:40px;padding:0 13px;font-size:12px;font-weight:700}.editor-secondary-button.compact{min-height:34px;font-size:11px}.editor-heading-actions{align-items:center;gap:9px;display:flex}.editor-pdf-button-top{white-space:nowrap;min-height:40px;padding:0 14px}.editor-missing{max-width:760px;padding-top:90px;padding-bottom:100px}.editor-missing h1{color:#1d3028;letter-spacing:-.045em;margin:9px 0;font-size:clamp(28px,4vw,40px)}.editor-missing p{color:#748278;margin:0 0 20px;font-size:14px}.editor-notice{color:#285e3d;background:#f0f7ed;border:1px solid #d5e6d8;border-radius:11px;margin:-10px 0 20px;padding:11px 14px;font-size:13px}.editor-notice-error{color:#8e3c33;background:#fff5f1;border-color:#f0d5cf}.editor-layout{grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);align-items:start;gap:clamp(26px,4vw,58px);display:grid}.editor-form-column{min-width:0}.editor-section{border-bottom:1px solid #e5e8e1;padding:26px 0 28px}.editor-section-first{padding-top:0}.editor-section-heading{justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px;display:flex}.editor-section-heading h2{color:#20352a;letter-spacing:-.035em;margin:5px 0 0;font-size:20px;line-height:1.2}.editor-step{font-size:9px}.editor-fields-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 13px;display:grid}.editor-field{color:#43574a;flex-direction:column;gap:7px;min-width:0;font-size:11px;font-weight:700;display:flex}.editor-field>span:first-child{justify-content:space-between;gap:8px;display:flex}.editor-field>span small{color:#99a29b;font-size:10px;font-weight:500}.editor-field input,.editor-field textarea,.editor-field select{color:#263a2f;background:#fff;border:1px solid #dfe4dc;border-radius:9px;outline:0;width:100%;min-width:0;padding:10px 11px;font-size:13px;font-weight:500;line-height:1.4;transition:border-color .16s,box-shadow .16s}.editor-field input,.editor-field select{height:41px}.editor-field textarea{resize:vertical;min-height:72px}.editor-field input::placeholder,.editor-field textarea::placeholder{color:#adb5ae;font-weight:450}.editor-field input:focus,.editor-field textarea:focus,.editor-field select:focus{border-color:#72907b;box-shadow:0 0 0 3px #2a644217}.editor-field-wide{grid-column:1/-1}.editor-add-item{color:#285a40;min-height:34px;padding:0 11px;font-size:11px;font-weight:700}.line-items-list{gap:11px;display:grid}.line-item-card{background:#ffffffb8;border:1px solid #e3e7e0;border-radius:12px;padding:13px}.line-item-top{justify-content:space-between;align-items:center;margin:-2px 0 9px;display:flex}.line-item-number{color:#829087;letter-spacing:.1em;text-transform:uppercase;font-size:9px;font-weight:800}.icon-button{color:#738178;background:0 0;border-color:#0000;width:31px;height:31px}.icon-button:hover{color:#9a453b;background:#fff8f6;border-color:#ead8d5}.icon-button:disabled{opacity:.35;cursor:not-allowed}.icon-button.danger:hover{color:#9a453b}.line-item-numbers{grid-template-columns:.8fr 1.15fr .8fr;gap:10px;margin-top:11px;display:grid}.editor-totals-fields{max-width:520px}.editor-shipping-hint{color:#86938a;margin:9px 0 0;font-size:10px;line-height:1.45}.brand-controls{grid-template-columns:minmax(0,1fr) minmax(135px,.45fr);align-items:center;gap:19px;display:grid}.brand-control-label{color:#43574a;font-size:11px;font-weight:750;display:block}.logo-upload-row{align-items:center;gap:11px;margin-top:9px;display:flex}.logo-thumbnail{color:#78907c;background:#f4f6f1;border:1px dashed #cfd8cd;border-radius:10px;flex:none;place-items:center;width:43px;height:43px;display:grid;overflow:hidden}.logo-thumbnail img{object-fit:contain;width:100%;height:100%}.logo-upload-row>div:nth-child(2){min-width:0}.logo-upload-row p{color:#929d95;margin:5px 0 0;font-size:9px}.logo-upload-row>.icon-button{margin-left:auto}.accent-picker{align-self:end}.color-input-wrap{background:#fff;border:1px solid #dfe4dc;border-radius:9px;align-items:center;gap:9px;height:41px;padding:5px 9px;display:flex}.color-input-wrap input{cursor:pointer;background:0 0;border:0;border-radius:6px;width:27px;height:27px;padding:0;overflow:hidden}.color-input-wrap input::-webkit-color-swatch-wrapper{padding:0}.color-input-wrap input::-webkit-color-swatch{border:0;border-radius:5px}.color-input-wrap code{color:#637369;font-size:10px}.layout-choice-heading{justify-content:space-between;align-items:center;gap:10px;margin:23px 0 10px;display:flex}.layout-choice-heading .muted{color:#929d95;font-size:10px}.layout-choices{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.layout-choice{text-align:left;color:#33483a;cursor:pointer;background:#fff;border:1px solid #e0e5dd;border-radius:10px;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;padding:8px;transition:border-color .16s,box-shadow .16s,transform .16s;display:flex}.layout-choice:hover{border-color:#aabca9;transform:translateY(-1px)}.layout-choice-active{border-color:#618168;box-shadow:0 0 0 2px #305b3b1c}.layout-choice strong{font-size:10px}.layout-choice small{color:#8a958d;font-size:8px;line-height:1.35}.layout-swatch{background:#fff;border:1px solid #e7eae5;border-radius:6px;flex-direction:column;gap:4px;width:100%;height:47px;padding:8px;display:flex;position:relative;overflow:hidden}.layout-swatch i{background:#dfe6df;border-radius:3px;width:74%;height:3px;display:block}.layout-swatch i:nth-child(2){width:51%}.layout-swatch b{background:#28583f;border-radius:2px;width:26%;height:10px;position:absolute;bottom:8px;right:8px}.layout-swatch-modern{background:linear-gradient(#28583f 0 14px,#fff 14px);border-color:#d5e1d8}.layout-swatch-modern i:first-child{margin-top:12px}.layout-swatch-minimal{background:#fbfcfa;border-color:#0000}.layout-swatch-minimal b{border-radius:0;height:2px}.layout-swatch-bold{background:#eef2ec;border-color:#d4ddd4}.layout-swatch-bold i:first-child{background:#28583f;height:7px}.layout-swatch-bold b{width:34%;height:14px}.editor-compliance-note{color:#6c7059;background:#f8f7ed;border:1px solid #e7e8d7;border-radius:11px;gap:10px;margin-top:22px;padding:14px;display:flex}.editor-compliance-note svg{color:#a19a5c;flex:none;margin-top:1px}.editor-compliance-note p{margin:0;font-size:10px;line-height:1.55}.editor-compliance-note strong{color:#51583f}.editor-preview-column{min-width:0;position:sticky;top:18px}.preview-toolbar{justify-content:space-between;align-items:center;gap:12px;margin:0 0 11px;display:flex}.preview-toolbar>div{align-items:center;gap:8px;display:flex}.preview-toolbar strong{color:#304639;font-size:12px}.preview-live-dot{background:#50a36d;border-radius:50%;width:7px;height:7px;box-shadow:0 0 0 3px #e4f1e7}.preview-item-count{color:#9aa39c;margin-left:4px;font-size:10px}.preview-print-button{color:#52685a;width:34px;height:34px}.preview-sheet{--preview-accent:#245a45;color:#26382d;background:#fff;border:1px solid #e9e9e2;border-radius:3px;min-height:580px;padding:31px clamp(19px,2.7vw,34px) 22px;font-family:Arial,Helvetica,sans-serif;position:relative;overflow:hidden;box-shadow:0 16px 46px #2b312614}.preview-accent-rule{background:var(--preview-accent);width:100%;height:4px;position:absolute;top:0;left:0}.preview-header{justify-content:space-between;gap:12px;min-height:79px;display:flex}.preview-brand{align-items:flex-start;gap:9px;min-width:0;display:flex}.preview-logo{object-fit:contain;flex:none;width:34px;height:34px}.preview-brand h3{overflow-wrap:anywhere;color:#26382d;max-width:185px;margin:0 0 4px;font-size:12px;line-height:1.25}.preview-brand p{overflow-wrap:anywhere;color:#89928a;margin:2px 0;font-size:8px;line-height:1.35}.preview-title-block{text-align:right;flex-direction:column;align-items:flex-end;gap:5px;display:flex}.preview-title-block>span{color:var(--preview-accent);letter-spacing:-.04em;text-transform:uppercase;font-size:clamp(15px,2vw,20px);font-weight:800}.preview-title-block>strong{color:#66736a;font-size:9px}.preview-status{color:#737e75;text-transform:uppercase;letter-spacing:.06em;background:#f0f2ee;border-radius:20px;padding:3px 7px;font-size:7px;font-weight:700}.preview-status-paid{color:#36724e;background:#eaf4e9}.preview-status-sent{color:#987038;background:#faf2df}.preview-parties{border-top:1px solid #edf0eb;grid-template-columns:1.2fr .8fr;gap:14px;padding:17px 0 19px;display:grid}.preview-parties section{flex-direction:column;align-items:flex-start;gap:4px;min-width:0;display:flex}.preview-kicker{color:var(--preview-accent);letter-spacing:.12em;text-transform:uppercase;font-size:7px;font-weight:800}.preview-parties section>strong{overflow-wrap:anywhere;color:#34473a;max-width:100%;font-size:10px}.preview-parties p{overflow-wrap:anywhere;color:#838d85;margin:0;font-size:8px;line-height:1.45}.preview-date-grid>div{justify-content:space-between;gap:6px;width:100%;display:flex}.preview-date-grid span{color:#89928a;font-size:8px}.preview-date-grid strong{color:#4b5d50;text-align:right;font-size:8px}.preview-items-wrap{overflow-x:auto}.preview-items{border-collapse:collapse;width:100%;font-size:8px}.preview-items th{color:#728076;letter-spacing:.05em;text-align:right;text-transform:uppercase;background:#f5f7f3;padding:8px 4px;font-size:7px}.preview-items th:first-child{text-align:left;border-radius:5px 0 0 5px}.preview-items th:last-child{border-radius:0 5px 5px 0}.preview-items td{color:#66736a;text-align:right;white-space:nowrap;border-bottom:1px solid #edf0eb;padding:10px 4px}.preview-items td:first-child{white-space:normal;text-align:left;width:48%}.preview-items td:last-child{color:#384b3e;font-weight:700}.preview-items td strong{overflow-wrap:anywhere;color:#485a4d;font-size:8px;display:block}.preview-items td small{color:#96a098;margin-top:3px;font-size:7px;display:block}.preview-items .preview-empty{color:#9ca69e;text-align:center;padding:18px 4px}.preview-summary{width:min(100%,210px);margin:16px 0 0 auto}.preview-summary>div{color:#818c83;justify-content:space-between;gap:8px;margin-bottom:7px;font-size:8px;display:flex}.preview-summary>div strong{color:#536258;font-weight:600}.preview-summary .preview-total{color:#3b4d41;border-top:1px solid #e6eae4;align-items:center;margin-top:10px;padding-top:10px;font-size:10px;font-weight:700}.preview-summary .preview-total strong{color:var(--preview-accent);font-size:14px}.preview-footer{border-top:1px solid #edf0eb;gap:12px;margin-top:20px;padding-top:13px;display:grid}.preview-footer p{color:#818b83;overflow-wrap:anywhere;margin:4px 0 0;font-size:8px;line-height:1.5}.preview-modern .preview-header{background:color-mix(in srgb, var(--preview-accent), white 94%);margin:-31px calc(-1*clamp(19px,2.7vw,34px)) 0;padding:31px clamp(19px,2.7vw,34px) 12px}.preview-modern .preview-accent-rule{height:7px}.preview-minimal{border:0;box-shadow:0 12px 40px #2b31260f}.preview-minimal .preview-accent-rule{height:2px}.preview-minimal .preview-items th{background:0 0;border-bottom:1px solid #dee5dc}.preview-bold .preview-accent-rule{height:8px}.preview-bold .preview-title-block>span{color:#fff;background:var(--preview-accent);border-radius:3px;padding:7px 9px;font-size:13px}.preview-bold .preview-summary .preview-total{color:#fff;background:var(--preview-accent);border:0;border-radius:3px;padding:9px}.preview-bold .preview-summary .preview-total strong{color:#fff}.editor-export-panel{background:#fff;border:1px solid #e3e8df;border-radius:13px;gap:11px;margin-top:15px;padding:17px;display:grid;box-shadow:0 8px 25px #2b312609}.editor-export-panel>div:first-child strong{color:#2f4738;font-size:13px}.editor-export-panel>div:first-child p{color:#849087;margin:3px 0 0;font-size:10px}.editor-pdf-button,.editor-save-button{cursor:pointer;min-height:43px;font:inherit;border:0;border-radius:9px;justify-content:center;align-items:center;gap:9px;font-size:12px;font-weight:750;transition:filter .16s,transform .16s;display:inline-flex}.editor-pdf-button{color:#fff;background:#214d3c;box-shadow:0 5px 12px #214d3c24}.editor-pdf-button:hover:not(:disabled){filter:brightness(1.08);transform:translateY(-1px)}.editor-pdf-button:disabled{opacity:.72;cursor:progress}.editor-save-button{color:#42624c;background:#fbfcfa;border:1px solid #e2e8df;min-height:38px}.editor-save-button:hover{background:#f3f7f1}.editor-local-note{color:#9aa39c;text-align:center;margin:-2px 0 0;font-size:9px;line-height:1.4}.editor-visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;clip-path:inset(50%);border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}@media (max-width:980px){.editor-layout{grid-template-columns:minmax(0,1fr);gap:29px}.editor-preview-column{width:min(100%,620px);margin:0 auto;position:static}.preview-sheet{min-height:560px}}@media (max-width:600px){.invoice-editor-page{padding-top:12px}.editor-topbar{margin-bottom:27px}.editor-topbar-actions{gap:5px}.editor-topbar-actions .save-indicator{margin-right:3px}.save-indicator span{display:none}.editor-quiet-button{width:36px;padding:0}.editor-quiet-button span{display:none}.editor-page-heading{flex-wrap:wrap;align-items:flex-start;margin-bottom:22px}.editor-page-heading .editor-secondary-button{min-height:35px;padding:0 9px;font-size:10px}.editor-heading-actions{width:100%}.editor-pdf-button-top{flex:1;min-height:39px}.editor-page-heading h1{font-size:31px}.editor-page-heading p{max-width:245px;font-size:12px;line-height:1.45}.editor-fields-grid{gap:12px 9px}.editor-field{font-size:10px}.editor-field input,.editor-field textarea,.editor-field select{padding:9px;font-size:12px}.line-item-numbers{grid-template-columns:.78fr 1.1fr .78fr;gap:7px}.line-item-card{padding:11px}.brand-controls{grid-template-columns:1fr;gap:15px}.accent-picker{max-width:170px}.layout-choice{padding:6px}.layout-choice small{display:none}.layout-swatch{height:39px}.preview-sheet{min-height:0;padding-left:18px;padding-right:18px}.preview-modern .preview-header{margin-left:-18px;margin-right:-18px;padding-left:18px;padding-right:18px}.preview-parties{grid-template-columns:1.1fr .9fr}}@media print{body>.skip-link,body>.site-header,body>.site-footer{display:none!important}.invoice-editor-page{background:#fff;padding:0}.editor-topbar,.editor-page-heading,.editor-form-column,.preview-toolbar,.editor-export-panel{display:none!important}.editor-layout{display:block}.editor-preview-column{width:100%;position:static}.preview-sheet{width:100%;min-height:0;box-shadow:none;border:0}@page{size:A4;margin:14mm}.editor-notice{display:none!important}.editor-shell{max-width:none;padding:0}.preview-sheet{color:#25382d;-webkit-print-color-adjust:exact;print-color-adjust:exact;padding:10mm 0 0}.preview-header{break-inside:avoid}.preview-brand h3{font-size:15pt}.preview-brand p,.preview-parties p,.preview-date-grid span,.preview-date-grid strong{color:#45564a;font-size:10pt}.preview-title-block>span{font-size:25pt}.preview-title-block>strong{font-size:10pt}.preview-title-block>small{font-size:8pt}.preview-parties{break-inside:avoid;margin:7mm 0}.preview-parties section>strong{font-size:11pt}.preview-kicker{font-size:8pt}.preview-items-wrap{overflow:visible}.preview-items{font-size:10pt}.preview-items th{font-size:8pt}.preview-items td strong{font-size:10pt}.preview-items td small{color:#52604e;font-size:8pt}.preview-items thead{display:table-header-group}.preview-items tr{break-inside:avoid}.preview-summary{break-inside:avoid;width:75mm;margin-top:7mm}.preview-summary>div{color:#52604e;font-size:10pt}.preview-summary .preview-total{font-size:12pt}.preview-summary .preview-total strong{font-size:15pt}.preview-footer{break-inside:avoid}.preview-footer p{color:#52604e;white-space:pre-wrap;font-size:10pt}.preview-modern .preview-header{margin:0;padding:4mm}}.preview-address,.preview-footer p{white-space:pre-wrap}.editor-export-panel{box-shadow:none;background:0 0;border:0;border-radius:0;padding:16px 0 0}.editor-section-heading h2,.editor-page-heading h1{margin:0}.layout-choice-heading{margin-top:22px}.preview-status,.preview-status-paid,.preview-status-sent{background:0 0;border-radius:0;padding:0}
