Companies were judged based on confidential surveys of employees and management reports compiled by Best Companies Group.