2.4.0.8147 - Disclosure - Fair Value Measurements - Assets and Liabilities Measured at Fair Value on Recurring Basis (Detail)truefalseIn Thousands, unless otherwise specifiedfalse1falseUSDfalsefalse$eol_PE672432--1310-Q0006_STD_0_20130630_0http://www.sec.gov/CIK0001325702instant2013-06-30T00:00:000001-01-01T00:00:00iso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$1true4us-gaap_LiabilitiesAbstractus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse02false5us-gaap_DerivativeLiabilitiesCurrentus-gaap_truecreditinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse1024700010247USD$falsetruefalsexbrli:monetaryItemTypemonetaryFair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset, expected to be settled within one year or normal operating cycle, if longer. Includes assets not subject to a master netting arrangement and not elected to be offset.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Glossary Current Liabilities
-URI http://asc.fasb.org/extlink&oid=6509677
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 825
-SubTopic 10
-Section 50
-Paragraph 10
-Subparagraph (a)
-URI http://asc.fasb.org/extlink&oid=28364263&loc=d3e13433-108611
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 815
-SubTopic 10
-Section 45
-Paragraph 5
-URI http://asc.fasb.org/extlink&oid=6945355&loc=d3e41228-113958
Reference 4: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 825
-SubTopic 10
-Section 50
-Paragraph 15
-URI http://asc.fasb.org/extlink&oid=28364263&loc=d3e13495-108611
Reference 5: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 210
-SubTopic 20
-Section 50
-Paragraph 3
-Subparagraph (c)
-URI http://asc.fasb.org/extlink&oid=20225523&loc=SL20225862-175312
Reference 6: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 815
-SubTopic 10
-Section 45
-Paragraph 6
-URI http://asc.fasb.org/extlink&oid=6945355&loc=d3e41271-113958
false23false0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse2falseUSDtruefalse$eol_PE672432--1310-Q0006_STD_0_20130630_0_925245x931243_928472x926284http://www.sec.gov/CIK0001325702instant2013-06-30T00:00:000001-01-01T00:00:00falsefalseAssets And Liabilities Measured at Fair Value on Recurring Basis [Member]us-gaap_FairValueByMeasurementFrequencyAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_FairValueMeasurementsRecurringMemberus-gaap_FairValueByMeasurementFrequencyAxisexplicitMemberfalsefalseCarrying Value [Member]us-gaap_FairValueByMeasurementBasisAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_CarryingReportedAmountFairValueDisclosureMemberus-gaap_FairValueByMeasurementBasisAxisexplicitMemberiso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse04true4us-gaap_AssetsAbstractus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse05false5us-gaap_AvailableForSaleSecuritiesus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse10270001027USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of investment in debt and equity securities categorized neither as held-to-maturity nor trading.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 25
-Paragraph 1
-Subparagraph (b)
-URI http://asc.fasb.org/extlink&oid=28360136&loc=d3e22054-111558
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 50
-Paragraph 5
-Subparagraph (aa)
-URI http://asc.fasb.org/extlink&oid=27724398&loc=d3e27232-111563
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 45
-Paragraph 1
-URI http://asc.fasb.org/extlink&oid=6871852&loc=d3e26610-111562
false26false5mx_OtherCurrentAssetmx_falsedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse117000117USD$falsefalsefalsexbrli:monetaryItemTypemonetaryOther Current AssetNo definition available.false27true4us-gaap_LiabilitiesAbstractus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse08false5us-gaap_DerivativeLiabilitiesCurrentus-gaap_truecreditinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse1024700010247USD$falsefalsefalsexbrli:monetaryItemTypemonetaryFair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset, expected to be settled within one year or normal operating cycle, if longer. Includes assets not subject to a master netting arrangement and not elected to be offset.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Glossary Current Liabilities
-URI http://asc.fasb.org/extlink&oid=6509677
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 825
-SubTopic 10
-Section 50
-Paragraph 10
-Subparagraph (a)
-URI http://asc.fasb.org/extlink&oid=28364263&loc=d3e13433-108611
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 815
-SubTopic 10
-Section 45
-Paragraph 5
-URI http://asc.fasb.org/extlink&oid=6945355&loc=d3e41228-113958
Reference 4: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 825
-SubTopic 10
-Section 50
-Paragraph 15
-URI http://asc.fasb.org/extlink&oid=28364263&loc=d3e13495-108611
Reference 5: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 210
-SubTopic 20
-Section 50
-Paragraph 3
-Subparagraph (c)
-URI http://asc.fasb.org/extlink&oid=20225523&loc=SL20225862-175312
Reference 6: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 815
-SubTopic 10
-Section 45
-Paragraph 6
-URI http://asc.fasb.org/extlink&oid=6945355&loc=d3e41271-113958
false29false5us-gaap_DerivativeLiabilitiesNoncurrentus-gaap_truecreditinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse16040001604USD$falsefalsefalsexbrli:monetaryItemTypemonetaryFair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset, expected to be settled after one year or the normal operating cycle, if longer. Includes assets not subject to a master netting arrangement and not elected to be offset.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 825
-SubTopic 10
-Section 50
-Paragraph 10
-Subparagraph (a)
-URI http://asc.fasb.org/extlink&oid=28364263&loc=d3e13433-108611
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 815
-SubTopic 10
-Section 45
-Paragraph 5
-URI http://asc.fasb.org/extlink&oid=6945355&loc=d3e41228-113958
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 825
-SubTopic 10
-Section 50
-Paragraph 15
-URI http://asc.fasb.org/extlink&oid=28364263&loc=d3e13495-108611
Reference 4: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 210
-SubTopic 20
-Section 50
-Paragraph 3
-Subparagraph (c)
-URI http://asc.fasb.org/extlink&oid=20225523&loc=SL20225862-175312
Reference 5: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 815
-SubTopic 10
-Section 45
-Paragraph 6
-URI http://asc.fasb.org/extlink&oid=6945355&loc=d3e41271-113958
false210false0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse3falseUSDtruefalse$eol_PE672432--1310-Q0006_STD_0_20130630_0_925245x926586_928472x926284http://www.sec.gov/CIK0001325702instant2013-06-30T00:00:000001-01-01T00:00:00falsefalseAssets And Liabilities Measured at Fair Value on Recurring Basis [Member]us-gaap_FairValueByMeasurementFrequencyAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_FairValueMeasurementsRecurringMemberus-gaap_FairValueByMeasurementFrequencyAxisexplicitMemberfalsefalseFair Value Measurement [Member]us-gaap_FairValueByMeasurementBasisAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_PortionAtFairValueFairValueDisclosureMemberus-gaap_FairValueByMeasurementBasisAxisexplicitMemberiso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse011true4us-gaap_AssetsAbstractus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse012false5us-gaap_AvailableForSaleSecuritiesus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse10270001027USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of investment in debt and equity securities categorized neither as held-to-maturity nor trading.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 25
-Paragraph 1
-Subparagraph (b)
-URI http://asc.fasb.org/extlink&oid=28360136&loc=d3e22054-111558
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 50
-Paragraph 5
-Subparagraph (aa)
-URI http://asc.fasb.org/extlink&oid=27724398&loc=d3e27232-111563
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 45
-Paragraph 1
-URI http://asc.fasb.org/extlink&oid=6871852&loc=d3e26610-111562
false213false5mx_OtherCurrentAssetmx_falsedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse117000117USD$falsefalsefalsexbrli:monetaryItemTypemonetaryOther Current AssetNo definition available.false214true4us-gaap_LiabilitiesAbstractus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse015false5us-gaap_DerivativeLiabilitiesCurrentus-gaap_truecreditinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse1024700010247USD$falsefalsefalsexbrli:monetaryItemTypemonetaryFair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset, expected to be settled within one year or normal operating cycle, if longer. Includes assets not subject to a master netting arrangement and not elected to be offset.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Glossary Current Liabilities
-URI http://asc.fasb.org/extlink&oid=6509677
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 825
-SubTopic 10
-Section 50
-Paragraph 10
-Subparagraph (a)
-URI http://asc.fasb.org/extlink&oid=28364263&loc=d3e13433-108611
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 815
-SubTopic 10
-Section 45
-Paragraph 5
-URI http://asc.fasb.org/extlink&oid=6945355&loc=d3e41228-113958
Reference 4: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 825
-SubTopic 10
-Section 50
-Paragraph 15
-URI http://asc.fasb.org/extlink&oid=28364263&loc=d3e13495-108611
Reference 5: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 210
-SubTopic 20
-Section 50
-Paragraph 3
-Subparagraph (c)
-URI http://asc.fasb.org/extlink&oid=20225523&loc=SL20225862-175312
Reference 6: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 815
-SubTopic 10
-Section 45
-Paragraph 6
-URI http://asc.fasb.org/extlink&oid=6945355&loc=d3e41271-113958
false216false5us-gaap_DerivativeLiabilitiesNoncurrentus-gaap_truecreditinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse16040001604USD$falsefalsefalsexbrli:monetaryItemTypemonetaryFair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset, expected to be settled after one year or the normal operating cycle, if longer. Includes assets not subject to a master netting arrangement and not elected to be offset.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 825
-SubTopic 10
-Section 50
-Paragraph 10
-Subparagraph (a)
-URI http://asc.fasb.org/extlink&oid=28364263&loc=d3e13433-108611
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 815
-SubTopic 10
-Section 45
-Paragraph 5
-URI http://asc.fasb.org/extlink&oid=6945355&loc=d3e41228-113958
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 825
-SubTopic 10
-Section 50
-Paragraph 15
-URI http://asc.fasb.org/extlink&oid=28364263&loc=d3e13495-108611
Reference 4: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 210
-SubTopic 20
-Section 50
-Paragraph 3
-Subparagraph (c)
-URI http://asc.fasb.org/extlink&oid=20225523&loc=SL20225862-175312
Reference 5: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 815
-SubTopic 10
-Section 45
-Paragraph 6
-URI http://asc.fasb.org/extlink&oid=6945355&loc=d3e41271-113958
false217false0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse4falseUSDtruefalse$eol_PE672432--1310-Q0006_STD_0_20130630_0_925245x925736_928472x926284http://www.sec.gov/CIK0001325702instant2013-06-30T00:00:000001-01-01T00:00:00falsefalseAssets And Liabilities Measured at Fair Value on Recurring Basis [Member]us-gaap_FairValueByMeasurementFrequencyAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_FairValueMeasurementsRecurringMemberus-gaap_FairValueByMeasurementFrequencyAxisexplicitMemberfalsefalseQuoted Prices in Active Markets for Identical Asset (Level 1) [Member]us-gaap_FairValueByMeasurementBasisAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_FairValueInputsLevel1Memberus-gaap_FairValueByMeasurementBasisAxisexplicitMemberiso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse018true4us-gaap_AssetsAbstractus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse019false5us-gaap_AvailableForSaleSecuritiesus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse10270001027USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of investment in debt and equity securities categorized neither as held-to-maturity nor trading.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 25
-Paragraph 1
-Subparagraph (b)
-URI http://asc.fasb.org/extlink&oid=28360136&loc=d3e22054-111558
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 50
-Paragraph 5
-Subparagraph (aa)
-URI http://asc.fasb.org/extlink&oid=27724398&loc=d3e27232-111563
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 45
-Paragraph 1
-URI http://asc.fasb.org/extlink&oid=6871852&loc=d3e26610-111562
false220false5mx_OtherCurrentAssetmx_falsedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00 USD$falsefalsefalsexbrli:monetaryItemTypemonetaryOther Current AssetNo definition available.false221true4us-gaap_LiabilitiesAbstractus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse022false5us-gaap_DerivativeLiabilitiesCurrentus-gaap_truecreditinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00 USD$falsefalsefalsexbrli:monetaryItemTypemonetaryFair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset, expected to be settled within one year or normal operating cycle, if longer. Includes assets not subject to a master netting arrangement and not elected to be offset.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Glossary Current Liabilities
-URI http://asc.fasb.org/extlink&oid=6509677
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 825
-SubTopic 10
-Section 50
-Paragraph 10
-Subparagraph (a)
-URI http://asc.fasb.org/extlink&oid=28364263&loc=d3e13433-108611
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 815
-SubTopic 10
-Section 45
-Paragraph 5
-URI http://asc.fasb.org/extlink&oid=6945355&loc=d3e41228-113958
Reference 4: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 825
-SubTopic 10
-Section 50
-Paragraph 15
-URI http://asc.fasb.org/extlink&oid=28364263&loc=d3e13495-108611
Reference 5: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 210
-SubTopic 20
-Section 50
-Paragraph 3
-Subparagraph (c)
-URI http://asc.fasb.org/extlink&oid=20225523&loc=SL20225862-175312
Reference 6: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 815
-SubTopic 10
-Section 45
-Paragraph 6
-URI http://asc.fasb.org/extlink&oid=6945355&loc=d3e41271-113958
false223false5us-gaap_DerivativeLiabilitiesNoncurrentus-gaap_truecreditinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00 USD$falsefalsefalsexbrli:monetaryItemTypemonetaryFair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset, expected to be settled after one year or the normal operating cycle, if longer. Includes assets not subject to a master netting arrangement and not elected to be offset.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 825
-SubTopic 10
-Section 50
-Paragraph 10
-Subparagraph (a)
-URI http://asc.fasb.org/extlink&oid=28364263&loc=d3e13433-108611
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 815
-SubTopic 10
-Section 45
-Paragraph 5
-URI http://asc.fasb.org/extlink&oid=6945355&loc=d3e41228-113958
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 825
-SubTopic 10
-Section 50
-Paragraph 15
-URI http://asc.fasb.org/extlink&oid=28364263&loc=d3e13495-108611
Reference 4: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 210
-SubTopic 20
-Section 50
-Paragraph 3
-Subparagraph (c)
-URI http://asc.fasb.org/extlink&oid=20225523&loc=SL20225862-175312
Reference 5: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 815
-SubTopic 10
-Section 45
-Paragraph 6
-URI http://asc.fasb.org/extlink&oid=6945355&loc=d3e41271-113958
false224false0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse5falseUSDtruefalse$eol_PE672432--1310-Q0006_STD_0_20130630_0_925245x925851_928472x926284http://www.sec.gov/CIK0001325702instant2013-06-30T00:00:000001-01-01T00:00:00falsefalseAssets And Liabilities Measured at Fair Value on Recurring Basis [Member]us-gaap_FairValueByMeasurementFrequencyAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_FairValueMeasurementsRecurringMemberus-gaap_FairValueByMeasurementFrequencyAxisexplicitMemberfalsefalseSignificant Other Observable Inputs (Level 2) [Member]us-gaap_FairValueByMeasurementBasisAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_FairValueInputsLevel2Memberus-gaap_FairValueByMeasurementBasisAxisexplicitMemberiso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse025true4us-gaap_AssetsAbstractus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse026false5us-gaap_AvailableForSaleSecuritiesus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00 USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of investment in debt and equity securities categorized neither as held-to-maturity nor trading.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 25
-Paragraph 1
-Subparagraph (b)
-URI http://asc.fasb.org/extlink&oid=28360136&loc=d3e22054-111558
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 50
-Paragraph 5
-Subparagraph (aa)
-URI http://asc.fasb.org/extlink&oid=27724398&loc=d3e27232-111563
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 45
-Paragraph 1
-URI http://asc.fasb.org/extlink&oid=6871852&loc=d3e26610-111562
false227false5mx_OtherCurrentAssetmx_falsedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse117000117USD$falsefalsefalsexbrli:monetaryItemTypemonetaryOther Current AssetNo definition available.false228true4us-gaap_LiabilitiesAbstractus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse029false5us-gaap_DerivativeLiabilitiesCurrentus-gaap_truecreditinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse1024700010247USD$falsefalsefalsexbrli:monetaryItemTypemonetaryFair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset, expected to be settled within one year or normal operating cycle, if longer. Includes assets not subject to a master netting arrangement and not elected to be offset.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Glossary Current Liabilities
-URI http://asc.fasb.org/extlink&oid=6509677
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 825
-SubTopic 10
-Section 50
-Paragraph 10
-Subparagraph (a)
-URI http://asc.fasb.org/extlink&oid=28364263&loc=d3e13433-108611
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 815
-SubTopic 10
-Section 45
-Paragraph 5
-URI http://asc.fasb.org/extlink&oid=6945355&loc=d3e41228-113958
Reference 4: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 825
-SubTopic 10
-Section 50
-Paragraph 15
-URI http://asc.fasb.org/extlink&oid=28364263&loc=d3e13495-108611
Reference 5: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 210
-SubTopic 20
-Section 50
-Paragraph 3
-Subparagraph (c)
-URI http://asc.fasb.org/extlink&oid=20225523&loc=SL20225862-175312
Reference 6: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 815
-SubTopic 10
-Section 45
-Paragraph 6
-URI http://asc.fasb.org/extlink&oid=6945355&loc=d3e41271-113958
false230false5us-gaap_DerivativeLiabilitiesNoncurrentus-gaap_truecreditinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse16040001604USD$falsefalsefalsexbrli:monetaryItemTypemonetaryFair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset, expected to be settled after one year or the normal operating cycle, if longer. Includes assets not subject to a master netting arrangement and not elected to be offset.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 825
-SubTopic 10
-Section 50
-Paragraph 10
-Subparagraph (a)
-URI http://asc.fasb.org/extlink&oid=28364263&loc=d3e13433-108611
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 815
-SubTopic 10
-Section 45
-Paragraph 5
-URI http://asc.fasb.org/extlink&oid=6945355&loc=d3e41228-113958
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 825
-SubTopic 10
-Section 50
-Paragraph 15
-URI http://asc.fasb.org/extlink&oid=28364263&loc=d3e13495-108611
Reference 4: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 210
-SubTopic 20
-Section 50
-Paragraph 3
-Subparagraph (c)
-URI http://asc.fasb.org/extlink&oid=20225523&loc=SL20225862-175312
Reference 5: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 815
-SubTopic 10
-Section 45
-Paragraph 6
-URI http://asc.fasb.org/extlink&oid=6945355&loc=d3e41271-113958
false231false0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse6falseUSDtruefalse$eol_PE672432--1310-Q0006_STD_0_20130630_0_925245x929831_928472x926284http://www.sec.gov/CIK0001325702instant2013-06-30T00:00:000001-01-01T00:00:00falsefalseAssets And Liabilities Measured at Fair Value on Recurring Basis [Member]us-gaap_FairValueByMeasurementFrequencyAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_FairValueMeasurementsRecurringMemberus-gaap_FairValueByMeasurementFrequencyAxisexplicitMemberfalsefalseSignificant Unobservable Inputs (Level 3) [Member]us-gaap_FairValueByMeasurementBasisAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_FairValueInputsLevel3Memberus-gaap_FairValueByMeasurementBasisAxisexplicitMemberiso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse032true4us-gaap_AssetsAbstractus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse033false5us-gaap_AvailableForSaleSecuritiesus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00 USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of investment in debt and equity securities categorized neither as held-to-maturity nor trading.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 25
-Paragraph 1
-Subparagraph (b)
-URI http://asc.fasb.org/extlink&oid=28360136&loc=d3e22054-111558
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 50
-Paragraph 5
-Subparagraph (aa)
-URI http://asc.fasb.org/extlink&oid=27724398&loc=d3e27232-111563
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 45
-Paragraph 1
-URI http://asc.fasb.org/extlink&oid=6871852&loc=d3e26610-111562
false234false5mx_OtherCurrentAssetmx_falsedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00 USD$falsefalsefalsexbrli:monetaryItemTypemonetaryOther Current AssetNo definition available.false235true4us-gaap_LiabilitiesAbstractus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse036false5us-gaap_DerivativeLiabilitiesCurrentus-gaap_truecreditinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00 USD$falsefalsefalsexbrli:monetaryItemTypemonetaryFair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset, expected to be settled within one year or normal operating cycle, if longer. Includes assets not subject to a master netting arrangement and not elected to be offset.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Glossary Current Liabilities
-URI http://asc.fasb.org/extlink&oid=6509677
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 825
-SubTopic 10
-Section 50
-Paragraph 10
-Subparagraph (a)
-URI http://asc.fasb.org/extlink&oid=28364263&loc=d3e13433-108611
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 815
-SubTopic 10
-Section 45
-Paragraph 5
-URI http://asc.fasb.org/extlink&oid=6945355&loc=d3e41228-113958
Reference 4: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 825
-SubTopic 10
-Section 50
-Paragraph 15
-URI http://asc.fasb.org/extlink&oid=28364263&loc=d3e13495-108611
Reference 5: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 210
-SubTopic 20
-Section 50
-Paragraph 3
-Subparagraph (c)
-URI http://asc.fasb.org/extlink&oid=20225523&loc=SL20225862-175312
Reference 6: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 815
-SubTopic 10
-Section 45
-Paragraph 6
-URI http://asc.fasb.org/extlink&oid=6945355&loc=d3e41271-113958
false237false5us-gaap_DerivativeLiabilitiesNoncurrentus-gaap_truecreditinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00 USD$falsefalsefalsexbrli:monetaryItemTypemonetaryFair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset, expected to be settled after one year or the normal operating cycle, if longer. Includes assets not subject to a master netting arrangement and not elected to be offset.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 825
-SubTopic 10
-Section 50
-Paragraph 10
-Subparagraph (a)
-URI http://asc.fasb.org/extlink&oid=28364263&loc=d3e13433-108611
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 815
-SubTopic 10
-Section 45
-Paragraph 5
-URI http://asc.fasb.org/extlink&oid=6945355&loc=d3e41228-113958
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 825
-SubTopic 10
-Section 50
-Paragraph 15
-URI http://asc.fasb.org/extlink&oid=28364263&loc=d3e13495-108611
Reference 4: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 210
-SubTopic 20
-Section 50
-Paragraph 3
-Subparagraph (c)
-URI http://asc.fasb.org/extlink&oid=20225523&loc=SL20225862-175312
Reference 5: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 815
-SubTopic 10
-Section 45
-Paragraph 6
-URI http://asc.fasb.org/extlink&oid=6945355&loc=d3e41271-113958
false2falseFair Value Measurements - Assets and Liabilities Measured at Fair Value on Recurring Basis (Detail) (USD $)ThousandsUnKnownUnKnownUnKnowntruefalsefalseSheethttp://www.magnachip.com/taxonomy/role/DisclosureFairValueMeasurementsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasis137