v3.25.4

LEASES (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2025
Leases [Abstract] |
Summary of Components of Lease Expense | The components of lease expense were as follows (in thousands):
| Year Ended December 31,
| 2025 |  | 2024 |  | 2023
Operating lease cost | $ | 31,057 |  |  | $ | 31,593 |  |  | $ | 27,919 |
Variable lease cost | $ | 12,390 |  |  | $ | 11,409 |  |  | $ | 9,455 |
Summary of Supplemental Cash Flow Information Related to Leases | Supplemental cash flow information related to the leases was as follows (in thousands):
| Year Ended December 31,
| 2025 |  | 2024 |  | 2023
Cash paid for amounts included in the measurement of lease liabilities: |  |  |  |  |
Operating cash flows from operating leases | $ | 25,889 |  |  | $ | 22,413 |  |  | $ | 19,829 |
Right-of-use assets obtained in exchange for lease obligations: |  |  |  |  |
Operating leases | 8,369 |  |  | 9,163 |  |  | 23,960 |
Summary of Supplemental Balance Sheet Information Related to Leases | Supplemental balance sheet information related to the leases was as follows at December 31 (in thousands):
| 2025 |  | 2024
Operating lease right-of-use assets - related parties | $ | 68,416 |  |  | $ | 74,889 |
Operating lease right-of-use assets - non-related parties | 49,399 |  |  | 53,760 |
Operating lease right-of-use assets | $ | 117,815 |  |  | $ | 128,649 |
Other current liabilities - related parties | 6,915 |  |  | 6,310 |
Other current liabilities - non-related parties | 16,294 |  |  | 16,979 |
Other current liabilities | $ | 23,209 |  |  | $ | 23,289 |
Operating lease liabilities - related parties | 77,344 |  |  | 84,259 |
Operating lease liabilities - non-related parties | 36,299 |  |  | 41,975 |
Operating lease liabilities | 113,643 |  |  | 126,234 |
Total operating lease liabilities | $ | 136,852 |  |  | $ | 149,523 |
Weighted Average Remaining Lease Term (years) |  |  |
Operating leases | 9.1 |  | 9.6
Weighted Average Discount Rate |  |  |
Operating leases | 5.7 | % |  | 5.7 | %
Schedule of Lease Payments Due Related To Lease Liabilities | Lease payments due related to lease liabilities as of December 31, 2025 were as follows (in thousands):
| Related Party Operating Leases |  | Non-Related Parties Operating Leases |  | Total Operating Leases
2026 | $ | 11,807 |  |  | $ | 18,036 |  |  | $ | 29,843 |
2027 | 10,839 |  |  | 15,239 |  |  | 26,078 |
2028 | 8,609 |  |  | 9,897 |  |  | 18,506 |
2029 | 8,824 |  |  | 6,859 |  |  | 15,683 |
2030 | 9,045 |  |  | 4,285 |  |  | 13,330 |
Later years | 73,800 |  |  | 3,650 |  |  | 77,450 |
Total lease payments | 122,924 |  |  | 57,966 |  |  | 180,890 |
Less: imputed interest | (38,665) |  |  | (5,373) |  |  | (44,038) |
Total | $ | 84,259 |  |  | $ | 52,593 |  |  | $ | 136,852 |

X
- Definition Schedule of supplemental balance sheet information related to leases. + References No definition available. + Details
Name: | medp_ScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesTableTextBlock
Namespace Prefix: | medp_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Schedule of supplemental cash flow information related to leases. + References No definition available. + Details
Name: | medp_ScheduleOfSupplementalCashFlowInformationRelatedToLeasesTableTextBlock
Namespace Prefix: | medp_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of lessee's lease cost. Includes, but is not limited to, interest expense for finance lease, amortization of right-of-use asset for finance lease, operating lease cost, short-term lease cost, variable lease cost and sublease income. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 4 -Publisher FASB -URI https://asc.fasb.org/1943274/2147478964/842-20-50-4 + Details
Name: | us-gaap_LeaseCostTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_LeasesAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of undiscounted cash flows of lessee's operating lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to operating lease liability recognized in statement of financial position. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org/1943274/2147478964/842-20-50-6 + Details
Name: | us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration