<div style="max-width:640px;margin:24px auto;padding:24px;border:1px solid #ddd;border-radius:6px;background:#fff;font-family:Arial,sans-serif;">
    <h1 style="color:#c0392b;font-size:1.4rem;margin-top:0;">Report could not be generated</h1>
    <p style="color:#333;line-height:1.6;">
        A technical error occurred while running this report. This is often caused by a very large date range or heavy billing data on the server.
    </p>
    <p style="color:#333;line-height:1.6;"><strong>What you can do:</strong></p>
    <ul style="color:#333;line-height:1.6;">
        <li>Try a smaller date range</li>
        <li>Wait a few minutes and run the report again</li>
        <li>Contact support if the problem continues</li>
    </ul>
    <p><a href="javascript:history.back();">Go back</a></p>
    <cftry>
        <cflog file="report_errors" type="error" text="Report error in #CGI.SCRIPT_NAME#: #cfcatch.message#">
        <cfif isDefined("request.send_errors_to")>
            <cfmail to="#request.send_errors_to#" from="error@myhomecarebiz.com" subject="#Application.ServerName# Report Error: #CGI.SCRIPT_NAME#" type="html">
                <p><b>Report failed:</b> #CGI.SCRIPT_NAME#</p>
                <p><b>Message:</b> #cfcatch.message#</p>
                <p><b>Detail:</b> #cfcatch.detail#</p>
            </cfmail>
        </cfif>
        <cfcatch></cfcatch>
    </cftry>
</div>
