Quarterly report pursuant to Section 13 or 15(d)

Stockholders' Equity - Summary of Stock Options Activity (Details)

v3.7.0.1
Stockholders' Equity - Summary of Stock Options Activity (Details) - $ / shares
6 Months Ended 12 Months Ended
Jun. 30, 2017
Dec. 31, 2016
Class Of Stock [Line Items]    
Stock Options Outstanding, Beginning balance 2,355,527  
Stock Options, Granted 64,498  
Stock Options, Exercised (308,132)  
Stock Options, Forfeited (62,424)  
Stock Options, Expired (33)  
Stock Options Outstanding, Ending balance 2,049,436 2,355,527
Stock Options, Vested and exercisable 1,106,535  
Stock Options, Vested and expected to vest 1,984,249  
Price per share, Granted $ 83.30  
Price per share, Expired 8.70  
Outstanding, Weighted-average exercise price, Beginning balance 28.22  
Weighted-average exercise price, Granted 83.30  
Weighted-average exercise price, Exercised 21.68  
Weighted-average exercise price, Forfeited 43.75  
Weighted-average exercise price, Expired 8.70  
Outstanding, Weighted-average exercise price, Ending balance 30.47 $ 28.22
Weighted-average exercise price, Vested and exercisable 21.62  
Weighted-average exercise price, Vested and expected to vest $ 30.18  
Remaining weighted-average contractual term, Outstanding 5 years 26 days 5 years 5 months 1 day
Remaining weighted-average contractual term, Vested and exercisable 4 years 9 months 29 days  
Remaining weighted-average contractual term, Vested and expected to vest 5 years 22 days  
Outstanding, Per share average intrinsic value $ 64.95 $ 38.95
Per share average intrinsic value, Vested and exercisable 73.80  
Per share average intrinsic value, Vested and expected to vest 65.24  
Minimum    
Class Of Stock [Line Items]    
Outstanding, Price per share, Beginning balance 0.60  
Price per share, Exercised 0.60  
Price per share, Forfeited 24.52  
Outstanding, Price per share, Ending balance 0.60 0.60
Price per share, Vested and exercisable 0.60  
Price per share, Vested and expected to vest 0.60  
Maximum    
Class Of Stock [Line Items]    
Outstanding, Price per share, Beginning balance 58.95  
Price per share, Exercised 56.72  
Price per share, Forfeited 58.95  
Outstanding, Price per share, Ending balance 83.30 $ 58.95
Price per share, Vested and exercisable 83.30  
Price per share, Vested and expected to vest $ 83.30