Late evening eating

So for context, I work 12 hour shifts, 7AM-7PM. I normally start my day with a protein drink. At 10:30 I take my first break and have the normal breakfast foods, then at 2:30 I take my lunch break and eat some leftovers from the previous day. I wait until I get home to have my supper which is normally around 7:30pm and I’m in bed by 10-10:30. Is eating at 7:30 too late in the day? I’ve been trying to lose weight but not having much luck and I’m wondering if it’s because I’m eating late in the evening and the food is basically sitting in my stomach not digesting properly. I thought I read before you shouldn’t be eating any meals after 6pm but again I don’t know. Any advice would help!