XML 156 R95.htm IDEA: XBRL DOCUMENT v3.8.0.1
Long-Term Obligations and Notes Payable Alon Energy Letter of Credit Facility (Details) - USD ($)
12 Months Ended
Dec. 31, 2017
Nov. 30, 2017
Nov. 29, 2017
Alon Energy Letter of Credit Facility      
Debt Instrument [Line Items]      
Issued letters of credit outstanding $ 6,500,000    
Letter of Credit      
Debt Instrument [Line Items]      
Line of credit facility, maximum borrowing capacity 125,800,000    
Letter of Credit | Alon Energy Letter of Credit Facility      
Debt Instrument [Line Items]      
Line of credit facility, maximum borrowing capacity   $ 45,000,000.0 $ 60,000,000.0
Pledged assets separately reported, securities pledged under letter of credit facilities, at fair value $ 100,000,000    
Unused capacity, commitment fee percentage 0.85%