Instead of putting the page-break-inside:avoid;
on you table's tr, try applying it on the table directly like this:
table {
page-break-inside:avoid;
position:relative;
}
also add this media query:
@media print {
table {
page-break-inside:avoid;
position:relative;
}
}