{
        "dataSource": "/api/reports/outstanding-invoices/:orgId",
        "autoRefresh": 120000,
        "pagination": {
            "enabled": true,
            "pageSize": 25,
            "pageSizes": [10, 25, 50, 100]
        },
        "columns": [
            {
                "field": "customer_name",
                "label": "Customer",
                "sortable": true,
                "searchable": true,
                "width": "20%",
                "render": "link",
                "linkAction": "reports:view-customer-ar"
            },
            {
                "field": "total_outstanding",
                "label": "Total Outstanding",
                "sortable": true,
                "width": "12%",
                "format": "currency",
                "align": "right",
                "highlight": true
            },
            {
                "field": "current",
                "label": "Current",
                "sortable": true,
                "width": "10%",
                "format": "currency",
                "align": "right"
            },
            {
                "field": "overdue_0_30",
                "label": "0-30 Days",
                "sortable": true,
                "width": "10%",
                "format": "currency",
                "align": "right",
                "colorClass": "text-warning"
            },
            {
                "field": "overdue_30_60",
                "label": "30-60 Days",
                "sortable": true,
                "width": "10%",
                "format": "currency",
                "align": "right",
                "colorClass": "text-warning"
            },
            {
                "field": "overdue_60_90",
                "label": "60-90 Days",
                "sortable": true,
                "width": "10%",
                "format": "currency",
                "align": "right",
                "colorClass": "text-error"
            },
            {
                "field": "overdue_90_plus",
                "label": "90+ Days",
                "sortable": true,
                "width": "10%",
                "format": "currency",
                "align": "right",
                "colorClass": "text-error",
                "bold": true
            },
            {
                "field": "invoice_count",
                "label": "Invoices",
                "sortable": true,
                "width": "8%",
                "format": "count",
                "align": "center"
            }
        ],
        "filters": [
            {
                "field": "aging_bucket",
                "label": "Aging Bucket",
                "type": "select",
                "options": [
                    {"value": "", "label": "All Buckets"},
                    {"value": "current", "label": "Current"},
                    {"value": "0-30", "label": "0-30 Days"},
                    {"value": "30-60", "label": "30-60 Days"},
                    {"value": "60-90", "label": "60-90 Days"},
                    {"value": "90+", "label": "90+ Days"}
                ],
                "default": ""
            },
            {
                "field": "min_outstanding",
                "label": "Min Outstanding",
                "type": "number",
                "placeholder": "0.00"
            },
            {
                "field": "search",
                "label": "Search",
                "type": "text",
                "placeholder": "Search customer..."
            }
        ],
        "rowActions": [
            {
                "label": "View Details",
                "icon": "fa-eye",
                "action": "reports:view-ar-details",
                "color": "info"
            },
            {
                "label": "Invoice List",
                "icon": "fa-list",
                "action": "reports:view-customer-invoices",
                "color": "primary"
            },
            {
                "label": "Record Payment",
                "icon": "fa-money-bill",
                "action": "invoices:record-payment",
                "color": "success"
            },
            {
                "label": "Send Reminder",
                "icon": "fa-bell",
                "action": "invoices:send-reminder",
                "color": "warning",
                "confirm": "Send payment reminder to this customer?"
            }
        ],
        "bulkActions": [
            {
                "label": "Send Reminders",
                "icon": "fa-paper-plane",
                "action": "reports:send-reminders-bulk",
                "color": "warning",
                "confirm": "Send payment reminders to {count} customers?"
            },
            {
                "label": "Export Selected",
                "icon": "fa-file-csv",
                "action": "reports:export-selected-csv",
                "color": "secondary"
            },
            {
                "label": "Generate Statements",
                "icon": "fa-file-invoice",
                "action": "reports:generate-statements-bulk",
                "color": "primary"
            }
        ],
        "summaryWidgets": [
            {
                "id": "total-outstanding",
                "type": "stat",
                "title": "Total Outstanding",
                "icon": "fa-dollar-sign",
                "color": "error",
                "dataPath": "totals.total_outstanding",
                "format": "currency"
            },
            {
                "id": "current-ar",
                "type": "stat",
                "title": "Current",
                "icon": "fa-check-circle",
                "color": "success",
                "dataPath": "totals.current",
                "format": "currency"
            },
            {
                "id": "overdue-0-30",
                "type": "stat",
                "title": "0-30 Days",
                "icon": "fa-clock",
                "color": "warning",
                "dataPath": "totals.overdue_0_30",
                "format": "currency"
            },
            {
                "id": "overdue-30-60",
                "type": "stat",
                "title": "30-60 Days",
                "icon": "fa-exclamation-circle",
                "color": "warning",
                "dataPath": "totals.overdue_30_60",
                "format": "currency"
            },
            {
                "id": "overdue-60-90",
                "type": "stat",
                "title": "60-90 Days",
                "icon": "fa-exclamation-triangle",
                "color": "error",
                "dataPath": "totals.overdue_60_90",
                "format": "currency"
            },
            {
                "id": "overdue-90-plus",
                "type": "stat",
                "title": "90+ Days",
                "icon": "fa-ban",
                "color": "error",
                "dataPath": "totals.overdue_90_plus",
                "format": "currency"
            }
        ],
        "exportOptions": [
            {
                "label": "Export to CSV",
                "action": "reports:export-csv",
                "icon": "fa-file-csv",
                "params": {"reportType": "outstanding-invoices"}
            },
            {
                "label": "Export to PDF",
                "action": "reports:export-pdf",
                "icon": "fa-file-pdf",
                "params": {"reportType": "outstanding-invoices"}
            }
        ]
    }