Unaudited Condensed Consolidated Statements of Stockholders' Deficit - USD ($) shares in Thousands, $ in Thousands | Total | Series A Preferred Stock | Common Stock | Additional Paid-in Capital | Additional Paid-in Capital Series A Preferred Stock | Accumulated Other Comprehensive Loss | Accumulated Deficit | March 2021 and August 2020 Offering Common Stock | March 2021 and August 2020 Offering Additional Paid-in Capital |
Beginning balance (shares) at Dec. 31, 2020 | | | 76,406 | | | | | | |
Ending balance (shares) at Mar. 31, 2021 | | | 85,140 | | | | | | |
Stockholders' deficit, beginning of period at Dec. 31, 2020 | $ (203,060) | | $ 8 | $ 98,258 | | $ (318) | $ (301,008) | | |
Stockholders' deficit, end of period at Mar. 31, 2021 | (154,495) | | $ 9 | 152,762 | | (2,682) | (304,584) | | |
Beginning balance (shares) at Dec. 31, 2020 | | | 76,406 | | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | |
Exercise of stock options for cash (shares) | | | 800 | | | | | | |
Restricted stock units vested (shares) | | | 748 | | | | | | |
Issuance of common stock (shares) | | | | | | | | 7,750 | |
Retired shares of Common Stock (shares) | | | 0 | | | | | | |
Ending balance (shares) at Jun. 30, 2021 | | | 85,704 | | | | | | |
Stockholders' deficit, beginning of period at Dec. 31, 2020 | (203,060) | | $ 8 | 98,258 | | (318) | (301,008) | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | |
Stock based compensation expense | | | | 4,711 | | | | | |
Exercise of stock options for cash | | | 0 | 3,113 | | | | | |
Restricted stock units vested | | | 0 | 0 | | | | | |
Issuance of Common Stock | | | | | | | | $ 1 | $ 55,641 |
Retired shares of Common Stock | | | | | | | | | 0 |
Accretion related to redemption of Series A Preferred Stock | | | | (5,673) | | | | | |
Make-whole dividends related to redemption of Series A Preferred Stock | | $ (2,343) | | (2,343) | | | | | |
Return on repurchase of Series A Preferred Stock shares | | (38) | | | $ (38) | | | | |
Accretion of discount on Series A Preferred Stock | | | | (2,277) | | | | | |
Accrued dividends on Series A Preferred Stock: | | | | | | | | | |
Payable in cash | | | | (5,839) | | | | | |
Payable in kind | | | | (1,752) | | | | | |
Foreign currency translation gain (loss) | (1,944) | | | | | (1,944) | | | |
Net income | 3,231 | | | | | | 3,231 | | |
Treasury Stock | | | | | | | 0 | | |
Stockholders' deficit, end of period at Jun. 30, 2021 | (156,229) | | $ 9 | 143,801 | | (2,262) | (297,777) | | |
Beginning balance (shares) at Mar. 31, 2021 | | | 85,140 | | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | |
Exercise of stock options for cash (shares) | | | 84 | | | | | | |
Restricted stock units vested (shares) | | | 480 | | | | | | |
Issuance of common stock (shares) | | | | | | | | 0 | |
Retired shares of Common Stock (shares) | | | 0 | | | | | | |
Ending balance (shares) at Jun. 30, 2021 | | | 85,704 | | | | | | |
Stockholders' deficit, beginning of period at Mar. 31, 2021 | (154,495) | | $ 9 | 152,762 | | (2,682) | (304,584) | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | |
Stock based compensation expense | | | | 2,478 | | | | | |
Exercise of stock options for cash | | | 0 | 201 | | | | | |
Restricted stock units vested | | | 0 | 0 | | | | | |
Issuance of Common Stock | | | | | | | | $ 0 | 13 |
Retired shares of Common Stock | | | | | | | | | 0 |
Accretion related to redemption of Series A Preferred Stock | | | | (5,673) | | | | | |
Make-whole dividends related to redemption of Series A Preferred Stock | | (2,343) | | (2,343) | | | | | |
Return on repurchase of Series A Preferred Stock shares | | 0 | | | 0 | | | | |
Accretion of discount on Series A Preferred Stock | | | | (804) | | | | | |
Accrued dividends on Series A Preferred Stock: | | | | | | | | | |
Payable in cash | | | | (2,179) | | | | | |
Payable in kind | | | | (654) | | | | | |
Foreign currency translation gain (loss) | 420 | | | | | 420 | | | |
Net income | 6,807 | | | | | | 6,807 | | |
Treasury Stock | | | | | | | 0 | | |
Stockholders' deficit, end of period at Jun. 30, 2021 | (156,229) | | $ 9 | 143,801 | | (2,262) | (297,777) | | |
Beginning balance (shares) at Dec. 31, 2021 | | | 87,107 | | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | |
Exercise of stock options for cash (shares) | | | 325 | | | | | | |
Restricted stock units vested (shares) | | | 690 | | | | | | |
Issuance of common stock (shares) | | | | | | | | 60 | |
Retired shares of Common Stock (shares) | | | (653) | | | | | | |
Ending balance (shares) at Jun. 30, 2022 | | | 87,529 | | | | | | |
Stockholders' deficit, beginning of period at Dec. 31, 2021 | (80,386) | | $ 9 | 149,234 | | (2,724) | (225,789) | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | |
Stock based compensation expense | | | | 6,210 | | | | | |
Exercise of stock options for cash | | | 0 | 451 | | | | | |
Restricted stock units vested | | | 0 | 0 | | | | | |
Issuance of Common Stock | | | | | | | | $ 0 | 0 |
Retired shares of Common Stock | | | | | | | | | (3,748) |
Accretion related to redemption of Series A Preferred Stock | | | | 0 | | | | | |
Make-whole dividends related to redemption of Series A Preferred Stock | | 0 | | 0 | | | | | |
Return on repurchase of Series A Preferred Stock shares | | 0 | | | 0 | | | | |
Accretion of discount on Series A Preferred Stock | | | | 0 | | | | | |
Accrued dividends on Series A Preferred Stock: | | | | | | | | | |
Payable in cash | | | | 0 | | | | | |
Payable in kind | | | | 0 | | | | | |
Foreign currency translation gain (loss) | (2,211) | | | | | (2,211) | | | |
Net income | 3,197 | | | | | | 3,197 | | |
Treasury Stock | | | | | | | (1,116) | | |
Stockholders' deficit, end of period at Jun. 30, 2022 | (76,487) | | $ 9 | 152,147 | | (4,935) | (222,592) | | |
Beginning balance (shares) at Mar. 31, 2022 | | | 87,011 | | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | |
Exercise of stock options for cash (shares) | | | 38 | | | | | | |
Restricted stock units vested (shares) | | | 506 | | | | | | |
Issuance of common stock (shares) | | | | | | | | 60 | |
Retired shares of Common Stock (shares) | | | (86) | | | | | | |
Ending balance (shares) at Jun. 30, 2022 | | | 87,529 | | | | | | |
Stockholders' deficit, beginning of period at Mar. 31, 2022 | (77,299) | | $ 9 | 149,420 | | (2,910) | (222,702) | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | |
Stock based compensation expense | | | | 3,159 | | | | | |
Exercise of stock options for cash | | | 0 | 76 | | | | | |
Restricted stock units vested | | | 0 | 0 | | | | | |
Issuance of Common Stock | | | | | | | | $ 0 | 0 |
Retired shares of Common Stock | | | | | | | | | $ (508) |
Accretion related to redemption of Series A Preferred Stock | | | | 0 | | | | | |
Make-whole dividends related to redemption of Series A Preferred Stock | | 0 | | 0 | | | | | |
Return on repurchase of Series A Preferred Stock shares | | $ 0 | | | $ 0 | | | | |
Accretion of discount on Series A Preferred Stock | | | | 0 | | | | | |
Accrued dividends on Series A Preferred Stock: | | | | | | | | | |
Payable in cash | | | | 0 | | | | | |
Payable in kind | | | | 0 | | | | | |
Foreign currency translation gain (loss) | (2,025) | | | | | (2,025) | | | |
Net income | 110 | | | | | | 110 | | |
Treasury Stock | | | | | | | (1,116) | | |
Stockholders' deficit, end of period at Jun. 30, 2022 | $ (76,487) | | $ 9 | $ 152,147 | | $ (4,935) | $ (222,592) | | |