XML 42 R31.htm IDEA: XBRL DOCUMENT v3.8.0.1
INVENTORIES (Details) - USD ($)
$ in Thousands
3 Months Ended
Mar. 31, 2018
Mar. 31, 2017
Dec. 31, 2017
Dec. 31, 2016
Inventory [Line Items]        
Crude oil and feedstocks $ 1,271,675   $ 1,073,093  
Refined products and blendstocks 1,420,262   1,342,294  
Warehouse stock and other 100,610   98,866  
Inventory, Gross 2,792,547   2,514,253  
Lower of cost or market adjustment (212,803) $ 612,027 (300,456) $ 595,988
Inventories 2,579,744   2,213,797  
Operating Income (Loss) (64,729) 31,761    
Net income (loss) 32,407 (65,540)    
Titled Inventory [Member]        
Inventory [Line Items]        
Crude oil and feedstocks 1,271,675   1,073,093  
Refined products and blendstocks 1,069,309   1,030,817  
Warehouse stock and other 100,610   98,866  
Inventory, Gross 2,441,594   2,202,776  
Lower of cost or market adjustment (149,406)   (232,652)  
Inventories 2,292,188   1,970,124  
Inventory Supply and Offtake Arrangements [Member]        
Inventory [Line Items]        
Crude oil and feedstocks 0   0  
Refined products and blendstocks 350,953   311,477  
Warehouse stock and other 0   0  
Inventory, Gross 350,953   311,477  
Lower of cost or market adjustment (63,397)   (67,804)  
Inventories 287,556   $ 243,673  
Scenario, Adjustment [Member]        
Inventory [Line Items]        
Operating Income (Loss) $ (87,653) $ (16,039)