Condensed Consolidated Statements of Convertible Preferred Stock and Stockholders' Deficit (Unaudited) - USD ($) $ in Thousands | Total | Common Stock [Member] | Additional Paid-in Capital [Member] | Accumulated Other Comprehensive Income (Loss) [Member] | Non-controlling Interest [Member] | Accumulated Deficit [Member] | Series C-1 Convertible Preferred Stock [Member] | Series A-1 convertible preferred stock [Member] |
Stockholders' Equity, Beginning Balance at Dec. 31, 2018 | $ (174,545) | $ 1,200 | $ 1,005,183 | $ (1,539) | $ (2,078) | $ (1,177,311) | | $ 0 |
Temporary Equity, shares at Dec. 31, 2018 | | | | | | | 18,000 | |
Temporary Equity, Beginning Balance at Dec. 31, 2018 | | | | | | | $ 39,879 | |
Balance, shares at Dec. 31, 2018 | | 119,996,000 | | | | | | 32,000 |
Net income (loss) | 17,435 | | | | (1,071) | 18,506 | | |
Other comprehensive income | (682) | | | (682) | | | | |
Adoption of ASC | ASC 842 [Member] | (25) | | | | | (25) | | |
Share-based compensation | 1,843 | | 1,843 | | | | | |
Shares sold under Stock Purchase Agreement, values | 30,000 | $ 111 | 29,889 | | | | | |
Shares sold under Stock Purchase Agreement, shares | | 11,111,000 | | | | | | |
Conversion of Series C-1 convertible preferred stock | 6,481 | $ 30 | 6,451 | | | | $ (6,481) | |
Conversion of Series C-1 convertible preferred stock, shares | | 3,000,000 | | | | | (3,000) | |
Payment of consultant in shares | 37 | $ 0 | 37 | | | | | |
Payment of consultant in shares, shares | | 14,000 | | | | | | |
Exercise of stock options and employee share purchases | 173 | $ 1 | 172 | | | | | |
Exercise of stock options and employee share purchases, shares | | 85,000 | | | | | | |
Stockholders' Equity, Ending Balance at Mar. 31, 2019 | (119,283) | $ 1,342 | 1,043,575 | (2,221) | (3,149) | (1,158,830) | | $ 0 |
Temporary Equity, shares at Mar. 31, 2019 | | | | | | | 15,000 | |
Temporary Equity, Ending Balance at Mar. 31, 2019 | | | | | | | $ 33,398 | |
Balance, shares at Mar. 31, 2019 | | 134,206,000 | | | | | | 32,000 |
Stockholders' Equity, Beginning Balance at Dec. 31, 2018 | (174,545) | $ 1,200 | 1,005,183 | (1,539) | (2,078) | (1,177,311) | | $ 0 |
Temporary Equity, shares at Dec. 31, 2018 | | | | | | | 18,000 | |
Temporary Equity, Beginning Balance at Dec. 31, 2018 | | | | | | | $ 39,879 | |
Balance, shares at Dec. 31, 2018 | | 119,996,000 | | | | | | 32,000 |
Net income (loss) | (34,432) | | | | | | | |
Other comprehensive income | 460 | | | | | | | |
Stockholders' Equity, Ending Balance at Jun. 30, 2019 | (161,610) | $ 1,373 | 1,051,942 | (1,079) | (4,382) | (1,209,464) | | $ 0 |
Temporary Equity, shares at Jun. 30, 2019 | | | | | | | 12,000 | |
Temporary Equity, Ending Balance at Jun. 30, 2019 | | | | | | | $ 26,917 | |
Balance, shares at Jun. 30, 2019 | | 137,259,000 | | | | | | 32,000 |
Stockholders' Equity, Beginning Balance at Mar. 31, 2019 | (119,283) | $ 1,342 | 1,043,575 | (2,221) | (3,149) | (1,158,830) | | $ 0 |
Temporary Equity, shares at Mar. 31, 2019 | | | | | | | 15,000 | |
Temporary Equity, Beginning Balance at Mar. 31, 2019 | | | | | | | $ 33,398 | |
Balance, shares at Mar. 31, 2019 | | 134,206,000 | | | | | | 32,000 |
Net income (loss) | (51,867) | | | | (1,233) | (50,634) | | |
Other comprehensive income | 1,142 | | | 1,142 | | | | |
Share-based compensation | 1,917 | | 1,917 | | | | | |
Conversion of Series C-1 convertible preferred stock | 6,481 | $ 30 | 6,451 | | | | $ (6,481) | |
Conversion of Series C-1 convertible preferred stock, shares | | 3,000,000 | | | | | (3,000) | |
Vesting of nonvested shares | | $ 1 | (1) | | | | | |
Vesting of nonvested shares, shares | | 53,000 | | | | | | |
Stockholders' Equity, Ending Balance at Jun. 30, 2019 | (161,610) | $ 1,373 | 1,051,942 | (1,079) | (4,382) | (1,209,464) | | $ 0 |
Temporary Equity, shares at Jun. 30, 2019 | | | | | | | 12,000 | |
Temporary Equity, Ending Balance at Jun. 30, 2019 | | | | | | | $ 26,917 | |
Balance, shares at Jun. 30, 2019 | | 137,259,000 | | | | | | 32,000 |
Stockholders' Equity, Beginning Balance at Dec. 31, 2019 | (231,337) | $ 1,378 | 1,059,583 | (1,324) | (5,981) | (1,284,993) | | $ 0 |
Temporary Equity, shares at Dec. 31, 2019 | | | | | | | 12,459 | |
Temporary Equity, Beginning Balance at Dec. 31, 2019 | | | | | | | $ 26,917 | |
Balance, shares at Dec. 31, 2019 | | 137,819,000 | | | | | | 32,000 |
Net income (loss) | (45,271) | | | | (597) | (44,674) | | |
Other comprehensive income | 1,227 | | | 1,227 | | | | |
Share-based compensation | 2,397 | | 2,397 | | | | | |
Shares sold at the market | 65,123 | $ 247 | 64,876 | | | | | |
Shares sold at the market, shares | | 24,716,000 | | | | | | |
Amendment of 2015 warrants and issuance of 2020 warrants | 3,145 | | 3,145 | | | | | |
Payment of consultant in shares | 12 | $ 0 | 12 | | | | | |
Payment of consultant in shares, shares | | 4,000 | | | | | | |
Exercise of stock options and employee share purchases | 2,204 | $ 8 | 2,196 | | | | | |
Exercise of stock options and employee share purchases, shares | | 765,000 | | | | | | |
Stockholders' Equity, Ending Balance at Mar. 31, 2020 | (202,500) | $ 1,633 | 1,132,209 | (97) | (6,578) | (1,329,667) | | $ 0 |
Temporary Equity, shares at Mar. 31, 2020 | | | | | | | 12,000 | |
Temporary Equity, Ending Balance at Mar. 31, 2020 | | | | | | | $ 26,917 | |
Balance, shares at Mar. 31, 2020 | | 163,304,000 | | | | | | 32,000 |
Stockholders' Equity, Beginning Balance at Dec. 31, 2019 | (231,337) | $ 1,378 | 1,059,583 | (1,324) | (5,981) | (1,284,993) | | $ 0 |
Temporary Equity, shares at Dec. 31, 2019 | | | | | | | 12,459 | |
Temporary Equity, Beginning Balance at Dec. 31, 2019 | | | | | | | $ 26,917 | |
Balance, shares at Dec. 31, 2019 | | 137,819,000 | | | | | | 32,000 |
Net income (loss) | (93,515) | | | | | | | |
Other comprehensive income | $ 1,693 | | | | | | | |
Exercise of stock options, shares | 817,429 | | | | | | | |
Stockholders' Equity, Ending Balance at Jun. 30, 2020 | $ (225,964) | $ 1,714 | 1,156,442 | 369 | (7,342) | (1,377,147) | | $ 0 |
Temporary Equity, shares at Jun. 30, 2020 | | | | | | | 12,459 | |
Temporary Equity, Ending Balance at Jun. 30, 2020 | | | | | | | $ 26,917 | |
Balance, shares at Jun. 30, 2020 | | 171,418,000 | | | | | | 32,000 |
Stockholders' Equity, Beginning Balance at Mar. 31, 2020 | (202,500) | $ 1,633 | 1,132,209 | (97) | (6,578) | (1,329,667) | | $ 0 |
Temporary Equity, shares at Mar. 31, 2020 | | | | | | | 12,000 | |
Temporary Equity, Beginning Balance at Mar. 31, 2020 | | | | | | | $ 26,917 | |
Balance, shares at Mar. 31, 2020 | | 163,304,000 | | | | | | 32,000 |
Net income (loss) | (48,244) | | | | (764) | (47,480) | | |
Other comprehensive income | 466 | | | 466 | | | | |
Share-based compensation | 2,464 | | 2,464 | | | | | |
Shares sold at the market | 19,907 | $ 73 | 19,834 | | | | | |
Shares sold at the market, shares | | 7,290,000 | | | | | | |
Issuance of shares for business acquisition | 900 | $ 4 | 896 | | | | | |
Issuance of shares for business acquisition, shares | | 405,000 | | | | | | |
Payment of payroll in shares | 88 | $ 0 | 88 | | | | | |
Payment of payroll in shares, shares | | 31,000 | | | | | | |
Payment of consultant in shares | 31 | $ 0 | 31 | | | | | |
Payment of consultant in shares, shares | | 10,000 | | | | | | |
Exercise of stock options | 924 | $ 3 | 921 | | | | | |
Exercise of stock options, shares | | 290,000 | | | | | | |
Vesting of nonvested shares | | $ 1 | (1) | | | | | |
Vesting of nonvested shares, shares | | 88,000 | | | | | | |
Stockholders' Equity, Ending Balance at Jun. 30, 2020 | $ (225,964) | $ 1,714 | $ 1,156,442 | $ 369 | $ (7,342) | $ (1,377,147) | | $ 0 |
Temporary Equity, shares at Jun. 30, 2020 | | | | | | | 12,459 | |
Temporary Equity, Ending Balance at Jun. 30, 2020 | | | | | | | $ 26,917 | |
Balance, shares at Jun. 30, 2020 | | 171,418,000 | | | | | | 32,000 |