`.topline` also hurts a bit. i suggest you to do this:

    tr.topline td, tr.topline th { ... }

which allows you to just specify topline for the parent `<tr class="topline">` element and it applies to the `td` and `th` children.
Something silmiar can be done for `.rightline`, where the `tr td:nth-child(<number>)` selector will do the trick. (I'm not sure if it will work, though)