| Income Taxes - Paragraphs (Details) - USD ($) $ in Thousands | 3 Months Ended | 12 Months Ended | ||
|---|---|---|---|---|
| Dec. 03, 2021 | Mar. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021 | |
| Income Taxes | ||||
| Net operating loss carryforwards | $ 31,400 | |||
| Maximum percentage of utilization of net operating loss carryforwards of taxable income | 80.00% | |||
| Tax benefit | $ 290 | $ 1,862 | ||
| Tax Receivable Agreement with Selling Equity Holders of P3 LLC | ||||
| Income Taxes | ||||
| Percentage of estimated future tax benefits that may realize | 85.00% | 85.00% | ||
| Retained percentage of cash savings | 15.00% | |||
| P3 LLC | ||||
| Income Taxes | ||||
| TRA liability | $ 0 | $ 0 | ||
| P3 LLC | Tax Receivable Agreement with Selling Equity Holders of P3 LLC | ||||
| Income Taxes | ||||
| TRA liability | 4,600 | $ 4,600 | ||
| Tax benefit | $ 0 | 
| 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. No definition available. 
 | 
| X | ||||||||||
| 
- Definition The Maximum percentage of utilization of net operating loss carryforwards of taxable income. No definition available. 
 | 
| X | ||||||||||
| 
- Definition The percentage of payment of tax savings realized. No definition available. 
 | 
| X | ||||||||||
| 
- Definition The retained percentage of cash savings. No definition available. 
 | 
| X | ||||||||||
| 
- Definition The amount of tax receivable agreement liability. No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
 | 
| X | ||||||||||
| 
- Definition Amount of operating loss carryforward, before tax effects, available to reduce future taxable income under enacted tax laws. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Details 
 | 
| X | ||||||||||
| 
- Details 
 |