XML 104 R85.htm IDEA: XBRL DOCUMENT v3.8.0.1
Loan and Security Agreement and Convertible Notes - Future Minimum Payments under the Loan and Security Agreement (Details) - USD ($)
$ in Thousands
Dec. 31, 2017
Dec. 21, 2017
Dec. 31, 2016
Debt Disclosure [Abstract]      
Amount due in 2018 $ 2,366    
Amount due in 2019 2,500    
Amount due in 2020 2,500    
Amount due in 2021 2,500    
Amount due in 2022 2,500    
Amount due in 2023 50,134    
Total future minimum payments 62,500    
Unpaid interest (12,500)    
Unamortized debt discount (44,705) $ (44,800)  
Capitalized debt issuance costs (84)    
Total minimum payment 5,211   $ 47,107
Current portion 0   $ (209)
Long-term debt $ 5,211