XML 50 R39.htm IDEA: XBRL DOCUMENT v3.7.0.1
Stock-based compensation (Details) - USD ($)
$ in Thousands
3 Months Ended
Mar. 31, 2017
Mar. 31, 2016
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]    
Allocated share-based compensation expense $ 1,766 $ 3,038
Shares issued 0 20,296
Cash received from exercise of options   $ 200
Research and development expense    
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]    
Allocated share-based compensation expense $ 982 1,458
General and administrative expense    
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]    
Allocated share-based compensation expense $ 784 $ 1,580