v3.26.1
Long-Term Debt - Narrative (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Apr. 30, 2026
Apr. 30, 2025
Apr. 30, 2026
Apr. 30, 2025
Jul. 31, 2025
Oct. 14, 2021
Line of Credit Facility [Line Items]            
Total long-term debt $ 882,639   $ 882,639   $ 933,812  
Interest expense 10,798 $ 14,020 34,425 $ 47,057    
Amortization of debt issuance costs 721 $ 1,320 3,113 $ 4,847    
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 998,000   998,000      
Term loan            
Line of Credit Facility [Line Items]            
Line of credit, outstanding amount 359,138   359,138   408,159  
Debt, fair value 361,456   361,456   410,124  
Term loan | US Tranche            
Line of Credit Facility [Line Items]            
Total long-term debt $ 50,000   $ 50,000      
Stated interest rate (as percent) 5.90%   5.90%      
Term loan | Euro Tranche            
Line of Credit Facility [Line Items]            
Stated interest rate (as percent) 4.76%   4.76%      
Line of credit, outstanding amount $ 309,138   $ 309,138      
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 $ 472,500   $ 472,500   $ 469,100