{
        "layout": "grid",
        "columns": 3,
        "autoRefresh": 60000,
        "widgets": [
            {
                "id": "total-revenue-widget",
                "type": "stat",
                "title": "Total Revenue",
                "icon": "fa-dollar-sign",
                "color": "success",
                "dataSource": "/api/reports/dashboard-summary/:orgId",
                "dataPath": "data.summary.total_revenue",
                "format": "currency",
                "trend": {
                    "dataPath": "data.summary.revenue_growth",
                    "format": "percentage"
                },
                "size": "large",
                "position": {"row": 1, "col": 1}
            },
            {
                "id": "outstanding-ar-widget",
                "type": "stat",
                "title": "Outstanding AR",
                "icon": "fa-file-invoice-dollar",
                "color": "warning",
                "dataSource": "/api/reports/dashboard-summary/:orgId",
                "dataPath": "data.summary.total_outstanding",
                "format": "currency",
                "subtitle": {
                    "dataPath": "data.summary.overdue_count",
                    "format": "count",
                    "suffix": " overdue"
                },
                "size": "large",
                "position": {"row": 1, "col": 2}
            },
            {
                "id": "collection-rate-widget",
                "type": "gauge",
                "title": "Collection Rate",
                "icon": "fa-percent",
                "dataSource": "/api/reports/collection-efficiency/:orgId",
                "dataPath": "data.collection_rate",
                "format": "percentage",
                "ranges": [
                    {"min": 0, "max": 50, "color": "error", "label": "Poor"},
                    {"min": 50, "max": 75, "color": "warning", "label": "Fair"},
                    {"min": 75, "max": 90, "color": "info", "label": "Good"},
                    {"min": 90, "max": 100, "color": "success", "label": "Excellent"}
                ],
                "size": "large",
                "position": {"row": 1, "col": 3}
            },
            {
                "id": "dso-widget",
                "type": "metric",
                "title": "Days Sales Outstanding",
                "icon": "fa-calendar-days",
                "color": "info",
                "dataSource": "/api/reports/collection-efficiency/:orgId",
                "dataPath": "data.days_sales_outstanding",
                "format": "number",
                "suffix": " days",
                "size": "medium",
                "position": {"row": 2, "col": 1}
            },
            {
                "id": "avg-collection-time-widget",
                "type": "metric",
                "title": "Avg Collection Time",
                "icon": "fa-clock",
                "color": "info",
                "dataSource": "/api/reports/collection-efficiency/:orgId",
                "dataPath": "data.avg_days_to_collect",
                "format": "number",
                "suffix": " days",
                "size": "medium",
                "position": {"row": 2, "col": 2}
            },
            {
                "id": "tax-collected-widget",
                "type": "stat",
                "title": "Tax Collected (YTD)",
                "icon": "fa-receipt",
                "color": "primary",
                "dataSource": "/api/reports/dashboard-summary/:orgId",
                "dataPath": "data.summary.tax_collected",
                "format": "currency",
                "size": "medium",
                "position": {"row": 2, "col": 3}
            },
            {
                "id": "monthly-revenue-widget",
                "type": "stat",
                "title": "Revenue (This Month)",
                "icon": "fa-calendar-check",
                "color": "accent",
                "dataSource": "/api/reports/dashboard-summary/:orgId",
                "dataPath": "data.summary.current_month_revenue",
                "format": "currency",
                "trend": {
                    "dataPath": "data.summary.month_over_month_growth",
                    "format": "percentage"
                },
                "size": "medium",
                "position": {"row": 3, "col": 1}
            },
            {
                "id": "invoice-count-widget",
                "type": "stat",
                "title": "Invoices (This Month)",
                "icon": "fa-file-invoice",
                "color": "secondary",
                "dataSource": "/api/reports/dashboard-summary/:orgId",
                "dataPath": "data.summary.current_month_invoices",
                "format": "count",
                "size": "medium",
                "position": {"row": 3, "col": 2}
            },
            {
                "id": "revenue-trends-chart",
                "type": "chart",
                "title": "Revenue Trends (6 Months)",
                "chartType": "line",
                "dataSource": "/api/reports/revenue-trends/:orgId?months=6",
                "xAxis": {
                    "dataPath": "data.month_name",
                    "label": "Month"
                },
                "yAxis": [
                    {
                        "dataPath": "data.total_revenue",
                        "label": "Total Revenue",
                        "color": "#10b981",
                        "format": "currency"
                    },
                    {
                        "dataPath": "data.paid_revenue",
                        "label": "Paid Revenue",
                        "color": "#3b82f6",
                        "format": "currency"
                    }
                ],
                "size": "xlarge",
                "position": {"row": 4, "col": 1, "colspan": 2}
            },
            {
                "id": "top-customers-chart",
                "type": "chart",
                "title": "Top 10 Customers",
                "chartType": "bar",
                "dataSource": "/api/reports/dashboard-summary/:orgId",
                "dataPath": "data.top_customers",
                "xAxis": {
                    "dataPath": "customer_name",
                    "label": "Customer"
                },
                "yAxis": [
                    {
                        "dataPath": "total_revenue",
                        "label": "Revenue",
                        "color": "#8b5cf6",
                        "format": "currency"
                    }
                ],
                "size": "xlarge",
                "position": {"row": 4, "col": 3, "colspan": 1, "rowspan": 2}
            },
            {
                "id": "payment-methods-chart",
                "type": "chart",
                "title": "Collections by Payment Method",
                "chartType": "pie",
                "dataSource": "/api/reports/payment-collection/:orgId",
                "dataPath": "data",
                "labelField": "payment_method",
                "valueField": "total_collected",
                "format": "currency",
                "colors": ["#3b82f6", "#10b981", "#f59e0b", "#ef4444", "#8b5cf6"],
                "size": "large",
                "position": {"row": 5, "col": 1}
            },
            {
                "id": "top-products-chart",
                "type": "chart",
                "title": "Top 10 Products",
                "chartType": "bar",
                "dataSource": "/api/reports/dashboard-summary/:orgId",
                "dataPath": "data.top_products",
                "xAxis": {
                    "dataPath": "product_name",
                    "label": "Product"
                },
                "yAxis": [
                    {
                        "dataPath": "total_revenue",
                        "label": "Revenue",
                        "color": "#f59e0b",
                        "format": "currency"
                    }
                ],
                "size": "large",
                "position": {"row": 5, "col": 2}
            },
            {
                "id": "outstanding-invoices-list",
                "type": "list",
                "title": "Outstanding Invoices (Top 10)",
                "icon": "fa-exclamation-triangle",
                "dataSource": "/api/reports/outstanding-invoices/:orgId?limit=10",
                "dataPath": "data",
                "columns": [
                    {
                        "field": "customer_name",
                        "label": "Customer",
                        "width": "40%"
                    },
                    {
                        "field": "total_outstanding",
                        "label": "Outstanding",
                        "format": "currency",
                        "align": "right",
                        "width": "30%"
                    },
                    {
                        "field": "overdue_0_30",
                        "label": "0-30 Days",
                        "format": "currency",
                        "align": "right",
                        "width": "30%"
                    }
                ],
                "actions": [
                    {
                        "label": "View All",
                        "action": "reports:view-outstanding-invoices",
                        "icon": "fa-arrow-right"
                    }
                ],
                "size": "large",
                "position": {"row": 6, "col": 1}
            },
            {
                "id": "tax-summary-list",
                "type": "list",
                "title": "Sales Tax Summary",
                "icon": "fa-receipt",
                "dataSource": "/api/reports/sales-tax-summary/:orgId",
                "dataPath": "data",
                "columns": [
                    {
                        "field": "tax_rate",
                        "label": "Tax Rate",
                        "format": "percentage",
                        "width": "30%"
                    },
                    {
                        "field": "tax_collected_paid",
                        "label": "Collected",
                        "format": "currency",
                        "align": "right",
                        "width": "35%"
                    },
                    {
                        "field": "tax_collected_pending",
                        "label": "Pending",
                        "format": "currency",
                        "align": "right",
                        "width": "35%"
                    }
                ],
                "actions": [
                    {
                        "label": "View Details",
                        "action": "reports:view-tax-summary",
                        "icon": "fa-arrow-right"
                    }
                ],
                "size": "large",
                "position": {"row": 6, "col": 2}
            },
            {
                "id": "collection-efficiency-list",
                "type": "table",
                "title": "Collection Efficiency Metrics",
                "icon": "fa-chart-line",
                "dataSource": "/api/reports/collection-efficiency/:orgId",
                "dataPath": "data",
                "columns": [
                    {
                        "field": "metric_name",
                        "label": "Metric",
                        "width": "50%"
                    },
                    {
                        "field": "metric_value",
                        "label": "Value",
                        "align": "right",
                        "width": "50%"
                    }
                ],
                "transform": "efficiency_to_rows",
                "size": "large",
                "position": {"row": 6, "col": 3}
            }
        ],
        "quickActions": [
            {
                "label": "Export Dashboard",
                "action": "reports:export-dashboard-pdf",
                "icon": "fa-file-pdf",
                "color": "error"
            },
            {
                "label": "Email Report",
                "action": "reports:email-dashboard",
                "icon": "fa-envelope",
                "color": "primary"
            },
            {
                "label": "Schedule Report",
                "action": "reports:schedule-dashboard",
                "icon": "fa-calendar-plus",
                "color": "info"
            }
        ]
    }