XML 55 R48.htm IDEA: XBRL DOCUMENT
v3.25.3

Revenues and Accounts Receivable - Additional Information (Details) $ in Millions | 3 Months Ended | 9 Months Ended | 12 Months Ended
--- | --- | --- | ---
Sep. 30, 2025 USD ($) Customer | Sep. 30, 2024 Customer | Sep. 30, 2025 USD ($) Customer | Sep. 30, 2024 Customer | Dec. 31, 2024 USD ($) Customer
Accounts Notes And Loans Receivable [Line Items] |  |  |  |  |
Contracts assets acquired through business acquisitions |  |  | $ 0.0 |  | $ 2.6
Contract with customer liabilities, revenue recognized | $ 0.9 |  | 5.0 |  |
Revenue remaining performance obligations | 71.4 |  | 71.4 |  | $ 77.3
Receivables sold | $ 0.0 |  | $ 13.4 |  |
Customer Concentration Risk | Accounts Receivable | Significant Customer |  |  |  |  |
Accounts Notes And Loans Receivable [Line Items] |  |  |  |  |
Concentration risk percentage |  |  | 10.00% |  | 10.00%
Number of customers | Customer |  |  | 1 |  | 0
Customer Concentration Risk | Revenue | Significant Customer |  |  |  |  |
Accounts Notes And Loans Receivable [Line Items] |  |  |  |  |
Concentration risk percentage | 10.00% | 10.00% | 10.00% | 10.00% |
Number of customers | Customer | 1 | 0 | 1 | 0 |

X
- Definition Contracts with customer assets acquired through business acquisitions. + References No definition available. + Details
Name: | meg_ContractsWithCustomerAssetsAcquiredThroughBusinessAcquisitions
Namespace Prefix: | meg_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Number of customers. + References No definition available. + Details
Name: | meg_NumberOfCustomer
Namespace Prefix: | meg_
Data Type: | xbrli:integerItemType
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/2009/role/commonPracticeRef -Topic 310 -SubTopic 20 -Name Accounting Standards Codification -Section 40 -Paragraph 7 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481628/310-20-40-7 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 310 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481990/310-10-45-2 + Details
Name: | us-gaap_AccountsNotesAndLoansReceivableLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of decrease from sale of accounts receivable. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 11 -Subparagraph (i) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-11 + Details
Name: | us-gaap_AccountsReceivableSale
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition For an entity that discloses a concentration risk in relation to quantitative amount, which serves as the "benchmark" (or denominator) in the equation, this concept represents the concentration percentage derived from the division. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 42 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482810/280-10-50-42 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 275 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 18 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482861/275-10-50-18 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 275 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 18 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482861/275-10-50-18 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 275 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 20 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482861/275-10-50-20 Reference 5: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 275 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 18 -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482861/275-10-50-18 Reference 6: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 275 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 18 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482861/275-10-50-18 Reference 7: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 275 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 18 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482861/275-10-50-18 + Details
Name: | us-gaap_ConcentrationRiskPercentage1
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of revenue recognized that was previously included in balance of obligation to transfer good or service to customer for which consideration from customer has been received or is due. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 606 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 8 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479806/606-10-50-8 + Details
Name: | us-gaap_ContractWithCustomerLiabilityRevenueRecognized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of transaction price allocated to performance obligation that has not been recognized as revenue. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Subparagraph (a) -SubTopic 10 -Topic 606 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479806/606-10-50-13 + Details
Name: | us-gaap_RevenueRemainingPerformanceObligation
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_ConcentrationRiskByTypeAxis=us-gaap_CustomerConcentrationRiskMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ConcentrationRiskByBenchmarkAxis=us-gaap_AccountsReceivableMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_MajorCustomersAxis=meg_SignificantCustomerMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ConcentrationRiskByBenchmarkAxis=us-gaap_RevenueFromContractWithCustomerMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |