XML 87 R71.htm IDEA: XBRL DOCUMENT v3.8.0.1
STOCK BASED COMPENSATION (Summary of Other Information Related to Stock-Based Compensation) (Details) - USD ($)
$ in Thousands
12 Months Ended
Aug. 31, 2017
Aug. 31, 2016
Aug. 31, 2015
STOCK BASED COMPENSATION [Abstract]      
Remaining unrecognized compensation cost (in thousands) $ 26,382 $ 32,380 $ 18,421
Weighted average period of time over which this cost will be recognized (years) 3 years 4 years 5 years
Excess tax benefit (deficiency) on stock-based compensation (in thousands) $ 165 $ 610 $ 1,206