XML 155 R128.htm IDEA: XBRL DOCUMENT v3.23.2
Related Party Transactions - Additional Information (Detail) - USD ($)
$ in Thousands
12 Months Ended
May 31, 2023
May 31, 2022
May 31, 2021
Related Party Transactions [Abstract]      
Net sales to affiliates $ 35,836 $ 82,516 $ 41,426
Purchases from affiliates 2,530 12,389 $ 5,000
Accounts payable to affiliates 7 12  
Accounts receivable from affiliates $ 3,642 $ 3,551