Quarterly report pursuant to Section 13 or 15(d)

Debt - Notes (Details)

v3.7.0.1
Debt - Notes (Details) - USD ($)
$ in Thousands
3 Months Ended
Mar. 31, 2017
Mar. 31, 2016
Debt Instrument [Roll Forward]    
Amortization of debt issuance costs $ 56 $ 37
Change in fair value of embedded derivative 4,037 $ (1,423)
Notes    
Debt Instrument [Roll Forward]    
Embedded conversion option, beginning balance 16,736  
2033 Senior Notes, beginning balance 31,850  
Discount, beginning balance (4,612)  
Debt issuance cost, beginning balance (273)  
Total, beginning balance 43,701  
Amortization of debt discount 492  
Amortization of debt issuance costs 37  
Amortization of debt discount and debt issuance costs 529  
Change in fair value of embedded derivative (4,945)  
Embedded conversion option, ending balance 11,791  
2033 Senior Notes, ending balance 31,850  
Discount, ending balance (4,120)  
Debt issuance cost, ending balance (236)  
Total, ending balance $ 39,285