Annual report pursuant to Section 13 and 15(d)

Basis of Presentation and Certain Significant Accounting Policies (Details)

v3.6.0.2
Basis of Presentation and Certain Significant Accounting Policies (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2016
Dec. 31, 2015
Site Contingency, Time Frame of Disbursements 15 years  
Minimum    
Refinery Turnaround Costs, Amortization Period 3 years  
Finite-Lived Intangible Asset, Useful Life 1 year  
Maximum    
Refinery Turnaround Costs, Amortization Period 5 years  
Finite-Lived Intangible Asset, Useful Life 40 years  
Refining facilities | Minimum    
Property, Plant and Equipment, Useful Life 3 years  
Refining facilities | Maximum    
Property, Plant and Equipment, Useful Life 20 years  
Pipelines and terminals | Minimum    
Property, Plant and Equipment, Useful Life 5 years  
Pipelines and terminals | Maximum    
Property, Plant and Equipment, Useful Life 25 years  
Retail | Minimum    
Property, Plant and Equipment, Useful Life 5 years  
Retail | Maximum    
Property, Plant and Equipment, Useful Life 40 years  
Other | Minimum    
Property, Plant and Equipment, Useful Life 3 years  
Other | Maximum    
Property, Plant and Equipment, Useful Life 15 years  
Cost of Sales    
Gain on Business Interruption Insurance Recovery   $ 10,868