XML 60 R49.htm IDEA: XBRL DOCUMENT
v3.26.1

Shareholder's Equity and Stock-Based Compensation - Summary of Stock-Based Compensation Expense Recognized in Statements of Operations Related to All Outstanding Stock Based Compensation Awards (Details) - USD ($) $ in Thousands | 3 Months Ended
--- | ---
Mar. 31, 2026 | Mar. 31, 2025
Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items] |  |
Total stock-based compensation expense | $ 4,918 | $ 16,892
Total Direct Costs |  |
Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items] |  |
Total stock-based compensation expense | 3,001 | 3,027
Selling, General and Administrative |  |
Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items] |  |
Total stock-based compensation expense | $ 1,917 | $ 13,865

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 Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (h)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 + Details
Name: | us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of noncash expense for share-based payment arrangement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 45 -Paragraph 28 -Subparagraph (a) -SubTopic 10 -Topic 230 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482740/230-10-45-28 + Details
Name: | us-gaap_ShareBasedCompensation
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=medp_TotalDirectCostsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_SellingGeneralAndAdministrativeExpensesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |