The job of a manager can be thankless, invisible, and sometimes mercilessly ridiculed: think Michael Scott as a blundering boss on The Office or the smug supervisor in the movie Office Space.