Quarterly report pursuant to Section 13 or 15(d)

FAIR VALUE MEASUREMENTS - Schedule of fair value of impaired notes receivable (Details)

v3.21.2
FAIR VALUE MEASUREMENTS - Schedule of fair value of impaired notes receivable (Details) - USD ($)
$ in Thousands
Jun. 30, 2021
Dec. 31, 2020
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Marketable securities $ 57,357 $ 0
Fair Value, Inputs, Level 2    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Cash equivalents 67,155 177,912
Marketable securities 57,357 0
Notes receivable 5,906 2,937
Accounts receivable 4,377 3,901
Fair Value, Inputs, Level 3    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Notes receivable impaired $ 0 $ 875