Annual report pursuant to Section 13 and 15(d)

Summary of Significant Accounting Policies - Changes in Accumulated other comprehensive (loss) income (Details)

v3.20.4
Summary of Significant Accounting Policies - Changes in Accumulated other comprehensive (loss) income (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2020
Dec. 31, 2019
Dec. 31, 2018
Changes in the Accumulated other comprehensive loss (income)      
Balance at the beginning of the period $ 123,638 $ 246,885 $ 202,984
Foreign currency translation adjustments (19,220) (9,478) 8,260
Foreign currency gains on intercompany loan of a long-term investment nature, net of tax of $0 16,364 11,783  
Unrealized holding gains on available-for-sale debt securities, net of tax of $0 161 207 1,145
Reclassification adjustment for gains on available-for-sale debt securities included in net loss, net of tax of $0 (89) (13) 2,473
Balance at the end of the period 341,227 123,638 246,885
Foreign currency gains (losses) on intercompany loan of a long-term investment nature, tax 0 0 0
Unrealized holding gains on available-for-sale debt securities, tax 0 0 0
Reclassification from accumulated other comprehensive (loss) income of gains on available-for-sale debt securities included in net income (loss), tax 0 0 0
Other (expense) income, net      
Changes in the Accumulated other comprehensive loss (income)      
Reclassification from accumulated other comprehensive (loss) income of gains on available-for-sale debt securities included in net income (loss), tax (89) (13) 2,473
Accumulated other comprehensive (loss) income      
Changes in the Accumulated other comprehensive loss (income)      
Balance at the beginning of the period (7,264) (9,763) (21,641)
Foreign currency translation adjustments (19,220) (9,478) 8,260
Foreign currency gains on intercompany loan of a long-term investment nature, net of tax of $0 16,364 11,783  
Unrealized holding gains on available-for-sale debt securities, net of tax of $0 161 207 1,145
Reclassification adjustment for gains on available-for-sale debt securities included in net loss, net of tax of $0 (89) (13) 2,473
Balance at the end of the period (10,048) (7,264) (9,763)
Accumulated foreign currency translation adjustments      
Changes in the Accumulated other comprehensive loss (income)      
Balance at the beginning of the period (7,302) (9,607) (17,867)
Foreign currency translation adjustments (19,220) (9,478) 8,260
Foreign currency gains on intercompany loan of a long-term investment nature, net of tax of $0 16,364 11,783  
Balance at the end of the period (10,158) (7,302) (9,607)
Accumulated unrealized (losses) gains on available-for-sale debt securities      
Changes in the Accumulated other comprehensive loss (income)      
Balance at the beginning of the period 38 (156) (3,774)
Unrealized holding gains on available-for-sale debt securities, net of tax of $0 161 207 1,145
Reclassification adjustment for gains on available-for-sale debt securities included in net loss, net of tax of $0 (89) (13) 2,473
Balance at the end of the period $ 110 $ 38 $ (156)