Consolidated Statements of Changes in Stockholders' Equity - USD ($) $ in Thousands | Total | ATM | Common Stock | Common Stock ATM | Additional Paid-In Capital | Additional Paid-In Capital ATM | Warrants | Other Comprehensive Gain (Loss) | Accumulated Deficit |
Beginning balance (in shares) at Dec. 31, 2021 | | | 278,912,800 | | | | | | |
Beginning balance at Dec. 31, 2021 | $ 307,369 | | $ 2,808 | | $ 2,595,419 | | $ 83 | $ 4,981 | $ (2,295,922) |
Increase (Decrease) in Stockholders' Equity | | | | | | | | | |
Stock options exercised, net (in shares) | | | 334,705 | | | | | | |
Stock options exercised, net | 1,858 | | $ 3 | | 1,855 | | | | |
Vesting of restricted stock units, net of taxes (in shares) | | | 1,209,162 | | | | | | |
Vesting of restricted stock units, net of taxes | (9,278) | | | | (9,278) | | | | |
Stock-based compensation | 43,114 | | | | 43,114 | | | | |
Unrealized gain (loss) on available-for-sale securities | (367) | | | | | | | (367) | |
Foreign currency translation adjustment | (21,854) | | | | | | | (21,854) | |
Net loss | (147,417) | | | | | | | | (147,417) |
Ending balance (in shares) at Jun. 30, 2022 | | | 280,456,667 | | | | | | |
Ending balance at Jun. 30, 2022 | 173,425 | | $ 2,811 | | 2,631,110 | | 83 | (17,240) | (2,443,339) |
Beginning balance (in shares) at Mar. 31, 2022 | | | 280,133,856 | | | | | | |
Beginning balance at Mar. 31, 2022 | 238,617 | | $ 2,809 | | 2,617,935 | | 83 | (1,028) | (2,381,182) |
Increase (Decrease) in Stockholders' Equity | | | | | | | | | |
Stock options exercised, net (in shares) | | | 189,256 | | | | | | |
Stock options exercised, net | 999 | | $ 2 | | 997 | | | | |
Vesting of restricted stock units, net of taxes (in shares) | | | 133,555 | | | | | | |
Vesting of restricted stock units, net of taxes | (285) | | | | (285) | | | | |
Stock-based compensation | 12,463 | | | | 12,463 | | | | |
Unrealized gain (loss) on available-for-sale securities | (29) | | | | | | | (29) | |
Foreign currency translation adjustment | (16,183) | | | | | | | (16,183) | |
Net loss | (62,157) | | | | | | | | (62,157) |
Ending balance (in shares) at Jun. 30, 2022 | | | 280,456,667 | | | | | | |
Ending balance at Jun. 30, 2022 | $ 173,425 | | $ 2,811 | | 2,631,110 | | 83 | (17,240) | (2,443,339) |
Beginning balance (in shares) at Dec. 31, 2022 | 281,108,273 | | 281,108,273 | | | | | | |
Beginning balance at Dec. 31, 2022 | $ 123,047 | | $ 2,815 | | 2,664,744 | | 83 | (12,105) | (2,532,490) |
Increase (Decrease) in Stockholders' Equity | | | | | | | | | |
Stock options exercised, net (in shares) | 655,000 | | 653,217 | | | | | | |
Stock options exercised, net | $ 4,405 | | $ 7 | | 4,398 | | | | |
Vesting of restricted stock units, net of taxes (in shares) | | | 1,768,751 | | | | | | |
Vesting of restricted stock units, net of taxes | (14,008) | | | | (14,008) | | | | |
Stock-based compensation | 51,471 | | | | 51,471 | | | | |
Warrants exercised (in shares) | | | 1,220,100 | | | | | | |
Warrants exercised | 12 | | $ 12 | | 12 | | (12) | | |
Issuance of shares in connection with at-the-market offering, net of issuance costs (in shares) | | | | 2,242,582 | | | | | |
Issuance of shares in connection with at-the-market offering, net of issuance costs | | $ 26,553 | | $ 22 | | $ 26,531 | | | |
Unrealized gain (loss) on available-for-sale securities | (61) | | | | | | | (61) | |
Foreign currency translation adjustment | 16,326 | | | | | | | 16,326 | |
Net loss | $ (96,164) | | | | | | | | (96,164) |
Ending balance (in shares) at Jun. 30, 2023 | 286,992,923 | | 286,992,923 | | | | | | |
Ending balance at Jun. 30, 2023 | $ 111,581 | | $ 2,856 | | 2,733,148 | | 71 | 4,160 | (2,628,654) |
Beginning balance (in shares) at Mar. 31, 2023 | | | 283,300,585 | | | | | | |
Beginning balance at Mar. 31, 2023 | 102,573 | | $ 2,820 | | 2,691,836 | | 83 | (6,744) | (2,585,422) |
Increase (Decrease) in Stockholders' Equity | | | | | | | | | |
Stock options exercised, net (in shares) | | | 269,109 | | | | | | |
Stock options exercised, net | 1,750 | | $ 4 | | 1,746 | | | | |
Vesting of restricted stock units, net of taxes (in shares) | | | 155,776 | | | | | | |
Vesting of restricted stock units, net of taxes | (1,202) | | | | (1,202) | | | | |
Stock-based compensation | 16,577 | | | | 16,577 | | | | |
Warrants exercised (in shares) | | | 1,220,100 | | | | | | |
Warrants exercised | 12 | | $ 12 | | 12 | | (12) | | |
Issuance of shares in connection with at-the-market offering, net of issuance costs (in shares) | | | | 2,047,353 | | | | | |
Issuance of shares in connection with at-the-market offering, net of issuance costs | | $ 24,199 | | $ 20 | | $ 24,179 | | | |
Unrealized gain (loss) on available-for-sale securities | 24 | | | | | | | 24 | |
Foreign currency translation adjustment | 10,880 | | | | | | | 10,880 | |
Net loss | $ (43,232) | | | | | | | | (43,232) |
Ending balance (in shares) at Jun. 30, 2023 | 286,992,923 | | 286,992,923 | | | | | | |
Ending balance at Jun. 30, 2023 | $ 111,581 | | $ 2,856 | | $ 2,733,148 | | $ 71 | $ 4,160 | $ (2,628,654) |