Refactor styles

Made a useful one-time-use CSS style reusable for other cases.
Standardized table footer code and refactored it to be semantic instead of misleading.