XML 84 R77.htm IDEA: XBRL DOCUMENT
v3.25.3

Convertible and Redeemable Series A-2 Preferred Stock - Additional Information (Details) - USD ($) $ / shares in Units, $ in Thousands |  |  |  | 1 Months Ended | 3 Months Ended | 9 Months Ended |  |  |  |  |  |
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
Jul. 01, 2025 | Apr. 01, 2025 | Apr. 13, 2020 | Jan. 31, 2024 | Sep. 30, 2025 | Sep. 30, 2024 | Sep. 30, 2025 | Sep. 30, 2024 | Jun. 30, 2025 | Mar. 31, 2025 | Dec. 31, 2024 | Jun. 30, 2024 | Mar. 31, 2024 | Dec. 31, 2023
Temporary Equity [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Period between issuance and expiration of outstanding warrant |  |  | 10 years |  |  |  |  |  |  |  |  |  |  |
Proceeds from the Series A-2 and Warrant |  |  | $ 175,000 |  |  |  |  |  |  |  |  |  |  |
Redeemed in cash |  |  |  |  |  |  | $ 122,235 | $ 60,000 |  |  |  |  |  |
Number of times increase in debt incurrence test ratio |  |  |  |  |  |  | 4.5 |  |  |  |  |  |  |
Compound embedded derivative, change in net fair value |  |  |  |  |  |  | $ 18,394 | (4,851) |  |  |  |  |  |
Convertible And Redeemable Series A-2 Preferred Stock |  |  |  |  |  |  |  |  |  |  |  |  |  |
Temporary Equity [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Number of shares issued |  |  | 17,500 |  | 0 |  | 0 |  |  |  | 11,667 |  |  |
Par value per share |  |  | $ 0.0001 |  | $ 0.0001 |  | $ 0.0001 |  |  |  | $ 0.0001 |  |  |
Debt issuance costs, net |  |  | $ 1,300 |  |  |  |  |  |  |  |  |  |  |
Redeemed in cash | $ 62,200 | $ 60,000 |  | $ 60,000 |  |  |  |  |  |  |  |  |  |
Temporary equity, aggregate liquidation preference |  |  |  |  | $ 0 |  | $ 0 |  |  |  | $ 122,200 |  |  |
Preferred stock, dividends paid |  |  |  |  | $ 1,400 | $ 2,800 | $ 4,200 | $ 8,300 |  |  |  |  |  |
Percentage of discount on common stock market price |  |  |  |  |  |  | 15.00% |  |  |  |  |  |  |
Number of shares outstanding | 0 |  |  |  | 0 | 11,667 | 0 | 11,667 | 5,834 | 11,667 | 11,667 | 11,667 | 11,667 | 17,500
Percentage of dividend rate steps downs per year |  |  |  |  |  |  | 9.00% |  |  |  |  |  |  |
Percentage of dividend rate increase per annum in the event of noncompliance |  |  |  |  |  |  | 12.00% |  |  |  |  |  |  |
Percentage of dividend rate increase per annum upon noncompliance occurred and thereafter |  |  |  |  |  |  | 14.00% |  |  |  |  |  |  |
Number of days dividend increase rate applicable noncompliance event occurred |  |  |  |  |  |  | 90 days |  |  |  |  |  |  |
Minimum repayment amount |  |  |  |  |  |  | $ 25,000 |  |  |  |  |  |  |
Temporary equity description |  |  |  |  |  |  | The Company could, at its option on any one or more dates, redeem all or a minimum portion (the lesser of (i) $25.0 million in aggregate stated value of the Convertible and Redeemable Series A-2 Preferred Stock and (ii) all of the Convertible and Redeemable Series A-2 Preferred Stock then outstanding) of the outstanding Convertible and Redeemable Series A-2 Preferred Stock in cash. In January 2024, the Company redeemed $60.0 million in aggregate stated value of the outstanding Convertible and Redeemable Series A-2 Preferred Stock with cash. On April 1, 2025, the Company redeemed $60.0 million in aggregate stated value of the outstanding Series A-2 Preferred Stock. On July 1, 2025, the Company redeemed the remaining $62.2 million in aggregate stated value of the outstanding Series A-2 Preferred Stock. The Company funded each 2025 redemption with cash on hand and borrowings under the 2025 Credit Facility. Following the July 2025 redemption, no A-2 Preferred Shares remained outstanding. Both 2025 redemptions were reflected, net of applicable excise tax, in the Company's Unaudited Condensed Consolidated Statements of Convertible and Redeemable Series A-2 Preferred Stock and Stockholders’ Equity and resulted in a reduction of temporary equity. The impact of the redemptions is also reflected in the calculation of earnings per share for the three months ended September 30, 2025. |  |  |  |  |  |  |
Aggregate stated value of stock redeemed |  |  |  |  | $ 25,000 |  | $ 25,000 |  |  |  |  |  |  |
Compound embedded derivative, fair value net |  |  |  |  | 0 |  | 0 |  |  |  | $ 20,200 |  |  |
Convertible And Redeemable Series A-2 Preferred Stock | Other Expense |  |  |  |  |  |  |  |  |  |  |  |  |  |
Temporary Equity [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Compound embedded derivative, change in net fair value |  |  |  |  | (10,600) | $ 500 | (20,200) | $ 1,000 |  |  |  |  |  |
Convertible And Redeemable Series A-2 Preferred Stock | 60-Day Period Prior to Seventh Anniversary |  |  |  |  |  |  |  |  |  |  |  |  |  |
Temporary Equity [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Temporary equity convertible into common stock |  |  |  |  | 60,000 |  | 60,000 |  |  |  |  |  |  |
Convertible And Redeemable Series A-2 Preferred Stock | Year 5 |  |  |  |  |  |  |  |  |  |  |  |  |  |
Temporary Equity [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Temporary equity convertible into common stock |  |  |  |  | 60,000 |  | 60,000 |  |  |  |  |  |  |
Convertible And Redeemable Series A-2 Preferred Stock | Year 6 |  |  |  |  |  |  |  |  |  |  |  |  |  |
Temporary Equity [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Temporary equity convertible into common stock |  |  |  |  | $ 120,000 |  | $ 120,000 |  |  |  |  |  |  |

X
- Definition Minimum repayment amount. + References No definition available. + Details
Name: | meg_MinimumRepaymentAmount
Namespace Prefix: | meg_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Number of days twelve percent dividend increase rate applicable noncompliance event occurred. + References No definition available. + Details
Name: | meg_NumberOfDaysTwelvePercentDividendIncreaseRateApplicableNoncomplianceEventOccurred
Namespace Prefix: | meg_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of times increase in debt incurrence test ratio. + References No definition available. + Details
Name: | meg_NumberOfTimesIncreaseInDebtIncurrenceTestRatio
Namespace Prefix: | meg_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of discount on common stock market price. + References No definition available. + Details
Name: | meg_PercentageOfDiscountOnCommonStockMarketPrice
Namespace Prefix: | meg_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of dividend rate increase event of noncompliance. + References No definition available. + Details
Name: | meg_PercentageOfDividendRateIncreaseEventOfNoncompliance
Namespace Prefix: | meg_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of dividend rate increase upon noncompliance occurred and thereafter. + References No definition available. + Details
Name: | meg_PercentageOfDividendRateIncreaseUponNoncomplianceOccurredAndThereafter
Namespace Prefix: | meg_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of dividend rate steps downs per year. + References No definition available. + Details
Name: | meg_PercentageOfDividendRateStepsDownsPerYear
Namespace Prefix: | meg_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Temporary equity convertible into common stock. + References No definition available. + Details
Name: | meg_TemporaryEquityConvertibleIntoCommonStock
Namespace Prefix: | meg_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount, after accumulated amortization, of debt issuance costs. Includes, but is not limited to, legal, accounting, underwriting, printing, and registration costs. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 835 -SubTopic 30 -Name Accounting Standards Codification -Section 45 -Paragraph 1A -Publisher FASB -URI https://asc.fasb.org/1943274/2147482925/835-30-45-1A Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 835 -SubTopic 30 -Name Accounting Standards Codification -Section 45 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482925/835-30-45-2 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 835 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482900/835-30-50-1 Reference 4: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1D -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481139/470-20-50-1D + Details
Name: | us-gaap_DeferredFinanceCostsNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of paid and unpaid preferred stock dividends declared with the form of settlement in cash, stock and payment-in-kind (PIK). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480008/505-10-S99-1 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 45 -Paragraph 2 -SubTopic 405 -Topic 942 -Publisher FASB -URI https://asc.fasb.org/1943274/2147477787/942-405-45-2 + Details
Name: | us-gaap_DividendsPreferredStock
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Fair value as of the balance sheet date of the embedded derivative or group of embedded derivatives classified as an asset. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (bbb)(2)(i) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (bbb)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (bbb)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 Reference 4: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 4A -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-4A + Details
Name: | us-gaap_EmbeddedDerivativeFairValueOfEmbeddedDerivativeAsset
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Net Increase or Decrease in the fair value of the embedded derivative or group of embedded derivatives included in earnings in the period. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 4A -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-4A Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 815 -SubTopic 15 -Name Accounting Standards Codification -Section 25 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481116/815-15-25-1 + Details
Name: | us-gaap_EmbeddedDerivativeGainLossOnEmbeddedDerivativeNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash outflow to reacquire callable preferred stock which is identified as being convertible to another type of financial security. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 230 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 15 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482740/230-10-45-15 + Details
Name: | us-gaap_PaymentsForRepurchaseOfRedeemableConvertiblePreferredStock
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash inflow from the issuance of common stock, preferred stock, treasury stock, stock options, and other types of equity. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 45 -Paragraph 14 -Subparagraph (a) -SubTopic 10 -Topic 230 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482740/230-10-45-14 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-03(i)(1)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479886/946-10-S99-3 + Details
Name: | us-gaap_ProceedsFromIssuanceOrSaleOfEquity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Aggregate amount of redemption requirements for each class or type of redeemable stock classified as temporary equity for each of the five years following the latest balance sheet date. The redemption requirement does not constitute an unconditional obligation that will be settled in a variable number of shares constituting a monetary value predominantly indexed to (a) a fixed monetary amount known at inception, (b) an amount inversely correlated with the residual value of the entity, or (c) an amount determined by reference to something other than the fair value of issuer's stock. Does not include mandatorily redeemable stock. The exception is if redemption is required upon liquidation or termination of the reporting entity. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 815 -SubTopic 40 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (e) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480237/815-40-50-5 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 480 -SubTopic 10 -Name Accounting Standards Codification -Section S50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479857/480-10-S50-1 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 480 -SubTopic 10 -Name Accounting Standards Codification -Section S50 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479857/480-10-S50-3 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 480 -SubTopic 10 -Name Accounting Standards Codification -Section S45 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479887/480-10-S45-3 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 480 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 3A -Subparagraph (24)(b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480244/480-10-S99-3A + Details
Name: | us-gaap_TemporaryEquityAggregateAmountOfRedemptionRequirement
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Description of the type or class of security that is classified as temporary equity, including its redemption features (for example, sinking fund, at option of holders, out of future earnings), conversion features, and the rights of holders, if any, in the event of default, including the effect, if any, on junior securities in the event a required dividend, sinking fund, or other redemption payment(s) is not paid. Include also a description of stock with put option held by ESOP and stock redeemable by holder only in the event of a change in control of the issuer. Temporary equity is a security with redemption features that are outside the control of the issuer, is not classified as an asset or liability in conformity with GAAP, and is not mandatorily redeemable. Includes any type of security that is redeemable at a fixed or determinable price or on a fixed or determinable date or dates, is redeemable at the option of the holder, or has conditions for redemption which are not solely within the control of the issuer. If convertible, the issuer does not control the actions or events necessary to issue the maximum number of shares that could be required to be delivered under the conversion option if the holder exercises the option to convert the stock to another class of equity. If the security is a warrant or a rights issue, the warrant or rights issue is considered to be temporary equity if the issuer cannot demonstrate that it would be able to deliver upon the exercise of the option by the holder in all cases. Includes stock with put option held by ESOP and stock redeemable by holder only in the event of a change in control of the issuer. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(27)) -SubTopic 10 -Topic 210 -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 480 -SubTopic 10 -Name Accounting Standards Codification -Section S50 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479857/480-10-S50-2 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 480 -SubTopic 10 -Name Accounting Standards Codification -Section S45 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479887/480-10-S45-2 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 480 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (04) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480244/480-10-S99-1 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 480 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (01) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480244/480-10-S99-1 + Details
Name: | us-gaap_TemporaryEquityDescription
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 480 -SubTopic 10 -Name Accounting Standards Codification -Section S50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479857/480-10-S50-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 480 -SubTopic 10 -Name Accounting Standards Codification -Section S50 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479857/480-10-S50-2 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 480 -SubTopic 10 -Name Accounting Standards Codification -Section S45 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479887/480-10-S45-2 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 480 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (04) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480244/480-10-S99-1 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 480 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (01) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480244/480-10-S99-1 + Details
Name: | us-gaap_TemporaryEquityLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The aggregate liquidation preference (or restrictions) of stock classified as temporary equity that has a preference in involuntary liquidation considerably in excess of the par or stated value of the shares. The liquidation preference is the difference between the preference in liquidation and the par or stated values of the share. Temporary equity is a security with redemption features that are outside the control of the issuer, is not classified as an asset or liability in conformity with GAAP, and is not mandatorily redeemable. Includes any type of security that is redeemable at a fixed or determinable price or on a fixed or determinable date or dates, is redeemable at the option of the holder, or has conditions for redemption which are not solely within the control of the issuer. If convertible, the issuer does not control the actions or events necessary to issue the maximum number of shares that could be required to be delivered under the conversion option if the holder exercises the option to convert the stock to another class of equity. If the security is a warrant or a rights issue, the warrant or rights issue is considered to be temporary equity if the issuer cannot demonstrate that it would be able to deliver upon the exercise of the option by the holder in all cases. Includes stock with put option held by ESOP and stock redeemable by holder only in the event of a change in control of the issuer. + References No definition available. + Details
Name: | us-gaap_TemporaryEquityLiquidationPreference
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Per share amount of par value or stated value of stock classified as temporary equity. Temporary equity is a security with redemption features that are outside the control of the issuer, is not classified as an asset or liability in conformity with GAAP, and is not mandatorily redeemable. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(27)) -SubTopic 10 -Topic 210 -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_TemporaryEquityParOrStatedValuePerShare
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition The number of securities classified as temporary equity that have been sold (or granted) to the entity's shareholders. Securities issued include securities outstanding and securities held in treasury. Temporary equity is a security with redemption features that are outside the control of the issuer, is not classified as an asset or liability in conformity with GAAP, and is not mandatorily redeemable. Includes any type of security that is redeemable at a fixed or determinable price or on a fixed or determinable date or dates, is redeemable at the option of the holder, or has conditions for redemption which are not solely within the control of the issuer. If convertible, the issuer does not control the actions or events necessary to issue the maximum number of shares that could be required to be delivered under the conversion option if the holder exercises the option to convert the stock to another class of equity. If the security is a warrant or a rights issue, the warrant or rights issue is considered to be temporary equity if the issuer cannot demonstrate that it would be able to deliver upon the exercise of the option by the holder in all cases. Includes stock with put option held by ESOP and stock redeemable by holder only in the event of a change in control of the issuer. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 480 -SubTopic 10 -Name Accounting Standards Codification -Section S50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479857/480-10-S50-1 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(27)(b)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_TemporaryEquitySharesIssued
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition The number of securities classified as temporary equity that have been issued and are held by the entity's shareholders. Securities outstanding equals securities issued minus securities held in treasury. Temporary equity is a security with redemption features that are outside the control of the issuer, is not classified as an asset or liability in conformity with GAAP, and is not mandatorily redeemable. Includes any type of security that is redeemable at a fixed or determinable price or on a fixed or determinable date or dates, is redeemable at the option of the holder, or has conditions for redemption which are not solely within the control of the issuer. If convertible, the issuer does not control the actions or events necessary to issue the maximum number of shares that could be required to be delivered under the conversion option if the holder exercises the option to convert the stock to another class of equity. If the security is a warrant or a rights issue, the warrant or rights issue is considered to be temporary equity if the issuer cannot demonstrate that it would be able to deliver upon the exercise of the option by the holder in all cases. Includes stock with put option held by ESOP and stock redeemable by holder only in the event of a change in control of the issuer. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 480 -SubTopic 10 -Name Accounting Standards Codification -Section S50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479857/480-10-S50-1 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(27)(b)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_TemporaryEquitySharesOutstanding
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Period between issuance and expiration of outstanding warrant and right embodying unconditional obligation requiring redemption by transferring asset at specified or determinable date or upon event certain to occur, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (bbb)(2)(i) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (bbb)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (bbb)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 + Details
Name: | us-gaap_WarrantsAndRightsOutstandingTerm
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | instant

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

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_OtherNonoperatingIncomeExpenseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtConversionByUniqueDescriptionAxis=meg_SixtyDayPeriodPriorToSeventhAnniversaryMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtConversionByUniqueDescriptionAxis=meg_YearFiveMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtConversionByUniqueDescriptionAxis=meg_YearSixMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |