XML 109 R89.htm IDEA: XBRL DOCUMENT v3.8.0.1
Fair value measurements (Percentages of Total Commodity Sales Excluding Effects of Hedging Activities (Details) - Customer Concentration Risk - Commodity Sales
12 Months Ended
Dec. 31, 2017
Dec. 31, 2016
Dec. 31, 2015
Valero Energy Corporation      
Concentration Risk [Line Items]      
Percentage of sales to significant purchaser 13.30%    
Valero Energy Corporation | Predecessor      
Concentration Risk [Line Items]      
Percentage of sales to significant purchaser   15.60% 20.70%
Coffeyville Resources LLC      
Concentration Risk [Line Items]      
Percentage of sales to significant purchaser 20.90%    
Coffeyville Resources LLC | Predecessor      
Concentration Risk [Line Items]      
Percentage of sales to significant purchaser   19.30% 14.50%
Phillips 66 Company      
Concentration Risk [Line Items]      
Percentage of sales to significant purchaser 14.60%    
Phillips 66 Company | Predecessor      
Concentration Risk [Line Items]      
Percentage of sales to significant purchaser   15.10% 11.80%