@import"https://fonts.googleapis.com/css2?family=Alex+Brush&family=Dancing+Script:wght@400;700&family=Great+Vibes&family=Manrope:wght@400;500;600;700;800&family=Pacifico&family=Sacramento&display=swap";:root{--react-pdf-annotation-layer: 1;--annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");--input-focus-border-color: Highlight;--input-focus-outline: 1px solid Canvas;--input-unfocused-border-color: transparent;--input-disabled-border-color: transparent;--input-hover-border-color: black;--link-outline: none}@media screen and (forced-colors:active){:root{--input-focus-border-color: CanvasText;--input-unfocused-border-color: ActiveText;--input-disabled-border-color: GrayText;--input-hover-border-color: Highlight;--link-outline: 1.5px solid LinkText}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid selectedItem}.annotationLayer .linkAnnotation:hover{-webkit-backdrop-filter:invert(100%);backdrop-filter:invert(100%)}}.annotationLayer{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0;z-index:3}.annotationLayer[data-main-rotation="90"] .norotate{transform:rotate(270deg) translate(-100%)}.annotationLayer[data-main-rotation="180"] .norotate{transform:rotate(180deg) translate(-100%,-100%)}.annotationLayer[data-main-rotation="270"] .norotate{transform:rotate(90deg) translateY(-100%)}.annotationLayer canvas{position:absolute;width:100%;height:100%}.annotationLayer section{position:absolute;text-align:initial;pointer-events:auto;box-sizing:border-box;margin:0;transform-origin:0 0}.annotationLayer .linkAnnotation{outline:var(--link-outline)}.textLayer.selecting~.annotationLayer section{pointer-events:none}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}.annotationLayer .textAnnotation img{position:absolute;cursor:pointer;width:100%;height:100%;top:0;left:0}.annotationLayer .textWidgetAnnotation :is(input,textarea),.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{background-image:var(--annotation-unfocused-field-background);border:2px solid var(--input-unfocused-border-color);box-sizing:border-box;font:calc(9px * var(--total-scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid red}.annotationLayer .choiceWidgetAnnotation select option{padding:0}.annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.annotationLayer .textWidgetAnnotation textarea{resize:none}.annotationLayer .textWidgetAnnotation :is(input,textarea)[disabled],.annotationLayer .choiceWidgetAnnotation select[disabled],.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input[disabled]{background:none;border:2px solid var(--input-disabled-border-color);cursor:not-allowed}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:hover{border:2px solid var(--input-hover-border-color)}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation.checkBox input:hover{border-radius:2px}.annotationLayer .textWidgetAnnotation :is(input,textarea):focus,.annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) :focus{background-image:none;background-color:transparent}.annotationLayer .buttonWidgetAnnotation.checkBox :focus{border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.radioButton :focus{border:2px solid var(--input-focus-border-color);outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:CanvasText;content:"";display:block;position:absolute}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}.annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{appearance:none}.annotationLayer .popupTriggerArea{height:100%;width:100%}.annotationLayer .fileAttachmentAnnotation .popupTriggerArea{position:absolute}.annotationLayer .popupWrapper{position:absolute;font-size:calc(9px * var(--total-scale-factor));width:100%;min-width:calc(180px * var(--total-scale-factor));pointer-events:none}.annotationLayer .popup{position:absolute;max-width:calc(180px * var(--total-scale-factor));background-color:#ff9;box-shadow:0 calc(2px * var(--total-scale-factor)) calc(5px * var(--total-scale-factor)) #888;border-radius:calc(2px * var(--total-scale-factor));padding:calc(6px * var(--total-scale-factor));margin-left:calc(5px * var(--total-scale-factor));cursor:pointer;font:message-box;white-space:normal;word-wrap:break-word;pointer-events:auto}.annotationLayer .popup>*{font-size:calc(9px * var(--total-scale-factor))}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popupDate{display:inline-block;margin-left:calc(5px * var(--total-scale-factor))}.annotationLayer .popupContent{border-top:1px solid rgba(51,51,51,1);margin-top:calc(2px * var(--total-scale-factor));padding-top:calc(2px * var(--total-scale-factor))}.annotationLayer .richText>*{white-space:pre-wrap;font-size:calc(9px * var(--total-scale-factor))}.annotationLayer .highlightAnnotation,.annotationLayer .underlineAnnotation,.annotationLayer .squigglyAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .freeTextAnnotation,.annotationLayer .lineAnnotation svg line,.annotationLayer .squareAnnotation svg rect,.annotationLayer .circleAnnotation svg ellipse,.annotationLayer .polylineAnnotation svg polyline,.annotationLayer .polygonAnnotation svg polygon,.annotationLayer .caretAnnotation,.annotationLayer .inkAnnotation svg polyline,.annotationLayer .stampAnnotation,.annotationLayer .fileAttachmentAnnotation{cursor:pointer}.annotationLayer section svg{position:absolute;width:100%;height:100%;top:0;left:0}.annotationLayer .annotationTextContent{position:absolute;width:100%;height:100%;opacity:0;color:transparent;-webkit-user-select:none;user-select:none;pointer-events:none}.annotationLayer .annotationTextContent span{width:100%;display:inline-block}:root{--react-pdf-text-layer: 1;--highlight-bg-color: rgba(180, 0, 170, 1);--highlight-selected-bg-color: rgba(0, 100, 0, 1)}@media screen and (forced-colors:active){:root{--highlight-bg-color: Highlight;--highlight-selected-bg-color: ButtonText}}[data-main-rotation="90"]{transform:rotate(90deg) translateY(-100%)}[data-main-rotation="180"]{transform:rotate(180deg) translate(-100%,-100%)}[data-main-rotation="270"]{transform:rotate(270deg) translate(-100%)}.textLayer{position:absolute;text-align:initial;inset:0;overflow:hidden;line-height:1;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;z-index:2}.textLayer :is(span,br){color:transparent;position:absolute;white-space:pre;cursor:text;margin:0;transform-origin:0 0}.textLayer span.markedContent{top:0;height:0}.textLayer .highlight{margin:-1px;padding:1px;background-color:var(--highlight-bg-color);border-radius:4px}.textLayer .highlight.appended{position:initial}.textLayer .highlight.begin{border-radius:4px 0 0 4px}.textLayer .highlight.end{border-radius:0 4px 4px 0}.textLayer .highlight.middle{border-radius:0}.textLayer .highlight.selected{background-color:var(--highlight-selected-bg-color)}.textLayer br::selection{background:transparent}.textLayer .endOfContent{display:block;position:absolute;inset:100% 0 0;z-index:-1;cursor:default;-webkit-user-select:none;user-select:none}.textLayer.selecting .endOfContent{top:0}.hiddenCanvasElement{position:absolute;top:0;left:0;width:0;height:0;display:none}:root{--text-main: #0f172a;--text-muted: #5b677a;--line: #d5deea;--teal-300: #5eead4;--teal-400: #2dd4bf;--teal-500: #14b8a6;--teal-700: #0f766e;font-family:Manrope,Avenir Next,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%}body{min-width:320px;background:radial-gradient(circle at 20% 12%,rgba(45,212,191,.18),transparent 34%),radial-gradient(circle at 78% 0%,rgba(56,189,248,.16),transparent 30%),#f7fbfd;color:var(--text-main)}#root{width:100%}.boot-screen{min-height:100vh;display:grid;place-items:center;font-size:1.15rem;color:var(--text-main)}.app-shell{--shell-pad: 24px;max-width:1700px;margin:0 auto;padding:var(--shell-pad)}.app-topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title actions" "draft status";align-items:end;gap:10px 20px;margin-bottom:16px}.title-group{grid-area:title}.title-group h1{margin:0;color:var(--text-main);font-size:2.25rem;font-weight:800;letter-spacing:-.03em}.document-switcher{grid-area:draft;display:flex;align-items:center;gap:10px}.document-switcher label{font-size:.82rem;color:var(--text-muted);font-weight:700;letter-spacing:.04em;text-transform:uppercase}.document-switcher select{min-width:220px}.action-row{grid-area:actions;display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.topbar-status{grid-area:status;min-height:20px;justify-self:end;display:flex;align-items:center}.status-text{margin:0;font-size:.82rem;color:var(--text-muted);font-weight:600;text-align:right}.status-warning{color:#b45309}.button{appearance:none;-webkit-appearance:none;border:1px solid transparent;border-radius:12px;padding:10px 16px;font-weight:700;cursor:pointer;transition:.2s ease;font-size:.94rem}.button:disabled{opacity:.6;cursor:not-allowed}.button-muted{border-color:var(--line);background:#fff;color:var(--text-main)}.button-muted:hover:not(:disabled){border-color:var(--teal-500)}.button-primary{background:#0f8f85;border-color:#0f8f85;color:#fff;box-shadow:0 8px 18px #0f766e33}.button-primary:hover:not(:disabled){transform:translateY(-1px);background:#0d7f77;box-shadow:0 12px 26px #0f766e3d}.button-danger{border-color:#ef4444;background:#fee2e2;color:#b91c1c}.button-danger:hover:not(:disabled){border-color:#dc2626;background:#fecaca}.button-outline{margin-top:12px;border-color:var(--teal-400);color:var(--teal-700);background:transparent}.workspace-grid{display:grid;grid-template-columns:minmax(700px,1fr) minmax(360px,520px);gap:16px;align-items:start}.editor-pane,.preview-pane{border:1px solid var(--line);border-radius:20px;background:#ffffffe0;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 18px 50px #0f172a14}.editor-pane{padding:18px}.step-nav{display:flex;gap:8px;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:14px;overflow-x:auto}.step-button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 14px;display:flex;align-items:center;gap:7px;color:var(--text-muted);font-weight:700;cursor:pointer;transition:.2s ease;white-space:nowrap}.step-button:hover{border-color:var(--teal-300);color:var(--teal-700)}.step-button.active{border-color:var(--teal-500);color:#052e2b;background:linear-gradient(90deg,#14b8a626,#0f766e1f)}.step-index{width:22px;height:22px;border-radius:999px;display:grid;place-items:center;font-size:.78rem;background:#0f766e29;color:var(--teal-700)}.panel-card{display:flex;flex-direction:column;gap:14px}.section-block{border:1px solid var(--line);border-radius:16px;padding:14px;background:#fff}.section-header h2{margin:0;color:var(--text-main);font-size:1.25rem}.section-header p{margin:5px 0 0;color:var(--text-muted);font-size:.94rem}.section-header.compact h2{font-size:1.1rem}.field-grid{display:grid;gap:12px;margin-top:14px}.field-grid.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}.field-grid.single-col{grid-template-columns:minmax(0,1fr)}.field{display:flex;flex-direction:column;gap:6px}.field.full-width{grid-column:1 / -1}.field span{font-size:.88rem;color:var(--text-muted);font-weight:700}input,textarea,select,.items-table input,.items-table select{width:100%;border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-family:inherit;font-size:.95rem;color:var(--text-main);background:#fff;transition:border-color .2s ease,box-shadow .2s ease}input:focus,textarea:focus,select:focus,.items-table input:focus,.items-table select:focus{border-color:var(--teal-500);box-shadow:0 0 0 3px #14b8a626;outline:none}textarea{resize:vertical}.asset-upload{border:1px solid var(--line);border-radius:12px;background:#f8fbff;padding:12px;display:grid;gap:10px}.asset-preview{display:flex;align-items:center;gap:12px}.asset-thumb{width:56px;height:56px;border-radius:10px;border:1px solid var(--line);object-fit:cover;background:#fff}.asset-thumb.signature{width:120px;height:48px;object-fit:contain}.asset-meta{display:grid;gap:4px}.asset-meta p{margin:0;font-size:.88rem;color:var(--text-main);font-weight:600}.asset-remove{border:1px solid #fca5a5;background:#fff1f2;color:#b91c1c;border-radius:8px;padding:6px 10px;font-size:.84rem;font-weight:700;width:fit-content;cursor:pointer}.asset-remove:hover{border-color:#ef4444}.asset-empty{margin:0;font-size:.87rem;color:var(--text-muted)}.logo-option-toggle{margin-top:2px}.signature-upload-actions{display:flex;align-items:center;gap:10px}.signature-upload-actions input[type=file]{flex:1}.document-type-grid{margin-top:8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.doc-type-card{border:1px solid var(--line);border-radius:14px;padding:14px;text-align:left;background:#fff;cursor:pointer;display:flex;flex-direction:column;gap:8px}.doc-type-card.selected{border-color:var(--teal-500);box-shadow:0 0 0 3px #14b8a626}.doc-type-card.disabled{cursor:not-allowed;opacity:.56}.doc-type-title{font-size:1rem;font-weight:700;color:var(--text-main)}.doc-type-tag{font-size:.79rem;font-weight:700;color:var(--text-muted)}.template-picker-grid{margin-top:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.template-picker-card{border:1px solid var(--line);border-radius:14px;padding:12px;text-align:left;background:#fff;cursor:pointer;display:flex;flex-direction:column;gap:5px}.template-picker-card.selected{border-color:var(--teal-500);box-shadow:0 0 0 3px #14b8a626}.template-picker-title{font-size:.98rem;font-weight:700;color:var(--text-main)}.template-picker-description{font-size:.83rem;color:var(--text-muted);line-height:1.35}.step-next-row{margin-top:8px;display:flex;justify-content:flex-end}.step-next-button{min-width:110px}.items-toolbar-row{display:flex;align-items:flex-end;justify-content:flex-start;gap:10px;flex-wrap:wrap}.currency-field{margin:0}.currency-combobox{position:relative;max-width:100%}.currency-select{width:auto;min-width:15ch;max-width:100%}.currency-search-input{width:100%}.currency-options-list{margin:0;padding:6px;list-style:none;position:absolute;top:calc(100% + 6px);left:0;right:0;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 14px 28px #0f172a29;max-height:230px;overflow-y:auto;z-index:30}.currency-option{appearance:none;-webkit-appearance:none;border:0;background:transparent;width:100%;border-radius:8px;padding:8px 10px;text-align:left;color:var(--text-main);cursor:pointer;font-size:.9rem;line-height:1.25}.currency-option:hover{background:#f3f7ff}.currency-option.selected{background:#14b8a624;color:#0d615c}.currency-option-empty{padding:10px;color:var(--text-muted);font-size:.88rem}.items-toolbar-button-row{display:flex;gap:8px;align-items:center;flex-wrap:nowrap}.items-table-wrap{margin-top:14px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}.items-table{width:100%;border-collapse:collapse;table-layout:fixed}.items-table col.item-col-qty{width:7%}.items-table col.item-col-description{width:43%}.items-table col.item-col-unit{width:12%}.items-table col.item-col-tax{width:16%}.items-table col.item-col-total{width:17%}.items-table col.item-col-remove{width:5%}.items-table th,.items-table td{padding:8px;border-bottom:1px solid var(--line);vertical-align:middle}.items-table th{font-size:.82rem;text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted);text-align:left}.item-col-qty-cell input{width:42px;min-width:42px;text-align:center;padding-left:6px;padding-right:6px}.item-col-description-cell input{width:100%}.item-col-unit-cell input{width:78px;min-width:78px}.tax-cell{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.tax-cell select{width:auto;min-width:11ch;max-width:100%;padding:6px 8px;font-size:.92rem;line-height:1.2}.tax-cell input{width:8ch;min-width:8ch;font-size:.88rem;padding:6px 8px}.line-total{font-weight:700;color:var(--text-main);min-width:0;white-space:nowrap}.item-col-remove-cell{text-align:center;padding-left:4px;padding-right:4px}.remove-row-icon{width:28px;height:28px;border:1px solid #fecaca;background:#fff1f2;color:#b91c1c;border-radius:8px;padding:0;cursor:pointer;font-size:1rem;font-weight:800;line-height:1;display:inline-grid;place-items:center}.remove-row-icon:hover{border-color:#ef4444;background:#ffe4e6}.totals-strip{margin-top:14px;border:1px solid var(--line);border-radius:14px;padding:12px;background:#fff;display:grid;gap:7px}.total-line{display:flex;justify-content:space-between;color:var(--text-muted);font-size:.96rem}.total-main{margin-top:4px;padding-top:8px;border-top:1px solid var(--line);color:var(--text-main);font-size:1.2rem}.total-main strong{font-size:1.2rem}.accent-color-input-hidden{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.accent-swatch-row{margin-top:4px;display:flex;gap:10px;flex-wrap:wrap}.accent-swatch{width:42px;height:42px;border:2px solid transparent;border-radius:999px;cursor:pointer;position:relative}.accent-swatch.selected{border-color:#0f172a;box-shadow:0 0 0 3px #0f172a24}.accent-swatch-custom:after{content:"+";position:absolute;inset:auto 1px 1px auto;width:16px;height:16px;border-radius:999px;background:#fff;color:#0f172a;font-size:.8rem;font-weight:900;display:grid;place-items:center;box-shadow:0 0 0 1px #0f172a29}.toggle-grid{margin-top:14px;display:grid;gap:10px}.checkbox{display:inline-flex;align-items:center;gap:10px;color:var(--text-main);font-weight:600}.checkbox input{width:auto}.payment-block-toggle{margin-top:12px}.preview-pane{display:flex;flex-direction:column;position:sticky;top:var(--shell-pad);align-self:start;height:calc(100vh - (var(--shell-pad) * 2));max-height:calc(100vh - (var(--shell-pad) * 2))}.preview-toolbar{padding:14px 16px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.preview-toolbar h3{margin:0;font-size:1.15rem;color:var(--text-main)}.zoom-group{display:inline-flex;gap:6px}.zoom-group button{border:1px solid var(--line);background:#fff;color:var(--text-main);border-radius:10px;padding:6px 10px;cursor:pointer;font-weight:700}.zoom-group button:hover{border-color:var(--teal-400)}.preview-canvas{position:relative;overflow:auto;padding:14px;background:linear-gradient(160deg,#edf5f4,#ebeff5);border-radius:0 0 20px 20px;flex:1}.preview-canvas .react-pdf__Document{display:flex;flex-direction:column;gap:16px;align-items:center}.preview-canvas .react-pdf__Page{box-shadow:0 14px 40px #0f172a38}.preview-state{min-height:240px;display:grid;place-items:center;color:var(--text-muted);font-weight:600}.preview-error{color:#991b1b}.preview-rendering{position:sticky;bottom:0;margin:14px auto 0;width:fit-content;border:1px solid rgba(15,118,110,.25);background:#f0fdfaeb;color:var(--teal-700);border-radius:999px;padding:6px 12px;font-size:.82rem;font-weight:700}.format-modal-backdrop{position:fixed;inset:0;z-index:1100;background:#0f172a8c;display:grid;place-items:center;padding:24px}.format-modal{width:min(760px,100%);background:#fff;border-radius:24px;border:1px solid var(--line);box-shadow:0 24px 60px #0f172a3d;overflow:hidden}.format-modal-header{padding:20px 24px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.format-modal-header h3{margin:0;font-size:1.9rem;color:var(--text-main);letter-spacing:-.03em}.format-modal-header button{border:1px solid var(--line);border-radius:10px;background:#fff;width:40px;height:40px;font-size:1.1rem;color:var(--text-main);cursor:pointer}.format-modal-grid{padding:20px 24px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.format-group h4{margin:0 0 12px;font-size:1.05rem;color:var(--text-main)}.format-radio-list{display:grid;gap:10px}.format-radio{display:flex;align-items:center;gap:10px;color:var(--text-main);font-size:1rem}.format-radio input{width:20px;height:20px;margin:0}.format-decimals{padding:18px 24px 6px}.quantity-preview{display:inline-flex;align-items:center;justify-content:center;min-width:110px;min-height:48px;border-radius:12px;background:#f1f5f9;color:var(--text-main);font-size:2rem;font-weight:800;letter-spacing:-.02em;margin-bottom:12px}.format-decimals input[type=range]{width:100%;padding:0}.quantity-scale{display:grid;grid-template-columns:repeat(9,1fr);margin-top:8px;color:var(--text-muted);font-size:.9rem}.quantity-scale span{text-align:center}.format-modal-actions{padding:18px 24px 24px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:10px}.tax-modal-content{padding:18px 24px;display:grid;gap:12px}.tax-grid-header,.tax-grid-row{display:grid;grid-template-columns:2fr 1fr auto auto;gap:10px;align-items:center}.tax-grid-header{font-size:.85rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.03em}.tax-grid-row{border-top:1px solid var(--line);padding-top:10px}.tax-toggle{display:inline-flex;align-items:center;gap:8px;font-size:.9rem;color:var(--text-main);font-weight:600}.tax-toggle input{width:18px;height:18px}.delete-modal{width:min(480px,100%);background:#fff;border-radius:18px;border:1px solid var(--line);box-shadow:0 24px 50px #0f172a3d;padding:22px}.delete-modal h3{margin:0;font-size:1.45rem;color:var(--text-main)}.delete-modal p{margin:8px 0 0;color:var(--text-muted)}.delete-modal-actions{margin-top:18px;display:flex;justify-content:flex-end;gap:10px}.settings-modal{width:min(700px,100%);border-radius:20px;border:1px solid var(--line);background:#fff;box-shadow:0 24px 60px #0f172a3d}.settings-modal-content{padding:20px 24px;display:grid;gap:14px}.settings-row{border:1px solid var(--line);border-radius:14px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f8fbff}.settings-row strong{color:var(--text-main);font-size:1rem}.settings-row p{margin:4px 0 0;color:var(--text-muted);font-size:.88rem}.settings-row input[type=checkbox]{width:22px;height:22px}.settings-inline-checkbox{margin-top:12px;display:inline-flex;align-items:center;gap:8px;color:var(--text-main);font-weight:600}.settings-inline-checkbox input{width:18px;height:18px}.signature-modal-backdrop{position:fixed;inset:0;z-index:1200;background:#0f172a8f;display:grid;place-items:center;padding:20px}.signature-modal{width:min(1240px,100%);max-height:min(920px,100%);overflow:auto;border-radius:24px;border:1px solid var(--line);background:#fff;box-shadow:0 24px 64px #0f172a47}.signature-modal-header{padding:20px 26px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.signature-modal-header h3{margin:0;font-size:2rem;letter-spacing:-.03em;color:var(--text-main)}.signature-modal-header button{width:44px;height:44px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--text-main);font-size:1.2rem;cursor:pointer}.signature-modal-body{padding:20px 26px;display:grid;gap:16px}.signature-tabs{display:flex;gap:10px;padding:6px;border-radius:20px;background:#edf2f7}.signature-tab{border:1px solid transparent;border-radius:16px;padding:12px 20px;background:transparent;color:#7c8a9d;font-size:1.85rem;font-weight:800;letter-spacing:-.03em;cursor:pointer;transition:.2s ease}.signature-tab.active{background:#fff;border-color:#0f766e40;color:#083f4c;box-shadow:0 8px 18px #0f172a14}.signature-content-panel{border:1px solid var(--line);border-radius:20px;padding:20px;min-height:460px;background:#fbfdff}.signature-controls-row{display:flex;align-items:center;gap:14px;margin-bottom:14px}.signature-color-control{display:inline-flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;padding:8px 10px;background:#fff;font-weight:700;color:var(--text-main)}.signature-color-control input{width:34px;height:34px;padding:0;border:0;background:transparent}.signature-width-control{display:inline-flex;align-items:center;gap:10px;min-width:340px;color:var(--text-main);font-weight:700}.signature-width-control input[type=range]{width:100%;padding:0}.signature-draw-surface{position:relative;border:1px dashed #b8c4d4;border-radius:16px;background:#fff;overflow:hidden}.signature-draw-canvas{display:block;width:100%;height:auto;touch-action:none;cursor:crosshair}.signature-draw-hint{position:absolute;inset:0;display:grid;place-items:center;margin:0;color:#94a3b8;font-weight:700;pointer-events:none}.signature-write-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.signature-font-list{margin-top:12px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.signature-font-item{border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--text-main);font-size:1.65rem;padding:10px 12px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.signature-font-item.active{border-color:var(--teal-500);box-shadow:0 0 0 3px #14b8a626}.signature-write-preview{margin-top:14px;min-height:240px;border:1px solid #d2dbe7;border-radius:16px;background:#fff;display:grid;place-items:center;padding:20px}.signature-write-preview span{font-size:clamp(2.8rem,8vw,8rem);color:#0b0f19;line-height:1}.signature-image-pane{min-height:380px;display:grid;place-items:center;gap:14px}.signature-image-input{display:none}.signature-image-preview-wrap{display:grid;justify-items:center;gap:8px}.signature-image-preview-wrap p{margin:0;color:var(--text-main);font-weight:700}.signature-image-preview{max-width:360px;max-height:180px;border-radius:12px;border:1px solid var(--line);object-fit:contain;background:#fff}.signature-image-hint{margin:0;color:var(--text-muted);font-weight:600}.signature-modal-actions{padding:18px 26px 24px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:10px}.preview-fullscreen{position:fixed;inset:0;z-index:1000;background:#0f172a94;display:grid;place-items:center;padding:22px}.preview-fullscreen-shell{width:min(1280px,100%);height:min(900px,100%);border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 24px 60px #0f172a52;display:flex;flex-direction:column}.preview-toolbar.preview-toolbar-floating{border-bottom:1px solid var(--line)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}@media(max-width:1200px){.workspace-grid{grid-template-columns:1fr}.preview-pane{position:static;top:auto;align-self:stretch;height:auto;max-height:760px}}@media(max-width:860px){.app-shell{--shell-pad: 14px;padding:var(--shell-pad)}.app-topbar{grid-template-columns:1fr;grid-template-areas:"title" "actions" "draft" "status";align-items:stretch}.action-row{width:100%;justify-content:flex-start}.topbar-status{justify-self:start;min-height:0}.status-text{text-align:left}.field-grid.two-col,.document-type-grid,.template-picker-grid{grid-template-columns:1fr}.title-group h1{font-size:1.75rem}.items-toolbar-row{align-items:stretch}.currency-combobox,.currency-select{width:100%!important}.signature-upload-actions{flex-direction:column;align-items:stretch}.signature-tabs{flex-wrap:wrap}.signature-tab{width:100%;text-align:left;font-size:1.45rem}.signature-content-panel{padding:14px}.signature-controls-row{flex-direction:column;align-items:stretch}.signature-width-control{min-width:0}.signature-write-controls{grid-template-columns:1fr}.signature-font-list{grid-template-columns:repeat(2,minmax(0,1fr))}.signature-modal-header h3{font-size:1.6rem}.settings-row{flex-direction:column;align-items:flex-start}.items-toolbar-button-row,.items-toolbar-button-row .button{width:100%}.step-next-row{justify-content:stretch}.step-next-button{width:100%}.tax-grid-header,.tax-grid-row{grid-template-columns:1fr}.tax-grid-header{display:none}.format-modal-grid{grid-template-columns:1fr}.format-modal-header h3{font-size:1.5rem}}
