:root{--font-display:"Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;--font-body:"Inter", -apple-system, BlinkMacSystemFont, sans-serif;--font-mono:"JetBrains Mono", monospace;--color-nav-bg:#0f172a;--color-nav-border:#1e293b;--color-bg-workspace:#f8fafc;--color-sidebar-bg:#fff;--color-card-border:#e2e8f0;--color-text-main:#0f172a;--color-text-muted:#64748b;--color-text-subtle:#94a3b8;--invoice-header-dark:#1e2229;--invoice-border-soft:#e5e7eb;--invoice-text-dark:#111827;--invoice-text-subtle:#6b7280;--invoice-paper-bg:#fff}*{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font-body);color:var(--color-text-main);background-color:var(--color-bg-workspace);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.5;overflow:hidden}.billmatrix-app{flex-direction:column;width:100vw;height:100vh;display:flex;overflow:hidden}.app-top-nav{background-color:var(--color-nav-bg);border-bottom:1px solid var(--color-nav-border);color:#fff;z-index:40;flex-shrink:0;justify-content:space-between;align-items:center;height:56px;padding:0 16px;display:flex}.nav-left{align-items:center;gap:12px;display:flex}.tenant-selector-pill{color:#fff;cursor:pointer;background:#ffffff14;border:1px solid #ffffff1f;border-radius:8px;align-items:center;gap:10px;padding:6px 12px;transition:all .2s;display:flex}.tenant-selector-pill:hover{background:#ffffff24;border-color:#fff3}.tenant-color-dot{border-radius:4px;width:12px;height:12px}.tenant-selector-names{text-align:left;flex-direction:column;display:flex}.tenant-selector-org{font-family:var(--font-display);font-size:13px;font-weight:700;line-height:1.2}.tenant-selector-badge{color:var(--color-text-subtle);font-size:10px}.chevron-icon{color:var(--color-text-subtle);margin-left:2px}.invoice-status-crumb{align-items:center;gap:8px;font-size:13px;display:flex}.crumb-divider{color:#475569}.crumb-inv-num{color:#e2e8f0;font-weight:600}.status-pill{letter-spacing:.04em;border-radius:12px;padding:2px 8px;font-size:10px;font-weight:700}.status-paid{color:#34d399;background:#10b98133;border:1px solid #10b9814d}.status-sent{color:#60a5fa;background:#3b82f633;border:1px solid #3b82f64d}.status-draft{color:#cbd5e1;background:#94a3b833;border:1px solid #94a3b84d}.status-overdue{color:#f87171;background:#ef444433;border:1px solid #ef44444d}.nav-center-views{align-items:center;display:flex}.view-mode-segmented-control{background:#0000004d;border:1px solid #ffffff14;border-radius:8px;padding:3px;display:flex}.seg-btn{color:#94a3b8;cursor:pointer;background:0 0;border:none;border-radius:6px;align-items:center;gap:6px;padding:5px 12px;font-size:12px;font-weight:500;transition:all .15s;display:flex}.seg-btn:hover{color:#fff}.seg-btn.active{color:#fff;background:#ffffff26;box-shadow:0 1px 2px #0003}.nav-right-actions{align-items:center;gap:8px;display:flex}.nav-action-btn{cursor:pointer;border-radius:6px;align-items:center;gap:6px;padding:6px 12px;font-size:12px;font-weight:600;transition:all .2s;display:flex}.secondary-btn{color:#e2e8f0;background:#ffffff14;border:1px solid #ffffff26}.secondary-btn:hover{color:#fff;background:#ffffff26}.primary-print-btn{color:#fff;border:none;box-shadow:0 2px 8px #00000040}.primary-print-btn:hover{filter:brightness(1.1);transform:translateY(-1px)}.workspace-container,.workspace-main{background-color:var(--color-bg-workspace,#0f172a);flex:1;width:100vw;height:calc(100vh - 84px);min-height:0;display:flex;position:relative;overflow:hidden}.mode-split .input-studio-panel,.layout-split .editor-sidebar-pane{border-right:1px solid var(--color-card-border,#cbd5e1);z-index:10;flex-shrink:0;width:clamp(540px,38vw,700px);box-shadow:4px 0 16px #0f172a0a}.mode-editor-only .input-studio-panel,.layout-editor-only .editor-sidebar-pane{border-right:none;width:100%;max-width:960px;margin:0 auto}.mode-split .preview-canvas-panel,.layout-split .preview-canvas-pane{flex:1;min-width:0}.mode-preview-only .preview-canvas-panel,.layout-preview-only .preview-canvas-pane{width:100%}.drafts-full-view-panel,.integrated-history-pane{background-color:#f8fafc;flex-direction:column;flex:1;width:100%;height:100%;min-height:0;display:flex;overflow-y:auto}.input-studio-panel,.editor-sidebar-pane{background-color:var(--color-sidebar-bg,#fff);flex-direction:column;height:100%;min-height:0;display:flex;position:relative;overflow:hidden}.editor-sidebar-pane{background-color:var(--color-sidebar-bg);flex-direction:column;height:100%;display:flex;overflow:hidden}.invoice-editor-container{flex-direction:column;height:100%;display:flex;overflow:hidden}.editor-mode-nav{border-bottom:1px solid var(--color-card-border);background:#f8fafc;gap:8px;padding:6px 12px 0;display:flex}.mode-tab-btn{color:var(--color-text-muted);cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;align-items:center;gap:8px;padding:8px 14px;font-size:13px;font-weight:600;transition:all .2s;display:flex}.mode-tab-btn:hover{color:var(--color-text-main)}.mode-tab-btn.active{color:var(--color-text-main);background:#fff;border-bottom-color:#6e44ff;border-top-left-radius:6px;border-top-right-radius:6px}.smart-badge{color:#6e44ff;background:#ede9fe;border-radius:10px;padding:1px 6px;font-size:10px;font-weight:700}.editor-form-scroll{flex-direction:column;flex:1;gap:16px;padding:16px;display:flex;overflow-y:auto}.editor-card{border:1px solid var(--color-card-border);background:#fff;border-radius:10px;flex-direction:column;gap:14px;padding:16px;display:flex;box-shadow:0 1px 3px #00000005}.card-header-row{justify-content:space-between;align-items:center;display:flex}.card-title-group{align-items:center;gap:8px;display:flex}.card-icon{color:#6e44ff}.card-title{font-family:var(--font-display);color:var(--color-text-main);font-size:14px;font-weight:700}.reset-sample-btn{color:#6e44ff;cursor:pointer;background:#ede9fe;border:none;border-radius:6px;padding:4px 8px;font-size:11px;font-weight:600;transition:all .15s}.reset-sample-btn:hover{background:#ddd6fe}.form-grid-3{grid-template-columns:repeat(3,1fr);gap:12px;display:grid}.form-grid-2{grid-template-columns:repeat(2,1fr);gap:12px;display:grid}.sub-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;flex-direction:column;gap:10px;padding:12px;display:flex}.sub-card-title{letter-spacing:.05em;color:#475569;font-size:11px;font-weight:700}.input-field{flex-direction:column;gap:4px;display:flex}.field-lbl{color:var(--color-text-muted);font-size:11px;font-weight:600}.text-input,.select-input{width:100%;color:var(--color-text-main);background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:8px 10px;font-size:13px;transition:all .15s}.text-input:focus,.select-input:focus{border-color:#6e44ff;outline:none;box-shadow:0 0 0 2px #6e44ff26}.items-editor-list{flex-direction:column;gap:10px;display:flex}.item-editor-row{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;align-items:center;gap:10px;padding:10px;display:flex}.item-index-badge{font-family:var(--font-mono);color:#64748b;background:#e2e8f0;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;font-size:12px;font-weight:700;display:flex}.item-inputs-stack{flex-direction:column;flex:1;gap:6px;display:flex}.item-quantities{align-items:flex-end;gap:8px;display:flex}.qty-col{flex-direction:column;gap:2px;width:74px;display:flex}.tiny-lbl{color:#64748b;font-size:10px;font-weight:600}.num-input{text-align:right;padding:6px 8px}.amount-col{width:90px}.computed-amount{color:#0f172a;text-align:right;background:#e2e8f0;border-radius:6px;padding:7px 8px;font-size:12px;font-weight:700}.delete-item-btn{color:#94a3b8;cursor:pointer;background:0 0;border:none;border-radius:4px;padding:6px;transition:all .15s}.delete-item-btn:hover{color:#ef4444;background:#fee2e2}.add-item-btn{color:#fff;cursor:pointer;border:none;border-radius:6px;align-items:center;gap:6px;padding:6px 12px;font-size:12px;font-weight:600;display:flex}.add-item-btn:hover{filter:brightness(1.1)}.words-preview-chip{color:#334155;white-space:nowrap;text-overflow:ellipsis;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:6px;padding:8px 10px;font-size:11px;font-weight:600;overflow:hidden}.notes-editor-list{flex-direction:column;gap:8px;display:flex}.note-editor-row{align-items:center;gap:8px;display:flex}.note-num{color:#64748b;font-size:18px}.add-note-btn{color:#334155;cursor:pointer;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:6px;align-items:center;gap:4px;padding:4px 8px;font-size:11px;font-weight:600;display:flex}.uploader-scroll-pane{flex:1;height:100%;min-height:0;padding:20px 20px 100px;overflow-y:auto!important}.document-uploader-card{flex-direction:column;gap:18px;width:100%;max-width:920px;margin:0 auto;display:flex;overflow:visible}.uploader-header{background:linear-gradient(135deg,#fff 0%,#f8fafc 100%);border:1px solid #e2e8f0;border-radius:12px;justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 20px;display:flex;box-shadow:0 2px 8px #00000008}.uploader-title-group{align-items:flex-start;gap:14px;display:flex}.sparkle-icon-box{border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:42px;height:42px;display:flex;box-shadow:0 4px 12px #6e44ff1f}.uploader-title-text-wrap{flex-direction:column;gap:4px;display:flex}.free-ai-pill-row{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:2px;display:flex}.free-badge-tag{color:#065f46;letter-spacing:.02em;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:20px;align-items:center;gap:6px;padding:3px 10px;font-size:11px;font-weight:700;display:inline-flex}.live-pulse-dot{background:#10b981;border-radius:50%;width:7px;height:7px;animation:1.8s ease-in-out infinite pulseLiveDot;box-shadow:0 0 0 2px #10b9814d}@keyframes pulseLiveDot{0%,to{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.35)}}.zero-cost-tag{color:#64748b;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:20px;padding:3px 9px;font-size:11px;font-weight:600}.uploader-title{font-family:var(--font-display,inherit);color:#0f172a;letter-spacing:-.01em;margin:0;font-size:17px;font-weight:800}.uploader-subtitle{color:#64748b;max-width:640px;margin:0;font-size:12.5px;line-height:1.45}.prompt-master-toggle-btn{color:#334155;cursor:pointer;background:#f8fafc;border:1px solid #cbd5e1;border-radius:8px;flex-shrink:0;align-items:center;gap:6px;padding:6px 12px;font-size:12px;font-weight:600;transition:all .2s;display:inline-flex}.prompt-master-toggle-btn:hover{color:#4f46e5;background:#fff;border-color:#6366f1;box-shadow:0 2px 6px #6366f126}.prompt-blueprint-panel{color:#f8fafc;background:#0f172a;border:1px solid #334155;border-radius:10px;flex-direction:column;gap:10px;padding:14px 16px;animation:.2s ease-out fadeIn;display:flex}.blueprint-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.blueprint-code{font-family:var(--font-mono,monospace);color:#38bdf8;white-space:pre-wrap;background:#020617;border:1px solid #1e293b;border-radius:6px;max-height:180px;padding:10px;font-size:11px;overflow-y:auto}.free-ai-guarantee-bar{grid-template-columns:repeat(3,1fr);gap:12px;display:grid}.guarantee-item{background:#fff;border:1px solid #e2e8f0;border-radius:10px;align-items:center;gap:10px;padding:10px 14px;transition:all .2s;display:flex;box-shadow:0 1px 3px #00000005}.guarantee-item:hover{border-color:#cbd5e1;transform:translateY(-1px);box-shadow:0 3px 8px #0000000a}.guarantee-text strong{color:#1e293b;font-size:12px;font-weight:700;display:block}.guarantee-text span{color:#64748b;font-size:11px;display:block}.uploader-input-tabs{background:#f1f5f9;border-radius:10px;gap:6px;padding:4px;display:flex}.uploader-tab-btn{color:#64748b;cursor:pointer;background:0 0;border:none;border-radius:8px;flex:1;justify-content:center;align-items:center;gap:8px;padding:9px 14px;font-size:12px;font-weight:600;transition:all .2s;display:flex}.uploader-tab-btn:hover{color:#1e293b}.uploader-tab-btn.active-tab{color:#0f172a;background:#fff;box-shadow:0 1px 4px #00000014}.dropzone-box{text-align:center;cursor:pointer;background:linear-gradient(#f8fafc 0%,#fff 100%);border:2px dashed #cbd5e1;border-radius:14px;padding:38px 24px;transition:all .2s}.dropzone-box:hover,.dropzone-box.dragging{background:#f5f3ff;border-color:#6366f1;transform:translateY(-1px)}.dropzone-label{cursor:pointer;flex-direction:column;align-items:center;gap:12px;display:flex}.upload-circle-icon{border-radius:50%;justify-content:center;align-items:center;width:56px;height:56px;margin-bottom:4px;display:flex;box-shadow:0 4px 14px #0000000f}.dropzone-primary-text{color:#0f172a;font-size:14.5px;font-weight:700;display:block}.dropzone-secondary-text{color:#64748b;max-width:480px;margin-top:4px;font-size:12px;display:block}.dropzone-format-pills{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin-top:10px;display:flex}.format-pill{color:#475569;background:#fff;border:1px solid #e2e8f0;border-radius:6px;align-items:center;gap:5px;padding:4px 10px;font-size:11px;font-weight:600;display:inline-flex;box-shadow:0 1px 2px #00000005}.paste-input-section{flex-direction:column;gap:12px;display:flex}.quick-template-chips-row{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:6px;display:flex}.chips-label{color:#64748b;text-transform:uppercase;letter-spacing:.03em;font-size:11px;font-weight:700}.quick-chip-btn{color:#4338ca;cursor:pointer;background:#eef2ff;border:1px solid #c7d2fe;border-radius:6px;padding:4px 10px;font-size:11px;font-weight:600;transition:all .15s}.quick-chip-btn:hover{background:#e0e7ff;border-color:#818cf8;transform:translateY(-1px)}.paste-textarea{width:100%;font-family:var(--font-mono,monospace);color:#1e293b;resize:vertical;background:#fff;border:1.5px solid #cbd5e1;border-radius:10px;padding:14px;font-size:12px;line-height:1.5;transition:border-color .2s}.paste-textarea:focus{border-color:#6366f1;outline:none;box-shadow:0 0 0 3px #6366f11f}.extract-pasted-btn{color:#fff;cursor:pointer;border:none;border-radius:10px;justify-content:center;align-items:center;gap:8px;width:100%;padding:12px;font-size:13px;font-weight:700;transition:all .2s;display:flex;box-shadow:0 2px 8px #0000001f}.extract-pasted-btn:disabled{opacity:.6;cursor:not-allowed;box-shadow:none}.extract-pasted-btn:not(:disabled):hover{filter:brightness(1.1);transform:translateY(-1px);box-shadow:0 4px 12px #0000002e}.scanning-state-card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;flex-direction:column;gap:12px;padding:16px;display:flex;box-shadow:0 2px 8px #00000008}.scan-animation-bar{background:#f1f5f9;border-radius:3px;width:100%;height:5px;position:relative;overflow:hidden}.scan-pulse{border-radius:3px;width:40%;height:100%;animation:1.4s ease-in-out infinite scanProgress;position:absolute}@keyframes scanProgress{0%{left:-40%}50%{left:40%}to{left:100%}}.scan-status-text{color:#475569;align-items:center;gap:8px;font-size:12px;font-weight:500;display:flex}.spin-icon{animation:1.2s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.extracted-preview-box{background:#f0fdf4;border:1.5px solid #86efac;border-radius:12px;flex-direction:column;gap:14px;padding:18px;display:flex;box-shadow:0 3px 12px #22c55e14}.preview-status-header{justify-content:space-between;align-items:center;display:flex}.status-badge{color:#15803d;align-items:center;gap:6px;font-size:12.5px;font-weight:700;display:flex}.file-tag{font-size:11px;font-family:var(--font-mono,monospace);color:#334155;background:#0000000d;border-radius:6px;padding:3px 8px}.extracted-fields-summary{flex-direction:column;gap:6px;font-size:12.5px;display:flex}.summary-field{align-items:baseline;gap:6px;display:flex}.field-label{color:#4b5563;min-width:115px;font-weight:500}.field-value{color:#111827;font-weight:600}.ai-thinking-log-card{background:#f8fafc;border:1px solid #e2e8f0;border-left:3px solid #6366f1;border-radius:8px;flex-direction:column;gap:8px;padding:12px 14px;display:flex;box-shadow:0 1px 3px #00000005}.thinking-log-header{color:#312e81;align-items:center;gap:8px;font-size:11.5px;font-weight:700;display:flex}.thinking-steps-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.thinking-step-item{color:#334155;align-items:flex-start;gap:8px;font-size:12px;line-height:1.45;display:flex}.step-badge{color:#4f46e5;background:#eef2ff;border-radius:9999px;flex-shrink:0;justify-content:center;align-items:center;min-width:18px;height:18px;margin-top:1px;padding:0 4px;font-family:monospace;font-size:10px;font-weight:700;display:inline-flex}.step-content{flex:1}.extracted-table-preview-wrap{background:#fff;border:1px solid #dcfce7;border-radius:8px;overflow-x:auto;box-shadow:0 1px 3px #00000008}.table-preview-header{color:#166534;background:#f0fdf4;border-bottom:1px solid #dcfce7;padding:8px 12px;font-size:12px;font-weight:700}.extracted-items-table{border-collapse:collapse;width:100%;font-size:12px}.extracted-items-table th{text-align:left;color:#475569;white-space:nowrap;background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:8px 10px;font-weight:600}.extracted-items-table td{color:#1e293b;border-bottom:1px solid #f1f5f9;padding:8px 10px}.extracted-items-table tr:last-child td{border-bottom:none}.apply-extracted-btn{color:#fff;cursor:pointer;border:none;border-radius:10px;justify-content:center;align-items:center;gap:10px;padding:13px;font-size:14px;font-weight:700;transition:all .2s;display:flex;box-shadow:0 4px 14px #00000029}.apply-extracted-btn:hover{filter:brightness(1.12);transform:translateY(-1px);box-shadow:0 6px 18px #00000038}.preview-canvas-panel,.preview-canvas-pane{scroll-behavior:smooth;background-color:#e2e8f0;background-image:radial-gradient(#cbd5e1 1.2px,#0000 1.2px),radial-gradient(#cbd5e1 1.2px,#e2e8f0 1.2px);background-position:0 0,12px 12px;background-repeat:repeat;background-size:24px 24px;background-attachment:scroll;background-origin:padding-box;background-clip:border-box;flex-direction:column;flex:1;align-items:center;height:100%;min-height:0;padding:0 0 160px;display:flex;position:relative;overflow:auto!important}.canvas-toolbar,.canvas-floating-toolbar{z-index:35;-webkit-backdrop-filter:blur(14px);background:#fffffff0;border-bottom:1px solid #cbd5e1;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;width:100%;margin-bottom:28px;padding:10px 24px;display:flex;position:sticky;top:0;box-shadow:0 4px 14px #0f172a0f}.toolbar-status-group{align-items:center;gap:10px;display:flex}.toolbar-indicator-dot{background-color:#10b981;border-radius:50%;width:8px;height:8px;animation:2s ease-in-out infinite pulseDot;box-shadow:0 0 0 3px #10b98133}.toolbar-title{color:#0f172a;letter-spacing:-.01em;font-size:13px;font-weight:700}.live-sync-badge{color:#059669;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:12px;padding:2px 8px;font-size:11px;font-weight:600}.canvas-template-select-btn:hover{background:#f8fafc;border-color:#6366f1;transform:translateY(-1px);box-shadow:0 3px 8px #6366f11f}.zoom-controls-cluster,.zoom-controls{background:#f1f5f9;border:1px solid #cbd5e1;border-radius:8px;align-items:center;gap:6px;padding:4px 8px;display:flex}.zoom-btn{color:#334155;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:6px;justify-content:center;align-items:center;width:26px;height:26px;transition:all .15s;display:flex}.zoom-btn:hover{color:#6e44ff;background:#ede9fe;border-color:#c4b5fd}.zoom-value-label,.zoom-val{font-size:12px;font-weight:700;font-family:var(--font-mono,monospace);color:#334155;text-align:center;min-width:42px}.canvas-print-direct-btn{color:#fff;cursor:pointer;border:none;border-radius:8px;align-items:center;gap:8px;padding:8px 16px;font-size:13px;font-weight:700;transition:all .2s;display:flex;box-shadow:0 2px 8px #00000026}.canvas-print-direct-btn:hover{filter:brightness(1.12);transform:translateY(-1px);box-shadow:0 4px 14px #0003}.canvas-viewport{justify-content:center;width:100%;padding-bottom:60px;transition:transform .15s ease-out;display:flex}.preview-canvas-panel,.preview-canvas-pane,.editor-form-scroll,.uploader-scroll-pane,.drafts-full-view-panel,.invoices-history-page-view,.extracted-table-preview-wrap,.blueprint-code{scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent}.preview-canvas-panel::-webkit-scrollbar{width:8px;height:8px}.preview-canvas-pane::-webkit-scrollbar{width:8px;height:8px}.editor-form-scroll::-webkit-scrollbar{width:8px;height:8px}.uploader-scroll-pane::-webkit-scrollbar{width:8px;height:8px}.drafts-full-view-panel::-webkit-scrollbar{width:8px;height:8px}.invoices-history-page-view::-webkit-scrollbar{width:8px;height:8px}.extracted-table-preview-wrap::-webkit-scrollbar{width:8px;height:8px}.blueprint-code::-webkit-scrollbar{width:8px;height:8px}.preview-canvas-panel::-webkit-scrollbar-track{background:0 0}.preview-canvas-pane::-webkit-scrollbar-track{background:0 0}.editor-form-scroll::-webkit-scrollbar-track{background:0 0}.uploader-scroll-pane::-webkit-scrollbar-track{background:0 0}.drafts-full-view-panel::-webkit-scrollbar-track{background:0 0}.invoices-history-page-view::-webkit-scrollbar-track{background:0 0}.extracted-table-preview-wrap::-webkit-scrollbar-track{background:0 0}.blueprint-code::-webkit-scrollbar-track{background:0 0}.preview-canvas-panel::-webkit-scrollbar-thumb{background:#cbd5e1 padding-box padding-box;border:2px solid #0000;border-radius:8px}.preview-canvas-pane::-webkit-scrollbar-thumb{background:#cbd5e1 padding-box padding-box;border:2px solid #0000;border-radius:8px}.editor-form-scroll::-webkit-scrollbar-thumb{background:#cbd5e1 padding-box padding-box;border:2px solid #0000;border-radius:8px}.uploader-scroll-pane::-webkit-scrollbar-thumb{background:#cbd5e1 padding-box padding-box;border:2px solid #0000;border-radius:8px}.drafts-full-view-panel::-webkit-scrollbar-thumb{background:#cbd5e1 padding-box padding-box;border:2px solid #0000;border-radius:8px}.invoices-history-page-view::-webkit-scrollbar-thumb{background:#cbd5e1 padding-box padding-box;border:2px solid #0000;border-radius:8px}.extracted-table-preview-wrap::-webkit-scrollbar-thumb{background:#cbd5e1 padding-box padding-box;border:2px solid #0000;border-radius:8px}.blueprint-code::-webkit-scrollbar-thumb{background:#cbd5e1 padding-box padding-box;border:2px solid #0000;border-radius:8px}.preview-canvas-panel::-webkit-scrollbar-thumb:hover{background:#94a3b8 padding-box padding-box}.preview-canvas-pane::-webkit-scrollbar-thumb:hover{background:#94a3b8 padding-box padding-box}.editor-form-scroll::-webkit-scrollbar-thumb:hover{background:#94a3b8 padding-box padding-box}.uploader-scroll-pane::-webkit-scrollbar-thumb:hover{background:#94a3b8 padding-box padding-box}.drafts-full-view-panel::-webkit-scrollbar-thumb:hover{background:#94a3b8 padding-box padding-box}.invoices-history-page-view::-webkit-scrollbar-thumb:hover{background:#94a3b8 padding-box padding-box}.extracted-table-preview-wrap::-webkit-scrollbar-thumb:hover{background:#94a3b8 padding-box padding-box}.blueprint-code::-webkit-scrollbar-thumb:hover{background:#94a3b8 padding-box padding-box}.invoice-paper-wrapper{justify-content:center;display:flex}.invoice-a4-sheet{background:var(--invoice-paper-bg);width:794px;min-height:1123px;color:var(--invoice-text-dark);flex-direction:column;padding:44px 48px;display:flex;position:relative;box-shadow:0 10px 30px -10px #00000026,0 2px 6px #0000000d}.invoice-header{justify-content:space-between;align-items:flex-start;margin-bottom:24px;display:flex}.brand-group{align-items:center;gap:16px;display:flex}.brand-logo-badge{border-radius:18px;justify-content:center;align-items:center;width:58px;height:58px;display:flex;box-shadow:0 4px 12px #6e44ff40}.brand-logo-img{object-fit:cover;border-radius:18px;width:100%;height:100%}.brand-logo-letter{font-family:var(--font-display);color:#fff;margin-top:-2px;font-size:38px;font-weight:800;line-height:1}.brand-text{flex-direction:column;display:flex}.brand-name{font-family:var(--font-display);letter-spacing:-.02em;color:#111827;font-size:26px;font-weight:700;line-height:1.15}.brand-tagline{color:var(--invoice-text-subtle);margin-top:2px;font-size:13px}.invoice-meta-top{text-align:right;flex-direction:column;gap:2px;display:flex}.invoice-title{font-family:var(--font-display);letter-spacing:.02em;color:#111827;margin-bottom:4px;font-size:24px;font-weight:800}.invoice-meta-row{justify-content:flex-end;gap:6px;font-size:12px;display:flex}.meta-label{color:var(--invoice-text-subtle)}.meta-value{color:#111827;font-weight:600}.brand-divider{width:100%;height:2px;margin-bottom:24px}.client-project-grid{border:1px solid var(--invoice-border-soft);background:#f8fafc;border-radius:8px;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:28px;padding:20px 24px;display:grid}.grid-card{flex-direction:column;gap:4px;display:flex}.grid-label{font-family:var(--font-display);letter-spacing:.06em;color:#1e293b;margin-bottom:4px;font-size:12px;font-weight:800}.client-primary-name,.project-primary-name{color:#111827;font-size:14px;font-weight:700}.client-secondary-desc,.project-specs{color:var(--invoice-text-subtle);font-size:12px;line-height:1.45}.project-ref{margin-top:6px;font-size:11.5px}.ref-prefix{color:var(--invoice-text-subtle)}.ref-code{font-family:var(--font-mono);color:#111827;font-weight:600}.work-breakdown-section{margin-bottom:24px}.section-title{font-family:var(--font-display);letter-spacing:.06em;color:#1e293b;margin-bottom:10px;font-size:13px;font-weight:800}.breakdown-table{border-collapse:collapse;width:100%}.breakdown-table thead tr{background-color:var(--invoice-header-dark);color:#fff}.breakdown-table th{font-family:var(--font-display);text-align:left;letter-spacing:.02em;padding:9px 12px;font-size:11.5px;font-weight:700}.text-right{text-align:right!important}.col-no{width:44px}.col-hours{width:75px}.col-rate,.col-amount{width:105px}.breakdown-row{border-bottom:1px solid #f3f4f6}.breakdown-row td{vertical-align:top;padding:10px 12px;font-size:12px}.breakdown-row .col-no{color:var(--invoice-text-subtle);font-family:var(--font-mono);font-size:11px}.item-title{color:#111827;font-weight:600}.item-subtitle{color:var(--invoice-text-subtle);margin-top:2px;font-size:11px;line-height:1.35}.totals-section{border-top:1px solid var(--invoice-border-soft);justify-content:space-between;align-items:flex-start;margin-bottom:28px;padding-top:14px;display:flex}.amount-words-container{max-width:360px;font-size:12px;line-height:1.5}.words-label{color:#1e293b;font-weight:600}.words-content{color:#111827;font-weight:600}.totals-numbers-table{flex-direction:column;gap:6px;width:280px;display:flex}.calc-row{justify-content:space-between;font-size:12px;display:flex}.calc-label{color:var(--invoice-text-subtle)}.calc-val{color:#111827;font-weight:600}.total-due-box{border-top:1px solid #111827;justify-content:space-between;align-items:center;margin-top:6px;padding-top:8px;display:flex}.total-due-label{font-family:var(--font-display);letter-spacing:.04em;color:#111827;font-size:14px;font-weight:800}.total-due-amount{align-items:center;gap:6px;display:flex}.accent-square-indicator{border-radius:2px;width:10px;height:10px;display:inline-block}.due-number{font-family:var(--font-display);color:#4f46e5;font-size:18px;font-weight:800}.invoice-notes-section{margin-bottom:32px}.notes-heading{font-family:var(--font-display);letter-spacing:.05em;color:#111827;margin-bottom:6px;font-size:12px;font-weight:800}.notes-list{flex-direction:column;gap:4px;list-style:none;display:flex}.note-item{color:var(--invoice-text-subtle);align-items:flex-start;gap:6px;font-size:11px;line-height:1.45;display:flex}.bullet-point{color:#4b5563;font-size:14px;line-height:1}.invoice-footer{justify-content:space-between;align-items:flex-end;margin-top:auto;padding-top:24px;display:flex}.signature-block{flex-direction:column;gap:2px;min-width:200px;display:flex}.for-company-line{text-transform:uppercase;letter-spacing:.05em;color:#1e293b;font-size:11px;font-weight:700}.signature-space{flex-direction:column;align-items:flex-start;gap:3px;margin-top:10px;display:flex}.signature-image-container{align-items:center;min-height:48px;max-height:56px;padding:2px 0;display:flex}.signature-image{object-fit:contain;max-width:180px;max-height:52px;display:block}.signature-calligraphy-script{color:#1e1b4b;letter-spacing:.01em;-webkit-user-select:none;user-select:none;align-items:center;min-height:48px;padding:2px 0;font-family:Caveat,Dancing Script,cursive;font-size:34px;font-weight:700;line-height:1.1;display:flex}.signature-rule-line{background-color:#0f172a;border-radius:1px;width:160px;height:1.5px;margin:3px 0 5px}.signatory-name-title-group{flex-wrap:wrap;align-items:baseline;gap:6px;display:flex}.signatory-name{color:#0f172a;letter-spacing:-.01em;font-size:12.5px;font-weight:700}.signatory-title{color:#64748b;font-size:11px;font-weight:500}.signature-verified-badge{color:#047857;letter-spacing:.02em;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:9999px;align-items:center;gap:4px;margin-top:4px;padding:2px 7px;font-size:9.5px;font-weight:700;display:inline-flex}.sig-shield-icon{color:#059669;flex-shrink:0}.thank-you-line{color:var(--invoice-text-subtle);text-align:right;max-width:320px;font-size:12px;font-style:italic;line-height:1.4}.modal-backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:100;background:#0f172aa6;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.modal-card{background:#fff;border-radius:12px;flex-direction:column;width:100%;max-width:600px;max-height:85vh;display:flex;overflow:hidden;box-shadow:0 20px 25px -5px #0003,0 8px 10px -6px #0000001a}.modal-header{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:flex-start;padding:18px 20px;display:flex}.modal-title-group{align-items:flex-start;gap:12px;display:flex}.modal-header-icon{color:#6e44ff;margin-top:2px}.modal-title{font-family:var(--font-display);color:#0f172a;font-size:16px;font-weight:700}.modal-subtitle{color:#64748b;margin-top:2px;font-size:12px}.modal-close-btn{color:#94a3b8;cursor:pointer;background:0 0;border:none;padding:4px}.modal-close-btn:hover{color:#0f172a}.modal-body{flex-direction:column;gap:14px;padding:20px;display:flex;overflow-y:auto}.tenants-list{flex-direction:column;gap:10px;display:flex}.tenant-row-card{cursor:pointer;border:1px solid #e2e8f0;border-radius:8px;align-items:center;gap:14px;padding:12px 14px;transition:all .15s;display:flex}.tenant-row-card:hover{background:#f8fafc;border-color:#cbd5e1}.tenant-row-card.active{background:#faf8ff;border-color:#6e44ff}.tenant-avatar{color:#fff;width:40px;height:40px;font-family:var(--font-display);border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;font-size:14px;font-weight:800;display:flex}.tenant-name-row{align-items:center;gap:8px;display:flex}.tenant-org-name{color:#0f172a;font-size:14px;font-weight:700}.active-badge{color:#6e44ff;background:#ede9fe;border-radius:10px;padding:2px 6px;font-size:10px;font-weight:700}.tenant-org-tagline{color:#64748b;font-size:12px}.tenant-meta-tags{gap:6px;margin-top:6px;display:flex}.tag-pill{color:#475569;background:#f1f5f9;border-radius:4px;padding:2px 6px;font-size:10px}.tenant-actions{gap:6px;display:flex}.edit-tenant-btn,.select-tenant-btn{cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:4px 10px;font-size:12px;font-weight:600}.select-tenant-btn{color:#fff;background:#0f172a;border-color:#0f172a}.create-tenant-action-btn{color:#0f172a;cursor:pointer;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:8px;justify-content:center;align-items:center;gap:8px;padding:12px;font-size:13px;font-weight:600;transition:all .15s;display:flex}.create-tenant-action-btn:hover{color:#6e44ff;background:#ede9fe;border-color:#6e44ff}.color-picker-row{align-items:center;gap:12px;display:flex}.color-swatch-input{cursor:pointer;background:0 0;border:none;border-radius:8px;width:36px;height:36px}.color-presets{gap:6px;display:flex}.preset-color-dot{cursor:pointer;border:2px solid #fff;border-radius:50%;width:22px;height:22px;box-shadow:0 0 0 1px #cbd5e1}.grid-2-inline{grid-template-columns:1fr 1fr;gap:8px;display:grid}.modal-footer-row{border-top:1px solid #e2e8f0;justify-content:flex-end;gap:10px;padding-top:10px;display:flex}.cancel-btn{color:#334155;cursor:pointer;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:6px;padding:8px 14px;font-size:13px;font-weight:600}.save-tenant-btn{color:#fff;cursor:pointer;border:none;border-radius:6px;align-items:center;gap:6px;padding:8px 16px;font-size:13px;font-weight:600;display:flex}.toast-notification{color:#fff;z-index:90;background:#0f172a;border:1px solid #334155;border-radius:8px;align-items:center;gap:8px;padding:10px 16px;font-size:13px;font-weight:500;animation:.2s ease-out toastIn;display:flex;position:fixed;bottom:24px;right:24px;box-shadow:0 10px 15px -3px #0003}@keyframes toastIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.toast-success{border-left:4px solid #10b981}.logo-upload-section{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;flex-direction:column;gap:8px;padding:14px;display:flex}.logo-upload-box{align-items:center;gap:16px;display:flex}.brand-logo-preview{border-radius:16px;flex-shrink:0;justify-content:center;align-items:center;width:60px;height:60px;display:flex;overflow:hidden;box-shadow:0 4px 10px #0000001f}.brand-logo-preview-img{object-fit:contain;background:#fff;width:100%;height:100%}.brand-logo-letter-preview{font-family:var(--font-display);color:#fff;font-size:32px;font-weight:800}.logo-upload-controls{flex-direction:column;gap:6px;display:flex}.logo-upload-buttons{align-items:center;gap:10px;display:flex}.upload-logo-cta-btn{color:#fff;cursor:pointer;background:#0f172a;border-radius:6px;align-items:center;gap:6px;padding:6px 14px;font-size:12px;font-weight:600;transition:all .15s;display:inline-flex}.upload-logo-cta-btn:hover{background:#1e293b;transform:translateY(-1px)}.remove-logo-btn{color:#ef4444;cursor:pointer;background:0 0;border:1px solid #fca5a5;border-radius:6px;align-items:center;gap:4px;padding:6px 12px;font-size:12px;font-weight:600;transition:all .15s;display:inline-flex}.remove-logo-btn:hover{background:#fee2e2}.logo-format-hint{color:var(--color-text-muted);font-size:11px;line-height:1.4}.tenant-avatar-img{object-fit:cover;border-radius:10px;width:100%;height:100%}.brand-logo-badge.clickable-logo{cursor:pointer;transition:transform .15s,box-shadow .15s;position:relative}.brand-logo-badge.clickable-logo:hover{transform:scale(1.04);box-shadow:0 6px 16px #6e44ff66}.logo-hover-edit-badge{color:#fff;opacity:0;background:#0f172a;border:2px solid #fff;border-radius:50%;justify-content:center;align-items:center;width:20px;height:20px;transition:opacity .15s;display:flex;position:absolute;bottom:-4px;right:-4px}.brand-logo-badge.clickable-logo:hover .logo-hover-edit-badge{opacity:1}.tenant-brand-editor-bar{background:#fff;border:1px solid #e2e8f0;border-radius:10px;justify-content:space-between;align-items:center;padding:12px 14px;display:flex;box-shadow:0 1px 3px #00000005}.tenant-brand-snippet{align-items:center;gap:12px;display:flex}.tenant-badge-sm{color:#fff;width:34px;height:34px;font-family:var(--font-display);border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;font-size:14px;font-weight:800;display:flex;overflow:hidden}.tenant-badge-img{object-fit:cover;width:100%;height:100%}.tenant-snippet-info{flex-direction:column;display:flex}.tenant-snippet-name{font-family:var(--font-display);color:#0f172a;font-size:13px;font-weight:700}.tenant-snippet-hint{color:var(--color-text-muted);font-size:11px}.tenant-change-logo-btn{color:#334155;cursor:pointer;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:6px;align-items:center;gap:6px;padding:6px 12px;font-size:12px;font-weight:600;transition:all .15s;display:flex}.tenant-change-logo-btn:hover{color:#0f172a;background:#e2e8f0}.nav-history-pill-btn{color:#e2e8f0;cursor:pointer;background:#ffffff14;border:1px solid #ffffff26;border-radius:6px;align-items:center;gap:6px;margin-left:6px;padding:5px 10px;font-size:12px;font-weight:500;transition:all .15s;display:flex}.nav-history-pill-btn:hover{color:#fff;background:#ffffff29}.drafts-counter-badge{color:#000;text-transform:uppercase;letter-spacing:.02em;background:#f59e0b;border-radius:10px;padding:1px 6px;font-size:10px;font-weight:800}.integrated-history-pane{background-color:#f8fafc;flex-direction:column;flex:1;width:100%;height:100%;display:flex;overflow-y:auto}.invoices-history-page-view{flex-direction:column;gap:20px;width:100%;max-width:1200px;margin:0 auto;padding:24px 20px 100px;display:flex}.history-page-header{background:#fff;border:1px solid #e2e8f0;border-radius:12px;justify-content:space-between;align-items:center;padding:20px 24px;display:flex;box-shadow:0 1px 3px #00000008}.history-header-left{align-items:center;gap:16px;display:flex}.history-tenant-badge{color:#fff;width:48px;height:48px;font-family:var(--font-display);border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;font-size:20px;font-weight:800;display:flex;overflow:hidden;box-shadow:0 4px 12px #0000001f}.history-tenant-img{object-fit:cover;width:100%;height:100%}.history-page-title{font-family:var(--font-display);color:#0f172a;letter-spacing:-.02em;font-size:20px;font-weight:800}.history-page-subtitle{color:#64748b;margin-top:2px;font-size:13px}.history-new-invoice-btn{color:#fff;cursor:pointer;border:none;border-radius:8px;flex-shrink:0;align-items:center;gap:8px;padding:10px 18px;font-size:13px;font-weight:600;transition:all .2s;display:flex;box-shadow:0 2px 8px #00000026}.history-new-invoice-btn:hover{filter:brightness(1.1);transform:translateY(-1px)}.history-controls-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;justify-content:space-between;align-items:center;gap:16px;padding:12px 16px;display:flex;box-shadow:0 1px 3px #00000005}.history-search-input-wrapper{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;flex:1;align-items:center;max-width:480px;padding:8px 12px;transition:all .15s;display:flex;position:relative}.history-search-input-wrapper:focus-within{background:#fff;border-color:#6e44ff;box-shadow:0 0 0 3px #6e44ff1a}.history-search-icon{color:#94a3b8;flex-shrink:0;margin-right:8px}.history-search-input{color:#0f172a;background:0 0;border:none;outline:none;flex:1;font-size:13px}.clear-search-btn{color:#94a3b8;cursor:pointer;background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;padding:2px;display:flex}.clear-search-btn:hover{color:#0f172a}.history-status-pills{align-items:center;gap:8px;display:flex;overflow-x:auto}.status-filter-btn{color:#475569;cursor:pointer;white-space:nowrap;background:#f1f5f9;border:1px solid #0000;border-radius:20px;align-items:center;gap:6px;padding:7px 14px;font-size:12.5px;font-weight:600;transition:all .15s;display:flex}.status-filter-btn:hover{color:#0f172a;background:#e2e8f0}.status-filter-btn.active{color:#fff;background:#0f172a}.status-filter-btn.filter-draft.active{color:#fff;background:#d97706}.status-filter-btn.filter-sent.active{color:#fff;background:#0284c7}.status-filter-btn.filter-paid.active{color:#fff;background:#16a34a}.history-cards-grid{grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:16px;display:grid}.invoice-record-card{cursor:pointer;background:#fff;border:1.5px solid #e2e8f0;border-radius:12px;flex-direction:column;justify-content:space-between;padding:18px;transition:all .2s;display:flex;box-shadow:0 1px 3px #00000005}.invoice-record-card:hover{border-color:#cbd5e1;transform:translateY(-2px);box-shadow:0 8px 20px -4px #0000000f}.invoice-record-card.active-selection{background:linear-gradient(#fff 0%,#faf8ff 100%);border-color:#6e44ff;box-shadow:0 0 0 1px #6e44ff,0 8px 20px -4px #6e44ff1f}.record-card-header{border-bottom:1px solid #f1f5f9;justify-content:space-between;align-items:center;margin-bottom:12px;padding-bottom:10px;display:flex}.record-id-row{align-items:center;gap:8px;display:flex}.record-number{font-family:var(--font-mono);color:#0f172a;font-size:13px;font-weight:700}.active-working-tag{color:#4f46e5;text-transform:uppercase;background:#eef2ff;border-radius:4px;padding:2px 6px;font-size:10px;font-weight:700}.record-total-amount{font-family:var(--font-mono);color:#0f172a;align-items:baseline;gap:3px;font-weight:700;display:flex}.amount-curr{color:#64748b;font-size:12px}.amount-val{font-size:16px}.record-card-main{flex-direction:column;gap:4px;margin-bottom:16px;display:flex}.record-client-title{font-family:var(--font-display);color:#0f172a;font-size:15px;font-weight:700}.record-project-desc{color:#64748b;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12.5px;display:-webkit-box;overflow:hidden}.record-meta-footer{color:#94a3b8;align-items:center;gap:8px;margin-top:6px;font-size:11.5px;display:flex}.meta-dot{font-size:10px}.record-card-actions{border-top:1px solid #f1f5f9;align-items:center;gap:6px;padding-top:12px;display:flex}.rec-action-btn{color:#334155;cursor:pointer;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;justify-content:center;align-items:center;gap:5px;min-height:32px;padding:6px 12px;font-size:11.5px;font-weight:600;transition:all .15s;display:flex}.rec-action-btn:hover{color:#0f172a;background:#f1f5f9;border-color:#cbd5e1}.rec-action-btn.primary-edit{color:#fff;background:#0f172a;border-color:#0f172a}.rec-action-btn.primary-edit:hover{background:#1e293b}.rec-action-btn.delete-action{color:#dc2626;background:#fef2f2;border-color:#fee2e2;margin-left:auto;padding:6px 8px}.rec-action-btn.delete-action:hover{background:#fee2e2;border-color:#fca5a5}.history-empty-card{text-align:center;background:#fff;border:1.5px dashed #cbd5e1;border-radius:16px;flex-direction:column;justify-content:center;align-items:center;max-width:500px;margin:40px auto;padding:48px 24px;display:flex}.empty-state-icon{color:#cbd5e1;margin-bottom:16px}.empty-state-title{font-family:var(--font-display);color:#0f172a;margin-bottom:6px;font-size:16px;font-weight:700}.empty-state-text{color:#64748b;margin-bottom:20px;font-size:13px;line-height:1.5}.empty-state-action-btn{color:#fff;cursor:pointer;border:none;border-radius:8px;align-items:center;gap:8px;padding:9px 18px;font-size:13px;font-weight:600;transition:all .2s;display:flex}.tenant-modal-backdrop{-webkit-backdrop-filter:blur(8px);z-index:100;background:#0f172aa6;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.tenant-modal-sheet{background:#fff;border-radius:16px;flex-direction:column;width:100%;max-width:760px;max-height:90vh;animation:.2s cubic-bezier(.16,1,.3,1) modalPop;display:flex;overflow:hidden;box-shadow:0 25px 50px -12px #0000004d}@keyframes modalPop{0%{opacity:0;transform:scale(.96)translateY(8px)}to{opacity:1;transform:scale(1)translateY(0)}}.tenant-modal-header{background:#f8fafc;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:flex-start;padding:20px 24px;display:flex}.tenant-modal-title-wrap{align-items:flex-start;gap:14px;display:flex}.tenant-modal-badge{color:#fff;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;display:flex;box-shadow:0 4px 12px #00000026}.tenant-modal-h2{font-family:var(--font-display);color:#0f172a;letter-spacing:-.01em;font-size:18px;font-weight:800}.tenant-modal-sub{color:#64748b;margin-top:3px;font-size:12.5px}.modal-close-icon-btn{color:#64748b;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:8px;justify-content:center;align-items:center;width:32px;height:32px;transition:all .15s;display:flex}.modal-close-icon-btn:hover{color:#0f172a;background:#f1f5f9}.tenant-modal-nav-tabs{background:#fff;border-bottom:1px solid #e2e8f0;padding:0 24px;display:flex}.tenant-tab-btn{color:#64748b;cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;align-items:center;gap:8px;padding:12px 16px;font-size:13px;font-weight:600;transition:all .15s;display:flex}.tenant-tab-btn:hover{color:#0f172a}.tenant-tab-btn.active{color:#0f172a;border-bottom-color:#6e44ff}.tenant-modal-body{flex-direction:column;gap:18px;padding:24px;display:flex;overflow-y:auto}.organization-cards-grid{grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px;display:grid}.organization-item-card{cursor:pointer;background:#fff;border:1.5px solid #e2e8f0;border-radius:12px;flex-direction:column;justify-content:space-between;gap:14px;padding:18px;transition:all .2s;display:flex;position:relative}.organization-item-card:hover{border-color:#cbd5e1;transform:translateY(-2px);box-shadow:0 8px 24px -4px #00000014}.organization-item-card.is-active-org{background:linear-gradient(#fff 0%,#f5f3ff 100%);border-color:#6e44ff;box-shadow:0 0 0 1px #6e44ff,0 8px 20px -4px #6e44ff26}.org-card-top{align-items:flex-start;gap:14px;display:flex}.org-logo-box{color:#fff;width:48px;height:48px;font-family:var(--font-display);border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;font-size:20px;font-weight:800;display:flex;overflow:hidden;box-shadow:0 3px 8px #00000026}.org-logo-preview-img{object-fit:cover;width:100%;height:100%}.org-logo-letter{line-height:1}.org-text-content{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.org-name-row{justify-content:space-between;align-items:center;gap:8px;display:flex}.org-name-heading{font-family:var(--font-display);color:#0f172a;white-space:nowrap;text-overflow:ellipsis;font-size:15px;font-weight:800;overflow:hidden}.org-active-pill{color:#059669;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:12px;flex-shrink:0;align-items:center;gap:4px;padding:2px 7px;font-size:10.5px;font-weight:700;display:flex}.org-tagline-text{color:#64748b;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;line-height:1.4;display:-webkit-box;overflow:hidden}.org-meta-badges-row{background:#f8fafc;border:1px solid #f1f5f9;border-radius:8px;flex-wrap:wrap;gap:6px;padding:8px 10px;display:flex}.org-meta-tag{color:#475569;font-size:11px}.org-card-footer-actions{border-top:1px solid #f1f5f9;justify-content:space-between;align-items:center;gap:8px;padding-top:10px;display:flex}.org-settings-btn{color:#334155;cursor:pointer;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:6px;align-items:center;gap:5px;padding:6px 10px;font-size:11.5px;font-weight:600;transition:all .15s;display:flex}.org-settings-btn:hover{color:#0f172a;background:#e2e8f0}.org-switch-cta-btn{color:#fff;cursor:pointer;border:none;border-radius:6px;align-items:center;gap:6px;padding:6px 12px;font-size:11.5px;font-weight:600;transition:all .15s;display:flex;box-shadow:0 2px 6px #0000001f}.org-switch-cta-btn:hover{filter:brightness(1.1);transform:translateY(-1px)}.org-current-label{color:#059669;margin-left:auto;font-size:11.5px;font-weight:700}.add-new-tenant-card-btn{color:#475569;cursor:pointer;background:#f8fafc;border:2px dashed #cbd5e1;border-radius:12px;justify-content:center;align-items:center;gap:8px;width:100%;padding:16px;font-size:13px;font-weight:600;transition:all .15s;display:flex}.add-new-tenant-card-btn:hover{color:#6e44ff;background:#f1f5f9;border-color:#6e44ff}.tenant-config-section{background:#fff;border:1px solid #e2e8f0;border-radius:12px;flex-direction:column;gap:14px;padding:18px;display:flex}.config-section-title{font-family:var(--font-display);color:#0f172a;border-bottom:1px solid #f1f5f9;align-items:center;gap:8px;padding-bottom:8px;font-size:14px;font-weight:700;display:flex}.logo-upload-hero-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;align-items:center;gap:18px;padding:14px;display:flex}.hero-logo-preview{color:#fff;width:64px;height:64px;font-family:var(--font-display);border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;font-size:26px;font-weight:800;display:flex;overflow:hidden;box-shadow:0 4px 12px #00000026}.hero-logo-img{object-fit:cover;width:100%;height:100%}.hero-logo-letter{line-height:1}.hero-logo-actions{flex-direction:column;gap:6px;display:flex}.hero-logo-btns-row{align-items:center;gap:8px;display:flex}.hidden-file-input{display:none}.hero-upload-btn{color:#fff;cursor:pointer;background:#0f172a;border-radius:6px;align-items:center;gap:6px;padding:7px 14px;font-size:12px;font-weight:600;transition:all .15s;display:inline-flex}.hero-upload-btn:hover{background:#1e293b}.hero-remove-btn{color:#dc2626;cursor:pointer;background:#fef2f2;border:1px solid #fee2e2;border-radius:6px;align-items:center;gap:5px;padding:6px 12px;font-size:12px;font-weight:600;transition:all .15s;display:inline-flex}.hero-remove-btn:hover{background:#fee2e2}.hero-logo-desc{color:#64748b;font-size:11.5px}.color-swatches-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px;display:grid}.swatch-item{cursor:pointer;background:#fff;border:1.5px solid #e2e8f0;border-radius:8px;align-items:center;gap:8px;padding:6px 10px;transition:all .15s;display:flex}.swatch-item:hover{border-color:#cbd5e1}.swatch-item.active{background:#f8fafc;border-color:#0f172a;box-shadow:0 0 0 1px #0f172a}.swatch-color-circle{border-radius:50%;flex-shrink:0;width:14px;height:14px}.swatch-name{color:#334155;white-space:nowrap;text-overflow:ellipsis;font-size:11.5px;font-weight:600;overflow:hidden}.font-cursive{font-family:Caveat,Dancing Script,cursive}.input-group{flex-direction:column;gap:5px;display:flex}.field-label-text{font-family:var(--font-display);color:#1e293b;letter-spacing:-.01em;justify-content:space-between;align-items:center;font-size:12px;font-weight:700;display:flex}.required-star{color:#ef4444;margin-left:2px;font-weight:800}.field-hint-text{color:#64748b;margin-top:1px;font-size:11px;line-height:1.35}.input-affix-wrapper{align-items:center;width:100%;display:flex;position:relative}.input-prefix-icon{color:#94a3b8;pointer-events:none;z-index:2;justify-content:center;align-items:center;transition:color .15s;display:flex;position:absolute;left:11px}.input-prefix-icon.top-anchored{align-items:flex-start;top:10px}.input-affix-wrapper:focus-within .input-prefix-icon{color:#6e44ff}.app-text-input{width:100%;height:38px;font-family:var(--font-body);color:#0f172a;background:#fff;border:1.5px solid #e2e8f0;border-radius:8px;outline:none;padding:0 12px;font-size:13px;transition:all .15s;box-shadow:0 1px 2px #00000005}.app-text-input.with-prefix{padding-left:36px}.app-text-input:focus,.app-select-input:focus,.app-textarea-input:focus{background:#fff;border-color:#6e44ff;box-shadow:0 0 0 3px #6e44ff1f}.app-textarea-input{width:100%;font-family:var(--font-body);color:#0f172a;resize:vertical;background:#fff;border:1.5px solid #e2e8f0;border-radius:8px;outline:none;padding:8px 12px;font-size:13px;line-height:1.45;transition:all .15s;box-shadow:0 1px 2px #00000005}.app-textarea-input.with-prefix{padding-left:36px}.org-live-preview-banner{background:linear-gradient(135deg,#f8fafc 0%,#faf8ff 100%);border:1.5px dashed #cbd5e1;border-radius:12px;align-items:center;gap:14px;margin-bottom:6px;padding:14px 16px;display:flex;box-shadow:0 2px 8px #00000005}.org-preview-logo-box{color:#fff;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;display:flex;overflow:hidden;box-shadow:0 3px 8px #00000026}.org-preview-logo-img{object-fit:cover;width:100%;height:100%}.org-preview-logo-text{font-size:18px;font-weight:800}.org-preview-info{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.org-preview-name-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.org-preview-name{font-family:var(--font-display);color:#0f172a;font-size:14px;font-weight:800}.org-preview-prefix-badge{color:#4f46e5;background:#eef2ff;border-radius:4px;padding:2px 7px;font-size:10.5px;font-weight:700}.org-preview-tagline{color:#64748b;white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.org-preview-contact-line{flex-wrap:wrap;align-items:center;gap:12px;margin-top:2px;display:flex}.org-contact-item{color:#475569;align-items:center;gap:4px;font-size:11px;display:inline-flex}.config-grid-2{grid-template-columns:repeat(2,1fr);gap:14px;display:grid}.config-grid-2 .span-full{grid-column:1/-1}.input-with-preview-badge{align-items:center;display:flex;position:relative}.input-with-preview-badge .app-text-input{padding-right:120px}.sample-series-tag{color:#4f46e5;font-family:var(--font-mono);pointer-events:none;background:#eef2ff;border-radius:6px;padding:3px 8px;font-size:11px;font-weight:700;position:absolute;right:10px}.currency-cards-grid{grid-template-columns:repeat(4,1fr);gap:10px;display:grid}.currency-select-card{cursor:pointer;background:#f8fafc;border:1.5px solid #e2e8f0;border-radius:10px;flex-direction:column;gap:4px;padding:12px;transition:all .15s;display:flex;position:relative}.currency-select-card:hover{background:#fff;border-color:#cbd5e1;transform:translateY(-1px)}.currency-select-card.is-selected{background:#fff;border-color:#6e44ff;box-shadow:0 0 0 1px #6e44ff,0 4px 12px #6e44ff1f}.curr-card-top{justify-content:space-between;align-items:center;margin-bottom:2px;display:flex}.curr-symbol-badge{color:#0f172a;background:#eef2ff;border-radius:6px;justify-content:center;align-items:center;width:26px;height:26px;font-size:15px;font-weight:800;display:flex}.currency-select-card.is-selected .curr-symbol-badge{color:#fff;background:#6e44ff}.curr-code{color:#64748b;font-size:12px;font-weight:700}.curr-check-icon{color:#6e44ff}.curr-name{color:#0f172a;font-size:12px;font-weight:700}.curr-system{color:#64748b;font-size:10.5px}.curr-sample{color:#059669;border-top:1px dashed #e2e8f0;margin-top:4px;padding-top:4px;font-size:11.5px;font-weight:700}.tax-presets-row{flex-wrap:wrap;gap:8px;display:flex}.tax-preset-chip{cursor:pointer;background:#fff;border:1.5px solid #e2e8f0;border-radius:8px;flex-direction:column;flex:1;align-items:flex-start;gap:2px;min-width:120px;padding:8px 12px;transition:all .15s;display:flex}.tax-preset-chip:hover{background:#f8fafc;border-color:#cbd5e1}.tax-preset-chip.active{color:#fff;background:#0f172a;border-color:#0f172a}.tax-preset-label{font-size:12px;font-weight:700}.tax-preset-chip.active .tax-preset-label{color:#fff}.tax-preset-desc{color:#64748b;font-size:10.5px}.tax-preset-chip.active .tax-preset-desc{color:#94a3b8}.signature-studio-layout{grid-template-columns:1.1fr .9fr;gap:18px;display:grid}.signature-inputs-stack{flex-direction:column;gap:12px;display:flex}.signature-live-preview-card{background:#faf8ff;border:1.5px dashed #c7d2fe;border-radius:12px;flex-direction:column;justify-content:space-between;gap:14px;padding:18px;display:flex}.sig-preview-label{color:#4f46e5;text-transform:uppercase;letter-spacing:.04em;align-items:center;gap:6px;font-size:11.5px;font-weight:700;display:flex}.sig-render-box{text-align:center;background:#fff;border:1px solid #e2e8f0;border-radius:8px;flex-direction:column;align-items:center;gap:4px;padding:18px 20px;display:flex;box-shadow:0 2px 8px #0000000a}.sig-for-company{color:#1e2229;text-transform:uppercase;letter-spacing:.03em;font-size:12px;font-weight:700}.sig-calligraphy-script{color:#1e1b4b;justify-content:center;align-items:center;min-height:48px;padding:4px 0;font-size:32px;line-height:1.1;display:flex}.sig-rule-line{background:#cbd5e1;width:140px;height:1px;margin:4px 0}.sig-title-text{color:#64748b;font-size:11px;font-weight:600}.sig-verified-badge{color:#059669;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:10px;align-items:center;gap:4px;margin-top:6px;padding:2px 6px;font-size:10px;font-weight:700;display:inline-flex}.sig-closing-thanks{color:#475569;text-align:center;background:#fff9;border-radius:6px;padding:6px;font-size:12px;font-style:italic}.signature-file-action-bar{flex-wrap:wrap;align-items:center;gap:10px;margin-top:4px;display:flex}.sig-file-upload-btn{color:#4f46e5;cursor:pointer;background:#eef2ff;border:1px dashed #6366f1;border-radius:8px;align-items:center;gap:7px;padding:8px 14px;font-size:12px;font-weight:600;transition:all .15s;display:inline-flex}.sig-file-upload-btn:hover{color:#3730a3;background:#e0e7ff;border-color:#4338ca}.sig-file-remove-btn{color:#dc2626;cursor:pointer;background:#fee2e2;border:1px solid #fecaca;border-radius:8px;align-items:center;gap:6px;padding:8px 12px;font-size:12px;font-weight:600;transition:all .15s;display:inline-flex}.sig-file-remove-btn:hover{color:#991b1b;background:#fca5a5}.sig-image-container{justify-content:center;align-items:center;min-height:48px;padding:4px 0;display:flex}.sig-image-preview{object-fit:contain;max-width:170px;max-height:48px;display:block}.editor-signature-controls{border-top:1px solid #e2e8f0;flex-direction:column;gap:8px;margin-top:14px;padding-top:14px;display:flex}.sig-action-buttons-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.editor-sig-upload-btn{color:#15803d;cursor:pointer;background:#f0fdf4;border:1px dashed #16a34a;border-radius:8px;align-items:center;gap:6px;padding:8px 14px;font-size:12px;font-weight:600;transition:all .15s;display:inline-flex}.editor-sig-upload-btn:hover{color:#166534;background:#dcfce7;border-color:#15803d}.editor-sig-remove-btn{color:#b91c1c;cursor:pointer;background:#fef2f2;border:1px solid #fca5a5;border-radius:8px;align-items:center;gap:6px;padding:8px 12px;font-size:12px;font-weight:600;transition:all .15s;display:inline-flex}.editor-sig-remove-btn:hover{background:#fee2e2}.editor-sig-preview-container{background:#faf5ff;border:1px dashed #d8b4fe;border-radius:10px;flex-direction:column;gap:10px;margin-top:14px;padding:14px 16px;display:flex}.editor-sig-preview-badge{color:#7e22ce;text-transform:uppercase;letter-spacing:.04em;align-items:center;gap:6px;font-size:11px;font-weight:700;display:flex}.editor-sig-card-content{background:#fff;border:1px solid #e2e8f0;border-radius:8px;flex-direction:column;align-items:flex-start;gap:3px;padding:14px 16px;display:flex;box-shadow:0 1px 3px #0000000d}.editor-sig-for-company{color:#1e293b;text-transform:uppercase;letter-spacing:.04em;font-size:11px;font-weight:700}.editor-sig-img-wrap{align-items:center;min-height:44px;padding:2px 0;display:flex}.editor-sig-img{object-fit:contain;max-width:160px;max-height:44px;display:block}.editor-sig-script{color:#1e1b4b;align-items:center;min-height:44px;padding:2px 0;font-family:Caveat,Dancing Script,cursive;font-size:32px;font-weight:700;line-height:1.1;display:flex}.editor-sig-line{border-radius:1px;width:160px;height:1.5px;margin:3px 0 5px}.editor-sig-name-title{align-items:baseline;gap:6px;font-size:12px;display:flex}.editor-sig-badge{color:#047857;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:9999px;align-items:center;gap:4px;margin-top:3px;padding:1px 6px;font-size:9.5px;font-weight:700;display:inline-flex}.editor-sig-closing-text{color:#64748b;margin-top:6px;font-size:11.5px;font-style:italic}.config-footer-actions{border-top:1px solid #e2e8f0;justify-content:flex-end;align-items:center;gap:12px;padding-top:14px;display:flex}.config-cancel-btn{color:#475569;cursor:pointer;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:8px;padding:9px 16px;font-size:13px;font-weight:600;transition:all .15s}.config-cancel-btn:hover{color:#0f172a;background:#e2e8f0}.config-save-btn{color:#fff;cursor:pointer;border:none;border-radius:8px;align-items:center;gap:8px;padding:9px 20px;font-size:13px;font-weight:600;transition:all .15s;display:flex;box-shadow:0 2px 8px #0003}.config-save-btn:hover{filter:brightness(1.1);transform:translateY(-1px)}.canvas-print-direct-btn{color:#fff;cursor:pointer;border:none;border-radius:6px;align-items:center;gap:6px;margin-left:10px;padding:6px 14px;font-size:12px;font-weight:600;transition:all .15s;display:inline-flex;box-shadow:0 2px 8px #00000026}.canvas-print-direct-btn:hover{filter:brightness(1.1);transform:translateY(-1px)}.confirm-modal-backdrop{-webkit-backdrop-filter:blur(8px);z-index:110;background:#0f172ab3;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.confirm-modal-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;flex-direction:column;width:100%;max-width:520px;animation:.2s cubic-bezier(.16,1,.3,1) modalPop;display:flex;overflow:hidden;box-shadow:0 25px 50px -12px #00000059}.confirm-modal-header{border-bottom:1px solid #f1f5f9;justify-content:space-between;align-items:flex-start;padding:20px 22px 16px;display:flex}.confirm-header-title-row{align-items:flex-start;gap:14px;display:flex}.confirm-icon-badge{border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;display:flex}.confirm-icon-badge.badge-delete{color:#dc2626;background:#fef2f2;border:1px solid #fee2e2}.confirm-icon-badge.badge-clone{color:#4f46e5;background:#eef2ff;border:1px solid #e0e7ff}.confirm-modal-h3{font-family:var(--font-display);color:#0f172a;letter-spacing:-.01em;font-size:17px;font-weight:800}.confirm-modal-sub{color:#64748b;margin-top:3px;font-size:12.5px;line-height:1.4}.confirm-modal-body{background:#fff;flex-direction:column;gap:16px;padding:20px 22px;display:flex}.source-invoice-snippet{background:#f8fafc;border:1.5px solid #e2e8f0;border-radius:12px;flex-direction:column;gap:10px;padding:14px 16px;display:flex}.snippet-top{border-bottom:1px solid #edf2f7;justify-content:space-between;align-items:center;padding-bottom:8px;display:flex}.snippet-inv-id{align-items:center;gap:8px;font-size:13px;display:flex}.snippet-total{color:#0f172a;font-size:15px}.snippet-main{flex-direction:column;gap:2px;display:flex}.snippet-client{color:#0f172a;font-size:14px;font-weight:700}.snippet-project{color:#64748b;font-size:12px}.snippet-meta{color:#94a3b8;margin-top:2px;font-size:11.5px}.delete-warning-box{color:#9f1239;background:#fff1f2;border:1px solid #ffe4e6;border-radius:10px;align-items:flex-start;gap:10px;padding:12px 14px;font-size:12.5px;line-height:1.45;display:flex}.delete-warning-box code{font-family:var(--font-mono);background:#e11d481a;border-radius:4px;padding:1px 4px;font-weight:700}.clone-form-stack{flex-direction:column;gap:14px;display:flex}.utilization-toggle-card{cursor:pointer;background:#faf8ff;border:1.5px solid #e0e7ff;border-radius:10px;align-items:flex-start;gap:12px;padding:12px 14px;transition:all .15s;display:flex}.utilization-toggle-card:hover{background:#f5f3ff;border-color:#c7d2fe}.utilization-checkbox{accent-color:#6e44ff;cursor:pointer;flex-shrink:0;width:16px;height:16px;margin-top:3px}.utilization-text{flex-direction:column;gap:2px;display:flex}.utilization-title{color:#1e1b4b;font-size:12.5px}.utilization-desc{color:#64748b;font-size:11.5px;line-height:1.35}.confirm-modal-footer{background:#f8fafc;border-top:1px solid #e2e8f0;justify-content:flex-end;align-items:center;gap:10px;padding:16px 22px;display:flex}.confirm-cancel-btn{color:#475569;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:9px 16px;font-size:13px;font-weight:600;transition:all .15s}.confirm-cancel-btn:hover{color:#0f172a;background:#f1f5f9}.confirm-delete-action-btn{color:#fff;cursor:pointer;background:#dc2626;border:none;border-radius:8px;align-items:center;gap:6px;padding:9px 18px;font-size:13px;font-weight:600;transition:all .15s;display:flex;box-shadow:0 2px 6px #dc262640}.confirm-delete-action-btn:hover{background:#b91c1c;transform:translateY(-1px)}.confirm-clone-action-btn{color:#fff;cursor:pointer;border:none;border-radius:8px;align-items:center;gap:8px;padding:9px 20px;font-size:13px;font-weight:600;transition:all .15s;display:flex;box-shadow:0 2px 8px #0003}.confirm-clone-action-btn:hover{filter:brightness(1.1);transform:translateY(-1px)}.nav-delete-btn:hover{color:#ef4444!important;background:#ef44441a!important;border-color:#ef444466!important}.mobile-floating-dock{z-index:50;pointer-events:none;width:calc(100% - 28px);max-width:440px;position:fixed;bottom:14px;left:50%;transform:translate(-50%)}.mobile-dock-tabs{pointer-events:auto;-webkit-backdrop-filter:blur(12px);background:#0f172aeb;border:1px solid #ffffff26;border-radius:30px;padding:4px;display:flex;box-shadow:0 10px 25px -5px #0006,0 8px 10px -6px #0003}.dock-tab-btn{color:#94a3b8;cursor:pointer;background:0 0;border:none;border-radius:24px;flex:1;justify-content:center;align-items:center;gap:6px;min-height:44px;padding:10px 14px;font-size:12.5px;font-weight:600;transition:all .2s;display:flex}.dock-tab-btn.active{color:#fff;background:#6e44ff;box-shadow:0 2px 8px #6e44ff66}.dock-drafts-tab{color:#e2e8f0;background:#ffffff14;border:1px solid #ffffff1a}.dock-drafts-tab:hover{color:#fff;background:#ffffff2e}.invoice-status-crumb-btn{cursor:pointer;color:#fff;background:0 0;border:none;border-radius:6px;align-items:center;gap:6px;padding:4px 8px;transition:all .15s;display:flex}.invoice-status-crumb-btn:hover{background:#ffffff1a}@media screen and (width<=1024px){.hide-on-tablet{display:none!important}.mode-split .input-studio-panel,.layout-split .editor-sidebar-pane{border-right:none;width:100%!important}.mode-split .preview-canvas-panel,.layout-split .preview-canvas-pane{display:none}.input-studio-panel,.editor-sidebar-pane{width:100%!important}.is-mobile-screen .editor-form-scroll{padding-bottom:90px}.is-mobile-screen .preview-canvas-panel,.is-mobile-screen .preview-canvas-pane{padding-bottom:120px}.history-drawer-panel{width:440px;max-width:85vw}}@media screen and (width<=768px){.hide-on-mobile{display:none!important}.app-top-nav{height:52px;padding:0 10px}.nav-left{gap:8px}.tenant-selector-pill{gap:6px;padding:4px 8px}.tenant-selector-org{white-space:nowrap;text-overflow:ellipsis;max-width:110px;font-size:12px;overflow:hidden}.nav-history-pill-btn{margin-left:2px;padding:4px 8px}.nav-right-actions{gap:6px}.primary-print-btn{padding:6px 10px;font-size:11px}.form-grid-3,.form-grid-2{grid-template-columns:1fr;gap:10px}.item-editor-row{flex-direction:column;align-items:stretch;gap:10px}.item-inputs-stack{width:100%}.item-quantities{grid-template-columns:1fr 1fr 1.2fr auto;align-items:flex-end;gap:8px;width:100%;display:grid}.qty-col,.amount-col{width:100%}.computed-amount{text-align:center;padding:6px 4px;font-size:11.5px}.history-drawer-panel{width:100vw;max-width:100vw;height:100vh}.modal-card{max-width:96vw;max-height:92vh}.modal-body{padding:14px}.preview-canvas-pane{padding:12px 6px 90px;overflow-x:hidden}.canvas-floating-toolbar{justify-content:space-between;align-items:center;width:100%;max-width:520px;margin:0 auto 12px;display:flex}.canvas-print-direct-btn{border-radius:8px;min-height:38px;padding:8px 14px;font-size:12px;font-weight:700}.invoices-history-page-view{padding:14px 12px calc(env(safe-area-inset-bottom,16px) + 84px);gap:14px}.history-page-header{flex-direction:column;align-items:stretch;gap:14px;padding:16px}.history-new-invoice-btn{justify-content:center;width:100%;min-height:44px}.history-controls-card{flex-direction:column;align-items:stretch;gap:10px;padding:12px}.history-search-input-wrapper{max-width:100%}.history-cards-grid{grid-template-columns:1fr;gap:12px}.invoice-record-card{padding:14px}.record-card-actions{flex-wrap:wrap;gap:6px}.rec-action-btn{min-height:36px;padding:6px 14px;font-size:12px}.tenant-modal-backdrop{align-items:flex-end;padding:0}.tenant-modal-sheet{border-radius:20px 20px 0 0;width:100vw;max-width:100vw;height:94vh;max-height:94vh}.tenant-modal-header{padding:16px}.tenant-modal-nav-tabs{padding:0 16px}.tenant-modal-body{padding:16px 14px calc(env(safe-area-inset-bottom,16px) + 60px)}.organization-cards-grid{grid-template-columns:1fr;gap:12px}.organization-item-card{padding:14px}.logo-upload-hero-box{flex-direction:column;align-items:flex-start;gap:12px}.color-swatches-grid{grid-template-columns:repeat(2,1fr)}.config-grid-2{grid-template-columns:1fr;gap:12px}.currency-cards-grid{grid-template-columns:repeat(2,1fr);gap:8px}.tax-preset-chip{min-width:100%}.signature-studio-layout{grid-template-columns:1fr;gap:16px}}@media screen and (width<=480px){.hide-on-small-mobile{display:none!important}.editor-mode-nav{gap:4px;padding:4px 8px 0}.mode-tab-btn{padding:6px 10px;font-size:11.5px}.smart-badge{display:none}.editor-form-scroll{gap:12px;padding:10px 8px 90px}.editor-card{border-radius:8px;padding:12px}.card-title{font-size:13px}.presets-grid{grid-template-columns:1fr}.tenant-brand-editor-bar{flex-direction:column;align-items:flex-start;gap:10px;padding:10px}.tenant-change-logo-btn{justify-content:center;width:100%}.client-project-grid{grid-template-columns:1fr;gap:16px;padding:14px}.totals-section{flex-direction:column;gap:16px}.amount-words-container{max-width:100%}.totals-numbers-table{width:100%}.invoice-footer{flex-direction:column;align-items:flex-start;gap:16px}.invoice-status-crumb-btn{display:none!important}.app-text-input,.app-select-input,.app-textarea-input,.item-desc-input,.item-qty-input,.history-search-input{font-size:16px!important}.tenant-modal-sheet{border-radius:0;height:100vh;max-height:100vh}}.login-screen-wrapper{z-index:9999;background-color:#0f172a;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0;overflow-y:auto}.login-bg-mesh{pointer-events:none;position:absolute;inset:0;overflow:hidden}.login-glow-orb{filter:blur(120px);opacity:.28;border-radius:50%;position:absolute}.login-glow-orb.orb-1{width:520px;height:520px;top:-100px;left:20%}.login-glow-orb.orb-2{background:#3b82f6;width:480px;height:480px;bottom:-80px;right:20%}.login-card-container{z-index:2;flex-direction:column;gap:16px;width:100%;max-width:480px;animation:.35s cubic-bezier(.16,1,.3,1) forwards modalScaleUp;display:flex;position:relative}.login-glass-card{-webkit-backdrop-filter:blur(20px);color:#f8fafc;background:#1e293bd9;border:1px solid #ffffff1f;border-radius:20px;padding:32px;box-shadow:0 25px 50px -12px #00000080,0 0 0 1px #ffffff0d}.login-header-section{align-items:flex-start;gap:16px;margin-bottom:24px;display:flex}.login-logo-badge{border:1px solid #6e44ff4d;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:48px;height:48px;display:flex}.login-brand-identity{flex-direction:column;display:flex}.login-badge-pill{letter-spacing:.05em;text-transform:uppercase;color:#a78bfa;margin-bottom:4px;font-size:11px;font-weight:700}.login-app-title{font-family:var(--font-display);letter-spacing:-.03em;color:#fff;margin:0;font-size:26px;font-weight:800;line-height:1.15}.login-app-subtitle{color:#94a3b8;margin-top:4px;font-size:12.5px;line-height:1.4}.login-divider{background:#ffffff14;height:1px;margin:20px 0}.login-action-section{flex-direction:column;gap:18px;display:flex}.login-auth-heading-group{flex-direction:column;gap:4px;display:flex}.login-auth-title{color:#f8fafc;margin:0;font-size:18px;font-weight:700}.login-auth-desc{color:#94a3b8;margin:0;font-size:13px;line-height:1.45}.google-signin-btn{color:#1e293b;cursor:pointer;background:#fff;border:1px solid #fff3;border-radius:12px;justify-content:center;align-items:center;gap:14px;width:100%;min-height:52px;font-size:15px;font-weight:600;transition:all .2s cubic-bezier(.16,1,.3,1);display:flex;position:relative;overflow:hidden;box-shadow:0 4px 14px #00000040}.google-signin-btn:hover{background:#f8fafc;transform:translateY(-1.5px);box-shadow:0 8px 20px #00000059}.google-signin-btn:active{transform:translateY(0)}.google-icon-svg{flex-shrink:0}.google-btn-text{font-family:var(--font-sans);letter-spacing:-.01em}.google-btn-arrow{color:#64748b;transition:transform .2s}.google-signin-btn:hover .google-btn-arrow{color:#1e293b;transform:translate(3px)}.google-btn-loading{color:#475569;align-items:center;gap:10px;font-size:14px;display:flex}.auth-spinner{border:2px solid #cbd5e1;border-top-color:#4285f4;border-radius:50%;width:18px;height:18px;animation:.8s linear infinite spin}.google-settings-btn{color:#94a3b8;cursor:pointer;background:#ffffff0f;border:1px solid #ffffff1f;border-radius:8px;align-items:center;gap:6px;padding:5px 10px;font-size:11px;font-weight:500;transition:all .2s;display:inline-flex}.google-settings-btn:hover{color:#fff;background:#ffffff1f;border-color:#ffffff40}.google-auth-live-block{flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:52px;display:flex}.google-identity-btn-container{justify-content:center;width:100%;display:flex}.google-alt-links{flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;display:flex}.google-alt-quick-btn{color:#a78bfa;cursor:pointer;background:#6e44ff26;border:1px solid #6e44ff4d;border-radius:6px;padding:3px 8px;font-size:11px;font-weight:600;transition:all .15s}.google-alt-quick-btn:hover{color:#fff;background:#6e44ff4d}.login-error-banner{color:#fca5a5;background:#ef444426;border:1px solid #ef44444d;border-radius:8px;align-items:center;gap:8px;margin-bottom:8px;padding:8px 12px;font-size:12px;display:flex}.google-config-modal{max-width:540px}.google-config-body{flex-direction:column;gap:16px;display:flex}.config-instructions-box{color:#cbd5e1;background:#0f172a99;border:1px solid #ffffff14;border-radius:10px;padding:14px 16px;font-size:13px}.instructions-title{color:#f8fafc;margin-bottom:8px;font-weight:600}.instructions-list{flex-direction:column;gap:6px;margin:0;padding-left:20px;line-height:1.6;display:flex}.instructions-link{color:#6e44ff;font-weight:500;text-decoration:underline}.instructions-link:hover{color:#8b5cf6}.origin-pill-group{flex-wrap:wrap;gap:6px;margin-top:4px;display:flex}.origin-code{font-family:var(--font-mono);color:#38bdf8;background:#0006;border:1px solid #ffffff26;border-radius:4px;padding:2px 6px;font-size:11px}.google-alt-option{text-align:center}.google-alt-toggle-btn{color:#94a3b8;cursor:pointer;background:0 0;border:none;padding:4px 8px;font-size:12px;text-decoration:underline;transition:color .15s}.google-alt-toggle-btn:hover{color:#e2e8f0}.google-custom-form{background:#0f172a99;border:1px solid #ffffff14;border-radius:10px;flex-direction:column;gap:8px;padding:12px;display:flex}.google-custom-input{color:#fff;background:#1e293bcc;border:1px solid #ffffff26;border-radius:8px;outline:none;width:100%;padding:8px 12px;font-size:13px}.google-custom-input:focus{border-color:#6e44ff}.google-custom-actions{gap:8px;display:flex}.google-custom-submit-btn{color:#fff;cursor:pointer;background:#6e44ff;border:none;border-radius:6px;flex:1;padding:6px 12px;font-size:12px;font-weight:600}.google-custom-cancel-btn{color:#94a3b8;cursor:pointer;background:0 0;border:1px solid #ffffff26;border-radius:6px;padding:6px 12px;font-size:12px}.login-security-notice{color:#6ee7b7;background:#10b9811a;border:1px solid #10b98133;border-radius:10px;align-items:center;gap:8px;padding:10px 12px;font-size:12px;line-height:1.4;display:flex}.login-security-notice .security-icon{color:#34d399;flex-shrink:0}.login-highlights-grid{grid-template-columns:1fr;gap:12px;display:grid}.login-highlight-item{align-items:flex-start;gap:12px;display:flex}.highlight-icon-box{background:#ffffff0f;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;margin-top:2px;display:flex}.highlight-text-content{flex-direction:column;font-size:12px;line-height:1.35;display:flex}.highlight-text-content strong{color:#e2e8f0;font-weight:600}.highlight-text-content span{color:#94a3b8}.login-footer-meta{text-align:center;color:#64748b;padding:0 8px;font-size:11px}.google-user-nav-badge{color:#1e293b;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:20px;align-items:center;gap:8px;margin-left:4px;padding:3px 8px 3px 4px;font-size:12.5px;font-weight:600;display:flex}.google-nav-avatar{object-fit:cover;border-radius:50%;width:24px;height:24px}.google-nav-avatar-fallback{color:#fff;background:#6e44ff;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;display:flex}.google-nav-user-name{color:#0f172a}.google-nav-signout-btn{color:#64748b;cursor:pointer;background:0 0;border:none;border-radius:4px;align-items:center;padding:2px;transition:all .15s;display:flex}.google-nav-signout-btn:hover{color:#dc2626;background:#fee2e2}.free-ai-pill-row{align-items:center;gap:8px;margin-bottom:4px;display:flex}.free-badge-tag{color:#059669;letter-spacing:.02em;text-transform:uppercase;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:6px;padding:2px 6px;font-size:10.5px;font-weight:700}.zero-cost-tag{color:#64748b;font-size:11px;font-weight:500}.prompt-master-toggle-btn{color:#475569;cursor:pointer;white-space:nowrap;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;align-items:center;gap:6px;padding:6px 10px;font-size:12px;font-weight:600;transition:all .15s;display:flex}.prompt-master-toggle-btn:hover{color:#6e44ff;background:#ede9fe;border-color:#c4b5fd}.prompt-blueprint-panel{color:#e2e8f0;background:#0f172a;border-radius:12px;flex-direction:column;gap:10px;margin-top:14px;padding:16px;animation:.2s forwards fadeIn;display:flex;box-shadow:0 10px 25px -5px #00000040}.blueprint-header{justify-content:space-between;align-items:center;display:flex}.blueprint-title{color:#f8fafc;align-items:center;gap:8px;font-size:13px;display:flex}.blueprint-copy-btn{color:#fff;cursor:pointer;background:#ffffff1a;border:1px solid #fff3;border-radius:6px;align-items:center;gap:6px;padding:4px 10px;font-size:11.5px;font-weight:600;transition:all .15s;display:flex}.blueprint-copy-btn:hover{background:#fff3}.blueprint-code{font-family:var(--font-mono);color:#38bdf8;white-space:pre-wrap;word-break:break-word;background:#020617;border:1px solid #1e293b;border-radius:8px;max-height:220px;padding:12px;font-size:11.5px;line-height:1.5;overflow-y:auto}.blueprint-note{color:#94a3b8;font-size:11px;line-height:1.4}.free-ai-guarantee-bar{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;flex-wrap:wrap;align-items:center;gap:16px;margin-top:14px;padding:10px 14px;display:flex}.guarantee-item{color:#475569;align-items:center;gap:7px;font-size:12px;display:flex}.uploader-input-tabs{border-bottom:1px solid #e2e8f0;gap:8px;margin-top:14px;padding-bottom:6px;display:flex}.uploader-tab-btn{color:#64748b;cursor:pointer;background:0 0;border:none;border-radius:6px;align-items:center;gap:6px;padding:6px 12px;font-size:12.5px;font-weight:600;transition:all .15s;display:flex}.uploader-tab-btn:hover{color:#0f172a;background:#f1f5f9}.uploader-tab-btn.active-tab{color:#6e44ff;background:#ede9fe}.paste-input-section{flex-direction:column;gap:10px;margin-top:10px;display:flex}.paste-textarea{width:100%;font-family:var(--font-mono);color:#0f172a;resize:vertical;background:#fff;border:1.5px solid #cbd5e1;border-radius:10px;outline:none;padding:12px;font-size:12px;line-height:1.5;transition:border-color .15s}.paste-textarea:focus{border-color:#6e44ff;box-shadow:0 0 0 3px #6e44ff1f}.paste-actions{justify-content:flex-end;display:flex}.extract-pasted-btn{color:#fff;cursor:pointer;border:none;border-radius:8px;align-items:center;gap:8px;padding:9px 16px;font-size:13px;font-weight:600;transition:opacity .15s;display:flex}.extract-pasted-btn:disabled{opacity:.5;cursor:not-allowed}.user-isolation-status-bar{background:#0f172a;border-bottom:1px solid #1e293b;justify-content:center;align-items:center;padding:5px 16px;display:flex}.isolation-pill{color:#94a3b8;letter-spacing:-.01em;align-items:center;gap:8px;font-size:11.5px;display:flex}.isolation-pill strong{color:#38bdf8}.canvas-template-select-btn{color:#1e293b;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:8px;align-items:center;gap:7px;padding:6px 12px;font-size:12.5px;font-weight:600;transition:all .15s;display:flex;box-shadow:0 1px 2px #0000000d}.canvas-template-select-btn:hover{background:#f8fafc;border-color:#94a3b8;transform:translateY(-1px)}.template-pill-select-btn{color:#334155;cursor:pointer;background:#f8fafc;border:1px solid #cbd5e1;border-radius:6px;align-items:center;gap:6px;padding:5px 10px;font-size:11.5px;font-weight:600;transition:all .15s;display:flex}.template-pill-select-btn:hover{color:#6e44ff;background:#ede9fe;border-color:#c4b5fd}.template-modal-backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:10000;background:#0f172aa6;justify-content:center;align-items:center;padding:20px;animation:.2s forwards fadeIn;display:flex;position:fixed;inset:0}.template-modal-card.modern-gallery-modal{background:#fff;border-radius:20px;flex-direction:column;width:95vw;max-width:1240px;height:90vh;max-height:90vh;animation:.25s cubic-bezier(.16,1,.3,1) forwards modalScaleUp;display:flex;overflow:hidden;box-shadow:0 25px 50px -12px #00000059}.gallery-toolbar-row{background:#fff;border-bottom:1px solid #e2e8f0;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding:12px 28px;display:flex}.gallery-search-wrap{flex:1;align-items:center;max-width:520px;display:flex;position:relative}.gallery-search-icon{color:#94a3b8;pointer-events:none;position:absolute;left:12px}.gallery-search-input{background:#f8fafc;border:1px solid #cbd5e1;border-radius:8px;outline:none;width:100%;padding:8px 32px 8px 36px;font-size:13px;transition:all .15s}.gallery-search-input:focus{background:#fff;border-color:#6366f1;box-shadow:0 0 0 3px #6366f11f}.gallery-clear-search-btn{color:#94a3b8;cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:2px;display:flex;position:absolute;right:10px}.gallery-count-pill{color:#64748b;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:14px;padding:5px 12px;font-size:12px}.gallery-category-tabs{scrollbar-width:thin;background:#f8fafc;border-bottom:1px solid #e2e8f0;align-items:center;gap:8px;padding:10px 28px;display:flex;overflow-x:auto}.category-pill-btn{color:#475569;cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #e2e8f0;border-radius:20px;align-items:center;gap:6px;padding:6px 14px;font-size:12px;font-weight:600;transition:all .15s;display:flex}.category-pill-btn:hover{color:#4338ca;background:#eef2ff;border-color:#6366f1}.category-pill-btn.active{color:#fff;background:#0f172a;border-color:#0f172a}.category-num-badge{background:#00000014;border-radius:10px;padding:1px 6px;font-size:10.5px;font-weight:700}.category-pill-btn.active .category-num-badge{color:#fff;background:#ffffff38}.gallery-empty-state{text-align:center;color:#64748b;grid-column:1/-1;padding:48px 20px;font-size:14px}.gallery-reset-filter-btn{color:#4338ca;cursor:pointer;background:#eef2ff;border:1px solid #c7d2fe;border-radius:6px;margin-top:10px;padding:6px 14px;font-size:12px;font-weight:600}.template-category-tag{text-transform:uppercase;color:#64748b;letter-spacing:.04em;margin-bottom:3px;font-size:10px;font-weight:700}.template-quick-preview-btn{color:#334155;cursor:pointer;background:#f8fafc;border:1px solid #cbd5e1;border-radius:8px;align-items:center;gap:4px;padding:7px 11px;font-size:11.5px;font-weight:600;transition:all .15s;display:flex}.template-quick-preview-btn:hover{color:#6e44ff;background:#ede9fe;border-color:#c4b5fd}.sample-quick-trigger-bar{background:linear-gradient(135deg,#eef2ff 0%,#f5f3ff 100%);border:1px solid #c7d2fe;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;margin-top:10px;padding:10px 14px;display:flex}.sample-trigger-label{color:#4338ca;font-size:12px;font-weight:600}.sample-trigger-btn{color:#3730a3;cursor:pointer;background:#fff;border:1.5px solid #818cf8;border-radius:8px;align-items:center;gap:6px;padding:6px 14px;font-size:12px;font-weight:700;transition:all .2s;display:flex;box-shadow:0 1px 4px #6366f126}.sample-trigger-btn:hover{color:#fff;background:#4f46e5;border-color:#4f46e5;transform:translateY(-1px);box-shadow:0 4px 12px #4f46e540}.template-modal-card{background:#fff;border-radius:20px;flex-direction:column;width:100%;max-width:960px;max-height:90vh;animation:.25s cubic-bezier(.16,1,.3,1) forwards modalScaleUp;display:flex;overflow:hidden;box-shadow:0 25px 50px -12px #00000059}.template-modal-header{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:flex-start;gap:16px;padding:24px 28px 20px;display:flex}.template-modal-title-group{align-items:flex-start;gap:14px;display:flex}.template-modal-icon-badge{border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;display:flex}.template-modal-pretitle{letter-spacing:.05em;text-transform:uppercase;color:#64748b;margin-bottom:2px;font-size:11px;font-weight:700}.template-modal-title{font-family:var(--font-display);color:#0f172a;margin:0;font-size:20px;font-weight:800}.template-modal-subtitle{color:#64748b;margin-top:4px;font-size:13px;line-height:1.4}.template-modal-close-btn{color:#64748b;cursor:pointer;background:#f1f5f9;border:none;border-radius:8px;justify-content:center;align-items:center;width:32px;height:32px;transition:all .15s;display:flex}.template-modal-close-btn:hover{color:#0f172a;background:#e2e8f0}.template-modal-badge-strip{align-items:center;gap:8px;margin-bottom:3px;display:flex}.template-catalog-count-pill{color:#4f46e5;background:#eef2ff;border:1px solid #c7d2fe;border-radius:10px;padding:1px 7px;font-size:10.5px;font-weight:700}.gallery-active-pill{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;align-items:center;gap:6px;padding:5px 12px;font-size:12px;display:flex}.gallery-active-lbl{color:#64748b;font-weight:500}.gallery-active-name{font-weight:700}.cat-icon{align-items:center;display:flex}.template-cards-grid{background:#f8fafc;flex:1;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));grid-auto-rows:max-content;align-items:stretch;gap:16px;min-height:0;padding:20px 24px;display:grid;overflow-y:auto}.template-option-card.modern-card-v2{cursor:pointer;background:#fff;border:1.5px solid #e2e8f0;border-radius:14px;flex-direction:column;transition:all .2s cubic-bezier(.16,1,.3,1);display:flex;position:relative;overflow:hidden}.template-option-card.modern-card-v2:hover{border-color:#cbd5e1;transform:translateY(-3px);box-shadow:0 12px 24px -4px #0f172a1a}.template-option-card.modern-card-v2.selected-template{border-width:2px}.template-thumbnail-box-v2{background:#f1f5f9;border-bottom:1px solid #e2e8f0;justify-content:center;align-items:center;height:140px;min-height:140px;padding:10px;display:flex;position:relative;overflow:hidden}.mini-sheet{width:100%;height:100%;font-size:8.5px;font-family:var(--font-sans);background:#fff;border-radius:6px;flex-direction:column;display:flex;overflow:hidden;box-shadow:0 2px 6px #00000014}.mini-sheet-terminal{color:#38bdf8;font-family:var(--font-mono);background:#0b0f19;border:1px solid #1e293b}.mini-term-header{background:#020617;border-bottom:1px solid #1e293b;justify-content:space-between;align-items:center;padding:4px 8px;display:flex}.mini-term-dots{gap:3px;display:flex}.mini-dot{border-radius:50%;width:5px;height:5px}.mini-dot-red{background:#ef4444}.mini-dot-yellow{background:#f59e0b}.mini-dot-green{background:#10b981}.mini-term-title{color:#64748b;font-size:7.5px}.mini-term-body{flex-direction:column;flex:1;gap:3px;padding:6px 8px;display:flex}.mini-term-line{font-size:8.5px;font-weight:700}.mini-term-sub{color:#64748b;font-size:7px}.mini-term-table{flex-direction:column;gap:2px;margin-top:3px;display:flex}.mini-term-row{justify-content:space-between;align-items:center;display:flex}.mini-term-bar{background:#334155;border-radius:1px;height:3px}.mini-term-num{color:#94a3b8;font-size:7.5px}.mini-term-total{border-top:1px dashed;justify-content:space-between;margin-top:auto;padding-top:2px;font-size:8px;display:flex}.mini-sheet-excel{border:1px solid #cbd5e1}.mini-excel-ribbon{color:#fff;background:#107c41;justify-content:space-between;align-items:center;padding:3px 6px;font-size:7.5px;font-weight:700;display:flex}.mini-excel-grid{flex-direction:column;flex:1;gap:2px;padding:4px 6px;display:flex}.mini-excel-meta-bar{background:#f1f5f9;border:.5px solid #cbd5e1;border-radius:2px;grid-template-columns:repeat(3,1fr);padding:1px 3px;font-size:6.5px;display:grid}.mini-excel-table-header{border-bottom:1px solid;grid-template-columns:2fr 1fr 1fr;padding:2px;font-size:6.5px;font-weight:700;display:grid}.mini-excel-rows{flex-direction:column;gap:1px;display:flex}.mini-excel-row{color:#334155;grid-template-columns:2fr 1fr 1fr;padding:1px 2px;font-size:6.5px;display:grid}.mini-excel-row.striped{background:#f8fafc}.mini-excel-total-bar{border-top:1px solid;justify-content:space-between;margin-top:auto;padding-top:2px;font-size:7.5px;font-weight:700;display:flex}.mini-sheet-spine{padding-left:10px;position:relative}.mini-spine-rail{width:6px;position:absolute;top:0;bottom:0;left:0}.mini-spine-body{flex-direction:column;gap:4px;height:100%;padding:6px 8px;display:flex}.mini-brand-row{justify-content:space-between;align-items:center;display:flex}.mini-brand-logo-dot{border-radius:2px;width:6px;height:6px}.mini-brand-name{color:#0f172a;font-size:8px;font-weight:800}.mini-inv-badge{font-size:7px;font-weight:800}.mini-desc-bar{background:#e2e8f0;width:40px;height:2px}.mini-table-spine{flex-direction:column;gap:3px;margin-top:4px;display:flex}.mini-spine-row{justify-content:space-between;align-items:center;display:flex}.mini-spine-row .bar-long{background:#f1f5f9;border-radius:1px;width:65%;height:3px}.mini-spine-row .bar-num{background:#e2e8f0;border-radius:1px;width:20%;height:3px}.mini-spine-total{text-align:right;border-top:1px solid;margin-top:auto;padding-top:2px}.mini-spine-amt{font-size:8.5px;font-weight:800}.mini-sheet-banner{flex-direction:column;display:flex}.mini-top-banner{color:#fff;justify-content:space-between;align-items:center;padding:4px 8px;display:flex}.mini-banner-brand{letter-spacing:.05em;font-size:8px;font-weight:800}.mini-banner-title{opacity:.9;font-size:7.5px;font-weight:900}.mini-banner-body{flex-direction:column;flex:1;gap:4px;padding:6px 8px;display:flex}.mini-banner-client-box{flex-direction:column;gap:2px;display:flex}.mini-client-line{background:#cbd5e1;border-radius:1px;width:60px;height:3px}.mini-client-line.short{width:35px}.mini-table-banner-hdr{border-radius:2px;grid-template-columns:2fr 1fr 1fr;padding:2px;font-size:6.5px;font-weight:700;display:grid}.mini-banner-row{grid-template-columns:2fr 1fr 1fr;align-items:center;padding:1px 2px;font-size:6.5px;display:grid}.mini-banner-row .bar-long{background:#e2e8f0;border-radius:1px;width:80%;height:3px}.mini-banner-total{border:1px solid;border-radius:3px;justify-content:space-between;margin-top:auto;padding:3px 6px;font-size:7.5px;display:flex}.mini-sheet-blueprint{font-family:var(--font-mono);background:#f0f9ff;border:1px dashed;padding:6px 8px}.mini-bp-header{border-bottom:1px solid;justify-content:space-between;align-items:center;margin-bottom:4px;padding-bottom:3px;display:flex}.mini-bp-title{font-size:7.5px;font-weight:700}.mini-bp-badge{color:#fff;border-radius:2px;padding:1px 4px;font-size:6px}.mini-bp-grid-pattern{flex-direction:column;flex:1;gap:3px;display:flex}.mini-bp-row{justify-content:space-between;display:flex}.bp-line{background:#bae6fd;width:60%;height:3px}.mini-bp-total{border-top:1px dashed;margin-top:auto;padding-top:2px;font-size:8px;font-weight:700}.mini-sheet-serif{background:#faf8f5;border:1px solid #e2d9cc;padding:6px 8px;font-family:Georgia,serif}.mini-serif-header{text-align:center;border-bottom:1px double;margin-bottom:4px;padding-bottom:3px}.mini-serif-title{letter-spacing:.05em;color:#1e293b;font-size:7.5px;font-weight:700;display:block}.mini-serif-sub{color:#78716c;font-size:5.5px}.mini-serif-client{color:#44403c;font-size:6.5px}.mini-serif-rows{flex-direction:column;gap:2px;margin-top:4px;display:flex}.mini-serif-row{color:#57534e;justify-content:space-between;font-size:6.5px;display:flex}.mini-serif-total{border-top:1px solid;justify-content:space-between;margin-top:auto;padding-top:2px;font-size:7.5px;display:flex}.mini-sheet-clean{padding:6px 8px}.mini-clean-header{justify-content:space-between;align-items:center;display:flex}.mini-clean-brand{align-items:center;gap:4px;display:flex}.mini-clean-dot{border-radius:2px;width:6px;height:6px}.mini-clean-name{color:#0f172a;font-size:8px;font-weight:700}.mini-clean-inv-title{font-size:8px;font-weight:800}.mini-clean-body{flex-direction:column;flex:1;gap:3px;display:flex}.mini-clean-divider{height:1px;margin:3px 0}.mini-clean-row{justify-content:space-between;align-items:center;display:flex}.bar-full{background:#f1f5f9;border-radius:1px;width:75%;height:3px}.bar-mid{background:#f1f5f9;border-radius:1px;width:60%;height:3px}.bar-short{background:#f1f5f9;border-radius:1px;width:40%;height:3px}.bar-num{background:#e2e8f0;border-radius:1px;width:15%;height:3px}.mini-clean-total-card{border:1px solid;border-radius:3px;justify-content:space-between;margin-top:auto;padding:2px 5px;display:flex}.mini-clean-total-lbl{color:#64748b;font-size:6.5px}.mini-clean-total-amt{font-size:7.5px;font-weight:800}.template-active-badge-v2{color:#fff;letter-spacing:.05em;border-radius:20px;align-items:center;gap:4px;padding:3px 8px;font-size:10px;font-weight:800;display:flex;position:absolute;top:8px;right:8px;box-shadow:0 4px 10px #00000040}.template-info-block-v2{flex-direction:column;flex:1;padding:14px 16px;display:flex}.template-card-header-row{justify-content:space-between;align-items:center;gap:8px;margin-bottom:4px;display:flex}.template-name-v2{color:#0f172a;margin:0;font-size:14px;font-weight:700;line-height:1.3}.template-source-badge-v2{white-space:nowrap;border:1px solid;border-radius:4px;padding:2px 7px;font-size:9.5px;font-weight:700}.template-desc-v2{color:#64748b;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0 0 10px;font-size:11.5px;line-height:1.4;display:-webkit-box;overflow:hidden}.template-tags-row{align-items:center;gap:6px;margin-bottom:12px;display:flex}.tmpl-micro-tag{color:#475569;background:#f1f5f9;border-radius:4px;padding:2px 7px;font-size:10px;font-weight:600}.tmpl-micro-tag.font-tag{font-family:var(--font-mono);color:#4338ca;background:#eef2ff;font-size:9.5px}.tmpl-micro-tag.layout-tag{text-transform:capitalize}.template-action-row-v2{margin-top:auto}.template-apply-btn-v2{cursor:pointer;color:#1e293b;background:#f8fafc;border:1px solid #cbd5e1;border-radius:8px;justify-content:center;align-items:center;gap:6px;width:100%;padding:8px 12px;font-size:12px;font-weight:700;transition:all .15s;display:flex}.template-apply-btn-v2:hover{color:#3730a3;background:#eef2ff;border-color:#818cf8}.template-apply-btn-v2.is-active-btn{box-shadow:0 2px 8px #00000026}.template-footer-status{color:#334155;align-items:center;gap:8px;font-size:12.5px;display:flex}.template-footer-dot{border-radius:50%;width:8px;height:8px;display:inline-block;box-shadow:0 0 0 2px #0000001a}.template-modal-footer{background:#fff;border-top:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:16px;padding:14px 28px;display:flex}.template-modal-done-btn{color:#fff;cursor:pointer;background:#0f172a;border:none;border-radius:8px;padding:8px 20px;font-size:13px;font-weight:700;transition:all .15s}.template-modal-done-btn:hover{opacity:.9;transform:translateY(-1px)}.invoice-a4-sheet{--tmpl-accent:#6e44ff;--tmpl-accent-10:#6e44ff1a;--tmpl-accent-15:#6e44ff26;--tmpl-accent-20:#6e44ff33;--tmpl-accent-30:#6e44ff4d;--tmpl-accent-border:#6e44ff40;--tmpl-accent-glow:#6e44ff66;transition:all .2s}.invoice-a4-sheet.tmpl-font-serif,.invoice-a4-sheet.tmpl-serif-mode{font-family:Merriweather,Georgia,serif}.invoice-a4-sheet.tmpl-font-serif .invoice-title,.invoice-a4-sheet.tmpl-font-serif .brand-name,.invoice-a4-sheet.tmpl-serif-mode .invoice-title,.invoice-a4-sheet.tmpl-serif-mode .brand-name{letter-spacing:-.01em;font-family:Playfair Display,Merriweather,Georgia,serif;font-weight:700}.invoice-a4-sheet.tmpl-font-mono,.invoice-a4-sheet.tmpl-tech-mode{font-family:JetBrains Mono,Fira Code,monospace}.invoice-a4-sheet.tmpl-font-display{font-family:Plus Jakarta Sans,system-ui,-apple-system,sans-serif}.invoice-a4-sheet.tmpl-font-geometric{font-family:Outfit,Inter,system-ui,sans-serif}.invoice-a4-sheet.tmpl-font-inter{font-family:Inter,system-ui,sans-serif}.invoice-a4-sheet.tmpl-tech-mode{color:#e2e8f0!important;border:1.5px solid var(--tmpl-accent-border)!important;background-color:#0b0f19!important;box-shadow:0 10px 40px #0006!important}.invoice-a4-sheet.tmpl-tech-mode .brand-name,.invoice-a4-sheet.tmpl-tech-mode .invoice-title,.invoice-a4-sheet.tmpl-tech-mode .item-title,.invoice-a4-sheet.tmpl-tech-mode .client-primary-name,.invoice-a4-sheet.tmpl-tech-mode .project-primary-name,.invoice-a4-sheet.tmpl-tech-mode .calc-val,.invoice-a4-sheet.tmpl-tech-mode .meta-value{color:#f8fafc!important}.invoice-a4-sheet.tmpl-tech-mode .meta-label,.invoice-a4-sheet.tmpl-tech-mode .brand-tagline,.invoice-a4-sheet.tmpl-tech-mode .brand-email-sub,.invoice-a4-sheet.tmpl-tech-mode .client-secondary-desc,.invoice-a4-sheet.tmpl-tech-mode .client-address,.invoice-a4-sheet.tmpl-tech-mode .client-email,.invoice-a4-sheet.tmpl-tech-mode .project-specs,.invoice-a4-sheet.tmpl-tech-mode .project-ref,.invoice-a4-sheet.tmpl-tech-mode .item-subtitle,.invoice-a4-sheet.tmpl-tech-mode .calc-label,.invoice-a4-sheet.tmpl-tech-mode .words-label,.invoice-a4-sheet.tmpl-tech-mode .words-content,.invoice-a4-sheet.tmpl-tech-mode .notes-heading,.invoice-a4-sheet.tmpl-tech-mode .note-text,.invoice-a4-sheet.tmpl-tech-mode .for-company-line,.invoice-a4-sheet.tmpl-tech-mode .signatory-name,.invoice-a4-sheet.tmpl-tech-mode .signatory-title,.invoice-a4-sheet.tmpl-tech-mode .thank-you-line{color:#94a3b8!important}.invoice-a4-sheet.tmpl-tech-mode .grid-card{border:1px dashed var(--tmpl-accent-border)!important;box-shadow:none!important;background:#111827!important}.invoice-a4-sheet.tmpl-tech-mode .breakdown-table thead tr{border-bottom:2px dashed var(--tmpl-accent)!important;background-color:#111827!important}.invoice-a4-sheet.tmpl-tech-mode .breakdown-table th{color:var(--tmpl-accent)!important;border-bottom:2px dashed var(--tmpl-accent-border)!important;font-family:JetBrains Mono,monospace!important}.invoice-a4-sheet.tmpl-tech-mode .breakdown-row{border-bottom:1px dashed #1e293b!important}.invoice-a4-sheet.tmpl-tech-mode .breakdown-row:hover{background-color:#ffffff05!important}.invoice-a4-sheet.tmpl-tech-mode .breakdown-row .col-no{color:var(--tmpl-accent)!important}.invoice-a4-sheet.tmpl-tech-mode .total-due-box{border:1.5px solid var(--tmpl-accent)!important;box-shadow:0 0 15px var(--tmpl-accent-glow)!important;background:#111827!important}.invoice-a4-sheet.tmpl-tech-mode .due-number{text-shadow:0 0 12px var(--tmpl-accent-glow);color:var(--tmpl-accent)!important}.invoice-a4-sheet.tmpl-tech-mode .amount-words-container{background:#111827!important;border:1px dashed #334155!important}.invoice-a4-sheet.tmpl-tech-mode .signature-calligraphy-script{color:#38bdf8!important}.invoice-a4-sheet.tmpl-tech-mode .signature-verified-badge{border:1px dashed var(--tmpl-accent-border)!important;background:#111827!important}.terminal-header-bar{color:#38bdf8;background:#111827;border:1px solid #1e293b;border-radius:6px;justify-content:space-between;align-items:center;margin-bottom:22px;padding:8px 14px;font-family:JetBrains Mono,monospace;font-size:11px;display:flex}.terminal-dots{align-items:center;gap:6px;display:flex}.t-dot{border-radius:50%;width:9px;height:9px;display:inline-block}.t-red{background:#ef4444}.t-yellow{background:#f59e0b}.t-green{background:#10b981}.terminal-prompt-text{color:#94a3b8;align-items:center;gap:8px;font-size:11px;display:flex}.terminal-lang-badge{color:#64748b;letter-spacing:.05em;background:#1e293b;border-radius:3px;padding:2px 6px;font-size:9.5px;font-weight:600}.invoice-a4-sheet.tmpl-excel-mode{border-top:4px solid var(--tmpl-accent);background:#fff}.excel-ribbon-bar{color:#fff;justify-content:space-between;align-items:center;margin:-32px -32px 24px;padding:8px 32px;display:flex;box-shadow:0 2px 4px #00000014}.excel-ribbon-tag-box{align-items:center;gap:10px;display:flex}.excel-ribbon-tag{letter-spacing:.08em;background:#00000038;border-radius:3px;padding:2px 8px;font-size:10px;font-weight:800}.excel-ribbon-title{letter-spacing:.04em;font-size:12px;font-weight:700}.excel-ribbon-file-tag{opacity:.92;letter-spacing:.02em;font-size:10.5px}.excel-ledger-bar{background:#f8fafc;border:1.5px solid #cbd5e1;border-radius:4px;grid-template-columns:repeat(4,1fr);margin-bottom:22px;display:grid;overflow:hidden}.excel-cell{border-right:1px solid #cbd5e1;flex-direction:column;gap:2px;padding:8px 12px;display:flex}.excel-cell:last-child{border-right:none}.excel-cell-lbl{color:#64748b;letter-spacing:.06em;font-size:9px;font-weight:700}.excel-cell-val{color:#0f172a;font-size:12px;font-weight:600}.invoice-a4-sheet.tmpl-excel-mode .breakdown-table{border-collapse:collapse!important;border:1.5px solid #cbd5e1!important}.invoice-a4-sheet.tmpl-excel-mode .breakdown-table thead tr{background-color:var(--tmpl-accent)!important;color:#fff!important}.invoice-a4-sheet.tmpl-excel-mode .breakdown-table th{text-transform:uppercase;color:#fff!important;border:1px solid #00000026!important;padding:8px 10px!important;font-size:11px!important;font-weight:700!important}.invoice-a4-sheet.tmpl-excel-mode .breakdown-table td{border:1px solid #cbd5e1!important;padding:8px 10px!important}.invoice-a4-sheet.tmpl-excel-mode .breakdown-table tbody tr:nth-child(2n){background-color:var(--tmpl-accent-10)!important}.invoice-a4-sheet.tmpl-excel-mode .grid-card{background:#f8fafc;border:1.5px solid #cbd5e1;border-radius:4px}.invoice-a4-sheet.tmpl-excel-mode .total-due-box{border:2px solid var(--tmpl-accent)!important;background:#f0fdf4!important;border-radius:4px!important}.invoice-a4-sheet.tmpl-banner-mode{overflow:hidden;padding-top:0!important}.tmpl-banner-header{color:#fff;justify-content:space-between;align-items:center;margin-bottom:24px;margin-left:-32px;margin-right:-32px;padding:24px 32px;display:flex;box-shadow:0 4px 12px #00000014}.tmpl-banner-brand{align-items:center;gap:16px;display:flex}.banner-logo{border:2px solid #fff6;box-shadow:0 4px 12px #00000026;color:var(--tmpl-accent)!important;background:#fff!important}.banner-logo .brand-logo-letter{font-weight:900;color:var(--tmpl-accent)!important}.tmpl-banner-brand-text{flex-direction:column;display:flex}.tmpl-banner-org{font-family:var(--font-display);color:#fff;letter-spacing:-.02em;margin:0;font-size:24px;font-weight:800}.tmpl-banner-tagline{color:#ffffffd9;margin:2px 0 0;font-size:12px}.tmpl-banner-email{color:#ffffffb3;font-size:11px}.tmpl-banner-meta{text-align:right;flex-direction:column;align-items:flex-end;display:flex}.tmpl-banner-title{font-family:var(--font-display);letter-spacing:.08em;color:#fff;font-size:28px;font-weight:900}.tmpl-banner-meta-rows{flex-direction:column;gap:3px;margin-top:6px;font-size:11.5px;display:flex}.tmpl-banner-row{color:#ffffffe6;gap:8px;display:flex}.banner-meta-lbl{opacity:.75}.banner-meta-val{color:#fff;font-weight:600}.invoice-a4-sheet.tmpl-banner-mode .breakdown-table thead tr{background-color:var(--tmpl-accent)!important;color:#fff!important}.invoice-a4-sheet.tmpl-banner-mode .breakdown-table th{font-weight:700;color:#fff!important}.invoice-a4-sheet.tmpl-spine-mode{position:relative;padding-left:54px!important}.creative-studio-left-spine{z-index:10;width:16px;position:absolute;top:0;bottom:0;left:0}.invoice-a4-sheet.tmpl-spine-mode .invoice-title{letter-spacing:-.04em;color:#0f172a;font-size:38px;font-weight:900}.invoice-a4-sheet.tmpl-blueprint-mode{outline:1px dashed var(--tmpl-accent-30);outline-offset:-6px;position:relative;border:2px solid var(--tmpl-accent)!important;background-color:#f8fafc!important;background-image:radial-gradient(circle,#0284c726 1px,#0000 1px)!important;background-size:16px 16px!important}.blueprint-header-bar{border-bottom:1.5px solid var(--tmpl-accent);justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:10px;font-size:10.5px;display:flex}.bp-spec-badge{color:#fff;letter-spacing:.05em;border-radius:2px;padding:3px 8px;font-weight:700}.bp-spec-text{gap:8px;font-weight:600;display:flex}.invoice-a4-sheet.tmpl-blueprint-mode .breakdown-table{border:1.5px solid var(--tmpl-accent)!important}.invoice-a4-sheet.tmpl-blueprint-mode .breakdown-table thead tr{background-color:var(--tmpl-accent)!important;color:#fff!important}.invoice-a4-sheet.tmpl-blueprint-mode .breakdown-table th{border:1px solid #fff3;font-family:JetBrains Mono,monospace;color:#fff!important}.invoice-a4-sheet.tmpl-blueprint-mode .breakdown-table td{border:1px solid var(--tmpl-accent-border);font-family:JetBrains Mono,monospace}.invoice-a4-sheet.tmpl-serif-mode{border-top:4px double var(--tmpl-accent);border-bottom:4px double var(--tmpl-accent)}.invoice-a4-sheet.tmpl-serif-mode .invoice-header{border-bottom:1px solid #e2e8f0;padding-bottom:18px}.invoice-a4-sheet.tmpl-serif-mode .invoice-title{letter-spacing:.06em;font-size:20px;font-weight:800}.invoice-a4-sheet.tmpl-serif-mode .grid-card{background:#fcfcfd;border:1px solid #e2e8f0;border-radius:4px}.invoice-a4-sheet.tmpl-serif-mode .breakdown-table thead tr{border-top:2px solid var(--tmpl-accent)!important;border-bottom:2px solid var(--tmpl-accent)!important;background:0 0!important}.invoice-a4-sheet.tmpl-serif-mode .breakdown-table th{text-transform:uppercase;letter-spacing:.04em;padding:10px 12px;font-size:12px;color:#0f172a!important;font-family:Playfair Display,Merriweather,serif!important}.invoice-a4-sheet.tmpl-serif-mode .breakdown-row{border-bottom:1px solid #e2e8f0}.invoice-a4-sheet.tmpl-serif-mode .total-due-box{border-top:2px double var(--tmpl-accent)!important;border-bottom:2px double var(--tmpl-accent)!important;background:0 0!important;border-left:none!important;border-right:none!important;border-radius:0!important}.invoice-a4-sheet.tmpl-minimal-mode{border-radius:8px}.invoice-a4-sheet.tmpl-minimal-mode .grid-card{box-shadow:none;background:0 0;border:none;padding:0}.invoice-a4-sheet.tmpl-minimal-mode .breakdown-table thead tr{background:0 0!important}.invoice-a4-sheet.tmpl-minimal-mode .breakdown-table th{font-size:11px;font-weight:600;color:#64748b!important;border-bottom:1.5px solid #e2e8f0!important}.invoice-a4-sheet.tmpl-minimal-mode .breakdown-row{border-bottom:1px solid #f1f5f9}.invoice-a4-sheet.tmpl-minimal-mode .total-due-box{border:1px solid var(--tmpl-accent)!important;border-radius:9999px!important;padding:12px 24px!important}.invoice-a4-sheet.tmpl-boxed-mode .grid-card{background:#fff;border:1.5px solid #e2e8f0;border-radius:8px;box-shadow:0 1px 3px #00000008}.invoice-a4-sheet.tmpl-boxed-mode .work-breakdown-section{background:#fff;border:1.5px solid #e2e8f0;border-radius:8px;padding:16px}.invoice-a4-sheet.tmpl-boxed-mode .breakdown-table thead tr{background:var(--tmpl-accent-10)!important}.invoice-a4-sheet.tmpl-boxed-mode .breakdown-table th{color:#0f172a!important}.invoice-a4-sheet.tmpl-zebra-mode .breakdown-table tbody tr:nth-child(2n){background-color:var(--tmpl-accent-10)!important}.invoice-a4-sheet.tmpl-zebra-mode .breakdown-table thead tr{background-color:var(--tmpl-accent)!important;color:#fff!important}.invoice-a4-sheet.tmpl-zebra-mode .breakdown-table th{color:#fff!important}@media print{.canvas-template-select-btn,.template-modal-backdrop,.template-pill-select-btn,.user-isolation-status-bar{display:none!important}@page{size:A4 portrait;margin:12mm 15mm}body,html{color:#000!important;background:#fff!important;height:auto!important;overflow:visible!important}.app-top-nav,.editor-sidebar-pane,.input-studio-panel,.canvas-floating-toolbar,.canvas-toolbar,.modal-backdrop,.history-drawer-panel,.toast-notification,.logo-hover-edit-badge,.preview-canvas-pane>div:not(.canvas-viewport),.preview-canvas-panel>div:not(.canvas-viewport){display:none!important}.billmatrix-app,.workspace-main,.workspace-container,.preview-canvas-pane,.preview-canvas-panel{background:0 0!important;width:100%!important;height:auto!important;margin:0!important;padding:0!important;display:block!important;overflow:visible!important}.canvas-viewport{width:100%!important;display:block!important;transform:none!important}.invoice-paper-wrapper{width:100%!important;display:block!important}.invoice-a4-sheet{width:100%!important;min-height:auto!important;box-shadow:none!important;box-sizing:border-box!important;margin:0 auto!important}.invoice-a4-sheet.tmpl-spine-mode{padding-left:54px!important}.invoice-a4-sheet.tmpl-banner-mode{padding-top:0!important}.invoice-a4-sheet.tmpl-tech-mode{color:#e2e8f0!important;background-color:#0b0f19!important}*{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}.invoice-footer{break-inside:avoid!important;page-break-inside:avoid!important;flex-direction:row!important;justify-content:space-between!important;align-items:flex-end!important;margin-top:24px!important;padding-top:16px!important;display:flex!important}.signature-block{break-inside:avoid!important;page-break-inside:avoid!important;flex-direction:column!important;gap:2px!important;min-width:200px!important;display:flex!important}.for-company-line{text-transform:uppercase!important;letter-spacing:.05em!important;color:#1e293b!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;font-size:11px!important;font-weight:700!important;display:block!important}.signature-space{break-inside:avoid!important;page-break-inside:avoid!important;flex-direction:column!important;align-items:flex-start!important;gap:3px!important;margin-top:8px!important;display:flex!important}.signature-image-container{align-items:center!important;min-height:48px!important;max-height:56px!important;display:flex!important}.signature-image{object-fit:contain!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;max-width:180px!important;max-height:52px!important;display:block!important}.signature-calligraphy-script{color:#1e1b4b!important;letter-spacing:.01em!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;align-items:center!important;min-height:48px!important;font-family:Caveat,Dancing Script,cursive!important;font-size:34px!important;font-weight:700!important;line-height:1.1!important;display:flex!important}.signature-rule-line{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;border-radius:1px!important;width:160px!important;height:1.5px!important;margin:3px 0 5px!important;display:block!important}.signatory-name-title-group{align-items:baseline!important;gap:6px!important;display:flex!important}.signatory-name{color:#0f172a!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;font-size:12.5px!important;font-weight:700!important;display:inline!important}.signatory-title{color:#64748b!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;font-size:11px!important;font-weight:500!important;display:inline!important}.signature-verified-badge{color:#047857!important;letter-spacing:.02em!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;background:#ecfdf5!important;border:1px solid #a7f3d0!important;border-radius:9999px!important;align-items:center!important;gap:4px!important;margin-top:4px!important;padding:2px 7px!important;font-size:9.5px!important;font-weight:700!important;display:inline-flex!important}.sig-shield-icon{color:#059669!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}.thank-you-line{color:#475569!important;text-align:right!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;max-width:320px!important;font-size:12px!important;font-style:italic!important;line-height:1.4!important;display:block!important}}
