XML 73 R63.htm IDEA: XBRL DOCUMENT v3.20.2
Common Stock and Stock-Based Compensation - Options and restricted stock units granted to employees and nonemployees (Details) - Employees and Nonemployees Stock Option and Restricted Stock Units - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Jun. 30, 2020
Jun. 30, 2019
Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items]        
Stock-based compensation expense $ 9,425 $ 7,991 $ 18,980 $ 17,486
Capitalized stock-based compensation expense into inventory 438 513 872 831
Cost of Goods Sold        
Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items]        
Stock-based compensation expense 176   221  
Research and Development Expense.        
Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items]        
Stock-based compensation expense 3,495 2,963 7,085 6,622
Selling, General and Administrative Expenses        
Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items]        
Stock-based compensation expense $ 5,754 $ 5,028 $ 11,674 $ 10,864