Format details table with better alignment