Condensed Consolidated Statements of Stockholders' Equity - USD ($) $ in Thousands | Total | Cumulative Effect, Period of Adoption, Adjustment | Common Stock | Treasury Stock | Additional Paid-in Capital | Additional Paid-in Capital Cumulative Effect, Period of Adoption, Adjustment | Accumulated Other Comprehensive Loss | Accumulated Deficit | Accumulated Deficit Cumulative Effect, Period of Adoption, Adjustment | Non-controlling Interest |
Beginning balance (in shares) at Dec. 31, 2020 | | | 67,832,706 | (13,739,171) | | | | | | |
Balance, at period start at Dec. 31, 2020 | $ 975,818 | $ (79,842) | $ 339 | $ (110,466) | $ 1,166,774 | $ (108,470) | $ (398) | $ (79,912) | $ 28,628 | $ (519) |
Increase (decrease) in shareholders' equity | | | | | | | | | | |
Exercise of stock options (in shares) | | | 27,043 | | | | | | | |
Exercise of stock options | 522 | | $ 0 | | 522 | | | | | |
Issuance of common stock - vesting of restricted stock units (in shares) | | | 455,349 | | | | | | | |
Issuance of common stock - vesting of restricted stock units | 2 | | $ 2 | | | | | | | |
Stock-based compensation expense | 14,013 | | | | 14,013 | | | | | |
Shares withheld to satisfy tax withholdings (in shares) | | | | (147,041) | | | | | | |
Shares withheld to satisfy tax withholdings | (9,541) | | | $ (9,541) | | | | | | |
Share repurchase (in shares) | | | | (24,227) | | | | | | |
Share repurchase | (1,672) | | | $ (1,672) | | | | | | |
Foreign currency translation loss, net of taxes | (624) | | | | | | (624) | | | |
Other | 118 | | | | | | | | | 118 |
Net income (loss) | 14,935 | | | | | | | 14,946 | | (11) |
Ending balance (in shares) at Mar. 31, 2021 | | | 68,315,098 | (13,910,439) | | | | | | |
Balance, at period end at Mar. 31, 2021 | 913,729 | | $ 341 | $ (121,679) | 1,072,839 | | (1,022) | (36,338) | | (412) |
Beginning balance (in shares) at Dec. 31, 2020 | | | 67,832,706 | (13,739,171) | | | | | | |
Balance, at period start at Dec. 31, 2020 | 975,818 | $ (79,842) | $ 339 | $ (110,466) | 1,166,774 | $ (108,470) | (398) | (79,912) | $ 28,628 | (519) |
Increase (decrease) in shareholders' equity | | | | | | | | | | |
Foreign currency translation loss, net of taxes | (1,888) | | | | | | | | | |
Net income (loss) | 6,566 | | | | | | | | | |
Ending balance (in shares) at Jun. 30, 2021 | | | 68,459,262 | (13,963,399) | | | | | | |
Balance, at period end at Jun. 30, 2021 | 917,466 | | $ 342 | $ (125,583) | 1,089,263 | | (2,286) | (44,619) | | 349 |
Beginning balance (in shares) at Mar. 31, 2021 | | | 68,315,098 | (13,910,439) | | | | | | |
Balance, at period start at Mar. 31, 2021 | 913,729 | | $ 341 | $ (121,679) | 1,072,839 | | (1,022) | (36,338) | | (412) |
Increase (decrease) in shareholders' equity | | | | | | | | | | |
Exercise of stock options (in shares) | | | 4,082 | | | | | | | |
Exercise of stock options | 51 | | $ 0 | | 51 | | | | | |
Issuance of common stock - vesting of restricted stock units (in shares) | | | 140,082 | | | | | | | |
Issuance of common stock - vesting of restricted stock units | 1 | | $ 1 | | | | | | | |
Stock-based compensation expense | 17,161 | | | | 17,161 | | | | | |
Shares withheld to satisfy tax withholdings (in shares) | | | | (46,699) | | | | | | |
Shares withheld to satisfy tax withholdings | (3,479) | | | $ (3,479) | | | | | | |
Share repurchase (in shares) | | | | (6,261) | | | | | | |
Share repurchase | (425) | | | $ (425) | | | | | | |
Capital contribution - non-controlling interest | 23 | | | | (788) | | | | | 811 |
Foreign currency translation loss, net of taxes | (1,264) | | | | | | (1,264) | | | |
Other | 38 | | | | | | | | | 38 |
Net income (loss) | (8,369) | | | | | | | (8,281) | | (88) |
Ending balance (in shares) at Jun. 30, 2021 | | | 68,459,262 | (13,963,399) | | | | | | |
Balance, at period end at Jun. 30, 2021 | $ 917,466 | | $ 342 | $ (125,583) | 1,089,263 | | (2,286) | (44,619) | | 349 |
Beginning balance (in shares) at Dec. 31, 2021 | 68,879,152 | | 68,879,152 | | | | | | | |
Balance, at period start at Dec. 31, 2021 | $ 959,542 | | $ 344 | $ (134,996) | 1,131,628 | | (1,899) | (37,988) | | 2,453 |
Treasury stock, beginning balance (in shares) at Dec. 31, 2021 | | | | (14,086,064) | | | | | | |
Increase (decrease) in shareholders' equity | | | | | | | | | | |
Exercise of stock options (in shares) | | | 38,681 | | | | | | | |
Exercise of stock options | 658 | | | | 658 | | | | | |
Issuance of common stock - vesting of restricted stock units (in shares) | | | 514,319 | | | | | | | |
Issuance of common stock - vesting of restricted stock units | 3 | | $ 3 | | | | | | | |
Stock-based compensation expense | 21,690 | | | | 21,690 | | | | | |
Shares withheld to satisfy tax withholdings (in shares) | | | | (170,992) | | | | | | |
Shares withheld to satisfy tax withholdings | (12,570) | | | $ (12,570) | | | | | | |
Foreign currency translation loss, net of taxes | (1,478) | | | | | | (1,478) | | | |
Other | 18 | | | | (84) | | | | | 102 |
Net income (loss) | (14,708) | | | | | | | (13,859) | | (849) |
Treasury stock, ending balance (in shares) at Mar. 31, 2022 | | | | (14,257,056) | | | | | | |
Ending balance (in shares) at Mar. 31, 2022 | | | 69,432,152 | | | | | | | |
Balance, at period end at Mar. 31, 2022 | $ 953,155 | | $ 347 | $ (147,566) | 1,153,892 | | (3,377) | (51,847) | | 1,706 |
Beginning balance (in shares) at Dec. 31, 2021 | 68,879,152 | | 68,879,152 | | | | | | | |
Balance, at period start at Dec. 31, 2021 | $ 959,542 | | $ 344 | $ (134,996) | 1,131,628 | | (1,899) | (37,988) | | 2,453 |
Treasury stock, beginning balance (in shares) at Dec. 31, 2021 | | | | (14,086,064) | | | | | | |
Increase (decrease) in shareholders' equity | | | | | | | | | | |
Exercise of stock options (in shares) | 41,184 | | | | | | | | | |
Foreign currency translation loss, net of taxes | $ (4,571) | | | | | | | | | |
Net income (loss) | $ (38,976) | | | | | | | | | |
Treasury stock, ending balance (in shares) at Jun. 30, 2022 | | | | (14,487,582) | | | | | | |
Ending balance (in shares) at Jun. 30, 2022 | 69,666,983 | | 69,666,983 | | | | | | | |
Balance, at period end at Jun. 30, 2022 | $ 933,992 | | $ 348 | $ (162,344) | 1,176,763 | | (6,470) | (75,132) | | 827 |
Beginning balance (in shares) at Mar. 31, 2022 | | | 69,432,152 | | | | | | | |
Balance, at period start at Mar. 31, 2022 | 953,155 | | $ 347 | $ (147,566) | 1,153,892 | | (3,377) | (51,847) | | 1,706 |
Treasury stock, beginning balance (in shares) at Mar. 31, 2022 | | | | (14,257,056) | | | | | | |
Increase (decrease) in shareholders' equity | | | | | | | | | | |
Exercise of stock options (in shares) | | | 2,503 | | | | | | | |
Exercise of stock options | 84 | | | | 84 | | | | | |
Issuance of common stock - vesting of restricted stock units (in shares) | | | 232,328 | | | | | | | |
Issuance of common stock - vesting of restricted stock units | 1 | | $ 1 | | | | | | | |
Stock-based compensation expense | 22,876 | | | | 22,876 | | | | | |
Shares withheld to satisfy tax withholdings (in shares) | | | | (78,506) | | | | | | |
Shares withheld to satisfy tax withholdings | (5,543) | | | $ (5,543) | | | | | | |
Share repurchase (in shares) | | | | (152,020) | | | | | | |
Share repurchase | (9,235) | | | $ (9,235) | | | | | | |
Foreign currency translation loss, net of taxes | (3,093) | | | | | | (3,093) | | | |
Other | 15 | | | | (89) | | | | | 104 |
Net income (loss) | $ (24,268) | | | | | | | (23,285) | | (983) |
Treasury stock, ending balance (in shares) at Jun. 30, 2022 | | | | (14,487,582) | | | | | | |
Ending balance (in shares) at Jun. 30, 2022 | 69,666,983 | | 69,666,983 | | | | | | | |
Balance, at period end at Jun. 30, 2022 | $ 933,992 | | $ 348 | $ (162,344) | $ 1,176,763 | | $ (6,470) | $ (75,132) | | $ 827 |