XML 68 R47.htm IDEA: XBRL DOCUMENT
v3.25.0.1

Leases (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2024
Leases [Abstract] |
Schedule of Supplemental Balance Sheet Information | The Company’s Consolidated Balance Sheets include the following related to operating leases as of December 31, 2024 and 2023 (in thousands):
Leases |  | Classification |  | 2024 |  | 2023
Assets: |  |  |  |  |  |
ROU assets |  | Other Assets |  | $ | 40,401 |  |  | $ | 37,512 |
Liabilities: |  |  |  |  |  |
ROU liability - current |  | Accrued expenses and other current liabilities |  | $ | 11,375 |  |  | $ | 10,686 |
ROU liability - long-term |  | Other long-term liabilities |  | 30,279 |  |  | 28,219 |
Total ROU liabilities |  |  |  | $ | 41,654 |  |  | $ | 38,905 |
Schedule of Components of Lease Costs and Other Information Related to Leases | The components of lease costs for the year ended December 31, 2024 and 2023 are as follows (in thousands):
|  | Classification |  | 2024 |  | 2023
Finance lease expense: |  |  |  |  |  |
Amortization of ROU assets |  | Depreciation and amortization |  | $ | 5,491 |  |  | $ | 5,152 |
Interest on lease liabilities |  | Interest expense |  | 1,062 |  |  | 917 |
Operating lease expense |  | Cost of revenue; Selling, general & administrative expenses |  | 14,213 |  |  | 13,234 |
Short-term lease expense |  | Cost of revenue; Selling, general & administrative expenses |  | 56 |  |  | 179 |
Variable lease expense |  | Cost of revenue; Selling, general & administrative expenses |  | 1,683 |  |  | 2,034 |
Total |  |  |  | $ | 22,505 |  |  | $ | 21,516 |
Additional information related to leases as of December 31, 2024 and 2023 is as follows:
|  | 2024 |  | 2023
Cash paid for amounts included in the measurement of lease liabilities for finance and operating leases (in thousands): |  |  |  |
Finance - financing cash flows |  | $ | 5,495 |  |  | $ | 5,047 |
Finance - operating cash flows |  | 1,062 |  |  | 917 |
Operating - operating cash flows |  | 14,243 |  |  | 13,208 |
ROU assets obtained in the exchange for lease liabilities: |  |  |  |
Finance leases |  | $ | 9,899 |  |  | $ | 7,125 |
Operating leases |  | 16,254 |  |  | 10,598 |
Weighted-average remaining lease term (in years): |  |  |  |
Finance leases |  | 5.0 |  | 4.7
Operating leases |  | 4.7 |  | 4.4
Weighted-average discount rate: |  |  |  |
Finance leases |  | 6.5 | % |  | 6.5 | %
Operating leases |  | 6.1 | % |  | 6.1 | %
Schedule of Maturities of Operating Lease Liabilities | Maturities of lease liabilities as of December 31, 2024 is as follows (in thousands):
| Finance |  | Operating
2025 | $ | 6,402 |  |  | $ | 13,462 |
2026 | 5,772 |  |  | 10,880 |
2027 | 4,846 |  |  | 8,256 |
2028 | 3,178 |  |  | 6,097 |
2029 | 1,701 |  |  | 3,498 |
Thereafter | 1,374 |  |  | 5,692 |
Total | 23,273 |  |  | 47,885 |
Less: Present value discount | 2,794 |  |  | 6,231 |
Lease liability | $ | 20,479 |  |  | $ | 41,654 |
Schedule of Maturities of Finance Lease Liabilities | Maturities of lease liabilities as of December 31, 2024 is as follows (in thousands):
| Finance |  | Operating
2025 | $ | 6,402 |  |  | $ | 13,462 |
2026 | 5,772 |  |  | 10,880 |
2027 | 4,846 |  |  | 8,256 |
2028 | 3,178 |  |  | 6,097 |
2029 | 1,701 |  |  | 3,498 |
Thereafter | 1,374 |  |  | 5,692 |
Total | 23,273 |  |  | 47,885 |
Less: Present value discount | 2,794 |  |  | 6,231 |
Lease liability | $ | 20,479 |  |  | $ | 41,654 |

X
- Definition Assets And Liabilities, Lessee + References No definition available. + Details
Name: | mg_AssetsAndLiabilitiesLesseeTableTextBlock
Namespace Prefix: | mg_
Data Type: | dtr-types1:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of undiscounted cash flows of finance lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to finance lease liability recognized in statement of financial position. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org/1943274/2147478964/842-20-50-6 + Details
Name: | us-gaap_FinanceLeaseLiabilityMaturityTableTextBlock
Namespace Prefix: | us-gaap_
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

X
- Definition Tabular disclosure of undiscounted cash flows of lessee's operating lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to operating lease liability recognized in statement of financial position. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org/1943274/2147478964/842-20-50-6 + Details
Name: | us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration