XML 42 R31.htm IDEA: XBRL DOCUMENT
v3.23.2

Revenues and Accounts Receivable (Tables) | 6 Months Ended
--- | ---
Jun. 30, 2023
Revenues And Accounts Receivable [Abstract] |
Schedule of Contract Balances | The following table presents the Company’s contract balances:
|  | June 30, |  |  | December 31, |
|  | 2023 |  |  | 2022 |
Contract assets |  | $ | 57,114 |  |  | $ | 52,403 |
Contract liabilities |  |  | 11,333 |  |  |  | 18,549 |
Schedule of Accounts Receivable, Net | Accounts Receivable, Net Accounts receivable, net consisted of the following:
|  | June 30, 2023 |  |  | December 31, 2022 |
Accounts receivable, invoiced |  | $ | 106,245 |  |  | $ | 95,055 |
Accounts receivable, other |  |  | 981 |  |  |  | 1,571 |
Allowance for doubtful accounts |  |  | (3,506 | ) |  |  | (1,915 | )
Accounts receivable—net |  | $ | 103,720 |  |  | $ | 94,711 |
Schedule of Allowance for Doubtful Accounts | The allowance for doubtful accounts consisted of the following:
|  | Beginning Balance |  |  | Bad Debt Expense (Recovery) |  |  | Charged to Allowance |  |  | Other(1) |  |  | Ending Balance |
Six months ended June 30, 2023 |  | $ | 1,915 |  |  | $ | 1,824 |  |  | $ | (233 | ) |  | $ | — |  |  | $ | 3,506 |
Year ended December 31, 2022 |  |  | 4,581 |  |  |  | (1,097 | ) |  |  | (1,696 | ) |  |  | 127 |  |  |  | 1,915 |
____________________ (1) This amount consists of additions to the allowance due to business acquisitions.

X
- Definition Revenues and accounts receivable abstract. + References No definition available. + Details
Name: | meg_RevenuesAndAccountsReceivableAbstract
Namespace Prefix: | meg_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of allowance for credit loss on financing receivable. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Publisher FASB -URI https://asc.fasb.org//1943274/2147479319/326-20-50-13 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 310 -SubTopic 10 -Section 50 -Paragraph 11B -Publisher FASB -URI https://asc.fasb.org//1943274/2147481962/310-10-50-11B + Details
Name: | us-gaap_AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of receivable, contract asset, and contract liability from contract with customer. Includes, but is not limited to, change in contract asset and contract liability. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 606 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 10 -Publisher FASB -URI https://asc.fasb.org//1943274/2147479806/606-10-50-10 + Details
Name: | us-gaap_ContractWithCustomerAssetAndLiabilityTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of the various types of trade accounts and notes receivable and for each the gross carrying value, allowance, and net carrying value as of the balance sheet date. Presentation is categorized by current, noncurrent and unclassified receivables. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.3,4) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration