v3.19.1
SCHEDULE II - VALUATION AND QUALIFYING ACCOUNTS (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2018
Dec. 31, 2016
SEC Schedule, 12-09, Valuation and Qualifying Accounts Disclosure [Line Items]    
Valuation allowance, at beginning of year $ 226,754 $ 305,063
Charged to costs and expenses 115 24,870
Deductions (6,284) (407)
Valuation allowance, at end of year 220,585 329,526
SEC Schedule, 12-09, Valuation Allowance, Deferred Tax Asset [Member]    
SEC Schedule, 12-09, Valuation and Qualifying Accounts Disclosure [Line Items]    
Valuation allowance, at beginning of year 221,707 301,896
Charged to costs and expenses 0 24,521
Deductions (3,330) 0
Valuation allowance, at end of year 218,377 326,417
SEC Schedule, 12-09, Reserve, Inventory [Member]    
SEC Schedule, 12-09, Valuation and Qualifying Accounts Disclosure [Line Items]    
Valuation allowance, at beginning of year 4,182 2,760
Charged to costs and expenses 15 349
Deductions (2,454) 0
Valuation allowance, at end of year 1,743 3,109
SEC Schedule, 12-09, Allowance, Credit Loss [Member]    
SEC Schedule, 12-09, Valuation and Qualifying Accounts Disclosure [Line Items]    
Valuation allowance, at beginning of year 865 407
Charged to costs and expenses 100 0
Deductions (500) (407)
Valuation allowance, at end of year $ 465 $ 0