What to say at visitation of a recently passed person

I’m attending a visitation for a close friend’s father who recently passed away. I want to offer my support but I’m unsure what to say without sounding too rehearsed or insensitive. It’s a delicate situation, and I really want to be there for my friend in the right way. What are some thoughtful things I can say at the visitation to express my condolences?

“Please accept my deepest condolences for your loss.” “(The deceased) was a great person, and I’ll miss them very much.” " (He/she) meant a lot to me and everyone else at (the workplace.) (He/she) contributed a lot to the company and our team, and (the deceased) will be missed."