CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY (Unaudited) - USD ($) $ in Thousands | Total | Common Stock Issued [Member] | Treasury Stock [Member] | Additional Paid-In Capital [Member] | Additional Paid-In Capital [Member] Cumulative Effect Period Of Adoption Adjustment [Member] Revision Of Prior Period Accounting Standards Update Adjustment [Member] | Retained Earnings (Accumulated Deficit) [Member] | Retained Earnings (Accumulated Deficit) [Member] Cumulative Effect Period Of Adoption Adjustment [Member] Revision Of Prior Period Accounting Standards Update Adjustment [Member] | Accumulated Other Comprehensive Loss [Member] |
Beginning Balance, Shares at Dec. 31, 2020 | | 274,558,000 | (134,616,000) | | | | | |
Beginning Balance at Dec. 31, 2020 | $ 1,666,243 | $ 2,745 | $ (870,558) | $ 1,902,776 | | $ 633,118 | | $ (1,838) |
Beginning Balance (ASU 2020-06 [Member]) at Dec. 31, 2020 | | | | | $ 0 | | $ 0 | |
Stock-based compensation | | | | 25,861 | | | | |
Common stock issued under stock compensation plans, net of shares withheld for employee taxes, Shares | | 2,139,000 | | | | | | |
Common stock issued under stock compensation plans, net of shares withheld for employee taxes | | $ 21 | | (13,988) | | | | |
Issuance of treasury stock, Shares | | | 33,000 | | | | | |
Issuance of treasury stock | 534 | | $ 465 | 69 | | | | |
Purchase of treasury stock, Shares | | | (6,397,000) | | | | | |
Purchase of treasury stock | | | $ (108,953) | | | | | |
Accelerated share repurchase program, Shares | | | (13,146,000) | | | | | |
Accelerated share repurchase program | | | $ (234,269) | 34,269 | | | | |
Warrants issued | | | | 3,110 | | | | |
Net income (loss) | | | | | | 47,163 | | |
Foreign currency translation adjustments, net | 285 | | | | | | | (285) |
Unrecognized loss on derivatives qualifying as cash flow hedges, net of tax | | | | | | | | (1,119) |
Ending Balance, Shares at Sep. 30, 2021 | | 276,697,000 | (154,126,000) | | | | | |
Ending Balance at Sep. 30, 2021 | 1,418,587 | $ 2,766 | $ (1,213,315) | 1,952,097 | | 680,281 | | (3,242) |
Ending Balance (ASU 2020-06 [Member]) at Sep. 30, 2021 | | | | | | | 0 | |
Beginning Balance, Shares at Dec. 31, 2020 | | 274,558,000 | (134,616,000) | | | | | |
Beginning Balance at Dec. 31, 2020 | $ 1,666,243 | $ 2,745 | $ (870,558) | 1,902,776 | | 633,118 | | (1,838) |
Beginning Balance (ASU 2020-06 [Member]) at Dec. 31, 2020 | | | | | 0 | | 0 | |
Common stock issued under stock compensation plans, net of shares withheld for employee taxes, Shares | 2,200,000 | | | | | | | |
Ending Balance, Shares at Dec. 31, 2021 | 276,705,000 | 276,705,000 | (160,591,000) | | | | | |
Ending Balance at Dec. 31, 2021 | $ 1,408,138 | $ 2,766 | $ (1,321,805) | 1,962,386 | | 767,556 | | (2,765) |
Ending Balance (ASU 2020-06 [Member]) at Dec. 31, 2021 | | | | | (38,918) | | 12,477 | |
Beginning Balance, Shares at Jun. 30, 2021 | | 276,668,000 | (151,657,000) | | | | | |
Beginning Balance at Jun. 30, 2021 | 1,393,474 | $ 2,766 | $ (1,174,498) | 1,903,542 | | 664,101 | | (2,437) |
Beginning Balance (ASU 2020-06 [Member]) at Jun. 30, 2021 | | | | | 0 | | | |
Stock-based compensation | | | | 8,777 | | | | |
Common stock issued under stock compensation plans, net of shares withheld for employee taxes, Shares | | 29,000 | | | | | | |
Common stock issued under stock compensation plans, net of shares withheld for employee taxes | | $ 0 | | (76) | | | | |
Issuance of treasury stock, Shares | | | 0 | | | | | |
Issuance of treasury stock | | | $ 0 | 0 | | | | |
Purchase of treasury stock, Shares | | | 0 | | | | | |
Purchase of treasury stock | | | $ 0 | | | | | |
Accelerated share repurchase program, Shares | | | (2,469,000) | | | | | |
Accelerated share repurchase program | | | $ (38,817) | 38,817 | | | | |
Warrants issued | | | | 1,037 | | | | |
Net income (loss) | | | | | | 16,180 | | |
Foreign currency translation adjustments, net | (805) | | | | | | | (805) |
Unrecognized loss on derivatives qualifying as cash flow hedges, net of tax | | | | | | | | 0 |
Ending Balance, Shares at Sep. 30, 2021 | | 276,697,000 | (154,126,000) | | | | | |
Ending Balance at Sep. 30, 2021 | $ 1,418,587 | $ 2,766 | $ (1,213,315) | 1,952,097 | | 680,281 | | (3,242) |
Ending Balance (ASU 2020-06 [Member]) at Sep. 30, 2021 | | | | | | | 0 | |
Beginning Balance, Shares at Dec. 31, 2021 | 276,705,000 | 276,705,000 | (160,591,000) | | | | | |
Beginning Balance at Dec. 31, 2021 | $ 1,408,138 | $ 2,766 | $ (1,321,805) | 1,962,386 | | 767,556 | | (2,765) |
Beginning Balance (ASU 2020-06 [Member]) at Dec. 31, 2021 | | | | | (38,918) | | 12,477 | |
Stock-based compensation | | | | 24,503 | | | | |
Common stock issued under stock compensation plans, net of shares withheld for employee taxes, Shares | 2,900,000 | 2,895,000 | | | | | | |
Common stock issued under stock compensation plans, net of shares withheld for employee taxes | | $ 28 | | (32,707) | | | | |
Issuance of treasury stock, Shares | | | 0 | | | | | |
Issuance of treasury stock | $ 0 | | $ 0 | 0 | | | | |
Purchase of treasury stock, Shares | | | (9,749,000) | | | | | |
Purchase of treasury stock | | | $ (177,031) | | | | | |
Accelerated share repurchase program, Shares | | | 0 | | | | | |
Accelerated share repurchase program | | | $ 0 | 0 | | | | |
Warrants issued | | | | 8,295 | | | | |
Net income (loss) | | | | | | (26,641) | | |
Accounting Standards Update [Extensible List] | Stock-based compensation | | | | | | | |
Foreign currency translation adjustments, net | $ (808) | | | | | | | (808) |
Unrecognized loss on derivatives qualifying as cash flow hedges, net of tax | | | | | | | | (313) |
Ending Balance, Shares at Sep. 30, 2022 | 279,600,000 | 279,600,000 | (170,340,000) | | | | | |
Ending Balance at Sep. 30, 2022 | $ 1,177,023 | $ 2,794 | $ (1,498,836) | 1,923,559 | | 753,392 | | (3,886) |
Beginning Balance, Shares at Jun. 30, 2022 | | 279,175,000 | (168,383,000) | | | | | |
Beginning Balance at Jun. 30, 2022 | 1,196,348 | $ 2,790 | $ (1,465,177) | 1,923,805 | | 738,864 | | (3,934) |
Beginning Balance (ASU 2020-06 [Member]) at Jun. 30, 2022 | | | | | $ 0 | | $ 0 | |
Stock-based compensation | | | | 4,553 | | | | |
Common stock issued under stock compensation plans, net of shares withheld for employee taxes, Shares | | 425,000 | | | | | | |
Common stock issued under stock compensation plans, net of shares withheld for employee taxes | | $ 4 | | (4,799) | | | | |
Issuance of treasury stock, Shares | | | 0 | | | | | |
Issuance of treasury stock | | | $ 0 | 0 | | | | |
Purchase of treasury stock, Shares | | | (1,957,000) | | | | | |
Purchase of treasury stock | | | $ (33,659) | | | | | |
Accelerated share repurchase program, Shares | | | 0 | | | | | |
Accelerated share repurchase program | | | $ 0 | 0 | | | | |
Warrants issued | | | | 0 | | | | |
Net income (loss) | | | | | | 14,528 | | |
Foreign currency translation adjustments, net | $ 59 | | | | | | | 59 |
Unrecognized loss on derivatives qualifying as cash flow hedges, net of tax | | | | | | | | (11) |
Ending Balance, Shares at Sep. 30, 2022 | 279,600,000 | 279,600,000 | (170,340,000) | | | | | |
Ending Balance at Sep. 30, 2022 | $ 1,177,023 | $ 2,794 | $ (1,498,836) | $ 1,923,559 | | $ 753,392 | | $ (3,886) |