XML 80 R38.htm IDEA: XBRL DOCUMENT
v2.4.1.9

Redeemable Convertible Preferred Stock - Additional Information (Detail) (USD $) In Thousands, except Share data, unless otherwise specified | 9 Months Ended | 12 Months Ended | 1 Months Ended
--- | --- | --- | ---
Sep. 30, 2014 | Sep. 30, 2013 | Dec. 31, 2013 | Dec. 31, 2012 | Dec. 31, 2011 | Feb. 29, 2012 | Jan. 31, 2013 | Nov. 30, 2012 | Nov. 30, 2013
Temporary Equity [Line Items] |  |  |  |  |  |  |  |  |
Preferred stock, shares authorized | 0 us-gaap_TemporaryEquitySharesAuthorized |  | 99,292,610 us-gaap_TemporaryEquitySharesAuthorized | 78,372,931 us-gaap_TemporaryEquitySharesAuthorized |  |  |  |  |
Preferred stock, par value | $ 0.001 us-gaap_TemporaryEquityParOrStatedValuePerShare |  | $ 0.001 us-gaap_TemporaryEquityParOrStatedValuePerShare | $ 0.001 us-gaap_TemporaryEquityParOrStatedValuePerShare |  |  |  |  |
Preferred stock, shares issued | 0 us-gaap_TemporaryEquitySharesIssued |  | 94,483,404 us-gaap_TemporaryEquitySharesIssued | 73,991,017 us-gaap_TemporaryEquitySharesIssued |  |  |  |  |
Proceeds from issuance of shares | $ 442 us-gaap_ProceedsFromIssuanceOfRedeemableConvertiblePreferredStock | $ 5,955 us-gaap_ProceedsFromIssuanceOfRedeemableConvertiblePreferredStock | $ 40,799 us-gaap_ProceedsFromIssuanceOfRedeemableConvertiblePreferredStock | $ 16,057 us-gaap_ProceedsFromIssuanceOfRedeemableConvertiblePreferredStock | $ 10,069 us-gaap_ProceedsFromIssuanceOfRedeemableConvertiblePreferredStock |  |  |  |
Stock issuance cost | 2,312 us-gaap_PaymentsOfStockIssuanceCosts | 165 us-gaap_PaymentsOfStockIssuanceCosts | 196 us-gaap_PaymentsOfStockIssuanceCosts |  |  |  |  |  |
Percentage of redeemable preferred stock voting for conversion |  |  | 70.00%zfgn_PercentageOfOutstandingPreferredShareholdersVoteRequiredForConversion |  |  |  |  |  |
Proceeds from public offering | 102,672 us-gaap_ProceedsFromIssuanceInitialPublicOffering |  |  |  |  |  |  |  |
Convertible preferred stock, conversion ratio |  |  | 6.28 us-gaap_StockholdersEquityNoteStockSplitConversionRatio1 |  |  |  |  |  |
Series C Preferred Stock [Member] |  |  |  |  |  |  |  |  |
Temporary Equity [Line Items] |  |  |  |  |  |  |  |  |
Preferred stock, shares authorized |  |  | 16,732,284 us-gaap_TemporaryEquitySharesAuthorized / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesCPreferredStockMember | 16,732,284 us-gaap_TemporaryEquitySharesAuthorized / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesCPreferredStockMember |  |  |  |  |
Preferred stock, shares issued |  |  | 16,732,284 us-gaap_TemporaryEquitySharesIssued / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesCPreferredStockMember | 16,732,284 us-gaap_TemporaryEquitySharesIssued / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesCPreferredStockMember | 8,923,884 us-gaap_TemporaryEquitySharesIssued / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesCPreferredStockMember | 7,808,400 us-gaap_TemporaryEquitySharesIssued / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesCPreferredStockMember |  |  |
Convertible preferred stock, original issue price |  |  | $ 0.9061 us-gaap_SharesIssuedPricePerShare / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesCPreferredStockMember |  | $ 0.9061 us-gaap_SharesIssuedPricePerShare / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesCPreferredStockMember | $ 0.9061 us-gaap_SharesIssuedPricePerShare / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesCPreferredStockMember |  |  |
Proceeds from issuance of shares |  |  |  |  | 8,086 us-gaap_ProceedsFromIssuanceOfRedeemableConvertiblePreferredStock / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesCPreferredStockMember | 7,075 us-gaap_ProceedsFromIssuanceOfRedeemableConvertiblePreferredStock / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesCPreferredStockMember |  |  |
Stock issuance cost |  |  |  | 8 us-gaap_PaymentsOfStockIssuanceCosts / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesCPreferredStockMember | 33 us-gaap_PaymentsOfStockIssuanceCosts / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesCPreferredStockMember | 8 us-gaap_PaymentsOfStockIssuanceCosts / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesCPreferredStockMember |  |  |
Percentage of redeemable preferred stock voting for conversion |  |  | 70.00%zfgn_PercentageOfOutstandingPreferredShareholdersVoteRequiredForConversion / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesCPreferredStockMember |  |  |  |  |  |
Convertible preferred stock, conversion price |  |  | $ 5.690308 us-gaap_PreferredStockRedemptionPricePerShare / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesCPreferredStockMember |  |  |  |  |  |
Series D Preferred Stock [Member] |  |  |  |  |  |  |  |  |
Temporary Equity [Line Items] |  |  |  |  |  |  |  |  |
Preferred stock, shares authorized |  |  | 16,011,162 us-gaap_TemporaryEquitySharesAuthorized / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesDPreferredStockMember | 16,011,162 us-gaap_TemporaryEquitySharesAuthorized / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesDPreferredStockMember |  |  |  |  |
Preferred stock, shares issued |  |  | 16,011,162 us-gaap_TemporaryEquitySharesIssued / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesDPreferredStockMember | 11,629,248 us-gaap_TemporaryEquitySharesIssued / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesDPreferredStockMember |  |  | 4,381,914 us-gaap_TemporaryEquitySharesIssued / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesDPreferredStockMember | 6,653,988 us-gaap_TemporaryEquitySharesIssued / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesDPreferredStockMember |
Convertible preferred stock, original issue price |  |  | $ 1.3592 us-gaap_SharesIssuedPricePerShare / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesDPreferredStockMember |  |  |  | $ 1.3592 us-gaap_SharesIssuedPricePerShare / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesDPreferredStockMember | $ 1.3592 us-gaap_SharesIssuedPricePerShare / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesDPreferredStockMember |
Proceeds from issuance of shares |  |  |  |  |  |  | 5,956 us-gaap_ProceedsFromIssuanceOfRedeemableConvertiblePreferredStock / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesDPreferredStockMember | 9,044 us-gaap_ProceedsFromIssuanceOfRedeemableConvertiblePreferredStock / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesDPreferredStockMember |
Stock issuance cost |  |  | 1 us-gaap_PaymentsOfStockIssuanceCosts / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesDPreferredStockMember | 54 us-gaap_PaymentsOfStockIssuanceCosts / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesDPreferredStockMember |  |  | 1 us-gaap_PaymentsOfStockIssuanceCosts / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesDPreferredStockMember | 54 us-gaap_PaymentsOfStockIssuanceCosts / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesDPreferredStockMember |
Promissory notes principal amount |  |  |  |  |  |  |  | 6,000 us-gaap_DebtInstrumentFaceAmount / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesDPreferredStockMember |
Promissory notes accrued interest amount |  |  |  |  |  |  |  | 86 us-gaap_DebtInstrumentIncreaseAccruedInterest / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesDPreferredStockMember |
Promissory notes accrued interest amount converted into shares |  |  |  |  |  |  |  | 4,975,260 us-gaap_DebtConversionConvertedInstrumentSharesIssued1 / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesDPreferredStockMember |
Percentage of redeemable preferred stock voting for conversion |  |  | 65.00%zfgn_PercentageOfOutstandingPreferredShareholdersVoteRequiredForConversion / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesDPreferredStockMember |  |  |  |  |  |
Convertible preferred stock, conversion price |  |  | $ 8.535776 us-gaap_PreferredStockRedemptionPricePerShare / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesDPreferredStockMember |  |  |  |  |  |
Series E Preferred Stock [Member] |  |  |  |  |  |  |  |  |
Temporary Equity [Line Items] |  |  |  |  |  |  |  |  |
Preferred stock, shares authorized |  |  | 20,919,679 us-gaap_TemporaryEquitySharesAuthorized / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesEPreferredStockMember |  |  |  |  |  |
Preferred stock, shares issued |  |  | 16,110,473 us-gaap_TemporaryEquitySharesIssued / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesEPreferredStockMember |  |  |  |  |  | 16,110,473 us-gaap_TemporaryEquitySharesIssued / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesEPreferredStockMember
Convertible preferred stock, original issue price |  |  | $ 2.1725 us-gaap_SharesIssuedPricePerShare / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesEPreferredStockMember |  |  |  |  |  | $ 2.1725 us-gaap_SharesIssuedPricePerShare / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesEPreferredStockMember
Proceeds from issuance of shares |  |  |  |  |  |  |  |  | 35,000 us-gaap_ProceedsFromIssuanceOfRedeemableConvertiblePreferredStock / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesEPreferredStockMember
Stock issuance cost |  |  | 156 us-gaap_PaymentsOfStockIssuanceCosts / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesEPreferredStockMember |  |  |  |  |  | 156 us-gaap_PaymentsOfStockIssuanceCosts / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesEPreferredStockMember
Convertible preferred stock, conversion price |  |  | $ 13.6433 us-gaap_PreferredStockRedemptionPricePerShare / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesEPreferredStockMember |  |  |  |  |  |
Series A Preferred Stock [Member] |  |  |  |  |  |  |  |  |
Temporary Equity [Line Items] |  |  |  |  |  |  |  |  |
Preferred stock, shares authorized |  |  | 5,363,239 us-gaap_TemporaryEquitySharesAuthorized / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesAPreferredStockMember | 5,363,239 us-gaap_TemporaryEquitySharesAuthorized / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesAPreferredStockMember |  |  |  |  |
Preferred stock, shares issued |  |  | 5,363,239 us-gaap_TemporaryEquitySharesIssued / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesAPreferredStockMember | 5,363,239 us-gaap_TemporaryEquitySharesIssued / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesAPreferredStockMember |  |  |  |  |
Convertible preferred stock, original issue price |  |  | $ 0.419463 us-gaap_SharesIssuedPricePerShare / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesAPreferredStockMember |  |  |  |  |  |
Percentage of redeemable preferred stock voting for conversion |  |  | 70.00%zfgn_PercentageOfOutstandingPreferredShareholdersVoteRequiredForConversion / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesAPreferredStockMember |  |  |  |  |  |
Convertible preferred stock, conversion price |  |  | $ 2.63422764 us-gaap_PreferredStockRedemptionPricePerShare / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesAPreferredStockMember |  |  |  |  |  |
Series B Preferred Stock [Member] |  |  |  |  |  |  |  |  |
Temporary Equity [Line Items] |  |  |  |  |  |  |  |  |
Preferred stock, shares authorized |  |  | 40,266,246 us-gaap_TemporaryEquitySharesAuthorized / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesBPreferredStockMember | 40,266,246 us-gaap_TemporaryEquitySharesAuthorized / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesBPreferredStockMember |  |  |  |  |
Preferred stock, shares issued |  |  | 40,266,246 us-gaap_TemporaryEquitySharesIssued / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesBPreferredStockMember | 40,266,246 us-gaap_TemporaryEquitySharesIssued / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesBPreferredStockMember |  |  |  |  |
Convertible preferred stock, original issue price |  |  | $ 0.75503 us-gaap_SharesIssuedPricePerShare / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesBPreferredStockMember |  |  |  |  |  |
Stock issuance cost |  |  |  |  | 9 us-gaap_PaymentsOfStockIssuanceCosts / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesBPreferredStockMember |  |  |  |
Percentage of redeemable preferred stock voting for conversion |  |  | 70.00%zfgn_PercentageOfOutstandingPreferredShareholdersVoteRequiredForConversion / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesBPreferredStockMember |  |  |  |  |  |
Convertible preferred stock, conversion price |  |  | $ 4.7415884 us-gaap_PreferredStockRedemptionPricePerShare / us-gaap_StatementClassOfStockAxis = us-gaap_SeriesBPreferredStockMember |  |  |  |  |  |
Redeemable Preferred Stock [Member] |  |  |  |  |  |  |  |  |
Temporary Equity [Line Items] |  |  |  |  |  |  |  |  |
Percentage of redeemable preferred stock voting for conversion |  |  | 70.00%zfgn_PercentageOfOutstandingPreferredShareholdersVoteRequiredForConversion / us-gaap_StatementClassOfStockAxis = us-gaap_RedeemablePreferredStockMember |  |  |  |  |  |
Proceeds from public offering |  |  | $ 35,000 us-gaap_ProceedsFromIssuanceInitialPublicOffering / us-gaap_StatementClassOfStockAxis = us-gaap_RedeemablePreferredStockMember |  |  |  |  |  |
Preferred stock, conversion terms |  |  | Each share of Redeemable Preferred Stock is convertible into common stock at the option of the stockholder at any time after the date of issuance. Each share of the preferred stock will automatically be converted into shares of common stock, at the applicable Series A, Series B, Series C, Series D and Series E redeemable convertible preferred stock conversion ratio then in effect, upon a qualified public offering with net proceeds of not less than $35,000. |  |  |  |  |  |
Redemption date |  |  | Nov. 22, 2017 |  |  |  |  |  |
Number of annual installments |  |  | 3 zfgn_NumberOfAnnualInstallment / us-gaap_StatementClassOfStockAxis = us-gaap_RedeemablePreferredStockMember |  |  |  |  |  |

X
- Definition Specific terms relevant to convertibility. Includes class of preferred stock and number of shares convertible into, exercise (or conversion) price or rates, dates relevant to conversion timing and events relevant to conversion. Describe also any beneficial conversion features. where convertible preferred stock with a nondetachable conversion feature is in-the-money at commitment date. For contingently convertible preferred stock, discuss the circumstances of the contingency, including the events or changes in circumstance that would cause the contingency to be met and any of the significant features necessary to understand the conversion rights and the timing of those rights. Include also an events or changes in circumstance, if any, that could adjust or change the contingency, conversion price, or number of shares, including significant terms of those changes. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=6928386&loc=d3e21475-112644 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 02 -Paragraph 29 -Article 5 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=6928386&loc=d3e21506-112644 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 7 -URI http://asc.fasb.org/extlink&oid=6928386&loc=d3e21521-112644 Reference 5: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Glossary Contingently Convertible Instruments -URI http://asc.fasb.org/extlink&oid=6508575 Reference 6: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=6928386&loc=d3e21538-112644 + Details
Name: | us-gaap_ConvertiblePreferredStockTermsOfConversion
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The number of shares issued in exchange for the original debt being converted in a noncash (or part noncash) transaction. "Part noncash" refers to that portion of the transaction not resulting in cash receipts or payments in the period. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=6367179&loc=d3e4332-108586 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=6367179&loc=d3e4304-108586 + Details
Name: | us-gaap_DebtConversionConvertedInstrumentSharesIssued1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Face (par) amount of debt instrument at time of issuance. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=6451184&loc=d3e28551-108399 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 55 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=34725769&loc=d3e28878-108400 + Details
Name: | us-gaap_DebtInstrumentFaceAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Increase for accrued, but unpaid interest on the debt instrument for the period. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08.(f)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 08 -Paragraph f -Article 4 + Details
Name: | us-gaap_DebtInstrumentIncreaseAccruedInterest
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash outflow for cost incurred directly with the issuance of an equity security. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Glossary Financing Activities -URI http://asc.fasb.org/extlink&oid=6513228 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 15 -URI http://asc.fasb.org/extlink&oid=31042434&loc=d3e3291-108585 + Details
Name: | us-gaap_PaymentsOfStockIssuanceCosts
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Date the preferred stock has been redeemed, in CCYY-MM-DD format. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=6928386&loc=d3e21475-112644 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 11 -URI http://asc.fasb.org/extlink&oid=6928386&loc=d3e21564-112644 + Details
Name: | us-gaap_PreferredStockRedemptionDate
Namespace Prefix: | us-gaap_
Data Type: | xbrli:dateItemType
Balance Type: | na
Period Type: | duration

X
- Definition The price per share at which the preferred stock of an entity that has priority over common stock in the distribution of dividends and in the event of liquidation of the entity is redeemed or may be called at. The redemption features of this preferred stock are solely within the control of the issuer. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=6928386&loc=d3e21475-112644 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 11 -URI http://asc.fasb.org/extlink&oid=6928386&loc=d3e21564-112644 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 5 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=6928386&loc=d3e21488-112644 + Details
Name: | us-gaap_PreferredStockRedemptionPricePerShare
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition The cash inflow associated with the amount received from entity's first offering of stock to the public. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Glossary Financing Activities -URI http://asc.fasb.org/extlink&oid=6513228 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 14 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=31042434&loc=d3e3255-108585 + Details
Name: | us-gaap_ProceedsFromIssuanceInitialPublicOffering
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash inflow from issuance of callable preferred stock which is identified as being convertible to another type of financial security at the option of the issuer or the holder. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Glossary Financing Activities -URI http://asc.fasb.org/extlink&oid=6513228 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 14 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=31042434&loc=d3e3255-108585 + Details
Name: | us-gaap_ProceedsFromIssuanceOfRedeemableConvertiblePreferredStock
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount per share or per unit of equity securities issued by non-development stage entity. + References No definition available. + Details
Name: | us-gaap_SharesIssuedPricePerShare
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Ratio applied to the conversion of stock split, for example but not limited to, one share converted to two or two shares converted to one. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Glossary Stock Split -URI http://asc.fasb.org/extlink&oid=6525746 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 4 -Subparagraph (SAB TOPIC 4.C) -URI http://asc.fasb.org/extlink&oid=27012166&loc=d3e187143-122770 + Details
Name: | us-gaap_StockholdersEquityNoteStockSplitConversionRatio1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_TemporaryEquityLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Per share amount of par value or stated value of stock classified as temporary equity. Temporary equity is a security with redemption features that are outside the control of the issuer, is not classified as an asset or liability in conformity with GAAP, and is not mandatorily redeemable. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 02 -Paragraph 28 -Article 5 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (27) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_TemporaryEquityParOrStatedValuePerShare
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition The maximum number of securities classified as temporary equity that are permitted to be issued by an entity's charter and bylaws. Temporary equity is a security with redemption features that are outside the control of the issuer, is not classified as an asset or liability in conformity with GAAP, and is not mandatorily redeemable. Includes any type of security that is redeemable at a fixed or determinable price or on a fixed or determinable date or dates, is redeemable at the option of the holder, or has conditions for redemption which are not solely within the control of the issuer. If convertible, the issuer does not control the actions or events necessary to issue the maximum number of shares that could be required to be delivered under the conversion option if the holder exercises the option to convert the stock to another class of equity. If the security is a warrant or a rights issue, the warrant or rights issue is considered to be temporary equity if the issuer cannot demonstrate that it would be able to deliver upon the exercise of the option by the holder in all cases. Includes stock with put option held by ESOP and stock redeemable by holder only in the event of a change in control of the issuer. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.27(b)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 02 -Paragraph 28 -Subparagraph b -Article 5 + Details
Name: | us-gaap_TemporaryEquitySharesAuthorized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition The number of securities classified as temporary equity that have been sold (or granted) to the entity's shareholders. Securities issued include securities outstanding and securities held in treasury. Temporary equity is a security with redemption features that are outside the control of the issuer, is not classified as an asset or liability in conformity with GAAP, and is not mandatorily redeemable. Includes any type of security that is redeemable at a fixed or determinable price or on a fixed or determinable date or dates, is redeemable at the option of the holder, or has conditions for redemption which are not solely within the control of the issuer. If convertible, the issuer does not control the actions or events necessary to issue the maximum number of shares that could be required to be delivered under the conversion option if the holder exercises the option to convert the stock to another class of equity. If the security is a warrant or a rights issue, the warrant or rights issue is considered to be temporary equity if the issuer cannot demonstrate that it would be able to deliver upon the exercise of the option by the holder in all cases. Includes stock with put option held by ESOP and stock redeemable by holder only in the event of a change in control of the issuer. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.27(b)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 02 -Paragraph 28 -Subparagraph b -Article 5 + Details
Name: | us-gaap_TemporaryEquitySharesIssued
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number Of Annual Installment + References No definition available. + Details
Name: | zfgn_NumberOfAnnualInstallment
Namespace Prefix: | zfgn_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of Outstanding Preferred Shareholders Vote Required for Conversion + References No definition available. + Details
Name: | zfgn_PercentageOfOutstandingPreferredShareholdersVoteRequiredForConversion
Namespace Prefix: | zfgn_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=us-gaap_RedeemablePreferredStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=us-gaap_SeriesAPreferredStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=us-gaap_SeriesBPreferredStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=us-gaap_SeriesCPreferredStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=us-gaap_SeriesDPreferredStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=us-gaap_SeriesEPreferredStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |