XML 57 R47.htm IDEA: XBRL DOCUMENT
v3.23.3

Leases - Summary of Supplemental Balance Sheet Information Related to Leases (Details) - USD ($) $ in Thousands | Sep. 30, 2023 | Dec. 31, 2022
--- | --- | ---
Leases, Supplemental Balance Sheet Information [Line Items] |  |
Operating lease right-of-use assets | $ 144,147 | $ 139,068
Operating Lease, Liability, Current, Statement of Financial Position [Extensible Enumeration] | Other current liabilities (includes $12.5 million with related parties at December 31, 2022) | Other current liabilities (includes $12.5 million with related parties at December 31, 2022)
Other current liabilities | $ 20,278 | $ 19,272
Operating lease liabilities | 143,039 | 138,867
Total operating lease liabilities | $ 163,317 | $ 158,139
Weighted Average Remaining Lease Term (years) |  |
Operating leases | 10 years 3 months 18 days | 11 years 1 month 6 days
Weighted Average Discount Rate |  |
Operating leases | 5.40% | 5.20%
Related Party |  |
Leases, Supplemental Balance Sheet Information [Line Items] |  |
Operating lease right-of-use assets | $ 84,592 | $ 86,356
Other current liabilities | 5,592 | 5,409
Operating lease liabilities | 92,049 | 93,393
Total operating lease liabilities | 97,641 |
Nonrelated Party |  |
Leases, Supplemental Balance Sheet Information [Line Items] |  |
Operating lease right-of-use assets | 59,555 | 52,712
Other current liabilities | 14,686 | 13,863
Operating lease liabilities | 50,990 | $ 45,474
Total operating lease liabilities | $ 65,676 |

X
- Definition Leases, Supplemental Balance Sheet Information + References No definition available. + Details
Name: | medp_LeasesSupplementalBalanceSheetInformationLineItems
Namespace Prefix: | medp_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Weighted average discount rate. + References No definition available. + Details
Name: | medp_WeightedAverageDiscountRateAbstract
Namespace Prefix: | medp_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Weighted average remaining lease term. + References No definition available. + Details
Name: | medp_WeightedAverageRemainingLeaseTermAbstract
Namespace Prefix: | medp_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Present value of lessee's discounted obligation for lease payments from operating lease. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479041/842-20-45-1 + Details
Name: | us-gaap_OperatingLeaseLiability
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Present value of lessee's discounted obligation for lease payments from operating lease, classified as current. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479041/842-20-45-1 + Details
Name: | us-gaap_OperatingLeaseLiabilityCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Indicates line item in statement of financial position that includes current operating lease liability. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 45 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org//1943274/2147479041/842-20-45-2 + Details
Name: | us-gaap_OperatingLeaseLiabilityCurrentStatementOfFinancialPositionExtensibleList
Namespace Prefix: | us-gaap_
Data Type: | enum2:enumerationSetItemType
Balance Type: | na
Period Type: | instant

X
- Definition Present value of lessee's discounted obligation for lease payments from operating lease, classified as noncurrent. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479041/842-20-45-1 + Details
Name: | us-gaap_OperatingLeaseLiabilityNoncurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of lessee's right to use underlying asset under operating lease. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479041/842-20-45-1 + Details
Name: | us-gaap_OperatingLeaseRightOfUseAsset
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Weighted average discount rate for operating lease calculated at point in time. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 53 -Publisher FASB -URI https://asc.fasb.org//1943274/2147479589/842-20-55-53 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 4 -Subparagraph (g)(4) -Publisher FASB -URI https://asc.fasb.org//1943274/2147478964/842-20-50-4 + Details
Name: | us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Weighted average remaining lease term for operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 53 -Publisher FASB -URI https://asc.fasb.org//1943274/2147479589/842-20-55-53 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 4 -Subparagraph (g)(3) -Publisher FASB -URI https://asc.fasb.org//1943274/2147478964/842-20-50-4 + Details
Name: | us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | instant

X
- Details
Name: | us-gaap_RelatedPartyTransactionsByRelatedPartyAxis=us-gaap_RelatedPartyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RelatedPartyTransactionsByRelatedPartyAxis=us-gaap_NonrelatedPartyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |