{
        "type": "dashboard",
        "refreshInterval": 30000,
        "widgets": [
            {
                "id": "stats_overview",
                "type": "stats",
                "title": "Submission Overview",
                "dataSource": "/api/taxcore/stats/{org_id}",
                "stats": [
                    {"key": "total_submissions", "label": "Total", "icon": "fa-file-invoice", "class": "stat-primary"},
                    {"key": "successful", "label": "Successful", "icon": "fa-check-circle", "class": "stat-success"},
                    {"key": "failed", "label": "Failed", "icon": "fa-times-circle", "class": "stat-error"},
                    {"key": "pending", "label": "Pending", "icon": "fa-clock", "class": "stat-warning"}
                ]
            },
            {
                "id": "success_rate",
                "type": "gauge",
                "title": "Success Rate",
                "dataSource": "/api/taxcore/stats/{org_id}",
                "calculate": "(successful / total_submissions) * 100",
                "unit": "%",
                "ranges": [
                    {"min": 0, "max": 70, "color": "error", "label": "Poor"},
                    {"min": 70, "max": 90, "color": "warning", "label": "Fair"},
                    {"min": 90, "max": 100, "color": "success", "label": "Excellent"}
                ]
            },
            {
                "id": "total_amount",
                "type": "metric",
                "title": "Total Amount Submitted",
                "dataSource": "/api/taxcore/stats/{org_id}",
                "key": "total_amount",
                "format": "currency",
                "currency": "USD",
                "trend": {"enabled": true, "period": "7d"}
            },
            {
                "id": "retry_queue",
                "type": "alert",
                "title": "Retry Queue",
                "dataSource": "/api/taxcore/queue-stats/{org_id}",
                "alerts": [
                    {"key": "queued_for_retry", "label": "Queued for Retry", "icon": "fa-hourglass", "severity": "warning"},
                    {"key": "max_retries_exceeded", "label": "Max Retries Exceeded", "icon": "fa-exclamation-triangle", "severity": "error"}
                ]
            },
            {
                "id": "recent_submissions",
                "type": "list",
                "title": "Recent Submissions",
                "dataSource": "/api/taxcore/submission-history/{org_id}?limit=10&sort=created_at:desc",
                "columns": [
                    {"key": "submission_id", "label": "ID", "type": "uuid", "truncate": 8},
                    {"key": "status", "label": "Status", "type": "badge"},
                    {"key": "invoice_number", "label": "Invoice #"},
                    {"key": "total_amount", "label": "Amount", "type": "currency"},
                    {"key": "created_at", "label": "Created", "type": "datetime", "format": "relative"}
                ]
            },
            {
                "id": "submission_trend",
                "type": "chart",
                "title": "Submission Trend (7 Days)",
                "chartType": "line",
                "dataSource": "/api/taxcore/submission-trend/{org_id}?days=7",
                "xAxis": "date",
                "yAxis": ["success", "failed"],
                "colors": ["#10b981", "#ef4444"]
            }
        ]
    }