Fair Value Measurements (Details) - USD ($)
$ in Thousands
1 Months Ended 3 Months Ended 12 Months Ended
Apr. 30, 2015
Jun. 30, 2016
Dec. 31, 2016
Dec. 31, 2015
Dec. 31, 2014
Summary of assets and liabilities measured at fair value on nonrecurring basis          
Offer to early settle outstanding note receivable     $ 0 $ 5,357 $ 0
Canadian Operations          
Summary of assets and liabilities measured at fair value on nonrecurring basis          
Offer to early settle outstanding note receivable $ 5,100        
Liability to exit use of corporate operating lease          
Summary of assets and liabilities measured at fair value on nonrecurring basis          
Incremental borrowing rate   3.00%      
Notes receivable          
Summary of assets and liabilities measured at fair value on nonrecurring basis          
Discount rate     5.00%    
Nonrecurring Basis | Notes receivable          
Summary of assets and liabilities measured at fair value on nonrecurring basis          
Settlement period     2 years 7 months 6 days    
Nonrecurring Basis | (Level 1)          
Summary of assets and liabilities measured at fair value on nonrecurring basis          
Impaired long-lived assets     $ 0 0  
Impaired assets—Discontinued operations     0 0  
Note receivable from the sale of a plant     0 0  
Liability to exit the use of a corporate operating lease—restructuring and other charges     0 0  
Long-term receivable from the sale of our Canadian Operations     0 0  
Nonrecurring Basis | (Level 2)          
Summary of assets and liabilities measured at fair value on nonrecurring basis          
Impaired long-lived assets     0 0  
Impaired assets—Discontinued operations     0 0  
Note receivable from the sale of a plant     0 0  
Liability to exit the use of a corporate operating lease—restructuring and other charges     0 0  
Long-term receivable from the sale of our Canadian Operations     0 0  
Nonrecurring Basis | (Level 3)          
Summary of assets and liabilities measured at fair value on nonrecurring basis          
Impaired long-lived assets     3,109 995  
Impaired assets—Discontinued operations     13,859 0  
Note receivable from the sale of a plant     7,037 0  
Liability to exit the use of a corporate operating lease—restructuring and other charges     3,580 0  
Long-term receivable from the sale of our Canadian Operations     $ 0 $ 5,100