XML 57 R45.htm IDEA: XBRL DOCUMENT v3.7.0.1
Inventories (Details) - USD ($)
$ in Thousands
Jun. 30, 2017
Dec. 31, 2016
Inventory [Line Items]    
Crude oil and feedstocks $ 143,552 $ 61,302
Refined products and blendstock 142,677 116,593
Warehouse stock and other 20,973 20,431
Total 307,202 198,326
Reserves for the lower of cost or market value of inventory 8,600 200
Titled Inventory    
Inventory [Line Items]    
Crude oil and feedstocks 59,430 11,620
Refined products and blendstock 39,299 38,916
Warehouse stock and other 20,973 20,431
Total 119,702 70,967
Supply and Offtake Agreements    
Inventory [Line Items]    
Crude oil and feedstocks 84,122 49,682
Refined products and blendstock 103,378 77,677
Warehouse stock and other 0 0
Total $ 187,500 $ 127,359