NET INCOME (LOSS) PER SHARE - Schedule of Anti-Dilutive Shares (Details) - shares shares in Thousands |
12 Months Ended |
|
Dec. 31, 2021 |
Dec. 31, 2020 |
Sep. 09, 2014 |
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] |
|
|
|
| Total potentially dilutive common shares (in shares) |
2,917
|
4,699
|
|
| Convertible Senior Notes, 2.5% | Convertible debt |
|
|
|
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] |
|
|
|
| Interest rate |
2.50%
|
|
2.50%
|
| Convertible Senior Notes, 5.0% | Convertible debt |
|
|
|
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] |
|
|
|
| Interest rate |
5.00%
|
|
|
| Convertible debt | Convertible Senior Notes, 2.5% |
|
|
|
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] |
|
|
|
| Total potentially dilutive common shares (in shares) |
3
|
336
|
|
| Convertible debt | Convertible Senior Notes, 5.0% |
|
|
|
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] |
|
|
|
| Total potentially dilutive common shares (in shares) |
0
|
1,708
|
|
| Stock options, awards and equivalents |
|
|
|
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] |
|
|
|
| Total potentially dilutive common shares (in shares) |
2,914
|
2,655
|
|