XML 84 R60.htm IDEA: XBRL DOCUMENT v3.8.0.1
Acquisitions - Wyoming Refining Company Acquisition (Details) - USD ($)
1 Months Ended 3 Months Ended 12 Months Ended
Jul. 14, 2016
Jun. 30, 2016
Dec. 31, 2017
Sep. 30, 2017
Jun. 30, 2017
Mar. 31, 2017
Dec. 31, 2016
Sep. 30, 2016
Jun. 30, 2016
Mar. 31, 2016
Dec. 31, 2017
Dec. 31, 2016
Dec. 31, 2015
Apr. 01, 2015
Business Acquisition [Line Items]                            
Adjustment to goodwill                       $ (600,000)    
Goodwill     $ 107,187,000       $ 105,732,000       $ 107,187,000 105,732,000 $ 41,327,000  
Acquisition and integration expense                     395,000 5,294,000 2,006,000  
Revenues                     2,443,066,000 1,865,045,000 2,066,337,000  
Net loss     $ 19,005,000 $ 18,824,000 $ 7,006,000 $ 27,786,000 $ 13,687,000 $ (27,761,000) $ (13,088,000) $ (18,673,000) 72,621,000 (45,835,000) $ (39,911,000)  
Wyoming Refining Company                            
Business Acquisition [Line Items]                            
Payments to acquire businesses $ 209,400,000                          
Adjustment to WRC environmental liability (other non-current liabilities)         2,000,000                  
Adjustment to inventory         500,000                  
Adjustment to goodwill         $ 1,500,000           $ 1,455,000      
Goodwill 66,449,000                          
Acquisition and integration expense                       700,000    
Revenues                       174,600,000    
Net loss                       $ 700,000    
Other Long Term Assets | Wyoming Refining Company                            
Business Acquisition [Line Items]                            
Deposit to acquire businesses   $ 5,000,000                        
5% Convertible Senior Notes due 2021                            
Business Acquisition [Line Items]                            
Debt instrument, interest rate   5.00% 5.00%           5.00%   5.00%      
Convertible Debt | Convertible Subordinated Bridge Notes                            
Business Acquisition [Line Items]                            
Debt instrument, interest rate     2.50%               2.50%      
Convertible Debt | 5% Convertible Senior Notes due 2021                            
Business Acquisition [Line Items]                            
Debt instrument, interest rate     5.00%       0.50%       5.00% 0.50%    
Debt instrument, face amount   $ 115,000,000             $ 115,000,000          
Secured Debt | Wyoming Refining Company                            
Business Acquisition [Line Items]                            
Wyoming Refining Senior Secured Debt (58,036,000)                          
Refining                            
Business Acquisition [Line Items]                            
Goodwill                           $ 13,500,000
Refining | Wyoming Refining Company                            
Business Acquisition [Line Items]                            
Goodwill 39,800,000                          
Logistics                            
Business Acquisition [Line Items]                            
Goodwill                           $ 10,800,000
Logistics | Wyoming Refining Company                            
Business Acquisition [Line Items]                            
Goodwill 26,600,000                          
Revolving Credit Facility | Wyoming Refining Senior Secured Revolver | Wyoming Refining Company                            
Business Acquisition [Line Items]                            
Wyoming Refining Senior Secured Debt (10,100,000)                          
Secured Debt | Wyoming Refining Company                            
Business Acquisition [Line Items]                            
Debt instrument, face amount $ 65,000,000