Quarterly report pursuant to Section 13 or 15(d)

Debt - Additional Information (Details)

v3.21.4
Debt - Additional Information (Details)
$ in Thousands
3 Months Ended
Nov. 30, 2021
USD ($)
Nov. 30, 2020
USD ($)
Aug. 31, 2021
USD ($)
Aug. 31, 2020
USD ($)
Debt Instrument [Line Items]        
Borrowings on Revolving Credit $ 5,000 $ 10,000    
Outstanding letters of credit 11,600   $ 11,900  
Revolving Credit Facility        
Debt Instrument [Line Items]        
Line of Credit Facility, Maximum Borrowing Capacity 400,000     $ 300,000
Outstanding letters of credit 5,200      
Senior Credit Facility - Term Loan        
Debt Instrument [Line Items]        
Line of Credit Facility, Maximum Borrowing Capacity 200,000      
Senior Credit Facility - Revolver        
Debt Instrument [Line Items]        
Borrowings on Revolving Credit 175,000      
Line of Credit | Senior Credit Facility - Revolver        
Debt Instrument [Line Items]        
Unused credit line Available for Borrowing, Amount $ 219,800      
Minimum        
Debt Instrument [Line Items]        
Line of Credit Facility, Unused Capacity, Commitment Fee Percentage 0.15%      
Fixed Charge Coverage Ratio 3.5      
Minimum | London Interbank Offered Rate (LIBOR)        
Debt Instrument [Line Items]        
Debt Instrument, Basis Spread on Variable Rate 1.125%      
Minimum | Base Rate        
Debt Instrument [Line Items]        
Debt Instrument, Basis Spread on Variable Rate 1.00%      
Maximum        
Debt Instrument [Line Items]        
Line of Credit Facility, Unused Capacity, Commitment Fee Percentage 0.30%      
Leverage ratio 3.75      
Adjusted Leverage Ratio 4.25      
Maximum | London Interbank Offered Rate (LIBOR)        
Debt Instrument [Line Items]        
Debt Instrument, Basis Spread on Variable Rate 2.00%      
Maximum | Base Rate        
Debt Instrument [Line Items]        
Debt Instrument, Basis Spread on Variable Rate 0.125%      
Accordion [Domain]        
Debt Instrument [Line Items]        
Senior credit facility expansion option, available $ 300,000      
Incremental Term Loan [Domain]        
Debt Instrument [Line Items]        
Senior credit facility expansion option, available $ 200,000