| INTANGIBLE ASSETS - Intangible assets (Details) - USD ($) $ in Thousands | 3 Months Ended | 9 Months Ended | |||
|---|---|---|---|---|---|
| Sep. 30, 2024 | Sep. 30, 2023 | Sep. 30, 2024 | Sep. 30, 2023 | Dec. 31, 2023 | |
| INTANGIBLE ASSETS | |||||
| Intangible assets - product licenses | $ 37,925 | $ 37,925 | $ 37,925 | ||
| Accumulated Amortization | (16,938) | (16,938) | (14,495) | ||
| Accumulated impairment loss | (3,143) | (3,143) | (3,143) | ||
| Total | 17,844 | 17,844 | $ 20,287 | ||
| Amortization expense | 2,443 | $ 2,952 | |||
| Cost of goods sold | |||||
| INTANGIBLE ASSETS | |||||
| Amortization expense | $ 800 | $ 800 | $ 2,400 | $ 3,000 | |
| Minimum | |||||
| INTANGIBLE ASSETS | |||||
| Estimated Useful Lives (Years) | 3 years | 3 years | 3 years | ||
| Maximum | |||||
| INTANGIBLE ASSETS | |||||
| Estimated Useful Lives (Years) | 9 years | 9 years | 9 years | ||
| X | ||||||||||
| 
- Definition Accumulated amount of impairment of assets, excluding financial assets and goodwill, lacking physical substance with a finite life. No definition available. 
 | 
| X | ||||||||||
| 
- Definition The aggregate expense charged against earnings to allocate the cost of intangible assets (nonphysical assets not used in production) in a systematic and rational manner to the periods expected to benefit from such assets. As a noncash expense, this element is added back to net income when calculating cash provided by or used in operations using the indirect method. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Useful life of finite-lived intangible assets, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. No definition available. 
 | 
| X | ||||||||||
| 
- Definition Accumulated amount of amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life. Reference 1: http://www.xbrl.org/2003/role/exampleRef 
 | 
| X | ||||||||||
| 
- Definition Amount before amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life. Reference 1: http://www.xbrl.org/2003/role/exampleRef 
 | 
| X | ||||||||||
| 
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. Reference 1: http://www.xbrl.org/2003/role/exampleRef 
 | 
| X | ||||||||||
| 
- Definition Amount after amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef 
 | 
| X | ||||||||||
| 
- Details 
 | 
| X | ||||||||||
| 
- Details 
 | 
| X | ||||||||||
| 
- Details 
 |