Condensed Consolidated Statements of Convertible Preferred Stock and Stockholders' Equity (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) | (145,161) | | | | | | | | |
Other comprehensive income | 2,557 | | | | | | | | |
Stockholders' Equity, Ending Balance at Sep. 30, 2020 | (206,323) | $ 1,892 | 1,226,687 | | 1,233 | (7,835) | (1,428,300) | | $ 0 |
Temporary Equity, shares at Sep. 30, 2020 | | | | | | | | 12 | |
Temporary Equity, Ending Balance at Sep. 30, 2020 | | | | | | | | $ 26,917 | |
Balance, shares at Sep. 30, 2020 | | 189,157 | | | | | | | 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 | |
Net income (loss) | (51,646) | | | | | (493) | (51,153) | | |
Other comprehensive income | 864 | | | | 864 | | | | |
Share-based compensation | 2,620 | | 2,620 | | | | | | |
Shares sold at the market | 46,401 | $ 123 | 46,278 | | | | | | |
Shares sold at the market, shares | | 12,281 | | | | | | | |
Shares sold under Stock Purchase Agreement, values | 20,000 | $ 50 | 19,950 | | | | | | |
Shares sold under Stock Purchase Agreement, shares | | 4,963 | | | | | | | |
Payment of CEO payroll in shares | 103 | | 103 | | | | | | |
Payment of CEO payroll in shares, shares | | 27 | | | | | | | |
Payment of consultant in shares | 19 | | 19 | | | | | | |
Payment of consultant in shares, shares | | 5 | | | | | | | |
Exercise of stock options and employee share purchases | 1,280 | $ 4 | 1,276 | | | | | | |
Exercise of stock options and employee share purchases, shares | | 423 | | | | | | | |
Vesting of nonvested shares | | $ 1 | (1) | | | | | | |
Vesting of nonvested shares, shares | | 40 | | | | | | | |
Stockholders' Equity, Ending Balance at Sep. 30, 2020 | (206,323) | $ 1,892 | 1,226,687 | | 1,233 | (7,835) | (1,428,300) | | $ 0 |
Temporary Equity, shares at Sep. 30, 2020 | | | | | | | | 12 | |
Temporary Equity, Ending Balance at Sep. 30, 2020 | | | | | | | | $ 26,917 | |
Balance, shares at Sep. 30, 2020 | | 189,157 | | | | | | | 32 |
Temporary Equity, shares at Jun. 30, 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) | 38,883 | | | | | | | | |
Other comprehensive income | (2,595) | | | | | | | | |
Issuance of subsidiary shares to noncontrolling interest | $ 10,000 | | | | | | | | |
Exercise of stock options, shares | 2,414,403 | | | | | | | | |
Stockholders' Equity, Ending Balance at Sep. 30, 2021 | $ 35,553 | $ 2,475 | 1,463,524 | | 177 | (6,301) | (1,424,322) | | $ 0 |
Temporary Equity, shares at Sep. 30, 2021 | | | | | | | | 0 | |
Balance, shares at Sep. 30, 2021 | | 247,512 | | | | | | | 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 | | | | | | | |
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) | | | | | |
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, 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 | |
Net income (loss) | 177,277 | | | | | (1,275) | 178,552 | | |
Other comprehensive income | (83) | | | | (83) | | | | |
Share-based compensation | 4,776 | | 4,411 | | | 365 | | | |
Shares sold at the market | 77,431 | $ 126 | 77,305 | | | | | | |
Shares sold at the market, shares | | 12,674 | | | | | | | |
Issuance of subsidiary shares to noncontrolling interest | 10,000 | | 6,757 | | | 3,243 | | | |
Payment of CEO payroll in shares | 15 | | 15 | | | | | | |
Payment of CEO payroll in shares, shares | | 3 | | | | | | | |
Issuance of shares for services | 24 | | 24 | | | | | | |
Issuance of shares for services, shares | | 6 | | | | | | | |
Conversion of series C-1 convertible preferred stock | 18,275 | $ 85 | 18,190 | | | | | $ (18,275) | |
Conversion of Series C-1 convertible preferred stock, shares | | 8,459 | | | | | | (8) | |
Exercise of stock options and employee share purchases | 3,231 | $ 8 | 3,223 | | | | | | |
Exercise of stock options and employee share purchases, shares | | 848 | | | | | | | |
Vesting of nonvested shares | | $ 2 | (2) | | | | | | |
Vesting of nonvested shares, shares | | 192 | | | | | | | |
Issuance of shares for 2020 employee bonus | 202 | $ 1 | 358 | $ (157) | | | | | |
Issuance of shares for 2020 employee bonus, Shares | | 94 | | | | | | | |
Issuance of shares for 2020 employee bonus, Shares | | | | (29) | | | | | |
Retirement of treasury shares | 157 | | | $ 157 | | | | | |
Retirement of treasury shares, share | | (29) | | 29 | | | | | |
Stockholders' Equity, Ending Balance at Sep. 30, 2021 | $ 35,553 | $ 2,475 | $ 1,463,524 | | $ 177 | $ (6,301) | $ (1,424,322) | | $ 0 |
Temporary Equity, shares at Sep. 30, 2021 | | | | | | | | 0 | |
Balance, shares at Sep. 30, 2021 | | 247,512 | | | | | | | 32 |