XML 23 R57.htm IDEA: XBRL DOCUMENT
v2.4.1.9

Related Party Transactions - Additional Information (Detail) (USD $) In Thousands, unless otherwise specified | 12 Months Ended
--- | ---
Dec. 31, 2013 | Dec. 31, 2012 | Dec. 31, 2011
Commitment, Contingency And Related Party Transactions [Abstract] |  |  |
Related party transaction, expenses from transactions with related party | $ 80 us-gaap_RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty | $ 80 us-gaap_RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty | $ 18 us-gaap_RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty
Related party transaction, revenues from transactions with related party |  | $ 500 us-gaap_RelatedPartyTransactionOtherRevenuesFromTransactionsWithRelatedParty |

X
- Definition Expenses recognized resulting from transactions (excluding transactions that are eliminated in consolidated or combined financial statements) with related party. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 850 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864 + Details
Name: | us-gaap_RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Reflects the sum of all other revenue and income realized from sales and other transactions (excluding transactions that are eliminated in consolidated or combined financial statements) with related party during the period. + References No definition available. + Details
Name: | us-gaap_RelatedPartyTransactionOtherRevenuesFromTransactionsWithRelatedParty
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | zfgn_CommitmentContingencyAndRelatedPartyTransactionsAbstract
Namespace Prefix: | zfgn_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration