v3.26.1
Acquisitions - Schedule of Businesses by Reportable Operating Segment and All Other (Details) - Business Combination, Series of Individually Immaterial Business Combinations - business
12 Months Ended
May 31, 2026
May 31, 2025
Uniform rental and facility services    
Business Combination [Line Items]    
Number of businesses acquired 5 7
First Aid and Safety Services    
Business Combination [Line Items]    
Number of businesses acquired 4 4
All Other    
Business Combination [Line Items]    
Number of businesses acquired 21 17