生意気 is a charge about position. The behaviour itself might be perfectly fine coming from someone else; what makes it 生意気 is that this particular person has not earned the right to it yet. That is why it is aimed downward — at children, juniors, new hires — and why calling your boss 生意気 does not even parse.
失礼 is a breach of manners; 生意気 is a breach of rank. 失礼 works in every direction and covers anything impolite, including your own small apologies — 失礼します. 生意気 only ever points down the hierarchy, and it is not something you can excuse yourself with.
偉そう is about the act, not the rank. It means acting important — the swagger, the lecturing tone — and you can be 偉そう at any age or level, including at the top. 生意気 needs the gap: it is 偉そう from someone who is not.
It is not always an insult. Said about a child or a favourite junior, with the right tone, 生意気 is close to affectionate — impressed, even. 生意気だけど面白い, cheeky but interesting. Said flat, about an adult, in a workplace, it is a real complaint about someone who does not know their place.