XML 77 R65.htm IDEA: XBRL DOCUMENT
v3.22.4

Commitments and Contingencies - Additional Information (Detail) - USD ($) | 12 Months Ended
--- | ---
Dec. 31, 2022 | Dec. 31, 2021 | Dec. 31, 2020
Commitments And Contingencies [Line Items] |  |  |
Operating lease expense | $ 5,900,000 |  |
Health plan annual stop-loss insurance per claim | 200,000 |  |
Workers compensation insurance with no stop-loss for prior claim years | 350,000 |  |
Accruals for health and workers' compensation plans | 2,000,000.0 | $ 2,500,000 |
Facility [Member] |  |  |
Commitments And Contingencies [Line Items] |  |  |
Operating lease expense | $ 7,000,000.0 | $ 5,600,000 | $ 3,700,000

X
- Definition Commitments and contingencies. + References No definition available. + Details
Name: | mgrc_CommitmentsAndContingenciesLineItems
Namespace Prefix: | mgrc_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Health and workers compensation plans liability. + References No definition available. + Details
Name: | mgrc_HealthAndWorkersCompensationPlansLiability
Namespace Prefix: | mgrc_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Health plan annual stop-loss insurance per claim. + References No definition available. + Details
Name: | mgrc_HealthPlanAnnualStopLossInsurancePerClaim
Namespace Prefix: | mgrc_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Workers compensation insurance with no stop-loss for prior claim years. + References No definition available. + Details
Name: | mgrc_WorkersCompensationInsuranceWithNoStopLossForPriorClaimYears
Namespace Prefix: | mgrc_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of operating lease expense. Excludes sublease income. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 45 -Paragraph 4 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=123391704&loc=SL77918638-209977 + Details
Name: | us-gaap_OperatingLeaseExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_PropertyPlantAndEquipmentByTypeAxis=mgrc_FacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |