{
        "layout": "grid",
        "columns": 3,
        "autoRefresh": 300000,
        "widgets": [
            {
                "id": "total-tax-collected-widget",
                "type": "stat",
                "title": "Total Tax Collected",
                "icon": "fa-dollar-sign",
                "color": "success",
                "dataSource": "/api/reports/sales-tax-summary/:orgId",
                "dataPath": "totals.total_tax_collected",
                "format": "currency",
                "size": "large",
                "position": {"row": 1, "col": 1}
            },
            {
                "id": "tax-paid-widget",
                "type": "stat",
                "title": "Tax Collected (Paid Invoices)",
                "icon": "fa-check-circle",
                "color": "primary",
                "dataSource": "/api/reports/sales-tax-summary/:orgId",
                "dataPath": "totals.tax_collected_paid",
                "format": "currency",
                "size": "large",
                "position": {"row": 1, "col": 2}
            },
            {
                "id": "tax-pending-widget",
                "type": "stat",
                "title": "Tax Pending (Unpaid Invoices)",
                "icon": "fa-clock",
                "color": "warning",
                "dataSource": "/api/reports/sales-tax-summary/:orgId",
                "dataPath": "totals.tax_collected_pending",
                "format": "currency",
                "size": "large",
                "position": {"row": 1, "col": 3}
            },
            {
                "id": "current-month-tax-widget",
                "type": "stat",
                "title": "Current Month Tax",
                "icon": "fa-calendar-day",
                "color": "info",
                "dataSource": "/api/reports/sales-tax-summary/:orgId",
                "dataPath": "totals.current_month_tax",
                "format": "currency",
                "size": "medium",
                "position": {"row": 2, "col": 1}
            },
            {
                "id": "current-quarter-tax-widget",
                "type": "stat",
                "title": "Current Quarter Tax",
                "icon": "fa-calendar",
                "color": "accent",
                "dataSource": "/api/reports/sales-tax-summary/:orgId",
                "dataPath": "totals.current_quarter_tax",
                "format": "currency",
                "size": "medium",
                "position": {"row": 2, "col": 2}
            },
            {
                "id": "ytd-tax-widget",
                "type": "stat",
                "title": "Year to Date Tax",
                "icon": "fa-calendar-check",
                "color": "secondary",
                "dataSource": "/api/reports/sales-tax-summary/:orgId",
                "dataPath": "totals.ytd_tax",
                "format": "currency",
                "size": "medium",
                "position": {"row": 2, "col": 3}
            },
            {
                "id": "tax-by-rate-table",
                "type": "table",
                "title": "Tax Collection by Rate",
                "icon": "fa-percent",
                "dataSource": "/api/reports/sales-tax-summary/:orgId",
                "dataPath": "data",
                "columns": [
                    {
                        "field": "tax_rate",
                        "label": "Tax Rate",
                        "format": "percentage",
                        "width": "15%"
                    },
                    {
                        "field": "taxable_amount",
                        "label": "Taxable Amount",
                        "format": "currency",
                        "align": "right",
                        "width": "20%"
                    },
                    {
                        "field": "tax_collected_paid",
                        "label": "Collected (Paid)",
                        "format": "currency",
                        "align": "right",
                        "width": "20%"
                    },
                    {
                        "field": "tax_collected_pending",
                        "label": "Pending",
                        "format": "currency",
                        "align": "right",
                        "width": "15%"
                    },
                    {
                        "field": "invoice_count",
                        "label": "Invoices",
                        "format": "count",
                        "align": "center",
                        "width": "10%"
                    },
                    {
                        "field": "total_with_tax",
                        "label": "Total with Tax",
                        "format": "currency",
                        "align": "right",
                        "width": "20%"
                    }
                ],
                "size": "xlarge",
                "position": {"row": 3, "col": 1, "colspan": 2}
            },
            {
                "id": "tax-breakdown-chart",
                "type": "chart",
                "title": "Tax Breakdown by Rate",
                "chartType": "doughnut",
                "dataSource": "/api/reports/sales-tax-summary/:orgId",
                "dataPath": "data",
                "labelField": "tax_rate_label",
                "valueField": "tax_collected_paid",
                "format": "currency",
                "colors": ["#3b82f6", "#10b981", "#f59e0b", "#ef4444", "#8b5cf6", "#ec4899"],
                "size": "large",
                "position": {"row": 3, "col": 3}
            },
            {
                "id": "remittance-schedule-table",
                "type": "table",
                "title": "Remittance Schedule (Upcoming)",
                "icon": "fa-calendar-alt",
                "dataSource": "/api/reports/sales-tax-summary/:orgId",
                "dataPath": "remittance_schedule",
                "columns": [
                    {
                        "field": "due_date",
                        "label": "Due Date",
                        "format": "date",
                        "width": "25%"
                    },
                    {
                        "field": "period",
                        "label": "Period",
                        "width": "25%"
                    },
                    {
                        "field": "amount_due",
                        "label": "Amount Due",
                        "format": "currency",
                        "align": "right",
                        "width": "25%"
                    },
                    {
                        "field": "status",
                        "label": "Status",
                        "render": "badge",
                        "badgeColors": {
                            "pending": "warning",
                            "paid": "success",
                            "overdue": "error"
                        },
                        "width": "25%"
                    }
                ],
                "size": "xlarge",
                "position": {"row": 4, "col": 1, "colspan": 3}
            }
        ],
        "quickActions": [
            {
                "label": "Export for Filing",
                "action": "reports:export-tax-filing-csv",
                "icon": "fa-file-export",
                "color": "primary"
            },
            {
                "label": "Generate Tax Report",
                "action": "reports:generate-tax-report-pdf",
                "icon": "fa-file-pdf",
                "color": "error"
            },
            {
                "label": "Email Tax Summary",
                "action": "reports:email-tax-summary",
                "icon": "fa-envelope",
                "color": "info"
            },
            {
                "label": "Schedule Remittance",
                "action": "reports:schedule-tax-remittance",
                "icon": "fa-calendar-plus",
                "color": "accent"
            }
        ]
    }