v3.25.1
Long-Term Debt - Narrative (Details) - USD ($)
$ in Thousands
1 Months Ended 3 Months Ended 9 Months Ended
Jun. 04, 2025
Apr. 30, 2025
Apr. 30, 2024
Apr. 30, 2025
Apr. 30, 2024
Jul. 31, 2024
Oct. 14, 2021
Line of Credit Facility [Line Items]              
Total long-term debt   $ 1,029,223   $ 1,029,223   $ 1,151,279  
Interest expense   14,020 $ 24,366 47,057 $ 78,113    
Amortization of debt issuance costs   1,320 $ 3,036 4,847 $ 14,900    
Asset-based credit facility              
Line of Credit Facility [Line Items]              
Line of credit, maximum borrowing capacity   1,000,000   1,000,000      
Line of credit, outstanding amount   0   0   0  
Unused availability under agreement   985,000   985,000      
Term loan              
Line of Credit Facility [Line Items]              
Line of credit, outstanding amount   500,938   500,938   594,361  
Debt, fair value   500,136   500,136   597,334  
Term loan | Subsequent Event              
Line of Credit Facility [Line Items]              
Repayments of long-term debt $ 55,000            
Term loan | US Tranche              
Line of Credit Facility [Line Items]              
Total long-term debt   $ 155,000   $ 155,000      
Stated interest rate (as percent)   6.572%   6.572%      
Term loan | Euro Tranche              
Line of Credit Facility [Line Items]              
Stated interest rate (as percent)   4.901%   4.901%      
Line of credit, outstanding amount   $ 345,938   $ 345,938      
Unsecured Debt | Senior unsecured notes              
Line of Credit Facility [Line Items]              
Total long-term debt   500,000   500,000   500,000  
Stated interest rate (as percent)             4.00%
Debt aggregate principal amount             $ 500,000
Debt, fair value   $ 450,650   $ 450,650   $ 450,450