.invoices-page.svelte-wxqixy{max-width:1200px;margin:0 auto;padding:1rem}.page-header.svelte-wxqixy{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:2rem;display:flex}.page-header.svelte-wxqixy h1:where(.svelte-wxqixy){margin:0;font-size:1.8rem;font-weight:600}.header-actions.svelte-wxqixy{gap:.5rem;display:flex}.btn.svelte-wxqixy{cursor:pointer;border:none;border-radius:6px;align-items:center;gap:.5rem;padding:.5rem 1rem;font-size:.9rem;font-weight:500;transition:all .2s;display:inline-flex}.btn-primary.svelte-wxqixy{color:#fff;background:#2563eb}.btn-primary.svelte-wxqixy:hover{background:#1d4ed8}.btn-secondary.svelte-wxqixy{color:#374151;background:#e5e7eb}.btn-secondary.svelte-wxqixy:hover{background:#d1d5db}.btn-success.svelte-wxqixy{color:#fff;background:#22c55e}.btn-success.svelte-wxqixy:hover{background:#16a34a}.btn-danger.svelte-wxqixy{color:#fff;background:#ef4444}.btn-danger.svelte-wxqixy:hover{background:#dc2626}.btn-outline.svelte-wxqixy{color:#374151;background:0 0;border:1px solid #d1d5db}.btn-outline.svelte-wxqixy:hover{background:#f3f4f6}.btn-sm.svelte-wxqixy{padding:.25rem .5rem;font-size:.8rem}.invoices-grid.svelte-wxqixy{grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1rem;display:grid}.invoice-card.svelte-wxqixy{background:#fff;border-radius:12px;padding:1rem;transition:transform .2s;position:relative;box-shadow:0 1px 3px #0000001a}.invoice-card.svelte-wxqixy:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.invoice-header.svelte-wxqixy{justify-content:space-between;align-items:center;margin-bottom:.5rem;display:flex}.invoice-number.svelte-wxqixy{color:#1f2937;font-size:1.1rem;font-weight:600}.badge.svelte-wxqixy{text-transform:uppercase;border-radius:20px;padding:.2rem .6rem;font-size:.7rem;font-weight:600}.badge-success.svelte-wxqixy{color:#065f46;background:#d1fae5}.badge-info.svelte-wxqixy{color:#1e40af;background:#dbeafe}.badge-danger.svelte-wxqixy{color:#991b1b;background:#fee2e2}.badge-secondary.svelte-wxqixy{color:#374151;background:#e5e7eb}.invoice-body.svelte-wxqixy{margin:.5rem 0}.invoice-customer.svelte-wxqixy{color:#1f2937;margin-bottom:.25rem;font-weight:500}.invoice-date.svelte-wxqixy{color:#6b7280;gap:1rem;font-size:.8rem;display:flex}.invoice-amount.svelte-wxqixy{border-top:1px solid #e5e7eb;justify-content:space-between;align-items:center;margin-top:.5rem;padding:.5rem 0;display:flex}.invoice-amount.svelte-wxqixy .amount:where(.svelte-wxqixy){color:#2563eb;font-size:1.2rem;font-weight:700}.invoice-payments.svelte-wxqixy{color:#6b7280;justify-content:space-between;padding:.25rem 0;font-size:.85rem;display:flex}.invoice-payments.svelte-wxqixy .balance:where(.svelte-wxqixy){color:#1f2937;font-weight:500}.invoice-actions.svelte-wxqixy{border-top:1px solid #e5e7eb;flex-wrap:wrap;gap:.25rem;margin-top:.5rem;padding-top:.5rem;display:flex}.overdue-badge.svelte-wxqixy{color:#fff;text-transform:uppercase;letter-spacing:.05em;background:#dc2626;border-radius:20px;padding:.2rem .6rem;font-size:.6rem;font-weight:700;position:absolute;top:-8px;right:-8px}.empty-state.svelte-wxqixy{text-align:center;background:#fff;border-radius:12px;padding:3rem;box-shadow:0 1px 3px #0000001a}.empty-icon.svelte-wxqixy{margin-bottom:1rem;font-size:3rem}.empty-state.svelte-wxqixy p:where(.svelte-wxqixy){color:#6b7280;margin-bottom:1rem}.loading.svelte-wxqixy{text-align:center;color:#6b7280;padding:2rem}.modal-overlay.svelte-wxqixy{z-index:1000;background:#00000080;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.modal.svelte-wxqixy{background:#fff;border-radius:12px;width:100%;max-width:600px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px #0000004d}.modal-large.svelte-wxqixy{max-width:800px}.modal-header.svelte-wxqixy{z-index:1;background:#fff;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;padding:1.2rem 1.5rem;display:flex;position:sticky;top:0}.modal-header.svelte-wxqixy h2:where(.svelte-wxqixy){margin:0;font-size:1.2rem;font-weight:600}.close-btn.svelte-wxqixy{cursor:pointer;color:#6b7280;background:0 0;border:none;border-radius:4px;padding:.25rem .5rem;font-size:1.5rem}.close-btn.svelte-wxqixy:hover{background:#f3f4f6}.modal-body.svelte-wxqixy{padding:1.5rem}.form-group.svelte-wxqixy{margin-bottom:1rem}.form-group.svelte-wxqixy label:where(.svelte-wxqixy){color:#374151;margin-bottom:.25rem;font-size:.85rem;font-weight:500;display:block}.form-group.svelte-wxqixy input:where(.svelte-wxqixy),.form-group.svelte-wxqixy textarea:where(.svelte-wxqixy){border:1px solid #d1d5db;border-radius:6px;width:100%;padding:.6rem .8rem;font-size:.95rem;transition:border-color .2s}.form-group.svelte-wxqixy input:where(.svelte-wxqixy):focus,.form-group.svelte-wxqixy textarea:where(.svelte-wxqixy):focus{border-color:#2563eb;outline:none;box-shadow:0 0 0 3px #2563eb1a}.item-row.svelte-wxqixy{align-items:center;gap:.5rem;margin-bottom:.5rem;display:flex}.item-description.svelte-wxqixy{flex:2}.item-qty.svelte-wxqixy{width:60px}.item-price.svelte-wxqixy{width:100px}.item-total.svelte-wxqixy{min-width:80px;font-family:monospace;font-weight:500}.form-row.svelte-wxqixy{grid-template-columns:1fr 1fr;gap:1rem;display:grid}.totals-summary.svelte-wxqixy{background:#f9fafb;border-radius:6px;padding:.5rem;font-size:.9rem}.grand-total.svelte-wxqixy{color:#2563eb;border-top:1px solid #e5e7eb;margin-top:.25rem;padding-top:.25rem;font-size:1.1rem;font-weight:700}.form-actions.svelte-wxqixy{border-top:1px solid #e5e7eb;justify-content:flex-end;gap:.5rem;margin-top:1.5rem;padding-top:1rem;display:flex}.dark .invoice-card.svelte-wxqixy,.dark .empty-state.svelte-wxqixy,.dark .modal.svelte-wxqixy{background:#1f2937}.dark .invoice-number.svelte-wxqixy,.dark .invoice-customer.svelte-wxqixy,.dark .invoice-payments.svelte-wxqixy .balance:where(.svelte-wxqixy){color:#f3f4f6}.dark .invoice-amount.svelte-wxqixy .amount:where(.svelte-wxqixy){color:#60a5fa}.dark .invoice-actions.svelte-wxqixy,.dark .invoice-amount.svelte-wxqixy{border-top-color:#374151}.dark .modal-header.svelte-wxqixy{background:#1f2937;border-bottom-color:#374151}.dark .form-group.svelte-wxqixy label:where(.svelte-wxqixy){color:#e5e7eb}.dark .form-group.svelte-wxqixy input:where(.svelte-wxqixy),.dark .form-group.svelte-wxqixy textarea:where(.svelte-wxqixy){color:#f3f4f6;background:#374151;border-color:#4b5563}.dark .totals-summary.svelte-wxqixy{background:#374151}.dark .grand-total.svelte-wxqixy{color:#60a5fa;border-top-color:#4b5563}.dark .form-actions.svelte-wxqixy{border-top-color:#374151}@media (width<=768px){.page-header.svelte-wxqixy{flex-direction:column;align-items:stretch}.header-actions.svelte-wxqixy{justify-content:stretch}.header-actions.svelte-wxqixy .btn:where(.svelte-wxqixy){justify-content:center;width:100%}.invoices-grid.svelte-wxqixy,.form-row.svelte-wxqixy{grid-template-columns:1fr}.item-row.svelte-wxqixy{flex-wrap:wrap}.item-description.svelte-wxqixy{flex:100%}.modal.svelte-wxqixy{margin:.5rem}}
