v3.5.0.2
Fair Value Measurements - Preferred Stock Warrants (Details)
$ / shares in Units, $ in Thousands
3 Months Ended 9 Months Ended
Sep. 26, 2016
USD ($)
$ / shares
shares
Sep. 02, 2016
Sep. 30, 2016
USD ($)
Sep. 30, 2015
USD ($)
Sep. 30, 2016
USD ($)
Sep. 30, 2015
USD ($)
Dec. 31, 2015
USD ($)
Changes in fair value of preferred stock warrants              
Reverse stock split ratio   0.3333          
Aggregate fair value of warrants             $ 6,927
IPO              
Changes in fair value of preferred stock warrants              
IPO price (in dollars per share) | $ / shares $ 18.00            
Class B common stock              
Changes in fair value of preferred stock warrants              
Stock issued in net exercise of warrants (in shares) | shares 448,545            
Convertible Preferred Stock Warrants              
Changes in fair value of preferred stock warrants              
Beginning balance     $ 7,943 $ 1,455 $ 6,927 $ 966  
Changes in value of preferred stock warrants recorded in other expense, net     4,653 673 9,458 1,162  
Reclassification to convertible preferred stock upon net exercise of Series Seed warrant         (3,789)    
Conversion of preferred stock warrants to common stock warrants upon the closing of the Company's IPO on September 26, 2016     $ (12,596)   $ (12,596)    
Ending balance       $ 2,128   $ 2,128  
Outstanding warrants converted during the period (in shares) | shares 1,382,505            
Aggregate fair value of warrants $ 12,600            
Class B Common Stock Warrants              
Changes in fair value of preferred stock warrants              
Warrants issued in conversion (in shares) | shares 460,834            
Stock issued in net exercise of warrants (in shares) | shares 448,545