Restructuring and Other Expense, Net - Schedule of Progression of Liabilities Associated with Restructuring Activities, Combined with Reconciliation to Restructuring and Other Expense, Net (Detail) - USD ($) $ in Thousands |
12 Months Ended | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Jun. 03, 2024 |
May 31, 2025 |
May 31, 2024 |
May 31, 2023 |
||||||||||||
Restructuring Cost and Reserve [Line Items] | |||||||||||||||
Beginning Balance | $ 188 | $ 135 | |||||||||||||
Expense (Income) | $ 3,228 | 825 | |||||||||||||
Restructuring Charges, Statement of Income or Comprehensive Income [Extensible Enumeration] | Restructuring and other expense, net | ||||||||||||||
Payments | $ (2,731) | (772) | |||||||||||||
Ending Balance | 685 | 188 | $ 135 | ||||||||||||
Net loss on sale of assets | 95 | 30,502 | [1] | ||||||||||||
Release of contingent liability for Level5 earnout | $ 7,139 | (2,000) | [2] | ||||||||||||
Stock-based compensation | 16,186 | 16,688 | 19,178 | ||||||||||||
Restructuring and other expense, net | 10,524 | 29,327 | [3] | (367) | |||||||||||
Ragasco [Member] | |||||||||||||||
Restructuring Cost and Reserve [Line Items] | |||||||||||||||
Change in fair value of Ragasco earnout | [4] | 4,536 | |||||||||||||
Former CEO | |||||||||||||||
Restructuring Cost and Reserve [Line Items] | |||||||||||||||
Stock-based compensation | [5] | 2,665 | |||||||||||||
Early Retirement And Severance | |||||||||||||||
Restructuring Cost and Reserve [Line Items] | |||||||||||||||
Beginning Balance | 188 | 135 | |||||||||||||
Expense (Income) | 1,993 | 714 | |||||||||||||
Payments | (1,596) | (661) | |||||||||||||
Ending Balance | 585 | 188 | $ 135 | ||||||||||||
Other Restructuring Charges | |||||||||||||||
Restructuring Cost and Reserve [Line Items] | |||||||||||||||
Expense (Income) | 1,235 | ||||||||||||||
Payments | (1,135) | ||||||||||||||
Ending Balance | $ 100 | ||||||||||||||
Facility Exit and Other Costs | |||||||||||||||
Restructuring Cost and Reserve [Line Items] | |||||||||||||||
Expense (Income) | 111 | ||||||||||||||
Payments | $ (111) | ||||||||||||||
|