XML 161 R54.htm IDEA: XBRL DOCUMENT
v3.24.1

Nature Of Operations And Basis Of Presentation (Detail) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2022 USD ($)
Organization, Consolidation and Presentation of Financial Statements [Abstract] |
Reclassfication from depreciation and amortization to amortization of acquired intangible assets | $ 46

X
- Definition Reclassfication from depreciation and amortization to amortization of acquired intangible assets. + References No definition available. + Details
Name: | mga_ReclassficationFromDepreciationAndAmortizationToAmortizationOfAcquiredIntangibleAssets
Namespace Prefix: | mga_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration