XML 32 R21.htm IDEA: XBRL DOCUMENT
v3.22.2

Summary of Significant Accounting Policies (Tables) | 6 Months Ended
--- | ---
Jun. 30, 2022
Summary of Significant Accounting Policies |
Schedule of allowances for credit losses related to trade accounts receivable and other receivables | The following is a roll-forward of the allowances for credit losses related to trade accounts receivable and other receivables for the three and six months ended June 30, 2022 and 2021: ​
​ | ​ | ​ | ​ | ​ | ​ | ​
​ | ​ | Three Months Ended
​ |  | June 30,
​ | ​ | 2022 | ​ | ​ | 2021
​ | ​ | ​ | (in thousands)
Beginning balance | ​ | $ | 2,392 | ​ | $ | 4,110
Provision for credit losses | ​ | ​ | 1,170 | ​ | ​ | 63
Write-offs | ​ | ​ | (1) | ​ | ​ | (385)
Total | ​ | $ | 3,561 | ​ | $ | 3,788
​
​ | ​ | ​ | ​ | ​ | ​ | ​
​ | ​ | Six Months Ended
​ |  | June 30,
​ | ​ | 2022 | ​ | ​ | 2021
​ | ​ | ​ | (in thousands)
Beginning balance | ​ | $ | 2,429 | ​ | $ | 4,220
Provision for credit losses | ​ | ​ | 1,501 | ​ | ​ | 63
Write-offs | ​ | ​ | (369) | ​ | ​ | (495)
Total | ​ | $ | 3,561 | ​ | $ | 3,788
Schedule of Accumulated Other Comprehensive Income (Loss) |
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
​ | Three months ended | ​ | Six months ended
​ | June 30, | ​ | June 30,
​ | 2022 | ​ | 2021 | ​ | 2022 | ​ | 2021
​ | (in thousands) | ​ | (in thousands)
Beginning balance | $ | (13,904) | ​ | $ | 3,197 | ​ | $ | (2,287) | ​ | $ | 4,259
Net unrealized loss on available-for-sale securities, net of tax and foreign currency translation adjustment | ​ | (2,493) | ​ | ​ | (756) | ​ | ​ | (14,110) | ​ | ​ | (1,818)
Ending balance | $ | (16,397) | ​ | $ | 2,441 | ​ | $ | (16,397) | ​ | $ | 2,441

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

X
- Definition Tabular disclosure of allowance for credit loss on accounts receivable. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 20 -Section 50 -Paragraph 13 -URI http://asc.fasb.org/extlink&oid=124255953&loc=SL82919249-210447 + Details
Name: | us-gaap_AccountsReceivableAllowanceForCreditLossTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of the components of accumulated other comprehensive income (loss). + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 830 -SubTopic 30 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6450520&loc=d3e32583-110901 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 45 -Paragraph 14A -URI http://asc.fasb.org/extlink&oid=124509347&loc=SL7669686-108580 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 830 -SubTopic 30 -Section 45 -Paragraph 20 -URI http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900 + Details
Name: | us-gaap_ScheduleOfAccumulatedOtherComprehensiveIncomeLossTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration