fixed order details table structure to follow thead > tbody > tfoot 

Fixed order details table structure to follow thead > tbody > tfoot instead of thead > tfoot > tbody. This can break some themes on Safari 6.