v3.20.2
Goodwill (Details)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2020
USD ($)
product
Jun. 30, 2019
USD ($)
Jun. 30, 2020
USD ($)
Jun. 30, 2019
USD ($)
Dec. 31, 2019
USD ($)
Goodwill [Line Items]          
Goodwill $ 0   $ 0   $ 40,969
Impairment of goodwill $ 40,969 $ 0 $ 40,969 $ 0  
Coffeyville Facility          
Goodwill [Line Items]          
Goodwill         $ 41,000
Number of primary products that experienced significant pricing declines | product 2