Quarterly report pursuant to Section 13 or 15(d)

Stock-Based Payments - Stock Options (Details)

v3.7.0.1
Stock-Based Payments - Stock Options (Details) - USD ($)
$ / shares in Units, $ in Thousands
6 Months Ended 12 Months Ended
Jun. 30, 2017
Dec. 31, 2016
Shares    
Outstanding at beginning of year (in shares) 2,543,435  
Granted (in shares) 1,044,900  
Exercised (in shares) (253,340)  
Cancelled (in shares) (290,902)  
Outstanding at end of period (in shares) 3,044,093 2,543,435
Exercisable (in shares) 786,794  
Vested and expected to vest (in shares) 3,044,093  
Weighted Average Exercise Price    
Outstanding at beginning of year (in dollars per share) $ 6.44  
Granted (in dollars per share) 11.65  
Exercised (in dollars per share) 2.82  
Cancelled (in dollars per share) 5.94  
Outstanding at end of period (in dollars per share) 8.57 $ 6.44
Exercisable (in dollars per share) 4.52  
Vested and expected to vest (in dollars per share) $ 8.57  
Remaining Contractual Life    
Outstanding 8 years 6 months 8 years 3 months 18 days
Exercisable 7 years 3 months 18 days  
Vested and expected to vest 8 years 6 months  
Aggregate Intrinsic Value    
Outstanding $ 22,880 $ 14,898
Exercisable 9,105  
Vested and expected to vest 22,880  
Intrinsic value of options exercised 3,200  
Performance-based stock options    
Stock-based payments    
Unrecognized compensation costs $ 800  
Period in which compensation costs will be recognized 3 years 1 month 6 days  
Performance-based stock options | Maximum    
Stock-based payments    
Vesting period 6 years  
Performance-based stock options | Advisor    
Stock-based payments    
Unrecognized compensation costs $ 1,100  
Period in which compensation costs will be recognized 9 years 2 months 12 days  
Shares    
Granted (in shares)   75,000