<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2019-01-31"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:mgnx="http://macrogenics.com/20190630"
  xmlns:srt="http://fasb.org/srt/2018-01-31"
  xmlns:us-gaap="http://fasb.org/us-gaap/2018-01-31"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="mgnx-20190630.xsd" xlink:type="simple"/>
    <context id="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
        </entity>
        <period>
            <startDate>2019-01-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="ib06087bfc2784e57b8ba5ef127524d9f_I20190726">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
        </entity>
        <period>
            <instant>2019-07-26</instant>
        </period>
    </context>
    <context id="i08b1a80001d4441fb7fd6603b0db4163_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="if499736c9d5d45c184a839b5e9e101d1_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="i14aa23de56c845a0a0522738f43bf230_D20190401-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenueFromCollaborativeAgreementsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-04-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="iaa81d2b17b8942fd88357c078c197777_D20180401-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenueFromCollaborativeAgreementsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-04-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="i199200ecd363416c88a0a054f6204cb5_D20190101-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenueFromCollaborativeAgreementsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-01-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="i65b40dd2d0e6404c88a953b58c52b2e4_D20180101-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenueFromCollaborativeAgreementsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="i07352f885f9846328835d094762ff1fc_D20190401-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenueFromGovernmentAgreementsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-04-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="i3bf42fc0ad444567a758d675ea622dfb_D20180401-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenueFromGovernmentAgreementsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-04-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="i1e386548489e4c62a64ddcfa3ce48b99_D20190101-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenueFromGovernmentAgreementsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-01-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="ifc04842e03e34546869cd442269fc979_D20180101-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenueFromGovernmentAgreementsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="i109c6dbc0d494accadbd5c861b8512d5_D20190401-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
        </entity>
        <period>
            <startDate>2019-04-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="i81a0c702f2dc49eaa9cd1000fbc3825a_D20180401-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
        </entity>
        <period>
            <startDate>2018-04-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="ia91e72323b454e93953eee644201d6b5_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:CommonStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="i03ec75f1d9b44a458bab2936d92c5af9_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AdditionalPaidInCapitalMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="i37fc6fb723fc4535a25f9489787439b6_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:RetainedEarningsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="ie70d82e51a904f148b202856a6fcdecc_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AociIncludingPortionAttributableToNoncontrollingInterestMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="i6978aeab6e45476fb7482b4db0c227d6_D20190101-20190331">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AdditionalPaidInCapitalMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-01-01</startDate>
            <endDate>2019-03-31</endDate>
        </period>
    </context>
    <context id="id50631a343b3422595cb9b1d77d35ce9_D20190101-20190331">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
        </entity>
        <period>
            <startDate>2019-01-01</startDate>
            <endDate>2019-03-31</endDate>
        </period>
    </context>
    <context id="ic8cd75c7e7b949ef80c44eb628c4b9b2_D20190101-20190331">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:CommonStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-01-01</startDate>
            <endDate>2019-03-31</endDate>
        </period>
    </context>
    <context id="if6e3b73ea6f4467d997dd7c4e6f3af72_D20190101-20190331">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AociIncludingPortionAttributableToNoncontrollingInterestMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-01-01</startDate>
            <endDate>2019-03-31</endDate>
        </period>
    </context>
    <context id="i14734d228cca4cd9903823dd3dd43fd8_D20190101-20190331">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:RetainedEarningsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-01-01</startDate>
            <endDate>2019-03-31</endDate>
        </period>
    </context>
    <context id="i0dfc3c98caf5475288c96cca8e98b6c6_I20190331">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:CommonStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-03-31</instant>
        </period>
    </context>
    <context id="i59f189baf2d64f92b042c80f9aea1423_I20190331">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AdditionalPaidInCapitalMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-03-31</instant>
        </period>
    </context>
    <context id="i8f7396a309cd4daca0fe35b34588a062_I20190331">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:RetainedEarningsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-03-31</instant>
        </period>
    </context>
    <context id="i8fe4534d0efc48cc976dcc8be3b06a1b_I20190331">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AociIncludingPortionAttributableToNoncontrollingInterestMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-03-31</instant>
        </period>
    </context>
    <context id="i43d9ed8e2ddd4ba4b1339e72243dcba7_I20190331">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
        </entity>
        <period>
            <instant>2019-03-31</instant>
        </period>
    </context>
    <context id="i2d749c557e2a43a3b657eaa60bfc1314_D20190401-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AdditionalPaidInCapitalMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-04-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="ic148aae13dff49e78ed25b15a5677396_D20190401-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:CommonStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-04-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="i1e1068382bea4a46bdfa11f9cdccc8af_D20190401-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AociIncludingPortionAttributableToNoncontrollingInterestMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-04-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="i9515725cffde46938b09d703ac812e98_D20190401-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:RetainedEarningsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-04-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="i2b5e9685677d485b9b264470e0991b61_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:CommonStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="ibe429713d6e54490a05eb2c32be55bee_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AdditionalPaidInCapitalMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="i97bbd050bf72484b81c83ffa34cbe278_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:RetainedEarningsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="ie8a73990cc434a679fd8a58d459566d6_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AociIncludingPortionAttributableToNoncontrollingInterestMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="ib999e30c33f24f42b7da8b12f0412280_I20171231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:CommonStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2017-12-31</instant>
        </period>
    </context>
    <context id="i78b9d827fc0b467fabf8f07cdf35641e_I20171231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AdditionalPaidInCapitalMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2017-12-31</instant>
        </period>
    </context>
    <context id="i1c06777e56ba4e4b8dd8b7da4c0de8e3_I20171231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:RetainedEarningsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2017-12-31</instant>
        </period>
    </context>
    <context id="ieb4490467955464eb23bbfe737d89a4b_I20171231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AociIncludingPortionAttributableToNoncontrollingInterestMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2017-12-31</instant>
        </period>
    </context>
    <context id="i0a490535c0f94199aacb4b0e36fe1596_I20171231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
        </entity>
        <period>
            <instant>2017-12-31</instant>
        </period>
    </context>
    <context id="if08023e64dcc40bbb1f5337749830047_I20180101">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:RetainedEarningsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-01-01</instant>
        </period>
    </context>
    <context id="icaf0e5972bd841d2a90258659282758f_I20180101">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
        </entity>
        <period>
            <instant>2018-01-01</instant>
        </period>
    </context>
    <context id="i2622752935994412b87562d748509f9b_D20180101-20180331">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AdditionalPaidInCapitalMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-03-31</endDate>
        </period>
    </context>
    <context id="i8cd35d2929a245faa6beeaa4b6ce6a36_D20180101-20180331">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-03-31</endDate>
        </period>
    </context>
    <context id="i2b12a98eb78647fc80d5b179b08fa76b_D20180101-20180331">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:CommonStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-03-31</endDate>
        </period>
    </context>
    <context id="i5ba5de31f4324470bba8babcc7eeb482_D20180101-20180331">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AociIncludingPortionAttributableToNoncontrollingInterestMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-03-31</endDate>
        </period>
    </context>
    <context id="if15f43fb803d4711b15c5b1814fa8d04_D20180101-20180331">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:RetainedEarningsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-03-31</endDate>
        </period>
    </context>
    <context id="i1fca73dcd54d4fc4aa63805e061ecade_I20180331">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:CommonStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-03-31</instant>
        </period>
    </context>
    <context id="i9b4d336a36274b6eace5942fa795d41b_I20180331">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AdditionalPaidInCapitalMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-03-31</instant>
        </period>
    </context>
    <context id="ia20a7f05a72c470b9722b9e059f620f8_I20180331">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:RetainedEarningsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-03-31</instant>
        </period>
    </context>
    <context id="i0b7f684f2e0a48de9917c453b4965da8_I20180331">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AociIncludingPortionAttributableToNoncontrollingInterestMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-03-31</instant>
        </period>
    </context>
    <context id="ic9ecb5afa1cc471bb811688693fa0bbd_I20180331">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
        </entity>
        <period>
            <instant>2018-03-31</instant>
        </period>
    </context>
    <context id="i77d74a50c4d1404292abab9ed4808354_D20180401-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AdditionalPaidInCapitalMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-04-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="i3bbe525f7c284fcd903b82feb53d90c7_D20180401-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:CommonStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-04-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="i155cb38080d34c77a1ef5ef51a7cd39e_D20180401-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AociIncludingPortionAttributableToNoncontrollingInterestMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-04-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="icf3ac0d2a8a54c5dab545f157feb286d_D20180401-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:RetainedEarningsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-04-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="i28c2090254f94ab9a1e89da5c0a6ce78_I20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:CommonStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-06-30</instant>
        </period>
    </context>
    <context id="i6a761b389a9c4fad87223a9921f10104_I20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AdditionalPaidInCapitalMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-06-30</instant>
        </period>
    </context>
    <context id="ic7f8d1f46ed84507a11a5758ce147548_I20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:RetainedEarningsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-06-30</instant>
        </period>
    </context>
    <context id="icbaa5973165d4d1c8035081b87b0765d_I20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementEquityComponentsAxis">us-gaap:AociIncludingPortionAttributableToNoncontrollingInterestMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-06-30</instant>
        </period>
    </context>
    <context id="i29a62afe60004f4e994f8f193f6000cb_I20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
        </entity>
        <period>
            <instant>2018-06-30</instant>
        </period>
    </context>
    <context id="i632ec10ff4c34ee0b743b82f8f1c8f30_I20190101">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
        </entity>
        <period>
            <instant>2019-01-01</instant>
        </period>
    </context>
    <context id="i607760246b4a48adbde0a8819b2374f0_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:MoneyMarketFundsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="i7851ae7089384a1aa691f435a58f3f79_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:MoneyMarketFundsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel1Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="if0ab170bf72f4b0195ca11efb19f84e7_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:MoneyMarketFundsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel2Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="i26ed6082d57146d9adbc4c3d11f73fc4_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:MoneyMarketFundsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel3Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="i13a16c1447934e12959b1e02cc90237c_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:USGovernmentSponsoredEnterprisesDebtSecuritiesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="i06874a612ba842c1a6a12ecb85ebc742_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:USGovernmentSponsoredEnterprisesDebtSecuritiesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel1Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="ic57624288bc44f6680c4eef353dc2feb_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:USGovernmentSponsoredEnterprisesDebtSecuritiesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel2Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="i90c756b894b54d6c94e7e64448d0ffbe_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:USGovernmentSponsoredEnterprisesDebtSecuritiesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel3Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="i4c41208982224dc99ccb84e3a33d58bb_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:CorporateDebtSecuritiesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="if7016f77826e44cfb948708edbe369b8_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:CorporateDebtSecuritiesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel1Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="i97b0c1434a01488c970ecc9a97d2bcc9_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:CorporateDebtSecuritiesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel2Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="ia7f32053498d4e858f13ec47e258c540_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:CorporateDebtSecuritiesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel3Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="i6aff7f80dd2742f4b860ece6c8a3a052_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:WarrantMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="i86f05bd111ad46228704837e05872880_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:WarrantMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel1Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="i05703bc606804798a9fd73a065d750b3_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:WarrantMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel2Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="i371e100838b8497d8bcc8faa6c2e4def_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:WarrantMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel3Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="i015751ebf1234e62947481c63e4c4f41_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="i78c8310ba02f4524a4555dff26d6abca_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel1Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="iea116987f229472b91bcc1c7e8f0a125_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel2Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="i64356ff3530c4afa80f2a9d0978289fd_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel3Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="i9f7efe7f3c424936bad2d064dd58e8b5_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:MoneyMarketFundsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="ifc20747ee79d4af7a1c3babb89c182ca_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:MoneyMarketFundsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel1Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="if21daf8c609a4e6b9c8e934ac435180e_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:MoneyMarketFundsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel2Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="i82ee876ad1354c05b53b7ac81ce21eee_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:MoneyMarketFundsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel3Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="i3c1df0b7f9444cb5acd64ac98e51071e_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:USTreasurySecuritiesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="i4260314bd2d04f2db6a27e2b1a083b65_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:USTreasurySecuritiesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel1Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="i9dfc1d40b7944b82b52635cd79b601a0_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:USTreasurySecuritiesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel2Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="i50ba074462da441bae4570fc8ee9c995_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:USTreasurySecuritiesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel3Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="i62a12f9d054948399d206406e62062da_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:CorporateDebtSecuritiesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="ifbfc8c09ff9f47a2a8a17a14232d3de4_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:CorporateDebtSecuritiesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel1Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="i7d766de2f5ed493591d71b50b6644b3b_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:CorporateDebtSecuritiesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel2Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="ic5515d2b482844b8a87aef9b29d8c746_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:CorporateDebtSecuritiesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel3Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="i889420e2e703482c958ebe45cc66848e_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:WarrantMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="ia34a5e1dc6d94b8cbeacff825cb59ea9_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:WarrantMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel1Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="id64f9e2bcadf4ff6963c2cfc55fba89c_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:WarrantMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel2Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="i6ab7c9b9687544f089fd5f04216fc60b_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:WarrantMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel3Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="i470c62bf8c544a5aab3908c3dc8259dc_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="ibc0086057f03457abca7a42a7d282a6f_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel1Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="i21b2b97aafe54661b82f043cfcecabb1_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel2Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="i487956cee88e4147a8d82ea88e9e833f_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByFairValueHierarchyLevelAxis">us-gaap:FairValueInputsLevel3Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByMeasurementFrequencyAxis">us-gaap:FairValueMeasurementsRecurringMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="i170d9929a85943e28888db770cafb922_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FinancialInstrumentAxis">us-gaap:USGovernmentSponsoredEnterprisesDebtSecuritiesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="i4526783ab6ff441fb4899645896af212_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FinancialInstrumentAxis">us-gaap:CorporateDebtSecuritiesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="ic4fe377bb129410a81be9785c71eab5f_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FinancialInstrumentAxis">us-gaap:CorporateDebtSecuritiesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="i2d2ed5ab11bd413998cfa6896a16535f_D20180101-20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="i839b0cba27224fd1ac73da5630a99602_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:RangeAxis">srt:MinimumMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="idcb4c984d2e4447eb887cd67e3ccd67d_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:RangeAxis">srt:MaximumMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="i0016e8cd9a35450faa7ec47c942d707f_D20180401-20180430">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:SubsidiarySaleOfStockAxis">mgnx:FirmCommitmentPublicUnderwrittenOfferMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-04-01</startDate>
            <endDate>2018-04-30</endDate>
        </period>
    </context>
    <context id="i64af5770ca5849beb56b63914cbb9b47_I20180430">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:SubsidiarySaleOfStockAxis">mgnx:FirmCommitmentPublicUnderwrittenOfferMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-04-30</instant>
        </period>
    </context>
    <context id="i4ceea754994e4b129540e3df69482fdc_D20180401-20180430">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:SubsidiarySaleOfStockAxis">us-gaap:OverAllotmentOptionMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-04-01</startDate>
            <endDate>2018-04-30</endDate>
        </period>
    </context>
    <context id="ic8699b28b89643daa9a13b241fc490cc_I20180430">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:SubsidiarySaleOfStockAxis">us-gaap:OverAllotmentOptionMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-04-30</instant>
        </period>
    </context>
    <context id="i7774afdddc494f6299ca38fdf4e68ed7_D20190201-20190228">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:SubsidiarySaleOfStockAxis">mgnx:FollowOnEquityOfferingMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-02-01</startDate>
            <endDate>2019-02-28</endDate>
        </period>
    </context>
    <context id="i9aad903f1cd74b1d95ac78e3c7938bbd_I20190228">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:SubsidiarySaleOfStockAxis">mgnx:FollowOnEquityOfferingMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-02-28</instant>
        </period>
    </context>
    <context id="ibaccff6cea2241a28210bc296efca5d5_D20190201-20190228">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:SubsidiarySaleOfStockAxis">us-gaap:OverAllotmentOptionMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-02-01</startDate>
            <endDate>2019-02-28</endDate>
        </period>
    </context>
    <context id="ib488bd725ca247a6bbcc760b74855927_I20190228">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:SubsidiarySaleOfStockAxis">us-gaap:OverAllotmentOptionMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-02-28</instant>
        </period>
    </context>
    <context id="idfd901e807134ac59ade33770cacbeb1_D20171001-20171231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:IncyteCorporationMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:IncyteMGA012AgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-10-01</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="i7c9a2982b0764a69ac2c1cbd7b36da93_I20171031">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:IncyteCorporationMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:IncyteMGA012AgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2017-10-31</instant>
        </period>
    </context>
    <context id="i6aeaf548301240518356ec98e2ebc4c6_D20180101-20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:IncyteCorporationMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:IncyteMGA012AgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-12-31</endDate>
        </period>
    </context>
    <context id="i10db936cf7e24045967cb5e515d89a22_D20171001-20171031">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:IncyteCorporationMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:RangeAxis">srt:MinimumMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:IncyteMGA012AgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-10-01</startDate>
            <endDate>2017-10-31</endDate>
        </period>
    </context>
    <context id="i037b0abdd026404181671eaf1af0bdc8_D20171001-20171031">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:IncyteCorporationMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:RangeAxis">srt:MaximumMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:IncyteMGA012AgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-10-01</startDate>
            <endDate>2017-10-31</endDate>
        </period>
    </context>
    <context id="i4b712d16b7924576a574a63037827a77_I20171231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:IncyteCorporationMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:IncyteMGA012AgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2017-12-31</instant>
        </period>
    </context>
    <context id="if7068720a2bc4e159745e0afe3fe3563_D20190101-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:IncyteCorporationMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:IncyteMGA012AgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-01-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="ie58da25b4e2844348afa912bbd0c5d44_D20171001-20171031">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:IncyteCorporationMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromLicenseAgreementsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:IncyteMGA012AgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-10-01</startDate>
            <endDate>2017-10-31</endDate>
        </period>
    </context>
    <context id="i513b678a740344379d8db357d591641f_D20171001-20171031">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:IncyteCorporationMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:IncyteMGA012AgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-10-01</startDate>
            <endDate>2017-10-31</endDate>
        </period>
    </context>
    <context id="ie9a3433ed3c54e0db8c9872b95db7a1e_D20190401-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:IncyteCorporationMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromLicenseAgreementsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:IncyteMGA012AgreementClinicalActivitiesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-04-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="i667ac46a25c14d3585e334c72a0e7787_D20180401-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:IncyteCorporationMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromLicenseAgreementsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:IncyteMGA012AgreementClinicalActivitiesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-04-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="ied5d586d2cc64b69985f0bd61e30044b_D20190101-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:IncyteCorporationMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromLicenseAgreementsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:IncyteMGA012AgreementClinicalActivitiesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-01-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="ica17de3605c144d185f4105d3d100a39_D20180101-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:IncyteCorporationMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromLicenseAgreementsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:IncyteMGA012AgreementClinicalActivitiesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="i78b8ffec3882456481b1bc20c7fbc75b_D20190401-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:IncyteCorporationMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromLicenseAgreementsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:IncyteMGA012AgreementServicesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-04-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="i2d5a59ea43194b6199e99db7b875e8bb_D20180401-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:IncyteCorporationMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromLicenseAgreementsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:IncyteMGA012AgreementServicesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-04-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="i68a7487e41444659bf880f8dbf8731e1_D20190101-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:IncyteCorporationMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromLicenseAgreementsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:IncyteMGA012AgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-01-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="ibb65df30ba0b4209b018deeb0d808033_D20180101-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:IncyteCorporationMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromLicenseAgreementsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:IncyteMGA012AgreementServicesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="i3d81c7b3acf84807bfbbdf1c4f164fec_I20120930">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ServierMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mgnx:ServierDARTMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2012-09-30</instant>
        </period>
    </context>
    <context id="i664845e6a90d4c6ea2cbc23b34cbd416_D20120901-20120930">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ServierMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mgnx:ServierDARTMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2012-09-01</startDate>
            <endDate>2012-09-30</endDate>
        </period>
    </context>
    <context id="ibd7ee1d1a4544edc9d0412aec7df5262_I20120930">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ServierMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2012-09-30</instant>
        </period>
    </context>
    <context id="if46294cd47ce4e3698bbef957fc66974_D20140101-20141231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ServierMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mgnx:ServierDARTMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2014-01-01</startDate>
            <endDate>2014-12-31</endDate>
        </period>
    </context>
    <context id="i5d29d23556c6467c9465e5358b41866e_D20190401-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ServierMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromLicenseAgreementsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:LesLaboratoiresServierMGD007Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mgnx:ServierDARTMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-04-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="ib599bf377f0549ffa3966a45090d2179_D20190101-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ServierMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromLicenseAgreementsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:LesLaboratoiresServierMGD007Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mgnx:ServierDARTMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-01-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="i06171e3de8524b09bd6bc87bbea23f52_D20180401-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ServierMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromLicenseAgreementsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:LesLaboratoiresServierMGD007Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mgnx:ServierDARTMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-04-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="i2ba65581556248c7abbf001f1010191f_D20180101-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ServierMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromLicenseAgreementsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:LesLaboratoiresServierMGD007Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mgnx:ServierDARTMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="i4512d2fed8444d28bea3189fffed7e17_I20141231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ServierMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mgnx:ServierDARTMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2014-12-31</instant>
        </period>
    </context>
    <context id="i7329228962d2454388e2c7a485bba9b7_I20141231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ServierMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2014-12-31</instant>
        </period>
    </context>
    <context id="i1775db36a51342be865c16436a52ee85_D20180401-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ServierMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromLicenseAgreementsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mgnx:ServierDARTMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-04-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="ic9e32877dbfb48768e5b952d689f3d58_D20190401-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ServierMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromLicenseAgreementsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mgnx:ServierDARTMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-04-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="i01727aa26e6d4691b997375868b2262d_D20190101-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ServierMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromLicenseAgreementsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mgnx:ServierDARTMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-01-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="i0dc46af44e5643eb8a53c6a6176e8a26_D20180101-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ServierMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromLicenseAgreementsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mgnx:ServierDARTMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="ia0d2429c60ff49829a1ced64966d5cab_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ServierMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mgnx:ServierDARTMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="ia96f3573bc0346c18df8da456ff96ea0_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ServierMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mgnx:ServierDARTMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="i0e74a6fc23ec480a9c6368314f5f94df_D20190401-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ServierMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mgnx:ServierDARTMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-04-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="i636775e07a5a4c0c831b56ea590d5e62_D20180401-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ServierMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mgnx:ServierDARTMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-04-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="i1a449a68853d4652aea961da1ee278c9_D20190101-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ServierMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mgnx:ServierDARTMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-01-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="i6479e29d73894a4a8542285ee36cddd4_D20180101-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ServierMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mgnx:ServierDARTMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="ibd8b171f76264fd3ab7ac97ea2567a44_D20181101-20181130">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ZaiLabMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:ZaiLabCollaborationAndLicenseAgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-11-01</startDate>
            <endDate>2018-11-30</endDate>
        </period>
    </context>
    <context id="ie00cd89809a445a39dc844d470bd3276_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ZaiLabMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:ZaiLabCollaborationAndLicenseAgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="i3bbcd0f598974e2c825c52b79fd58286_D20190401-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ZaiLabMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:ZaiLabCollaborationAndLicenseAgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-04-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="i3d16a56015574270b87a6e90bc7f575b_D20190101-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ZaiLabMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:ZaiLabCollaborationAndLicenseAgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-01-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="i4df814fb61ab4825bccc7b6a80c00a52_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ZaiLabMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:ZaiLabCollaborationAndLicenseAgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="ife2cc57e2aa149668358beb1e1be08ce_D20180101-20180131">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:F.HoffmannLaRocheLtd.andHoffmannLaRocheInc.Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-01-31</endDate>
        </period>
    </context>
    <context id="ie4c5b282ba3948fa82107f5f8ee82b39_I20171231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:F.HoffmannLaRocheLtd.andHoffmannLaRocheInc.Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2017-12-31</instant>
        </period>
    </context>
    <context id="i759efe744821467e998300ee15b91bf5_D20171201-20171231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:F.HoffmannLaRocheLtd.andHoffmannLaRocheInc.Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-12-01</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="ib67316d7e4b54a069f913e8cb57f93f3_D20180401-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:F.HoffmannLaRocheLtd.andHoffmannLaRocheInc.Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromLicenseAgreementsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-04-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="i236e6d21aacc49c79e4c5706da18f035_D20190401-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:F.HoffmannLaRocheLtd.andHoffmannLaRocheInc.Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromLicenseAgreementsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-04-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="i5ec764523bbf4c70885d2726396036a3_D20190101-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ZaiLabMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromLicenseAgreementsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:ZaiLabCollaborationAndLicenseAgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-01-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="i417b0f9e6b774f31bd546d14639a948d_D20180101-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ZaiLabMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromLicenseAgreementsMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:ZaiLabCollaborationAndLicenseAgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="ibfabfec71776477780c18274e70c5633_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:F.HoffmannLaRocheLtd.andHoffmannLaRocheInc.Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="i5b131f6f68de43dd832eb7fbdc144906_I20181231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:F.HoffmannLaRocheLtd.andHoffmannLaRocheInc.Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-12-31</instant>
        </period>
    </context>
    <context id="iec8797de2d65482e8626baa47de80d07_D20180531-20180531">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ProventionBioInc.Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:ProventionPRV3279Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mgnx:ProventionLicenseAgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-05-31</startDate>
            <endDate>2018-05-31</endDate>
        </period>
    </context>
    <context id="if876851393bf4307ba0a0d8e1aa29829_I20180531">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ProventionBioInc.Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:ProventionPRV3279Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mgnx:ProventionLicenseAgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-05-31</instant>
        </period>
    </context>
    <context id="i5ab0c35770444fb69076d852e58550a0_D20180531-20180531">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ProventionBioInc.Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:ProventionPRV031Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mgnx:AssetPurchaseAgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-05-31</startDate>
            <endDate>2018-05-31</endDate>
        </period>
    </context>
    <context id="ia019f469d00e440aa232bd69fcc1af39_I20180531">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ProventionBioInc.Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:ResearchAndDevelopmentArrangementContractToPerformForOthersByTypeAxis">mgnx:ProventionPRV031Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:TypeOfArrangementAxis">mgnx:AssetPurchaseAgreementMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-05-31</instant>
        </period>
    </context>
    <context id="id4fd6d021baa4300a4a193df705f7090_I20180531">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ProventionBioInc.Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2018-05-31</instant>
        </period>
    </context>
    <context id="i326e5e3e09c040d8a8e81e06914cb02c_D20180701-20180930">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:ProventionBioInc.Member</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromLicenseAgreementsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-07-01</startDate>
            <endDate>2018-09-30</endDate>
        </period>
    </context>
    <context id="ia0b8993800184e1ca8ca6f035798894a_D20190401-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:WarrantMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-04-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="i44a1b9adf3034d538940c46bafe6ccb7_D20190101-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:FairValueByAssetClassAxis">us-gaap:WarrantMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-01-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="i1d72cea0e2b54e02a62eb8da1337f505_D20150915-20150915">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:NationalInstituteOfAllergyAndInfectiousDiseasesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2015-09-15</startDate>
            <endDate>2015-09-15</endDate>
        </period>
    </context>
    <context id="i3a25353c20c14b35abbf91d45bfbe87c_D20170101-20171231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:NationalInstituteOfAllergyAndInfectiousDiseasesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-01-01</startDate>
            <endDate>2017-12-31</endDate>
        </period>
    </context>
    <context id="i5d5bbd7fdcf443d49958ebac856af8a9_D20180101-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:NationalInstituteOfAllergyAndInfectiousDiseasesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromGrantsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="i1146545c3fe94f6eaf430ca5b2d91022_D20190101-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:NationalInstituteOfAllergyAndInfectiousDiseasesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromGrantsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-01-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="i1275c78253554a68a851e88752ae5f12_D20170701-20170930">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:NationalInstituteOfAllergyAndInfectiousDiseasesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromGrantsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-07-01</startDate>
            <endDate>2017-09-30</endDate>
        </period>
    </context>
    <context id="i2b28e45a77774df182e415a12fde8ae9_D20180101-20180930">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:NationalInstituteOfAllergyAndInfectiousDiseasesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromGrantsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-09-30</endDate>
        </period>
    </context>
    <context id="iafaa3d31be544703b8adc30884a15ff4_D20170101-20170930">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:NationalInstituteOfAllergyAndInfectiousDiseasesMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="srt:ProductOrServiceAxis">mgnx:RevenuesFromGrantsMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-01-01</startDate>
            <endDate>2017-09-30</endDate>
        </period>
    </context>
    <context id="i45e1094c686c4667b1333e100976e4e4_I20170531">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:PlanNameAxis">mgnx:TwoThousandSixteenEmployeeStockPurchasePlanMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2017-05-31</instant>
        </period>
    </context>
    <context id="iccb5a3482d784c23acf7b724d9b5bfaa_D20170501-20170531">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:PlanNameAxis">mgnx:TwoThousandSixteenEmployeeStockPurchasePlanMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-05-01</startDate>
            <endDate>2017-05-31</endDate>
        </period>
    </context>
    <context id="i2c0f554142c349ed900bc6eb29f0bbd3_D20190101-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:PlanNameAxis">mgnx:TwoThousandSixteenEmployeeStockPurchasePlanMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-01-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="if47a72c816224b248964555bbbcb6075_D20180101-20180930">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:PlanNameAxis">mgnx:TwoThousandSixteenEmployeeStockPurchasePlanMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-09-30</endDate>
        </period>
    </context>
    <context id="ia4fe324b45f64cf0ab5b0829c4942e88_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:PlanNameAxis">mgnx:A2003StockIncentivePlanMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="if64283b5893c485cb40278f00607e31b_I20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:PlanNameAxis">mgnx:StockIncentivePlan2013Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-06-30</instant>
        </period>
    </context>
    <context id="i59a8ed6a2a594867a81dd546c18abfd8_D20190101-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:PlanNameAxis">mgnx:StockIncentivePlan2013Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-01-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="i24bbcd11fb3f4b51afbc4b8671847efa_D20190101-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:IncomeStatementLocationAxis">us-gaap:ResearchAndDevelopmentExpenseMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-01-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="i1affa01892214036a0d16e7911117f74_D20180101-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:IncomeStatementLocationAxis">us-gaap:ResearchAndDevelopmentExpenseMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="i1548ddc51ece4c889fc99492213e9016_D20180101-20180930">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:IncomeStatementLocationAxis">us-gaap:ResearchAndDevelopmentExpenseMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-09-30</endDate>
        </period>
    </context>
    <context id="iac718c56e0024863a5e6f80b7a7af28a_D20170101-20170930">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:IncomeStatementLocationAxis">us-gaap:ResearchAndDevelopmentExpenseMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-01-01</startDate>
            <endDate>2017-09-30</endDate>
        </period>
    </context>
    <context id="iec2989738c5949cd938c8d8072f091a1_D20190101-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:IncomeStatementLocationAxis">us-gaap:GeneralAndAdministrativeExpenseMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-01-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="i93ac4ae63b3b47ae82751e7cecda08e4_D20180101-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:IncomeStatementLocationAxis">us-gaap:GeneralAndAdministrativeExpenseMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="ic0d2cb45c1214ccaa9fb72ed58f739d2_D20180101-20180930">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:IncomeStatementLocationAxis">us-gaap:GeneralAndAdministrativeExpenseMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-09-30</endDate>
        </period>
    </context>
    <context id="i4c5408c96c3646ebaaee7d2cba65d7a3_D20170101-20170930">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:IncomeStatementLocationAxis">us-gaap:GeneralAndAdministrativeExpenseMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2017-01-01</startDate>
            <endDate>2017-09-30</endDate>
        </period>
    </context>
    <context id="iefa267268bab4a24ac885c4bf98d0360_D20190101-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:RangeAxis">srt:MinimumMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-01-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="ic4d594cebed54e48a2bbffffcbf0eee4_D20190101-20190630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:RangeAxis">srt:MaximumMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-01-01</startDate>
            <endDate>2019-06-30</endDate>
        </period>
    </context>
    <context id="i0886a33918d141068980bfe78596972a_D20180101-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:RangeAxis">srt:MinimumMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="i00ef57c13ab24c8d83b6e512b9553a18_D20180101-20180630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:RangeAxis">srt:MaximumMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2018-01-01</startDate>
            <endDate>2018-06-30</endDate>
        </period>
    </context>
    <context id="ifc30de328551458d8a2319cec37d3d19_D20190709-20190709">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:IMabBiopharmaMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:SubsequentEventTypeAxis">us-gaap:SubsequentEventMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2019-07-09</startDate>
            <endDate>2019-07-09</endDate>
        </period>
    </context>
    <context id="i197c1828301241e0a1c5f4ddd4d82f8d_I20190709">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001125345</identifier>
            <segment>
                <xbrldi:explicitMember dimension="srt:CounterpartyNameAxis">mgnx:IMabBiopharmaMember</xbrldi:explicitMember>
                <xbrldi:explicitMember dimension="us-gaap:SubsequentEventTypeAxis">us-gaap:SubsequentEventMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2019-07-09</instant>
        </period>
    </context>
    <unit id="shares">
        <measure>shares</measure>
    </unit>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="usdPerShare">
        <divide>
            <unitNumerator>
                <measure>iso4217:USD</measure>
            </unitNumerator>
            <unitDenominator>
                <measure>shares</measure>
            </unitDenominator>
        </divide>
    </unit>
    <unit id="number">
        <measure>pure</measure>
    </unit>
    <unit id="performance_obligation">
        <measure>mgnx:performance_obligation</measure>
    </unit>
    <unit id="exclusive_license">
        <measure>mgnx:exclusive_license</measure>
    </unit>
    <unit id="milestone">
        <measure>mgnx:milestone</measure>
    </unit>
    <unit id="component">
        <measure>mgnx:component</measure>
    </unit>
    <unit id="molecule">
        <measure>mgnx:Molecule</measure>
    </unit>
    <dei:AmendmentFlag
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180L2ZyYWc6YTJlNDIxMTcxMDc1NDY4Njg4YTA3OWMxMGYzOWNjYmIvdGFibGU6ZWNhYzdkNTQ5ODVlNDQ2MmE5NWJjNmJkMTUwNzc3ZDUvdGFibGVyYW5nZTplY2FjN2Q1NDk4NWU0NDYyYTk1YmM2YmQxNTA3NzdkNV8zLTEtMS0xLTA_1369d7b5-3754-4318-b073-b9f69b6181a2">false</dei:AmendmentFlag>
    <dei:DocumentFiscalYearFocus
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180L2ZyYWc6YTJlNDIxMTcxMDc1NDY4Njg4YTA3OWMxMGYzOWNjYmIvdGFibGU6ZWNhYzdkNTQ5ODVlNDQ2MmE5NWJjNmJkMTUwNzc3ZDUvdGFibGVyYW5nZTplY2FjN2Q1NDk4NWU0NDYyYTk1YmM2YmQxNTA3NzdkNV81LTEtMS0xLTA_3ec79d50-d198-4c34-ac5d-5a307f53bd82">2019</dei:DocumentFiscalYearFocus>
    <dei:DocumentFiscalPeriodFocus
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180L2ZyYWc6YTJlNDIxMTcxMDc1NDY4Njg4YTA3OWMxMGYzOWNjYmIvdGFibGU6ZWNhYzdkNTQ5ODVlNDQ2MmE5NWJjNmJkMTUwNzc3ZDUvdGFibGVyYW5nZTplY2FjN2Q1NDk4NWU0NDYyYTk1YmM2YmQxNTA3NzdkNV82LTEtMS0xLTA_cf05a671-a02e-447c-84ea-5e03923cd72f">Q2</dei:DocumentFiscalPeriodFocus>
    <dei:EntityCentralIndexKey
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180L2ZyYWc6YTJlNDIxMTcxMDc1NDY4Njg4YTA3OWMxMGYzOWNjYmIvdGV4dHJlZ2lvbjphMmU0MjExNzEwNzU0Njg2ODhhMDc5YzEwZjM5Y2NiYl8xMzA_4dffc4c9-9d7d-4e3e-8429-b3546b3c6adb">0001125345</dei:EntityCentralIndexKey>
    <dei:CurrentFiscalYearEndDate
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180L2ZyYWc6YTJlNDIxMTcxMDc1NDY4Njg4YTA3OWMxMGYzOWNjYmIvdGV4dHJlZ2lvbjphMmU0MjExNzEwNzU0Njg2ODhhMDc5YzEwZjM5Y2NiYl8xMzI_dd907a21-cc19-46ca-9903-d14db4ab5afe">--12-31</dei:CurrentFiscalYearEndDate>
    <us-gaap:CommonStockParOrStatedValuePerShare
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yMi9mcmFnOmRjYTA3YzYxNjhiMjRmZjNhNmY4NzFmYzRmMWE5MWZkL3RhYmxlOmEwMTVjZTAyYjQ2NTQ3YjI5NGE0ZWQwMDk0MGQ4NTc4L3RhYmxlcmFuZ2U6YTAxNWNlMDJiNDY1NDdiMjk0YTRlZDAwOTQwZDg1NzhfMi0xLTEtMS0w_54dd65ce-3446-4edb-ab97-bf0f6a59e5c1"
      unitRef="usdPerShare">0.01</us-gaap:CommonStockParOrStatedValuePerShare>
    <us-gaap:CommonStockParOrStatedValuePerShare
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yMi9mcmFnOmRjYTA3YzYxNjhiMjRmZjNhNmY4NzFmYzRmMWE5MWZkL3RhYmxlOmEwMTVjZTAyYjQ2NTQ3YjI5NGE0ZWQwMDk0MGQ4NTc4L3RhYmxlcmFuZ2U6YTAxNWNlMDJiNDY1NDdiMjk0YTRlZDAwOTQwZDg1NzhfMi0zLTEtMS0w_0343e1dd-1507-44cd-96ec-8f084aa80a83"
      unitRef="usdPerShare">0.01</us-gaap:CommonStockParOrStatedValuePerShare>
    <us-gaap:CommonStockSharesAuthorized
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yMi9mcmFnOmRjYTA3YzYxNjhiMjRmZjNhNmY4NzFmYzRmMWE5MWZkL3RhYmxlOmEwMTVjZTAyYjQ2NTQ3YjI5NGE0ZWQwMDk0MGQ4NTc4L3RhYmxlcmFuZ2U6YTAxNWNlMDJiNDY1NDdiMjk0YTRlZDAwOTQwZDg1NzhfMy0xLTEtMS0w_cf6c7c36-0327-4071-a5a8-472d2803223b"
      unitRef="shares">125000000</us-gaap:CommonStockSharesAuthorized>
    <us-gaap:CommonStockSharesAuthorized
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yMi9mcmFnOmRjYTA3YzYxNjhiMjRmZjNhNmY4NzFmYzRmMWE5MWZkL3RhYmxlOmEwMTVjZTAyYjQ2NTQ3YjI5NGE0ZWQwMDk0MGQ4NTc4L3RhYmxlcmFuZ2U6YTAxNWNlMDJiNDY1NDdiMjk0YTRlZDAwOTQwZDg1NzhfMy0zLTEtMS0w_5fd4e878-949d-4651-9673-b1b4ee058c11"
      unitRef="shares">125000000</us-gaap:CommonStockSharesAuthorized>
    <us-gaap:CommonStockSharesOutstanding
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yMi9mcmFnOmRjYTA3YzYxNjhiMjRmZjNhNmY4NzFmYzRmMWE5MWZkL3RhYmxlOmEwMTVjZTAyYjQ2NTQ3YjI5NGE0ZWQwMDk0MGQ4NTc4L3RhYmxlcmFuZ2U6YTAxNWNlMDJiNDY1NDdiMjk0YTRlZDAwOTQwZDg1NzhfNC0xLTEtMS0w_31966227-266c-46be-898c-be7c3dad77a6"
      unitRef="shares">48893451</us-gaap:CommonStockSharesOutstanding>
    <us-gaap:CommonStockSharesOutstanding
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yMi9mcmFnOmRjYTA3YzYxNjhiMjRmZjNhNmY4NzFmYzRmMWE5MWZkL3RhYmxlOmEwMTVjZTAyYjQ2NTQ3YjI5NGE0ZWQwMDk0MGQ4NTc4L3RhYmxlcmFuZ2U6YTAxNWNlMDJiNDY1NDdiMjk0YTRlZDAwOTQwZDg1NzhfNC0zLTEtMS0w_92e8a81c-0759-43e0-a5a4-7d93035f0b15"
      unitRef="shares">42353301</us-gaap:CommonStockSharesOutstanding>
    <us-gaap:LesseeOperatingLeaseRenewalTerm
      contextRef="i839b0cba27224fd1ac73da5630a99602_I20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180Ni9mcmFnOjVmNWYzOTI5ZjdjODRhMzM5MDdlY2M3OTc5MTU0NmNkL3RleHRyZWdpb246NWY1ZjM5MjlmN2M4NGEzMzkwN2VjYzc5NzkxNTQ2Y2RfNDE1_f703227b-ca84-4fb7-a4d7-84ba67ecafd1">P5Y</us-gaap:LesseeOperatingLeaseRenewalTerm>
    <us-gaap:LesseeOperatingLeaseRenewalTerm
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180Ni9mcmFnOjVmNWYzOTI5ZjdjODRhMzM5MDdlY2M3OTc5MTU0NmNkL3RleHRyZWdpb246NWY1ZjM5MjlmN2M4NGEzMzkwN2VjYzc5NzkxNTQ2Y2RfOTc4_2401bc9f-b923-404a-86d9-7ebbf1a85a89">P5Y</us-gaap:LesseeOperatingLeaseRenewalTerm>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate
      contextRef="iefa267268bab4a24ac885c4bf98d0360_D20190101-20190630"
      decimals="3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181OC9mcmFnOmE4YWVhZDIwZmM0YzQ0MTdhNjM1M2RjYjAwZWMzNGEzL3RhYmxlOjc4YmM2ODlkMWFmZjRlYTBhY2VhZjhhN2ZkZjM0ZDU3L3RhYmxlcmFuZ2U6NzhiYzY4OWQxYWZmNGVhMGFjZWFmOGE3ZmRmMzRkNTdfMy0xLTEtMS0w_8f0b221d-c80c-4356-8fe9-717f5cea01eb"
      unitRef="number">0.737</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate
      contextRef="ic4d594cebed54e48a2bbffffcbf0eee4_D20190101-20190630"
      decimals="3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181OC9mcmFnOmE4YWVhZDIwZmM0YzQ0MTdhNjM1M2RjYjAwZWMzNGEzL3RhYmxlOjc4YmM2ODlkMWFmZjRlYTBhY2VhZjhhN2ZkZjM0ZDU3L3RhYmxlcmFuZ2U6NzhiYzY4OWQxYWZmNGVhMGFjZWFmOGE3ZmRmMzRkNTdfMy0zLTEtMS0w_ccb120d4-5368-45f0-bb10-0b241354bdf2"
      unitRef="number">0.753</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate
      contextRef="i0886a33918d141068980bfe78596972a_D20180101-20180630"
      decimals="3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181OC9mcmFnOmE4YWVhZDIwZmM0YzQ0MTdhNjM1M2RjYjAwZWMzNGEzL3RhYmxlOjc4YmM2ODlkMWFmZjRlYTBhY2VhZjhhN2ZkZjM0ZDU3L3RhYmxlcmFuZ2U6NzhiYzY4OWQxYWZmNGVhMGFjZWFmOGE3ZmRmMzRkNTdfMy00LTEtMS0w_a1a67686-15f1-42cb-93f3-d746b9f1b761"
      unitRef="number">0.678</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate
      contextRef="i00ef57c13ab24c8d83b6e512b9553a18_D20180101-20180630"
      decimals="3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181OC9mcmFnOmE4YWVhZDIwZmM0YzQ0MTdhNjM1M2RjYjAwZWMzNGEzL3RhYmxlOjc4YmM2ODlkMWFmZjRlYTBhY2VhZjhhN2ZkZjM0ZDU3L3RhYmxlcmFuZ2U6NzhiYzY4OWQxYWZmNGVhMGFjZWFmOGE3ZmRmMzRkNTdfMy02LTEtMS0w_8dd3d51f-ccd3-4ccb-a7e6-3fa0ccfcb8b0"
      unitRef="number">0.722</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate
      contextRef="iefa267268bab4a24ac885c4bf98d0360_D20190101-20190630"
      decimals="3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181OC9mcmFnOmE4YWVhZDIwZmM0YzQ0MTdhNjM1M2RjYjAwZWMzNGEzL3RhYmxlOjc4YmM2ODlkMWFmZjRlYTBhY2VhZjhhN2ZkZjM0ZDU3L3RhYmxlcmFuZ2U6NzhiYzY4OWQxYWZmNGVhMGFjZWFmOGE3ZmRmMzRkNTdfNC0xLTEtMS0w_ac5b9dcf-23c3-4cf8-8c10-7d5999e4c71d"
      unitRef="number">0.019</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate
      contextRef="ic4d594cebed54e48a2bbffffcbf0eee4_D20190101-20190630"
      decimals="3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181OC9mcmFnOmE4YWVhZDIwZmM0YzQ0MTdhNjM1M2RjYjAwZWMzNGEzL3RhYmxlOjc4YmM2ODlkMWFmZjRlYTBhY2VhZjhhN2ZkZjM0ZDU3L3RhYmxlcmFuZ2U6NzhiYzY4OWQxYWZmNGVhMGFjZWFmOGE3ZmRmMzRkNTdfNC0zLTEtMS0w_f8e7160e-d180-4690-b284-1ed88322b3f3"
      unitRef="number">0.026</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate
      contextRef="i0886a33918d141068980bfe78596972a_D20180101-20180630"
      decimals="3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181OC9mcmFnOmE4YWVhZDIwZmM0YzQ0MTdhNjM1M2RjYjAwZWMzNGEzL3RhYmxlOjc4YmM2ODlkMWFmZjRlYTBhY2VhZjhhN2ZkZjM0ZDU3L3RhYmxlcmFuZ2U6NzhiYzY4OWQxYWZmNGVhMGFjZWFmOGE3ZmRmMzRkNTdfNC00LTEtMS0w_7079ea29-ce2f-43b1-8663-39d4402147ec"
      unitRef="number">0.024</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate
      contextRef="i00ef57c13ab24c8d83b6e512b9553a18_D20180101-20180630"
      decimals="3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181OC9mcmFnOmE4YWVhZDIwZmM0YzQ0MTdhNjM1M2RjYjAwZWMzNGEzL3RhYmxlOjc4YmM2ODlkMWFmZjRlYTBhY2VhZjhhN2ZkZjM0ZDU3L3RhYmxlcmFuZ2U6NzhiYzY4OWQxYWZmNGVhMGFjZWFmOGE3ZmRmMzRkNTdfNC02LTEtMS0w_35da92f6-37dd-4153-961c-0f8fdb9ad1cd"
      unitRef="number">0.031</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate>
    <dei:DocumentType
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xL2ZyYWc6MTUwMDM5MTM4M2M1NGJkNDliNmVmZDZjZmE5ZjI3ZTcvdGV4dHJlZ2lvbjoxNTAwMzkxMzgzYzU0YmQ0OWI2ZWZkNmNmYTlmMjdlN184Mg_bd6ed417-c50e-4e58-8bac-ddda0d147bfe">10-Q</dei:DocumentType>
    <dei:DocumentQuarterlyReport
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xL2ZyYWc6MTUwMDM5MTM4M2M1NGJkNDliNmVmZDZjZmE5ZjI3ZTcvdGFibGU6OTEyZDA2Y2EyMmQ4NDhjYmE0OGU0Yzk4MmYxZDU4MWUvdGFibGVyYW5nZTo5MTJkMDZjYTIyZDg0OGNiYTQ4ZTRjOTgyZjFkNTgxZV8wLTAtMS0xLTE5MDA_f13a5e4a-b15d-47ec-9e56-e55ac0cae371">true</dei:DocumentQuarterlyReport>
    <dei:DocumentPeriodEndDate
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xL2ZyYWc6MTUwMDM5MTM4M2M1NGJkNDliNmVmZDZjZmE5ZjI3ZTcvdGV4dHJlZ2lvbjoxNTAwMzkxMzgzYzU0YmQ0OWI2ZWZkNmNmYTlmMjdlN185MzQ1ODQ4ODM4Mjk0_bb68e5a6-2a9a-4bd0-9647-c866f56278e0">2019-06-30</dei:DocumentPeriodEndDate>
    <dei:DocumentTransitionReport
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xL2ZyYWc6MTUwMDM5MTM4M2M1NGJkNDliNmVmZDZjZmE5ZjI3ZTcvdGFibGU6OTNmODI3MDhjMmNkNGQ5N2JkM2EzNDk4OGVkNWEyMjMvdGFibGVyYW5nZTo5M2Y4MjcwOGMyY2Q0ZDk3YmQzYTM0OTg4ZWQ1YTIyM18wLTAtMS0xLTE5MDM_f0a7e57c-7671-4a74-8733-108129a69102">false</dei:DocumentTransitionReport>
    <dei:EntityFileNumber
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xL2ZyYWc6MTUwMDM5MTM4M2M1NGJkNDliNmVmZDZjZmE5ZjI3ZTcvdGV4dHJlZ2lvbjoxNTAwMzkxMzgzYzU0YmQ0OWI2ZWZkNmNmYTlmMjdlN185MzQ1ODQ4ODM4Mjcw_d65ee2b6-26b7-4376-add3-eaa6517796d5">001-36112</dei:EntityFileNumber>
    <dei:EntityRegistrantName
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xL2ZyYWc6MTUwMDM5MTM4M2M1NGJkNDliNmVmZDZjZmE5ZjI3ZTcvdGV4dHJlZ2lvbjoxNTAwMzkxMzgzYzU0YmQ0OWI2ZWZkNmNmYTlmMjdlN18yMjE_228d270a-aeb0-4c8d-948e-a92cdb6da3db">MACROGENICS, INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xL2ZyYWc6MTUwMDM5MTM4M2M1NGJkNDliNmVmZDZjZmE5ZjI3ZTcvdGFibGU6ZjM0ZWU3MDU1ZDJmNGQ3MDhkYzE3NDk1YjBjNWIwNzMvdGFibGVyYW5nZTpmMzRlZTcwNTVkMmY0ZDcwOGRjMTc0OTViMGM1YjA3M18wLTAtMS0xLTE4OTQ_72f4afea-7017-4435-9d24-2fbb11a83164">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityTaxIdentificationNumber
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xL2ZyYWc6MTUwMDM5MTM4M2M1NGJkNDliNmVmZDZjZmE5ZjI3ZTcvdGFibGU6ZjM0ZWU3MDU1ZDJmNGQ3MDhkYzE3NDk1YjBjNWIwNzMvdGFibGVyYW5nZTpmMzRlZTcwNTVkMmY0ZDcwOGRjMTc0OTViMGM1YjA3M18wLTEtMS0xLTE4OTI_96db6fb7-a11a-4ae1-bcc2-490447f0a7b5">06-1591613</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xL2ZyYWc6MTUwMDM5MTM4M2M1NGJkNDliNmVmZDZjZmE5ZjI3ZTcvdGFibGU6ZjM0ZWU3MDU1ZDJmNGQ3MDhkYzE3NDk1YjBjNWIwNzMvdGFibGVyYW5nZTpmMzRlZTcwNTVkMmY0ZDcwOGRjMTc0OTViMGM1YjA3M18zLTAtMS0xLTIzMjUvdGV4dHJlZ2lvbjphMTAxYTBiZTc2ZDE0OTUyYmQ4MDRiODA1MzdlMTUyYV85MzQ1ODQ4ODM2MTcy_6413b74b-3df0-45b1-a866-c3a51f19e878">9704 Medical Center Drive</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xL2ZyYWc6MTUwMDM5MTM4M2M1NGJkNDliNmVmZDZjZmE5ZjI3ZTcvdGFibGU6ZjM0ZWU3MDU1ZDJmNGQ3MDhkYzE3NDk1YjBjNWIwNzMvdGFibGVyYW5nZTpmMzRlZTcwNTVkMmY0ZDcwOGRjMTc0OTViMGM1YjA3M18zLTAtMS0xLTIzMjUvdGV4dHJlZ2lvbjphMTAxYTBiZTc2ZDE0OTUyYmQ4MDRiODA1MzdlMTUyYV85MzQ1ODQ4ODM2MjMx_f728755e-30ee-4dd5-a807-98506c7bfd9c">Rockville</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xL2ZyYWc6MTUwMDM5MTM4M2M1NGJkNDliNmVmZDZjZmE5ZjI3ZTcvdGFibGU6ZjM0ZWU3MDU1ZDJmNGQ3MDhkYzE3NDk1YjBjNWIwNzMvdGFibGVyYW5nZTpmMzRlZTcwNTVkMmY0ZDcwOGRjMTc0OTViMGM1YjA3M18zLTAtMS0xLTIzMjUvdGV4dHJlZ2lvbjphMTAxYTBiZTc2ZDE0OTUyYmQ4MDRiODA1MzdlMTUyYV85MzQ1ODQ4ODM2MjQx_9b3eac7e-e289-487d-aa8c-55321ebaaedf">MD</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xL2ZyYWc6MTUwMDM5MTM4M2M1NGJkNDliNmVmZDZjZmE5ZjI3ZTcvdGFibGU6ZjM0ZWU3MDU1ZDJmNGQ3MDhkYzE3NDk1YjBjNWIwNzMvdGFibGVyYW5nZTpmMzRlZTcwNTVkMmY0ZDcwOGRjMTc0OTViMGM1YjA3M18zLTEtMS0xLTE4ODk_758de057-7afb-4da8-b884-66b2d0b4cff2">20850</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xL2ZyYWc6MTUwMDM5MTM4M2M1NGJkNDliNmVmZDZjZmE5ZjI3ZTcvdGV4dHJlZ2lvbjoxNTAwMzkxMzgzYzU0YmQ0OWI2ZWZkNmNmYTlmMjdlN185MzQ1ODQ4ODM4Mjg1_3f9617e7-0365-4ba1-a9e2-30098ed512ae">301</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xL2ZyYWc6MTUwMDM5MTM4M2M1NGJkNDliNmVmZDZjZmE5ZjI3ZTcvdGV4dHJlZ2lvbjoxNTAwMzkxMzgzYzU0YmQ0OWI2ZWZkNmNmYTlmMjdlN185MzQ1ODQ4ODM4Mjgw_3c26ad73-e0ec-4bf8-8e5f-025025e689d9">251-5172</dei:LocalPhoneNumber>
    <dei:Security12bTitle
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xL2ZyYWc6MTUwMDM5MTM4M2M1NGJkNDliNmVmZDZjZmE5ZjI3ZTcvdGFibGU6N2M4OTZiYzkyZTQ1NGQxMDkxMzE4ODEyMmNkMGNjZjQvdGFibGVyYW5nZTo3Yzg5NmJjOTJlNDU0ZDEwOTEzMTg4MTIyY2QwY2NmNF8xLTAtMS0xLTE4NzE_4ddf8bd6-1232-4087-b99e-6db9362f41e7">Common Stock, par value $0.01 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xL2ZyYWc6MTUwMDM5MTM4M2M1NGJkNDliNmVmZDZjZmE5ZjI3ZTcvdGFibGU6N2M4OTZiYzkyZTQ1NGQxMDkxMzE4ODEyMmNkMGNjZjQvdGFibGVyYW5nZTo3Yzg5NmJjOTJlNDU0ZDEwOTEzMTg4MTIyY2QwY2NmNF8xLTEtMS0xLTE4NzQ_b166ff76-5d28-4fad-849f-96b7dbe04085">MGNX</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xL2ZyYWc6MTUwMDM5MTM4M2M1NGJkNDliNmVmZDZjZmE5ZjI3ZTcvdGFibGU6N2M4OTZiYzkyZTQ1NGQxMDkxMzE4ODEyMmNkMGNjZjQvdGFibGVyYW5nZTo3Yzg5NmJjOTJlNDU0ZDEwOTEzMTg4MTIyY2QwY2NmNF8xLTItMS0xLTE4NzY_28d79ef6-d272-47a6-88bb-350d169864e5">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityCurrentReportingStatus
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xL2ZyYWc6MTUwMDM5MTM4M2M1NGJkNDliNmVmZDZjZmE5ZjI3ZTcvdGV4dHJlZ2lvbjoxNTAwMzkxMzgzYzU0YmQ0OWI2ZWZkNmNmYTlmMjdlN180OTQ3ODAyMzI3MDc2_0be1e8b4-6834-47f9-9691-5ee520152bff">Yes</dei:EntityCurrentReportingStatus>
    <dei:EntityInteractiveDataCurrent
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xL2ZyYWc6MTUwMDM5MTM4M2M1NGJkNDliNmVmZDZjZmE5ZjI3ZTcvdGV4dHJlZ2lvbjoxNTAwMzkxMzgzYzU0YmQ0OWI2ZWZkNmNmYTlmMjdlN180OTQ3ODAyMzI3MDc3_5f316d44-627f-4d54-802c-49e31cd32cfa">Yes</dei:EntityInteractiveDataCurrent>
    <dei:EntityFilerCategory
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xL2ZyYWc6MTUwMDM5MTM4M2M1NGJkNDliNmVmZDZjZmE5ZjI3ZTcvdGFibGU6ODQyYmViNDM2MjhkNDU1NTkzZGQ0MzJlYWIzN2ExM2QvdGFibGVyYW5nZTo4NDJiZWI0MzYyOGQ0NTU1OTNkZDQzMmVhYjM3YTEzZF8wLTAtMS0xLTE4OTY_10944b6c-2f82-4edb-b1a3-dc9f4d2a1e68">Large Accelerated Filer</dei:EntityFilerCategory>
    <dei:EntitySmallBusiness
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xL2ZyYWc6MTUwMDM5MTM4M2M1NGJkNDliNmVmZDZjZmE5ZjI3ZTcvdGFibGU6ODQyYmViNDM2MjhkNDU1NTkzZGQ0MzJlYWIzN2ExM2QvdGFibGVyYW5nZTo4NDJiZWI0MzYyOGQ0NTU1OTNkZDQzMmVhYjM3YTEzZF8yLTMtMS0xLTE5MTc_a8e7d1fe-6f66-4541-b90f-b0c0ba09328e">false</dei:EntitySmallBusiness>
    <dei:EntityEmergingGrowthCompany
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xL2ZyYWc6MTUwMDM5MTM4M2M1NGJkNDliNmVmZDZjZmE5ZjI3ZTcvdGFibGU6ODQyYmViNDM2MjhkNDU1NTkzZGQ0MzJlYWIzN2ExM2QvdGFibGVyYW5nZTo4NDJiZWI0MzYyOGQ0NTU1OTNkZDQzMmVhYjM3YTEzZF80LTEtMS0xLTIzODM_94d00459-fff7-4566-8fe1-29045eba1b40">false</dei:EntityEmergingGrowthCompany>
    <dei:EntityShellCompany
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xL2ZyYWc6MTUwMDM5MTM4M2M1NGJkNDliNmVmZDZjZmE5ZjI3ZTcvdGV4dHJlZ2lvbjoxNTAwMzkxMzgzYzU0YmQ0OWI2ZWZkNmNmYTlmMjdlN180OTQ3ODAyMzI3MDc4_5f4719e5-b3ca-49c3-a106-91aff61f5d56">false</dei:EntityShellCompany>
    <dei:EntityCommonStockSharesOutstanding
      contextRef="ib06087bfc2784e57b8ba5ef127524d9f_I20190726"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xL2ZyYWc6MTUwMDM5MTM4M2M1NGJkNDliNmVmZDZjZmE5ZjI3ZTcvdGV4dHJlZ2lvbjoxNTAwMzkxMzgzYzU0YmQ0OWI2ZWZkNmNmYTlmMjdlN18xODI4_dc5e17af-a1cd-4ff8-8522-760a2c5b67ca"
      unitRef="shares">48893451</dei:EntityCommonStockSharesOutstanding>
    <us-gaap:CashAndCashEquivalentsAtCarryingValue
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfNC0xLTEtMS0w_f51a587e-8241-47a6-8016-3ecfb9dd824a"
      unitRef="usd">180316000</us-gaap:CashAndCashEquivalentsAtCarryingValue>
    <us-gaap:CashAndCashEquivalentsAtCarryingValue
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfNC0zLTEtMS0w_a38e7cc8-24a6-463e-934a-38697fc14a69"
      unitRef="usd">220128000</us-gaap:CashAndCashEquivalentsAtCarryingValue>
    <us-gaap:Investments
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfNS0xLTEtMS0w_3cf0a250-dbc5-4f7d-a5fd-d89860a46f9e"
      unitRef="usd">91820000</us-gaap:Investments>
    <us-gaap:Investments
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfNS0zLTEtMS0w_e52036e1-827e-4761-a500-fa51c8678c32"
      unitRef="usd">12735000</us-gaap:Investments>
    <us-gaap:AccountsReceivableNetCurrent
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfNi0xLTEtMS0w_7df28a42-124f-4d7a-a6a3-c4d60b59038b"
      unitRef="usd">5613000</us-gaap:AccountsReceivableNetCurrent>
    <us-gaap:AccountsReceivableNetCurrent
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfNi0zLTEtMS0w_5476f511-04ff-4a64-8930-2ec62704afe6"
      unitRef="usd">29583000</us-gaap:AccountsReceivableNetCurrent>
    <us-gaap:PrepaidExpenseCurrent
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfNy0xLTEtMS0w_46194d70-b524-4ccd-b1b3-0a1645910a20"
      unitRef="usd">9616000</us-gaap:PrepaidExpenseCurrent>
    <us-gaap:PrepaidExpenseCurrent
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfNy0zLTEtMS0w_b6ccf6a9-620c-45db-b4f1-5bcdc45b888b"
      unitRef="usd">6406000</us-gaap:PrepaidExpenseCurrent>
    <us-gaap:OtherAssets
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfOC0xLTEtMS0w_f51e8ebc-c7be-4191-922e-afbb832678c6"
      unitRef="usd">232000</us-gaap:OtherAssets>
    <us-gaap:OtherAssets
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfOC0zLTEtMS0w_b178ecaf-b7db-45fa-b6bc-540cb1103999"
      unitRef="usd">272000</us-gaap:OtherAssets>
    <us-gaap:AssetsCurrent
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfOS0xLTEtMS0w_6c20e117-c7bf-487b-a08b-320b3421bfe2"
      unitRef="usd">287597000</us-gaap:AssetsCurrent>
    <us-gaap:AssetsCurrent
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfOS0zLTEtMS0w_8a8c4d75-d78b-4bf8-acdf-309e90c34a8d"
      unitRef="usd">269124000</us-gaap:AssetsCurrent>
    <us-gaap:PropertyPlantAndEquipmentNet
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMTAtMS0xLTEtMA_0c85ea16-e44b-4b85-90ec-ae20fc19257e"
      unitRef="usd">52295000</us-gaap:PropertyPlantAndEquipmentNet>
    <us-gaap:PropertyPlantAndEquipmentNet
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMTAtMy0xLTEtMA_8abd0ba7-7798-41e0-a6d8-bcd7ebe0f6e2"
      unitRef="usd">56712000</us-gaap:PropertyPlantAndEquipmentNet>
    <us-gaap:OtherAssetsNoncurrent
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMTItMS0xLTEtMA_162d2e57-8c05-4bd4-bdfc-6905b4ab7fbf"
      unitRef="usd">43785000</us-gaap:OtherAssetsNoncurrent>
    <us-gaap:OtherAssetsNoncurrent
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMTItMy0xLTEtMA_eb950fc8-9a35-4c67-9e89-1a54e140ad87"
      unitRef="usd">6294000</us-gaap:OtherAssetsNoncurrent>
    <us-gaap:Assets
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMTMtMS0xLTEtMA_6e7c8ced-7df2-4f69-ad77-bf85a438b353"
      unitRef="usd">383677000</us-gaap:Assets>
    <us-gaap:Assets
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMTMtMy0xLTEtMA_0c7535fd-f561-4e00-bc2e-754ed908d04c"
      unitRef="usd">332130000</us-gaap:Assets>
    <us-gaap:AccountsPayableCurrent
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMTctMS0xLTEtMA_766d4eb7-1d4f-437f-894a-99385f447980"
      unitRef="usd">857000</us-gaap:AccountsPayableCurrent>
    <us-gaap:AccountsPayableCurrent
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMTctMy0xLTEtMA_baf6f5a4-da6a-44b1-a262-09d7b752e360"
      unitRef="usd">4005000</us-gaap:AccountsPayableCurrent>
    <us-gaap:AccruedLiabilitiesCurrent
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMTgtMS0xLTEtMA_af1ca334-7645-47f0-be0a-6d9d8e035cbd"
      unitRef="usd">30410000</us-gaap:AccruedLiabilitiesCurrent>
    <us-gaap:AccruedLiabilitiesCurrent
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMTgtMy0xLTEtMA_44ab6d68-1b2c-4e98-9cfd-6bb790b80b32"
      unitRef="usd">33021000</us-gaap:AccruedLiabilitiesCurrent>
    <us-gaap:ContractWithCustomerLiabilityCurrent
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMTktMS0xLTEtMA_9340e4c2-ac71-4a74-bee4-56460a743aba"
      unitRef="usd">14449000</us-gaap:ContractWithCustomerLiabilityCurrent>
    <us-gaap:ContractWithCustomerLiabilityCurrent
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMTktMy0xLTEtMA_8c262e37-dfa9-40cb-b0d6-de29ef38a7b1"
      unitRef="usd">21721000</us-gaap:ContractWithCustomerLiabilityCurrent>
    <us-gaap:DeferredRentCreditCurrent
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMjAtMS0xLTEtMA_f0845ec5-b789-4f7c-a07e-d11e20db49c0"
      unitRef="usd">0</us-gaap:DeferredRentCreditCurrent>
    <us-gaap:DeferredRentCreditCurrent
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMjAtMy0xLTEtMA_ee11aeca-ebb4-467e-b0ba-4d083170755b"
      unitRef="usd">1018000</us-gaap:DeferredRentCreditCurrent>
    <us-gaap:OperatingLeaseLiabilityCurrent
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMjEtMS0xLTEtMA_2320d6d2-166e-43e1-b37b-5ac82acbd906"
      unitRef="usd">3644000</us-gaap:OperatingLeaseLiabilityCurrent>
    <us-gaap:OperatingLeaseLiabilityCurrent
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMjEtMy0xLTEtMA_f2c037e0-d713-4506-bf91-dd5ccba7e19b"
      unitRef="usd">0</us-gaap:OperatingLeaseLiabilityCurrent>
    <us-gaap:OtherLiabilitiesCurrent
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMjItMS0xLTEtMA_5fac3775-033b-4b48-8781-bc965a50fae5"
      unitRef="usd">175000</us-gaap:OtherLiabilitiesCurrent>
    <us-gaap:OtherLiabilitiesCurrent
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMjItMy0xLTEtMA_68295ab0-e20b-4259-b64e-2941cd2847d8"
      unitRef="usd">175000</us-gaap:OtherLiabilitiesCurrent>
    <us-gaap:LiabilitiesCurrent
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMjMtMS0xLTEtMA_8aab8909-416a-41f0-ba8e-f5fea84c668f"
      unitRef="usd">49535000</us-gaap:LiabilitiesCurrent>
    <us-gaap:LiabilitiesCurrent
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMjMtMy0xLTEtMA_e8fb7dbd-bc44-4199-8b36-2daf953508bf"
      unitRef="usd">59940000</us-gaap:LiabilitiesCurrent>
    <us-gaap:ContractWithCustomerLiabilityNoncurrent
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMjQtMS0xLTEtMA_43e6029f-0757-4a93-9fcc-c56c1255ff1f"
      unitRef="usd">15413000</us-gaap:ContractWithCustomerLiabilityNoncurrent>
    <us-gaap:ContractWithCustomerLiabilityNoncurrent
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMjQtMy0xLTEtMA_97905dd4-41d0-4295-a5d0-305a8de36d0d"
      unitRef="usd">19001000</us-gaap:ContractWithCustomerLiabilityNoncurrent>
    <us-gaap:OperatingLeaseLiabilityNoncurrent
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMjUtMS0xLTEtMA_4c75ec9c-6682-4096-86d1-1bb6ddd295fe"
      unitRef="usd">24278000</us-gaap:OperatingLeaseLiabilityNoncurrent>
    <us-gaap:OperatingLeaseLiabilityNoncurrent
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMjUtMy0xLTEtMA_47c8baab-8d76-4fca-8733-89009d0bbb47"
      unitRef="usd">0</us-gaap:OperatingLeaseLiabilityNoncurrent>
    <us-gaap:DeferredRentCreditNoncurrent
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMjYtMS0xLTEtMA_9ae90012-de6d-4fac-b92f-38c1db75f8bb"
      unitRef="usd">0</us-gaap:DeferredRentCreditNoncurrent>
    <us-gaap:DeferredRentCreditNoncurrent
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMjYtMy0xLTEtMA_3c476f8b-a092-4c44-9abb-4acd9e3a0819"
      unitRef="usd">10312000</us-gaap:DeferredRentCreditNoncurrent>
    <us-gaap:Liabilities
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMjgtMS0xLTEtMA_a678a515-b8c4-4d14-8244-e7e4f7ac50a8"
      unitRef="usd">89226000</us-gaap:Liabilities>
    <us-gaap:Liabilities
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMjgtMy0xLTEtMA_7accf0b6-3a9d-4db1-8277-718e3c527272"
      unitRef="usd">89253000</us-gaap:Liabilities>
    <us-gaap:CommonStockValue
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMzAtMS0xLTEtMA_2eb79fb1-1ecb-48f9-b5bc-1fd30f6961cf"
      unitRef="usd">489000</us-gaap:CommonStockValue>
    <us-gaap:CommonStockValue
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMzAtMy0xLTEtMA_99ddd65b-0b7d-4bd8-b416-40a4a2c3b035"
      unitRef="usd">424000</us-gaap:CommonStockValue>
    <us-gaap:AdditionalPaidInCapitalCommonStock
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMzEtMS0xLTEtMA_ee7d9f45-dd36-4e1c-adb1-7a5c2b38e8e4"
      unitRef="usd">860983000</us-gaap:AdditionalPaidInCapitalCommonStock>
    <us-gaap:AdditionalPaidInCapitalCommonStock
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMzEtMy0xLTEtMA_179a9a01-8f07-43a4-9f8c-086e3ef515bd"
      unitRef="usd">732727000</us-gaap:AdditionalPaidInCapitalCommonStock>
    <us-gaap:AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMzItMS0xLTEtMA_e6be0f06-1eab-440a-ae24-776421856ad7"
      unitRef="usd">34000</us-gaap:AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax>
    <us-gaap:AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMzItMy0xLTEtMA_b80450f7-5558-49bd-b63f-986959e124b1"
      unitRef="usd">-3000</us-gaap:AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax>
    <us-gaap:RetainedEarningsAccumulatedDeficit
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMzMtMS0xLTEtMA_dd7cc302-d0ea-41aa-aeac-aa1070711924"
      unitRef="usd">-567055000</us-gaap:RetainedEarningsAccumulatedDeficit>
    <us-gaap:RetainedEarningsAccumulatedDeficit
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMzMtMy0xLTEtMA_6744346d-8a56-4b22-857a-0ca980b27942"
      unitRef="usd">-490271000</us-gaap:RetainedEarningsAccumulatedDeficit>
    <us-gaap:StockholdersEquity
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMzQtMS0xLTEtMA_c6cff8f5-52ef-4c60-8b09-54e041e6baa2"
      unitRef="usd">294451000</us-gaap:StockholdersEquity>
    <us-gaap:StockholdersEquity
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMzQtMy0xLTEtMA_a87d35fa-730e-4947-b651-2e781ea7e6a5"
      unitRef="usd">242877000</us-gaap:StockholdersEquity>
    <us-gaap:LiabilitiesAndStockholdersEquity
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMzUtMS0xLTEtMA_60e39f1a-9e4c-42c7-9d8e-717e8e77cfae"
      unitRef="usd">383677000</us-gaap:LiabilitiesAndStockholdersEquity>
    <us-gaap:LiabilitiesAndStockholdersEquity
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18xOS9mcmFnOjI3NWM1MzBlYWRkNzQzNjY5ZjQyMzRhNWU3ODkyYzc1L3RhYmxlOmU0NTBiMDk4NzAyZTRiMDNiNjljZDZiYzIzNjcyNTc5L3RhYmxlcmFuZ2U6ZTQ1MGIwOTg3MDJlNGIwM2I2OWNkNmJjMjM2NzI1NzlfMzUtMy0xLTEtMA_ed7a7c80-5f27-4d04-a8c6-56256bf1a728"
      unitRef="usd">332130000</us-gaap:LiabilitiesAndStockholdersEquity>
    <us-gaap:Revenues
      contextRef="i14aa23de56c845a0a0522738f43bf230_D20190401-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMy0xLTEtMS0w_8c26324d-a342-4c10-aca0-ae9132116b2b"
      unitRef="usd">9987000</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="iaa81d2b17b8942fd88357c078c197777_D20180401-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMy0zLTEtMS0w_064246f1-4a84-4fe1-acdd-8ca245facd9a"
      unitRef="usd">18552000</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="i199200ecd363416c88a0a054f6204cb5_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMy01LTEtMS0w_f1c97f49-13c2-476e-8033-aaef14b6a11e"
      unitRef="usd">19484000</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="i65b40dd2d0e6404c88a953b58c52b2e4_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMy03LTEtMS0w_0a4d1fce-8bea-4445-af1c-ee81232b9ab1"
      unitRef="usd">23053000</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="i07352f885f9846328835d094762ff1fc_D20190401-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfNC0xLTEtMS0w_d01b5b14-d727-471e-943b-23f02d4fa0e7"
      unitRef="usd">606000</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="i3bf42fc0ad444567a758d675ea622dfb_D20180401-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfNC0zLTEtMS0w_c41681cd-8eb5-4ebc-88cc-c9ae675428c4"
      unitRef="usd">282000</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="i1e386548489e4c62a64ddcfa3ce48b99_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfNC01LTEtMS0w_34a7791e-9f8a-4c66-9f44-92e1a03c01fe"
      unitRef="usd">771000</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="ifc04842e03e34546869cd442269fc979_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfNC03LTEtMS0w_417260df-98b1-4930-8104-9e0686d43b62"
      unitRef="usd">476000</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="i109c6dbc0d494accadbd5c861b8512d5_D20190401-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfNS0xLTEtMS0w_12368684-c189-41e5-8298-b791b53d5b9e"
      unitRef="usd">10593000</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="i81a0c702f2dc49eaa9cd1000fbc3825a_D20180401-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfNS0zLTEtMS0w_ad73b03b-cbf6-4a10-9246-ea795ec452bc"
      unitRef="usd">18834000</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfNS01LTEtMS0w_cead8e1f-0a4b-4a8e-9e7c-38593133a525"
      unitRef="usd">20255000</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfNS03LTEtMS0w_83f5b12e-bee6-4989-b076-276ecf850d3d"
      unitRef="usd">23529000</us-gaap:Revenues>
    <us-gaap:ResearchAndDevelopmentExpense
      contextRef="i109c6dbc0d494accadbd5c861b8512d5_D20190401-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfNy0xLTEtMS0w_72a19a78-23db-47d5-bbb9-58b931e6aab7"
      unitRef="usd">51440000</us-gaap:ResearchAndDevelopmentExpense>
    <us-gaap:ResearchAndDevelopmentExpense
      contextRef="i81a0c702f2dc49eaa9cd1000fbc3825a_D20180401-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfNy0zLTEtMS0w_d6c29c12-7931-469d-94e8-619ecfbe9c77"
      unitRef="usd">52014000</us-gaap:ResearchAndDevelopmentExpense>
    <us-gaap:ResearchAndDevelopmentExpense
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfNy01LTEtMS0w_1bf19e8c-fdf4-46ff-ae82-5c4a483da852"
      unitRef="usd">98500000</us-gaap:ResearchAndDevelopmentExpense>
    <us-gaap:ResearchAndDevelopmentExpense
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfNy03LTEtMS0w_3a061e9a-d6c7-452e-b44c-ace141105232"
      unitRef="usd">97684000</us-gaap:ResearchAndDevelopmentExpense>
    <us-gaap:GeneralAndAdministrativeExpense
      contextRef="i109c6dbc0d494accadbd5c861b8512d5_D20190401-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfOC0xLTEtMS0w_f1b4381f-f8f8-40ce-82fe-8303e1b56d29"
      unitRef="usd">12122000</us-gaap:GeneralAndAdministrativeExpense>
    <us-gaap:GeneralAndAdministrativeExpense
      contextRef="i81a0c702f2dc49eaa9cd1000fbc3825a_D20180401-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfOC0zLTEtMS0w_db8b2765-1940-4d9f-aeb1-bb11c57ba122"
      unitRef="usd">11134000</us-gaap:GeneralAndAdministrativeExpense>
    <us-gaap:GeneralAndAdministrativeExpense
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfOC01LTEtMS0w_6b53ab4d-4972-4cb4-98ad-03c666c32df1"
      unitRef="usd">22341000</us-gaap:GeneralAndAdministrativeExpense>
    <us-gaap:GeneralAndAdministrativeExpense
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfOC03LTEtMS0w_2f4e1784-f82e-4c21-a2ad-e9ced65e4a12"
      unitRef="usd">20369000</us-gaap:GeneralAndAdministrativeExpense>
    <us-gaap:CostsAndExpenses
      contextRef="i109c6dbc0d494accadbd5c861b8512d5_D20190401-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfOS0xLTEtMS0w_a2214c05-0eac-49e1-8007-6c5fc0acd378"
      unitRef="usd">63562000</us-gaap:CostsAndExpenses>
    <us-gaap:CostsAndExpenses
      contextRef="i81a0c702f2dc49eaa9cd1000fbc3825a_D20180401-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfOS0zLTEtMS0w_bcc617d5-671a-4435-af8b-de8807e877d3"
      unitRef="usd">63148000</us-gaap:CostsAndExpenses>
    <us-gaap:CostsAndExpenses
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfOS01LTEtMS0w_3f054b85-ed04-4450-8c37-fe6779f42569"
      unitRef="usd">120841000</us-gaap:CostsAndExpenses>
    <us-gaap:CostsAndExpenses
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfOS03LTEtMS0w_f3ab56ea-5770-4145-8842-2926406be789"
      unitRef="usd">118053000</us-gaap:CostsAndExpenses>
    <us-gaap:OperatingIncomeLoss
      contextRef="i109c6dbc0d494accadbd5c861b8512d5_D20190401-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTAtMS0xLTEtMA_6f156b2b-88bc-4386-b812-cc5cd1cdfed6"
      unitRef="usd">-52969000</us-gaap:OperatingIncomeLoss>
    <us-gaap:OperatingIncomeLoss
      contextRef="i81a0c702f2dc49eaa9cd1000fbc3825a_D20180401-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTAtMy0xLTEtMA_1459fd95-0e11-48a5-adea-453a5b877005"
      unitRef="usd">-44314000</us-gaap:OperatingIncomeLoss>
    <us-gaap:OperatingIncomeLoss
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTAtNS0xLTEtMA_979e0c4d-1c65-48b2-8e56-bf86bb4c35c7"
      unitRef="usd">-100586000</us-gaap:OperatingIncomeLoss>
    <us-gaap:OperatingIncomeLoss
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTAtNy0xLTEtMA_14d9a381-438c-4302-9c9c-c9957fe7bbc3"
      unitRef="usd">-94524000</us-gaap:OperatingIncomeLoss>
    <us-gaap:OtherNonoperatingIncomeExpense
      contextRef="i109c6dbc0d494accadbd5c861b8512d5_D20190401-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTEtMS0xLTEtMA_7960edfc-0482-4b9e-854d-162cd0f442d2"
      unitRef="usd">21202000</us-gaap:OtherNonoperatingIncomeExpense>
    <us-gaap:OtherNonoperatingIncomeExpense
      contextRef="i81a0c702f2dc49eaa9cd1000fbc3825a_D20180401-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTEtMy0xLTEtMA_b068df46-7c9e-41ec-a5e9-5834a20550fc"
      unitRef="usd">1070000</us-gaap:OtherNonoperatingIncomeExpense>
    <us-gaap:OtherNonoperatingIncomeExpense
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTEtNS0xLTEtMA_e1675bc7-5b4f-4731-b486-d7c7e1ca37c6"
      unitRef="usd">23802000</us-gaap:OtherNonoperatingIncomeExpense>
    <us-gaap:OtherNonoperatingIncomeExpense
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTEtNy0xLTEtMA_59a8fd31-16fa-4433-b151-7ef40555d1d8"
      unitRef="usd">1744000</us-gaap:OtherNonoperatingIncomeExpense>
    <us-gaap:NetIncomeLoss
      contextRef="i109c6dbc0d494accadbd5c861b8512d5_D20190401-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTItMS0xLTEtMA_3ce6f2ac-5b52-4c6c-8037-27208208ce0b"
      unitRef="usd">-31767000</us-gaap:NetIncomeLoss>
    <us-gaap:NetIncomeLoss
      contextRef="i81a0c702f2dc49eaa9cd1000fbc3825a_D20180401-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTItMy0xLTEtMA_f326f741-be5e-4522-8f6e-05bcd0cb6bb7"
      unitRef="usd">-43244000</us-gaap:NetIncomeLoss>
    <us-gaap:NetIncomeLoss
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTItNS0xLTEtMA_f34715bc-3bfe-4e3f-993e-966413ea1769"
      unitRef="usd">-76784000</us-gaap:NetIncomeLoss>
    <us-gaap:NetIncomeLoss
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTItNy0xLTEtMA_59e37e2b-5258-478c-886a-fa399086103a"
      unitRef="usd">-92780000</us-gaap:NetIncomeLoss>
    <us-gaap:OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax
      contextRef="i109c6dbc0d494accadbd5c861b8512d5_D20190401-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTQtMS0xLTEtMA_fc9641f8-daeb-469d-8372-b92fe59b0c6d"
      unitRef="usd">34000</us-gaap:OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax>
    <us-gaap:OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax
      contextRef="i81a0c702f2dc49eaa9cd1000fbc3825a_D20180401-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTQtMy0xLTEtMA_b3624230-d4d4-40d5-99fb-1c576b5650db"
      unitRef="usd">40000</us-gaap:OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax>
    <us-gaap:OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTQtNS0xLTEtMA_89405768-55e2-48d5-a50b-99a32ad738fa"
      unitRef="usd">37000</us-gaap:OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax>
    <us-gaap:OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTQtNy0xLTEtMA_ca1ced6d-08ad-4525-ab1e-973420e6f57d"
      unitRef="usd">79000</us-gaap:OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax>
    <us-gaap:OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent
      contextRef="i109c6dbc0d494accadbd5c861b8512d5_D20190401-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTUtMS0xLTEtMA_bb00e367-c042-423a-9802-82edad1ede99"
      unitRef="usd">-31733000</us-gaap:OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent>
    <us-gaap:OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent
      contextRef="i81a0c702f2dc49eaa9cd1000fbc3825a_D20180401-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTUtMy0xLTEtMA_c1b7e595-956d-40aa-a9ba-c181d3ac2d8f"
      unitRef="usd">-43204000</us-gaap:OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent>
    <us-gaap:OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTUtNS0xLTEtMA_d6b0f140-cb73-43f0-a6e1-f55ebe930fde"
      unitRef="usd">-76747000</us-gaap:OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent>
    <us-gaap:OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTUtNy0xLTEtMA_76621902-af83-432a-b37c-ac11f042884e"
      unitRef="usd">-92701000</us-gaap:OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent>
    <us-gaap:EarningsPerShareBasicAndDiluted
      contextRef="i109c6dbc0d494accadbd5c861b8512d5_D20190401-20190630"
      decimals="2"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTctMS0xLTEtMA_3fb6a413-5612-450d-847a-2a648f0de75f"
      unitRef="usdPerShare">-0.65</us-gaap:EarningsPerShareBasicAndDiluted>
    <us-gaap:EarningsPerShareBasicAndDiluted
      contextRef="i81a0c702f2dc49eaa9cd1000fbc3825a_D20180401-20180630"
      decimals="2"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTctMy0xLTEtMA_39bbc0f0-dba8-4328-bd32-5e13f1ebec74"
      unitRef="usdPerShare">-1.03</us-gaap:EarningsPerShareBasicAndDiluted>
    <us-gaap:EarningsPerShareBasicAndDiluted
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="2"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTctNS0xLTEtMzY5_be90af8c-b9ae-4200-a5b8-fa03e15bd605"
      unitRef="usdPerShare">-1.63</us-gaap:EarningsPerShareBasicAndDiluted>
    <us-gaap:EarningsPerShareBasicAndDiluted
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="2"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTctNy0xLTEtMzY5_0caa08cb-37ac-43a4-9df3-d15c17f72c20"
      unitRef="usdPerShare">-2.35</us-gaap:EarningsPerShareBasicAndDiluted>
    <us-gaap:WeightedAverageNumberOfShareOutstandingBasicAndDiluted
      contextRef="i109c6dbc0d494accadbd5c861b8512d5_D20190401-20190630"
      decimals="0"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTgtMS0xLTEtMA_ef73a96c-e4f7-4ae1-ac5e-645aaa96de71"
      unitRef="shares">48845234</us-gaap:WeightedAverageNumberOfShareOutstandingBasicAndDiluted>
    <us-gaap:WeightedAverageNumberOfShareOutstandingBasicAndDiluted
      contextRef="i81a0c702f2dc49eaa9cd1000fbc3825a_D20180401-20180630"
      decimals="0"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTgtMy0xLTEtMA_a04cfb3b-b61e-4572-8df7-eb21e979c17d"
      unitRef="shares">42153813</us-gaap:WeightedAverageNumberOfShareOutstandingBasicAndDiluted>
    <us-gaap:WeightedAverageNumberOfShareOutstandingBasicAndDiluted
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="0"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTgtNS0xLTEtMA_3f0b09ef-0f81-49d7-83ad-8d6906b5f154"
      unitRef="shares">47234889</us-gaap:WeightedAverageNumberOfShareOutstandingBasicAndDiluted>
    <us-gaap:WeightedAverageNumberOfShareOutstandingBasicAndDiluted
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="0"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yNS9mcmFnOjJhOTcxNGVkZjUwZTRmNGM4ZWZlNWFmZmJiZmE3MjkwL3RhYmxlOjE4Mzk0ZTMyYWRkMDQxZTQ5MjNkNTBlZDM5YWUxMWE1L3RhYmxlcmFuZ2U6MTgzOTRlMzJhZGQwNDFlNDkyM2Q1MGVkMzlhZTExYTVfMTgtNy0xLTEtMA_163e9641-6e7e-40a0-aa47-1d6fd3dd11b3"
      unitRef="shares">39559599</us-gaap:WeightedAverageNumberOfShareOutstandingBasicAndDiluted>
    <us-gaap:SharesIssued
      contextRef="ia91e72323b454e93953eee644201d6b5_I20181231"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfMy0xLTEtMS0w_2afa1e70-e3fa-4584-a85b-79eb438e4dd3"
      unitRef="shares">42353301</us-gaap:SharesIssued>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="ia91e72323b454e93953eee644201d6b5_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfMy0zLTEtMS0w_1ee94f57-e83f-449f-bd82-a724cf0ca452"
      unitRef="usd">424000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="i03ec75f1d9b44a458bab2936d92c5af9_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfMy05LTEtMS0w_5b263621-3c15-439a-b6cf-e812796cbeee"
      unitRef="usd">732727000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="i37fc6fb723fc4535a25f9489787439b6_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfMy0xMS0xLTEtMA_dfba448c-6b06-41ec-8b29-52400b12a325"
      unitRef="usd">-490271000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="ie70d82e51a904f148b202856a6fcdecc_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfMy0xMy0xLTEtMA_cd61aa06-50a6-490b-8861-9b4abb2241a8"
      unitRef="usd">-3000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfMy0xNS0xLTEtMA_a2c6e50d-9fec-4b78-a33d-78e73251a537"
      unitRef="usd">242877000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue
      contextRef="i6978aeab6e45476fb7482b4db0c227d6_D20190101-20190331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfNC05LTEtMS0w_0b5c2d7e-4c29-4c8e-9b5e-969ce0a8afcc"
      unitRef="usd">3750000</us-gaap:AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue>
    <us-gaap:AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue
      contextRef="id50631a343b3422595cb9b1d77d35ce9_D20190101-20190331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfNC0xNS0xLTEtMA_eb6a0080-907b-47ac-bec5-95ca05d6c4ba"
      unitRef="usd">3750000</us-gaap:AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue>
    <us-gaap:StockIssuedDuringPeriodSharesNewIssues
      contextRef="ic8cd75c7e7b949ef80c44eb628c4b9b2_D20190101-20190331"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfNS0xLTEtMS0w_b20e767a-194c-464b-b101-9458de27d01a"
      unitRef="shares">6325000</us-gaap:StockIssuedDuringPeriodSharesNewIssues>
    <us-gaap:StockIssuedDuringPeriodValueNewIssues
      contextRef="ic8cd75c7e7b949ef80c44eb628c4b9b2_D20190101-20190331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfNS0zLTEtMS0w_5765f6ab-d0fa-4439-8dfb-e3fd7d4ccec3"
      unitRef="usd">63000</us-gaap:StockIssuedDuringPeriodValueNewIssues>
    <us-gaap:StockIssuedDuringPeriodValueNewIssues
      contextRef="i6978aeab6e45476fb7482b4db0c227d6_D20190101-20190331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfNS05LTEtMS0w_5778d7a9-8c6f-49d9-969b-0714ae9e6b66"
      unitRef="usd">118594000</us-gaap:StockIssuedDuringPeriodValueNewIssues>
    <us-gaap:StockIssuedDuringPeriodValueNewIssues
      contextRef="id50631a343b3422595cb9b1d77d35ce9_D20190101-20190331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfNS0xNS0xLTEtMA_b396f1ee-9e77-47c3-861c-f3377f0c5fc9"
      unitRef="usd">118657000</us-gaap:StockIssuedDuringPeriodValueNewIssues>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod
      contextRef="ic8cd75c7e7b949ef80c44eb628c4b9b2_D20190101-20190331"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfNi0xLTEtMS0w_ca4f0021-746d-4a92-b052-c022faea3da5"
      unitRef="shares">126707</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod>
    <us-gaap:StockGrantedDuringPeriodValueSharebasedCompensation
      contextRef="ic8cd75c7e7b949ef80c44eb628c4b9b2_D20190101-20190331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfNi0zLTEtMS0w_682db0f6-5c03-4569-a710-c662d4037cd7"
      unitRef="usd">1000</us-gaap:StockGrantedDuringPeriodValueSharebasedCompensation>
    <us-gaap:StockGrantedDuringPeriodValueSharebasedCompensation
      contextRef="i6978aeab6e45476fb7482b4db0c227d6_D20190101-20190331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfNi05LTEtMS0w_1a5a4509-8e45-4f92-9cc0-417ae19944ff"
      unitRef="usd">346000</us-gaap:StockGrantedDuringPeriodValueSharebasedCompensation>
    <us-gaap:StockGrantedDuringPeriodValueSharebasedCompensation
      contextRef="id50631a343b3422595cb9b1d77d35ce9_D20190101-20190331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfNi0xNS0xLTEtMA_f5380adc-3d54-4a46-8c54-93149173a87c"
      unitRef="usd">347000</us-gaap:StockGrantedDuringPeriodValueSharebasedCompensation>
    <us-gaap:UnrealizedGainLossOnInvestments
      contextRef="if6e3b73ea6f4467d997dd7c4e6f3af72_D20190101-20190331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfNy0xMy0xLTEtMA_6a27c409-8d57-4ff8-9d11-e2099b97f47e"
      unitRef="usd">3000</us-gaap:UnrealizedGainLossOnInvestments>
    <us-gaap:UnrealizedGainLossOnInvestments
      contextRef="id50631a343b3422595cb9b1d77d35ce9_D20190101-20190331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfNy0xNS0xLTEtMA_6f0bf106-0df8-4e0d-b82f-95b512642538"
      unitRef="usd">3000</us-gaap:UnrealizedGainLossOnInvestments>
    <us-gaap:NetIncomeLoss
      contextRef="i14734d228cca4cd9903823dd3dd43fd8_D20190101-20190331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfOC0xMS0xLTEtMA_3d3bb377-e5d5-4c03-ab9a-87591af20c60"
      unitRef="usd">-45017000</us-gaap:NetIncomeLoss>
    <us-gaap:NetIncomeLoss
      contextRef="id50631a343b3422595cb9b1d77d35ce9_D20190101-20190331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfOC0xNS0xLTEtMA_624f5d17-854d-4854-91af-d2f3b328c6a7"
      unitRef="usd">-45017000</us-gaap:NetIncomeLoss>
    <us-gaap:SharesIssued
      contextRef="i0dfc3c98caf5475288c96cca8e98b6c6_I20190331"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfOS0xLTEtMS0w_a9b6272e-b24c-4dd8-85d8-77ad6fba6845"
      unitRef="shares">48805008</us-gaap:SharesIssued>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="i0dfc3c98caf5475288c96cca8e98b6c6_I20190331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfOS0zLTEtMS0w_ef0033d5-60d4-4608-b4e6-76d32c7a2d87"
      unitRef="usd">488000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="i59f189baf2d64f92b042c80f9aea1423_I20190331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfOS05LTEtMS0w_0e63cab4-0980-4bc2-a779-eea7c8c9027b"
      unitRef="usd">855417000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="i8f7396a309cd4daca0fe35b34588a062_I20190331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfOS0xMS0xLTEtMA_b2e3e9f2-ddff-4dec-8e60-390063d23eaf"
      unitRef="usd">-535288000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="i8fe4534d0efc48cc976dcc8be3b06a1b_I20190331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfOS0xMy0xLTEtMA_e0d7044e-3d48-4b1a-8680-0de128abbf9f"
      unitRef="usd">0</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="i43d9ed8e2ddd4ba4b1339e72243dcba7_I20190331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfOS0xNS0xLTEtMA_b062e6d0-a078-45b1-95a8-b097b78e79a4"
      unitRef="usd">320617000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue
      contextRef="i2d749c557e2a43a3b657eaa60bfc1314_D20190401-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfMTAtOS0xLTEtMA_cdeb8f5b-e868-4f44-817e-f12f98efc6e9"
      unitRef="usd">4933000</us-gaap:AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue>
    <us-gaap:AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue
      contextRef="i109c6dbc0d494accadbd5c861b8512d5_D20190401-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfMTAtMTUtMS0xLTA_9b59d592-ff11-4e7e-b99b-5156aa6eaa1d"
      unitRef="usd">4933000</us-gaap:AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod
      contextRef="ic148aae13dff49e78ed25b15a5677396_D20190401-20190630"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfMTItMS0xLTEtMA_fd1594a1-0d5d-4edf-aa53-41cb0252c6cf"
      unitRef="shares">88443</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod>
    <us-gaap:StockGrantedDuringPeriodValueSharebasedCompensation
      contextRef="ic148aae13dff49e78ed25b15a5677396_D20190401-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfMTItMy0xLTEtMA_95a54c03-0349-45a6-8897-ead5824f482f"
      unitRef="usd">1000</us-gaap:StockGrantedDuringPeriodValueSharebasedCompensation>
    <us-gaap:StockGrantedDuringPeriodValueSharebasedCompensation
      contextRef="i2d749c557e2a43a3b657eaa60bfc1314_D20190401-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfMTItOS0xLTEtMA_1005ffeb-6982-4f52-828a-590d8c9a7c60"
      unitRef="usd">633000</us-gaap:StockGrantedDuringPeriodValueSharebasedCompensation>
    <us-gaap:StockGrantedDuringPeriodValueSharebasedCompensation
      contextRef="i109c6dbc0d494accadbd5c861b8512d5_D20190401-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfMTItMTUtMS0xLTA_ee4b43a5-495f-4287-927a-1477956ebb7b"
      unitRef="usd">634000</us-gaap:StockGrantedDuringPeriodValueSharebasedCompensation>
    <us-gaap:UnrealizedGainLossOnInvestments
      contextRef="i1e1068382bea4a46bdfa11f9cdccc8af_D20190401-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfMTQtMTMtMS0xLTA_eefa5e75-a80c-4ad0-906a-c77ac99ad47a"
      unitRef="usd">34000</us-gaap:UnrealizedGainLossOnInvestments>
    <us-gaap:UnrealizedGainLossOnInvestments
      contextRef="i109c6dbc0d494accadbd5c861b8512d5_D20190401-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfMTQtMTUtMS0xLTA_b2c64a1f-8f3f-416a-a89a-34ab21feac49"
      unitRef="usd">34000</us-gaap:UnrealizedGainLossOnInvestments>
    <us-gaap:NetIncomeLoss
      contextRef="i9515725cffde46938b09d703ac812e98_D20190401-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfMTUtMTEtMS0xLTA_9ad83aa3-7866-4be4-8e53-a37e69d096c8"
      unitRef="usd">-31767000</us-gaap:NetIncomeLoss>
    <us-gaap:NetIncomeLoss
      contextRef="i109c6dbc0d494accadbd5c861b8512d5_D20190401-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfMTUtMTUtMS0xLTA_98adc94f-1331-481c-ab19-957c411c5fba"
      unitRef="usd">-31767000</us-gaap:NetIncomeLoss>
    <us-gaap:SharesIssued
      contextRef="i2b5e9685677d485b9b264470e0991b61_I20190630"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfMTYtMS0xLTEtMA_27af5bb2-603e-4dd9-9077-b08fc75bccca"
      unitRef="shares">48893451</us-gaap:SharesIssued>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="i2b5e9685677d485b9b264470e0991b61_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfMTYtMy0xLTEtMA_3d80c839-8a1e-4d31-9fb7-8aa4abeecbd6"
      unitRef="usd">489000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="ibe429713d6e54490a05eb2c32be55bee_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfMTYtOS0xLTEtMA_89c8b831-2510-4c8d-bda0-e46ba7b6a9b6"
      unitRef="usd">860983000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="i97bbd050bf72484b81c83ffa34cbe278_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfMTYtMTEtMS0xLTA_1ee6fdd5-542c-49c2-a0ae-4413b680758d"
      unitRef="usd">-567055000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="ie8a73990cc434a679fd8a58d459566d6_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfMTYtMTMtMS0xLTA_7d298dc1-063b-404f-9676-b2654fc7f221"
      unitRef="usd">34000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOjJmNjFkNjk1ZjcxYzQ1MjFhZGYyYmRhMjAyMDJhODkzL3RhYmxlcmFuZ2U6MmY2MWQ2OTVmNzFjNDUyMWFkZjJiZGEyMDIwMmE4OTNfMTYtMTUtMS0xLTA_02d98be2-54d9-4bef-8dea-17ee1eaf894b"
      unitRef="usd">294451000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:SharesIssued
      contextRef="ib999e30c33f24f42b7da8b12f0412280_I20171231"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfMi0xLTEtMS0w_fd5c814b-53f9-40d1-af65-9b692f9edd9b"
      unitRef="shares">36859077</us-gaap:SharesIssued>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="ib999e30c33f24f42b7da8b12f0412280_I20171231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfMi0zLTEtMS0w_732d6d19-4c3b-4422-8203-c0b655fbc949"
      unitRef="usd">369000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="i78b9d827fc0b467fabf8f07cdf35641e_I20171231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfMi05LTEtMS0w_02f6b764-fd2e-4526-b81b-3e69e83e78c5"
      unitRef="usd">611270000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="i1c06777e56ba4e4b8dd8b7da4c0de8e3_I20171231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfMi0xMS0xLTEtMA_203d9a1f-20f2-4c68-addf-640f20b1027f"
      unitRef="usd">-312340000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="ieb4490467955464eb23bbfe737d89a4b_I20171231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfMi0xMy0xLTEtMA_9ac1b7c8-4672-4d68-a929-18a7e13abf39"
      unitRef="usd">-61000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="i0a490535c0f94199aacb4b0e36fe1596_I20171231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfMi0xNS0xLTEtMA_7802dbe2-07d1-4b43-8bbc-a48c44de0047"
      unitRef="usd">299238000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption
      contextRef="if08023e64dcc40bbb1f5337749830047_I20180101"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfMy0xMS0xLTEtMA_83319597-d5b1-466f-b3b4-d23c41490807"
      unitRef="usd">-6479000</us-gaap:CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption>
    <us-gaap:CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption
      contextRef="icaf0e5972bd841d2a90258659282758f_I20180101"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfMy0xNS0xLTEtMA_d4a758e3-1cb3-4643-81ac-fc647cb1b076"
      unitRef="usd">-6479000</us-gaap:CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption>
    <us-gaap:AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue
      contextRef="i2622752935994412b87562d748509f9b_D20180101-20180331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfNC05LTEtMS0w_726b8658-a47d-4fa6-8a46-6eac08dd1182"
      unitRef="usd">3386000</us-gaap:AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue>
    <us-gaap:AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue
      contextRef="i8cd35d2929a245faa6beeaa4b6ce6a36_D20180101-20180331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfNC0xNS0xLTEtMA_c58f5068-9c8a-47ba-82be-d6ade8e11025"
      unitRef="usd">3386000</us-gaap:AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod
      contextRef="i2b12a98eb78647fc80d5b179b08fa76b_D20180101-20180331"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfNS0xLTEtMS0w_2421d2f2-16f9-457c-a70c-97680719daa5"
      unitRef="shares">165546</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod>
    <us-gaap:StockGrantedDuringPeriodValueSharebasedCompensation
      contextRef="i2b12a98eb78647fc80d5b179b08fa76b_D20180101-20180331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfNS0zLTEtMS0w_49a2f6dd-fbef-4f54-9b3a-4b07ce6d142e"
      unitRef="usd">1000</us-gaap:StockGrantedDuringPeriodValueSharebasedCompensation>
    <us-gaap:StockGrantedDuringPeriodValueSharebasedCompensation
      contextRef="i2622752935994412b87562d748509f9b_D20180101-20180331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfNS05LTEtMS0w_3e45a4bd-8fb2-4a31-b433-e84568bfe0ed"
      unitRef="usd">628000</us-gaap:StockGrantedDuringPeriodValueSharebasedCompensation>
    <us-gaap:StockGrantedDuringPeriodValueSharebasedCompensation
      contextRef="i8cd35d2929a245faa6beeaa4b6ce6a36_D20180101-20180331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfNS0xNS0xLTEtMA_235d16ee-7544-4266-9525-2f4e4eca5895"
      unitRef="usd">629000</us-gaap:StockGrantedDuringPeriodValueSharebasedCompensation>
    <us-gaap:UnrealizedGainLossOnInvestments
      contextRef="i5ba5de31f4324470bba8babcc7eeb482_D20180101-20180331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfNi0xMy0xLTEtMA_05c6785f-e9fe-4925-b309-aebf88a042b0"
      unitRef="usd">38000</us-gaap:UnrealizedGainLossOnInvestments>
    <us-gaap:UnrealizedGainLossOnInvestments
      contextRef="i8cd35d2929a245faa6beeaa4b6ce6a36_D20180101-20180331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfNi0xNS0xLTEtMA_0311783f-9136-4bdf-aeaa-dda9396b53e0"
      unitRef="usd">38000</us-gaap:UnrealizedGainLossOnInvestments>
    <us-gaap:NetIncomeLoss
      contextRef="if15f43fb803d4711b15c5b1814fa8d04_D20180101-20180331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfNy0xMS0xLTEtMA_ec001295-7b01-4f64-b35c-0f06d44520d6"
      unitRef="usd">-49536000</us-gaap:NetIncomeLoss>
    <us-gaap:NetIncomeLoss
      contextRef="i8cd35d2929a245faa6beeaa4b6ce6a36_D20180101-20180331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfNy0xNS0xLTEtMA_0c4752f3-9530-4a19-86b3-83b278bff3f2"
      unitRef="usd">-49536000</us-gaap:NetIncomeLoss>
    <us-gaap:SharesIssued
      contextRef="i1fca73dcd54d4fc4aa63805e061ecade_I20180331"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfOC0xLTEtMS0w_db894830-ffc8-48af-8198-bc221290aa23"
      unitRef="shares">37024623</us-gaap:SharesIssued>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="i1fca73dcd54d4fc4aa63805e061ecade_I20180331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfOC0zLTEtMS0w_be31fb1d-2fef-407c-b80a-0854dbef8d8d"
      unitRef="usd">370000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="i9b4d336a36274b6eace5942fa795d41b_I20180331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfOC05LTEtMS0w_55974fe8-b3de-40ac-9be8-be4c0d0a925c"
      unitRef="usd">615284000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="ia20a7f05a72c470b9722b9e059f620f8_I20180331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfOC0xMS0xLTEtMA_fc42369b-c29c-4cd6-a9fa-7fa69e5b33b9"
      unitRef="usd">-368355000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="i0b7f684f2e0a48de9917c453b4965da8_I20180331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfOC0xMy0xLTEtMA_3df2222f-803c-4f0a-94fe-f6d7740c6d48"
      unitRef="usd">-23000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="ic9ecb5afa1cc471bb811688693fa0bbd_I20180331"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfOC0xNS0xLTEtMA_2376ce5d-4ec3-44db-8eee-01f2b0ac67ee"
      unitRef="usd">247276000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue
      contextRef="i77d74a50c4d1404292abab9ed4808354_D20180401-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfOS05LTEtMS00MA_c029bf41-80bd-4bb2-a5aa-2d10990b53e3"
      unitRef="usd">4209000</us-gaap:AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue>
    <us-gaap:AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue
      contextRef="i81a0c702f2dc49eaa9cd1000fbc3825a_D20180401-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfOS0xNS0xLTEtNDA_22d9e503-dec1-4027-a050-45b4f6f841fd"
      unitRef="usd">4209000</us-gaap:AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue>
    <us-gaap:StockIssuedDuringPeriodSharesNewIssues
      contextRef="i3bbe525f7c284fcd903b82feb53d90c7_D20180401-20180630"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfMTAtMS0xLTEtNDA_28562169-908b-419d-bc24-9a76860573fa"
      unitRef="shares">5175000</us-gaap:StockIssuedDuringPeriodSharesNewIssues>
    <us-gaap:StockIssuedDuringPeriodValueNewIssues
      contextRef="i3bbe525f7c284fcd903b82feb53d90c7_D20180401-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfMTAtMy0xLTEtNDA_6e5ec672-1336-4cd0-b0cf-4321455dfcde"
      unitRef="usd">52000</us-gaap:StockIssuedDuringPeriodValueNewIssues>
    <us-gaap:StockIssuedDuringPeriodValueNewIssues
      contextRef="i77d74a50c4d1404292abab9ed4808354_D20180401-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfMTAtOS0xLTEtNDA_175885f0-98ec-49fd-9a25-53e06f794f24"
      unitRef="usd">103207000</us-gaap:StockIssuedDuringPeriodValueNewIssues>
    <us-gaap:StockIssuedDuringPeriodValueNewIssues
      contextRef="i81a0c702f2dc49eaa9cd1000fbc3825a_D20180401-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfMTAtMTUtMS0xLTQw_32a3533b-d92f-4155-8b70-ea4f99b80cfa"
      unitRef="usd">103259000</us-gaap:StockIssuedDuringPeriodValueNewIssues>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod
      contextRef="i3bbe525f7c284fcd903b82feb53d90c7_D20180401-20180630"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfMTEtMS0xLTEtNDA_60a9e2e1-a253-4f6c-b090-e4eeb75fb2c5"
      unitRef="shares">29388</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod>
    <us-gaap:StockGrantedDuringPeriodValueSharebasedCompensation
      contextRef="i77d74a50c4d1404292abab9ed4808354_D20180401-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfMTEtOS0xLTEtNDA_cd118e20-302b-4d0d-aa20-b11a45ba9ba5"
      unitRef="usd">496000</us-gaap:StockGrantedDuringPeriodValueSharebasedCompensation>
    <us-gaap:StockGrantedDuringPeriodValueSharebasedCompensation
      contextRef="i81a0c702f2dc49eaa9cd1000fbc3825a_D20180401-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfMTEtMTUtMS0xLTQw_cfc048f8-8f58-4d4e-93b2-7bd626dd69f3"
      unitRef="usd">496000</us-gaap:StockGrantedDuringPeriodValueSharebasedCompensation>
    <us-gaap:UnrealizedGainLossOnInvestments
      contextRef="i155cb38080d34c77a1ef5ef51a7cd39e_D20180401-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfMTMtMTMtMS0xLTQw_2b9fa13b-f8c3-4adb-b4fa-3f8dbc715d35"
      unitRef="usd">40000</us-gaap:UnrealizedGainLossOnInvestments>
    <us-gaap:UnrealizedGainLossOnInvestments
      contextRef="i81a0c702f2dc49eaa9cd1000fbc3825a_D20180401-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfMTMtMTUtMS0xLTQw_ba7f4b00-e5b5-499e-b07b-a514572ebdfb"
      unitRef="usd">40000</us-gaap:UnrealizedGainLossOnInvestments>
    <us-gaap:NetIncomeLoss
      contextRef="icf3ac0d2a8a54c5dab545f157feb286d_D20180401-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfMTQtMTEtMS0xLTQw_606e3b3b-dd19-4bc3-ad06-982917a930d1"
      unitRef="usd">-43244000</us-gaap:NetIncomeLoss>
    <us-gaap:NetIncomeLoss
      contextRef="i81a0c702f2dc49eaa9cd1000fbc3825a_D20180401-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfMTQtMTUtMS0xLTQw_aa49beff-3160-4e68-a75c-a7d22980c2b2"
      unitRef="usd">-43244000</us-gaap:NetIncomeLoss>
    <us-gaap:SharesIssued
      contextRef="i28c2090254f94ab9a1e89da5c0a6ce78_I20180630"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfMTUtMS0xLTEtNDA_5f15a18f-862a-4f1d-8f72-1e2ceb1d1b9b"
      unitRef="shares">42229011</us-gaap:SharesIssued>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="i28c2090254f94ab9a1e89da5c0a6ce78_I20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfMTUtMy0xLTEtNDA_36c6f79e-18ef-41b3-bfb0-3c506b708dfc"
      unitRef="usd">422000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="i6a761b389a9c4fad87223a9921f10104_I20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfMTUtOS0xLTEtNDA_d84d850c-9fe6-4982-a509-94cfed492254"
      unitRef="usd">723196000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="ic7f8d1f46ed84507a11a5758ce147548_I20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfMTUtMTEtMS0xLTQw_9e806ab4-67b7-47a3-b043-ca9fc35bff56"
      unitRef="usd">-411599000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="icbaa5973165d4d1c8035081b87b0765d_I20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfMTUtMTMtMS0xLTQw_162dac8d-80b1-4c18-961b-8723bfe9fab8"
      unitRef="usd">17000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
      contextRef="i29a62afe60004f4e994f8f193f6000cb_I20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18yOC9mcmFnOjA3YWNiYThmMTA2ZjQxNDFiZTU0NWQ0YjU2MDI1ZGI5L3RhYmxlOmE1MzViYzNkY2VhYTQwMTQ5OWFhOTZkNzQ1ZGY4ZTMxL3RhYmxlcmFuZ2U6YTUzNWJjM2RjZWFhNDAxNDk5YWE5NmQ3NDVkZjhlMzFfMTUtMTUtMS0xLTQw_7ba82f25-a383-46b5-9104-94b8dfdb472e"
      unitRef="usd">312036000</us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest>
    <us-gaap:NetIncomeLoss
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMy0xLTEtMS0w_1e2584c5-2d9e-4631-9c08-3e6a657fe43f"
      unitRef="usd">-76784000</us-gaap:NetIncomeLoss>
    <us-gaap:NetIncomeLoss
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMy0zLTEtMS0w_cd4e9f6b-ea52-4276-8a92-0a75f0f7ecb1"
      unitRef="usd">-92780000</us-gaap:NetIncomeLoss>
    <us-gaap:DepreciationDepletionAndAmortization
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfNS0xLTEtMS0w_9245d63c-36e4-4b72-8ee5-b8a8579c208b"
      unitRef="usd">5483000</us-gaap:DepreciationDepletionAndAmortization>
    <us-gaap:DepreciationDepletionAndAmortization
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfNS0zLTEtMS0w_883745e4-bd1e-494b-8de8-979ea5bf5861"
      unitRef="usd">2540000</us-gaap:DepreciationDepletionAndAmortization>
    <us-gaap:ShareBasedCompensation
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfNi0xLTEtMS0w_35ccb88a-e142-4ae7-a7e2-30715bff5ca5"
      unitRef="usd">8683000</us-gaap:ShareBasedCompensation>
    <us-gaap:ShareBasedCompensation
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfNi0zLTEtMS0w_829416fb-99eb-45d8-bfab-c8f923b8377c"
      unitRef="usd">7595000</us-gaap:ShareBasedCompensation>
    <us-gaap:IncreaseDecreaseInAccountsReceivable
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfOC0xLTEtMS0w_c0b1e825-6831-45e9-b7f0-0919d15fadd9"
      unitRef="usd">-23971000</us-gaap:IncreaseDecreaseInAccountsReceivable>
    <us-gaap:IncreaseDecreaseInAccountsReceivable
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfOC0zLTEtMS0w_0157b559-34f5-4e0f-9e20-697cf7774775"
      unitRef="usd">4194000</us-gaap:IncreaseDecreaseInAccountsReceivable>
    <us-gaap:IncreaseDecreaseInPrepaidExpense
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfOS0xLTEtMS0w_eb3d5f6e-093c-4911-a18b-e150fb97076e"
      unitRef="usd">3209000</us-gaap:IncreaseDecreaseInPrepaidExpense>
    <us-gaap:IncreaseDecreaseInPrepaidExpense
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfOS0zLTEtMS0w_6eb05a12-b8f7-4a01-aa05-722ce32ea614"
      unitRef="usd">22000</us-gaap:IncreaseDecreaseInPrepaidExpense>
    <us-gaap:IncreaseDecreaseInOtherOperatingAssets
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMTAtMS0xLTEtMA_71623046-db25-46cc-9d74-d8f3f83591dd"
      unitRef="usd">21091000</us-gaap:IncreaseDecreaseInOtherOperatingAssets>
    <us-gaap:IncreaseDecreaseInOtherOperatingAssets
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMTAtMy0xLTEtMA_6e7debd7-24da-4d3d-b3ea-74a28ed5b928"
      unitRef="usd">5511000</us-gaap:IncreaseDecreaseInOtherOperatingAssets>
    <us-gaap:IncreaseDecreaseInAccountsPayableAndOtherOperatingLiabilities
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMTEtMS0xLTEtMA_54ecbcfb-8a30-4f9c-beb8-fa0caeb92043"
      unitRef="usd">-2598000</us-gaap:IncreaseDecreaseInAccountsPayableAndOtherOperatingLiabilities>
    <us-gaap:IncreaseDecreaseInAccountsPayableAndOtherOperatingLiabilities
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMTEtMy0xLTEtMA_613d9671-c983-454c-84ef-d04a69bc2d5a"
      unitRef="usd">-684000</us-gaap:IncreaseDecreaseInAccountsPayableAndOtherOperatingLiabilities>
    <us-gaap:IncreaseDecreaseInAccruedLiabilities
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMTItMS0xLTEtMA_59d4d50e-9b7e-4650-beef-8db99f7b4a8c"
      unitRef="usd">-2663000</us-gaap:IncreaseDecreaseInAccruedLiabilities>
    <us-gaap:IncreaseDecreaseInAccruedLiabilities
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMTItMy0xLTEtMA_d0f34af2-954f-4981-b56c-047737d81f73"
      unitRef="usd">8215000</us-gaap:IncreaseDecreaseInAccruedLiabilities>
    <us-gaap:IncreaseDecreaseInRestructuringReserve
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMTMtMS0xLTEtMA_af2a848c-cf0b-4a6a-9c16-7987478c0350"
      unitRef="usd">0</us-gaap:IncreaseDecreaseInRestructuringReserve>
    <us-gaap:IncreaseDecreaseInRestructuringReserve
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMTMtMy0xLTEtMA_8ac165b8-858e-40b4-9f3d-4e136285531c"
      unitRef="usd">-298000</us-gaap:IncreaseDecreaseInRestructuringReserve>
    <mgnx:IncreaseDecreaseInLeaseLiabilities
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMTQtMS0xLTEtMA_21992de3-1fa3-4d9d-b433-f420c171e6ce"
      unitRef="usd">231000</mgnx:IncreaseDecreaseInLeaseLiabilities>
    <mgnx:IncreaseDecreaseInLeaseLiabilities
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMTQtMy0xLTEtMA_5b7308c9-6b1a-49e6-bd20-f444c6136b50"
      unitRef="usd">0</mgnx:IncreaseDecreaseInLeaseLiabilities>
    <us-gaap:IncreaseDecreaseInContractWithCustomerLiability
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMTUtMS0xLTEtMA_cd8cb6d0-b13f-44ee-9558-f49745899648"
      unitRef="usd">-10861000</us-gaap:IncreaseDecreaseInContractWithCustomerLiability>
    <us-gaap:IncreaseDecreaseInContractWithCustomerLiability
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMTUtMy0xLTEtMA_764683b1-33dc-403f-8b4b-f9dbdc7818d4"
      unitRef="usd">-3371000</us-gaap:IncreaseDecreaseInContractWithCustomerLiability>
    <mgnx:IncreaseDecreaseInDeferredRent
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMTYtMS0xLTEtMA_785d1a00-9174-4365-ad8a-8474614612c8"
      unitRef="usd">0</mgnx:IncreaseDecreaseInDeferredRent>
    <mgnx:IncreaseDecreaseInDeferredRent
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMTYtMy0xLTEtMA_b6c69930-567f-49d2-944c-ab92be4cbc37"
      unitRef="usd">-516000</mgnx:IncreaseDecreaseInDeferredRent>
    <us-gaap:NetCashProvidedByUsedInOperatingActivitiesContinuingOperations
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMTctMS0xLTEtMA_11d3db97-57bd-49f5-afe1-627c1a38c1db"
      unitRef="usd">-78838000</us-gaap:NetCashProvidedByUsedInOperatingActivitiesContinuingOperations>
    <us-gaap:NetCashProvidedByUsedInOperatingActivitiesContinuingOperations
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMTctMy0xLTEtMA_a02be32e-de36-46ed-a677-bbc50ae2d3ab"
      unitRef="usd">-89026000</us-gaap:NetCashProvidedByUsedInOperatingActivitiesContinuingOperations>
    <us-gaap:PaymentsToAcquireAvailableForSaleSecuritiesDebt
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMTktMS0xLTEtMA_ced9536d-12b4-43ca-925d-e72b34ac7970"
      unitRef="usd">142305000</us-gaap:PaymentsToAcquireAvailableForSaleSecuritiesDebt>
    <us-gaap:PaymentsToAcquireAvailableForSaleSecuritiesDebt
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMTktMy0xLTEtMA_0ae98447-bb97-47ea-a89d-7c623156d533"
      unitRef="usd">86491000</us-gaap:PaymentsToAcquireAvailableForSaleSecuritiesDebt>
    <us-gaap:ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMjAtMS0xLTEtMA_2193250b-3df2-448a-ad96-cdf1bab49036"
      unitRef="usd">63955000</us-gaap:ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities>
    <us-gaap:ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMjAtMy0xLTEtMA_4bde9e8e-a74e-4d2a-a2b5-6dc1361f8775"
      unitRef="usd">118090000</us-gaap:ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities>
    <us-gaap:PaymentsToAcquirePropertyPlantAndEquipment
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMjEtMS0xLTEtMA_7021a35d-e124-48a0-a310-7b3517267c60"
      unitRef="usd">2262000</us-gaap:PaymentsToAcquirePropertyPlantAndEquipment>
    <us-gaap:PaymentsToAcquirePropertyPlantAndEquipment
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMjEtMy0xLTEtMA_61746e44-cc9e-4888-b1c6-1e1eb46c3b30"
      unitRef="usd">20023000</us-gaap:PaymentsToAcquirePropertyPlantAndEquipment>
    <us-gaap:NetCashProvidedByUsedInInvestingActivitiesContinuingOperations
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMjItMS0xLTEtMA_75bdc72f-32ca-41fc-a455-b7da66f94c26"
      unitRef="usd">-80612000</us-gaap:NetCashProvidedByUsedInInvestingActivitiesContinuingOperations>
    <us-gaap:NetCashProvidedByUsedInInvestingActivitiesContinuingOperations
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMjItMy0xLTEtMA_e4f57748-06b6-4710-afb7-f355f41f31e8"
      unitRef="usd">11576000</us-gaap:NetCashProvidedByUsedInInvestingActivitiesContinuingOperations>
    <us-gaap:ProceedsFromIssuanceOfCommonStock
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMjQtMS0xLTEtMA_092713ff-802c-4f8c-9fc9-bdbcd996ddc3"
      unitRef="usd">118657000</us-gaap:ProceedsFromIssuanceOfCommonStock>
    <us-gaap:ProceedsFromIssuanceOfCommonStock
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMjQtMy0xLTEtMA_4e28e0c8-eda7-49d5-8cba-50c9c91f0bd1"
      unitRef="usd">103259000</us-gaap:ProceedsFromIssuanceOfCommonStock>
    <mgnx:ProceedsfromStockOptionsExercisedAndESPPPurchases
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMjUtMS0xLTEtMA_34e7715f-6799-465b-a04b-f9991c603a14"
      unitRef="usd">981000</mgnx:ProceedsfromStockOptionsExercisedAndESPPPurchases>
    <mgnx:ProceedsfromStockOptionsExercisedAndESPPPurchases
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMjUtMy0xLTEtMA_d772383d-e500-4f2d-9df5-c814edd6d950"
      unitRef="usd">1125000</mgnx:ProceedsfromStockOptionsExercisedAndESPPPurchases>
    <us-gaap:NetCashProvidedByUsedInFinancingActivitiesContinuingOperations
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMjYtMS0xLTEtMA_5081a53c-6d6f-4bf0-befb-7e146ea43965"
      unitRef="usd">119638000</us-gaap:NetCashProvidedByUsedInFinancingActivitiesContinuingOperations>
    <us-gaap:NetCashProvidedByUsedInFinancingActivitiesContinuingOperations
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMjYtMy0xLTEtMA_2840fa64-1263-4f07-9aa6-cacdac5d016c"
      unitRef="usd">104384000</us-gaap:NetCashProvidedByUsedInFinancingActivitiesContinuingOperations>
    <us-gaap:CashAndCashEquivalentsPeriodIncreaseDecrease
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMjctMS0xLTEtMA_e2031840-7543-4574-a5ab-7e21fc2601c6"
      unitRef="usd">-39812000</us-gaap:CashAndCashEquivalentsPeriodIncreaseDecrease>
    <us-gaap:CashAndCashEquivalentsPeriodIncreaseDecrease
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMjctMy0xLTEtMA_4156022b-f7ed-4371-8f47-003fc9eb7089"
      unitRef="usd">26934000</us-gaap:CashAndCashEquivalentsPeriodIncreaseDecrease>
    <us-gaap:CashAndCashEquivalentsAtCarryingValue
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMjgtMS0xLTEtMA_3be389d8-e073-444e-ab7e-e999996ded58"
      unitRef="usd">220128000</us-gaap:CashAndCashEquivalentsAtCarryingValue>
    <us-gaap:CashAndCashEquivalentsAtCarryingValue
      contextRef="i0a490535c0f94199aacb4b0e36fe1596_I20171231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMjgtMy0xLTEtMA_ac4a0ccc-a51d-4555-b21a-0f1c55b970fc"
      unitRef="usd">211727000</us-gaap:CashAndCashEquivalentsAtCarryingValue>
    <us-gaap:CashAndCashEquivalentsAtCarryingValue
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMjktMS0xLTEtMA_25aacfc8-d771-4d28-912b-0772e4f61ee3"
      unitRef="usd">180316000</us-gaap:CashAndCashEquivalentsAtCarryingValue>
    <us-gaap:CashAndCashEquivalentsAtCarryingValue
      contextRef="i29a62afe60004f4e994f8f193f6000cb_I20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMjktMy0xLTEtMA_7bb3eb08-98d7-4805-ace6-0926a6515649"
      unitRef="usd">238661000</us-gaap:CashAndCashEquivalentsAtCarryingValue>
    <us-gaap:RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMzItMS0xLTEtMA_0264ff8b-96bc-4ba2-a28e-0eb525ed95be"
      unitRef="usd">1988000</us-gaap:RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability>
    <us-gaap:RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMzItMy0xLTEtMA_a27370fa-7f3d-4d7f-b1a1-e0943b02e690"
      unitRef="usd">0</us-gaap:RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability>
    <mgnx:FairValueOfWarrantsReceived
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMzMtMS0xLTEtMTgxNw_ac21270e-a475-4516-b5b8-7cd3824d2cb6"
      unitRef="usd">0</mgnx:FairValueOfWarrantsReceived>
    <mgnx:FairValueOfWarrantsReceived
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zMS9mcmFnOjUxYWU2NDczOWY3ZjQ0YTlhMDIwZjJkOTQxZDJmYmE1L3RhYmxlOmM0OGQwNzllMjQwNzQ2YjQ5MjZiY2FjODI3M2EyOGUwL3RhYmxlcmFuZ2U6YzQ4ZDA3OWUyNDA3NDZiNDkyNmJjYWM4MjczYTI4ZTBfMzMtMy0xLTEtMTgyMQ_816a16eb-4a01-42cf-8d8b-1bbcc0522067"
      unitRef="usd">6130000</mgnx:FairValueOfWarrantsReceived>
    <us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureAndSignificantAccountingPoliciesTextBlock
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zNy9mcmFnOjM5M2FmZTdhMTRmYzQwNjZiZWFjZTUzZDk0ODQ3NDQzL3RleHRyZWdpb246MzkzYWZlN2ExNGZjNDA2NmJlYWNlNTNkOTQ4NDc0NDNfNTgxNw_b96acac0-24b3-4a9c-914c-7220601c3c16">Basis of Presentation and Significant Accounting Policies&lt;div style="margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-style:italic;font-weight:400;line-height:120%;"&gt;Basis of Presentation&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The accompanying unaudited interim consolidated financial statements of MacroGenics, Inc. (the Company) have been prepared in accordance with U.S. generally accepted accounting principles (GAAP) for interim financial information. The financial statements include all adjustments (consisting only of normal recurring adjustments) that the management of the Company believes are necessary for a fair presentation of the periods presented. These interim financial results are not necessarily indicative of results expected for the full fiscal year or for any subsequent interim period.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The accompanying unaudited interim consolidated financial statements include the accounts of MacroGenics, Inc. and its wholly owned subsidiary, MacroGenics UK Limited. All intercompany accounts and transactions have been eliminated in consolidation. These consolidated financial statements and related notes should be read in conjunction with the financial statements and notes thereto included in the Company's 2018 Annual Report on Form 10-K filed with the Securities and Exchange Commission (SEC) on February 26, 2019.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top:5pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-style:italic;font-weight:400;line-height:120%;"&gt;Summary of Significant Accounting Policies&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:18pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:115%;"&gt;With the exception of the adoption of Accounting Standards Update (ASU) No. 2016-02, &lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-style:italic;font-weight:400;line-height:115%;"&gt;Leases&lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:115%;"&gt; (ASU 2016-02) during the six months ended June 30, 2019, discussed below, there have been no material changes to the significant accounting policies previously disclosed in the Company&#x2019;s Annual Report on Form 10-K for the year ended December&#160;31, 2018.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:18pt;"&gt;&lt;span&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-style:italic;font-weight:400;line-height:120%;"&gt;Recent Accounting Pronouncements&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;text-decoration: underline;"&gt;Recently Adopted Accounting Standards&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;In February 2016, the Financial Accounting Standards Board (FASB) issued ASU 2016-02, which requires lessees to recognize a right-of-use (ROU) asset and a lease liability for all leases with terms greater than 12 months and also requires disclosures by lessees and lessors about the amount, timing and uncertainty of cash flows arising from leases.  Subsequent to the issuance of ASU 2016-02, the FASB clarified the guidance through several ASUs, with the resulting guidance collectively referred to as ASC 842. The Company adopted ASC 842 effective January 1, 2019, using the optional transition method provided under ASU 2018-11, which did not require adjustments to comparative periods nor require modified disclosures in those comparative periods. The Company has elected not to recognize leases with terms of one year or less on the balance sheet. &lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:115%;"&gt;At the inception of an arrangement, the Company determines whether the arrangement is or contains a lease based on the unique facts and circumstances. For leases where the Company is the lessee, ROU assets represent the Company&#x2019;s right to use an underlying asset for the lease term and lease liabilities represent an obligation to make lease payments arising from the lease. ROU assets and lease liabilities are recognized at the lease commencement date based on the present value of lease payments over the lease term.  The interest rate implicit in lease contracts is typically not readily determinable. As such, the Company utilizes the appropriate incremental borrowing rate, which is the rate incurred to borrow on a collateralized basis over a similar term of the lease for which the rate is estimated.  Certain adjustments to the ROU asset may be required for items such as initial direct costs paid or incentives received. The lease terms used to calculate the ROU asset and related lease liabilities include options to extend or terminate the lease when it is reasonably certain that the Company will exercise that option. Lease expense for operating leases is recognized on a straight-line basis over the lease term as an operating expense while the expense for finance leases is recognized as depreciation expense and interest expense using the accelerated interest method of recognition. The Company has lease agreements which require payments for lease and non-lease components and has elected the practical expedient not to separate non-lease components from lease components for all classes of underlying assets. &lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:115%;"&gt;As a result of the cumulative impact of adopting ASC 842, the Company recorded operating lease ROU assets of $16.4 million and operating lease liabilities of $27.7 million as of January 1, 2019, primarily related to real estate leases, based on the present value of the future lease payments on the date of adoption. The ROU asset is included in Other assets on the consolidated balance sheets.  Refer to Note 4, Leases, for additional disclosures required by ASC 842. &lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;"&gt;&lt;span&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;text-decoration: underline;"&gt;Recently Issued Accounting Standards&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:115%;"&gt;In November 2018, the FASB issued ASU 2018-18, &lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-style:italic;font-weight:400;line-height:115%;"&gt;Collaborative Arrangements (Topic 808)&#x2014;Clarifying the interaction between Topic 808 and Topic 606&lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:115%;"&gt; (ASU 2018-18). The amendments provide guidance on whether certain transactions between collaborative arrangement participants should be accounted for as revenue under ASC 606. It also &lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:115%;"&gt;specifically (i) addresses when the participant should be considered a customer in the context of a unit of account, (ii) adds unit-of-account guidance in ASC 808 to align with guidance in ASC 606, and (iii) precludes presenting revenue from a collaborative arrangement together with revenue recognized under ASC 606 if the collaborative arrangement participant is not a customer. The guidance will be effective for fiscal years beginning after December 15, 2019. Early adoption is permitted and should be applied retrospectively. The Company does not anticipate the adoption of this standard will have a material impact on its consolidated financial statements.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-top:5pt;margin-bottom:12pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The Company has evaluated all other ASUs issued through the date the consolidated financials were issued and believes that the adoption of these will not have a material impact on the Company's consolidated financial statements.&lt;/span&gt;&lt;/div&gt;</us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureAndSignificantAccountingPoliciesTextBlock>
    <us-gaap:BasisOfAccountingPolicyPolicyTextBlock
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zNy9mcmFnOjM5M2FmZTdhMTRmYzQwNjZiZWFjZTUzZDk0ODQ3NDQzL3RleHRyZWdpb246MzkzYWZlN2ExNGZjNDA2NmJlYWNlNTNkOTQ4NDc0NDNfNTgxOA_62917543-2c4a-4f42-860d-a83ce3ee3971">&lt;div style="margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-style:italic;font-weight:400;line-height:120%;"&gt;Basis of Presentation&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The accompanying unaudited interim consolidated financial statements of MacroGenics, Inc. (the Company) have been prepared in accordance with U.S. generally accepted accounting principles (GAAP) for interim financial information. The financial statements include all adjustments (consisting only of normal recurring adjustments) that the management of the Company believes are necessary for a fair presentation of the periods presented. These interim financial results are not necessarily indicative of results expected for the full fiscal year or for any subsequent interim period.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The accompanying unaudited interim consolidated financial statements include the accounts of MacroGenics, Inc. and its wholly owned subsidiary, MacroGenics UK Limited. All intercompany accounts and transactions have been eliminated in consolidation. These consolidated financial statements and related notes should be read in conjunction with the financial statements and notes thereto included in the Company's 2018 Annual Report on Form 10-K filed with the Securities and Exchange Commission (SEC) on February 26, 2019.&lt;/span&gt;&lt;/div&gt;</us-gaap:BasisOfAccountingPolicyPolicyTextBlock>
    <us-gaap:NewAccountingPronouncementsPolicyPolicyTextBlock
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zNy9mcmFnOjM5M2FmZTdhMTRmYzQwNjZiZWFjZTUzZDk0ODQ3NDQzL3RleHRyZWdpb246MzkzYWZlN2ExNGZjNDA2NmJlYWNlNTNkOTQ4NDc0NDNfNTgyMA_b203d990-2466-4018-9988-c6dc8758e704">&lt;div style="margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;text-decoration: underline;"&gt;Recently Adopted Accounting Standards&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;In February 2016, the Financial Accounting Standards Board (FASB) issued ASU 2016-02, which requires lessees to recognize a right-of-use (ROU) asset and a lease liability for all leases with terms greater than 12 months and also requires disclosures by lessees and lessors about the amount, timing and uncertainty of cash flows arising from leases.  Subsequent to the issuance of ASU 2016-02, the FASB clarified the guidance through several ASUs, with the resulting guidance collectively referred to as ASC 842. The Company adopted ASC 842 effective January 1, 2019, using the optional transition method provided under ASU 2018-11, which did not require adjustments to comparative periods nor require modified disclosures in those comparative periods. The Company has elected not to recognize leases with terms of one year or less on the balance sheet. &lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:115%;"&gt;At the inception of an arrangement, the Company determines whether the arrangement is or contains a lease based on the unique facts and circumstances. For leases where the Company is the lessee, ROU assets represent the Company&#x2019;s right to use an underlying asset for the lease term and lease liabilities represent an obligation to make lease payments arising from the lease. ROU assets and lease liabilities are recognized at the lease commencement date based on the present value of lease payments over the lease term.  The interest rate implicit in lease contracts is typically not readily determinable. As such, the Company utilizes the appropriate incremental borrowing rate, which is the rate incurred to borrow on a collateralized basis over a similar term of the lease for which the rate is estimated.  Certain adjustments to the ROU asset may be required for items such as initial direct costs paid or incentives received. The lease terms used to calculate the ROU asset and related lease liabilities include options to extend or terminate the lease when it is reasonably certain that the Company will exercise that option. Lease expense for operating leases is recognized on a straight-line basis over the lease term as an operating expense while the expense for finance leases is recognized as depreciation expense and interest expense using the accelerated interest method of recognition. The Company has lease agreements which require payments for lease and non-lease components and has elected the practical expedient not to separate non-lease components from lease components for all classes of underlying assets. &lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:115%;"&gt;As a result of the cumulative impact of adopting ASC 842, the Company recorded operating lease ROU assets of $16.4 million and operating lease liabilities of $27.7 million as of January 1, 2019, primarily related to real estate leases, based on the present value of the future lease payments on the date of adoption. The ROU asset is included in Other assets on the consolidated balance sheets.  Refer to Note 4, Leases, for additional disclosures required by ASC 842. &lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;"&gt;&lt;span&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;text-decoration: underline;"&gt;Recently Issued Accounting Standards&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:115%;"&gt;In November 2018, the FASB issued ASU 2018-18, &lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-style:italic;font-weight:400;line-height:115%;"&gt;Collaborative Arrangements (Topic 808)&#x2014;Clarifying the interaction between Topic 808 and Topic 606&lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:115%;"&gt; (ASU 2018-18). The amendments provide guidance on whether certain transactions between collaborative arrangement participants should be accounted for as revenue under ASC 606. It also &lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:115%;"&gt;specifically (i) addresses when the participant should be considered a customer in the context of a unit of account, (ii) adds unit-of-account guidance in ASC 808 to align with guidance in ASC 606, and (iii) precludes presenting revenue from a collaborative arrangement together with revenue recognized under ASC 606 if the collaborative arrangement participant is not a customer. The guidance will be effective for fiscal years beginning after December 15, 2019. Early adoption is permitted and should be applied retrospectively. The Company does not anticipate the adoption of this standard will have a material impact on its consolidated financial statements.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-top:5pt;margin-bottom:12pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The Company has evaluated all other ASUs issued through the date the consolidated financials were issued and believes that the adoption of these will not have a material impact on the Company's consolidated financial statements.&lt;/span&gt;&lt;/div&gt;</us-gaap:NewAccountingPronouncementsPolicyPolicyTextBlock>
    <us-gaap:OperatingLeaseRightOfUseAsset
      contextRef="i632ec10ff4c34ee0b743b82f8f1c8f30_I20190101"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zNy9mcmFnOjM5M2FmZTdhMTRmYzQwNjZiZWFjZTUzZDk0ODQ3NDQzL3RleHRyZWdpb246MzkzYWZlN2ExNGZjNDA2NmJlYWNlNTNkOTQ4NDc0NDNfNDM5ODA0NjUxNjkzNQ_1921ba7f-44a7-4b6d-ba97-c8d6dccbce55"
      unitRef="usd">16400000</us-gaap:OperatingLeaseRightOfUseAsset>
    <us-gaap:OperatingLeaseLiability
      contextRef="i632ec10ff4c34ee0b743b82f8f1c8f30_I20190101"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN18zNy9mcmFnOjM5M2FmZTdhMTRmYzQwNjZiZWFjZTUzZDk0ODQ3NDQzL3RleHRyZWdpb246MzkzYWZlN2ExNGZjNDA2NmJlYWNlNTNkOTQ4NDc0NDNfNDM5ODA0NjUxNjk0Mg_3c57795a-ebc9-4935-979d-2fa81851bbb0"
      unitRef="usd">27700000</us-gaap:OperatingLeaseLiability>
    <us-gaap:FairValueDisclosuresTextBlock
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RleHRyZWdpb246Njg1N2Y2NmY2MzU1NGFmZTk1MTQ4YzE5NDE0MGNkZjFfMzMxNQ_ec2c8a6f-9076-4c99-b857-b0d0381baf8e">Fair Value of Financial Instruments&lt;div style="text-indent:36pt;margin-bottom:3pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#252525;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The Company's financial instruments consist of cash and cash equivalents, marketable securities, accounts receivable, accounts payable, accrued expenses and common stock warrants.&lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt; &lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#252525;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The carrying amount of accounts receivable, accounts payable and accrued expenses are generally considered to be representative of their respective fair values because of their short-term nature.&#160;&lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt; The Company accounts for recurring and non-recurring fair value measurements in accordance with Financial Accounting Standards Board Accounting Standards Codification (ASC) 820, &lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-style:italic;font-weight:400;line-height:120%;"&gt;Fair Value Measurements and Disclosures&lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt; (ASC 820). ASC 820 defines fair value, establishes a fair value hierarchy for assets and liabilities measured at fair value, and requires expanded disclosures about fair value measurements. The ASC 820 hierarchy ranks the quality of reliability of inputs, or assumptions, used in the determination of fair value and requires assets and liabilities carried at fair value to be classified and disclosed in one of the following three categories:&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:-18pt;padding-left:54pt;margin-bottom:3pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;&#x2022;&lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;padding-left:14.5pt;"&gt;Level 1 - Fair value is determined by using unadjusted quoted prices that are available in active markets for identical assets and liabilities.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:-18pt;padding-left:54pt;margin-bottom:3pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;&#x2022;&lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;padding-left:14.5pt;"&gt;Level 2 - Fair value is determined by using inputs other than Level 1 quoted prices that are directly or indirectly observable. Inputs can include quoted prices for similar assets and liabilities in active markets or quoted prices for identical assets and liabilities in inactive markets. Related inputs can also include those used in valuation or other pricing models, such as interest rates and yield curves that can be corroborated by observable market data.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:-18pt;padding-left:54pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;&#x2022;&lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;padding-left:14.5pt;"&gt;Level 3 - Fair value is determined by inputs that are unobservable and not corroborated by market data. Use of these inputs involves significant and subjective judgments to be made by a reporting entity - e.g., determining an appropriate adjustment to a discount factor for illiquidity associated with a given security.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:3pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The Company evaluates financial assets and liabilities subject to fair value measurements on a recurring basis to determine the appropriate level at which to classify them each reporting period. This determination requires the Company to make subjective judgments as to the significance of inputs used in determining fair value and where such inputs lie within the ASC 820 hierarchy.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-top:15pt;margin-bottom:12pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;Financial assets measured at fair value on a recurring basis were as follows (in thousands):&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;table style="margin-left:auto;margin-right:auto;border-collapse:collapse;text-align:left;text-indent:0pt;display:inline-table;width:99.269006%;"&gt;&lt;tr&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:28.633284%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:14.789396%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.536377%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:14.789396%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.536377%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:14.789396%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.536377%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:14.789396%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="21" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Fair Value Measurements at June 30, 2019&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Quoted Prices in Active Markets for Identical Assets&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Significant Other Observable Inputs&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Significant Unobservable Inputs&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Total&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Level 1&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Level 2&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Level 3&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Assets:&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:7pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Money market funds&lt;/span&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;55,663&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;55,663&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:7pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Government-sponsored enterprises&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;20,927&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;20,927&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:7pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Corporate debt securities&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;84,356&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;84,356&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:7pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Common stock warrants&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;22,356&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;22,356&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;div&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:100%;"&gt;Total assets measured at fair value&lt;/span&gt;&lt;sup style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:6.5pt;font-weight:400;line-height:100%;vertical-align:top;"&gt;(a)&lt;/sup&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;183,302&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;55,663&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;105,283&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;22,356&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;table style="margin-left:auto;margin-right:auto;border-collapse:collapse;text-align:left;text-indent:0pt;display:inline-table;width:99.415205%;"&gt;&lt;tr&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:29.323529%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:14.617647%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.535294%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:14.617647%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.535294%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:14.617647%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.535294%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:14.617647%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="21" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Fair Value Measurements at December 31, 2018&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Quoted Prices in Active Markets for Identical Assets&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Significant Other Observable Inputs&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Significant Unobservable Inputs&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Total&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Level 1&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Level 2&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Level 3&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Assets:&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:7pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Money market funds&lt;/span&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;46,257&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;46,257&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:7pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;U.S. Treasury securities&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;12,488&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;12,488&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:7pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Corporate debt securities&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;100,214&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;100,214&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:7pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Common stock warrants&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;1,890&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;1,890&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;div&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:100%;"&gt;Total assets measured at fair value&lt;/span&gt;&lt;sup style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:6.5pt;font-weight:400;line-height:100%;vertical-align:top;"&gt;(b)&lt;/sup&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;border-top:1pt solid #000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;border-top:1pt solid #000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;160,849&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;border-top:1pt solid #000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;border-top:1pt solid #000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;46,257&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;border-top:1pt solid #000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;border-top:1pt solid #000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;112,702&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;border-top:1pt solid #000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;border-top:1pt solid #000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;1,890&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;div style="margin-top:12pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;(a) Total assets measured at fair value at June&#160;30, 2019 includes approximately $69.1 million reported in cash and cash equivalents and $22.4 million reported in other assets on the balance sheet.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top:12pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;(b) Total assets measured at fair value at December&#160;31, 2018 includes approximately $146.2 million reported in cash and cash equivalents on the balance sheet and $1.9&#160;million reported in other assets on the balance sheet.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-top:15pt;margin-bottom:15pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The fair value of Level 2 securities is determined from market pricing and other observable market inputs for similar securities obtained from various third-party data providers. These inputs either represent quoted prices for similar assets in active markets or have been derived from observable market data.  &lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#252525;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The fair value of Level 3 securities is determined using the Black-Scholes option-pricing model.  There were no transfers between levels during the periods presented.&lt;/span&gt;&lt;/div&gt;</us-gaap:FairValueDisclosuresTextBlock>
    <us-gaap:FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTableTextBlock
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RleHRyZWdpb246Njg1N2Y2NmY2MzU1NGFmZTk1MTQ4YzE5NDE0MGNkZjFfMzMxNw_0f085183-c7c2-4d89-bc4b-5e2d729f9677">&lt;div style="text-indent:36pt;margin-top:15pt;margin-bottom:12pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;Financial assets measured at fair value on a recurring basis were as follows (in thousands):&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;table style="margin-left:auto;margin-right:auto;border-collapse:collapse;text-align:left;text-indent:0pt;display:inline-table;width:99.269006%;"&gt;&lt;tr&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:28.633284%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:14.789396%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.536377%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:14.789396%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.536377%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:14.789396%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.536377%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:14.789396%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="21" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Fair Value Measurements at June 30, 2019&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Quoted Prices in Active Markets for Identical Assets&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Significant Other Observable Inputs&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Significant Unobservable Inputs&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Total&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Level 1&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Level 2&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Level 3&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Assets:&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:7pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Money market funds&lt;/span&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;55,663&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;55,663&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:7pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Government-sponsored enterprises&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;20,927&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;20,927&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:7pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Corporate debt securities&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;84,356&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;84,356&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:7pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Common stock warrants&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;22,356&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;22,356&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;div&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:100%;"&gt;Total assets measured at fair value&lt;/span&gt;&lt;sup style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:6.5pt;font-weight:400;line-height:100%;vertical-align:top;"&gt;(a)&lt;/sup&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;183,302&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;55,663&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;105,283&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;22,356&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;table style="margin-left:auto;margin-right:auto;border-collapse:collapse;text-align:left;text-indent:0pt;display:inline-table;width:99.415205%;"&gt;&lt;tr&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:29.323529%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:14.617647%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.535294%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:14.617647%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.535294%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:14.617647%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.535294%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:14.617647%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="21" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Fair Value Measurements at December 31, 2018&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Quoted Prices in Active Markets for Identical Assets&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Significant Other Observable Inputs&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Significant Unobservable Inputs&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Total&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Level 1&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Level 2&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Level 3&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Assets:&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:7pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Money market funds&lt;/span&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;46,257&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;46,257&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:7pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;U.S. Treasury securities&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;12,488&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;12,488&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:7pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Corporate debt securities&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;100,214&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;100,214&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:7pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Common stock warrants&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;1,890&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;1,890&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;div&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:100%;"&gt;Total assets measured at fair value&lt;/span&gt;&lt;sup style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:6.5pt;font-weight:400;line-height:100%;vertical-align:top;"&gt;(b)&lt;/sup&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;border-top:1pt solid #000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;border-top:1pt solid #000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;160,849&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;border-top:1pt solid #000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;border-top:1pt solid #000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;46,257&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;border-top:1pt solid #000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;border-top:1pt solid #000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;112,702&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;border-top:1pt solid #000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;border-top:1pt solid #000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;1,890&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;div style="margin-top:12pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;(a) Total assets measured at fair value at June&#160;30, 2019 includes approximately $69.1 million reported in cash and cash equivalents and $22.4 million reported in other assets on the balance sheet.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top:12pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;(b) Total assets measured at fair value at December&#160;31, 2018 includes approximately $146.2 million reported in cash and cash equivalents on the balance sheet and $1.9&#160;million reported in other assets on the balance sheet.&lt;/span&gt;&lt;/div&gt;</us-gaap:FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTableTextBlock>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="i607760246b4a48adbde0a8819b2374f0_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOjY2OTc0NjdkZjZiOTQxNjE4NGZjZGZmNzg0MmEyNWViL3RhYmxlcmFuZ2U6NjY5NzQ2N2RmNmI5NDE2MTg0ZmNkZmY3ODQyYTI1ZWJfNC0xLTEtMS0w_6b2f9aea-6755-4c4d-93d6-adfa48d96929"
      unitRef="usd">55663000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="i7851ae7089384a1aa691f435a58f3f79_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOjY2OTc0NjdkZjZiOTQxNjE4NGZjZGZmNzg0MmEyNWViL3RhYmxlcmFuZ2U6NjY5NzQ2N2RmNmI5NDE2MTg0ZmNkZmY3ODQyYTI1ZWJfNC0zLTEtMS0w_7d03027f-f071-438b-9b75-9e383cdcf21c"
      unitRef="usd">55663000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="if0ab170bf72f4b0195ca11efb19f84e7_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOjY2OTc0NjdkZjZiOTQxNjE4NGZjZGZmNzg0MmEyNWViL3RhYmxlcmFuZ2U6NjY5NzQ2N2RmNmI5NDE2MTg0ZmNkZmY3ODQyYTI1ZWJfNC01LTEtMS0w_bb312839-b55c-4bbc-afef-ccd1eb06c98f"
      unitRef="usd">0</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="i26ed6082d57146d9adbc4c3d11f73fc4_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOjY2OTc0NjdkZjZiOTQxNjE4NGZjZGZmNzg0MmEyNWViL3RhYmxlcmFuZ2U6NjY5NzQ2N2RmNmI5NDE2MTg0ZmNkZmY3ODQyYTI1ZWJfNC03LTEtMS0w_3c71594d-f706-478b-8642-9b0fa7b8a03c"
      unitRef="usd">0</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="i13a16c1447934e12959b1e02cc90237c_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOjY2OTc0NjdkZjZiOTQxNjE4NGZjZGZmNzg0MmEyNWViL3RhYmxlcmFuZ2U6NjY5NzQ2N2RmNmI5NDE2MTg0ZmNkZmY3ODQyYTI1ZWJfNi0xLTEtMS0w_1a04251f-5870-4ff8-aa91-58a912bb40e1"
      unitRef="usd">20927000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="i06874a612ba842c1a6a12ecb85ebc742_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOjY2OTc0NjdkZjZiOTQxNjE4NGZjZGZmNzg0MmEyNWViL3RhYmxlcmFuZ2U6NjY5NzQ2N2RmNmI5NDE2MTg0ZmNkZmY3ODQyYTI1ZWJfNi0zLTEtMS0w_f04789c7-1e33-4efc-8ef6-4b0f1b37ac69"
      unitRef="usd">0</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="ic57624288bc44f6680c4eef353dc2feb_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOjY2OTc0NjdkZjZiOTQxNjE4NGZjZGZmNzg0MmEyNWViL3RhYmxlcmFuZ2U6NjY5NzQ2N2RmNmI5NDE2MTg0ZmNkZmY3ODQyYTI1ZWJfNi01LTEtMS0w_66d96c16-6268-48a8-99d0-dd4e78fe10fa"
      unitRef="usd">20927000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="i90c756b894b54d6c94e7e64448d0ffbe_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOjY2OTc0NjdkZjZiOTQxNjE4NGZjZGZmNzg0MmEyNWViL3RhYmxlcmFuZ2U6NjY5NzQ2N2RmNmI5NDE2MTg0ZmNkZmY3ODQyYTI1ZWJfNi03LTEtMS0w_62edfacf-c431-43c6-8420-ce17db63900d"
      unitRef="usd">0</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="i4c41208982224dc99ccb84e3a33d58bb_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOjY2OTc0NjdkZjZiOTQxNjE4NGZjZGZmNzg0MmEyNWViL3RhYmxlcmFuZ2U6NjY5NzQ2N2RmNmI5NDE2MTg0ZmNkZmY3ODQyYTI1ZWJfNy0xLTEtMS0w_b0f9ad28-1aae-4f9d-bc63-93dcee26bf78"
      unitRef="usd">84356000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="if7016f77826e44cfb948708edbe369b8_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOjY2OTc0NjdkZjZiOTQxNjE4NGZjZGZmNzg0MmEyNWViL3RhYmxlcmFuZ2U6NjY5NzQ2N2RmNmI5NDE2MTg0ZmNkZmY3ODQyYTI1ZWJfNy0zLTEtMS0w_ac8e6a12-c375-4f87-98af-4b3be23c8bda"
      unitRef="usd">0</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="i97b0c1434a01488c970ecc9a97d2bcc9_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOjY2OTc0NjdkZjZiOTQxNjE4NGZjZGZmNzg0MmEyNWViL3RhYmxlcmFuZ2U6NjY5NzQ2N2RmNmI5NDE2MTg0ZmNkZmY3ODQyYTI1ZWJfNy01LTEtMS0w_0f6717f8-0e97-4073-9394-168d8fe0b1b0"
      unitRef="usd">84356000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="ia7f32053498d4e858f13ec47e258c540_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOjY2OTc0NjdkZjZiOTQxNjE4NGZjZGZmNzg0MmEyNWViL3RhYmxlcmFuZ2U6NjY5NzQ2N2RmNmI5NDE2MTg0ZmNkZmY3ODQyYTI1ZWJfNy03LTEtMS0w_744502f7-a49d-46bd-94b1-6892ae26f51a"
      unitRef="usd">0</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="i6aff7f80dd2742f4b860ece6c8a3a052_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOjY2OTc0NjdkZjZiOTQxNjE4NGZjZGZmNzg0MmEyNWViL3RhYmxlcmFuZ2U6NjY5NzQ2N2RmNmI5NDE2MTg0ZmNkZmY3ODQyYTI1ZWJfOC0xLTEtMS0w_34343ce7-47dd-4eba-a357-d2af9eaf5080"
      unitRef="usd">22356000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="i86f05bd111ad46228704837e05872880_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOjY2OTc0NjdkZjZiOTQxNjE4NGZjZGZmNzg0MmEyNWViL3RhYmxlcmFuZ2U6NjY5NzQ2N2RmNmI5NDE2MTg0ZmNkZmY3ODQyYTI1ZWJfOC0zLTEtMS0w_ba11edba-a583-43b6-bf0b-443646480e05"
      unitRef="usd">0</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="i05703bc606804798a9fd73a065d750b3_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOjY2OTc0NjdkZjZiOTQxNjE4NGZjZGZmNzg0MmEyNWViL3RhYmxlcmFuZ2U6NjY5NzQ2N2RmNmI5NDE2MTg0ZmNkZmY3ODQyYTI1ZWJfOC01LTEtMS0w_e5ac533e-ad79-45a1-8c3e-4683f79ac9c3"
      unitRef="usd">0</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="i371e100838b8497d8bcc8faa6c2e4def_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOjY2OTc0NjdkZjZiOTQxNjE4NGZjZGZmNzg0MmEyNWViL3RhYmxlcmFuZ2U6NjY5NzQ2N2RmNmI5NDE2MTg0ZmNkZmY3ODQyYTI1ZWJfOC03LTEtMS0w_c63cf505-288b-4112-8ec9-9706e162bbbd"
      unitRef="usd">22356000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AssetsFairValueDisclosure
      contextRef="i015751ebf1234e62947481c63e4c4f41_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOjY2OTc0NjdkZjZiOTQxNjE4NGZjZGZmNzg0MmEyNWViL3RhYmxlcmFuZ2U6NjY5NzQ2N2RmNmI5NDE2MTg0ZmNkZmY3ODQyYTI1ZWJfOS0xLTEtMS0w_e9e90005-4dcc-43b2-85a7-998cd892ae52"
      unitRef="usd">183302000</us-gaap:AssetsFairValueDisclosure>
    <us-gaap:AssetsFairValueDisclosure
      contextRef="i78c8310ba02f4524a4555dff26d6abca_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOjY2OTc0NjdkZjZiOTQxNjE4NGZjZGZmNzg0MmEyNWViL3RhYmxlcmFuZ2U6NjY5NzQ2N2RmNmI5NDE2MTg0ZmNkZmY3ODQyYTI1ZWJfOS0zLTEtMS0w_a6f6389b-f88c-41f1-af86-9e035481a21e"
      unitRef="usd">55663000</us-gaap:AssetsFairValueDisclosure>
    <us-gaap:AssetsFairValueDisclosure
      contextRef="iea116987f229472b91bcc1c7e8f0a125_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOjY2OTc0NjdkZjZiOTQxNjE4NGZjZGZmNzg0MmEyNWViL3RhYmxlcmFuZ2U6NjY5NzQ2N2RmNmI5NDE2MTg0ZmNkZmY3ODQyYTI1ZWJfOS01LTEtMS0w_8972bf14-d166-464c-bab6-aae0e0f477d0"
      unitRef="usd">105283000</us-gaap:AssetsFairValueDisclosure>
    <us-gaap:AssetsFairValueDisclosure
      contextRef="i64356ff3530c4afa80f2a9d0978289fd_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOjY2OTc0NjdkZjZiOTQxNjE4NGZjZGZmNzg0MmEyNWViL3RhYmxlcmFuZ2U6NjY5NzQ2N2RmNmI5NDE2MTg0ZmNkZmY3ODQyYTI1ZWJfOS03LTEtMS0w_e1ea70e7-a7f0-4cc1-b5d9-fd5d093899cc"
      unitRef="usd">22356000</us-gaap:AssetsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="i9f7efe7f3c424936bad2d064dd58e8b5_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOmY2NjEyZDk2NGNiYjRkZTE5MjUyN2JiYTM2MTRmNjg2L3RhYmxlcmFuZ2U6ZjY2MTJkOTY0Y2JiNGRlMTkyNTI3YmJhMzYxNGY2ODZfNC0xLTEtMS0w_1f2380a1-4e6c-456e-9977-87737b4cfb67"
      unitRef="usd">46257000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="ifc20747ee79d4af7a1c3babb89c182ca_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOmY2NjEyZDk2NGNiYjRkZTE5MjUyN2JiYTM2MTRmNjg2L3RhYmxlcmFuZ2U6ZjY2MTJkOTY0Y2JiNGRlMTkyNTI3YmJhMzYxNGY2ODZfNC0zLTEtMS0w_ca2bfa36-431d-4403-87a9-9cde8d788a32"
      unitRef="usd">46257000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="if21daf8c609a4e6b9c8e934ac435180e_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOmY2NjEyZDk2NGNiYjRkZTE5MjUyN2JiYTM2MTRmNjg2L3RhYmxlcmFuZ2U6ZjY2MTJkOTY0Y2JiNGRlMTkyNTI3YmJhMzYxNGY2ODZfNC01LTEtMS0w_61ccf2c4-bbe4-4b71-be52-75b296086c48"
      unitRef="usd">0</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="i82ee876ad1354c05b53b7ac81ce21eee_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOmY2NjEyZDk2NGNiYjRkZTE5MjUyN2JiYTM2MTRmNjg2L3RhYmxlcmFuZ2U6ZjY2MTJkOTY0Y2JiNGRlMTkyNTI3YmJhMzYxNGY2ODZfNC03LTEtMS0w_21f05fc5-2e2f-4293-af5d-67a895682ae9"
      unitRef="usd">0</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="i3c1df0b7f9444cb5acd64ac98e51071e_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOmY2NjEyZDk2NGNiYjRkZTE5MjUyN2JiYTM2MTRmNjg2L3RhYmxlcmFuZ2U6ZjY2MTJkOTY0Y2JiNGRlMTkyNTI3YmJhMzYxNGY2ODZfNS0xLTEtMS0w_10ee2532-55b1-420d-b50e-621848e81789"
      unitRef="usd">12488000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="i4260314bd2d04f2db6a27e2b1a083b65_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOmY2NjEyZDk2NGNiYjRkZTE5MjUyN2JiYTM2MTRmNjg2L3RhYmxlcmFuZ2U6ZjY2MTJkOTY0Y2JiNGRlMTkyNTI3YmJhMzYxNGY2ODZfNS0zLTEtMS0w_50aa6db1-7d75-4411-a6ca-b30c37a80938"
      unitRef="usd">0</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="i9dfc1d40b7944b82b52635cd79b601a0_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOmY2NjEyZDk2NGNiYjRkZTE5MjUyN2JiYTM2MTRmNjg2L3RhYmxlcmFuZ2U6ZjY2MTJkOTY0Y2JiNGRlMTkyNTI3YmJhMzYxNGY2ODZfNS01LTEtMS0w_fe8afb7b-a0d3-4dd1-bea9-c86d1ab5cf69"
      unitRef="usd">12488000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="i50ba074462da441bae4570fc8ee9c995_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOmY2NjEyZDk2NGNiYjRkZTE5MjUyN2JiYTM2MTRmNjg2L3RhYmxlcmFuZ2U6ZjY2MTJkOTY0Y2JiNGRlMTkyNTI3YmJhMzYxNGY2ODZfNS03LTEtMS0w_ea97a9e3-2227-49bc-a020-8918ed7c4528"
      unitRef="usd">0</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="i62a12f9d054948399d206406e62062da_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOmY2NjEyZDk2NGNiYjRkZTE5MjUyN2JiYTM2MTRmNjg2L3RhYmxlcmFuZ2U6ZjY2MTJkOTY0Y2JiNGRlMTkyNTI3YmJhMzYxNGY2ODZfNy0xLTEtMS0w_bffae3f1-b40e-42b4-9866-7e8fd36ea631"
      unitRef="usd">100214000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="ifbfc8c09ff9f47a2a8a17a14232d3de4_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOmY2NjEyZDk2NGNiYjRkZTE5MjUyN2JiYTM2MTRmNjg2L3RhYmxlcmFuZ2U6ZjY2MTJkOTY0Y2JiNGRlMTkyNTI3YmJhMzYxNGY2ODZfNy0zLTEtMS0w_6ed40691-991f-4f43-869c-9d8525409595"
      unitRef="usd">0</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="i7d766de2f5ed493591d71b50b6644b3b_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOmY2NjEyZDk2NGNiYjRkZTE5MjUyN2JiYTM2MTRmNjg2L3RhYmxlcmFuZ2U6ZjY2MTJkOTY0Y2JiNGRlMTkyNTI3YmJhMzYxNGY2ODZfNy01LTEtMS0w_53ef5674-359a-4a45-90dc-504d601d77a5"
      unitRef="usd">100214000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="ic5515d2b482844b8a87aef9b29d8c746_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOmY2NjEyZDk2NGNiYjRkZTE5MjUyN2JiYTM2MTRmNjg2L3RhYmxlcmFuZ2U6ZjY2MTJkOTY0Y2JiNGRlMTkyNTI3YmJhMzYxNGY2ODZfNy03LTEtMS0w_4d455bbd-22f6-4cb2-82ee-0362c749e067"
      unitRef="usd">0</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="i889420e2e703482c958ebe45cc66848e_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOmY2NjEyZDk2NGNiYjRkZTE5MjUyN2JiYTM2MTRmNjg2L3RhYmxlcmFuZ2U6ZjY2MTJkOTY0Y2JiNGRlMTkyNTI3YmJhMzYxNGY2ODZfOC0xLTEtMS0w_766d65ff-38c1-43ad-8601-684a5d105a1d"
      unitRef="usd">1890000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="ia34a5e1dc6d94b8cbeacff825cb59ea9_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOmY2NjEyZDk2NGNiYjRkZTE5MjUyN2JiYTM2MTRmNjg2L3RhYmxlcmFuZ2U6ZjY2MTJkOTY0Y2JiNGRlMTkyNTI3YmJhMzYxNGY2ODZfOC0zLTEtMS0w_055e63d4-f416-4abf-8b62-e7fdb4658957"
      unitRef="usd">0</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="id64f9e2bcadf4ff6963c2cfc55fba89c_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOmY2NjEyZDk2NGNiYjRkZTE5MjUyN2JiYTM2MTRmNjg2L3RhYmxlcmFuZ2U6ZjY2MTJkOTY0Y2JiNGRlMTkyNTI3YmJhMzYxNGY2ODZfOC01LTEtMS0w_c741e5e3-912e-481e-bdb4-547c93658f89"
      unitRef="usd">0</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="i6ab7c9b9687544f089fd5f04216fc60b_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOmY2NjEyZDk2NGNiYjRkZTE5MjUyN2JiYTM2MTRmNjg2L3RhYmxlcmFuZ2U6ZjY2MTJkOTY0Y2JiNGRlMTkyNTI3YmJhMzYxNGY2ODZfOC03LTEtMS0w_255b16f5-4652-47c1-a422-80d7fcc811cd"
      unitRef="usd">1890000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AssetsFairValueDisclosure
      contextRef="i470c62bf8c544a5aab3908c3dc8259dc_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOmY2NjEyZDk2NGNiYjRkZTE5MjUyN2JiYTM2MTRmNjg2L3RhYmxlcmFuZ2U6ZjY2MTJkOTY0Y2JiNGRlMTkyNTI3YmJhMzYxNGY2ODZfOS0xLTEtMS0w_1dab80ae-684a-4d2a-9255-47a81ac5e2d1"
      unitRef="usd">160849000</us-gaap:AssetsFairValueDisclosure>
    <us-gaap:AssetsFairValueDisclosure
      contextRef="ibc0086057f03457abca7a42a7d282a6f_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOmY2NjEyZDk2NGNiYjRkZTE5MjUyN2JiYTM2MTRmNjg2L3RhYmxlcmFuZ2U6ZjY2MTJkOTY0Y2JiNGRlMTkyNTI3YmJhMzYxNGY2ODZfOS0zLTEtMS0w_4d4c5266-9d7b-42e1-8cb4-c7762e69bef4"
      unitRef="usd">46257000</us-gaap:AssetsFairValueDisclosure>
    <us-gaap:AssetsFairValueDisclosure
      contextRef="i21b2b97aafe54661b82f043cfcecabb1_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOmY2NjEyZDk2NGNiYjRkZTE5MjUyN2JiYTM2MTRmNjg2L3RhYmxlcmFuZ2U6ZjY2MTJkOTY0Y2JiNGRlMTkyNTI3YmJhMzYxNGY2ODZfOS01LTEtMS0w_596f876d-3469-4019-8ec5-bb90adc6657a"
      unitRef="usd">112702000</us-gaap:AssetsFairValueDisclosure>
    <us-gaap:AssetsFairValueDisclosure
      contextRef="i487956cee88e4147a8d82ea88e9e833f_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RhYmxlOmY2NjEyZDk2NGNiYjRkZTE5MjUyN2JiYTM2MTRmNjg2L3RhYmxlcmFuZ2U6ZjY2MTJkOTY0Y2JiNGRlMTkyNTI3YmJhMzYxNGY2ODZfOS03LTEtMS0w_f68f9bec-333f-4a75-9768-c5349a4be299"
      unitRef="usd">1890000</us-gaap:AssetsFairValueDisclosure>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="i015751ebf1234e62947481c63e4c4f41_I20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RleHRyZWdpb246Njg1N2Y2NmY2MzU1NGFmZTk1MTQ4YzE5NDE0MGNkZjFfMjU1OQ_dbdeb68b-1e03-4bfb-8708-a613593fd087"
      unitRef="usd">69100000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:OtherAssetsNoncurrent
      contextRef="i015751ebf1234e62947481c63e4c4f41_I20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RleHRyZWdpb246Njg1N2Y2NmY2MzU1NGFmZTk1MTQ4YzE5NDE0MGNkZjFfMjYwNA_bc8aa07c-8850-4f4d-b39f-560323540891"
      unitRef="usd">22400000</us-gaap:OtherAssetsNoncurrent>
    <us-gaap:CashAndCashEquivalentsFairValueDisclosure
      contextRef="i470c62bf8c544a5aab3908c3dc8259dc_I20181231"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RleHRyZWdpb246Njg1N2Y2NmY2MzU1NGFmZTk1MTQ4YzE5NDE0MGNkZjFfMjcyMw_02fc3983-6b87-4f41-ae3a-34711f6e23ad"
      unitRef="usd">146200000</us-gaap:CashAndCashEquivalentsFairValueDisclosure>
    <us-gaap:OtherAssetsNoncurrent
      contextRef="i470c62bf8c544a5aab3908c3dc8259dc_I20181231"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180MC9mcmFnOjY4NTdmNjZmNjM1NTRhZmU5NTE0OGMxOTQxNDBjZGYxL3RleHRyZWdpb246Njg1N2Y2NmY2MzU1NGFmZTk1MTQ4YzE5NDE0MGNkZjFfMjc4OQ_8ba33fea-997c-4345-a9be-c31ad587218e"
      unitRef="usd">1900000</us-gaap:OtherAssetsNoncurrent>
    <us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180My9mcmFnOmUzNWU0ZTJjNmZiODQ2MGNiNjEzZTFhYTI1ODc3MDg1L3RleHRyZWdpb246ZTM1ZTRlMmM2ZmI4NDYwY2I2MTNlMWFhMjU4NzcwODVfNTAx_1aac8618-8208-4574-830b-dd0e44907e85">Marketable Securities&lt;div style="margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;Available-for-sale marketable securities as of June&#160;30, 2019 and December&#160;31, 2018 were as follows (in thousands):&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;table style="margin-left:auto;margin-right:auto;border-collapse:collapse;text-align:left;text-indent:0pt;display:inline-table;width:99.269006%;"&gt;&lt;tr&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:52.344624%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:8.898380%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.536377%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:8.751105%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.536377%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:8.898380%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.536377%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:8.898380%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="21" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;June 30, 2019&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Amortized&lt;br/&gt;Cost&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Gross&lt;br/&gt;Unrealized&lt;br/&gt;Gains&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Gross&lt;br/&gt;Unrealized&lt;br/&gt;Losses&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Fair&lt;br/&gt;Value&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Government-sponsored enterprises&lt;/span&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;20,919&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;8&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;20,927&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Corporate debt securities&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;70,867&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;26&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;70,893&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:19pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Total&lt;/span&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;91,786&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;34&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;91,820&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;span&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;table style="margin-left:auto;margin-right:auto;border-collapse:collapse;text-align:left;text-indent:0pt;display:inline-table;width:99.269006%;"&gt;&lt;tr&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:52.344624%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:8.898380%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.536377%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:8.751105%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.536377%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:8.898380%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.536377%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:8.898380%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="21" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;December 31, 2018&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Amortized&lt;br/&gt;Cost&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Gross&lt;br/&gt;Unrealized&lt;br/&gt;Gains&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Gross&lt;br/&gt;Unrealized&lt;br/&gt;Losses&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Fair&lt;br/&gt;Value&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Corporate debt securities&lt;/span&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;12,738&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;(3)&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;12,735&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;"&gt;&lt;span&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:6pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;All available-for-sale marketable securities held as of June&#160;30, 2019 and December&#160;31, 2018 had contractual maturities of less than one year.  All of the Company's available-for-sale marketable securities in an unrealized loss position as of June&#160;30, 2019 and December&#160;31, 2018 were in a loss position for less than 12 months.&#160; There were no unrealized losses at June&#160;30, 2019 or December&#160;31, 2018 that the Company determined to be other-than-temporary.&lt;/span&gt;&lt;/div&gt;</us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock>
    <us-gaap:AvailableForSaleSecuritiesTextBlock
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180My9mcmFnOmUzNWU0ZTJjNmZiODQ2MGNiNjEzZTFhYTI1ODc3MDg1L3RleHRyZWdpb246ZTM1ZTRlMmM2ZmI4NDYwY2I2MTNlMWFhMjU4NzcwODVfNTAy_f8b60168-2204-4744-9add-9fab18615490">&lt;div style="margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;Available-for-sale marketable securities as of June&#160;30, 2019 and December&#160;31, 2018 were as follows (in thousands):&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;table style="margin-left:auto;margin-right:auto;border-collapse:collapse;text-align:left;text-indent:0pt;display:inline-table;width:99.269006%;"&gt;&lt;tr&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:52.344624%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:8.898380%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.536377%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:8.751105%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.536377%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:8.898380%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.536377%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:8.898380%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="21" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;June 30, 2019&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Amortized&lt;br/&gt;Cost&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Gross&lt;br/&gt;Unrealized&lt;br/&gt;Gains&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Gross&lt;br/&gt;Unrealized&lt;br/&gt;Losses&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Fair&lt;br/&gt;Value&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Government-sponsored enterprises&lt;/span&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;20,919&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;8&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;20,927&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Corporate debt securities&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;70,867&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;26&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;70,893&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:19pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Total&lt;/span&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;91,786&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;34&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;91,820&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;span&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;table style="margin-left:auto;margin-right:auto;border-collapse:collapse;text-align:left;text-indent:0pt;display:inline-table;width:99.269006%;"&gt;&lt;tr&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:52.344624%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:8.898380%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.536377%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:8.751105%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.536377%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:8.898380%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.536377%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:8.898380%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="21" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;December 31, 2018&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Amortized&lt;br/&gt;Cost&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Gross&lt;br/&gt;Unrealized&lt;br/&gt;Gains&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Gross&lt;br/&gt;Unrealized&lt;br/&gt;Losses&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Fair&lt;br/&gt;Value&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Corporate debt securities&lt;/span&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;12,738&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#x2014;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;(3)&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;12,735&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;</us-gaap:AvailableForSaleSecuritiesTextBlock>
    <us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis
      contextRef="i170d9929a85943e28888db770cafb922_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180My9mcmFnOmUzNWU0ZTJjNmZiODQ2MGNiNjEzZTFhYTI1ODc3MDg1L3RhYmxlOmVjMmU2NGU5ODhkYjQxNTNiOTc0YTgyNTEzZWI4MDY0L3RhYmxlcmFuZ2U6ZWMyZTY0ZTk4OGRiNDE1M2I5NzRhODI1MTNlYjgwNjRfMy0xLTEtMS0w_c4839ab1-93b8-4baa-bbef-aa63a57e6fed"
      unitRef="usd">20919000</us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax
      contextRef="i170d9929a85943e28888db770cafb922_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180My9mcmFnOmUzNWU0ZTJjNmZiODQ2MGNiNjEzZTFhYTI1ODc3MDg1L3RhYmxlOmVjMmU2NGU5ODhkYjQxNTNiOTc0YTgyNTEzZWI4MDY0L3RhYmxlcmFuZ2U6ZWMyZTY0ZTk4OGRiNDE1M2I5NzRhODI1MTNlYjgwNjRfMy0zLTEtMS0w_61dcb537-be11-49ee-ad03-9b399bd84e54"
      unitRef="usd">8000</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax
      contextRef="i170d9929a85943e28888db770cafb922_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180My9mcmFnOmUzNWU0ZTJjNmZiODQ2MGNiNjEzZTFhYTI1ODc3MDg1L3RhYmxlOmVjMmU2NGU5ODhkYjQxNTNiOTc0YTgyNTEzZWI4MDY0L3RhYmxlcmFuZ2U6ZWMyZTY0ZTk4OGRiNDE1M2I5NzRhODI1MTNlYjgwNjRfMy01LTEtMS0w_56feab2c-2870-4de0-b3ae-7002a2b1687f"
      unitRef="usd">0</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="i170d9929a85943e28888db770cafb922_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180My9mcmFnOmUzNWU0ZTJjNmZiODQ2MGNiNjEzZTFhYTI1ODc3MDg1L3RhYmxlOmVjMmU2NGU5ODhkYjQxNTNiOTc0YTgyNTEzZWI4MDY0L3RhYmxlcmFuZ2U6ZWMyZTY0ZTk4OGRiNDE1M2I5NzRhODI1MTNlYjgwNjRfMy03LTEtMS0w_0b5dd187-a711-460e-a70e-4e407779d562"
      unitRef="usd">20927000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis
      contextRef="i4526783ab6ff441fb4899645896af212_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180My9mcmFnOmUzNWU0ZTJjNmZiODQ2MGNiNjEzZTFhYTI1ODc3MDg1L3RhYmxlOmVjMmU2NGU5ODhkYjQxNTNiOTc0YTgyNTEzZWI4MDY0L3RhYmxlcmFuZ2U6ZWMyZTY0ZTk4OGRiNDE1M2I5NzRhODI1MTNlYjgwNjRfNC0xLTEtMS0w_1b0dd210-752d-4035-b30a-ba2697dddc39"
      unitRef="usd">70867000</us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax
      contextRef="i4526783ab6ff441fb4899645896af212_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180My9mcmFnOmUzNWU0ZTJjNmZiODQ2MGNiNjEzZTFhYTI1ODc3MDg1L3RhYmxlOmVjMmU2NGU5ODhkYjQxNTNiOTc0YTgyNTEzZWI4MDY0L3RhYmxlcmFuZ2U6ZWMyZTY0ZTk4OGRiNDE1M2I5NzRhODI1MTNlYjgwNjRfNC0zLTEtMS0w_d3aaabce-8cc5-4061-94de-96543e509881"
      unitRef="usd">26000</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax
      contextRef="i4526783ab6ff441fb4899645896af212_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180My9mcmFnOmUzNWU0ZTJjNmZiODQ2MGNiNjEzZTFhYTI1ODc3MDg1L3RhYmxlOmVjMmU2NGU5ODhkYjQxNTNiOTc0YTgyNTEzZWI4MDY0L3RhYmxlcmFuZ2U6ZWMyZTY0ZTk4OGRiNDE1M2I5NzRhODI1MTNlYjgwNjRfNC01LTEtMS0w_39d5551d-f615-41e7-aafe-cd209a72fd7d"
      unitRef="usd">0</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="i4526783ab6ff441fb4899645896af212_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180My9mcmFnOmUzNWU0ZTJjNmZiODQ2MGNiNjEzZTFhYTI1ODc3MDg1L3RhYmxlOmVjMmU2NGU5ODhkYjQxNTNiOTc0YTgyNTEzZWI4MDY0L3RhYmxlcmFuZ2U6ZWMyZTY0ZTk4OGRiNDE1M2I5NzRhODI1MTNlYjgwNjRfNC03LTEtMS0w_04741a8e-7fc8-4119-bb8d-542fb48b1afa"
      unitRef="usd">70893000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180My9mcmFnOmUzNWU0ZTJjNmZiODQ2MGNiNjEzZTFhYTI1ODc3MDg1L3RhYmxlOmVjMmU2NGU5ODhkYjQxNTNiOTc0YTgyNTEzZWI4MDY0L3RhYmxlcmFuZ2U6ZWMyZTY0ZTk4OGRiNDE1M2I5NzRhODI1MTNlYjgwNjRfNS0xLTEtMS0w_fc57b7cf-5ad2-4ed5-8a9c-7da059857004"
      unitRef="usd">91786000</us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180My9mcmFnOmUzNWU0ZTJjNmZiODQ2MGNiNjEzZTFhYTI1ODc3MDg1L3RhYmxlOmVjMmU2NGU5ODhkYjQxNTNiOTc0YTgyNTEzZWI4MDY0L3RhYmxlcmFuZ2U6ZWMyZTY0ZTk4OGRiNDE1M2I5NzRhODI1MTNlYjgwNjRfNS0zLTEtMS0w_378797d2-e354-4ec8-a99e-b7d1ed936fdf"
      unitRef="usd">34000</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180My9mcmFnOmUzNWU0ZTJjNmZiODQ2MGNiNjEzZTFhYTI1ODc3MDg1L3RhYmxlOmVjMmU2NGU5ODhkYjQxNTNiOTc0YTgyNTEzZWI4MDY0L3RhYmxlcmFuZ2U6ZWMyZTY0ZTk4OGRiNDE1M2I5NzRhODI1MTNlYjgwNjRfNS01LTEtMS0w_866e0657-f8ad-41bf-a21f-22939e0854f0"
      unitRef="usd">0</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180My9mcmFnOmUzNWU0ZTJjNmZiODQ2MGNiNjEzZTFhYTI1ODc3MDg1L3RhYmxlOmVjMmU2NGU5ODhkYjQxNTNiOTc0YTgyNTEzZWI4MDY0L3RhYmxlcmFuZ2U6ZWMyZTY0ZTk4OGRiNDE1M2I5NzRhODI1MTNlYjgwNjRfNS03LTEtMS0w_a0380b6a-0842-4374-b1a6-643993605a02"
      unitRef="usd">91820000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis
      contextRef="ic4fe377bb129410a81be9785c71eab5f_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180My9mcmFnOmUzNWU0ZTJjNmZiODQ2MGNiNjEzZTFhYTI1ODc3MDg1L3RhYmxlOjI1MDg3YzIzYjMxYzRlNzI5NGE5MDc3Y2Y5NjJhNDhhL3RhYmxlcmFuZ2U6MjUwODdjMjNiMzFjNGU3Mjk0YTkwNzdjZjk2MmE0OGFfNC0xLTEtMS0w_bb928f2c-1a95-41cc-a1ac-80c9137a3e0b"
      unitRef="usd">12738000</us-gaap:AvailableForSaleDebtSecuritiesAmortizedCostBasis>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax
      contextRef="ic4fe377bb129410a81be9785c71eab5f_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180My9mcmFnOmUzNWU0ZTJjNmZiODQ2MGNiNjEzZTFhYTI1ODc3MDg1L3RhYmxlOjI1MDg3YzIzYjMxYzRlNzI5NGE5MDc3Y2Y5NjJhNDhhL3RhYmxlcmFuZ2U6MjUwODdjMjNiMzFjNGU3Mjk0YTkwNzdjZjk2MmE0OGFfNC0zLTEtMS0w_0afee619-4c57-4f90-95a4-d7da1620ed59"
      unitRef="usd">0</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax>
    <us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax
      contextRef="ic4fe377bb129410a81be9785c71eab5f_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180My9mcmFnOmUzNWU0ZTJjNmZiODQ2MGNiNjEzZTFhYTI1ODc3MDg1L3RhYmxlOjI1MDg3YzIzYjMxYzRlNzI5NGE5MDc3Y2Y5NjJhNDhhL3RhYmxlcmFuZ2U6MjUwODdjMjNiMzFjNGU3Mjk0YTkwNzdjZjk2MmE0OGFfNC01LTEtMS0w_e452a7ea-ab26-4fee-9fd1-ec6f1971f71d"
      unitRef="usd">3000</us-gaap:AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="ic4fe377bb129410a81be9785c71eab5f_I20181231"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180My9mcmFnOmUzNWU0ZTJjNmZiODQ2MGNiNjEzZTFhYTI1ODc3MDg1L3RhYmxlOjI1MDg3YzIzYjMxYzRlNzI5NGE5MDc3Y2Y5NjJhNDhhL3RhYmxlcmFuZ2U6MjUwODdjMjNiMzFjNGU3Mjk0YTkwNzdjZjk2MmE0OGFfNC03LTEtMS0w_2829bdb7-cace-4072-833b-4ed340dcfa2e"
      unitRef="usd">12735000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:OtherThanTemporaryImpairmentLossesInvestmentsAvailableforsaleSecurities
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180My9mcmFnOmUzNWU0ZTJjNmZiODQ2MGNiNjEzZTFhYTI1ODc3MDg1L3RleHRyZWdpb246ZTM1ZTRlMmM2ZmI4NDYwY2I2MTNlMWFhMjU4NzcwODVfNDEy_80a05ee0-6302-40d8-b3ab-369923b64155"
      unitRef="usd">0</us-gaap:OtherThanTemporaryImpairmentLossesInvestmentsAvailableforsaleSecurities>
    <us-gaap:OtherThanTemporaryImpairmentLossesInvestmentsAvailableforsaleSecurities
      contextRef="i2d2ed5ab11bd413998cfa6896a16535f_D20180101-20181231"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180My9mcmFnOmUzNWU0ZTJjNmZiODQ2MGNiNjEzZTFhYTI1ODc3MDg1L3RleHRyZWdpb246ZTM1ZTRlMmM2ZmI4NDYwY2I2MTNlMWFhMjU4NzcwODVfNDEy_d1067ccb-49ce-4f06-a179-fb9e5cf7825d"
      unitRef="usd">0</us-gaap:OtherThanTemporaryImpairmentLossesInvestmentsAvailableforsaleSecurities>
    <us-gaap:LesseeOperatingLeasesTextBlock
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180Ni9mcmFnOjVmNWYzOTI5ZjdjODRhMzM5MDdlY2M3OTc5MTU0NmNkL3RleHRyZWdpb246NWY1ZjM5MjlmN2M4NGEzMzkwN2VjYzc5NzkxNTQ2Y2RfMTQ4OQ_60cc7c52-d4fa-401a-9e3b-304ad858879b">Leases&#160;The Company has non-cancelable operating leases for manufacturing, laboratory and office space in Rockville, Maryland and a non-cancelable operating lease for laboratory and office space in Brisbane, California.  A portion of the space under one of these leases is subleased to a third party.  All of these leases include one or more options to renew, with those renewal periods ranging from &lt;span style="-sec-ix-hidden:id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180Ni9mcmFnOjVmNWYzOTI5ZjdjODRhMzM5MDdlY2M3OTc5MTU0NmNkL3RleHRyZWdpb246NWY1ZjM5MjlmN2M4NGEzMzkwN2VjYzc5NzkxNTQ2Y2RfNDE1_f703227b-ca84-4fb7-a4d7-84ba67ecafd1"&gt;five&lt;/span&gt; to 14 years.  At June&#160;30, 2019, the Company's weighted-average remaining lease term relating to its operating leases is seven years, with a weighted-average discount rate of  9.9%.   &lt;div style="text-indent:36pt;margin-top:9pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#252525;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;Upon adoption of ASC 842 on January 1, 2019, it was not reasonably certain that the Company would extend any of its operating leases, therefore the options to extend the lease terms were not recognized as part of the ROU assets or lease liabilities.  During the three months ended March 31, 2019, the Company determined that it would exercise the option to extend one lease for an additional &lt;span style="-sec-ix-hidden:id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180Ni9mcmFnOjVmNWYzOTI5ZjdjODRhMzM5MDdlY2M3OTc5MTU0NmNkL3RleHRyZWdpb246NWY1ZjM5MjlmN2M4NGEzMzkwN2VjYzc5NzkxNTQ2Y2RfOTc4_2401bc9f-b923-404a-86d9-7ebbf1a85a89"&gt;five&lt;/span&gt; years, therefore the Company remeasured the lease liability and adjusted the carrying amount of the ROU asset related to this lease.   The Company made cash payments of $3.2 million for operating leases during the &lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;six months ended June 30, 2019.&lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#252525;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;  As of June&#160;30, 2019, the Company&#x2019;s ROU assets were valued at $17.1 million and are included in Other assets on the consolidated balance sheet.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top:9pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The components of lease cost for the six months ended June 30, 2019 were as follows (in thousands):&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;table style="margin-left:auto;margin-right:auto;border-collapse:collapse;text-align:left;text-indent:0pt;display:inline-table;width:99.990000%;"&gt;&lt;tr&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:86.888889%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:9.111111%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;div&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:115%;"&gt;Operating lease cost&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:top;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:top;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2,701&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Variable lease cost&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;618&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;div&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:115%;"&gt;Sublease income&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;(471)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Net lease cost&lt;/span&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:top;border-top:1pt solid #000;border-bottom:3pt double #000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:top;border-top:1pt solid #000;border-bottom:3pt double #000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2,848&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;span&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:6pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;As of June&#160;30, 2019, the maturities of our operating lease liabilities were as follows (in thousands): &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:6pt;"&gt;&lt;table style="margin-left:auto;margin-right:auto;border-collapse:collapse;text-align:left;text-indent:0pt;display:inline-table;width:99.990000%;"&gt;&lt;tr&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:85.573099%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:10.426901%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Remainder of 2019&lt;/span&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:top;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:top;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;3,201&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2020&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;5,603&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2021&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;5,291&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2022&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;5,450&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2023&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;5,279&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2024&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;4,293&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Thereafter&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;10,081&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Total lease payments&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:top;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;39,198&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Present value adjustment&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;(11,276)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Lease liabilities&lt;/span&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:top;border-top:1pt solid #000;border-bottom:3pt double #000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:top;border-top:1pt solid #000;border-bottom:3pt double #000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;27,922&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;</us-gaap:LesseeOperatingLeasesTextBlock>
    <us-gaap:LesseeOperatingLeaseRenewalTerm
      contextRef="idcb4c984d2e4447eb887cd67e3ccd67d_I20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180Ni9mcmFnOjVmNWYzOTI5ZjdjODRhMzM5MDdlY2M3OTc5MTU0NmNkL3RleHRyZWdpb246NWY1ZjM5MjlmN2M4NGEzMzkwN2VjYzc5NzkxNTQ2Y2RfNDIx_a6f95992-b9b8-40a8-8772-a7e681ae693d">P14Y</us-gaap:LesseeOperatingLeaseRenewalTerm>
    <us-gaap:OperatingLeaseWeightedAverageRemainingLeaseTerm1
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180Ni9mcmFnOjVmNWYzOTI5ZjdjODRhMzM5MDdlY2M3OTc5MTU0NmNkL3RleHRyZWdpb246NWY1ZjM5MjlmN2M4NGEzMzkwN2VjYzc5NzkxNTQ2Y2RfNTI3_69d161ed-8586-41f6-9026-399a4c0a9fa2">P7Y</us-gaap:OperatingLeaseWeightedAverageRemainingLeaseTerm1>
    <us-gaap:LesseeOperatingLeaseDiscountRate
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180Ni9mcmFnOjVmNWYzOTI5ZjdjODRhMzM5MDdlY2M3OTc5MTU0NmNkL3RleHRyZWdpb246NWY1ZjM5MjlmN2M4NGEzMzkwN2VjYzc5NzkxNTQ2Y2RfNTc5_dc159104-a103-4386-b799-4aba661f611c"
      unitRef="number">0.099</us-gaap:LesseeOperatingLeaseDiscountRate>
    <us-gaap:OperatingLeasePayments
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180Ni9mcmFnOjVmNWYzOTI5ZjdjODRhMzM5MDdlY2M3OTc5MTU0NmNkL3RleHRyZWdpb246NWY1ZjM5MjlmN2M4NGEzMzkwN2VjYzc5NzkxNTQ2Y2RfMTE1MA_b25f842f-332d-4f45-a106-e79750922a7f"
      unitRef="usd">3200000</us-gaap:OperatingLeasePayments>
    <us-gaap:OperatingLeaseRightOfUseAsset
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180Ni9mcmFnOjVmNWYzOTI5ZjdjODRhMzM5MDdlY2M3OTc5MTU0NmNkL3RleHRyZWdpb246NWY1ZjM5MjlmN2M4NGEzMzkwN2VjYzc5NzkxNTQ2Y2RfMTI0MA_419d37c7-9a1a-4123-8bd7-e2fe3fa34884"
      unitRef="usd">17100000</us-gaap:OperatingLeaseRightOfUseAsset>
    <us-gaap:LeaseCostTableTextBlock
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180Ni9mcmFnOjVmNWYzOTI5ZjdjODRhMzM5MDdlY2M3OTc5MTU0NmNkL3RleHRyZWdpb246NWY1ZjM5MjlmN2M4NGEzMzkwN2VjYzc5NzkxNTQ2Y2RfMTQ5MA_bcb2b725-18c4-41ba-b1fe-f2e67cda5327">&lt;div style="margin-top:9pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The components of lease cost for the six months ended June 30, 2019 were as follows (in thousands):&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;table style="margin-left:auto;margin-right:auto;border-collapse:collapse;text-align:left;text-indent:0pt;display:inline-table;width:99.990000%;"&gt;&lt;tr&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:86.888889%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:9.111111%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;div&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:115%;"&gt;Operating lease cost&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:top;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:top;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2,701&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Variable lease cost&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;618&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;div&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:115%;"&gt;Sublease income&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;(471)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Net lease cost&lt;/span&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:top;border-top:1pt solid #000;border-bottom:3pt double #000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:top;border-top:1pt solid #000;border-bottom:3pt double #000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2,848&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;</us-gaap:LeaseCostTableTextBlock>
    <us-gaap:OperatingLeaseCost
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180Ni9mcmFnOjVmNWYzOTI5ZjdjODRhMzM5MDdlY2M3OTc5MTU0NmNkL3RhYmxlOmQ2ODQ2Y2FkZDMyOTRmMjE5Y2VmOGI4Nzc3NzA3N2FjL3RhYmxlcmFuZ2U6ZDY4NDZjYWRkMzI5NGYyMTljZWY4Yjg3Nzc3MDc3YWNfMC0xLTEtMS0w_c5bf269e-2268-4203-bead-61129ca26041"
      unitRef="usd">2701000</us-gaap:OperatingLeaseCost>
    <us-gaap:VariableLeaseCost
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180Ni9mcmFnOjVmNWYzOTI5ZjdjODRhMzM5MDdlY2M3OTc5MTU0NmNkL3RhYmxlOmQ2ODQ2Y2FkZDMyOTRmMjE5Y2VmOGI4Nzc3NzA3N2FjL3RhYmxlcmFuZ2U6ZDY4NDZjYWRkMzI5NGYyMTljZWY4Yjg3Nzc3MDc3YWNfMS0xLTEtMS0w_d198312d-4330-4831-8927-72148b824c71"
      unitRef="usd">618000</us-gaap:VariableLeaseCost>
    <us-gaap:SubleaseIncome
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180Ni9mcmFnOjVmNWYzOTI5ZjdjODRhMzM5MDdlY2M3OTc5MTU0NmNkL3RhYmxlOmQ2ODQ2Y2FkZDMyOTRmMjE5Y2VmOGI4Nzc3NzA3N2FjL3RhYmxlcmFuZ2U6ZDY4NDZjYWRkMzI5NGYyMTljZWY4Yjg3Nzc3MDc3YWNfMi0xLTEtMS0w_53b645fe-6bbb-462f-81e2-9e9009bc6dfb"
      unitRef="usd">471000</us-gaap:SubleaseIncome>
    <us-gaap:LeaseCost
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180Ni9mcmFnOjVmNWYzOTI5ZjdjODRhMzM5MDdlY2M3OTc5MTU0NmNkL3RhYmxlOmQ2ODQ2Y2FkZDMyOTRmMjE5Y2VmOGI4Nzc3NzA3N2FjL3RhYmxlcmFuZ2U6ZDY4NDZjYWRkMzI5NGYyMTljZWY4Yjg3Nzc3MDc3YWNfMy0xLTEtMS0w_743e0cde-efb3-4288-8d45-e148b2124d30"
      unitRef="usd">2848000</us-gaap:LeaseCost>
    <us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180Ni9mcmFnOjVmNWYzOTI5ZjdjODRhMzM5MDdlY2M3OTc5MTU0NmNkL3RleHRyZWdpb246NWY1ZjM5MjlmN2M4NGEzMzkwN2VjYzc5NzkxNTQ2Y2RfMTQ5MQ_5206819d-889d-4c1c-b8b9-d305051cc662">&lt;div style="margin-bottom:6pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;As of June&#160;30, 2019, the maturities of our operating lease liabilities were as follows (in thousands): &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:6pt;"&gt;&lt;table style="margin-left:auto;margin-right:auto;border-collapse:collapse;text-align:left;text-indent:0pt;display:inline-table;width:99.990000%;"&gt;&lt;tr&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:85.573099%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:10.426901%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Remainder of 2019&lt;/span&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:top;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:top;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;3,201&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2020&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;5,603&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2021&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;5,291&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2022&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;5,450&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2023&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;5,279&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2024&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;4,293&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Thereafter&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;10,081&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Total lease payments&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:top;border-top:1pt solid #000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;39,198&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Present value adjustment&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;(11,276)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Lease liabilities&lt;/span&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:top;border-top:1pt solid #000;border-bottom:3pt double #000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:right;vertical-align:top;border-top:1pt solid #000;border-bottom:3pt double #000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;27,922&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;</us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock>
    <us-gaap:LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180Ni9mcmFnOjVmNWYzOTI5ZjdjODRhMzM5MDdlY2M3OTc5MTU0NmNkL3RhYmxlOjMwMGEzNjQxN2ZhMDRjMTFiNjQ5ZTE4YjU0MDAzYTIwL3RhYmxlcmFuZ2U6MzAwYTM2NDE3ZmEwNGMxMWI2NDllMThiNTQwMDNhMjBfMC0xLTEtMS0w_64733bc8-3788-44ad-9945-87560894c5c1"
      unitRef="usd">3201000</us-gaap:LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear>
    <us-gaap:LesseeOperatingLeaseLiabilityPaymentsDueYearTwo
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180Ni9mcmFnOjVmNWYzOTI5ZjdjODRhMzM5MDdlY2M3OTc5MTU0NmNkL3RhYmxlOjMwMGEzNjQxN2ZhMDRjMTFiNjQ5ZTE4YjU0MDAzYTIwL3RhYmxlcmFuZ2U6MzAwYTM2NDE3ZmEwNGMxMWI2NDllMThiNTQwMDNhMjBfMS0xLTEtMS0w_21838a1e-e17e-4d34-a660-b464bca46c6c"
      unitRef="usd">5603000</us-gaap:LesseeOperatingLeaseLiabilityPaymentsDueYearTwo>
    <us-gaap:LesseeOperatingLeaseLiabilityPaymentsDueYearThree
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180Ni9mcmFnOjVmNWYzOTI5ZjdjODRhMzM5MDdlY2M3OTc5MTU0NmNkL3RhYmxlOjMwMGEzNjQxN2ZhMDRjMTFiNjQ5ZTE4YjU0MDAzYTIwL3RhYmxlcmFuZ2U6MzAwYTM2NDE3ZmEwNGMxMWI2NDllMThiNTQwMDNhMjBfMi0xLTEtMS0w_3abc177e-d525-4396-af4e-f80e5c4031cf"
      unitRef="usd">5291000</us-gaap:LesseeOperatingLeaseLiabilityPaymentsDueYearThree>
    <us-gaap:LesseeOperatingLeaseLiabilityPaymentsDueYearFour
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180Ni9mcmFnOjVmNWYzOTI5ZjdjODRhMzM5MDdlY2M3OTc5MTU0NmNkL3RhYmxlOjMwMGEzNjQxN2ZhMDRjMTFiNjQ5ZTE4YjU0MDAzYTIwL3RhYmxlcmFuZ2U6MzAwYTM2NDE3ZmEwNGMxMWI2NDllMThiNTQwMDNhMjBfMy0xLTEtMS0w_dba5a377-6905-49ea-85c0-0116c7cfff6a"
      unitRef="usd">5450000</us-gaap:LesseeOperatingLeaseLiabilityPaymentsDueYearFour>
    <us-gaap:LesseeOperatingLeaseLiabilityPaymentsDueYearFive
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180Ni9mcmFnOjVmNWYzOTI5ZjdjODRhMzM5MDdlY2M3OTc5MTU0NmNkL3RhYmxlOjMwMGEzNjQxN2ZhMDRjMTFiNjQ5ZTE4YjU0MDAzYTIwL3RhYmxlcmFuZ2U6MzAwYTM2NDE3ZmEwNGMxMWI2NDllMThiNTQwMDNhMjBfNC0xLTEtMS0w_5fcfca4e-4266-48d1-b688-c96cf9d6aeb6"
      unitRef="usd">5279000</us-gaap:LesseeOperatingLeaseLiabilityPaymentsDueYearFive>
    <mgnx:LesseeOperatingLeaseLiabilityPaymentsDueYearSix
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180Ni9mcmFnOjVmNWYzOTI5ZjdjODRhMzM5MDdlY2M3OTc5MTU0NmNkL3RhYmxlOjMwMGEzNjQxN2ZhMDRjMTFiNjQ5ZTE4YjU0MDAzYTIwL3RhYmxlcmFuZ2U6MzAwYTM2NDE3ZmEwNGMxMWI2NDllMThiNTQwMDNhMjBfNS0xLTEtMS0w_bc90b3c6-b40b-49b3-bb7c-fcfcb0ce41b8"
      unitRef="usd">4293000</mgnx:LesseeOperatingLeaseLiabilityPaymentsDueYearSix>
    <mgnx:LesseeOperatingLeaseLiabilityPaymentsDueAfterYearSix
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180Ni9mcmFnOjVmNWYzOTI5ZjdjODRhMzM5MDdlY2M3OTc5MTU0NmNkL3RhYmxlOjMwMGEzNjQxN2ZhMDRjMTFiNjQ5ZTE4YjU0MDAzYTIwL3RhYmxlcmFuZ2U6MzAwYTM2NDE3ZmEwNGMxMWI2NDllMThiNTQwMDNhMjBfNi0xLTEtMS0w_eabd7044-03dc-4e0d-82cd-a31e9b6d9010"
      unitRef="usd">10081000</mgnx:LesseeOperatingLeaseLiabilityPaymentsDueAfterYearSix>
    <us-gaap:LesseeOperatingLeaseLiabilityPaymentsDue
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180Ni9mcmFnOjVmNWYzOTI5ZjdjODRhMzM5MDdlY2M3OTc5MTU0NmNkL3RhYmxlOjMwMGEzNjQxN2ZhMDRjMTFiNjQ5ZTE4YjU0MDAzYTIwL3RhYmxlcmFuZ2U6MzAwYTM2NDE3ZmEwNGMxMWI2NDllMThiNTQwMDNhMjBfNy0xLTEtMS0w_1f5c4463-d640-48b6-a8b0-248019438fba"
      unitRef="usd">39198000</us-gaap:LesseeOperatingLeaseLiabilityPaymentsDue>
    <us-gaap:LesseeOperatingLeaseLiabilityUndiscountedExcessAmount
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180Ni9mcmFnOjVmNWYzOTI5ZjdjODRhMzM5MDdlY2M3OTc5MTU0NmNkL3RhYmxlOjMwMGEzNjQxN2ZhMDRjMTFiNjQ5ZTE4YjU0MDAzYTIwL3RhYmxlcmFuZ2U6MzAwYTM2NDE3ZmEwNGMxMWI2NDllMThiNTQwMDNhMjBfOC0xLTEtMS0w_1bc078b5-9366-45c3-b6c1-8dcf79757b3e"
      unitRef="usd">11276000</us-gaap:LesseeOperatingLeaseLiabilityUndiscountedExcessAmount>
    <us-gaap:OperatingLeaseLiability
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180Ni9mcmFnOjVmNWYzOTI5ZjdjODRhMzM5MDdlY2M3OTc5MTU0NmNkL3RhYmxlOjMwMGEzNjQxN2ZhMDRjMTFiNjQ5ZTE4YjU0MDAzYTIwL3RhYmxlcmFuZ2U6MzAwYTM2NDE3ZmEwNGMxMWI2NDllMThiNTQwMDNhMjBfOS0xLTEtMS0w_06cfb22c-f3c5-4c48-b001-f3c92b55301b"
      unitRef="usd">27922000</us-gaap:OperatingLeaseLiability>
    <us-gaap:StockholdersEquityNoteDisclosureTextBlock
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180OS9mcmFnOjI0YWEwOTQ4MTZjODRmODJhMjdmY2ExOTNkMTI4NDAwL3RleHRyZWdpb246MjRhYTA5NDgxNmM4NGY4MmEyN2ZjYTE5M2QxMjg0MDBfMTExMg_6493cbd9-0c30-4fe7-b0eb-464b91a7c8a3">Stockholders' Equity&lt;div style="text-indent:36pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#252525;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;In April 2018, the Company completed a firm-commitment underwritten public offering, in which the Company sold 4,500,000 shares of its common stock at a price of $21.25 per share.  Additionally, the underwriters of the offering exercised the full amount of their over-allotment option resulting in the sale of an additional 675,000 shares of the Company's common stock at a price of $21.25 per share.  Upon closing, the Company received net proceeds of approximately $103.0 million from this offering, net of underwriting discounts and commissions and other offering expenses. &lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:18pt;"&gt;&lt;span&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;In February 2019, the Company completed a &lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#252525;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;firm-commitment underwritten public&lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt; offering, in which the Company sold 5,500,000 shares of its common stock at a price of $20.00 per share.  Additionally, the underwriters of the offering exercised the full amount of their over-allotment option resulting in the sale of an additional 825,000 shares of the Company&#x2019;s common stock at a price of $20.00 per share.  The Company received net proceeds of approximately $118.7 million from this offering, net of underwriting discounts and commissions and other offering expenses.&lt;/span&gt;&lt;/div&gt;</us-gaap:StockholdersEquityNoteDisclosureTextBlock>
    <us-gaap:StockIssuedDuringPeriodSharesNewIssues
      contextRef="i0016e8cd9a35450faa7ec47c942d707f_D20180401-20180430"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180OS9mcmFnOjI0YWEwOTQ4MTZjODRmODJhMjdmY2ExOTNkMTI4NDAwL3RleHRyZWdpb246MjRhYTA5NDgxNmM4NGY4MmEyN2ZjYTE5M2QxMjg0MDBfMTQy_35be3aa2-9049-498d-9ef8-c78b11b473c4"
      unitRef="shares">4500000</us-gaap:StockIssuedDuringPeriodSharesNewIssues>
    <us-gaap:SharesIssuedPricePerShare
      contextRef="i64af5770ca5849beb56b63914cbb9b47_I20180430"
      decimals="2"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180OS9mcmFnOjI0YWEwOTQ4MTZjODRmODJhMjdmY2ExOTNkMTI4NDAwL3RleHRyZWdpb246MjRhYTA5NDgxNmM4NGY4MmEyN2ZjYTE5M2QxMjg0MDBfMTg2_a87bf1ed-30d6-4e17-91d0-bdc61368610b"
      unitRef="usdPerShare">21.25</us-gaap:SharesIssuedPricePerShare>
    <us-gaap:StockIssuedDuringPeriodSharesNewIssues
      contextRef="i4ceea754994e4b129540e3df69482fdc_D20180401-20180430"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180OS9mcmFnOjI0YWEwOTQ4MTZjODRmODJhMjdmY2ExOTNkMTI4NDAwL3RleHRyZWdpb246MjRhYTA5NDgxNmM4NGY4MmEyN2ZjYTE5M2QxMjg0MDBfMzQ0_478d6f71-8897-42ef-9475-0bc18e17dacd"
      unitRef="shares">675000</us-gaap:StockIssuedDuringPeriodSharesNewIssues>
    <us-gaap:SharesIssuedPricePerShare
      contextRef="ic8699b28b89643daa9a13b241fc490cc_I20180430"
      decimals="2"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180OS9mcmFnOjI0YWEwOTQ4MTZjODRmODJhMjdmY2ExOTNkMTI4NDAwL3RleHRyZWdpb246MjRhYTA5NDgxNmM4NGY4MmEyN2ZjYTE5M2QxMjg0MDBfMzk4_83f64d72-16ef-4921-a9aa-c18b0a67a458"
      unitRef="usdPerShare">21.25</us-gaap:SharesIssuedPricePerShare>
    <us-gaap:ProceedsFromIssuanceOfCommonStock
      contextRef="i0016e8cd9a35450faa7ec47c942d707f_D20180401-20180430"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180OS9mcmFnOjI0YWEwOTQ4MTZjODRmODJhMjdmY2ExOTNkMTI4NDAwL3RleHRyZWdpb246MjRhYTA5NDgxNmM4NGY4MmEyN2ZjYTE5M2QxMjg0MDBfNDc4_c39d4c62-b5b8-4f12-94c5-caf823d1fdd6"
      unitRef="usd">103000000.0</us-gaap:ProceedsFromIssuanceOfCommonStock>
    <us-gaap:StockIssuedDuringPeriodSharesNewIssues
      contextRef="i7774afdddc494f6299ca38fdf4e68ed7_D20190201-20190228"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180OS9mcmFnOjI0YWEwOTQ4MTZjODRmODJhMjdmY2ExOTNkMTI4NDAwL3RleHRyZWdpb246MjRhYTA5NDgxNmM4NGY4MmEyN2ZjYTE5M2QxMjg0MDBfNjky_99dd9d49-f132-44b2-b0b7-c4d326187605"
      unitRef="shares">5500000</us-gaap:StockIssuedDuringPeriodSharesNewIssues>
    <us-gaap:SharesIssuedPricePerShare
      contextRef="i9aad903f1cd74b1d95ac78e3c7938bbd_I20190228"
      decimals="2"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180OS9mcmFnOjI0YWEwOTQ4MTZjODRmODJhMjdmY2ExOTNkMTI4NDAwL3RleHRyZWdpb246MjRhYTA5NDgxNmM4NGY4MmEyN2ZjYTE5M2QxMjg0MDBfNzM2_25379393-180f-4110-b00c-2ac65e6bff31"
      unitRef="usdPerShare">20.00</us-gaap:SharesIssuedPricePerShare>
    <us-gaap:StockIssuedDuringPeriodSharesNewIssues
      contextRef="ibaccff6cea2241a28210bc296efca5d5_D20190201-20190228"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180OS9mcmFnOjI0YWEwOTQ4MTZjODRmODJhMjdmY2ExOTNkMTI4NDAwL3RleHRyZWdpb246MjRhYTA5NDgxNmM4NGY4MmEyN2ZjYTE5M2QxMjg0MDBfODk0_6664e5a8-b0f8-455f-bb72-168aab0f86f5"
      unitRef="shares">825000</us-gaap:StockIssuedDuringPeriodSharesNewIssues>
    <us-gaap:SharesIssuedPricePerShare
      contextRef="ib488bd725ca247a6bbcc760b74855927_I20190228"
      decimals="2"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180OS9mcmFnOjI0YWEwOTQ4MTZjODRmODJhMjdmY2ExOTNkMTI4NDAwL3RleHRyZWdpb246MjRhYTA5NDgxNmM4NGY4MmEyN2ZjYTE5M2QxMjg0MDBfOTQ4_8351dc58-dc33-49cf-8329-8b6d2893c4ed"
      unitRef="usdPerShare">20.00</us-gaap:SharesIssuedPricePerShare>
    <us-gaap:ProceedsFromIssuanceOfCommonStock
      contextRef="i7774afdddc494f6299ca38fdf4e68ed7_D20190201-20190228"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180OS9mcmFnOjI0YWEwOTQ4MTZjODRmODJhMjdmY2ExOTNkMTI4NDAwL3RleHRyZWdpb246MjRhYTA5NDgxNmM4NGY4MmEyN2ZjYTE5M2QxMjg0MDBfMTAxNA_93b94ac2-55f3-493c-85af-ae4ee4420c2a"
      unitRef="usd">118700000</us-gaap:ProceedsFromIssuanceOfCommonStock>
    <mgnx:CollaborationAndOtherAgreementsDisclosureTextBlock
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjY4MjY_9c2e1749-627e-4525-8aa5-daeaf3135fde">Collaboration and Other Agreements &lt;div style="margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-style:italic;font-weight:700;line-height:120%;"&gt;Incyte&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;In October 2017, the Company entered into an exclusive global collaboration and license agreement with Incyte Corporation (Incyte) for MGA012 (also known as INCMGA0012), an investigational monoclonal antibody that inhibits programmed cell death protein 1 (PD-1) (Incyte Agreement). Incyte has obtained exclusive worldwide rights for the development and commercialization of MGA012 in all indications, while the Company retains the right to develop its pipeline assets in combination with MGA012.  The Company received a $150.0 million upfront payment from Incyte when the transaction closed in 2017.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-top:9pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;Under the terms of the Incyte Agreement, Incyte will lead global development of MGA012.  Assuming successful development and commercialization by Incyte, the Company could receive up to approximately $420.0 million in development and regulatory milestones and up to $330.0 million in commercial milestones. Through December&#160;31, 2018, the Company had recognized $15.0 million in development milestones under this agreement.  If MGA012 is commercialized, the Company would be eligible to receive tiered royalties of 15% to 24% on any global net sales. The Company retains the right to develop its pipeline assets in combination with MGA012, with Incyte commercializing MGA012 and the Company commercializing its asset(s), if any such potential combinations are approved. In addition, the Company retains the right to manufacture a portion of both companies' global commercial supply needs of MGA012, subject to a separate commercial supply agreement. Finally, Incyte funded the Company's activities related to the ongoing monotherapy clinical study and will continue to fund certain related clinical activities.  &lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:115%;"&gt;The Company evaluated the Incyte Agreement under the provisions of ASU No. 2014-09, &lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-style:italic;font-weight:400;line-height:115%;"&gt;Revenue from Contracts with Customer&lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:115%;"&gt;s and all related amendments (collectively, ASC 606) and identified the following two performance obligations under the agreement: (i) the license of MGA012 and (ii) the performance of certain clinical activities through a brief technology transfer period.  The Company determined that the license and clinical activities are separate performance obligations because they are capable of being distinct, and are distinct in the context of the contract. The license has standalone functionality as it is sublicensable, Incyte has significant capabilities in performing clinical trials, and Incyte is capable of performing these activities without the Company's involvement; the Company is performing the activities during the transfer period as a matter of convenience.  The Company determined that the transaction price of the Incyte Agreement at inception was $154.0 million, consisting of the consideration to which the Company was entitled in exchange for the license and an estimate of the consideration for clinical activities to be performed.  The transaction price was allocated to each performance obligation based on their relative standalone selling price.  The standalone selling price of the license was determined using the adjusted market assessment approach considering similar collaboration and license agreements.  The standalone selling price for the agreed-upon clinical activities to be performed was determined using the expected cost approach based on similar arrangements the Company has with other parties.  The potential development and regulatory milestone payments are &lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#252525;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:115%;"&gt;fully constrained until the Company concludes that achievement of the milestone is probable and that recognition of revenue related to the milestone will not result in a significant reversal in amounts recognized in future periods, &lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:115%;"&gt;and as such have been excluded from the transaction price.  Any consideration related to sales-based milestones and royalties will be recognized when the related sales occur, as they were determined to relate predominantly to the license granted to Incyte and, therefore, have also been excluded from the transaction price.  The Company re-assesses the transaction price in each reporting period and when events whose outcomes are resolved or other changes in circumstances occur. &lt;/span&gt;&lt;span style="background-color:#ffffff;color:#252525;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:115%;"&gt;During the year ended December 31, 2018, it became probable that a significant reversal of cumulative revenue would not occur for three deve&lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:115%;"&gt;lopment milestones totaling $15.0 million related to MGA012 meeting certain clinical proof-of-concept criteria.  Therefore the associated consideration was added to the estimated transaction price and was recognized as revenue.  During the three and six months ended June 30, 2019 and 2018, there were no adjustments to the transaction price of the Incyte Agreemen&lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#252525;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:115%;"&gt;t.  &lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:42pt;margin-top:9pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#252525;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The Company recognized the $150.0 million allocated to the &lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;license when it satisfied its performance obligation and transferred the license to Incyte in 2017.  The $4.0 million allocated to the clinical activities was recognized over the period from the effective date of the agreement until such time as the clinical activities were transferred to Incyte using an input method according to research and development costs incurred to date compared to estimated total research and development costs.  These clinical activities were substantially completed as of June 30, 2018.  During the three months ended June 30, 2019 and 2018, the Company recognized no revenue and revenue of $0.6 million, respectively, under the Incyte Agreement.  The Company recognized revenue of $0.1 million and $3.1 million under the Incyte Agreement during the six months ended June 30, 2019 and 2018, respectively.  &lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:42pt;margin-top:9pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The Company also has an agreement with Incyte, which was entered into in 2018, under which the Company is to perform development and manufacturing services for Incyte&#x2019;s clinical needs of MGA012.  The Company evaluated the agreement under ASC 606 and identified one performance obligation under the agreement: to perform services related to manufacturing the clinical supply of MGA012.  The transaction price is based on the costs incurred to develop and manufacture drug product and drug substance, and is recognized over time as the services are provided, as the performance by the Company does not create an asset with an alternative use and the Company has an enforceable right to payment for the performance completed to date.   During the three months ended June 30, 2019 and 2018, the Company recognized revenue of $4.2 million and $9.9&#160;million, respectively, for services performed under this agreement. The Company recognized revenue of $8.2 million and $9.9&#160;million for services performed under this agreement during the six months ended June 30, 2019 and 2018, respectively.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-style:italic;font-weight:700;line-height:120%;"&gt;Les Laboratoires Servier &lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-top:9pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;In September 2012, the Company entered into a collaboration agreement with Les Laboratoires Servier and Institut de Recherches Servier (collectively, Servier) and granted it exclusive options to obtain three separate exclusive licenses to develop &lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top:9pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;and commercialize DART molecules, consisting of those designated by the Company as flotetuzumab (also known as MGD006 or S80880) and MGD007, as well as a third DART molecule, in all countries other than the United States, Canada, Mexico, Japan, South Korea and India (Servier Agreement). In 2014, Servier exercised its exclusive option to develop and commercialize flotetuzumab. In 2016, Servier notified the Company that it did not intend to exercise the option for the third DART molecule, and in November 2018, Servier notified the Company that it did not intend to exercise the option for MGD007.  In July 2019, Servier informed the Company of its intention to terminate the Servier Agreement effective January 15, 2020, unless sooner agreed to by the parties.  &lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;Upon execution of the agreement, Servier made a nonrefundable payment of $20.0 million to the Company.  The Company evaluated the Servier Agreement under the provisions of ASC 606 and concluded that Servier is a customer prior to the exercise of any of the three options.  The Company identified the following material promises under the arrangement for each of the three molecules:  (i) a limited evaluation license to conduct activities under the research plan and  (ii)  research and development services concluding with an option trigger data package.  The Servier Agreement also provided exclusive options for an exclusive license to research, develop, manufacture and commercialize each subject molecule. The Company evaluated these options and concluded that the options were not issued at a significant and incremental discount, and therefore do not provide material rights.  As such, they are excluded as performance obligations at the outset of the arrangement. The Company determined that each license and the related research and development services were not distinct from one another, as the license has limited value without the performance of the research and development activities.  As such, the Company determined that these promises should be combined into a single performance obligation for each molecule, resulting in a total of three performance obligations; one for flotetuzumab, one for MGD007, and one for the third DART molecule. &lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The Company determined that the $20.0 million&lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#252525;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt; &lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;upfront payment from Servier constituted the entirety of the consideration to be included in the transaction price as of the outset of the arrangement, and the transaction price was allocated to the three performance obligations based on their relative standalone selling price. &lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#252525;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The milestone payments that the Company was eligible to receive prior to the exercise of the options were excluded from the transaction price, as all milestone amounts were fully constrained based on the probability of achievement. &lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt; Two milestones were achieved in 2014 when the Investigational New Drug (IND) applications for flotetuzumab and MGD007 were cleared by the Food and Drug Administration (FDA).  Upon achievement of each milestone in 2014, the constraint related to the $5.0 million milestone payment was removed and the transaction price was re-assessed. This variable consideration was allocated to each specific performance obligation in accordance with ASC 606.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-top:9pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;Revenue associated with each performance obligation was recognized as the research and development services were provided using a cost-based input method according to research and development costs incurred to date compared to estimated total research and development costs. The transfer of control occurred over this time period and, in management&#x2019;s judgment, was the best measure of progress towards satisfying the performance obligation.  All revenue related to the upfront payment was recognized by December 31, 2018.  The Company recognized no revenue during the three and six months ended June 30, 2019 related to the upfront payment, and recognized $0.4&#160;million and $0.9&#160;million in revenue during the three and six months ended June 30, 2018, respectively, related to the transaction price allocated to the MGD007 option. No revenue was deferred at December&#160;31, 2018 or June&#160;30, 2019.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;As discussed above, in 2014, Servier exercised its option to obtain a license to develop and commercialize flotetuzumab in its territories and paid the Company a $15.0 million license grant fee.  Upon exercise, the Company's contractual obligations include (i) granting Servier an exclusive license to its intellectual property, (ii) technical, scientific and intellectual property support to the research plan and (iii)  participation on an executive committee and a research and development committee. Under the terms of the Servier Agreement, the Company and Servier share costs incurred to develop flotetuzumab during the license term. Due to the fact that both parties share costs and are exposed to significant risks and rewards dependent on the commercial success of the product, the Company determined that the arrangement is a collaborative arrangement within the scope of ASC 808, &lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-style:italic;font-weight:400;line-height:120%;"&gt;Collaborative Arrangements&lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt; (ASC 808).  The arrangement consists of two components; the license of flotetuzumab and the research and development activities, including committee participation, to support the research plan.  Under the provisions of ASC 808, the Company has determined that it will use ASC 606 by analogy to recognize the revenue related to the license.  The Company evaluated its performance obligation to provide Servier with an exclusive license to develop and commercialize flotetuzumab and determined that its transaction price is equal to the license grant fee payment of $15.0 million and Servier consumes the benefits of the license over time as the research and development activities are performed. Therefore, the Company is recognizing the transaction price over the development period, using an input method according to research and development costs incurred to date compared to estimated total research and development costs. &lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-top:9pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt; During each of  the three month periods ended June&#160;30, 2019 and 2018, the Company recognized revenue of $0.3 million related to the flotetuzumab license grant fee.  The Company recognized revenue related to the flotetuzumab license &lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top:9pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;grant fee of $0.5 million and $0.6 million during the six months ended June 30, 2019 and 2018, respectively.  At June&#160;30, 2019, $12.1 million of revenue related to the flotetuzumab license grant fee was deferred, $1.7 million of which was current and $10.4&#160;million of which was non-current.  At December&#160;31, 2018, $12.6&#160;million of revenue related to the flotetuzumab license grant fee was deferred, $0.9&#160;million of which was current and $11.7 million of which was non-current.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-top:9pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The research and development activities component of the arrangement is not analogous to ASC 606, therefore the Company follows its policy to record expense incurred as research and development expense and reimbursements received from Servier are recognized as an offset to research and development expense on the consolidated statement of operations and comprehensive loss during the development period.  During the three months ended June 30, 2019 and 2018, the Company recorded approximately $1.2 million and $1.6 million, respectively, as an offset to research and development expense under this collaborative arrangement.  During the six months ended June 30, 2019 and 2018, the Company recorded approximately $2.0 million and $2.8 million, respectively, as an offset to research and development expense under this collaborative arrangement.  &lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-style:italic;font-weight:700;line-height:120%;"&gt;Zai Lab&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;In November 2018, the Company entered into a collaboration and license agreement with Zai Lab (Zai Lab Agreement) under which Zai Lab obtained regional development and commercialization rights in mainland China, Hong Kong, Macau and Taiwan for (i) margetuximab, an immune-enhancing anti-HER2 monoclonal antibody, (ii) MGD013, a bispecific DART molecule designed to provide coordinate blockade of PD-1 and LAG-3 for the potential treatment of a range of solid tumors and hematological malignancies, and (iii) an undisclosed multi-specific TRIDENT molecule in preclinical development. Zai Lab will lead clinical development of these molecules in its territory. &lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-top:5pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;Under the terms of the Zai Lab Agreement, Zai Lab paid the Company an upfront payment of $25.0 million, less foreign withholding tax of $2.5 million, which was received in January 2019.  Assuming successful development and commercialization of margetuximab, MGD013 and the TRIDENT molecule, the Company could receive up to $140.0 million in development and regulatory milestones. In addition, Zai Lab would pay the Company double-digit royalties on annual net sales of the assets, which may be subject to adjustment in specified circumstances.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-top:5pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The Company evaluated the Zai Lab Agreement under the provisions of ASC 606 and identified the following material promises under the arrangement for each of the two product candidates, margetuximab and MGD013:  (i)  an exclusive license to develop and commercialize the product candidate in Zai Lab&#x2019;s territory and (ii) certain research and development activities.  The Company determined that each license and the related research and development activities were not distinct from one another, as the license has limited value without the performance of the research and development activities.  As such, the Company determined that these promises should be combined into a single performance obligation for each product candidate.  Activities related to margetuximab and MGD013 are separate performance obligations from each other because they are capable of being distinct, and are distinct in the context of the contract.  The Company evaluated the promises related to the TRIDENT molecule and determined they were immaterial in context of the contract, therefore there is no performance obligation related to that molecule.  The Company determined that the $25.0 million (less foreign withholding tax of $2.5 million) upfront payment from Zai Lab constituted the entirety of the consideration to be included in the transaction price as of the outset of the arrangement, and the transaction price was allocated to the two performance obligations based on their relative standalone selling price.  The standalone selling price of each performance obligation was determined using the adjusted market assessment approach considering similar collaboration and license agreements.  The potential development and regulatory milestone payments are fully constrained until the Company concludes that achievement of the milestone is probable, and that recognition of revenue related to the milestone will not result in a significant reversal in amounts recognized in future periods, and as such have been excluded from the transaction price.  Any consideration related to royalties will be recognized when the related sales occur, as they were determined to relate predominantly to the license granted to Zai Lab and, therefore, have also been excluded from the transaction price.  The Company re-assesses the transaction price in each reporting period and when events whose outcomes are resolved or other changes in circumstances occur.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top:9pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt; &#160;Due to the relatively short-term nature of the recognition period, the revenue associated with the MGD013 performance obligation is being recognized on a straight-line basis as the Company performs research and development activities under the agreement.  The fixed consideration related to the margetuximab performance obligation is also being recognized on a straight-line basis as the Company performs research and development activities under the agreement.  Straight-line recognition is materially consistent with the pattern of performance of the research and development activities of each product candidate.  The variable consideration related to the margetuximab performance obligation will be recognized upon certain regulatory achievements.  During the three and six months ended June 30, 2019, the Company recognized revenue of $4.0 million and $8.0 million, respectively, related to the Zai Lab Agreement.  At June&#160;30, 2019, $13.1 million of revenue was deferred under this agreement, $8.1 million of which was current and $5.0 million of which was non-current. At December&#160;31, 2018, $21.1 million of revenue was deferred under this agreement, $16.1 million of which was current and $5.0 million of which was non-current.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-style:italic;font-weight:700;line-height:120%;"&gt;Roche&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:18pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;In December 2017, the Company entered into a research collaboration and license agreement with F. Hoffmann-La Roche Ltd and Hoffmann-La Roche Inc. (collectively, Roche) to jointly discover and develop novel bispecific molecules to undisclosed targets  (Roche Agreement).  During the research term, both companies will leverage their respective platforms, including the Company's DART platform and Roche's CrossMAb and DutaFab technologies, to select a bispecific format and lead product candidate.  Roche would then further develop and commercialize any such product candidate.  Each company will be responsible for its own expenses during the research period. &lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:18pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;Under the terms of the Roche Agreement, Roche received rights to use certain of the Company&#x2019;s intellectual property rights to exploit collaboration compounds and products, and paid the Company an upfront payment of $10.0 million which was received in January 2018. The Company will also be eligible to receive up to $370.0 million in potential milestone payments and royalties on future sales.  As of June 30, 2019, the Company has not recognized any milestone revenue under this agreement.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The Company evaluated the Roche Agreement under the provisions of ASC 606 and identified the following promises under the agreement: (i) the non-exclusive, non-transferable, non-sublicensable license to the Company's intellectual property and (ii) the performance of certain activities during the research period.  The Company determined that the license is capable of being distinct, but is not distinct in the context of the contract because it has limited value to Roche without the research activities required to be performed by the Company.  Therefore, the Company concluded that there is one performance obligation under the agreement.  The Company determined that the transaction price of the Roche Agreement was $10.0 million.  The potential milestone payments are &lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#252525;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;fully constrained &lt;/span&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;and have been excluded from the transaction price.  Any consideration related to sales-based royalties will be recognized when the related sales occur as they were determined to relate predominantly to the license granted to Roche and therefore have also been excluded from the transaction price. &lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-top:9pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The $10.0 million transaction price is being recognized over the expected research period, which is 30 months, using a cost-based input method to measure performance.  The Company recognized revenue under this agreement of $1.0 million during each of the three month periods ended June&#160;30, 2019 and 2018, and $2.0 million during each of the six month periods ended June&#160;30, 2019 and 2018.  At June&#160;30, 2019, $4.0 million of revenue was deferred under this agreement, all of which was current.&#160;At December&#160;31, 2018, $6.0 million of revenue was deferred under this agreement, $4.0 million of which was current and $2.0 million of which was non-current.&#160;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-style:italic;font-weight:700;line-height:120%;"&gt;Provention&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;In May 2018, the Company entered into a License Agreement with Provention Bio, Inc. (Provention), pursuant to which the Company granted Provention exclusive global rights for the purpose of developing and commercializing MGD010 (renamed PRV-3279), a CD32B x CD79B DART molecule being developed for the treatment of autoimmune indications (Provention License Agreement).  As partial consideration for the Provention License Agreement, Provention granted the Company a warrant to purchase shares of Provention&#x2019;s common stock at an exercise price of $2.50 per share. The warrant expires on May 7, 2025.  If Provention successfully develops, obtains regulatory approval for, and commercializes PRV-3279, the Company will be eligible to receive up to $65.0 million in development and regulatory milestones and up to $225.0 million in commercial milestones.  As of June 30, 2019, the Company has not recognized any milestone revenue under this agreement.  If PRV-3279 is commercialized, the Company would be eligible to receive single-digit royalties on net sales of the product.  The license agreement may be terminated by either party upon a material breach or bankruptcy of the other party, by Provention without cause upon prior notice to the Company, and by the Company in the event that Provention challenges the validity of any licensed patent under the agreement, but only with respect to the challenged patent.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;Also in May 2018, the Company entered into an Asset Purchase Agreement with Provention pursuant to which Provention acquired the Company&#x2019;s interest in teplizumab (renamed PRV-031), a monoclonal antibody being developed for the treatment of type 1 diabetes (Provention Asset Purchase Agreement).  As partial consideration for the Provention Asset Purchase Agreement, Provention granted the Company a warrant to purchase shares of Provention&#x2019;s common stock at an exercise price of $2.50 per share.  The warrant expires on May 7, 2025.  If Provention successfully develops, obtains regulatory approval for, and commercializes PRV-031, the Company will be eligible to receive up to $170.0 million in regulatory milestones and up to $225.0 million in commercial milestones.  If PRV-031 is commercialized, the Company would be eligible to receive single-digit royalties on net sales of the product.  Provention has also agreed to pay third-party obligations, including low single-digit royalties, a portion of which is creditable against royalties payable to the Company, aggregate milestone payments of up to approximately $1.3 million and other consideration, for certain third-party intellectual property under agreements Provention is assuming pursuant to the Provention Asset Purchase Agreement. Further, Provention is required to pay the Company a low double-digit percentage of certain consideration to the extent it is received in connection with a future grant of rights to PRV-031 by Provention to a third party. &lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The Company evaluated the Provention License Agreement and Provention Asset Purchase Agreement under the provisions of ASC 606 and determined that they should be accounted for as a single contract and identified two performance obligations within that contract: (i) the license of MGD010 and (ii) the title to teplizumab.  The Company determined that the transaction price of the Provention agreements was $6.1 million, based on the Black-Scholes valuation of the warrants to purchase 2,432,688 shares of Provention's common stock.  The transaction price was allocated to each performance obligation based on the number of shares of common stock the Company is entitled to purchase under each warrant, which represents the relative fair value of each performance obligation.  The potential development and regulatory milestone payments are fully constrained until the Company concludes that achievement of the milestone is probable and that recognition of revenue related to the milestone will not result in a significant reversal in amounts recognized in future periods, and as such have been excluded from the transaction price.  Any consideration related to sales-based milestones and royalties will be recognized when the related sales occur, therefore they have also been excluded from the transaction price.  The Company re-assesses the transaction price in each reporting period and when events whose outcomes are resolved or other changes in circumstances occur. &lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-top:9pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The Company recognized revenue of $6.1 million when it satisfied its performance obligations under the agreements and transferred the MGD010 license and teplizumab assets to Provention during May 2018.  The warrants are reported in Other assets on the consolidated balance sheet and are revalued at each reporting period based on current Black-Scholes parameters until exercised or the warrants lapse.  The resulting increase or decrease is reflected in Other income (expense) on the consolidated statement of operations and comprehensive loss.  During the three and six months ended June 30, 2019, the Company recorded an increase in the valuation of the warrants of $19.6 million and $20.5 million, respectively.  The warrants were valued at $22.4 million and $1.9 million as of June&#160;30, 2019 and December&#160;31, 2018, respectively.  Subsequent to June 30, 2019, the Company exercised the warrants on a cashless basis.   &lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-style:italic;font-weight:700;line-height:120%;"&gt;NIAID Contract&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The Company entered into a contract with the National Institute of Allergy and Infectious Diseases (NIAID), effective as of September 15, 2015,&#160;to perform product development and to advance up to two DART molecules, including MGD014 (NIAID Agreement). Under the NIAID Agreement, the Company will develop these product candidates for Phase 1/2 clinical trials as therapeutic agents, in combination with latency reversing treatments, to deplete cells infected with human immunodeficiency virus (HIV) infection. NIAID does not receive goods or services from the Company under this contract, therefore the Company does not consider NIAID to be a customer and concluded this contract is outside the scope of Topic 606.&lt;/span&gt;&lt;/div&gt;The NIAID Agreement includes a base period of up to $7.5 million to support development of MGD014 through IND application submission with the FDA, as well as up to $17.0 million in additional development funding via NIAID options. Should NIAID fully exercise such options, the Company could receive total payments of up to $24.5 million. The total potential period of performance under the award is from September&#160;15, 2015 through September&#160;14, 2022. In 2017, NIAID exercised the first option in the amount of up to $10.8 million.  During the three months ended June 30, 2019 and 2018, the Company recognized revenue of  under the NIAID Agreement of $0.6 million and $0.2 million, respectively.  During the six months ended June 30, 2019 and 2018, the Company recognized revenue of  under the NIAID Agreement of $0.8 million and $0.4 million, respectively.</mgnx:CollaborationAndOtherAgreementsDisclosureTextBlock>
    <mgnx:NonRefundableUpfrontFees
      contextRef="idfd901e807134ac59ade33770cacbeb1_D20171001-20171231"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfNTcx_a52059d3-12d8-48c4-ab9f-99acc60b8ad7"
      unitRef="usd">150000000.0</mgnx:NonRefundableUpfrontFees>
    <mgnx:PotentialDevelopmentandRegulatoryMilestonePaymentsUnderAgreement
      contextRef="i7c9a2982b0764a69ac2c1cbd7b36da93_I20171031"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfODM5_20812e47-57e9-4863-bcb0-531e49445605"
      unitRef="usd">420000000.0</mgnx:PotentialDevelopmentandRegulatoryMilestonePaymentsUnderAgreement>
    <mgnx:PotentialCommercialMilestonePaymentsUnderAgreement
      contextRef="i7c9a2982b0764a69ac2c1cbd7b36da93_I20171031"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfODkz_14c6b672-a51f-40cf-a71e-df9434a2c8f9"
      unitRef="usd">330000000.0</mgnx:PotentialCommercialMilestonePaymentsUnderAgreement>
    <mgnx:DevelopmentAndRegulatoryMilestonePaymentsUnderAgreementRecognized
      contextRef="i6aeaf548301240518356ec98e2ebc4c6_D20180101-20181231"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfOTUz_fe02e4f1-12ca-46b0-8db0-2b85b08d7676"
      unitRef="usd">15000000.0</mgnx:DevelopmentAndRegulatoryMilestonePaymentsUnderAgreementRecognized>
    <mgnx:ProceedsfromRoyaltiesPercent
      contextRef="i10db936cf7e24045967cb5e515d89a22_D20171001-20171031"
      decimals="2"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMTA5NQ_61011f04-9a37-433a-8dba-41394abebbe8"
      unitRef="number">0.15</mgnx:ProceedsfromRoyaltiesPercent>
    <mgnx:ProceedsfromRoyaltiesPercent
      contextRef="i037b0abdd026404181671eaf1af0bdc8_D20171001-20171031"
      decimals="2"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMTEwMQ_b3ef075b-6798-4f23-b80b-3556665d84e1"
      unitRef="number">0.24</mgnx:ProceedsfromRoyaltiesPercent>
    <mgnx:NumberOfPerformanceObligations
      contextRef="i4b712d16b7924576a574a63037827a77_I20171231"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMTg5Mw_74cda0a0-15c0-4c7b-943d-bc12601acca8"
      unitRef="performance_obligation">2</mgnx:NumberOfPerformanceObligations>
    <mgnx:CollaborativeAgreementTransactionPrice
      contextRef="i7c9a2982b0764a69ac2c1cbd7b36da93_I20171031"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjY3MA_935ca79a-3229-499f-a9f1-0f57d81c3859"
      unitRef="usd">154000000.0</mgnx:CollaborativeAgreementTransactionPrice>
    <mgnx:DevelopmentAndRegulatoryMilestonePaymentsUnderAgreementRecognized
      contextRef="if7068720a2bc4e159745e0afe3fe3563_D20190101-20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfNTQ5NzU1ODE3MzE4MQ_7b0ec876-82b6-40aa-b52d-2b009c6ff9a2"
      unitRef="usd">15000000.0</mgnx:DevelopmentAndRegulatoryMilestonePaymentsUnderAgreementRecognized>
    <us-gaap:Revenues
      contextRef="ie58da25b4e2844348afa912bbd0c5d44_D20171001-20171031"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfNDIzMw_e2980ee8-f161-40fe-b7b9-ee7efdf7c930"
      unitRef="usd">150000000.0</us-gaap:Revenues>
    <us-gaap:RevenueRecognitionMultipleDeliverableArrangementsDeterminationOfSellingPriceAmount
      contextRef="i513b678a740344379d8db357d591641f_D20171001-20171031"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfNDM1OA_db8b3712-e70b-493f-a034-861741dac2c9"
      unitRef="usd">4000000.0</us-gaap:RevenueRecognitionMultipleDeliverableArrangementsDeterminationOfSellingPriceAmount>
    <us-gaap:Revenues
      contextRef="ie9a3433ed3c54e0db8c9872b95db7a1e_D20190401-20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfNDc5NQ_a52774b4-9681-428d-bcaf-5b7ef9c91d63"
      unitRef="usd">0</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="i667ac46a25c14d3585e334c72a0e7787_D20180401-20180630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4MzU5Mg_467f604c-21bf-4435-ab35-55bf30e644f6"
      unitRef="usd">600000</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="ied5d586d2cc64b69985f0bd61e30044b_D20190101-20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4MzU1Mg_8d804516-4aee-41f3-a47f-e7faef32d812"
      unitRef="usd">100000</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="ica17de3605c144d185f4105d3d100a39_D20180101-20180630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4MzU1Nw_b26bc685-0191-4057-acc2-cc39ed338786"
      unitRef="usd">3100000</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="i78b8ffec3882456481b1bc20c7fbc75b_D20190401-20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NDA0Ng_30bd866f-0cb1-46c4-b2a5-95da69525728"
      unitRef="usd">4200000</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="i2d5a59ea43194b6199e99db7b875e8bb_D20180401-20180630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NDA1MA_283e42fd-e04c-4a20-9e3c-d2dc3fa36a12"
      unitRef="usd">9900000</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="i68a7487e41444659bf880f8dbf8731e1_D20190101-20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NDA1NA_b174e858-8fc8-4fab-8217-64ccbebf3e3b"
      unitRef="usd">8200000</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="ibb65df30ba0b4209b018deeb0d808033_D20180101-20180630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NDA1OA_d88d1e6a-4c09-406e-95b5-5fac495db1e3"
      unitRef="usd">9900000</us-gaap:Revenues>
    <mgnx:NumberOfExclusiveOptionsToLicense
      contextRef="i3d81c7b3acf84807bfbbdf1c4f164fec_I20120930"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfNjAwMQ_ed5dc6ae-ee9c-4985-9902-0437ec964efe"
      unitRef="exclusive_license">3</mgnx:NumberOfExclusiveOptionsToLicense>
    <mgnx:NonRefundableUpfrontFees
      contextRef="i664845e6a90d4c6ea2cbc23b34cbd416_D20120901-20120930"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfNjcxNw_2338df3c-c367-4997-bbcc-498428c85aef"
      unitRef="usd">20000000.0</mgnx:NonRefundableUpfrontFees>
    <mgnx:NumberOfExclusiveOptionsToLicense
      contextRef="i3d81c7b3acf84807bfbbdf1c4f164fec_I20120930"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfNzM4NA_ed5dc6ae-ee9c-4985-9902-0437ec964efe"
      unitRef="exclusive_license">3</mgnx:NumberOfExclusiveOptionsToLicense>
    <mgnx:NumberOfPerformanceObligations
      contextRef="ibd7ee1d1a4544edc9d0412aec7df5262_I20120930"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfODQ3Ng_79efac5e-ae09-4103-8b1b-29202d7b96de"
      unitRef="performance_obligation">3</mgnx:NumberOfPerformanceObligations>
    <mgnx:CollaborativeAgreementTransactionPrice
      contextRef="i3d81c7b3acf84807bfbbdf1c4f164fec_I20120930"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfODYxMg_a5007dd4-0c6c-47fe-8998-e5b4fff1d6fc"
      unitRef="usd">20000000.0</mgnx:CollaborativeAgreementTransactionPrice>
    <mgnx:NumberOfPerformanceObligations
      contextRef="ibd7ee1d1a4544edc9d0412aec7df5262_I20120930"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfODgxNA_79efac5e-ae09-4103-8b1b-29202d7b96de"
      unitRef="performance_obligation">3</mgnx:NumberOfPerformanceObligations>
    <mgnx:NumberOfMilestonesAchieved
      contextRef="if46294cd47ce4e3698bbef957fc66974_D20140101-20141231"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfOTEyNA_2fe476ca-88f5-4d83-8666-d9805fbf981e"
      unitRef="milestone">2</mgnx:NumberOfMilestonesAchieved>
    <mgnx:MilestonePayment
      contextRef="if46294cd47ce4e3698bbef957fc66974_D20140101-20141231"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfOTM2NA_62d269f8-d601-4095-bf40-eb7cb3b672b6"
      unitRef="usd">5000000.0</mgnx:MilestonePayment>
    <us-gaap:Revenues
      contextRef="i5d29d23556c6467c9465e5358b41866e_D20190401-20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMTAwODY_9a437a07-5cf8-4289-acba-2f42298981e2"
      unitRef="usd">0</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="ib599bf377f0549ffa3966a45090d2179_D20190101-20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMTAwODY_c11cf3a4-a528-4399-845b-d5ec938f9022"
      unitRef="usd">0</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="i06171e3de8524b09bd6bc87bbea23f52_D20180401-20180630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMTAxNTc_eb7f80ac-c22b-45b9-be7a-1b2865c2444c"
      unitRef="usd">400000</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="i2ba65581556248c7abbf001f1010191f_D20180101-20180630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NDEzMQ_af2b20a3-077d-41f4-9481-02f65ec5dfea"
      unitRef="usd">900000</us-gaap:Revenues>
    <mgnx:OptionExerciseFee
      contextRef="i4512d2fed8444d28bea3189fffed7e17_I20141231"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMTA0NDk_f2ed05b2-e4ef-4410-9931-a6e9632755b2"
      unitRef="usd">15000000.0</mgnx:OptionExerciseFee>
    <mgnx:NumberOfComponentsInLicenseAgreement
      contextRef="i7329228962d2454388e2c7a485bba9b7_I20141231"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMTEyMzk_d678909c-52fc-41ce-b779-98945df90ff1"
      unitRef="component">2</mgnx:NumberOfComponentsInLicenseAgreement>
    <mgnx:OptionExerciseFee
      contextRef="i4512d2fed8444d28bea3189fffed7e17_I20141231"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMTE3NjI_f2ed05b2-e4ef-4410-9931-a6e9632755b2"
      unitRef="usd">15000000.0</mgnx:OptionExerciseFee>
    <us-gaap:Revenues
      contextRef="i1775db36a51342be865c16436a52ee85_D20180401-20180630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NDI5Mw_5e34e197-da7e-4bd4-9fca-c754c2e37730"
      unitRef="usd">300000</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="ic9e32877dbfb48768e5b952d689f3d58_D20190401-20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NDI5Mw_ef81a632-4226-44df-a626-66f500e5bec0"
      unitRef="usd">300000</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="i01727aa26e6d4691b997375868b2262d_D20190101-20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NDM0Nw_0aff1450-b711-470a-9eba-415f98985abc"
      unitRef="usd">500000</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="i0dc46af44e5643eb8a53c6a6176e8a26_D20180101-20180630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NDM2MQ_dca59684-c3ce-416a-854f-d33ffed6b35d"
      unitRef="usd">600000</us-gaap:Revenues>
    <us-gaap:ContractWithCustomerLiability
      contextRef="ia0d2429c60ff49829a1ced64966d5cab_I20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMTIzODk_55c6ce54-d9cc-415c-a54b-5dffad48b5f9"
      unitRef="usd">12100000</us-gaap:ContractWithCustomerLiability>
    <us-gaap:ContractWithCustomerLiabilityCurrent
      contextRef="ia0d2429c60ff49829a1ced64966d5cab_I20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMTI0NjM_b6cf7a22-eef2-4f67-a176-4ff21aef461b"
      unitRef="usd">1700000</us-gaap:ContractWithCustomerLiabilityCurrent>
    <us-gaap:ContractWithCustomerLiabilityNoncurrent
      contextRef="ia0d2429c60ff49829a1ced64966d5cab_I20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMTI0OTE_80533cb2-5302-45ac-9220-f314506512ee"
      unitRef="usd">10400000</us-gaap:ContractWithCustomerLiabilityNoncurrent>
    <us-gaap:ContractWithCustomerLiability
      contextRef="ia96f3573bc0346c18df8da456ff96ea0_I20181231"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMTI1Mjg_b7d98bf3-efa3-4705-8541-8f2b5d18f2a8"
      unitRef="usd">12600000</us-gaap:ContractWithCustomerLiability>
    <us-gaap:ContractWithCustomerLiabilityCurrent
      contextRef="ia96f3573bc0346c18df8da456ff96ea0_I20181231"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMTI2MDI_908b1faa-e2d4-4631-aab1-4c69ec9c5458"
      unitRef="usd">900000</us-gaap:ContractWithCustomerLiabilityCurrent>
    <us-gaap:ContractWithCustomerLiabilityNoncurrent
      contextRef="ia96f3573bc0346c18df8da456ff96ea0_I20181231"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMTI2MzA_6b9676b1-a0fe-407d-84d7-b915cc37ac53"
      unitRef="usd">11700000</us-gaap:ContractWithCustomerLiabilityNoncurrent>
    <mgnx:CollaborationArrangementOffsetToResearchAndDevelopmentCosts
      contextRef="i0e74a6fc23ec480a9c6368314f5f94df_D20190401-20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMTMxMjI_bcf98aa0-0d9c-4c3f-9661-26e9664f85f4"
      unitRef="usd">1200000</mgnx:CollaborationArrangementOffsetToResearchAndDevelopmentCosts>
    <mgnx:CollaborationArrangementOffsetToResearchAndDevelopmentCosts
      contextRef="i636775e07a5a4c0c831b56ea590d5e62_D20180401-20180630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMTMxMjk_34668653-9a50-4cb7-b8df-9f6cfead0723"
      unitRef="usd">1600000</mgnx:CollaborationArrangementOffsetToResearchAndDevelopmentCosts>
    <mgnx:CollaborationArrangementOffsetToResearchAndDevelopmentCosts
      contextRef="i1a449a68853d4652aea961da1ee278c9_D20190101-20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NDY3NQ_fbfad937-b2f8-4ac2-aa6c-cccc9f2fbdf6"
      unitRef="usd">2000000.0</mgnx:CollaborationArrangementOffsetToResearchAndDevelopmentCosts>
    <mgnx:CollaborationArrangementOffsetToResearchAndDevelopmentCosts
      contextRef="i6479e29d73894a4a8542285ee36cddd4_D20180101-20180630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NDY4MA_121cba9f-a943-4aa9-b921-7ccae98bd368"
      unitRef="usd">2800000</mgnx:CollaborationArrangementOffsetToResearchAndDevelopmentCosts>
    <mgnx:NonRefundableUpfrontFees
      contextRef="ibd8b171f76264fd3ab7ac97ea2567a44_D20181101-20181130"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMTM5OTM_a51eb9e3-e62b-4f54-80fb-f4384ea4f1a2"
      unitRef="usd">25000000.0</mgnx:NonRefundableUpfrontFees>
    <mgnx:NonrefundablePaymentTaxWithholding
      contextRef="ibd8b171f76264fd3ab7ac97ea2567a44_D20181101-20181130"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMTQwMjk_edec206d-8c7e-4f91-9e7c-eb8edcc46524"
      unitRef="usd">2500000</mgnx:NonrefundablePaymentTaxWithholding>
    <mgnx:PotentialDevelopmentandRegulatoryMilestonePaymentsUnderAgreement
      contextRef="ie00cd89809a445a39dc844d470bd3276_I20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMTQyMDY_29f88472-4f29-422d-a3f9-5a1f89c172d2"
      unitRef="usd">140000000.0</mgnx:PotentialDevelopmentandRegulatoryMilestonePaymentsUnderAgreement>
    <mgnx:NonRefundableUpfrontFees
      contextRef="ibd8b171f76264fd3ab7ac97ea2567a44_D20181101-20181130"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMTU1Nzc_a51eb9e3-e62b-4f54-80fb-f4384ea4f1a2"
      unitRef="usd">25000000.0</mgnx:NonRefundableUpfrontFees>
    <mgnx:NonrefundablePaymentTaxWithholding
      contextRef="ibd8b171f76264fd3ab7ac97ea2567a44_D20181101-20181130"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMTU2MTM_edec206d-8c7e-4f91-9e7c-eb8edcc46524"
      unitRef="usd">2500000</mgnx:NonrefundablePaymentTaxWithholding>
    <us-gaap:Revenues
      contextRef="i3bbcd0f598974e2c825c52b79fd58286_D20190401-20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NDc0OA_7855bb7f-2d6a-4a35-a5a5-bf6428de33c2"
      unitRef="usd">4000000.0</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="i3d16a56015574270b87a6e90bc7f575b_D20190101-20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NDc1Mw_0f63c252-897d-4ac9-933a-65274b023bdd"
      unitRef="usd">8000000.0</us-gaap:Revenues>
    <us-gaap:ContractWithCustomerLiability
      contextRef="ie00cd89809a445a39dc844d470bd3276_I20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NDc1Nw_358bf6e0-a304-457c-9a2a-7a56dbcbeaa0"
      unitRef="usd">13100000</us-gaap:ContractWithCustomerLiability>
    <us-gaap:ContractWithCustomerLiabilityCurrent
      contextRef="ie00cd89809a445a39dc844d470bd3276_I20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NDc2MA_590f8852-04b7-4fd1-abbc-b5fe8d86031b"
      unitRef="usd">8100000</us-gaap:ContractWithCustomerLiabilityCurrent>
    <us-gaap:ContractWithCustomerLiabilityNoncurrent
      contextRef="ie00cd89809a445a39dc844d470bd3276_I20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NDc2Mw_6ab343a8-9d72-4501-8a3d-ffb22b68de2d"
      unitRef="usd">5000000.0</us-gaap:ContractWithCustomerLiabilityNoncurrent>
    <us-gaap:ContractWithCustomerLiability
      contextRef="i4df814fb61ab4825bccc7b6a80c00a52_I20181231"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NDc2Ng_deac2a1b-b808-4712-898b-f97a248c9cae"
      unitRef="usd">21100000</us-gaap:ContractWithCustomerLiability>
    <us-gaap:ContractWithCustomerLiabilityCurrent
      contextRef="i4df814fb61ab4825bccc7b6a80c00a52_I20181231"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NDc2OQ_7af5c35b-6e7b-406a-9831-04d6affa998f"
      unitRef="usd">16100000</us-gaap:ContractWithCustomerLiabilityCurrent>
    <us-gaap:ContractWithCustomerLiabilityNoncurrent
      contextRef="i4df814fb61ab4825bccc7b6a80c00a52_I20181231"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NDc3Mg_e108a704-63e0-4c52-9e8a-04b1912b39ee"
      unitRef="usd">5000000.0</us-gaap:ContractWithCustomerLiabilityNoncurrent>
    <mgnx:NonRefundableUpfrontFees
      contextRef="ife2cc57e2aa149668358beb1e1be08ce_D20180101-20180131"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMTg3Nzg_bdf791b7-79ec-463d-96e6-7f0f3c1d3400"
      unitRef="usd">10000000.0</mgnx:NonRefundableUpfrontFees>
    <mgnx:PotentialMilestonePaymentsandRoyaltiesonFutureSalesunderAgreement
      contextRef="ie4c5b282ba3948fa82107f5f8ee82b39_I20171231"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMTg4Njg_e89ffb7b-7ca9-4790-bfdb-5c14a72e7596"
      unitRef="usd">370000000.0</mgnx:PotentialMilestonePaymentsandRoyaltiesonFutureSalesunderAgreement>
    <mgnx:NumberOfPerformanceObligations
      contextRef="ie4c5b282ba3948fa82107f5f8ee82b39_I20171231"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMTk2MDk_65ddc496-d97f-4af0-9c34-fae9eb96c7e4"
      unitRef="performance_obligation">1</mgnx:NumberOfPerformanceObligations>
    <mgnx:CollaborativeAgreementTransactionPrice
      contextRef="ie4c5b282ba3948fa82107f5f8ee82b39_I20171231"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMTk3MzQ_a9d6619b-d05e-4462-bca7-3ff8f960008d"
      unitRef="usd">10000000.0</mgnx:CollaborativeAgreementTransactionPrice>
    <mgnx:CollaborativeAgreementTransactionPrice
      contextRef="ie4c5b282ba3948fa82107f5f8ee82b39_I20171231"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjAwOTY_65e3bb8c-0292-463e-9def-91b8a4977bb4"
      unitRef="usd">10000000.0</mgnx:CollaborativeAgreementTransactionPrice>
    <mgnx:UpfrontPaymentRecognitionPeriod
      contextRef="i759efe744821467e998300ee15b91bf5_D20171201-20171231"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjAxODE_62de4124-642d-4b56-8195-f399fcce5ab7">P30M</mgnx:UpfrontPaymentRecognitionPeriod>
    <us-gaap:Revenues
      contextRef="ib67316d7e4b54a069f913e8cb57f93f3_D20180401-20180630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjAyOTc_3b71ba35-374b-4b70-908c-0fb68a540faf"
      unitRef="usd">1000000.0</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="i236e6d21aacc49c79e4c5706da18f035_D20190401-20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjAyOTc_5bf0c519-5146-4963-bbd4-37f6eba4df6e"
      unitRef="usd">1000000.0</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="i5ec764523bbf4c70885d2726396036a3_D20190101-20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NTAxNg_2d6b9b35-78f8-4741-b5c3-c867dedf73ac"
      unitRef="usd">2000000.0</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="i417b0f9e6b774f31bd546d14639a948d_D20180101-20180630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NTAxNg_b984be6b-c783-4660-8376-5f4b763b00f4"
      unitRef="usd">2000000.0</us-gaap:Revenues>
    <us-gaap:ContractWithCustomerLiabilityCurrent
      contextRef="ibfabfec71776477780c18274e70c5633_I20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NTAyMA_71dd1cee-60da-4e95-87b9-3680ed79f156"
      unitRef="usd">4000000.0</us-gaap:ContractWithCustomerLiabilityCurrent>
    <us-gaap:ContractWithCustomerLiability
      contextRef="i5b131f6f68de43dd832eb7fbdc144906_I20181231"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NDc4MQ_0940423c-536e-4802-a981-f89acff78cf4"
      unitRef="usd">6000000.0</us-gaap:ContractWithCustomerLiability>
    <us-gaap:ContractWithCustomerLiabilityCurrent
      contextRef="i5b131f6f68de43dd832eb7fbdc144906_I20181231"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NDc4NA_ea5be51c-a86e-44a1-ba6f-f76239bf4431"
      unitRef="usd">4000000.0</us-gaap:ContractWithCustomerLiabilityCurrent>
    <us-gaap:ContractWithCustomerLiabilityNoncurrent
      contextRef="i5b131f6f68de43dd832eb7fbdc144906_I20181231"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NDc4Nw_388b128a-0418-40c8-8221-64aa17ab3f13"
      unitRef="usd">2000000.0</us-gaap:ContractWithCustomerLiabilityNoncurrent>
    <mgnx:CollaborativeAgreementConsiderationReceivedCommonStockWarrantExercisePricePerShare
      contextRef="iec8797de2d65482e8626baa47de80d07_D20180531-20180531"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjExNDI_a2eeaf41-417b-4ab4-8f7b-6e3df0493e6b"
      unitRef="usdPerShare">2.50</mgnx:CollaborativeAgreementConsiderationReceivedCommonStockWarrantExercisePricePerShare>
    <mgnx:PotentialDevelopmentandRegulatoryMilestonePaymentsUnderAgreement
      contextRef="if876851393bf4307ba0a0d8e1aa29829_I20180531"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjEzMzg_34a09cbc-c01a-458a-92eb-5d3915de5293"
      unitRef="usd">65000000.0</mgnx:PotentialDevelopmentandRegulatoryMilestonePaymentsUnderAgreement>
    <mgnx:PotentialCommercialMilestonePaymentsUnderAgreement
      contextRef="if876851393bf4307ba0a0d8e1aa29829_I20180531"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjEzOTI_8aac16dc-527d-43f8-afd1-db2180e984d9"
      unitRef="usd">225000000.0</mgnx:PotentialCommercialMilestonePaymentsUnderAgreement>
    <mgnx:CollaborativeAgreementConsiderationReceivedCommonStockWarrantExercisePricePerShare
      contextRef="i5ab0c35770444fb69076d852e58550a0_D20180531-20180531"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjI0NDY_35c707fc-0777-457f-b6ad-7b19fc5e5cbf"
      unitRef="usdPerShare">2.50</mgnx:CollaborativeAgreementConsiderationReceivedCommonStockWarrantExercisePricePerShare>
    <mgnx:PotentialDevelopmentandRegulatoryMilestonePaymentsUnderAgreement
      contextRef="ia019f469d00e440aa232bd69fcc1af39_I20180531"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjI2NDI_a40e49b5-99fd-4361-b507-87417553d629"
      unitRef="usd">170000000.0</mgnx:PotentialDevelopmentandRegulatoryMilestonePaymentsUnderAgreement>
    <mgnx:PotentialCommercialMilestonePaymentsUnderAgreement
      contextRef="ia019f469d00e440aa232bd69fcc1af39_I20180531"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjI2ODA_74e80a5c-ddef-4650-8857-1fe7123adcaf"
      unitRef="usd">225000000.0</mgnx:PotentialCommercialMilestonePaymentsUnderAgreement>
    <mgnx:PotentialMilestonePaymentToThirdPartiesForIntellectualPropertyUnderAgreement
      contextRef="ia019f469d00e440aa232bd69fcc1af39_I20180531"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjMwNTg_9061beb1-ad0f-427e-9b1b-9d2449b37d4a"
      unitRef="usd">1300000</mgnx:PotentialMilestonePaymentToThirdPartiesForIntellectualPropertyUnderAgreement>
    <mgnx:NumberOfPerformanceObligations
      contextRef="id4fd6d021baa4300a4a193df705f7090_I20180531"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjM2NjA_817e5bc4-49e7-4521-980e-18868bf13e79"
      unitRef="performance_obligation">2</mgnx:NumberOfPerformanceObligations>
    <mgnx:CollaborativeAgreementTransactionPrice
      contextRef="id4fd6d021baa4300a4a193df705f7090_I20180531"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjM4NTM_5defda52-af1b-45dc-96da-72feb746b75b"
      unitRef="usd">6100000</mgnx:CollaborativeAgreementTransactionPrice>
    <mgnx:CollaborativeAgreementConsiderationReceivedCommonStockWarrantsNumberOfShares
      contextRef="id4fd6d021baa4300a4a193df705f7090_I20180531"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjM5MjI_99d200ad-6ad9-4e2f-9028-c2ccc93fd0fb"
      unitRef="shares">2432688</mgnx:CollaborativeAgreementConsiderationReceivedCommonStockWarrantsNumberOfShares>
    <us-gaap:Revenues
      contextRef="i326e5e3e09c040d8a8e81e06914cb02c_D20180701-20180930"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjQ5MzY_51dfb555-fbd4-47f9-a68d-eb3f969fd04d"
      unitRef="usd">6100000</us-gaap:Revenues>
    <us-gaap:DebtSecuritiesAvailableForSaleUnrealizedGainLoss
      contextRef="ia0b8993800184e1ca8ca6f035798894a_D20190401-20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfNTQ5NzU1ODE3MzE5MA_9fa0d625-d48b-4df9-8f16-f4cd39b33b4f"
      unitRef="usd">19600000</us-gaap:DebtSecuritiesAvailableForSaleUnrealizedGainLoss>
    <us-gaap:DebtSecuritiesAvailableForSaleUnrealizedGainLoss
      contextRef="i44a1b9adf3034d538940c46bafe6ccb7_D20190101-20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfNTQ5NzU1ODE3MzE5Nw_8502f0aa-b728-41b6-9107-9e3f65b570f9"
      unitRef="usd">20500000</us-gaap:DebtSecuritiesAvailableForSaleUnrealizedGainLoss>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="i6aff7f80dd2742f4b860ece6c8a3a052_I20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjU0NjU_fd30a4d9-a445-4ec9-bb00-840bc3e0552c"
      unitRef="usd">22400000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <us-gaap:AvailableForSaleSecuritiesDebtSecurities
      contextRef="i889420e2e703482c958ebe45cc66848e_I20181231"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjU0NzI_ff9bebb5-9a4a-48da-a3ef-d4628b3eb4fd"
      unitRef="usd">1900000</us-gaap:AvailableForSaleSecuritiesDebtSecurities>
    <mgnx:NumberOfMoleculesToBeDevelopedAndCommercializedUnderAgreement
      contextRef="i1d72cea0e2b54e02a62eb8da1337f505_D20150915-20150915"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjU3MTk_ebc1e059-2909-43fb-a411-c677da3412ee"
      unitRef="molecule">2</mgnx:NumberOfMoleculesToBeDevelopedAndCommercializedUnderAgreement>
    <mgnx:FundedValueOfBasePeriod
      contextRef="i1d72cea0e2b54e02a62eb8da1337f505_D20150915-20150915"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjYyODg_ad640da6-8449-4f7a-b5c9-446de9f03838"
      unitRef="usd">7500000</mgnx:FundedValueOfBasePeriod>
    <mgnx:AdditionalDevelopmentFundingOptionsUnderAgreement
      contextRef="i1d72cea0e2b54e02a62eb8da1337f505_D20150915-20150915"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjYzOTA_08a58a25-d1ed-41e3-b255-4ce7c94b80fb"
      unitRef="usd">17000000.0</mgnx:AdditionalDevelopmentFundingOptionsUnderAgreement>
    <mgnx:TotalPotentialValueUnderAgreement
      contextRef="i1d72cea0e2b54e02a62eb8da1337f505_D20150915-20150915"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjY1Mzg_fed38a1d-f9e2-4cfb-b79f-93fd8b964a13"
      unitRef="usd">24500000</mgnx:TotalPotentialValueUnderAgreement>
    <mgnx:ExercisedAdditionalDevelopmentFundingOptionsUnderAgreement
      contextRef="i3a25353c20c14b35abbf91d45bfbe87c_D20170101-20171231"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjY2ODg_4510055b-52d6-4d58-9c9d-d04b4be7cc0f"
      unitRef="usd">10800000</mgnx:ExercisedAdditionalDevelopmentFundingOptionsUnderAgreement>
    <us-gaap:Revenues
      contextRef="i5d5bbd7fdcf443d49958ebac856af8a9_D20180101-20180630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NTQwNA_48971bc6-6b39-4d20-a961-5dd4786836d9"
      unitRef="usd">600000</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="i1146545c3fe94f6eaf430ca5b2d91022_D20190101-20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NTQwNA_ac8ef094-8409-4901-8969-cdba29c776a7"
      unitRef="usd">600000</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="i1275c78253554a68a851e88752ae5f12_D20170701-20170930"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NTQwNw_fdd1765e-ba07-4146-a73b-d259899951c2"
      unitRef="usd">200000</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="i2b28e45a77774df182e415a12fde8ae9_D20180101-20180930"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NTM5OA_399eabe5-85e8-406b-9e2e-d88b5201636a"
      unitRef="usd">800000</us-gaap:Revenues>
    <us-gaap:Revenues
      contextRef="iafaa3d31be544703b8adc30884a15ff4_D20170101-20170930"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181Mi9mcmFnOjYyNmI2ZTc0YWIzOTQ0MjQ4OGJhYmY5MWI2ZWI2ZTk1L3RleHRyZWdpb246NjI2YjZlNzRhYjM5NDQyNDg4YmFiZjkxYjZlYjZlOTVfMjE5OTAyMzI4NTQwMQ_044b1390-1f42-4d8c-8bb9-be265bb0671e"
      unitRef="usd">400000</us-gaap:Revenues>
    <us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RleHRyZWdpb246Y2NlMjNiYWJmMGI4NGM1Y2I3OTU5NzMwOTBjYTcyMWJfNDYxMA_4188a189-f45f-41e8-9859-2abdb5d2f647">Stock-Based Compensation&lt;div style="margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-style:italic;font-weight:400;line-height:120%;"&gt;Employee Stock Purchase Plan&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;In May 2017, the Company&#x2019;s stockholders approved the 2016 Employee Stock Purchase Plan (the 2016 ESPP). The 2016 ESPP is structured as a qualified employee stock purchase plan under Section 423 of the Internal Revenue Code of 1986, as amended (IRC), and is not subject to the provisions of the Employee Retirement Income Security Act of 1974.  The Company reserved 800,000 shares of common stock for issuance under the 2016 ESPP. The 2016 ESPP allows eligible employees to purchase shares of the Company&#x2019;s common stock at a discount through payroll deductions of up to 10% of their eligible compensation, subject to any plan limitations. The 2016 ESPP provides for six-month offering periods ending on May 31 and November 30 of each year.  At the end of each offering period, employees are able to purchase shares at 85% of the fair market value of the Company&#x2019;s common stock on the last day of the offering period.  During the six months ended June&#160;30, 2019, 25,722 shares of common stock were purchased under the 2016 ESPP for net proceeds to the Company of approximately $0.4&#160;million.  &lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-style:italic;font-weight:400;line-height:120%;"&gt;Employee Stock Option Plans&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;Effective February 2003, the Company implemented the 2003 Equity Incentive Plan (2003 Plan), and it was amended and approved by the Company's stockholders in 2005. Stock options granted under the 2003 Plan may be either incentive stock options as defined by the IRC, or non-qualified stock options.  In 2013, the 2003 Plan was terminated, and no further awards &lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;may be issued under the plan.  Any shares of common stock subject to awards under the 2003 Plan that expire, terminate, or are otherwise surrendered, canceled, forfeited or repurchased without having been fully exercised, or resulting in any common stock being issued, will become available for issuance under the 2013 Stock Incentive Plan (2013 Plan), up to a specified number of shares.&#160; As of June&#160;30, 2019, under the 2003 Plan, there were options to purchase an aggregate of 580,190 shares of common stock outstanding at a weighted average exercise price of $2.28 per share.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;In October 2013, the Company implemented the 2013 Plan.&#160;&#160;The 2013 Plan provides for the grant of stock options and other stock-based awards, as well as cash-based performance awards.&#160;&#160;The number of shares of common stock reserved for issuance under the 2013 Plan will automatically increase on January 1 of each year from January 1, 2014 through and including January 1, 2023, by the lesser of (a) 1,960,168 shares, (b) 4.0% of the total number of shares of common stock outstanding on December 31 of the preceding calendar year, or (c) the number of shares of common stock determined by the Board of Directors. During the six months ended June&#160;30, 2019, the maximum number of shares of common stock authorized to be issued by the Company under the 2013 Plan was increased to 9,938,263.&#160;&#160; If an option expires or terminates for any reason without having been fully exercised, if any shares of restricted stock are forfeited, or if any award terminates, expires or is settled without all or a portion of the shares of common stock covered by the award being issued, such shares are available for the grant of additional awards. However, any shares that are withheld (or delivered) to pay withholding taxes or to pay the exercise price of an option are not available for the grant of additional awards.  As of June&#160;30, 2019, there were options to purchase an aggregate of 6,181,599 shares of common stock outstanding at a weighted average exercise price of $24.42 per share under the 2013 Plan.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The following stock-based compensation expense was recognized for the periods indicated (in thousands):&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;table style="margin-left:auto;margin-right:auto;border-collapse:collapse;text-align:left;text-indent:0pt;display:inline-table;width:97.953216%;"&gt;&lt;tr&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:33.223881%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:13.970149%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.143284%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:12.776119%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:2.635821%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:12.328358%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.143284%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:12.179104%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#ee2724;background-color:rgb(255,255,255, 0.0);"/&gt;&lt;/td&gt;&lt;td colspan="9" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Three Months Ended June 30,&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="9" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Six Months Ended June 30,&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2019&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2018&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2019&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2018&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Research and development&lt;/span&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2,453&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;1,989&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;4,267&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;3,689&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;General and administrative&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2,431&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2,174&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;4,416&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;3,906&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Total stock-based compensation expense&lt;/span&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;4,884&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;4,163&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;8,683&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;7,595&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-top:15pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The fair value of each option award is estimated on the date of grant using the Black-Scholes option-pricing model using the assumptions in the following table for options issued during the period indicated:&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;table style="margin-left:auto;margin-right:auto;border-collapse:collapse;text-align:left;text-indent:0pt;display:inline-table;width:99.561404%;"&gt;&lt;tr&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:63.491924%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:15.767988%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.534214%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:14.005874%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="9" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Six Months Ended June 30,&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2019&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2018&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Expected dividend yield&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:0%;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;0%&#160;&lt;/span&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:0%;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;0%&#160;&lt;/span&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Expected volatility&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;73.7% - 75.3%&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;67.8% - 72.2%&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Risk-free interest rate&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;1.9% - 2.6%&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2.4% - 3.1%&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Expected term&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;6.25 years&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;6.25 years&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The following table summarizes stock option activity during the six months ended June&#160;30, 2019:&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;table style="margin-left:auto;margin-right:auto;border-collapse:collapse;text-align:left;text-indent:0pt;display:inline-table;width:99.415205%;"&gt;&lt;tr&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:26.970588%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:15.205882%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.535294%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:15.205882%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.535294%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:15.205882%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.535294%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:15.205882%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Shares&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Weighted-&lt;br/&gt;Average&lt;br/&gt;Exercise Price&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Weighted-Average&lt;br/&gt;Remaining&lt;br/&gt;Contractual Term&lt;br/&gt;(Years)&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Aggregate&lt;br/&gt;Intrinsic&lt;br/&gt;Value&lt;br/&gt; (in thousands)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Outstanding, December 31, 2018&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;5,273,964&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;22.23&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;6.8&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:top;padding-left:7pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Granted&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;1,796,645&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;21.42&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"/&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:top;padding-left:7pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Exercised&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;(189,428)&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;3.25&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"/&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:top;padding-left:7pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Forfeited or expired&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;(119,392)&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;23.74&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"/&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Outstanding, June 30, 2019&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;6,761,789&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;22.52&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;7.3&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;8,883&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;As of June 30, 2019:&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:3pt double #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"/&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"/&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"/&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:top;padding-left:7pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Exercisable&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;3,722,761&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;21.92&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;5.9&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;8,850&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:top;padding-left:7pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Vested and expected to vest&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;6,461,922&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;22.46&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;7.2&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;8,880&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;div style="text-indent:36pt;margin-top:9pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The weighted-average grant-date fair value of options granted during the six months ended June&#160;30, 2019 and 2018 was $14.38 and $18.29, respectively. The total intrinsic value of options exercised during the six months ended June&#160;30, 2019 and 2018 was approximately $2.6 million and $3.7 million, respectively.  The total cash received for options exercised during  the six months ended June&#160;30, 2019 and 2018 was approximately $0.6 million and $0.7 million, respectively. The total fair &lt;/span&gt;&lt;/div&gt;value of shares vested in the six months ended June&#160;30, 2019 and 2018 was approximately $6.5 million and $6.3 million, respectively. As of June&#160;30, 2019, the total unrecognized compensation expense related to non-vested stock options, net of related forfeiture estimates, was approximately $38.7 million, which the Company expects to recognize over a weighted-average period of approximately 2.9 years.</us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized
      contextRef="i45e1094c686c4667b1333e100976e4e4_I20170531"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RleHRyZWdpb246Y2NlMjNiYWJmMGI4NGM1Y2I3OTU5NzMwOTBjYTcyMWJfNDI4_7878a3b9-215f-4233-b7cd-a58e939f51aa"
      unitRef="shares">800000</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized>
    <mgnx:EmployeeStockPurchasePlanMaximumAnnualContributionsPerEmployeePercent
      contextRef="iccb5a3482d784c23acf7b724d9b5bfaa_D20170501-20170531"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RleHRyZWdpb246Y2NlMjNiYWJmMGI4NGM1Y2I3OTU5NzMwOTBjYTcyMWJfNjI3_f04e65ba-41fe-41fb-8e4e-cc9354f7c291"
      unitRef="number">0.10</mgnx:EmployeeStockPurchasePlanMaximumAnnualContributionsPerEmployeePercent>
    <us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardPurchasePriceOfCommonStockPercent
      contextRef="iccb5a3482d784c23acf7b724d9b5bfaa_D20170501-20170531"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RleHRyZWdpb246Y2NlMjNiYWJmMGI4NGM1Y2I3OTU5NzMwOTBjYTcyMWJfODc0_b3e52244-7223-4a19-b756-ce93efcd9514"
      unitRef="number">0.85</us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardPurchasePriceOfCommonStockPercent>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod
      contextRef="i2c0f554142c349ed900bc6eb29f0bbd3_D20190101-20190630"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RleHRyZWdpb246Y2NlMjNiYWJmMGI4NGM1Y2I3OTU5NzMwOTBjYTcyMWJfMTAwNA_c4590cb9-c5ec-4de8-a3f7-6b1578c8bbe8"
      unitRef="shares">25722</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod>
    <us-gaap:ProceedsFromStockPlans
      contextRef="if47a72c816224b248964555bbbcb6075_D20180101-20180930"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RleHRyZWdpb246Y2NlMjNiYWJmMGI4NGM1Y2I3OTU5NzMwOTBjYTcyMWJfNTQ5NzU1ODE4NTk3_e470268a-481a-4572-ab50-234167703a63"
      unitRef="usd">400000</us-gaap:ProceedsFromStockPlans>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber
      contextRef="ia4fe324b45f64cf0ab5b0829c4942e88_I20190630"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RleHRyZWdpb246Y2NlMjNiYWJmMGI4NGM1Y2I3OTU5NzMwOTBjYTcyMWJfMTkyNQ_e3b5fe57-99d5-46f2-b080-c3457e715830"
      unitRef="shares">580190</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice
      contextRef="ia4fe324b45f64cf0ab5b0829c4942e88_I20190630"
      decimals="2"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RleHRyZWdpb246Y2NlMjNiYWJmMGI4NGM1Y2I3OTU5NzMwOTBjYTcyMWJfMjAwMw_1b570017-6e6a-48cc-8a79-1671403edc16"
      unitRef="usdPerShare">2.28</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice>
    <mgnx:CommonStockCapitalSharesMinimumIncreaseInSharesReservedForFutureIssuance
      contextRef="if64283b5893c485cb40278f00607e31b_I20190630"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RleHRyZWdpb246Y2NlMjNiYWJmMGI4NGM1Y2I3OTU5NzMwOTBjYTcyMWJfMjQxNQ_b9665e07-4d60-47bf-82a0-dc076bf12cf8"
      unitRef="shares">1960168</mgnx:CommonStockCapitalSharesMinimumIncreaseInSharesReservedForFutureIssuance>
    <mgnx:PercentageOfSharesOfCompanysCommonStockOutstandingForIncreaseInSharesReservedForIssuanceUnderStockPlan
      contextRef="i59a8ed6a2a594867a81dd546c18abfd8_D20190101-20190630"
      decimals="3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RleHRyZWdpb246Y2NlMjNiYWJmMGI4NGM1Y2I3OTU5NzMwOTBjYTcyMWJfMjQzMA_52016944-ce53-40bc-9054-46544a89fb8d"
      unitRef="number">0.040</mgnx:PercentageOfSharesOfCompanysCommonStockOutstandingForIncreaseInSharesReservedForIssuanceUnderStockPlan>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized
      contextRef="if64283b5893c485cb40278f00607e31b_I20190630"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RleHRyZWdpb246Y2NlMjNiYWJmMGI4NGM1Y2I3OTU5NzMwOTBjYTcyMWJfMjc3Mg_dac05357-fafe-4ff6-a6ca-25c6be2bcd09"
      unitRef="shares">9938263</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber
      contextRef="if64283b5893c485cb40278f00607e31b_I20190630"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RleHRyZWdpb246Y2NlMjNiYWJmMGI4NGM1Y2I3OTU5NzMwOTBjYTcyMWJfMzM0OA_827f8789-14d4-486f-9834-be15d5c6cd9f"
      unitRef="shares">6181599</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice
      contextRef="if64283b5893c485cb40278f00607e31b_I20190630"
      decimals="2"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RleHRyZWdpb246Y2NlMjNiYWJmMGI4NGM1Y2I3OTU5NzMwOTBjYTcyMWJfMzQyNg_37344692-c75a-4e66-9e50-2858bbe9711e"
      unitRef="usdPerShare">24.42</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice>
    <us-gaap:ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTextBlock
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RleHRyZWdpb246Y2NlMjNiYWJmMGI4NGM1Y2I3OTU5NzMwOTBjYTcyMWJfNDYwNA_63fdc07b-4621-463d-897a-957f7b41bd97">&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The following stock-based compensation expense was recognized for the periods indicated (in thousands):&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;table style="margin-left:auto;margin-right:auto;border-collapse:collapse;text-align:left;text-indent:0pt;display:inline-table;width:97.953216%;"&gt;&lt;tr&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:33.223881%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:13.970149%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.143284%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:12.776119%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:2.635821%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:12.328358%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.143284%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:12.179104%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#ee2724;background-color:rgb(255,255,255, 0.0);"/&gt;&lt;/td&gt;&lt;td colspan="9" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Three Months Ended June 30,&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="9" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Six Months Ended June 30,&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2019&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2018&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2019&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2018&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Research and development&lt;/span&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2,453&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;1,989&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;4,267&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;3,689&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;General and administrative&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2,431&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2,174&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;4,416&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;3,906&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Total stock-based compensation expense&lt;/span&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;4,884&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;4,163&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;8,683&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;border-bottom:3pt double #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;7,595&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;</us-gaap:ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTextBlock>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="i24bbcd11fb3f4b51afbc4b8671847efa_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOjYyZWFkMTFmMGZmMjRhZWU5MjQwMGI5MGQ0YTJkN2I2L3RhYmxlcmFuZ2U6NjJlYWQxMWYwZmYyNGFlZTkyNDAwYjkwZDRhMmQ3YjZfMi0xLTEtMS0w_098f1ea6-2999-4252-909e-c1b6df753d39"
      unitRef="usd">2453000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="i1affa01892214036a0d16e7911117f74_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOjYyZWFkMTFmMGZmMjRhZWU5MjQwMGI5MGQ0YTJkN2I2L3RhYmxlcmFuZ2U6NjJlYWQxMWYwZmYyNGFlZTkyNDAwYjkwZDRhMmQ3YjZfMi0zLTEtMS0w_6358a86a-67d3-44bf-82ed-c332323fde75"
      unitRef="usd">1989000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="i1548ddc51ece4c889fc99492213e9016_D20180101-20180930"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOjYyZWFkMTFmMGZmMjRhZWU5MjQwMGI5MGQ0YTJkN2I2L3RhYmxlcmFuZ2U6NjJlYWQxMWYwZmYyNGFlZTkyNDAwYjkwZDRhMmQ3YjZfMi01LTEtMS0w_2f7f4796-c62e-42d2-9e5a-22416a607bab"
      unitRef="usd">4267000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="iac718c56e0024863a5e6f80b7a7af28a_D20170101-20170930"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOjYyZWFkMTFmMGZmMjRhZWU5MjQwMGI5MGQ0YTJkN2I2L3RhYmxlcmFuZ2U6NjJlYWQxMWYwZmYyNGFlZTkyNDAwYjkwZDRhMmQ3YjZfMi03LTEtMS0w_e00ed038-0b6b-497f-be3b-d5ee543f036b"
      unitRef="usd">3689000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="iec2989738c5949cd938c8d8072f091a1_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOjYyZWFkMTFmMGZmMjRhZWU5MjQwMGI5MGQ0YTJkN2I2L3RhYmxlcmFuZ2U6NjJlYWQxMWYwZmYyNGFlZTkyNDAwYjkwZDRhMmQ3YjZfMy0xLTEtMS0w_092b26e7-ea00-4618-a614-5fd3d05ea5b3"
      unitRef="usd">2431000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="i93ac4ae63b3b47ae82751e7cecda08e4_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOjYyZWFkMTFmMGZmMjRhZWU5MjQwMGI5MGQ0YTJkN2I2L3RhYmxlcmFuZ2U6NjJlYWQxMWYwZmYyNGFlZTkyNDAwYjkwZDRhMmQ3YjZfMy0zLTEtMS0w_8eb18f15-d09a-406a-92a9-c301c2947414"
      unitRef="usd">2174000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="ic0d2cb45c1214ccaa9fb72ed58f739d2_D20180101-20180930"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOjYyZWFkMTFmMGZmMjRhZWU5MjQwMGI5MGQ0YTJkN2I2L3RhYmxlcmFuZ2U6NjJlYWQxMWYwZmYyNGFlZTkyNDAwYjkwZDRhMmQ3YjZfMy01LTEtMS0w_f42bac49-a5ae-48f7-abfc-3f447d47c1ab"
      unitRef="usd">4416000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:AllocatedShareBasedCompensationExpense
      contextRef="i4c5408c96c3646ebaaee7d2cba65d7a3_D20170101-20170930"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOjYyZWFkMTFmMGZmMjRhZWU5MjQwMGI5MGQ0YTJkN2I2L3RhYmxlcmFuZ2U6NjJlYWQxMWYwZmYyNGFlZTkyNDAwYjkwZDRhMmQ3YjZfMy03LTEtMS0w_ca8db8e4-4b69-44d4-afbb-b8e871c8cb00"
      unitRef="usd">3906000</us-gaap:AllocatedShareBasedCompensationExpense>
    <us-gaap:ShareBasedCompensation
      contextRef="i109c6dbc0d494accadbd5c861b8512d5_D20190401-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOjYyZWFkMTFmMGZmMjRhZWU5MjQwMGI5MGQ0YTJkN2I2L3RhYmxlcmFuZ2U6NjJlYWQxMWYwZmYyNGFlZTkyNDAwYjkwZDRhMmQ3YjZfNC0xLTEtMS0w_3597b8c8-ebd6-4445-9542-49eba122f26f"
      unitRef="usd">4884000</us-gaap:ShareBasedCompensation>
    <us-gaap:ShareBasedCompensation
      contextRef="i81a0c702f2dc49eaa9cd1000fbc3825a_D20180401-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOjYyZWFkMTFmMGZmMjRhZWU5MjQwMGI5MGQ0YTJkN2I2L3RhYmxlcmFuZ2U6NjJlYWQxMWYwZmYyNGFlZTkyNDAwYjkwZDRhMmQ3YjZfNC0zLTEtMS0w_239d89ad-ae0e-472d-8a0e-60ac39a3a633"
      unitRef="usd">4163000</us-gaap:ShareBasedCompensation>
    <us-gaap:ShareBasedCompensation
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOjYyZWFkMTFmMGZmMjRhZWU5MjQwMGI5MGQ0YTJkN2I2L3RhYmxlcmFuZ2U6NjJlYWQxMWYwZmYyNGFlZTkyNDAwYjkwZDRhMmQ3YjZfNC01LTEtMS0w_f930b624-14f9-4a77-bcae-1536e4334800"
      unitRef="usd">8683000</us-gaap:ShareBasedCompensation>
    <us-gaap:ShareBasedCompensation
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOjYyZWFkMTFmMGZmMjRhZWU5MjQwMGI5MGQ0YTJkN2I2L3RhYmxlcmFuZ2U6NjJlYWQxMWYwZmYyNGFlZTkyNDAwYjkwZDRhMmQ3YjZfNC03LTEtMS0w_8d7fc3a3-3eda-4c7e-ada4-f10b0f78c0dc"
      unitRef="usd">7595000</us-gaap:ShareBasedCompensation>
    <us-gaap:ScheduleOfShareBasedPaymentAwardStockOptionsValuationAssumptionsTableTextBlock
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RleHRyZWdpb246Y2NlMjNiYWJmMGI4NGM1Y2I3OTU5NzMwOTBjYTcyMWJfNDYwNg_ddc3ce23-5fef-4f73-b40c-1011f41f2c95">&lt;div style="text-indent:36pt;margin-top:15pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The fair value of each option award is estimated on the date of grant using the Black-Scholes option-pricing model using the assumptions in the following table for options issued during the period indicated:&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;table style="margin-left:auto;margin-right:auto;border-collapse:collapse;text-align:left;text-indent:0pt;display:inline-table;width:99.561404%;"&gt;&lt;tr&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:63.491924%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:15.767988%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.534214%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:14.005874%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="9" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Six Months Ended June 30,&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;td colspan="3" style="display:none;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2019&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2018&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Expected dividend yield&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:0%;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;0%&#160;&lt;/span&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:center;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:0%;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;0%&#160;&lt;/span&gt;&lt;/td&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Expected volatility&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;73.7% - 75.3%&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;67.8% - 72.2%&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Risk-free interest rate&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;1.9% - 2.6%&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;2.4% - 3.1%&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Expected term&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;6.25 years&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;6.25 years&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;</us-gaap:ScheduleOfShareBasedPaymentAwardStockOptionsValuationAssumptionsTableTextBlock>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOmU0YmVkMGZhMTVhNjQ5NTA4OGUyNDUwMDgxMDI5M2RkL3RhYmxlcmFuZ2U6ZTRiZWQwZmExNWE2NDk1MDg4ZTI0NTAwODEwMjkzZGRfMi0xLTEtMS0w_42795d9c-c265-4ff9-9b5e-9663ae2161b6"
      unitRef="number">0</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOmU0YmVkMGZhMTVhNjQ5NTA4OGUyNDUwMDgxMDI5M2RkL3RhYmxlcmFuZ2U6ZTRiZWQwZmExNWE2NDk1MDg4ZTI0NTAwODEwMjkzZGRfMi0zLTEtMS0w_8380ac1f-9c91-4e7a-bd09-d15d967bb167"
      unitRef="number">0</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate>
    <us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOmU0YmVkMGZhMTVhNjQ5NTA4OGUyNDUwMDgxMDI5M2RkL3RhYmxlcmFuZ2U6ZTRiZWQwZmExNWE2NDk1MDg4ZTI0NTAwODEwMjkzZGRfNS0xLTEtMS0w_0e5c685c-af70-4e85-99ba-ab242afae3c9">P6Y3M</us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1>
    <us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1
      contextRef="i8b4924fb16b24370ac2df2586bc40c77_D20180101-20180630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOmU0YmVkMGZhMTVhNjQ5NTA4OGUyNDUwMDgxMDI5M2RkL3RhYmxlcmFuZ2U6ZTRiZWQwZmExNWE2NDk1MDg4ZTI0NTAwODEwMjkzZGRfNS0zLTEtMS0w_257d133f-8c40-4d92-8299-fe21b24ab5c8">P6Y3M</us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1>
    <mgnx:ScheduleOfShareBasedCompensationStockOptionsAndRestrictedStockUnitsActivityTableTextBlock
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RleHRyZWdpb246Y2NlMjNiYWJmMGI4NGM1Y2I3OTU5NzMwOTBjYTcyMWJfNDYwOA_163434a4-fe8b-429b-9efb-2a688fbb8bcf">&lt;div style="text-indent:36pt;margin-bottom:9pt;"&gt;&lt;span style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:Times New Roman;font-size:10pt;font-weight:400;line-height:120%;"&gt;The following table summarizes stock option activity during the six months ended June&#160;30, 2019:&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:9pt;"&gt;&lt;table style="margin-left:auto;margin-right:auto;border-collapse:collapse;text-align:left;text-indent:0pt;display:inline-table;width:99.415205%;"&gt;&lt;tr&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:26.970588%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:15.205882%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.535294%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:15.205882%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.535294%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:15.205882%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:0.535294%;"/&gt;&lt;td style="width:0.1%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;td style="width:15.205882%;"/&gt;&lt;td style="width:1.0%;"/&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Shares&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Weighted-&lt;br/&gt;Average&lt;br/&gt;Exercise Price&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Weighted-Average&lt;br/&gt;Remaining&lt;br/&gt;Contractual Term&lt;br/&gt;(Years)&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:center;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:700;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Aggregate&lt;br/&gt;Intrinsic&lt;br/&gt;Value&lt;br/&gt; (in thousands)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Outstanding, December 31, 2018&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;5,273,964&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;22.23&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;6.8&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:top;padding-left:7pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Granted&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;1,796,645&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;21.42&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"/&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:top;padding-left:7pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Exercised&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;(189,428)&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;3.25&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"/&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:top;padding-left:7pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Forfeited or expired&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;(119,392)&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;23.74&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"/&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Outstanding, June 30, 2019&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;border-top:1pt solid #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;6,761,789&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;22.52&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;7.3&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;$&lt;/span&gt;&lt;/td&gt;&lt;td colspan="2" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;8,883&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#ffffff;text-align:left;vertical-align:top;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;As of June 30, 2019:&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;border-top:3pt double #000000;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"/&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"/&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"/&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:left;vertical-align:top;padding-left:7pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Exercisable&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;3,722,761&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;21.92&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;5.9&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#cceeff;text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:#cceeff;text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;8,850&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:top;padding-left:7pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;Vested and expected to vest&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;6,461,922&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;22.46&#160;&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;7.2&lt;/span&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:rgb(255,255,255, 0.0);text-align:left;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"/&gt;&lt;td colspan="3" style="padding-top:2px;padding-bottom:2px;background-color:rgb(255,255,255, 0.0);text-align:right;vertical-align:bottom;padding-left:1pt;padding-right:1pt;"&gt;&lt;span style="font-size:10pt;font-weight:400;font-family:Times New Roman;color:#000000;background-color:rgb(255,255,255, 0.0);"&gt;8,880&#160;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;</mgnx:ScheduleOfShareBasedCompensationStockOptionsAndRestrictedStockUnitsActivityTableTextBlock>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOmY0N2EzMTUzNWMyODRhMjZiYmVkMDg5NDgzOGQ5ZmE2L3RhYmxlcmFuZ2U6ZjQ3YTMxNTM1YzI4NGEyNmJiZWQwODk0ODM4ZDlmYTZfMS0xLTEtMS0w_a3efc3cf-8c7f-47c7-99e7-a0ab76266ae8"
      unitRef="shares">5273964</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice
      contextRef="if499736c9d5d45c184a839b5e9e101d1_I20181231"
      decimals="2"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOmY0N2EzMTUzNWMyODRhMjZiYmVkMDg5NDgzOGQ5ZmE2L3RhYmxlcmFuZ2U6ZjQ3YTMxNTM1YzI4NGEyNmJiZWQwODk0ODM4ZDlmYTZfMS0zLTEtMS0w_fe4c9cff-f27f-4faf-add9-421245558702"
      unitRef="usdPerShare">22.23</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice>
    <us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2
      contextRef="id50631a343b3422595cb9b1d77d35ce9_D20190101-20190331"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOmY0N2EzMTUzNWMyODRhMjZiYmVkMDg5NDgzOGQ5ZmE2L3RhYmxlcmFuZ2U6ZjQ3YTMxNTM1YzI4NGEyNmJiZWQwODk0ODM4ZDlmYTZfMS01LTEtMS0w_13206ee8-02e3-4445-9339-a231f00f6f40">P6Y9M18D</us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOmY0N2EzMTUzNWMyODRhMjZiYmVkMDg5NDgzOGQ5ZmE2L3RhYmxlcmFuZ2U6ZjQ3YTMxNTM1YzI4NGEyNmJiZWQwODk0ODM4ZDlmYTZfMi0xLTEtMS0w_7998c8b5-edaf-4e27-a725-3e28590d09a6"
      unitRef="shares">1796645</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod>
    <us-gaap:ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="2"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOmY0N2EzMTUzNWMyODRhMjZiYmVkMDg5NDgzOGQ5ZmE2L3RhYmxlcmFuZ2U6ZjQ3YTMxNTM1YzI4NGEyNmJiZWQwODk0ODM4ZDlmYTZfMi0zLTEtMS0w_dfa42bdc-b63a-495a-87e2-9225e96a0d0e"
      unitRef="usdPerShare">21.42</us-gaap:ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice>
    <us-gaap:StockIssuedDuringPeriodSharesStockOptionsExercised
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOmY0N2EzMTUzNWMyODRhMjZiYmVkMDg5NDgzOGQ5ZmE2L3RhYmxlcmFuZ2U6ZjQ3YTMxNTM1YzI4NGEyNmJiZWQwODk0ODM4ZDlmYTZfMy0xLTEtMS0w_ff0a509a-6e07-4147-867a-f43e83751b22"
      unitRef="shares">189428</us-gaap:StockIssuedDuringPeriodSharesStockOptionsExercised>
    <us-gaap:ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="2"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOmY0N2EzMTUzNWMyODRhMjZiYmVkMDg5NDgzOGQ5ZmE2L3RhYmxlcmFuZ2U6ZjQ3YTMxNTM1YzI4NGEyNmJiZWQwODk0ODM4ZDlmYTZfMy0zLTEtMS0w_ed8f91c7-36b2-41ce-a750-862519447a0c"
      unitRef="usdPerShare">3.25</us-gaap:ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOmY0N2EzMTUzNWMyODRhMjZiYmVkMDg5NDgzOGQ5ZmE2L3RhYmxlcmFuZ2U6ZjQ3YTMxNTM1YzI4NGEyNmJiZWQwODk0ODM4ZDlmYTZfNC0xLTEtMS0w_79da22be-03e2-46f3-8520-a7342593c104"
      unitRef="shares">119392</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod>
    <us-gaap:ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="2"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOmY0N2EzMTUzNWMyODRhMjZiYmVkMDg5NDgzOGQ5ZmE2L3RhYmxlcmFuZ2U6ZjQ3YTMxNTM1YzI4NGEyNmJiZWQwODk0ODM4ZDlmYTZfNC0zLTEtMS0w_fe2a6585-87cc-4927-a309-d7e97977c253"
      unitRef="usdPerShare">23.74</us-gaap:ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOmY0N2EzMTUzNWMyODRhMjZiYmVkMDg5NDgzOGQ5ZmE2L3RhYmxlcmFuZ2U6ZjQ3YTMxNTM1YzI4NGEyNmJiZWQwODk0ODM4ZDlmYTZfNS0xLTEtMS0w_d96c65e4-80ed-4bc0-b99e-3307010508ef"
      unitRef="shares">6761789</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="2"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOmY0N2EzMTUzNWMyODRhMjZiYmVkMDg5NDgzOGQ5ZmE2L3RhYmxlcmFuZ2U6ZjQ3YTMxNTM1YzI4NGEyNmJiZWQwODk0ODM4ZDlmYTZfNS0zLTEtMS0w_acba88da-77cd-44b0-b7c8-2a98221bfb7c"
      unitRef="usdPerShare">22.52</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice>
    <us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOmY0N2EzMTUzNWMyODRhMjZiYmVkMDg5NDgzOGQ5ZmE2L3RhYmxlcmFuZ2U6ZjQ3YTMxNTM1YzI4NGEyNmJiZWQwODk0ODM4ZDlmYTZfNS01LTEtMS0w_1eb81070-0086-4ecf-ab9d-aaf6232b7c2b">P7Y3M18D</us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOmY0N2EzMTUzNWMyODRhMjZiYmVkMDg5NDgzOGQ5ZmE2L3RhYmxlcmFuZ2U6ZjQ3YTMxNTM1YzI4NGEyNmJiZWQwODk0ODM4ZDlmYTZfNS03LTEtMS0w_762b7ed5-4d77-4e82-8dae-0e62b76f90b1"
      unitRef="usd">8883000</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOmY0N2EzMTUzNWMyODRhMjZiYmVkMDg5NDgzOGQ5ZmE2L3RhYmxlcmFuZ2U6ZjQ3YTMxNTM1YzI4NGEyNmJiZWQwODk0ODM4ZDlmYTZfNy0xLTEtMS0w_10340914-bdcc-440c-8b5d-544863868b9c"
      unitRef="shares">3722761</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="2"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOmY0N2EzMTUzNWMyODRhMjZiYmVkMDg5NDgzOGQ5ZmE2L3RhYmxlcmFuZ2U6ZjQ3YTMxNTM1YzI4NGEyNmJiZWQwODk0ODM4ZDlmYTZfNy0zLTEtMS0w_141e45f2-0426-4db3-a12b-2ea00fe555c7"
      unitRef="usdPerShare">21.92</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice>
    <us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOmY0N2EzMTUzNWMyODRhMjZiYmVkMDg5NDgzOGQ5ZmE2L3RhYmxlcmFuZ2U6ZjQ3YTMxNTM1YzI4NGEyNmJiZWQwODk0ODM4ZDlmYTZfNy01LTEtMS0w_c06f8783-8370-46c8-b09f-c3472c55eea6">P5Y10M24D</us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1>
    <us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOmY0N2EzMTUzNWMyODRhMjZiYmVkMDg5NDgzOGQ5ZmE2L3RhYmxlcmFuZ2U6ZjQ3YTMxNTM1YzI4NGEyNmJiZWQwODk0ODM4ZDlmYTZfNy03LTEtMS0w_9e9c2c33-29a6-4ab9-965c-e71a63a22a87"
      unitRef="usd">8850000</us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOmY0N2EzMTUzNWMyODRhMjZiYmVkMDg5NDgzOGQ5ZmE2L3RhYmxlcmFuZ2U6ZjQ3YTMxNTM1YzI4NGEyNmJiZWQwODk0ODM4ZDlmYTZfOC0xLTEtMS0w_fcbcdaf1-0b14-464a-8944-2b76f50f8ca3"
      unitRef="shares">6461922</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="2"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOmY0N2EzMTUzNWMyODRhMjZiYmVkMDg5NDgzOGQ5ZmE2L3RhYmxlcmFuZ2U6ZjQ3YTMxNTM1YzI4NGEyNmJiZWQwODk0ODM4ZDlmYTZfOC0zLTEtMS0w_026d5ba9-e19a-4745-a098-69d8563283c2"
      unitRef="usdPerShare">22.46</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice>
    <us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOmY0N2EzMTUzNWMyODRhMjZiYmVkMDg5NDgzOGQ5ZmE2L3RhYmxlcmFuZ2U6ZjQ3YTMxNTM1YzI4NGEyNmJiZWQwODk0ODM4ZDlmYTZfOC01LTEtMS0w_e5af2ee0-ec15-41f7-a38b-dda4552f25b0">P7Y2M12D</us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-3"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RhYmxlOmY0N2EzMTUzNWMyODRhMjZiYmVkMDg5NDgzOGQ5ZmE2L3RhYmxlcmFuZ2U6ZjQ3YTMxNTM1YzI4NGEyNmJiZWQwODk0ODM4ZDlmYTZfOC03LTEtMS0w_cdb7835d-40d1-4ea0-934a-1e9926e1b3bd"
      unitRef="usd">8880000</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="2"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RleHRyZWdpb246Y2NlMjNiYWJmMGI4NGM1Y2I3OTU5NzMwOTBjYTcyMWJfMzk2NQ_639865f6-146c-4684-8550-ab8f27b461fd"
      unitRef="usdPerShare">14.38</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue
      contextRef="i81a0c702f2dc49eaa9cd1000fbc3825a_D20180401-20180630"
      decimals="2"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RleHRyZWdpb246Y2NlMjNiYWJmMGI4NGM1Y2I3OTU5NzMwOTBjYTcyMWJfMzk3Mg_dfb81c3a-a68b-43ab-b465-43bfff989a05"
      unitRef="usdPerShare">18.29</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RleHRyZWdpb246Y2NlMjNiYWJmMGI4NGM1Y2I3OTU5NzMwOTBjYTcyMWJfNDA5Mg_baff069d-52b6-4163-869a-d5eef138a9c6"
      unitRef="usd">2600000</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue>
    <us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue
      contextRef="i81a0c702f2dc49eaa9cd1000fbc3825a_D20180401-20180630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RleHRyZWdpb246Y2NlMjNiYWJmMGI4NGM1Y2I3OTU5NzMwOTBjYTcyMWJfNDA5OQ_c81217d4-c80f-4814-a161-40720a6aed4a"
      unitRef="usd">3700000</us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue>
    <us-gaap:ProceedsFromStockOptionsExercised
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RleHRyZWdpb246Y2NlMjNiYWJmMGI4NGM1Y2I3OTU5NzMwOTBjYTcyMWJfNDIxOQ_98c21e29-2161-4a98-bb5b-2bf2316a0e58"
      unitRef="usd">600000</us-gaap:ProceedsFromStockOptionsExercised>
    <us-gaap:ProceedsFromStockOptionsExercised
      contextRef="i81a0c702f2dc49eaa9cd1000fbc3825a_D20180401-20180630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RleHRyZWdpb246Y2NlMjNiYWJmMGI4NGM1Y2I3OTU5NzMwOTBjYTcyMWJfNDIyNg_d486a8d6-1fe4-4e2c-beb3-500cc95309bc"
      unitRef="usd">700000</us-gaap:ProceedsFromStockOptionsExercised>
    <us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RleHRyZWdpb246Y2NlMjNiYWJmMGI4NGM1Y2I3OTU5NzMwOTBjYTcyMWJfNDMzMw_b7134011-8349-40d4-a87d-be574c116d86"
      unitRef="usd">6500000</us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1>
    <us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1
      contextRef="i81a0c702f2dc49eaa9cd1000fbc3825a_D20180401-20180630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RleHRyZWdpb246Y2NlMjNiYWJmMGI4NGM1Y2I3OTU5NzMwOTBjYTcyMWJfNDM0MA_d5f4f1d1-153c-47ad-af34-e68e17cf39e7"
      unitRef="usd">6300000</us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1>
    <us-gaap:EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized
      contextRef="i08b1a80001d4441fb7fd6603b0db4163_I20190630"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RleHRyZWdpb246Y2NlMjNiYWJmMGI4NGM1Y2I3OTU5NzMwOTBjYTcyMWJfNDUwNA_f9e96639-2d80-4c4f-91af-c0d99016935a"
      unitRef="usd">38700000</us-gaap:EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized>
    <us-gaap:EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN181NS9mcmFnOmNjZTIzYmFiZjBiODRjNWNiNzk1OTczMDkwY2E3MjFiL3RleHRyZWdpb246Y2NlMjNiYWJmMGI4NGM1Y2I3OTU5NzMwOTBjYTcyMWJfNDU5NQ_b841de9a-1ecf-4755-b936-e40bfc5a7d71">P2Y10M24D</us-gaap:EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1>
    <us-gaap:SubsequentEventsTextBlock
      contextRef="i42e434e5df7b48f0875fc9e36cbdea7d_D20190101-20190630"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180OTMvZnJhZzozMjA2ZGY2ZDNmZmY0ODJjYmNjYzhjMjA3ZDJiMzhmMy90ZXh0cmVnaW9uOjMyMDZkZjZkM2ZmZjQ4MmNiY2NjOGMyMDdkMmIzOGYzXzU0OTc1NTgxNDAzNzI_65ba3096-a774-4e4e-8d3a-266a2729e043">Subsequent EventOn July 9, 2019, the Company entered into a collaboration and license agreement with I-Mab Biopharma (I-Mab), a China and U.S.-based clinical-stage biopharmaceutical company, to develop and commercialize enoblituzumab.  The Company will receive an upfront payment of $15.0 million in connection with the collaboration.  Assuming successful development and commercialization, the Company will also be eligible to receive additional development and regulatory milestone payments of up to $135.0 million. In addition, I-Mab will pay tiered double-digit royalties (ranging from mid-teens to twenty percent) based on annual net sales in its territories.</us-gaap:SubsequentEventsTextBlock>
    <mgnx:NonRefundableUpfrontFees
      contextRef="ifc30de328551458d8a2319cec37d3d19_D20190709-20190709"
      decimals="-5"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180OTMvZnJhZzozMjA2ZGY2ZDNmZmY0ODJjYmNjYzhjMjA3ZDJiMzhmMy90ZXh0cmVnaW9uOjMyMDZkZjZkM2ZmZjQ4MmNiY2NjOGMyMDdkMmIzOGYzXzU0OTc1NTgxNDAzNjM_780f255d-f86a-48e7-926a-642ca5a1157a"
      unitRef="usd">15000000.0</mgnx:NonRefundableUpfrontFees>
    <mgnx:PotentialDevelopmentandRegulatoryMilestonePaymentsUnderAgreement
      contextRef="i197c1828301241e0a1c5f4ddd4d82f8d_I20190709"
      decimals="INF"
      id="id3VybDovL2RvY3MudjEvZG9jOjI3NjViYjBhYjMwMTRlNzRiZTU0NjgxNGVkNTNiNmM3L3NlYzoyNzY1YmIwYWIzMDE0ZTc0YmU1NDY4MTRlZDUzYjZjN180OTMvZnJhZzozMjA2ZGY2ZDNmZmY0ODJjYmNjYzhjMjA3ZDJiMzhmMy90ZXh0cmVnaW9uOjMyMDZkZjZkM2ZmZjQ4MmNiY2NjOGMyMDdkMmIzOGYzXzU0OTc1NTgxNDAzNzE_567580ff-3c57-4a17-bf14-d931f8a7e820"
      unitRef="usd">135000000.0</mgnx:PotentialDevelopmentandRegulatoryMilestonePaymentsUnderAgreement>
</xbrl>
