XML 45 R35.htm IDEA: XBRL DOCUMENT v3.7.0.1
Stock-based compensation - Narrative (Details) - USD ($)
6 Months Ended
Jun. 30, 2017
Sep. 30, 2014
Apr. 30, 2014
Mar. 31, 2014
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Unrecognized compensation cost $ 7,132,098      
Unrecognized compensation cost, recognition period (in years) 2 years 4 months 17 days      
Employee stock option        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Stock options, contractual term 10 years      
Minimum | Employee stock option        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Stock options, vesting period (in years) 1 year      
Maximum | Employee stock option        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Stock options, vesting period (in years) 4 years      
Flex Pharma, Inc. 2014 Equity Incentive Plan        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Shares authorized   2,070,200 1,451,087 116,754
2015 Equity Incentive Plan        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Shares remaining available for grant of stock awards 771,983