XML 55 R44.htm IDEA: XBRL DOCUMENT v3.8.0.1
Inventories (Details) - USD ($)
$ in Thousands
Sep. 30, 2017
Dec. 31, 2016
Inventory [Line Items]    
Crude oil and feedstocks $ 135,579 $ 61,302
Refined products and blendstock 162,956 116,593
Warehouse stock and other 21,329 20,431
Total 319,864 198,326
Reserves for the lower of cost or market value of inventory 0 200
Titled Inventory    
Inventory [Line Items]    
Crude oil and feedstocks 64,208 11,620
Refined products and blendstock 52,734 38,916
Warehouse stock and other 21,329 20,431
Total 138,271 70,967
Supply and Offtake Agreements    
Inventory [Line Items]    
Crude oil and feedstocks 71,371 49,682
Refined products and blendstock 110,222 77,677
Warehouse stock and other 0 0
Total $ 181,593 $ 127,359