INSERT INTO invoice_templates (code, name, template_type, description, sort_order, is_active, created_at, updated_at)
SELECT 'modern_3', 'Modern 3', 'a4', 'Balanced layout yang aman untuk print dialog dan render PDF.', 40, 1, NOW(), NOW()
WHERE NOT EXISTS (SELECT 1 FROM invoice_templates WHERE code = 'modern_3');
