v3.26.1
Debt, Derivatives and Hedging Activities - Narrative (Details) - USD ($)
12 Months Ended
May 01, 2025
Apr. 15, 2025
May 31, 2026
May 31, 2025
May 31, 2024
Mar. 27, 2026
May 02, 2025
Debt Instrument [Line Items]              
Average interest rate     4.10%        
Debt carrying value     $ 2,436,600,000 $ 2,436,600,000      
Debt fair value     2,425,200,000 2,404,700,000      
Letters of credit outstanding, amount     125,800,000 129,600,000      
Long-term Debt, Fiscal Year Maturity [Abstract]              
Maturities of long term debt, year one     1,000,000,000        
Maturities of long term debt, year two     400,000,000.0        
Maturities of long term debt, year three     0.0        
Maturities of long term debt, year four     0.0        
Maturities of long term debt, year five     0.0        
Interest paid     106,200,000 101,600,000 $ 100,800,000    
Amortization of debt issuance costs     4,800,000 3,500,000 3,600,000    
Notional amount     500,000,000.0 500,000,000.0      
Commercial paper              
Long-term Debt, Fiscal Year Maturity [Abstract]              
Debt due within one year     0 0      
Other comprehensive Income              
Long-term Debt, Fiscal Year Maturity [Abstract]              
Amortization of interest rate lock agreements - decrease to other comprehensive income     6,100,000 6,100,000 $ 6,000,000.0    
Revolving Credit Facility              
Long-term Debt, Fiscal Year Maturity [Abstract]              
Revolving credit facility, maximum borrowing capacity with accordion feature           $ 2,000,000,000.0  
Borrowings on revolving credit facility     $ 0 0      
Commercial paper | Revolving Credit Facility              
Long-term Debt, Fiscal Year Maturity [Abstract]              
Line of credit facility, accordion feature, increase limit (up to)           1,000,000,000.0  
Commercial paper | Letter of Credit              
Long-term Debt, Fiscal Year Maturity [Abstract]              
Revolving credit facility, maximum borrowing capacity with accordion feature           300,000,000.0  
Commercial paper | Bridge Loan              
Long-term Debt, Fiscal Year Maturity [Abstract]              
Revolving credit facility, maximum borrowing capacity with accordion feature           $ 150,000,000.0  
Senior Notes 3.11%, 2025 Maturity | Senior Notes              
Debt Instrument [Line Items]              
Repayment of debt   $ 50,000,000.0          
Interest rate   3.11%          
Debt term   10 years          
Senior Notes, 3.45%, 2025 Maturity | Senior Notes              
Debt Instrument [Line Items]              
Repayment of debt $ 400,000,000.0            
Interest rate 3.45%            
Debt term 3 years            
Senior Notes, 4.20%, 2028 Maturity | Senior Notes              
Debt Instrument [Line Items]              
Interest rate     4.20%       4.20%
Aggregate principal amount     $ 400,000,000 $ 400,000,000     $ 400,000,000.0
Bridge Loan Merger | Bridge Loan | UniFirst Corporation              
Long-term Debt, Fiscal Year Maturity [Abstract]              
Pre-paid fees     $ 5,200,000