v3.25.2
Stock-Based Compensation Expense Included in Consolidated Statements of Income (Detail) - USD ($)
$ 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]      
Stock-based compensation expense, included in SG&A $ 27,042 $ 25,925 $ 28,723
Stock-based compensation expense, included in restructuring expense     (50)
Total stock-based compensation cost 27,042 25,925 28,673
Income tax (benefit) (3,685) (3,627) (4,234)
Total stock-based compensation cost, net of tax $ 23,357 $ 22,298 $ 24,439