.invoice-preview,.print-invoice{--invoice-accent:#4f46e5;--invoice-pad-x:12mm;color:#0f172a;background:#fff;flex-direction:column;font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;font-size:14px;line-height:1.4;display:flex}.invoice-preview *,.print-invoice *{box-sizing:border-box}.invoice-preview-header{border-top:8px solid var(--invoice-accent);padding:16mm var(--invoice-pad-x) 11mm;justify-content:space-between;align-items:flex-start;gap:24px;display:flex}.invoice-preview-header>div:first-child{align-items:flex-start;gap:16px;min-width:0;display:flex}.invoice-preview-header h3{color:#020617;margin:4px 0 0;font-family:Newsreader,Georgia,Times New Roman,serif;font-size:clamp(34px,6vw,48px);font-weight:400;line-height:.95}.invoice-preview-label{color:#64748b;letter-spacing:.08em;text-transform:uppercase;margin:0;font-size:10px;font-weight:700}.print-invoice-logo{-o-object-fit:contain;object-fit:contain;max-width:150px;max-height:86px}.invoice-preview-company{text-align:right;max-width:240px}.invoice-preview-company strong,.invoice-preview-meta strong{font-size:14px;font-weight:700;display:block}.invoice-preview-company span,.invoice-preview-meta span{color:#64748b;white-space:pre-line;margin-top:4px;font-size:12px;font-weight:500;line-height:1.45;display:block}.invoice-preview-meta{padding:0 var(--invoice-pad-x) 10mm;border-top:1px solid #e2e8f0;grid-template-columns:minmax(0,1fr) minmax(220px,.62fr);gap:32px;display:grid}.invoice-preview-meta>div:last-child{background:#f8fafc;border-radius:14px;padding:16px}.invoice-preview-meta p{justify-content:space-between;gap:18px;margin:0;display:flex}.invoice-preview-meta p+p{margin-top:9px}.invoice-preview-table{width:calc(100% - (2 * var(--invoice-pad-x)));margin:0 var(--invoice-pad-x);border-collapse:collapse;table-layout:fixed;font-size:12px}.invoice-preview-table th{color:#475569;letter-spacing:.06em;text-align:left;text-transform:uppercase;border-bottom:1px solid #cbd5e1;padding:0 0 10px;font-size:10px;font-weight:700}.invoice-preview-table td{vertical-align:top;border-bottom:1px solid #f1f5f9;padding:12px 0}.invoice-preview-table th:first-child,.invoice-preview-table td:first-child{overflow-wrap:anywhere;width:52%;padding-right:16px}.invoice-preview-table th:not(:first-child),.invoice-preview-table td:not(:first-child){text-align:right;padding-left:10px}.invoice-preview-totals{width:100%;max-width:310px;margin:10mm var(--invoice-pad-x) 0 auto;padding-bottom:9mm}.invoice-preview-totals p{color:#475569;justify-content:space-between;gap:20px;margin:0;padding:6px 0;font-size:12px;font-weight:500;display:flex}.invoice-preview-balance{border-top:1px solid #cbd5e1;color:#0f172a!important;margin-top:8px!important;font-size:17px!important;font-weight:750!important}.invoice-preview-balance strong{color:var(--invoice-accent)}.print-invoice-notes{margin:0 var(--invoice-pad-x);-moz-column-break-inside:avoid;break-inside:avoid;border-top:1px solid #e2e8f0;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:8mm 0 6mm;display:grid}.print-invoice-notes h4{color:#0f172a;margin:0 0 6px;font-size:12px;font-weight:700}.print-invoice-notes p{color:#475569;margin:0;font-size:11px;font-weight:500;line-height:1.45}.print-invoice-footer{margin:auto var(--invoice-pad-x) 0;text-align:center;color:#94a3b8;-moz-column-break-inside:avoid;break-inside:avoid;border-top:1px solid #e2e8f0;padding:6mm 0 8mm;font-size:10px;font-weight:500}.print-invoice-footer a{color:inherit;text-decoration:none}.print-invoice-footer strong{color:#64748b;font-weight:700}@media (width<=640px){.invoice-preview,.print-invoice{--invoice-pad-x:20px}.invoice-preview-header{padding-top:28px;padding-bottom:24px}.invoice-preview-meta{grid-template-columns:1fr;gap:20px}.invoice-preview-table{font-size:11px}.invoice-preview-table th:first-child,.invoice-preview-table td:first-child{width:44%}.invoice-preview-totals{width:auto;max-width:none;margin-left:var(--invoice-pad-x)}.print-invoice-notes{grid-template-columns:1fr}}.invoice-label{color:#334155;margin-bottom:.5rem;font-size:.875rem;font-weight:500;display:block}.invoice-input,.invoice-textarea{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:.75rem;outline:none;width:100%;min-height:48px;padding:.75rem 1rem;font-size:1rem;font-weight:500;line-height:1.35;transition:border-color .14s,box-shadow .14s}.invoice-textarea{resize:vertical;min-height:92px}.invoice-input:focus,.invoice-textarea:focus{border-color:#4f46e5;box-shadow:0 0 0 4px #6366f124}.invoice-input-with-prefix{padding-left:2.75rem}.invoice-input-with-suffix{padding-right:2.75rem}.invoice-editor-panel .invoice-label{margin-bottom:.375rem;font-size:.8125rem}.invoice-editor-panel .invoice-input,.invoice-editor-panel .invoice-textarea{border-radius:.7rem;min-height:44px;padding:.625rem .875rem;font-size:.9375rem;line-height:1.3}.invoice-editor-panel .invoice-textarea{min-height:78px}.invoice-editor-panel .invoice-input-with-prefix{padding-left:2.5rem}.invoice-editor-panel .invoice-input-with-suffix{padding-right:2.5rem}.invoice-logo-dropzone{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:1rem;justify-content:space-between;align-items:center;gap:1rem;min-height:5.5rem;padding:1rem;transition:border-color .14s,background-color .14s;display:flex}.invoice-logo-dropzone.is-dragging{background:#eef2ff;border-color:#4f46e5}.invoice-small-button,.invoice-action-text,.invoice-action-button,.invoice-primary-action{border-radius:.75rem;justify-content:center;align-items:center;gap:.5rem;min-height:2.5rem;font-size:.875rem;font-weight:650;transition:background-color .14s,border-color .14s,color .14s,transform .14s;display:inline-flex}.invoice-small-button,.invoice-action-text,.invoice-action-button{color:#334155;background:#fff;border:1px solid #e2e8f0;padding:0 .875rem}.invoice-action-button{width:2.5rem;padding:0}.invoice-editor-panel .invoice-small-button,.invoice-editor-panel .invoice-action-button{border-radius:.65rem;min-height:2.25rem;font-size:.8125rem}.invoice-editor-panel .invoice-small-button{padding:0 .75rem}.invoice-editor-panel .invoice-action-button{width:2.25rem}.invoice-action-text{width:100%}.invoice-primary-action{color:#fff;background:#0f172a;padding:0 1rem}.invoice-small-button:hover,.invoice-action-text:hover,.invoice-action-button:hover{color:#0f172a;background:#f8fafc;border-color:#cbd5e1}.invoice-primary-action:hover{background:#1e293b}.invoice-swatch{border:2px solid #fff;border-radius:999px;width:1.85rem;height:1.85rem;box-shadow:0 0 0 1px #cbd5e1}.invoice-line-row{background:#f8fafc;border:1px solid #e2e8f0;border-radius:1rem;padding:1rem}.invoice-editor-panel .invoice-line-row{border-radius:.875rem;padding:.75rem}.invoice-editor-panel .invoice-line-row .invoice-textarea{min-height:64px}.invoice-line-row.is-dragging{background:#eef2ff;border-color:#818cf8}.invoice-preview{border-radius:.35rem;min-height:640px;overflow:hidden;box-shadow:0 16px 45px #0f172a1f}.invoice-lead-dialog{color:#0f172a;background:#fff;border:0;border-radius:1.25rem;width:min(28rem,100vw - 2rem);padding:0;box-shadow:0 32px 90px #0f172a47}.invoice-lead-dialog::backdrop{backdrop-filter:blur(2px);background:#0f172a8c}.invoice-lead-form{padding:1.75rem;position:relative}.invoice-lead-close{color:#64748b;border-radius:.65rem;justify-content:center;align-items:center;width:2.25rem;height:2.25rem;transition:background-color .14s,color .14s;display:inline-flex;position:absolute;top:1rem;right:1rem}.invoice-lead-close:hover,.invoice-lead-close:focus-visible{color:#0f172a;background:#f1f5f9;outline:none}.invoice-print-document{display:none}@media print{@page{size:A4;margin:12mm}body.invoice-printing>:not(main),body.invoice-printing>main>:not(#calculator),body.invoice-printing #calculator>:not(#invoice-generator),body.invoice-printing #invoice-generator>:not(#invoice-print-document){display:none!important}body.invoice-printing #invoice-generator{max-width:none!important;padding:0!important;display:block!important}body.invoice-printing #invoice-print-document{display:block!important}body.invoice-printing,body.invoice-printing main,body.invoice-printing #calculator{background:#fff!important;margin:0!important;padding:0!important}body.invoice-printing .print-invoice{width:100%!important;max-width:186mm!important;min-height:auto!important;box-shadow:none!important;margin:0 auto!important;overflow:visible!important}body.invoice-printing .print-invoice-footer{margin-top:0!important}}
