XML 26 R32.htm IDEA: XBRL DOCUMENT v2.4.1.9
Stock-Based Awards - Additional Information (Detail) (USD $)
In Thousands, except Share data, unless otherwise specified
3 Months Ended 0 Months Ended
Mar. 31, 2015
Jan. 01, 2015
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]    
Unrecognized stock-based compensation cost $ 26,317us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized  
Stock-based compensation recognized weighted average period 3 years 8 months 12 days  
Nonemployee Service Based Options [Member]    
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]    
Number of outstanding unvested shares held by nonemployees 10,683us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfShares
/ us-gaap_AwardTypeAxis
= zfgn_NonemployeeServiceBasedOptionsMember
 
2014 Employee Stock Purchase Plan [Member]    
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]    
Shares available for grant 262,136us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross
/ us-gaap_PlanNameAxis
= zfgn_TwoThousandAndFourteenEmployeeStockPurchasePlanMember
 
2014 Stock Option and Incentive Plan [Member]    
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]    
Shares available for grant 1,970,599us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant
/ us-gaap_PlanNameAxis
= zfgn_TwoThousandFourteenStockOptionMember
 
Shares added to plan   915,166us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOtherIncreasesDecreasesInPeriod
/ us-gaap_PlanNameAxis
= zfgn_TwoThousandFourteenStockOptionMember