v3.20.4
Summary of Significant Accounting Policies - Property, Plant and Equipment, net and Impairment of Long-Lived Assets (Details)
3 Months Ended 12 Months Ended
Jun. 30, 2020
USD ($)
product
Dec. 31, 2020
USD ($)
Dec. 31, 2019
USD ($)
Dec. 31, 2018
USD ($)
Property, Plant, and Equipment        
Gross property, plant and equipment   $ 1,450,892,000 $ 1,433,588,000  
Less: Accumulated depreciation   553,045,000 481,629,000  
Total Property, plant and equipment, net   897,847,000 951,959,000  
Goodwill [Line Items]        
Goodwill   0 40,969,000  
Goodwill impairment $ 41,000,000.0 40,969,000 0 $ 0
Approximate percentage by which fair value of Coffeyville reporting unit exceeded carrying value       36.00%
Coffeyville Facility        
Goodwill [Line Items]        
Goodwill     41,000,000.0  
Number of primary products that experienced significant pricing declines | product 2      
Machinery and equipment        
Property, Plant, and Equipment        
Gross property, plant and equipment   $ 1,388,735,000 1,378,651,000  
Machinery and equipment | Minimum        
Property, Plant, and Equipment        
Useful life (in years)   2 years    
Machinery and equipment | Maximum        
Property, Plant, and Equipment        
Useful life (in years)   30 years    
Buildings and improvements        
Property, Plant, and Equipment        
Gross property, plant and equipment   $ 17,598,000 17,221,000  
Buildings and improvements | Minimum        
Property, Plant, and Equipment        
Useful life (in years)   3 years    
Buildings and improvements | Maximum        
Property, Plant, and Equipment        
Useful life (in years)   30 years    
Automotive equipment        
Property, Plant, and Equipment        
Gross property, plant and equipment   $ 16,608,000 16,691,000  
Automotive equipment | Minimum        
Property, Plant, and Equipment        
Useful life (in years)   5 years    
Automotive equipment | Maximum        
Property, Plant, and Equipment        
Useful life (in years)   30 years    
Land and improvements        
Property, Plant, and Equipment        
Gross property, plant and equipment   $ 14,132,000 14,075,000  
Land and improvements | Minimum        
Property, Plant, and Equipment        
Useful life (in years)   10 years    
Land and improvements | Maximum        
Property, Plant, and Equipment        
Useful life (in years)   30 years    
Construction in progress        
Property, Plant, and Equipment        
Gross property, plant and equipment   $ 12,098,000 5,198,000  
Other        
Property, Plant, and Equipment        
Gross property, plant and equipment   $ 1,721,000 $ 1,752,000  
Other | Minimum        
Property, Plant, and Equipment        
Useful life (in years)   3 years    
Other | Maximum        
Property, Plant, and Equipment        
Useful life (in years)   10 years