XML 45 R34.htm IDEA: XBRL DOCUMENT
v3.23.2

Leases (Tables) | 6 Months Ended
--- | ---
Jun. 30, 2023
Leases [Abstract] |
Summary of Components of Lease Expense | The components of lease expense were as follows:
|  | For the Three Months Ended June 30, |
| Statement of Operations Location | 2023 |  |  | 2022 |
Operating lease cost |  |  |  |  |  |
Lease cost | Selling, general and administrative expense | $ | 2,804 |  |  | $ | 2,500 |
Variable lease cost | Selling, general and administrative expense |  | 299 |  |  |  | 190 |
Total operating lease cost |  |  | 3,103 |  |  |  | 2,690 |
Finance lease cost |  |  |  |  |  |
Amortization of right of use assets | Depreciation and amortization |  | 1,429 |  |  |  | 1,012 |
Interest on lease liabilities | Interest expense—net |  | 171 |  |  |  | 108 |
Total finance lease cost |  |  | 1,600 |  |  |  | 1,120 |
Total lease cost |  | $ | 4,703 |  |  | $ | 3,810 |
|  | For the Six Months Ended June 30, |
| Statement of Operations Location | 2023 |  |  | 2022 |
Operating lease cost |  |  |  |  |  |
Lease cost | Selling, general and administrative expense | $ | 5,545 |  |  | $ | 4,951 |
Variable lease cost | Selling, general and administrative expense |  | 625 |  |  |  | 557 |
Total operating lease cost |  |  | 6,170 |  |  |  | 5,508 |
Finance lease cost |  |  |  |  |  |
Amortization of right of use assets | Depreciation and amortization |  | 2,583 |  |  |  | 1,951 |
Interest on lease liabilities | Interest expense—net |  | 301 |  |  |  | 220 |
Total finance lease cost |  |  | 2,884 |  |  |  | 2,171 |
Total lease cost |  | $ | 9,054 |  |  | $ | 7,679 |
Summary of Supplemental Cash Flow Information Related To Leases | Supplemental cash flows information related to leases was as follows:
|  | For the Six Months Ended June 30, |
|  | 2023 |  |  | 2022 |
Cash paid for amounts included in the measurement of lease liabilities: |  |  |  |  |  |
Operating cash flows used in operating leases |  | $ | 5,306 |  |  | $ | 4,741 |
Operating cash flows used in finance leases |  |  | 301 |  |  |  | 220 |
Financing cash flows used in finance leases |  |  | 2,198 |  |  |  | 1,911 |
Lease liabilities arising from new ROU assets: |  |  |  |  |  |
Operating leases |  |  | 23,831 |  |  |  | 10,478 |
Finance leases |  |  | 3,326 |  |  |  | 1,273 |
Summary of Weighted Average Remaining Lease Terms and Weighted Average Discount Rates | Weighted average remaining lease terms and weighted average discount rates were:
|  | June 30, 2023 |
|  | Operating Leases |  |  | Finance Leases |
Weighted average remaining lease term (years) |  | 5.49 |  |  |  | 3.33 |
Weighted average discount rate |  | 2.80% |  |  | 5.76% |
|  | June 30, 2022 |
|  | Operating Leases |  |  | Finance Leases |
Weighted average remaining lease term (years) |  | 4.68 |  |  |  | 3.00 |
Weighted average discount rate |  |  | 2.53 | % |  |  | 4.85 | %
Schedule of Maturities of Lease Liabilities | The following is a schedule by year of the maturities of lease liabilities with original terms in excess of one year:
|  | Operating Leases |  |  | Finance Leases |
Remainder of 2023 |  | $ | 6,239 |  |  | $ | 2,530 |
2024 |  |  | 11,546 |  |  |  | 3,824 |
2025 |  |  | 8,960 |  |  |  | 2,865 |
2026 |  |  | 7,028 |  |  |  | 2,134 |
2027 |  |  | 4,867 |  |  |  | 1,058 |
2028 and thereafter |  |  | 10,322 |  |  |  | 146 |
Total undiscounted future minimum lease payments |  |  | 48,962 |  |  |  | 12,557 |
Less imputed interest |  |  | (2,937 | ) |  |  | (1,164 | )
Total discounted future minimum lease payments |  | $ | 46,025 |  |  | $ | 11,393 |

X
- Definition Schedule of cash flow supplemental disclosures related to leases. + References No definition available. + Details
Name: | meg_ScheduleOfCashFlowSupplementalDisclosuresRelatedToLeasesTableTextBlock
Namespace Prefix: | meg_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Schedule of maturities of lease liabilities. + References No definition available. + Details
Name: | meg_ScheduleOfMaturitiesOfLeaseLiabilitiesTableTextBlock
Namespace Prefix: | meg_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Summary of weighted average remaining lease terms and weighted average discount rates. + References No definition available. + Details
Name: | meg_SummaryOfWeightedAverageRemainingLeaseTermsAndWeightedAverageDiscountRatesTableTextBlock
Namespace Prefix: | meg_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of lessee's lease cost. Includes, but is not limited to, interest expense for finance lease, amortization of right-of-use asset for finance lease, operating lease cost, short-term lease cost, variable lease cost and sublease income. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 4 -Publisher FASB -URI https://asc.fasb.org//1943274/2147478964/842-20-50-4 + Details
Name: | us-gaap_LeaseCostTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

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