.app-shell{grid-template-rows:auto 1fr auto;min-height:100vh;display:grid}.app-header{justify-content:space-between;align-items:center;width:100%;max-width:1280px;margin:0 auto;padding:22px 32px;display:flex}.brand{color:var(--ink);letter-spacing:.08em;align-items:center;gap:11px;font-size:1.15rem;font-weight:800;text-decoration:none;display:inline-flex}.brand-mark{color:#fff;background:var(--accent);border-radius:10px;place-items:center;width:34px;height:34px;font-family:Georgia,serif;font-size:1.1rem;display:grid}.privacy-note{color:var(--muted);align-items:center;gap:8px;font-size:.84rem;display:flex}.status-dot{background:var(--accent);width:8px;height:8px;box-shadow:0 0 0 4px var(--accent-soft);border-radius:50%}.workspace{width:100%;max-width:1280px;margin:0 auto;padding:12px 32px 48px}.editor-toolbar{box-sizing:border-box;border:1px solid var(--line);background:var(--surface);border-radius:18px;flex-wrap:nowrap;align-items:center;gap:12px;width:100%;min-height:72px;margin:0 auto 18px;padding:12px 14px;display:flex;box-shadow:0 8px 24px #15251f0d}.toolbar-controls{display:contents}.mobile-toolbar-header{display:none}.toolbar-setting{border-right:1px solid var(--line);flex:0 0 118px;gap:2px;min-width:118px;padding:4px 12px;display:grid}.toolbar-label{color:var(--muted);letter-spacing:.1em;text-transform:uppercase;font-size:.66rem;font-weight:800}.toolbar-value,.toolbar-setting select{color:var(--ink);font-weight:700}.toolbar-setting select{cursor:pointer;background:0 0;border:0;outline:0;padding:0}.toolbar-button{min-height:40px;color:var(--ink);white-space:nowrap;cursor:pointer;background:#fff;border:1px solid #c7d7cf;border-radius:10px;flex:none;align-items:center;gap:7px;padding:9px 12px;font-size:.78rem;font-weight:750;display:inline-flex}.toolbar-button:hover{border-color:var(--accent);background:var(--accent-soft)}.history-count{color:#fff;background:var(--accent);border-radius:999px;place-items:center;min-width:20px;height:20px;padding:0 6px;font-size:.67rem;display:inline-grid}.export-button{color:#fff;background:var(--accent);cursor:pointer;border:0;border-radius:12px;margin-left:auto;padding:11px 16px;font-weight:750;transition:background .16s,transform .16s}.export-button:hover{background:var(--accent-dark);transform:translateY(-1px)}.export-button:disabled{opacity:.65;cursor:wait;transform:none}.save-status{color:var(--muted);white-space:nowrap;flex:none;margin:0 4px 0 auto;font-size:.74rem}.save-status+.export-button{margin-left:0}.export-error{color:#8b2925;background:#fff5f4;border:1px solid #e2b7b4;border-radius:10px;width:100%;margin:-6px auto 14px;padding:10px 14px;font-size:.8rem}.invoice-viewport{background:#dfe8e4;border-radius:24px;width:100%;padding:32px;overflow-x:auto}.invoice-pages{gap:28px;width:max-content;min-width:100%;display:grid}.invoice-page{--invoice-accent:#1b6a50;--invoice-accent-soft:#e3f2eb;box-sizing:border-box;color:#1c2823;width:210mm;min-width:210mm;height:auto;min-height:297mm;box-shadow:var(--page-shadow);background:#fff;margin:0 auto;padding:18mm;position:relative;overflow:visible}.invoice-accent{background:var(--invoice-accent-fill,var(--invoice-accent));height:10px;position:absolute;inset:0 0 auto}.invoice-header{grid-template-columns:minmax(0,1fr) 170px minmax(0,1fr);align-items:start;gap:16px;min-height:105px;display:grid}.business-section{gap:3px;width:62%;min-width:0;margin-top:28px;display:grid}.invoice-logo-slot{min-width:0;min-height:105px}.invoice-logo{object-fit:contain;object-position:left top;max-width:230px;max-height:105px;display:block}.logo-uploader{width:min(230px,100%);min-height:94px;color:var(--invoice-accent);background:var(--invoice-accent-soft);text-align:center;cursor:pointer;border:1.5px dashed #9db5aa;border-radius:14px;align-content:center;place-items:center;gap:3px;margin:0;display:grid;overflow:hidden}.logo-uploader input{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.logo-uploader small{color:#66766f;font-size:.65rem}.logo-uploader.has-logo{background:0 0;border:0;place-items:start}.logo-uploader img{object-fit:contain;max-width:230px;max-height:105px;display:block}.repeated-logo{object-fit:contain;object-position:left top;width:min(230px,100%);height:94px;display:block}.logo-plus{font-size:1.4rem;line-height:1}.logo-error{color:#a52828;margin:-10px 0 10px;font-size:.72rem}.remove-logo-button{color:#8b2925;cursor:pointer;background:#fff5f4;border:1px solid #d8aaa7;border-radius:7px;width:max-content;margin:-10px 0 10px;padding:5px 8px;font-size:.7rem}.currency-toolbar-setting{flex-basis:108px;min-width:108px}.history-clear-section{border-top:1px solid #dce5e0;justify-content:flex-end;margin-top:22px;padding-top:18px;display:flex}.history-clear-button,.history-clear-confirm-button{color:#8b2925;cursor:pointer;background:#fff5f4;border:1px solid #e2b7b4;border-radius:9px;padding:8px 11px;font-size:.74rem;font-weight:750}.history-clear-confirmation{justify-content:space-between;align-items:center;gap:18px;width:100%;display:flex}.history-clear-confirmation p{color:#8b2925;font-size:.75rem}.history-clear-confirmation>div{gap:8px;display:flex}.editable-field{width:100%;min-width:0;color:inherit;overflow-wrap:anywhere;background:0 0;border:1px solid #0000;border-radius:6px;padding:5px 7px;line-height:1.4;transition:border-color .15s,background .15s,box-shadow .15s}.editable-field:hover{background:var(--invoice-accent-soft)}.editable-field:focus{border-color:var(--invoice-accent);box-shadow:0 0 0 3px var(--invoice-accent-soft);background:#fff;outline:none}.editable-field::placeholder{color:#89968f;opacity:1}textarea.editable-field{resize:none;overflow:hidden}.compact-textarea{min-height:30px}.business-name{font-size:1.2rem;font-weight:800}.address-field{min-height:56px}.invoice-heading{text-align:right;min-width:0}.invoice-heading p{color:var(--invoice-accent);letter-spacing:.14em;text-transform:uppercase;margin-bottom:4px;font-size:.72rem;font-weight:800}.invoice-number{overflow-wrap:anywhere;color:#1c2823;text-align:right;min-height:42px;font-size:1.8rem;font-weight:800;display:block}.repeated-invoice-number{overflow-wrap:anywhere;color:#1c2823;text-align:right;font-size:1.8rem;font-weight:800;line-height:1.25}.invoice-page-number{color:#607068;letter-spacing:.04em;text-align:center;padding-top:8px;font-size:.72rem}.invoice-details{grid-template-columns:minmax(0,1fr) minmax(220px,.8fr);gap:56px;margin-top:34px;display:grid}.client-section{gap:3px;min-width:0;display:grid}.client-name{font-size:1rem;font-weight:800}.invoice-label,.date-section label>span{color:var(--invoice-accent);letter-spacing:.1em;text-transform:uppercase;margin-bottom:4px;font-size:.67rem;font-weight:800;display:block}.date-section{align-content:start;gap:16px;min-width:0;display:grid}.invoice-table-wrap{margin-top:34px;overflow-x:auto}.is-continuation-page .invoice-table-wrap{margin-top:18px}.invoice-table{border-collapse:separate;border-spacing:0;width:100%;font-size:.82rem}.invoice-table th{color:var(--invoice-on-accent,#fff);background:var(--invoice-accent-fill,var(--invoice-accent));letter-spacing:.06em;text-align:right;text-transform:uppercase;padding:11px 9px;font-size:.66rem}.invoice-table th:first-child,.invoice-table td:first-child{text-align:left}.invoice-table td{text-align:right;vertical-align:top;border-bottom:1px solid #e1e6e3;padding:12px 6px}.invoice-table th:first-child{width:48%}.invoice-table th:nth-child(2){width:10%}.invoice-table th:nth-child(3),.invoice-table th:nth-child(4){width:16%}.item-action-heading{width:36px}.item-description{min-height:48px}.number-field{text-align:right}.money-input{align-items:center;display:flex}.money-input span{color:#607068}.item-amount{white-space:nowrap;font-weight:700;padding-top:18px!important}.remove-item-button{color:#a52828;cursor:pointer;background:#fae8e8;border:0;border-radius:8px;place-items:center;width:28px;height:28px;font-size:1.1rem;display:grid}.remove-item-button:disabled{opacity:.35;cursor:not-allowed}.add-item-button{color:var(--invoice-accent);background:var(--invoice-accent-soft);cursor:pointer;border:1px solid #b8cec4;border-radius:9px;margin-top:13px;padding:8px 11px;font-weight:750}.invoice-lower-section{grid-template-columns:minmax(0,1fr) 250px;gap:56px;margin-top:48px;display:grid}.is-summary-only .invoice-lower-section{margin-top:18px}.invoice-copy{gap:24px;min-width:0;display:grid}.invoice-copy textarea{min-height:74px}.invoice-summary{min-width:0}.invoice-summary dl{gap:13px;display:grid}.invoice-summary dl>div{justify-content:space-between;align-items:center;gap:28px;font-size:.82rem;display:flex}.invoice-summary dd{font-weight:700}.tax-row dd{justify-content:flex-end;align-items:center;gap:2px;display:flex}.tax-input{text-align:right;width:70px}.invoice-total{border-top:2px solid var(--invoice-accent);color:var(--invoice-accent);margin-top:4px;padding-top:16px;font-weight:800;font-size:1.05rem!important}.app-footer{color:var(--muted);text-align:center;padding:0 32px 28px;font-size:.76rem}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.dialog-backdrop{z-index:100;background:#0a18128c;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.history-dialog{color:#173c2c;background:#fff;border-radius:20px;width:min(100%,720px);max-height:min(760px,100vh - 48px);padding:28px;overflow-y:auto;box-shadow:0 24px 70px #0a181247}.history-dialog-header{justify-content:space-between;align-items:flex-start;gap:24px;display:flex}.history-eyebrow{color:var(--accent);letter-spacing:.12em;text-transform:uppercase;font-size:.68rem;font-weight:800}.history-dialog h2{margin:4px 0 0;font-size:1.45rem}.history-close-button{color:#42564d;cursor:pointer;background:#fff;border:1px solid #d5e0db;border-radius:10px;place-items:center;width:36px;height:36px;font-size:1.25rem;display:grid}.history-description{color:#607068;margin-top:12px;font-size:.82rem;line-height:1.5}.history-error{color:#8b2925;background:#fff5f4;border:1px solid #e2b7b4;border-radius:10px;margin-top:16px;padding:10px 12px;font-size:.78rem}.history-empty-state{color:#607068;text-align:center;background:#f6faf8;border:1px dashed #b8cec4;border-radius:14px;margin-top:22px;padding:28px}.history-empty-state strong{color:#173c2c;margin-bottom:5px;display:block}.history-list{gap:10px;margin:22px 0 0;padding:0;list-style:none;display:grid}.history-item{background:#fff;border:1px solid #dce5e0;border-radius:13px;justify-content:space-between;align-items:center;gap:18px;padding:14px;display:flex}.history-item-copy{gap:4px;min-width:0;display:grid}.history-item-copy strong{overflow-wrap:anywhere;font-size:.88rem}.history-item-copy small{color:#607068;font-size:.72rem}.history-item-actions,.history-delete-confirmation{flex:none;justify-content:flex-end;align-items:center;gap:8px;display:flex}.history-delete-confirmation span{color:#8b2925;font-size:.7rem}.history-open-button,.history-delete-button,.history-delete-confirm-button,.history-cancel-button{white-space:nowrap;cursor:pointer;border-radius:9px;padding:8px 10px;font-size:.74rem;font-weight:750}.history-open-button{color:var(--accent);background:var(--accent-soft);border:1px solid #b8cec4}.history-delete-button,.history-delete-confirm-button{color:#8b2925;background:#fff5f4;border:1px solid #e2b7b4}.history-cancel-button{color:#173c2c;background:#fff;border:1px solid #cbd8d2}.logo-dialog{color:#173c2c;background:#fff;border-radius:20px;width:min(100%,760px);max-height:min(800px,100vh - 48px);padding:28px;overflow-y:auto;box-shadow:0 24px 70px #0a181247}.logo-dialog h2{margin:4px 0 0;font-size:1.45rem}.logo-upload-button{width:max-content;color:var(--accent);background:var(--accent-soft);cursor:pointer;border:1px solid #b8cec4;border-radius:10px;align-items:center;margin-top:18px;padding:9px 13px;font-size:.78rem;font-weight:750;display:inline-flex}.logo-upload-button input{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.logo-library-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:22px 0 0;padding:0;list-style:none;display:grid}.logo-library-item{background:#fff;border:1px solid #dce5e0;border-radius:14px;min-width:0;padding:8px;position:relative}.logo-library-item.is-active{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}.logo-select-button{width:100%;min-width:0;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;grid-template-columns:86px minmax(0,1fr) auto;align-items:center;gap:12px;padding:6px;display:grid}.logo-preview,.logo-empty-preview,.logo-preview-placeholder{background:#f3f7f5;border-radius:9px;place-items:center;width:86px;height:58px;display:grid;overflow:hidden}.logo-preview img{object-fit:contain;max-width:78px;max-height:50px;display:block}.logo-empty-preview{color:#718079;text-transform:uppercase;font-size:.68rem;font-weight:750}.logo-library-copy{gap:4px;min-width:0;display:grid}.logo-library-copy strong{text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;overflow:hidden}.logo-library-copy small{color:#607068;font-size:.68rem}.logo-active-label{color:#fff;background:var(--accent);text-transform:uppercase;border-radius:999px;padding:4px 7px;font-size:.62rem;font-weight:800}.logo-delete-button{color:#8b2925;cursor:pointer;background:0 0;border:0;margin:4px 6px 2px auto;padding:5px 7px;font-size:.68rem;display:block}.logo-delete-confirmation{border-top:1px solid #ead3d1;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 6px 2px;padding-top:10px;display:flex}.logo-delete-confirmation p{color:#8b2925;width:100%;margin:0;font-size:.7rem;line-height:1.4}.storage-state{border:1px solid var(--line);background:var(--surface);text-align:center;border-radius:18px;align-self:start;width:min(100% - 32px,640px);margin:72px auto;padding:36px;box-shadow:0 12px 34px #15251f14}.storage-state h1{margin-bottom:10px;font-size:1.35rem}.storage-state p{color:var(--muted);margin-bottom:18px}.print-dialog{color:#173c2c;background:#fff;border-radius:20px;width:min(100%,500px);padding:32px;box-shadow:0 24px 70px #0a181247}.print-dialog .eyebrow{color:var(--accent);letter-spacing:.12em;text-transform:uppercase;margin:0;font-size:.7rem;font-weight:800}.print-dialog h2{margin:4px 0 12px}.print-dialog ul{margin:20px 0;padding-left:22px;line-height:1.8}.print-note{color:#607068;font-size:.78rem;line-height:1.5}.dialog-actions{justify-content:flex-end;gap:12px;margin-top:24px;display:flex}.primary-button,.secondary-button{cursor:pointer;border-radius:10px;padding:10px 16px}.primary-button{color:#fff;background:#173c2c;border:1px solid #173c2c}.secondary-button{color:#173c2c;background:#fff;border:1px solid #cbd8d2}.history-rename-button{color:#173c2c;white-space:nowrap;cursor:pointer;background:#fff;border:1px solid #cbd8d2;border-radius:9px;padding:8px 10px;font-size:.74rem;font-weight:750}.history-rename-form{flex:320px;justify-content:flex-end;align-items:center;gap:8px;display:flex}.history-rename-form label{flex:180px}.history-rename-input{box-sizing:border-box;color:#173c2c;width:100%;min-height:36px;font:inherit;background:#fff;border:1px solid #b8cec4;border-radius:9px;padding:7px 9px}.history-rename-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);outline:none}.invoice-page input,.invoice-page textarea,.invoice-page button{font-family:inherit}@media screen and (width>=601px) and (width<=1024px){.app-header,.workspace{padding-left:16px;padding-right:16px}.editor-toolbar{display:block}.toolbar-controls{grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:10px 12px;width:100%;display:grid}.toolbar-setting{width:100%;min-width:0;min-height:48px;padding:4px 12px}.toolbar-setting select{width:100%}.toolbar-button,.export-button{justify-content:center;width:100%;min-height:42px;margin:0}.save-status{grid-column:1/3;margin:0;padding-left:4px}.export-button{grid-column:3}.invoice-viewport{background:0 0;border-radius:0;width:calc(100% + 32px);margin-left:-16px;margin-right:-16px;padding:0 16px}.invoice-pages{width:100%;min-width:0}.invoice-page{width:min(100%,210mm);min-width:0;box-shadow:none;padding:48px}.business-section{width:75%}.invoice-details{grid-template-columns:minmax(0,1fr) minmax(180px,.75fr);gap:32px}.invoice-table{min-width:0}.invoice-lower-section{grid-template-columns:minmax(0,1fr) 220px;gap:32px}}@media screen and (width<=600px){body{overflow-x:hidden}.app-header{display:none}.workspace{padding:0 0 32px}.editor-toolbar{border-left:0;border-right:0;border-radius:0;width:100%;min-height:0;margin:0;padding:0;box-shadow:0 4px 18px #15251f14}.mobile-toolbar-header{justify-content:space-between;align-items:center;gap:16px;min-height:68px;padding:10px 16px;display:flex}.mobile-toolbar-brand{color:var(--ink);letter-spacing:.08em;align-items:center;gap:10px;font-size:1rem;font-weight:800;display:inline-flex}.mobile-toolbar-brand .brand-mark{width:34px;height:34px}.mobile-toolbar-header{box-sizing:border-box;align-items:center;gap:16px;width:100%;min-height:68px;padding:10px 16px;display:flex}.mobile-menu-button{cursor:pointer;background:#fff;border:1px solid #c7d7cf;border-radius:10px;flex:none;place-content:center;gap:5px;width:44px;height:44px;margin-left:auto;padding:0;display:grid}.mobile-menu-button span{background:var(--ink);border-radius:999px;width:20px;height:2px;transition:transform .16s,opacity .16s;display:block}.editor-toolbar[data-menu-open=true] .mobile-menu-button span:first-child{transform:translateY(7px)rotate(45deg)}.editor-toolbar[data-menu-open=true] .mobile-menu-button span:nth-child(2){opacity:0}.editor-toolbar[data-menu-open=true] .mobile-menu-button span:nth-child(3){transform:translateY(-7px)rotate(-45deg)}.toolbar-controls{display:none}.editor-toolbar[data-menu-open=true] .toolbar-controls{border-top:1px solid var(--line);grid-template-columns:1fr;gap:10px;padding:14px 16px 18px;display:grid}.toolbar-setting{border-right:0;border-bottom:1px solid var(--line);width:100%;min-width:0;min-height:54px;padding:7px 10px}.toolbar-setting select{width:100%}.toolbar-button,.export-button{justify-content:center;width:100%;min-height:46px}.save-status{text-align:center;margin:2px 0}.export-button{margin-left:0}.export-error,.validation-summary{width:calc(100% - 32px);margin:14px 16px}.validation-summary{flex-direction:column;align-items:flex-start;gap:3px}.invoice-viewport{background:0 0;border-radius:0;width:100%;margin:0;padding:0;overflow:visible}.invoice-pages{width:100%;min-width:0}.invoice-page{width:100%;min-width:0;min-height:0;box-shadow:none;padding:28px 16px 36px}.invoice-accent{height:7px}.invoice-header{grid-template-columns:1fr;gap:14px;min-height:0}.invoice-header>span[aria-hidden=true]{display:none}.invoice-logo-slot{min-height:70px}.invoice-logo{max-width:150px;max-height:70px}.invoice-heading,.invoice-number{text-align:left}.invoice-number{font-size:1.45rem}.business-section{width:100%;margin-top:28px}.invoice-details{grid-template-columns:1fr;gap:26px;margin-top:28px}.date-section{grid-template-columns:1fr;gap:16px}.invoice-table-wrap{margin-top:28px;overflow:visible}.invoice-table{min-width:0;display:block}.invoice-table thead{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.invoice-table tbody{counter-reset:invoice-line-item;gap:14px;display:grid}.invoice-table tbody tr{counter-increment:invoice-line-item;background:#fff;border:1px solid #dce5e0;border-radius:12px;grid-template-columns:1fr;gap:13px;padding:16px;display:grid;position:relative}.invoice-table tbody tr:before{content:"Line item " counter(invoice-line-item);color:var(--invoice-accent);letter-spacing:.1em;text-transform:uppercase;padding-right:48px;font-size:.66rem;font-weight:800}.invoice-table td{text-align:left;border:0;gap:5px;width:100%;padding:0;display:grid}.invoice-table td:before{color:#607068;letter-spacing:.06em;text-transform:uppercase;font-size:.64rem;font-weight:750}.invoice-table td:first-child:before{content:"Description"}.invoice-table td:nth-child(2):before{content:"Quantity"}.invoice-table td:nth-child(3):before{content:"Rate"}.invoice-table td:nth-child(4):before{content:"Amount"}.invoice-table td:nth-child(5){width:auto;position:absolute;top:10px;right:10px}.invoice-table td:nth-child(5):before{content:none}.invoice-table .item-description{min-height:58px}.invoice-table .number-field{text-align:left}.invoice-table .money-input{width:100%}.invoice-table .item-amount{text-align:left;background:#f6faf8;border-radius:6px;padding:8px!important}.remove-item-button,.add-item-button{min-width:44px;min-height:44px}.add-item-button{width:100%}.invoice-lower-section{grid-template-columns:1fr;gap:34px;margin-top:36px}.invoice-summary{width:100%;margin:0}.invoice-summary dl>div{flex-direction:column;align-items:flex-start;gap:5px}.tax-row dd{justify-content:flex-start;width:100%}.tax-row .field-error{text-align:left}.history-dialog,.logo-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:20px}.logo-library-list{grid-template-columns:1fr}.history-item,.history-delete-confirmation{flex-direction:column;align-items:stretch}.history-item-actions{width:100%}.history-item-actions button,.history-delete-confirmation button{flex:1}}@page{size:A4 portrait;margin:0}@media print{html,body,#root{background:#fff;width:210mm;margin:0;padding:0}.app-shell{min-height:0;display:block}.app-header,.editor-toolbar,.app-footer,.dialog-backdrop,.editor-only{display:none!important}.workspace,.invoice-viewport,.invoice-pages{background:#fff;width:auto;max-width:none;margin:0;padding:0;overflow:visible}.invoice-page{box-sizing:border-box;width:210mm;min-width:210mm;height:auto;min-height:297mm;box-shadow:none;break-after:page;-webkit-print-color-adjust:exact;print-color-adjust:exact;background:#fff;margin:0;padding:18mm;overflow:visible}.invoice-page *{-webkit-print-color-adjust:exact;print-color-adjust:exact}.invoice-header{grid-template-columns:minmax(0,1fr) 170px minmax(0,1fr)}.invoice-heading,.invoice-number{text-align:right}.invoice-details{grid-template-columns:minmax(0,1fr) minmax(220px,.8fr);gap:56px}.invoice-lower-section{grid-template-columns:minmax(0,1fr) 250px;gap:56px}.editable-field{box-shadow:none;background:0 0;border-color:#0000;padding-left:0;padding-right:0}textarea.editable-field{resize:none}}.validation-summary{color:#744719;background:#fff9ed;border:1px solid #d9a763;border-radius:10px;justify-content:space-between;align-items:center;gap:16px;width:100%;margin:-6px auto 14px;padding:11px 14px;font-size:.78rem;display:flex}.validation-summary span{color:#7a6449}.editable-field[aria-invalid=true]{background:#fff7f6;border-color:#b94b45}.editable-field[aria-invalid=true]:focus{border-color:#a52828;box-shadow:0 0 0 3px #a5282824}.field-error{text-align:left;margin:3px 6px 0;font-size:.66rem;font-weight:650;line-height:1.35;color:#9b302b!important}.tax-row dd{flex-wrap:wrap}.tax-row .field-error{text-align:right;width:100%;margin-right:0}@media (width<=720px){.validation-summary{flex-direction:column;align-items:flex-start;gap:3px}}@media print{.validation-summary,.field-error{display:none!important}}@media screen and (width<=600px){.history-clear-confirmation{flex-direction:column;align-items:stretch}.history-clear-confirmation>div{flex-direction:column}.history-clear-button,.history-clear-confirm-button{width:100%}}.invoice-page[data-template=modern]{--modern-ink:#17211d;--modern-line:#d9e2de;--modern-panel:#f7f9f8}.invoice-page[data-template=modern] .invoice-accent{width:7px;height:auto;inset:0 auto 0 0}.modern-masthead-card{border:1px solid var(--modern-line);background:var(--invoice-accent-soft);border-radius:20px;padding:28px 30px}.invoice-page[data-template=modern] .invoice-header{grid-template-columns:minmax(0,1fr) 64px minmax(190px,.75fr);align-items:center;gap:16px;min-height:86px}.invoice-page[data-template=modern] .invoice-logo-slot{align-items:center;min-height:86px;display:flex}.invoice-page[data-template=modern] .invoice-logo{max-width:205px;max-height:76px}.invoice-page[data-template=modern] .invoice-heading{align-self:center}.invoice-page[data-template=modern] .invoice-heading p{letter-spacing:.2em;margin-bottom:2px;font-size:.62rem}.invoice-page[data-template=modern] .invoice-number{color:var(--modern-ink);letter-spacing:-.035em;font-size:2.05rem;font-weight:780}.modern-business-panel{border-bottom:1px solid var(--modern-line);margin-top:34px;padding-bottom:26px}.invoice-page[data-template=modern] .modern-business-panel .business-section{width:58%;margin-top:0}.invoice-page[data-template=modern] .business-name{color:var(--invoice-accent);letter-spacing:-.015em;font-size:1.22rem}.invoice-page[data-template=modern] .modern-invoice-details{border:1px solid var(--modern-line);background:var(--modern-panel);border-radius:16px;gap:48px;margin-top:26px;padding:24px 26px}.invoice-page[data-template=modern] .invoice-table-wrap{background:0 0;margin:36px 0 0;padding:0}.invoice-page[data-template=modern] .invoice-table{border-spacing:0}.invoice-page[data-template=modern] .invoice-table th{border-top:1px solid var(--invoice-accent);border-bottom:1px solid var(--invoice-accent);letter-spacing:.11em;padding-top:12px;padding-bottom:12px;font-size:.61rem}.invoice-page[data-template=modern] .invoice-table th:first-child{border-left:1px solid var(--invoice-accent);border-radius:10px 0 0 10px}.invoice-page[data-template=modern] .invoice-table th:last-child{border-right:1px solid var(--invoice-accent);border-radius:0 10px 10px 0}.invoice-page[data-template=modern] .invoice-table td{border-bottom-color:var(--modern-line);background:0 0;padding-top:14px;padding-bottom:14px}.invoice-page[data-template=modern] .invoice-table tbody tr:nth-child(2n) td{background:#fafcfb}.invoice-page[data-template=modern] .add-item-button{border-color:var(--invoice-accent);background:var(--invoice-accent-soft)}.invoice-page[data-template=modern] .modern-lower-section{align-items:start;margin-top:46px}.invoice-page[data-template=modern] .invoice-summary{border:1px solid var(--modern-line);background:var(--modern-panel);border-radius:18px;padding:22px}.invoice-page[data-template=modern] .invoice-summary dl{gap:12px}.invoice-page[data-template=modern] .invoice-total{border-top:2px solid var(--invoice-accent);color:var(--invoice-accent);background:0 0;margin-top:8px;padding-top:15px}.invoice-page[data-template=minimal] .invoice-accent{height:2px;inset:16mm 18mm auto}.invoice-page[data-template=minimal] .invoice-header{border-bottom:1px solid #d8dfdc;min-height:125px;padding-bottom:22px}.invoice-page[data-template=minimal] .business-section{width:54%;margin-top:34px}.invoice-page[data-template=minimal] .invoice-table{border-top:2px solid var(--invoice-accent)}.invoice-page[data-template=minimal] .invoice-table th{color:var(--invoice-accent);background:0 0;border-bottom:1px solid #cfd8d3}.invoice-page[data-template=minimal] .invoice-table td{padding-top:15px;padding-bottom:15px}.invoice-page[data-template=minimal] .invoice-total{color:#1c2823;border-top-width:1px}@media screen and (width>=601px) and (width<=1180px){.modern-masthead-card{border-radius:17px;padding:24px}.invoice-page[data-template=modern] .invoice-header{grid-template-columns:minmax(0,1fr) 40px minmax(180px,.8fr)}.invoice-page[data-template=modern] .modern-invoice-details{gap:32px;padding:22px}.invoice-page[data-template=modern] .invoice-table-wrap{margin-top:32px;padding:0}}@media screen and (width<=600px){.invoice-page[data-template=modern] .invoice-accent{width:5px;height:auto}.modern-masthead-card{border-radius:14px;padding:18px}.invoice-page[data-template=modern] .invoice-header{grid-template-columns:1fr;gap:16px;min-height:0}.invoice-page[data-template=modern] .invoice-logo-slot{min-height:64px}.invoice-page[data-template=modern] .invoice-logo{max-width:150px;max-height:64px}.invoice-page[data-template=modern] .invoice-number{font-size:1.6rem}.modern-business-panel{margin-top:28px;padding-bottom:22px}.invoice-page[data-template=modern] .modern-business-panel .business-section{width:100%}.invoice-page[data-template=modern] .modern-invoice-details{border-radius:14px;grid-template-columns:1fr;gap:24px;margin-top:24px;padding:20px}.invoice-page[data-template=modern] .invoice-table-wrap{margin-top:28px;padding:0;overflow:visible}.invoice-page[data-template=modern] .modern-lower-section{margin-top:36px}.invoice-page[data-template=modern] .invoice-summary{border-radius:14px;padding:18px}.invoice-page[data-template=minimal] .invoice-accent{inset:18px 16px auto}.invoice-page[data-template=minimal] .invoice-header{min-height:92px;padding-bottom:20px}.invoice-page[data-template=minimal] .business-section{width:100%}}.toolbar-setting select{width:100%;min-width:0;max-width:100%}.palette-toolbar-button{border:0;border-right:1px solid var(--line);color:var(--ink);font:inherit;text-align:left;cursor:pointer;background:0 0}.palette-toolbar-value{align-items:center;gap:7px;min-width:0;display:flex}.palette-toolbar-swatch{border:1px solid #1c28232e;border-radius:50%;flex:none;place-items:center;width:16px;height:16px;display:inline-grid}.palette-toolbar-swatch.is-none,.palette-none-swatch{background:#fff;border-color:#b8c2bd}.palette-toolbar-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-weight:700;overflow:hidden}.palette-dialog{color:#173c2c;background:#fff;border-radius:20px;width:min(100%,680px);max-height:min(780px,100vh - 48px);padding:28px;overflow-y:auto;box-shadow:0 24px 70px #0a181247}.palette-dialog h2{margin:4px 0 0;font-size:1.45rem}.palette-option-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:22px 0 0;padding:0;list-style:none;display:grid}.palette-option{color:#173c2c;width:100%;min-height:62px;font:inherit;text-align:left;cursor:pointer;background:#fff;border:1px solid #dce5e0;border-radius:12px;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 12px;display:grid}.palette-option:hover{border-color:var(--accent);background:#f8faf9}.palette-option.is-active{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}.palette-option small{color:var(--accent);text-transform:uppercase;font-size:.62rem;font-weight:800}.palette-option-swatch{border:1px solid #d7e0dc;border-radius:9px;place-items:center;width:32px;height:32px;padding:5px;display:grid}.palette-option-swatch>span{border-radius:5px;width:100%;height:100%;display:block}.custom-palette-section{background:#f8faf9;border:1px solid #dce5e0;border-radius:14px;margin-top:22px;padding:18px}.custom-palette-help{color:#607068;margin-top:3px;font-size:.72rem}.custom-palette-controls{grid-template-columns:52px minmax(120px,1fr) auto;align-items:center;gap:10px;margin-top:14px;display:grid}.custom-color-picker input{cursor:pointer;background:#fff;border:1px solid #b8cec4;border-radius:9px;width:52px;height:42px;padding:3px}.custom-hex-field input{box-sizing:border-box;color:#173c2c;width:100%;min-height:42px;font:inherit;background:#fff;border:1px solid #b8cec4;border-radius:9px;padding:9px 11px;font-family:monospace}.custom-hex-field input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);outline:none}.custom-hex-field input[aria-invalid=true]{background:#fff7f6;border-color:#b94b45}.custom-palette-section .primary-button:disabled{opacity:.5;cursor:not-allowed}.logo-none-button{color:#a52828;cursor:pointer;background:#fff5f4;border:0;border-radius:10px;grid-template-columns:1fr;place-items:center;width:100%;min-height:118px;padding:0;display:grid}.logo-none-button:hover{background:#fde8e7}.logo-none-button:focus-visible{outline-offset:2px;outline:3px solid #a5282838}.logo-none-icon{color:#b62f29;font-size:7rem;font-weight:300;line-height:.7;display:block}@media screen and (width<=600px){.palette-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:20px}.palette-option-list{grid-template-columns:1fr}.custom-palette-controls{grid-template-columns:52px minmax(0,1fr)}.custom-palette-controls .primary-button{grid-column:1/-1;width:100%}}:root{--app-bg:#edf3f0;--surface:#fff;--surface-subtle:#f7faf8;--ink:#15251f;--muted:#61716b;--line:#d7e0dc;--accent:#1b6a50;--accent-dark:#0e4f3a;--accent-soft:#e3f2eb;--page-shadow:0 24px 60px #15251f21, 0 4px 14px #15251f14;color:var(--ink);background:var(--app-bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html{background:var(--app-bg);min-width:320px;min-height:100%}body{min-width:320px;min-height:100vh;margin:0}button,input,select,textarea{font:inherit}a{color:inherit}p,h1,h2,dl,dd{margin:0}#root{min-height:100vh}
