XML 45 R34.htm IDEA: XBRL DOCUMENT
v3.22.2

Subsequent Events - Additional Information (Detail) - USD ($) |  | 6 Months Ended
--- | --- | ---
Jul. 15, 2022 | Jun. 30, 2022
Credit Facility [Member] |  |
Subsequent Event [Line Items] |  |
Credit facility, maximum | $ 650,000,000.0 |
Revolving credit facility, maturity date |  | Jul. 15, 2027
Additional senior notes indebtedness | 250,000,000.0 |
Credit Facility [Member] | Treasury Sweep Note Due March 31, 2025 [Member] |  |
Subsequent Event [Line Items] |  |
Credit facility, indebtedness | 12,000,000.0 |
Revolving credit facility, maturity date |  | Mar. 31, 2025
Credit Facility [Member] | Notes Issued November 5, 2015 and Due November 5, 2022 [Member] |  |
Subsequent Event [Line Items] |  |
Revolving credit facility, maturity date |  | Nov. 05, 2022
Credit facility, aggregate outstanding principal | 60,000,000.0 |
Credit Facility [Member] | Notes Issued March 17, 2021 and Due March 17, 2028 [Member] |  |
Subsequent Event [Line Items] |  |
Revolving credit facility, maturity date |  | Mar. 17, 2028
Credit facility, aggregate outstanding principal | 40,000,000.0 |
Credit Facility [Member] | Notes Issued June 16, 2021 and Due June 16, 2026 [Member] |  |
Subsequent Event [Line Items] |  |
Revolving credit facility, maturity date |  | Jun. 16, 2026
Credit facility, aggregate outstanding principal | 60,000,000.0 |
Credit Facility [Member] | One or More Tranches [Member] |  |
Subsequent Event [Line Items] |  |
Revolving credit facility, available maximum borrowing capacity | 950,000,000.0 |
Letters of Credit [Member] |  |
Subsequent Event [Line Items] |  |
Credit facility, maximum | 40,000,000.0 |
Swingline Loans [Member] |  |
Subsequent Event [Line Items] |  |
Credit facility, maximum | 20,000,000.0 |
Unsecured revolving credit facility before Renewal [Member] |  |
Subsequent Event [Line Items] |  |
Credit facility, maximum | $ 420,000,000.0 |

X
- Definition Line of credit facility enhanced borrowing capacity. + References No definition available. + Details
Name: | mgrc_LineOfCreditFacilityEnhancedBorrowingCapacity
Namespace Prefix: | mgrc_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Line of credit facility indebtedness. + References No definition available. + Details
Name: | mgrc_LineOfCreditFacilityIndebtedness
Namespace Prefix: | mgrc_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Maximum additional senior notes indebtedness. + References No definition available. + Details
Name: | mgrc_MaximumAdditionalSeniorNotesIndebtedness
Namespace Prefix: | mgrc_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The carrying value as of the balance sheet date of the current and noncurrent portions of long-term obligations drawn from a line of credit, which is a bank's commitment to make loans up to a specific amount. Examples of items that might be included in the application of this element may consist of letters of credit, standby letters of credit, and revolving credit arrangements, under which borrowings can be made up to a maximum amount as of any point in time conditional on satisfaction of specified terms before, as of and after the date of drawdowns on the line. Includes short-term obligations that would normally be classified as current liabilities but for which (a) postbalance sheet date issuance of a long term obligation to refinance the short term obligation on a long term basis, or (b) the enterprise has entered into a financing agreement that clearly permits the enterprise to refinance the short-term obligation on a long term basis and the following conditions are met (1) the agreement does not expire within 1 year and is not cancelable by the lender except for violation of an objectively determinable provision, (2) no violation exists at the BS date, and (3) the lender has entered into the financing agreement is expected to be financially capable of honoring the agreement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -URI https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(16)) -URI https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910 + Details
Name: | us-gaap_LineOfCredit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Date the credit facility terminates, in YYYY-MM-DD format. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityExpirationDate1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:dateItemType
Balance Type: | na
Period Type: | duration

X
- Definition Maximum borrowing capacity under the credit facility without consideration of any current restrictions on the amount that could be borrowed or the amounts currently outstanding under the facility. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Detail information of subsequent event by type. User is expected to use existing line items from elsewhere in the taxonomy as the primary line items for this disclosure, which is further associated with dimension and member elements pertaining to a subsequent event. + References No definition available. + Details
Name: | us-gaap_SubsequentEventLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_CreditFacilityAxis=mgrc_UnsecuredRevolvingCreditFacilityAfterRenewedMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=mgrc_TreasurySweepNoteDueMarch312025Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=mgrc_NotesIssuedNovember52015AndDueNovember52022Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=mgrc_NotesIssuedMarch172021AndDueMarch172028Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=mgrc_NotesIssuedJune162021AndDueJune162026Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=mgrc_LineOfCreditFacilityOneOrMoreTranchesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_LetterOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=mgrc_SwingLineLoansMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=mgrc_UnsecuredRevolvingCreditFacilityBeforeRenewalMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |