XML 88 R77.htm IDEA: XBRL DOCUMENT
v3.24.0.1

Commitments and Contingencies - Additional Information (Detail) - USD ($) | 12 Months Ended
--- | ---
Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021
Commitments And Contingencies [Line Items] |  |  |
Operating lease expense | $ 6,700,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 | 1,600,000 | $ 2,000,000 |
Facility [Member] |  |  |
Commitments And Contingencies [Line Items] |  |  |
Operating lease expense | $ 10,800,000 | $ 7,000,000 | $ 5,600,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 -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 45 -Paragraph 4 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479041/842-20-45-4 + 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: |