XML 46 R35.htm IDEA: XBRL DOCUMENT
v3.21.2

Leases (Tables) | 9 Months Ended
--- | ---
Sep. 30, 2021
Leases [Abstract] |
Schedule of Supplemental Balance Sheet Information | The Company’s Condensed Consolidated Balance Sheets include the following related to operating leases:
Leases |  | Classification |  | September 30, 2021 |  | December 31, 2020
Assets |  |  |  |  |  |
ROU assets |  | Other Assets |  | $ | 42,043 |  |  | $ | 46,728 |
Liabilities |  |  |  |  |  |
ROU - current |  | Accrued expenses and other current liabilities |  | $ | 9,871 |  |  | $ | 10,348 |
ROU liability - long-term |  | Other long-term liabilities |  | 33,691 |  |  | 37,689 |
Total ROU liabilities |  |  |  | $ | 43,562 |  |  | $ | 48,037 |
Schedule of Components of Lease Costs and Other Information Related to Leases | The components of lease costs were as follows:
|  |  |  | Three months ended September 30, | Nine months ended September 30,
|  | Classification |  | 2021 |  | 2020 | 2021 |  | 2020
Finance lease expense |  |  |  |  |  |  |  |  |
Amortization of ROU assets |  | Depreciation and amortization |  | $ | 1,002 |  |  | $ | 1,081 |  | $ | 3,094 |  |  | $ | 3,495 |
Interest on lease liabilities |  | Interest expense |  | 177 |  |  | 207 |  | 550 |  |  | 650 |
Operating lease expense |  | Cost of revenue; Selling, general & administrative expenses |  | 3,239 |  |  | 3,341 |  | 9,808 |  |  | 9,970 |
Short-term lease expense |  | Cost of revenue; Selling, general & administrative expenses |  | 7 |  |  | 11 |  | 22 |  |  | 60 |
Variable lease expense |  | Cost of revenue; Selling, general & administrative expenses |  | 532 |  |  | (4) |  | 1,956 |  |  | 441 |
Total |  |  |  | $ | 4,957 |  |  | $ | 4,636 |  | $ | 15,430 |  |  | $ | 14,616 |
Additional information related to leases was as follows:
|  |  | Nine months ended September 30,
|  |  |  |  | 2021 |  | 2020
Cash paid for amounts included in the measurement of lease liabilities for finance and operating leases |  |  |  |  |  |  |
Finance - financing cash flows |  |  |  |  | $ | 3,032 |  |  | $ | 3,078 |
Finance - operating cash flows |  |  |  |  | $ | 550 |  |  | $ | 650 |
Operating - operating cash flows |  |  |  |  | $ | 9,870 |  |  | $ | 9,819 |
ROU assets obtained in the exchange for lease liabilities |  |  |  |  |  |  |
Finance leases |  |  |  |  | $ | 2,445 |  |  | $ | 1,607 |
Operating leases |  |  |  |  | $ | 4,212 |  |  | $ | 6,919 |
Weighted-average remaining lease term (in years) |  |  |  |  |  |  |
Finance leases |  |  |  |  | 5.5 |  | 5.9
Operating leases |  |  |  |  | 5.3 |  | 5.9
Weighted-average discount rate |  |  |  |  |  |  |
Finance leases |  |  |  |  | 5.4 | % |  | 5.8 | %
Operating leases |  |  |  |  | 5.8 | % |  | 5.8 | %
Schedule of Maturities of Operating Lease Liabilities | Maturities of lease liabilities as of September 30, 2021 were as follows:
| Finance |  | Operating
Remainder of 2021 | $ | 2,023 |  |  | $ | 3,165 |
2022 | 4,602 |  |  | 11,595 |
2023 | 3,711 |  |  | 10,111 |
2024 | 2,778 |  |  | 7,843 |
2025 | 1,185 |  |  | 5,554 |
Thereafter | 991 |  |  | 12,484 |
Total | 15,290 |  |  | 50,752 |
Less: Present value discount | 1,179 |  |  | 7,190 |
Lease liability | $ | 14,111 |  |  | $ | 43,562 |
Schedule of Maturities of Finance Lease Liabilities | Maturities of lease liabilities as of September 30, 2021 were as follows:
| Finance |  | Operating
Remainder of 2021 | $ | 2,023 |  |  | $ | 3,165 |
2022 | 4,602 |  |  | 11,595 |
2023 | 3,711 |  |  | 10,111 |
2024 | 2,778 |  |  | 7,843 |
2025 | 1,185 |  |  | 5,554 |
Thereafter | 991 |  |  | 12,484 |
Total | 15,290 |  |  | 50,752 |
Less: Present value discount | 1,179 |  |  | 7,190 |
Lease liability | $ | 14,111 |  |  | $ | 43,562 |

X
- Definition Assets And Liabilities, Lessee + References No definition available. + Details
Name: | mg_AssetsAndLiabilitiesLesseeTableTextBlock
Namespace Prefix: | mg_
Data Type: | dtr-types: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 -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=123408670&loc=SL77918701-209980 + 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 -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=123408670&loc=SL77918686-209980 + 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 -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=123408670&loc=SL77918701-209980 + Details
Name: | us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration