v3.25.2
Debt - Schedule of Debt (Details) - USD ($)
May 31, 2025
Aug. 31, 2024
Debt Instrument [Line Items]    
Finance lease liabilities $ 7,319,000 $ 9,042,000
Other debt obligations 12,094,000 12,116,000
Total debt 454,413,000 414,770,000
Less current maturities (5,403,000) (5,688,000)
Debt, net of current maturities 449,010,000 409,082,000
Secured Revolving Credit Facility | Bank of America NA And Other Lenders    
Debt Instrument [Line Items]    
Bank revolving credit facilities, interest primarily at SOFR or LIBOR plus a spread 435,000,000 394,000,000
Line of Credit | Secured Revolving Credit Facility | Bank of America NA And Other Lenders    
Debt Instrument [Line Items]    
Bank revolving credit facilities, interest primarily at SOFR or LIBOR plus a spread $ 435,000,000 $ 393,612,000