Updated flexbox styling for detail view