.invoice-maker{--im-bg:#fff;--im-soft:#f5f5f5;--im-text:#171717;--im-muted:#646464;--im-border:#dedede;color:var(--im-text);font-size:.875rem}@media (prefers-color-scheme:dark){.invoice-maker{--im-bg:#262626;--im-soft:#1c1c1c;--im-text:#f5f5f5;--im-muted:#b3b3b3;--im-border:#484848}}.invoice-maker button,.invoice-maker input,.invoice-maker textarea,.invoice-maker select{font:inherit;border:1px solid var(--im-border);border-radius:.5rem}.invoice-maker button{background:var(--im-bg);color:var(--im-text);cursor:pointer;padding:.6rem .85rem;transition:border-color .15s,background .15s}.invoice-maker button:hover:not(:disabled){background:var(--im-soft);border-color:#5676ff}.invoice-maker button:disabled,.invoice-maker fieldset:disabled{opacity:.6}.invoice-maker button:disabled{cursor:not-allowed}.invoice-maker button.im-primary{color:#fff;background:#364bf5;border-color:#364bf5}.invoice-maker button.im-primary:hover:not(:disabled){background:#2a3ad8}.invoice-maker button.im-danger{color:#dc2626}.invoice-maker input:not([type=file]),.invoice-maker textarea,.invoice-maker select{background:var(--im-bg);width:100%;min-width:0;color:var(--im-text);padding:.6rem .75rem;display:block}.invoice-maker textarea{resize:vertical}.invoice-maker fieldset{border:0;min-width:0;padding:0}.invoice-maker h2{font-size:1.1rem;font-weight:600}.invoice-maker h3{font-size:.9rem;font-weight:600}.invoice-maker p{line-height:1.7}.im-toolbar,.im-actions,.im-section-heading,.im-payment-row{flex-wrap:wrap;align-items:center;gap:.65rem;display:flex}.im-toolbar,.im-section-heading,.im-payment-row{justify-content:space-between}.im-toolbar{margin-bottom:.75rem}.im-status-dot{background:#10b981;border-radius:50%;width:.5rem;height:.5rem;margin-right:.25rem;display:inline-block}.im-hint{color:var(--im-muted);margin:.65rem 0;font-size:.75rem;line-height:1.7}.im-panel{border:1px solid var(--im-border);background:var(--im-bg);border-radius:1rem;margin:1.5rem 0;padding:1.25rem}.im-section-heading{margin-bottom:1rem}.im-count,.im-badge{background:var(--im-soft);border-radius:2rem;padding:.2rem .6rem;font-size:.75rem;display:inline-block}.im-fields,.im-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;display:grid}.im-filters{grid-template-columns:minmax(0,1fr) minmax(9rem,.4fr);margin-bottom:1rem}.im-field{min-width:0;margin-bottom:.8rem;display:block}.im-field>span{margin-bottom:.35rem;font-size:.75rem;font-weight:500;display:block}.im-summary{flex-wrap:wrap;gap:.8rem;margin-bottom:1rem;display:flex}.im-summary>div{background:var(--im-soft);border-radius:.75rem;padding:.85rem 1rem}.im-summary span,.im-summary strong,.im-summary small{display:block}.im-summary span,.im-summary small{color:var(--im-muted);font-size:.7rem}.im-summary strong{padding:.3rem 0}.im-invoice-list{max-height:20rem;overflow-y:auto}.invoice-maker .im-invoice-row{text-align:left;justify-content:space-between;gap:1rem;width:100%;margin-bottom:.5rem;padding:.85rem;display:flex}.im-invoice-row span{overflow-wrap:anywhere;min-width:0}.im-invoice-row span:last-child{text-align:right}.im-invoice-row strong,.im-invoice-row small{display:block}.im-invoice-row small{color:var(--im-muted);margin-top:.3rem;font-size:.7rem}.invoice-maker .im-selected{background:var(--im-soft);border-color:#5676ff}.im-empty{color:var(--im-muted);text-align:center;padding:1.5rem 0}.im-workspace{grid-template-columns:minmax(0,1fr);align-items:start;gap:1.5rem;display:grid}.im-editor{min-width:0;margin:0}.im-invoice-actions{margin-bottom:1rem}.invoice-maker details{border-top:1px solid var(--im-border);margin:1rem 0;padding-top:1rem}.invoice-maker summary{cursor:pointer;font-weight:600}.invoice-maker details[open]>summary{margin-bottom:1rem}.invoice-maker .im-text-button{color:#5676ff;text-align:left;background:0 0;border:none;padding:0}.im-line-item{border:1px solid var(--im-border);background:var(--im-soft);border-radius:.75rem;margin-bottom:.75rem;padding:.85rem}.im-item-numbers{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:.5rem;display:grid}.im-item-numbers .im-field{margin:0}.im-item-numbers button{padding-left:.5rem;padding-right:.5rem;font-size:.7rem}.im-spacing{margin-top:1rem}.im-payments{border-top:1px solid var(--im-border);margin-top:1rem;padding-top:1.25rem}.im-payment-row{margin-bottom:.75rem}.im-preview{min-width:0}.im-paper{color:#262626;overflow-wrap:anywhere;background:#fff;border:1px solid #dedede;border-radius:.5rem;padding:clamp(1rem,3vw,2rem);font-size:.8rem;box-shadow:0 8px 28px #00000008}.im-paper-heading{border-bottom:2px solid #364bf5;justify-content:space-between;gap:1rem;padding-bottom:1.5rem;display:flex}.im-paper-heading>div:last-child{text-align:right;flex-shrink:0;font-size:.7rem;line-height:1.8}.im-eyebrow{color:#364bf5;letter-spacing:.18em;margin-bottom:.35rem;font-size:.65rem;font-weight:600}.im-draft-label{color:#737373;margin-top:.5rem;font-size:.7rem}.im-paper-parties{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem;padding:1.5rem 0;line-height:1.8;display:grid}.im-paper h3{color:#737373;text-transform:uppercase;letter-spacing:.06em;margin-bottom:.5rem;font-size:.65rem}.im-multiline{white-space:pre-wrap}.im-table-scroll{overflow-x:auto}.im-invoice-table{border-collapse:collapse;text-align:right;width:100%;font-size:.75rem}.im-invoice-table th{color:#525252;background:#f5f5f5;font-weight:500}.im-invoice-table th,.im-invoice-table td{vertical-align:top;border-bottom:1px solid #e5e5e5;padding:.7rem .5rem}.im-invoice-table th:first-child,.im-invoice-table td:first-child{text-align:left;white-space:pre-wrap;width:50%}.im-invoice-table td:not(:first-child){white-space:nowrap}.im-totals{width:min(100%,19rem);margin:1.25rem 0 1.25rem auto}.im-totals>div{justify-content:space-between;gap:1rem;padding:.4rem 0;display:flex}.im-totals dd{text-align:right}.im-totals .im-total{border-top:1px solid #e5e5e5;margin-top:.4rem;padding-top:.7rem;font-weight:600}.im-paper-note{margin-top:1.5rem}.im-paper-note p{font-size:.75rem}.im-error,.im-notice{overflow-wrap:anywhere;border-radius:.6rem;margin:1rem 0;padding:.8rem 1rem}.im-error{color:#991b1b;background:#fef2f2;border:1px solid #fecaca}.im-notice{color:#065f46;background:#ecfdf5;border:1px solid #a7f3d0}.im-folder p{margin:.85rem 0}.im-folder code{overflow-wrap:anywhere}.im-disclaimer{margin:1.5rem 0}@media (width>=1280px){.im-workspace{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}}@media (width<=480px){.im-fields,.im-filters{grid-template-columns:minmax(0,1fr);gap:0}.im-panel{padding:1rem}.im-actions{gap:.4rem}.invoice-maker button,.im-invoice-row{font-size:.75rem}}@media print{@page{size:A4;margin:15mm}body:has(#invoice-print-sheet){min-width:0;background:#fff!important}body:has(#invoice-print-sheet) :not(:has(#invoice-print-sheet)):not(#invoice-print-sheet):not(#invoice-print-sheet *){display:none!important}body:has(#invoice-print-sheet) :has(#invoice-print-sheet){width:auto!important;max-width:none!important;min-height:0!important;margin:0!important;padding:0!important;display:block!important;position:static!important;overflow:visible!important}body:has(#invoice-print-sheet) #invoice-print-sheet{width:100%;max-width:none;box-shadow:none;print-color-adjust:exact;border:0;border-radius:0;margin:0;padding:0;font-size:10pt;position:static}.im-table-scroll{overflow:visible}.im-paper tr,.im-paper-parties,.im-paper-note,.im-totals{break-inside:avoid}.im-paper thead{display:table-header-group}}
