XML 100 R80.htm IDEA: XBRL DOCUMENT
v3.25.0.1

Goodwill and Intangible Assets - Summary of Changes in Carrying Amount of Goodwill (Details) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2023 USD ($)
Goodwill [Line Items] |
Beginning Balance | $ 132,305
Goodwill acquired through business combination | 216,821
Derecognition of goodwill divested | (25,902)
Ending Balance | 323,224
Mobile Modular [Member] |
Goodwill [Line Items] |
Beginning Balance | 106,403
Goodwill acquired through business combination | 216,821
Ending Balance | 323,224
Adler Tanks (Discontinued) [Member] |
Goodwill [Line Items] |
Beginning Balance | 25,902
Derecognition of goodwill divested | $ (25,902)

X
- Definition Derecognition of goodwill divested. + References No definition available. + Details
Name: | mgrc_DerecognitionOfGoodwillDivested
Namespace Prefix: | mgrc_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Goodwill, including discontinued operation. + References No definition available. + Details
Name: | mgrc_GoodwillIncludingDiscontinuedOperation
Namespace Prefix: | mgrc_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of increase in asset representing future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized resulting from a business combination. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 350 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 24 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482548/350-20-55-24 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 350 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482573/350-20-50-1 + Details
Name: | us-gaap_GoodwillAcquiredDuringPeriod
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
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/2003/role/exampleRef -Topic 350 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 24 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482548/350-20-55-24 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 350 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482573/350-20-50-2 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 350 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482573/350-20-50-1 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 350 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482573/350-20-50-1 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 350 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482573/350-20-50-1 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 350 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482573/350-20-50-1 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Topic 350 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482573/350-20-50-1 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Topic 350 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (e) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482573/350-20-50-1 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Topic 350 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (f) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482573/350-20-50-1 Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Topic 350 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (g) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482573/350-20-50-1 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Topic 350 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (h) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482573/350-20-50-1 Reference 12: http://www.xbrl.org/2003/role/disclosureRef -Topic 350 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1A -Publisher FASB -URI https://asc.fasb.org/1943274/2147482573/350-20-50-1A + Details
Name: | us-gaap_GoodwillLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=mgrc_MobileModularMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=mgrc_AdlerTanksMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |