XML 77 R66.htm IDEA: XBRL DOCUMENT
v3.22.2

Stockholders' Equity - Additional Information (Detail) - USD ($) $ / shares in Units, $ in Thousands |  |  | 6 Months Ended | 12 Months Ended
--- | --- | --- | --- | ---
Mar. 31, 2022 | Dec. 21, 2021 | Jun. 30, 2022 | Dec. 31, 2021
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |
Accelerated Share Repurchases, Settlement (Payment) or Receipt | $ 37,500 | $ 37,500 |  |
Accelerated share repurchase program adjustment shares |  | 994,695 |  |
Aggregate purchase price of shares |  | $ 20,073 |  |
Additional Paid-In Capital [Member] |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |
Accelerated stock repurchase |  |  | $ 17,217 | $ 17,427
Treasury Stock [Member] |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |
Accelerated stock repurchase |  |  | $ (17,217) |
Treasury Stock [Member] | Reclassified As A Treasury Stock From Additional Paid In Capital [Member] |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |
Accelerated share repurchase program adjustment shares |  |  | 1,031,576 |
Aggregate purchase price of shares | $ 17,217 |  |  |
Sale of stock issue price per share | $ 16.69 |  |  |
Accelerated Stock Repurchase Program [Member] |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |
Stock Repurchase Program, Authorized Amount |  | 75,000 |  |
Accelerated stock repurchase |  | $ 37,500 |  |

X
- Definition Accelerated share repurchase program adjustment shares. + References No definition available. + Details
Name: | mx_AcceleratedShareRepurchaseProgramAdjustmentShares
Namespace Prefix: | mx_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Aggregate purchase price of shares. + References No definition available. + Details
Name: | mx_AggregatePurchasePriceOfShares
Namespace Prefix: | mx_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount needed to adjust previously recorded stockholders' equity balances to the actual aggregate amounts paid, whether in cash or other consideration, to acquire all of the shares purchased under an Accelerated Share Repurchase arrangement. + References No definition available. + Details
Name: | us-gaap_AcceleratedShareRepurchaseProgramAdjustment
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The price paid per share to immediately purchase the targeted number of shares on the date of executing the accelerated share repurchase agreement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 30 -Section 25 -Paragraph 5 -URI https://asc.fasb.org/extlink&oid=6405686&loc=d3e22802-112653 + Details
Name: | us-gaap_AcceleratedShareRepurchasesInitialPricePaidPerShare
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of cash receipt from (payment to) bank; or stock received from (issuance to) bank in the settlement of the accelerated share repurchase agreement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 30 -Section 25 -Paragraph 5 -URI https://asc.fasb.org/extlink&oid=6405686&loc=d3e22802-112653 + Details
Name: | us-gaap_AcceleratedShareRepurchasesSettlementPaymentOrReceipt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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

X
- Definition Amount of stock repurchase plan authorized. + References No definition available. + Details
Name: | us-gaap_StockRepurchaseProgramAuthorizedAmount1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_StatementEquityComponentsAxis=us-gaap_AdditionalPaidInCapitalMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementEquityComponentsAxis=us-gaap_TreasuryStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ReclassificationTypeAxis=mx_ReclassifiedAsATreasuryStockFromAdditionalPaidInCapitalMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ShareRepurchaseProgramAxis=mx_AcceleratedStockRepurchaseProgramMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |