There was a time women were prohibited from wearing pants to work.....

Not sure where you work, but double check your companies policies in the area of diversity and, as mentioned, your right to appeal the decision. Then you can decide what you think is best.

Good luck.