Convertible Notes - Debt issuance costs and interest expense (Details) - USD ($) $ in Thousands |
1 Months Ended | 12 Months Ended | ||
|---|---|---|---|---|
Oct. 31, 2018 |
Dec. 31, 2018 |
Dec. 31, 2017 |
Dec. 31, 2016 |
|
| Convertible Notes | ||||
| Debt issuance costs incurred | $ 695 | $ 0 | $ 124 | |
| Convertible Notes | ||||
| Convertible Notes | ||||
| Debt issuance costs incurred | $ 6,169 | |||
| Additional paid-in capital | 1,442 | |||
| Amortizaton of remaining financing costs | $ 4,727 | |||
| Interest expense related to the Convertible Notes | ||||
| Contractual interest expense | 2,677 | |||
| Amortization of debt issuance costs | 205 | |||
| Amortization of debt discount | 1,992 | |||
| Total | $ 4,874 | |||
| Effective interest rate of the liability component | 7.10% | |||
| Amortization and interest expense capitalized | $ 508 | |||
| Convertible Notes | interest and other expense, net | ||||
| Interest expense related to the Convertible Notes | ||||
| Amortization of debt issuance costs | $ 205 | |||
| X | ||||||||||
- Definition Amount of noncash expense included in interest expense to amortize debt discount and premium associated with the related debt instruments. Excludes amortization of financing costs. Alternate captions include noncash interest expense. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount of amortization expense attributable to debt issuance costs. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Effective interest rate for the funds borrowed under the debt agreement considering interest compounding and original issue discount or premium. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| 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. No definition available.
|
| X | ||||||||||
- Definition Amount of interest capitalized during the period. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount of the cost of borrowed funds accounted for as interest expense for debt. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition Represents the portion of interest incurred in the period on debt arrangements that was charged against earnings, excluding amortization of debt discount (premium) and financing costs. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition The cash outflow paid to third parties in connection with debt origination, which will be amortized over the remaining maturity period of the associated long-term debt. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount of amortization expense attributable to remaining of debt issuance costs. No definition available.
|
| X | ||||||||||
- Definition The amount of debt issuance costs were recorded as additional paid-in capital not subject to amortization. No definition available.
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|