XML 32 R21.htm IDEA: XBRL DOCUMENT v3.21.2
Summary of Significant Accounting Policies (Tables)
6 Months Ended
Jun. 30, 2021
Summary Of Significant Accounting Policies [Line Items]  
Schedule of allowances for credit losses

​

​

​

​

​

​

​

Six Months Ended

​

    

June 30, 

​

​

2021

​

​

​

(in thousands)

Beginning balance

​

$

4,220

Provision for credit losses

​

​

63

Write-offs

​

​

(495)

Total

​

$

3,788

​

​

​

​

Schedule of Accumulated Other Comprehensive Income (Loss)

​

​

​

​

​

​

​

​

​

​

​

​

​

​

Three months ended

​

Six months ended

​

June 30, 

​

June 30, 

​

2021

​

2020

​

2021

​

2020

​

(in thousands)

​

(in thousands)

Beginning balance

$

3,197

​

$

5,666

​

$

4,259

​

$

919

Net unrealized gain (loss) on available-for-sale securities, net of tax

​

(756)

​

​

104

​

​

(1,818)

​

​

4,851

Ending balance

$

2,441

​

$

5,770

​

$

2,441

​

$

5,770

Accounting Standards Update 2020-06  
Summary Of Significant Accounting Policies [Line Items]  
Schedule of new accounting pronouncements and changes in accounting principle

​

​

​

​

​

​

​

​

​

​

​

December 31, 

​

ASU 2020-06

​

January 1,

​

2020

​

Adoption Adjustment

​

2021

​

(in thousands)

Liabilities

​

​

​

​

​

​

​

​

Outstanding Principal

$

287,500

​

$

—

​

$

287,500

Unamortized debt discount and issuance cost

​

(85,007)

​

​

76,674

​

​

(8,333)

Net carrying amount

$

202,493

​

$

76,674

​

$

279,167

​

​

​

​

​

​

​

​

​

Equity

​

​

​

​

​

​

​

​

Additional paid-in-capital

$

(1,411,286)

​

$

82,872

​

$

(1,328,414)

Accumulated deficit

​

(929,318)

​

​

6,198

​

​

(923,120)