Quarterly report pursuant to Section 13 or 15(d)

Debt - Additional Information (Details)

v3.22.2
Debt - Additional Information (Details)
$ in Thousands
3 Months Ended 9 Months Ended
May 31, 2022
USD ($)
May 31, 2022
USD ($)
May 31, 2021
USD ($)
Aug. 31, 2021
USD ($)
Feb. 28, 2021
USD ($)
Debt Instrument [Line Items]          
Borrowings on Revolving Credit   $ 45,000 $ 10,000    
Outstanding letters of credit $ 10,800 10,800   $ 11,900  
Revolving Credit Facility          
Debt Instrument [Line Items]          
Line of Credit Facility, Maximum Borrowing Capacity 400,000 400,000     $ 300,000
Outstanding letters of credit 5,200 5,200      
Senior Credit Facility - Term Loan          
Debt Instrument [Line Items]          
Line of Credit Facility, Maximum Borrowing Capacity 200,000 200,000      
Senior Credit Facility - Revolver          
Debt Instrument [Line Items]          
Borrowings on Revolving Credit   205,000      
Line of Credit | Senior Credit Facility - Revolver          
Debt Instrument [Line Items]          
Unused credit line Available for Borrowing, Amount $ 189,800 $ 189,800      
Minimum          
Debt Instrument [Line Items]          
Line of Credit Facility, Unused Capacity, Commitment Fee Percentage 0.15%        
Fixed Charge Coverage Ratio 3.5 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 3.75      
Adjusted Leverage Ratio 4.25 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 $ 300,000      
Incremental Term Loan [Domain]          
Debt Instrument [Line Items]          
Senior credit facility expansion option, available $ 200,000 $ 200,000