v3.26.1
Goodwill, Service Contracts and Other Assets - Schedule of Goodwill (Details) - USD ($)
$ in Thousands
12 Months Ended
May 31, 2026
May 31, 2025
Goodwill [Roll Forward]    
Balance at the beginning of the period $ 3,400,227 $ 3,212,424
Goodwill acquired 144,918 189,511
Foreign currency translation (933) (1,708)
Balance at the end of the period 3,544,212 3,400,227
Uniform Rental and Facility Services    
Goodwill [Roll Forward]    
Balance at the beginning of the period 2,913,991 2,773,565
Goodwill acquired 51,569 141,959
Foreign currency translation (850) (1,533)
Balance at the end of the period 2,964,710 2,913,991
First Aid and Safety Services    
Goodwill [Roll Forward]    
Balance at the beginning of the period 298,145 293,747
Goodwill acquired 5,394 4,566
Foreign currency translation (83) (168)
Balance at the end of the period 303,456 298,145
All Other    
Goodwill [Roll Forward]    
Balance at the beginning of the period 188,091 145,112
Goodwill acquired 87,955 42,986
Foreign currency translation 0 (7)
Balance at the end of the period $ 276,046 $ 188,091