XML 49 R37.htm IDEA: XBRL DOCUMENT v3.8.0.1
Summary of Securities in Unrealized Loss Position and Included in Accumulated Other Comprehensive (Loss), Aggregated by Length of Time Investments (Detail) - USD ($)
$ in Thousands
Aug. 31, 2017
May 31, 2017
Investments Debt And Equity Securities [Abstract]    
Total investments with unrealized losses, fair value $ 44,094 $ 59,987
Unrealized losses with a loss position for less than 12 months, fair value 9,808 40,854
Unrealized losses with a loss position for more than 12 months, fair value 34,286 19,133
Total investments with unrealized losses, gross unrealized losses (3,381) (3,505)
Unrealized losses with a loss position for less than 12 months, gross unrealized losses (208) (2,983)
Unrealized losses with a loss position for more than 12 months, gross unrealized losses $ (3,173) $ (522)