XML 139 R112.htm IDEA: XBRL DOCUMENT v3.7.0.1
Related Party Transactions - Additional Information (Detail) - USD ($)
$ in Thousands
12 Months Ended
May 31, 2017
May 31, 2016
May 31, 2015
Related Party Transaction [Line Items]      
Net sales to affiliates $ 56,588 $ 32,496 $ 32,277
Purchases from affiliates 7,145 15,737 $ 8,021
Receivables from affiliates 4,616 5,152  
Payable to affiliates $ 76 $ 107