XML 59 R37.htm IDEA: XBRL DOCUMENT
v3.3.1.900

Stockholders' Equity (Details) - USD ($) |  |  |  | 1 Months Ended | 12 Months Ended | 24 Months Ended |
--- | --- | --- | --- | --- | --- | --- | ---
Oct. 16, 2013 | Jan. 11, 2011 | May. 16, 2010 | Jul. 31, 2015 | Feb. 28, 2014 | Mar. 31, 2011 | Sep. 30, 2008 | Jul. 31, 2008 | May. 31, 2006 | Oct. 31, 2004 | Dec. 31, 2015 | Dec. 31, 2013 | Dec. 31, 2003 | Dec. 31, 2014
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Number of shares issued or sold (in shares) |  |  |  | 3,525,000 | 1,800,000 |  |  |  |  |  |  |  |  |
Price per share (in dollars per share) |  |  |  | $ 37.00 | $ 36.50 |  |  |  |  |  |  |  |  |
Proceeds from sale of shares |  |  |  | $ 141,000,000 | $ 76,700,000 |  |  |  |  |  |  |  |  |
Reverse stock split |  |  |  |  |  |  |  |  |  |  |  | 1-for-18.7739 |  |
Common stock, shares authorized (in shares) |  |  |  |  |  |  |  |  |  |  | 125,000,000 | 425,000,000 |  | 125,000,000
Additional shares sold under over-allotments option to underwriter (in shares) |  |  |  | 528,750 | 450,000 |  |  |  |  |  |  |  |  |
Johnson & Johnson Innovation JJDC, Inc, [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Sale of common stock (in shares) |  |  |  |  |  |  |  |  |  |  | 1,923,077 |  |  |
Sale of common stock (in dollars per share) |  |  |  |  |  |  |  |  |  |  | $ 39.00 |  |  |
Proceeds of stock sale |  |  |  |  |  |  |  |  |  |  | $ 75,000,000 |  |  |
IPO [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Number of shares issued or sold (in shares) | 5,000,000 |  |  |  |  |  |  |  |  |  |  |  |  |
Price per share (in dollars per share) | $ 16.00 |  |  |  |  |  |  |  |  |  |  |  |  |
Proceeds from initial public offering net of expenses | $ 83,800,000 |  |  |  |  |  |  |  |  |  |  |  |  |
Over-Allotment Option [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Number of shares issued or sold (in shares) | 750,000 |  |  |  |  |  |  |  |  |  |  |  |  |
Price per share (in dollars per share) | $ 16.00 |  |  |  |  |  |  |  |  |  |  |  |  |
Series A Preferred Stock [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Number of shares issued or sold (in shares) |  |  |  |  |  |  |  |  |  |  |  |  | 34,239,374 |
Proceeds from issuance of convertible preferred stock |  |  |  |  |  |  |  |  |  |  |  |  | $ 34,000,000 |
Price per share (in dollars per share) |  |  |  |  |  |  |  |  |  |  |  |  | $ 1.00 |
Accrued noncumulative dividends on preferred stock (in dollars per share) |  |  |  |  |  |  |  |  |  |  | $ 0.08 |  |  |
Series A-1 Preferred Stock [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Convertible preferred stock series (in shares) |  |  |  |  |  |  |  |  |  |  | 1.506 |  |  |
Conversion price of preferred stock (in dollars per share) |  |  |  |  |  |  |  |  |  |  | $ 12.39 |  |  |
Series A-2 Preferred Stock [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Convertible preferred stock series (in shares) |  |  |  |  |  |  |  |  |  |  | 1.00 |  |  |
Conversion price of preferred stock (in dollars per share) |  |  |  |  |  |  |  |  |  |  | $ 18.77 |  |  |
Series B Preferred Stock [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Number of shares issued or sold (in shares) |  |  |  |  |  |  |  |  |  | 71,401,237 |  |  |  |
Proceeds from issuance of convertible preferred stock |  |  |  |  |  |  |  |  |  | $ 30,300,000 |  |  |  |
Related offering costs |  |  |  |  |  |  |  |  |  | $ 238,000 |  |  |  |
Shares of common stock allocated (in shares) |  |  |  |  |  |  |  |  | 10,003,300 |  |  |  |  |
Accrued noncumulative dividends on preferred stock (in dollars per share) |  |  |  |  |  |  |  |  |  |  | $ 0.0341 |  |  |
Convertible preferred stock series (in shares) |  |  |  |  |  |  |  |  |  |  | 1.14 |  |  |
Conversion price of preferred stock (in dollars per share) |  |  |  |  |  |  |  |  |  |  | $ 6.95 |  |  |
Series C Preferred Stock [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Number of shares issued or sold (in shares) |  |  |  |  |  |  |  |  | 110,952,217 |  |  |  |  |
Proceeds from issuance of convertible preferred stock |  |  |  |  |  |  |  |  | $ 44,900,000 |  |  |  |  |
Related offering costs |  |  |  |  |  |  |  |  | $ 101,246 |  |  |  |  |
Accrued noncumulative dividends on preferred stock (in dollars per share) |  |  |  |  |  |  |  |  |  |  | $ 0.0324 |  |  |
Convertible preferred stock series (in shares) |  |  |  |  |  |  |  |  |  |  | 1.00 |  |  |
Conversion price of preferred stock (in dollars per share) |  |  |  |  |  |  |  |  |  |  | $ 7.70 |  |  |
Series D Preferred Stock [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Accrued noncumulative dividends on preferred stock (in dollars per share) |  |  |  |  |  |  |  |  |  |  | $ 0.0522 |  |  |
Convertible preferred stock series (in shares) |  |  |  |  |  |  |  |  |  |  | 1.00 |  |  |
Conversion price of preferred stock (in dollars per share) |  |  |  |  |  |  |  |  |  |  | $ 12.20 |  |  |
Series D Preferred Stock [Member] | Raven Biotechnologies Inc. [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Shares issued to acquire entity (in shares) |  |  |  |  |  | 14,446,227 |  | 12,466,039 |  |  |  |  |  |
Series D-2 Preferred Stock [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Number of shares issued or sold (in shares) |  | 18,427,388 | 6,916,110 |  |  |  | 38,337,678 |  |  |  |  |  |  |
Proceeds from issuance of convertible preferred stock |  |  |  |  |  |  | $ 24,800,000 |  |  |  |  |  |  |
Related offering costs |  |  |  |  |  |  | $ 156,788 |  |  |  |  |  |  |
Exercise price (in dollars per share) |  |  |  |  |  |  |  |  |  |  | 0.65 |  |  |
Proceeds from sale of shares |  | $ 12,000,000 |  |  |  |  |  |  |  |  |  |  |  |
Accrued noncumulative dividends on preferred stock (in dollars per share) |  |  |  |  |  |  |  |  |  |  | $ 0.0522 |  |  |
Convertible preferred stock series (in shares) |  |  |  |  |  |  |  |  |  |  | 1.00 |  |  |
Conversion price of preferred stock (in dollars per share) |  |  |  |  |  |  |  |  |  |  | $ 12.20 |  |  |
Undesignated Preferred Stock [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Undesignated preferred stock, shares authorized (in shares) |  |  |  |  |  |  |  |  |  |  | 5,000,000 |  |  |
Undesignated preferred stock, par value (in dollars per share) |  |  |  |  |  |  |  |  |  |  | $ 0.01 |  |  |
Undesignated preferred stock, shares issued (in shares) |  |  |  |  |  |  |  |  |  |  | 0 |  |  | 0
Undesignated preferred stock, shares outstanding (in shares) |  |  |  |  |  |  |  |  |  |  | 0 |  |  | 0
Series A-1 Preferred Stock [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Shares of common stock allocated (in shares) |  |  |  |  |  |  |  |  |  | 13,604,016 |  |  |  |
Warrant [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Class of Stock [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Warrants to purchase shares (in shares) |  |  | 518,708 |  |  |  | 2,875,327 |  |  |  |  |  |  |

X
- Definition Convertible preferred stock conversion price. + References No definition available. + Details
Name: | mgnx_ConvertiblePreferredStockConversionPrice
Namespace Prefix: | mgnx_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | duration

X
- Definition Costs related to the issuance or offering of stock. + References No definition available. + Details
Name: | mgnx_StockIssuanceCosts
Namespace Prefix: | mgnx_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Stock issued during period, shares to underwriters for exercise of over allotment option. + References No definition available. + Details
Name: | mgnx_StockIssuedDuringPeriodSharesToUnderwritersForExerciseOfOverAllotmentOption
Namespace Prefix: | mgnx_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of shares of equity interests issued or issuable to acquire entity. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (b)(4) -URI http://asc.fasb.org/extlink&oid=35744584&loc=d3e6927-128479 + Details
Name: | us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_ClassOfStockLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Exercise price per share or per unit of warrants or rights outstanding. + 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.(i)(4)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 + Details
Name: | us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of securities into which the class of warrant or right may be converted. For example, but not limited to, 500,000 warrants may be converted into 1,000,000 shares. + 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.(i)(2)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 + Details
Name: | us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition The maximum number of common shares permitted to be issued by an entity's charter and bylaws. + 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.29) -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 30 -Article 5 + Details
Name: | us-gaap_CommonStockSharesAuthorized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of shares issued for each share of convertible preferred stock that is converted. + 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 6 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=6928386&loc=d3e21506-112644 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 02 -Paragraph 29 -Article 5 + Details
Name: | us-gaap_ConvertiblePreferredStockSharesIssuedUponConversion
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition The amount per share used to calculated dividend payments on preferred stock. + References No definition available. + Details
Name: | us-gaap_PreferredStockDividendRatePerDollarAmount
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | duration

X
- Definition Face amount or stated value per share of preferred stock nonredeemable or redeemable solely at the option 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.28) -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 29 -Article 5 + Details
Name: | us-gaap_PreferredStockParOrStatedValuePerShare
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition The maximum number of nonredeemable preferred shares (or preferred stock redeemable solely at the option of the issuer) permitted to be issued by an entity's charter and bylaws. + 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.28) -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 29 -Article 5 + Details
Name: | us-gaap_PreferredStockSharesAuthorized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Total number of nonredeemable preferred shares (or preferred stock redeemable solely at the option of the issuer) issued to shareholders (includes related preferred shares that were issued, repurchased, and remain in the treasury). May be all or portion of the number of preferred shares authorized. Excludes preferred shares that are classified as debt. + 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.28) -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 29 -Article 5 + Details
Name: | us-gaap_PreferredStockSharesIssued
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Aggregate share number for all nonredeemable preferred stock (or preferred stock redeemable solely at the option of the issuer) held by stockholders. Does not include preferred shares that have been repurchased. + 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.28) -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 29 -Article 5 + Details
Name: | us-gaap_PreferredStockSharesOutstanding
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
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 -Topic 230 -SubTopic 10 -Section 45 -Paragraph 14 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=56944662&loc=d3e3255-108585 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Glossary Financing Activities -URI http://asc.fasb.org/extlink&oid=6513228 + 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 preferred stocks identified as being convertible into another form of financial instrument, typically the entity's common stock. + References Reference 1: 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=56944662&loc=d3e3255-108585 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Glossary Financing Activities -URI http://asc.fasb.org/extlink&oid=6513228 + Details
Name: | us-gaap_ProceedsFromIssuanceOfConvertiblePreferredStock
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash inflow from the issuance of common stock, preferred stock, treasury stock, stock options, and other types of equity. + 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=56944662&loc=d3e3255-108585 + Details
Name: | us-gaap_ProceedsFromIssuanceOrSaleOfEquity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Cash received on stock transaction after deduction of issuance costs. + References No definition available. + Details
Name: | us-gaap_SaleOfStockConsiderationReceivedOnTransaction
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The number of shares issued or sold by the subsidiary or equity method investee per stock transaction. + References No definition available. + Details
Name: | us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Per share amount received by subsidiary or equity investee for each share of common stock issued or sold in the stock transaction. + References No definition available. + Details
Name: | us-gaap_SaleOfStockPricePerShare
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Price of a single share of a number of saleable stocks of a company. + References No definition available. + Details
Name: | us-gaap_SharePrice
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of shares of stock issued as of the balance sheet date, including shares that had been issued and were previously outstanding but which are now held in the treasury. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=6928386&loc=d3e21463-112644 + Details
Name: | us-gaap_SharesIssued
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of new stock issued during the period. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=6928386&loc=d3e21463-112644 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -URI http://asc.fasb.org/extlink&oid=27012166&loc=d3e187085-122770 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 02 -Paragraph 29, 30 -Article 5 + Details
Name: | us-gaap_StockIssuedDuringPeriodSharesNewIssues
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Description of the reverse stock split arrangement. Also provide the retroactive effect given by the reverse split that occurs after the balance sheet date but before the release of financial statements. + References Reference 1: 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 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Staff Accounting Bulletin (SAB) -Number Topic 4 -Section C + Details
Name: | us-gaap_StockholdersEquityReverseStockSplit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_CounterpartyNameAxis=mgnx_JohnsonAndJohnsonDevelopmentCorporationMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_SubsidiarySaleOfStockAxis=us-gaap_IPOMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_SubsidiarySaleOfStockAxis=us-gaap_OverAllotmentOptionMember
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=mgnx_SeriesA1PreferredStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=mgnx_SeriesA2PreferredStockMember
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_BusinessAcquisitionAxis=mgnx_RavenBiotechnologiesIncMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

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

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