XML 70 R52.htm IDEA: XBRL DOCUMENT v3.8.0.1
Fair Value Measurements (Estimated Fair Values Of Debt Instruments) (Details) - USD ($)
$ in Thousands
Dec. 31, 2017
Dec. 31, 2016
Debt Instrument [Line Items]    
Financial Instruments Assets   $ 444,707
Financial Instruments Liabilities   43,655
Carrying Value [Member]    
Debt Instrument [Line Items]    
Financial Instruments Assets $ 3,840  
Financial Instruments Liabilities 15,735  
Level 1    
Debt Instrument [Line Items]    
Financial Instruments Liabilities 3,360  
Level 2    
Debt Instrument [Line Items]    
Financial Instruments Assets 3,840 444,502
Financial Instruments Liabilities 12,375 38,921
Level 3    
Debt Instrument [Line Items]    
Financial Instruments Assets   205
Financial Instruments Liabilities   2,759
Marketable securities [Member]    
Debt Instrument [Line Items]    
Financial Instruments Assets   424,148
Marketable securities [Member] | Level 2    
Debt Instrument [Line Items]    
Financial Instruments Assets   424,148
Commodity Contract [Member]    
Debt Instrument [Line Items]    
Financial Instruments Assets   14,563
Financial Instruments Liabilities   26,845
Commodity Contract [Member] | Carrying Value [Member]    
Debt Instrument [Line Items]    
Financial Instruments Liabilities 2,424  
Commodity Contract [Member] | Level 2    
Debt Instrument [Line Items]    
Financial Instruments Assets   14,358
Financial Instruments Liabilities 2,424 24,086
Commodity Contract [Member] | Level 3    
Debt Instrument [Line Items]    
Financial Instruments Assets   205
Financial Instruments Liabilities   2,759
Currency Swap [Member]    
Debt Instrument [Line Items]    
Financial Instruments Liabilities   6,519
Forward Contracts [Member]    
Debt Instrument [Line Items]    
Financial Instruments Assets   5,905
Financial Instruments Liabilities   8,316
Forward Contracts [Member] | Carrying Value [Member]    
Debt Instrument [Line Items]    
Financial Instruments Assets 3,840  
Financial Instruments Liabilities 1,020 8,316
Forward Contracts [Member] | Level 2    
Debt Instrument [Line Items]    
Financial Instruments Assets 3,840 5,905
Financial Instruments Liabilities 1,020  
Interest rate swap | HEP    
Debt Instrument [Line Items]    
Financial Instruments Assets   91
Interest rate swap | Level 2 | HEP    
Debt Instrument [Line Items]    
Financial Instruments Assets   91
Foreign Currency Gain (Loss) [Member] | Level 2    
Debt Instrument [Line Items]    
Financial Instruments Liabilities   6,519
NYMEX futures contracts    
Debt Instrument [Line Items]    
Financial Instruments Liabilities 3,360 1,975
NYMEX futures contracts | Level 1    
Debt Instrument [Line Items]    
Financial Instruments Liabilities 3,360 1,975
NYMEX futures contracts | Level 2    
Debt Instrument [Line Items]    
Financial Instruments Liabilities 0 $ 0
Foreign Exchange Forward [Member] | Carrying Value [Member]    
Debt Instrument [Line Items]    
Financial Instruments Liabilities 8,931  
Foreign Exchange Forward [Member] | Level 2    
Debt Instrument [Line Items]    
Financial Instruments Liabilities $ 8,931