XML 63 R49.htm IDEA: XBRL DOCUMENT v3.8.0.1
Inventories (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2017
Sep. 30, 2016
Sep. 30, 2017
Sep. 30, 2016
Dec. 31, 2016
Inventories          
Crude Oil $ 544,837   $ 544,837   $ 549,886
Other raw materials and unfinished products 363,483   363,483   287,561
Finished products 670,120   670,120   465,432
Lower of cost or market reserve (317,195)   (317,195)   (332,518)
Process chemicals 26,173   26,173   2,767
Repair and maintenance supplies and other 132,424   132,424   162,548
Inventories, total 1,419,842   1,419,842   $ 1,135,676
Lower of cost or market inventory valuation adjustment $ (111,128) $ 312 $ (15,323) $ (194,282)