Summary of Significant Accounting Policies - Recent Accounting Pronouncements (Details) - USD ($)
$ in Thousands
12 Months Ended
Jan. 01, 2018
Dec. 31, 2018
Dec. 31, 2017
Dec. 31, 2016
Summary of Significant Accounting Policies        
Sale/leaseback revenue and gross profit $ 16,400      
Decrease of depreciation expenses 300 $ 11,014 $ 9,190 $ 4,650
Decrease in accrued expenses   7,864 10,595  
Recognition of finance obligation   (70,915)    
Decrease in prepaid expenses and other assets   (4,654) 2,157 $ (2,386)
Decrease in leased property, net of accumulated depreciation   (146,751) (87,065)  
Increase in accumulated deficit   (1,260,290) $ (1,178,636)  
ASU 2016-02 | Restatement adjustment        
Summary of Significant Accounting Policies        
Decrease in leased property, net of accumulated depreciation   $ (1,500)    
ASU 2016-02 | Early adoption | Restatement adjustment        
Summary of Significant Accounting Policies        
Recognition of right of use asset 34,416      
Decrease in accrued expenses 385      
Recognition of finance obligation (34,161)      
Decrease in prepaid expenses and other assets (3,229)      
Decrease in leased property, net of accumulated depreciation (563)      
Increase in accumulated deficit $ 3,487