v3.25.2
Equity Compensation Plans and Other Incentive Compensation - Additional Information (Detail) - USD ($)
$ / shares in Units, $ in Thousands
12 Months Ended
May 31, 2025
May 31, 2024
May 31, 2023
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]      
Number of shares available for grant 13,817,754 16,778,458 2,871,000
Options Exercisable, Weighted Average Exercise Price $ 19.63 $ 26.11 $ 31.54
Compensation expense related to share based awards $ 17,291 $ 13,768 $ 10,177
Remaining compensation cost to be expensed in future periods for non-vested options $ 13,488    
Weighted average expense recognition period 1 year 9 months 18 days    
Weighted average grant date fair value $ 15.49 $ 15.55 $ 13.83
Number of shares purchased by employees 157,648 134,810 94,604
Defined contribution 401(K) benefit expense $ 3,726 $ 3,368 $ 2,439
Accrued Bonus $ 1,828 8,056  
First 3% employees deferred amount      
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]      
Defined contribution plan employer matching contribution 100.00%    
Next 2% employees deferred amount      
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]      
Defined contribution plan employer matching contribution 50.00%    
Restricted Stock Units (RSUs)      
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]      
Weighted average expense recognition period 1 year 9 months 18 days    
Restricted stock units vested- fair value $ 5,208 $ 3,835 $ 820
Share-based Payment Arrangement, Nonvested Award, Excluding Option, Cost Not yet Recognized, Amount $ 11,187    
Employee Stock Purchase Plan | 2011 Employee Stock Purchase Plan      
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]      
Number of shares available for grant 588,865    
Number of shares authorized for grant 1,000,000    
Annual maximum limit percentage of compensation to purchase shares 5.00%    
Employee stock purchase plan stock price percentage 10.00%    
Minimum      
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]      
Stock option vesting period 3 years    
Stock option contractual terms 5 years    
Minimum | 2018 Omnibus Incentive Plan | Restricted Stock Units (RSUs)      
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]      
Stock option vesting period 3 years    
Average      
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]      
Stock option contractual terms 7 years    
Maximum      
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]      
Stock option vesting period 5 years    
Stock option contractual terms 10 years    
Maximum | 2018 Omnibus Incentive Plan | Restricted Stock Units (RSUs)      
Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]      
Stock option vesting period 5 years