XML 54 R42.htm IDEA: XBRL DOCUMENT v3.7.0.1
Acquisitions - Fair Value of Assets Acquired and Liabilities Assumed (Details) - USD ($)
$ in Thousands
Jun. 30, 2017
Dec. 31, 2016
Jul. 14, 2016
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Property, Plant, and Equipment [Abstract]      
Goodwill $ 107,187 $ 105,732  
Wyoming Refining Company      
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Property, Plant, and Equipment [Abstract]      
Cash     $ 183
Accounts receivable     16,880
Inventories     28,402
Prepaid and other assets     1,304
Property, plant and equipment     254,367
Goodwill     66,449
Accounts payable and other current liabilities     (57,861)
Other non-current liabilities     (32,222)
Total     209,366
Wyoming Refining Company | Refining      
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Property, Plant, and Equipment [Abstract]      
Goodwill     39,800
Wyoming Refining Company | Logistics      
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Property, Plant, and Equipment [Abstract]      
Goodwill     26,600
Wyoming Refining Company | Revolving Credit Facility | Wyoming Refining Senior Secured Revolver      
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Property, Plant, and Equipment [Abstract]      
Long-term debt     (10,100)
Wyoming Refining Company | Secured Debt | Wyoming Refining Senior Secured Term Loan      
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Property, Plant, and Equipment [Abstract]      
Long-term debt     $ (58,036)