If you are trying to add a ‘total’ or a report footer and its getting split over the penultimate and final page, then just add this css to the element class:
page-break-inside: avoid;
Works a treat for me – I think its only for the @print containers but it successfully keeps my DIV in one piece on the last page, or if it won’t fit, on another page.