v3.26.1
Goodwill, Service Contracts and Other Assets - Schedule of Service Contracts (Details) - USD ($)
$ in Thousands
12 Months Ended
May 31, 2026
May 31, 2025
Service contracts [Roll Forward]    
Balance at the end of the period $ 706,674  
Service contracts    
Service contracts [Roll Forward]    
Balance at the beginning of the period 309,828 $ 321,902
Service contracts acquired 34,050 45,749
Service contracts amortization (55,862) (57,689)
Foreign currency translation (147) (134)
Balance at the end of the period 287,869 309,828
Uniform Rental and Facility Services | Service contracts    
Service contracts [Roll Forward]    
Balance at the beginning of the period 273,847 290,498
Service contracts acquired 14,644 31,721
Service contracts amortization (48,028) (48,267)
Foreign currency translation (144) (105)
Balance at the end of the period 240,319 273,847
First Aid and Safety Services | Service contracts    
Service contracts [Roll Forward]    
Balance at the beginning of the period 14,138 16,203
Service contracts acquired 2,762 3,255
Service contracts amortization (2,828) (5,291)
Foreign currency translation (3) (29)
Balance at the end of the period 14,069 14,138
All Other | Service contracts    
Service contracts [Roll Forward]    
Balance at the beginning of the period 21,843 15,201
Service contracts acquired 16,644 10,773
Service contracts amortization (5,006) (4,131)
Foreign currency translation 0 0
Balance at the end of the period $ 33,481 $ 21,843