Create a style with borders on it then apply that style to your fields; you'll save yourself a whole lot of unnecessary pain. Also, set the "split type" on your footer to stretch if you want to connect it to the foot of your repeating detail sections.