XML 36 R20.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Other comprehensive income (loss) and accumulated other comprehensive items | 12 Months Ended
--- | ---
Dec. 31, 2021
Comprehensive Income (Loss), Net of Tax, Attributable to Parent [Abstract] |
Other comprehensive income (loss) and accumulated other comprehensive items | 12. Other comprehensive income (loss) and accumulated other comprehensive items Other comprehensive income (loss) includes changes in equity that are excluded from net loss, such as unrealized gains and losses on marketable securities. The following table summarizes other comprehensive income (loss) and the changes in accumulated other comprehensive items, by component, for the years ended December 31, 2021, 2020, and 2019, respectively. ​
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
​ |  | Unrealized |  | ​ | ​ |  | Total
​ | ​ | Gains (Losses) | ​ | ​ | ​ | ​ | Accumulated
​ | ​ | On | ​ | Foreign | ​ | Other
​ | ​ | Marketable | ​ | Currency | ​ | Comprehensive
​ | ​ | Securities, net of tax | ​ | Translation | ​ | Items
Balance at December 31, 2018 | ​ | $ | 31 | ​ | $ | 1,431 | ​ | $ | 1,462
Other comprehensive income (loss) before reclassifications | ​ |  | 724 | ​ |  | (12,770) | ​ |  | (12,046)
Amounts reclassified from other comprehensive items | ​ |  | — | ​ |  | — | ​ |  | —
Other comprehensive income (loss) | ​ |  | 724 | ​ |  | (12,770) | ​ |  | (12,046)
Balance at December 31, 2019 | ​ | $ | 755 | ​ | $ | (11,339) | ​ | $ | (10,584)
Other comprehensive income (loss) before reclassifications | ​ |  | 479 | ​ |  | (51,518) | ​ |  | (51,039)
Amounts reclassified from other comprehensive items | ​ |  | 666 | ​ |  | — | ​ |  | 666
Other comprehensive income (loss) | ​ |  | 1,145 | ​ |  | (51,518) | ​ |  | (50,373)
Balance at December 31, 2020 | ​ | $ | 1,900 | ​ | $ | (62,857) | ​ | $ | (60,957)
Other comprehensive (loss) income before reclassifications | ​ |  | (3,279) | ​ |  | 39,177 | ​ |  | 35,898
Amounts reclassified from other comprehensive items | ​ |  | 777 | ​ |  | — | ​ |  | 777
Other comprehensive (loss) income | ​ |  | (2,502) | ​ |  | 39,177 | ​ |  | 36,675
Balance at December 31, 2021 | ​ | $ | (602) | ​ | $ | (23,680) | ​ | $ | (24,282)
​ Reclassified amounts from other comprehensive items were determined using the actual realized gains and losses from the sales of marketable securities.

X
- References No definition available. + Details
Name: | us-gaap_ComprehensiveIncomeNetOfTaxAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The entire disclosure for comprehensive income, which includes, but is not limited to, 1) the amount of income tax expense or benefit allocated to each component of other comprehensive income, including reclassification adjustments, 2) the reclassification adjustments for each classification of other comprehensive income and 3) the ending accumulated balances for each component of comprehensive income. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -URI http://asc.fasb.org/topic&trid=2134417 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03(21)) -URI http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 220 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-04(23)) -URI http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 220 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-04(19)) -URI http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263 + Details
Name: | us-gaap_ComprehensiveIncomeNoteTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration