Condensed Consolidated Statements of Convertible Preferred Stock and Stockholders' Deficit (Unaudited) - USD ($) $ in Thousands | Total | Common Stock [Member] | Additional Paid-in Capital [Member] | Treasury Stock | 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, 2019 | $ (231,337) | $ 1,378 | $ 1,059,583 | | $ (1,324) | $ (5,981) | $ (1,284,993) | | $ 0 |
Temporary Equity, Beginning Balance at Dec. 31, 2019 | | | | | | | | $ 26,917 | |
Balance, shares at Dec. 31, 2019 | | 137,819 | | | | | | | 32 |
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 | | | | | | | |
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 | | | | | | | |
Exercise of stock options and employee share purchases | 2,204 | $ 8 | 2,196 | | | | | | |
Exercise of stock options and employee share purchases, shares | | 765 | | | | | | | |
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 | |
Temporary Equity, Ending Balance at Mar. 31, 2020 | | | | | | | | $ 26,917 | |
Balance, shares at Mar. 31, 2020 | | 163,304 | | | | | | | 32 |
Temporary Equity, shares at Dec. 31, 2019 | | | | | | | | 12 | |
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, Beginning Balance at Dec. 31, 2019 | | | | | | | | $ 26,917 | |
Balance, shares at Dec. 31, 2019 | | 137,819 | | | | | | | 32 |
Net income (loss) | (93,515) | | | | | | | | |
Other comprehensive income | 1,693 | | | | | | | | |
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 | |
Temporary Equity, Ending Balance at Jun. 30, 2020 | | | | | | | | $ 26,917 | |
Balance, shares at Jun. 30, 2020 | | 171,418 | | | | | | | 32 |
Temporary Equity, shares at Dec. 31, 2019 | | | | | | | | 12 | |
Stockholders' Equity, Beginning Balance at Mar. 31, 2020 | (202,500) | $ 1,633 | 1,132,209 | | (97) | (6,578) | (1,329,667) | | $ 0 |
Temporary Equity, Beginning Balance at Mar. 31, 2020 | | | | | | | | $ 26,917 | |
Balance, shares at Mar. 31, 2020 | | 163,304 | | | | | | | 32 |
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 | | | | | | | |
Issuance of shares for business acquisition | 900 | $ 4 | 896 | | | | | | |
Issuance of shares for business acquisition, shares | | 405 | | | | | | | |
Payment of CEO payroll in shares | 88 | | 88 | | | | | | |
Payment of CEO payroll in shares, shares | | 31 | | | | | | | |
Payment of consultant in shares | 31 | | 31 | | | | | | |
Payment of consultant in shares, shares | | 10 | | | | | | | |
Exercise of stock options | 924 | $ 3 | 921 | | | | | | |
Exercise of stock options, shares | | 290 | | | | | | | |
Vesting of nonvested shares | | $ 1 | (1) | | | | | | |
Vesting of nonvested shares, shares | | 88 | | | | | | | |
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 | |
Temporary Equity, Ending Balance at Jun. 30, 2020 | | | | | | | | $ 26,917 | |
Balance, shares at Jun. 30, 2020 | | 171,418 | | | | | | | 32 |
Temporary Equity, shares at Mar. 31, 2020 | | | | | | | | 12 | |
Stockholders' Equity, Beginning Balance at Dec. 31, 2020 | (211,498) | $ 1,961 | 1,257,502 | | 2,772 | (7,826) | (1,465,907) | | $ 0 |
Temporary Equity, Beginning Balance at Dec. 31, 2020 | | | | | | | | $ 26,917 | |
Balance, shares at Dec. 31, 2020 | | 196,093 | | | | | | | 32 |
Net income (loss) | (54,403) | | | | | (726) | (53,677) | | |
Other comprehensive income | (3,774) | | | | (3,774) | | | | |
Share-based compensation | 3,932 | | 3,669 | | | 263 | | | |
Shares sold at the market | 60,859 | $ 190 | 60,669 | | | | | | |
Shares sold at the market, shares | | 18,950 | | | | | | | |
Payment of CEO payroll in shares | 68 | | 68 | | | | | | |
Payment of CEO payroll in shares, shares | | 19 | | | | | | | |
Issuance of shares for services | 20 | | 20 | | | | | | |
Issuance of shares for services, shares | | 5 | | | | | | | |
Conversion of series C-1 convertible preferred stock | 4,321 | $ 20 | 4,301 | | | | | $ (4,321) | |
Conversion of Series C-1 convertible preferred stock, shares | | 2,000 | | | | | | (2,000) | |
Exercise of stock options and employee share purchases | 2,526 | $ 8 | 2,518 | | | | | | |
Exercise of stock options and employee share purchases, shares | | 796 | | | | | | | |
Stockholders' Equity, Ending Balance at Mar. 31, 2021 | (197,949) | $ 2,179 | 1,328,747 | | (1,002) | (8,289) | (1,519,584) | | $ 0 |
Temporary Equity, shares at Mar. 31, 2021 | | | | | | | | 10 | |
Temporary Equity, Ending Balance at Mar. 31, 2021 | | | | | | | | $ 22,596 | |
Balance, shares at Mar. 31, 2021 | | 217,863 | | | | | | | 32 |
Temporary Equity, shares at Dec. 31, 2020 | | | | | | | | 12,459 | |
Stockholders' Equity, Beginning Balance at Dec. 31, 2020 | (211,498) | $ 1,961 | 1,257,502 | | 2,772 | (7,826) | (1,465,907) | | $ 0 |
Temporary Equity, Beginning Balance at Dec. 31, 2020 | | | | | | | | $ 26,917 | |
Balance, shares at Dec. 31, 2020 | | 196,093 | | | | | | | 32 |
Net income (loss) | (138,394) | | | | | | | | |
Other comprehensive income | $ (2,512) | | | | | | | | |
Exercise of stock options, shares | 1,703,924 | | | | | | | | |
Stockholders' Equity, Ending Balance at Jun. 30, 2021 | $ (255,752) | $ 2,253 | 1,353,243 | | 260 | (8,634) | (1,602,874) | | $ 0 |
Temporary Equity, shares at Jun. 30, 2021 | | | | | | | | 8,459 | |
Temporary Equity, Ending Balance at Jun. 30, 2021 | | | | | | | | $ 18,275 | |
Balance, shares at Jun. 30, 2021 | | 225,265 | | | | | | | 32 |
Temporary Equity, shares at Dec. 31, 2020 | | | | | | | | 12,459 | |
Stockholders' Equity, Beginning Balance at Mar. 31, 2021 | (197,949) | $ 2,179 | 1,328,747 | | (1,002) | (8,289) | (1,519,584) | | $ 0 |
Temporary Equity, Beginning Balance at Mar. 31, 2021 | | | | | | | | $ 22,596 | |
Balance, shares at Mar. 31, 2021 | | 217,863 | | | | | | | 32 |
Net income (loss) | (83,991) | | | | | (701) | (83,290) | | |
Other comprehensive income | 1,262 | | | | 1,262 | | | | |
Share-based compensation | 5,431 | | 5,075 | | | 356 | | | |
Shares sold at the market | 9,147 | $ 34 | 9,113 | | | | | | |
Shares sold at the market, shares | | 3,392 | | | | | | | |
Issuance of warrants | 70 | | 70 | | | | | | |
Payment of CEO payroll in shares | 87 | | 87 | | | | | | |
Payment of CEO payroll in shares, shares | | 24 | | | | | | | |
Issuance of shares for services | 31 | | 31 | | | | | | |
Issuance of shares for services, shares | | 9 | | | | | | | |
Conversion of series C-1 convertible preferred stock | 4,321 | $ 20 | 4,301 | | | | | $ (4,321) | |
Conversion of Series C-1 convertible preferred stock, shares | | 2,000 | | | | | | (2) | |
Exercise of stock options | 3,072 | $ 10 | 3,062 | | | | | | |
Exercise of stock options, shares | | 1,012 | | | | | | | |
Retirement of treasury shares | 1,492 | $ (5) | | $ 1,497 | | | | | |
Retirement of treasury shares, share | | (521) | | 521 | | | | | |
Stockholders' Equity, Ending Balance at Jun. 30, 2021 | (255,752) | $ 2,253 | 1,353,243 | | $ 260 | $ (8,634) | $ (1,602,874) | | $ 0 |
Temporary Equity, shares at Jun. 30, 2021 | | | | | | | | 8,459 | |
Temporary Equity, Ending Balance at Jun. 30, 2021 | | | | | | | | $ 18,275 | |
Balance, shares at Jun. 30, 2021 | | 225,265 | | | | | | | 32 |
Temporary Equity, shares at Mar. 31, 2021 | | | | | | | | 10 | |
Issuance of shares for 2020 employee bonus | $ 1,275 | $ 15 | $ 2,757 | $ (1,497) | | | | | |
Issuance of shares for 2020 employee bonus, Shares | | 1,486 | | | | | | | |
Issuance of shares for 2020 employee bonus, Shares | | | | (521) | | | | | |