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

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | srt_ValuationAndQualifyingAccountsDisclosureLineItems
Namespace Prefix: | srt_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of valuation and qualifying accounts and reserves. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 4 -Subparagraph (SX 210.12-09) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e24092-122690 + Details
Name: | us-gaap_ValuationAllowancesAndReservesBalance
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of increase in valuation and qualifying accounts and reserves from charge to cost and expense. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 4 -Subparagraph (SX 210.12-09) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e24092-122690 + Details
Name: | us-gaap_ValuationAllowancesAndReservesChargedToCostAndExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of decrease in valuation and qualifying accounts and reserves. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 4 -Subparagraph (SX 210.12-09) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e24092-122690 + Details
Name: | us-gaap_ValuationAllowancesAndReservesDeductions
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_ValuationAllowancesAndReservesTypeAxis=us-gaap_ValuationAllowanceOfDeferredTaxAssetsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ValuationAllowancesAndReservesTypeAxis=us-gaap_InventoryValuationReserveMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ValuationAllowancesAndReservesTypeAxis=us-gaap_AllowanceForCreditLossMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |