XML 55 R41.htm IDEA: XBRL DOCUMENT
v3.25.0.1

BASIS OF PRESENTATION - (Details) $ in Thousands | 12 Months Ended |
--- | --- | ---
Dec. 31, 2024 USD ($) installment shares | Dec. 31, 2023 USD ($) installment shares | Dec. 31, 2022 USD ($) installment shares | Feb. 06, 2025 USD ($)
Basis Of Presentation [Line Items] |  |  |  |
Repurchase of shares, value | $ 169,867 | $ 144,020 | $ 847,849 |
Actual tax benefits recognized related to stock-based compensation | 27,800 | 18,900 | 23,200 |
Government Assistance, Operating Income, Increase (Decrease) | 20,700 | 15,500 | $ 15,400 |
Government Assistance, Asset, Current | 24,100 | 9,500 |  |
Government Assistance, Asset, Noncurrent | 12,700 | $ 12,200 |  |
Government Assistance, Liability, Noncurrent | $ 6,300 |  |  |
Restricted Stock Units (RSU) | 2016 Incentive Award Plan | Vesting After Four Years |  |  |  |
Basis Of Presentation [Line Items] |  |  |  |
Award vesting period | 4 years | 4 years | 4 years |
Non Employee Directors | Restricted Stock Units (RSU) | 2016 Incentive Award Plan |  |  |  |
Basis Of Presentation [Line Items] |  |  |  |
Award vesting installments | installment | 4 | 4 | 4 |
2018 Share Repurchase Program |  |  |  |
Basis Of Presentation [Line Items] |  |  |  |
Stock repurchased, including number of shares for re-issuance (in shares) | shares |  |  | 5,463,244 |
Repurchase of shares, value |  |  | $ 800,500 |
2022 Share Repurchase Program |  |  |  |
Basis Of Presentation [Line Items] |  |  |  |
Repurchase of shares (in shares) | shares | 527,160 | 781,068 | 228,247 |
Repurchase of shares, value | $ 174,200 | $ 144,000 | $ 47,200 |
2022 Share Repurchase Program | Subsequent Event |  |  |  |
Basis Of Presentation [Line Items] |  |  |  |
Share Repurchase Program, Additional Authorized, Amount |  |  |  | $ 600,000
2022 Share Repurchase Program | Maximum |  |  |  |
Basis Of Presentation [Line Items] |  |  |  |
Remaining amount of repurchase program | $ 134,600 |  |  |
Stock repurchase program, authorized amount |  |  | $ 500,000 |

X
- Definition Basis of presentation. + References No definition available. + Details
Name: | medp_BasisOfPresentationLineItems
Namespace Prefix: | medp_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Share-Based Compensation Arrangement By Share-Based Payment Award, Number Of Vesting Installments + References No definition available. + Details
Name: | medp_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfVestingInstallments
Namespace Prefix: | medp_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Share Repurchase Program, Additional Authorized, Amount + References No definition available. + Details
Name: | medp_ShareRepurchaseProgramAdditionalAuthorizedAmount
Namespace Prefix: | medp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Stock Repurchased, Including Number Of Shares Held In Treasury For Re-issuance, Shares + References No definition available. + Details
Name: | medp_StockRepurchasedIncludingNumberOfSharesHeldInTreasuryForReIssuanceShares
Namespace Prefix: | medp_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount authorized for purchase of share under share repurchase plan. Includes, but is not limited to, repurchase of stock and unit of ownership. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 505 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 4 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481520/505-30-50-4 + Details
Name: | srt_StockRepurchaseProgramAuthorizedAmount1
Namespace Prefix: | srt_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of tax benefit for recognition of expense of award under share-based payment arrangement. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (h)(1)(i) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 + Details
Name: | us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of asset from government assistance, classified as current. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 832 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483507/832-10-50-3 + Details
Name: | us-gaap_GovernmentAssistanceAmountCumulativeCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of asset from government assistance, classified as noncurrent. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 832 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483507/832-10-50-3 + Details
Name: | us-gaap_GovernmentAssistanceAmountCumulativeNoncurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of liability from government assistance, classified as noncurrent. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 832 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483507/832-10-50-3 + Details
Name: | us-gaap_GovernmentAssistanceLiabilityNoncurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of increase (decrease) in income from government assistance, classified as operating. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 832 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483507/832-10-50-3 + Details
Name: | us-gaap_GovernmentAssistanceOperatingIncome
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash outflow to reacquire common stock during the period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 230 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 15 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482740/230-10-45-15 + Details
Name: | us-gaap_PaymentsForRepurchaseOfCommonStock
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Period over which grantee's right to exercise award under share-based payment arrangement is no longer contingent on satisfaction of service or performance condition, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. Includes, but is not limited to, combination of market, performance or service condition. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (a)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount remaining authorized for purchase of share under share repurchase plan. Includes, but is not limited to, repurchase of stock and unit of ownership. + References No definition available. + Details
Name: | us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Number of shares that have been repurchased and retired during the period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 50 -Paragraph 2 -SubTopic 10 -Topic 505 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481112/505-10-50-2 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(28)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480008/505-10-S99-1 + Details
Name: | us-gaap_StockRepurchasedAndRetiredDuringPeriodShares
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_AwardTypeAxis=us-gaap_RestrictedStockUnitsRSUMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PlanNameAxis=medp_TwoThousandSixteenIncentiveAwardPlanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VestingAxis=medp_ShareBasedCompensationAwardVestingAfterFourYearsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_TitleOfIndividualAxis=medp_NonEmployeeDirectorsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ShareRepurchaseProgramAxis=medp_A2018ShareRepurchaseProgramMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ShareRepurchaseProgramAxis=medp_A2022ShareRepurchaseProgramMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_SubsequentEventTypeAxis=us-gaap_SubsequentEventMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |