LEASES (Details) $ in Thousands  | 
 Dec. 31, 2022  
USD ($)  
ft² 
 | 
 Oct. 28, 2022  
USD ($) 
 | 
 Dec. 31, 2021  
USD ($) 
 | 
|---|---|---|---|
| Sublease Agreement | |||
| Right-of-use assets | $ 1,930 | $ 9,703 | |
| Weighted average remaining lease term | 2 years 6 months | ||
| Research and office space lease, South San Francisco, California | |||
| Sublease Agreement | |||
| Area of real estate property (square feet) | ft² | 147,000 | ||
| Leasehold improvement incentives from landlord | $ 700 | ||
| Research and office space sublease, South San Francisco, California | |||
| Sublease Agreement | |||
| Area of real estate property (square feet) | ft² | 66,000 | ||
| Headquarters office space sublease, South San Francisco, California | |||
| Sublease Agreement | |||
| Area of real estate property (square feet) | ft² | 13,670 | ||
| Right-of-use assets | $ 1,300 | ||
| Lease liability | $ 1,300 | ||
| Leasehold improvement incentives from landlord | $ 200 | 
| X | ||||||||||
- References No definition available. 
  | 
| X | ||||||||||
- Definition Area of a real estate property. No definition available. 
  | 
| X | ||||||||||
- Definition Amount of incentive granted by lessor to lessee. Reference 1: http://fasb.org/us-gaap/role/ref/otherTransitionRef 
  | 
| X | ||||||||||
- Definition Present value of lessee's discounted obligation for lease payments from operating lease. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
  | 
| X | ||||||||||
- Definition Amount of lessee's right to use underlying asset under operating lease. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
  | 
| X | ||||||||||
- Definition Weighted average remaining lease term for operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. Reference 1: http://www.xbrl.org/2003/role/exampleRef 
  | 
| X | ||||||||||
- Details 
  | 
| X | ||||||||||
- Details 
  | 
| X | ||||||||||
- Details 
  |