XML 57 R46.htm IDEA: XBRL DOCUMENT
v3.24.0.1

Discontinued Operations - Additional Information (Detail) - Adler Tank Rentals, LLC - USD ($) $ in Millions | 12 Months Ended |
--- | --- | ---
Dec. 31, 2023 | Dec. 31, 2022 | Feb. 01, 2023
Income Statement, Balance Sheet and Additional Disclosures by Disposal Groups, Including Discontinued Operations [Line Items] |  |  |
Sale price |  |  | $ 268.0
Total transaction costs | $ 6.7 | $ 2.1 |

X
- Definition Disposal group including discontinued operation transaction costs. + References No definition available. + Details
Name: | mgrc_DisposalGroupIncludingDiscontinuedOperationTransactionCosts
Namespace Prefix: | mgrc_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of consideration received or receivable for the disposal of assets and liabilities, including discontinued operation. + References No definition available. + Details
Name: | us-gaap_DisposalGroupIncludingDiscontinuedOperationConsideration
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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 No definition available. + Details
Name: | us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis=mgrc_AdlerTankRentalsLlcMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |