XML 69 R55.htm IDEA: XBRL DOCUMENT v3.7.0.1
Fair Value Measurements - Fair Value Reconciliation Liabilities Using Significant Unobservable Inputs (Level 3) (Details) - NCRA [Member] - Crack Spread Contingent Payment [Member] - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
May 31, 2017
May 31, 2016
May 31, 2017
May 31, 2016
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward]        
Beginning Balance $ 2,172 $ 24,155 $ 15,051 $ 75,982
Ending Balance 1,778 24,661 1,778 24,661
Cost of Goods, Total        
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward]        
Total (gains) losses included in cost of goods sold $ (394) $ 506 $ (13,273) $ (51,321)