v3.26.3
STOCKHOLDERS' EQUITY - Stock-Based Compensation - Additional Information (Details) - USD ($)
$ in Thousands
12 Months Ended
Jul. 31, 2026
Jul. 31, 2025
Jul. 31, 2024
Stock Based Compensation And Stockholders Equity [Line Items]      
Tax benefits related to total stock compensation expense $ 3,920 $ 5,685 $ 6,290
Total unrecognized compensation costs $ 27,949    
Period for recognition of compensation cost, not yet recognized (in years) 1 year 7 months 6 days    
Amended and Restated Equity and Incentive Plan      
Stock Based Compensation And Stockholders Equity [Line Items]      
Maximum number of shares issuable (in shares) 2,800,000    
Remaining shares available for grant (in shares) 2,798,771    
Performance Shares (PSUs) | Share-based Payment Arrangement, Tranche One      
Stock Based Compensation And Stockholders Equity [Line Items]      
Award vesting rights, minimum of target compensation (as percent) 50.00%    
Performance Shares (PSUs) | Share-based Payment Arrangement, Tranche Three      
Stock Based Compensation And Stockholders Equity [Line Items]      
Award vesting rights, minimum of target compensation (as percent) 150.00%    
Target share multiple 2    
Performance Shares (PSUs) | Minimum | Share-based Payment Arrangement, Tranche Two      
Stock Based Compensation And Stockholders Equity [Line Items]      
Award vesting rights, minimum of target compensation (as percent) 50.00%    
Performance Shares (PSUs) | Maximum | Share-based Payment Arrangement, Tranche Two      
Stock Based Compensation And Stockholders Equity [Line Items]      
Award vesting rights, minimum of target compensation (as percent) 150.00%    
Restricted Stock Units (RSUs) and Performance Stock Units (PSUs)      
Stock Based Compensation And Stockholders Equity [Line Items]      
Total stock-based expense recognized $ 26,578 30,872 37,901
Fair value of RSU and PSU shares $ 32,168 $ 39,514 $ 47,282