Hi, I think the subreport may be worth a try and should work as I have done a similar report.
return the details in a separate report and add this as a subreport in the footer of the script group.
You can tick the keep together group option in the script group.