You said "the military usually lets haircuts be as you like". I proved that to be false. Then you claim starfleet had no uniform and appearance standards. I pointed out that they do and we've seen them enforced several times. Seeing some one with adaptations to their starfleet uniform or hair style does not mean there are no regulations. Waivers were made for people like Scotti, Worf, Ro .. ect. So anyone we see in the background who appears to be out of uniform, obviously the character has had such issues wavered in regard to either their religion or cultural tradition. That is something that happens in today's military to an extent in non combat environments. The point is : You have no argument. Seeing someone who is slightly out of uniform does not mean that the orginaziton for which they wear the uniform is not military.