XML 40 R49.htm IDEA: XBRL DOCUMENT
v3.20.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, 2020 | Mar. 31, 2019
Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items] |  |
Total stock-based compensation expense | $ 5,445 | $ 3,183
Total Direct Costs |  |
Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items] |  |
Total stock-based compensation expense | 2,006 | 1,560
Selling, General and Administrative |  |
Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items] |  |
Total stock-based compensation expense | $ 3,439 | $ 1,623

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 No definition available. + 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 -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3602-108585 + 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: |