Looking at that, one issue is that border-style is what you need and that is not well supported in ePub2 (hidden and none work, everything else will display as solid). Since Apple is ePub3, most of the border-style properties should work. A quick and dirty fix might be to use Sigil's
Epub3-itizer plugin to convert your ePub to ePub3.