XML 61 R49.htm IDEA: XBRL DOCUMENT v3.7.0.1
Inventories (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2017
Jun. 30, 2016
Jun. 30, 2017
Jun. 30, 2016
Dec. 31, 2016
Inventories          
Crude Oil $ 543,139   $ 543,139   $ 549,886
Other raw materials and unfinished products 342,991   342,991   287,561
Finished products 606,371   606,371   465,432
Lower of cost or market reserve (428,323)   (428,323)   (332,518)
Process chemicals 21,704   21,704   2,767
Repair and maintenance supplies and other 106,091   106,091   162,548
Inventories, total 1,191,973   1,191,973   $ 1,135,676
Lower of cost or market inventory valuation adjustment $ 83,982 $ (138,473) $ 95,805 $ (194,594)