XML 47 R35.htm IDEA: XBRL DOCUMENT
v3.23.2

Debt - Additional Information (Details) - USD ($) |  |  | 3 Months Ended | 6 Months Ended |  |
--- | --- | --- | --- | --- | --- | ---
May 09, 2023 | Sep. 17, 2021 | Jun. 30, 2023 | Jun. 30, 2022 | Jun. 30, 2023 | Jun. 30, 2022 | Dec. 31, 2022 | Sep. 27, 2022
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Term loans aggregate principal amount |  |  | $ 100,000,000 |  | $ 100,000,000 |  |  |
Common stock, par value |  |  | $ 0.0001 |  | $ 0.0001 |  | $ 0.0001 |
Loan Agreement |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Debt instrument, final payment fee or end of term charge |  | $ 7,500,000 |  |  |  |  |  |
Percentage of qualified cash prior to Third performance milestone |  | 65.00% |  |  |  |  |  |
Minimum percentage of qualified cash following third performance milestone |  | 5.00% |  |  |  |  |  |
Minimum market capitalization amount |  | $ 900,000,000 |  |  |  |  |  |
Percentage of debt funded to be issued as warrants to purchase common stock |  | 2.50% |  |  |  |  |  |
Warrants exercise price |  | $ 33.43 |  |  |  |  |  |
Warrants expire term |  | 7 years |  |  |  |  |  |
Warrants expiration date |  | Sep. 17, 2028 |  |  |  |  |  |
Fair value of warrants |  | $ 1,300,000 |  |  |  |  |  |
Debt issuance costs |  | $ 3,100,000 |  |  |  |  |  |
Loan Agreement | Common Stock |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Warrants issued to purchase shares |  | 74,782 |  |  |  |  |  |
Loan Agreement | Term Loan |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Term loans aggregate principal amount |  | $ 200,000,000 |  |  |  |  |  |
Payment for facility charge |  | $ 1,250,000 |  |  |  |  |  |
Debt instrument, facility charge percentage |  | 0.50% |  |  |  |  |  |
Debt instrument, maturity date |  | Oct. 01, 2026 |  |  |  |  |  |
Loan Agreement | Term Loan | Floor Rate |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Debt instrument interest rate |  | 5.50% |  |  |  |  |  |
Loan Agreement | Term Loan | Prime Rate |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Debt instrument, basis spread on variable rate |  | 2.25% |  |  |  |  |  |
Loan Agreement | Term Loan | Payment In Kind PIK Interest Rate |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Debt instrument, interest rate |  | 3.35% |  |  |  |  |  |
Loan Agreement | Term Loans, Aggregate Principal Amount Tranches One |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Term loans aggregate principal amount |  | $ 100,000,000 |  |  |  |  |  |
Loan Agreement | Term Loans, Aggregate Principal Amount Tranches Two |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Term loans aggregate principal amount |  |  | $ 50,000,000 |  | $ 50,000,000 |  |  |
Debt instrument minimum per draw amountd |  |  | 25,000,000 |  | 25,000,000 |  |  |
Loan Agreement | Term Loans, Aggregate Principal Amount Tranches Three |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Term loans aggregate principal amount |  |  | 25,000,000 |  | 25,000,000 |  |  |
Loan Agreement | Term Loans, Aggregate Principal Amount Tranches Four |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Term loans aggregate principal amount |  |  | 25,000,000 |  | 25,000,000 |  |  |
Loan Agreement | Term Loan Advance |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Debt instrument, final payment fee percentage |  | 7.50% |  |  |  |  |  |
Debt instrument, final payment fee or end of term charge |  |  | 7,500,000 |  | 7,500,000 |  |  |
Loan Agreement | Term Loan Advance | Maximum |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Debt instrument, prepayment fee percentage of outstanding principal amount |  | 1.25% |  |  |  |  |  |
Hercules and SVB Term Loan |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Term loans aggregate principal amount |  |  | 106,200,000 |  | 106,200,000 |  |  |
Accrued interest |  |  | 900,000 |  | 900,000 |  |  |
Hercules Loan Agreement |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Interest expense |  |  | $ 4,200,000 | $ 3,000,000 | $ 8,200,000 | $ 5,800,000 |  |
Amendment to Loan Agreement |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Term loans aggregate principal amount |  |  |  |  |  |  |  | $ 50,000,000
Tranche extension amendment fee | $ 150,000 |  |  |  |  |  |  |
Covenant extension amendment fee | 100,000 |  |  |  |  |  |  |
Amendment to Warrants |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Term loans aggregate principal amount | $ 100,000,000 |  |  |  |  |  |  |
Percentage of debt funded to be issued as warrants to purchase common stock | 2.50% |  |  |  |  |  |  |
Warrants exercise price | $ 11.6783 |  |  |  |  |  |  |
Warrants expire term | 7 years |  |  |  |  |  |  |
Common stock, par value | $ 0.0001 |  |  |  |  |  |  |
Amendment to Warrants | Common Stock |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |
Warrants issued to purchase shares | 74,783 |  |  |  |  |  |  |

X
- Definition Accrued interest. + References No definition available. + Details
Name: | phat_AccruedInterest
Namespace Prefix: | phat_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Class of warrant or right, expiration date. + References No definition available. + Details
Name: | phat_ClassOfWarrantOrRightExpirationDate
Namespace Prefix: | phat_
Data Type: | xbrli:dateItemType
Balance Type: | na
Period Type: | duration

X
- Definition Class of warrant or right, expire term. + References No definition available. + Details
Name: | phat_ClassOfWarrantOrRightExpireTerm
Namespace Prefix: | phat_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Covenant extension amendment fee. + References No definition available. + Details
Name: | phat_CovenantExtensionAmendmentFee
Namespace Prefix: | phat_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Debt instrument facility charge percentage. + References No definition available. + Details
Name: | phat_DebtInstrumentFacilityChargePercentage
Namespace Prefix: | phat_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt instrument final payment fee. + References No definition available. + Details
Name: | phat_DebtInstrumentFinalPaymentFee
Namespace Prefix: | phat_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Debt instrument final payment fee percentage. + References No definition available. + Details
Name: | phat_DebtInstrumentFinalPaymentFeePercentage
Namespace Prefix: | phat_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt instrument, interest rate percentage. + References No definition available. + Details
Name: | phat_DebtInstrumentInterestRatePercentage
Namespace Prefix: | phat_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt instrument minimum per draw amount. + References No definition available. + Details
Name: | phat_DebtInstrumentMinimumPerDrawAmount
Namespace Prefix: | phat_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Debt instrument prepayment fee percentage of outstanding principal amount. + References No definition available. + Details
Name: | phat_DebtInstrumentPrepaymentFeePercentageOfOutstandingPrincipalAmount
Namespace Prefix: | phat_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Minimum market capitalization amount. + References No definition available. + Details
Name: | phat_MinimumMarketCapitalizationAmount
Namespace Prefix: | phat_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Minimum percentage of qualified cash on principal amount following third performance milestone. + References No definition available. + Details
Name: | phat_MinimumPercentageOfQualifiedCashOnPrincipalAmountFollowingThirdPerformanceMilestone
Namespace Prefix: | phat_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Minimum percentage of qualified cash on principal amount prior to third performance milestone. + References No definition available. + Details
Name: | phat_MinimumPercentageOfQualifiedCashOnPrincipalAmountPriorToThirdPerformanceMilestone
Namespace Prefix: | phat_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Payment for facility charge. + References No definition available. + Details
Name: | phat_PaymentForFacilityCharge
Namespace Prefix: | phat_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Percentage of debt funded to be issued as warrants to purchase common stock. + References No definition available. + Details
Name: | phat_PercentageOfDebtFundedToBeIssuedAsWarrantsToPurchaseCommonStock
Namespace Prefix: | phat_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tranche extension amendment fee + References No definition available. + Details
Name: | phat_TrancheExtensionAmendmentFee
Namespace Prefix: | phat_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Exercise price per share or per unit of warrants or rights outstanding. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org//1943274/2147481112/505-10-50-3 + Details
Name: | us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of securities into which the class of warrant or right may be converted. For example, but not limited to, 500,000 warrants may be converted into 1,000,000 shares. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org//1943274/2147481112/505-10-50-3 + Details
Name: | us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Face amount or stated value per share of common stock. + References Reference 1: 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 + Details
Name: | us-gaap_CommonStockParOrStatedValuePerShare
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Percentage points added to the reference rate to compute the variable rate on the debt instrument. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentBasisSpreadOnVariableRate1
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount, before unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but is not limited to, notes payable, bonds payable, commercial loans, mortgage loans, convertible debt, subordinated debt and other types of debt. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -SubTopic 10 -Topic 210 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 942 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479853/942-210-S99-1 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 4 -Subparagraph (b)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-4 + Details
Name: | us-gaap_DebtInstrumentCarryingAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Contractual interest rate for funds borrowed, under the debt agreement. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1B Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(a)(1)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_DebtInstrumentInterestRateStatedPercentage
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

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/2003/role/disclosureRef -Topic 835 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482900/835-30-50-1 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(f)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480678/235-10-S99-1 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.12-04(a)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480678/235-10-S99-3 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1B Reference 5: http://www.xbrl.org/2003/role/exampleRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 69B -Publisher FASB -URI https://asc.fasb.org//1943274/2147481568/470-20-55-69B Reference 6: http://www.xbrl.org/2003/role/exampleRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 69C -Publisher FASB -URI https://asc.fasb.org//1943274/2147481568/470-20-55-69C Reference 7: http://www.xbrl.org/2003/role/exampleRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 69E -Publisher FASB -URI https://asc.fasb.org//1943274/2147481568/470-20-55-69E Reference 8: http://www.xbrl.org/2003/role/exampleRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 69F -Publisher FASB -URI https://asc.fasb.org//1943274/2147481568/470-20-55-69F Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1B Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1B Reference 11: http://www.xbrl.org/2003/role/exampleRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1B Reference 12: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (e) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1B Reference 13: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (f) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1B Reference 14: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (h) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1B Reference 15: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1D -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1D Reference 16: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1D -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1D Reference 17: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1D -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1D Reference 18: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1E -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1E Reference 19: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1E -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1E Reference 20: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1E -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1E Reference 21: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1F -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1F Reference 22: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1F -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1F Reference 23: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1F -Subparagraph (b)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1F Reference 24: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1F -Subparagraph (b)(2) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1F Reference 25: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1I -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1I + Details
Name: | us-gaap_DebtInstrumentLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Date when the debt instrument is scheduled to be fully repaid, in YYYY-MM-DD format. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1B Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (bbb)(2) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482106/820-10-50-2 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(a)(2)) -SubTopic 10 -Topic 210 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_DebtInstrumentMaturityDate
Namespace Prefix: | us-gaap_
Data Type: | xbrli:dateItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of the cost of borrowed funds accounted for as interest expense for debt. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 69E -Publisher FASB -URI https://asc.fasb.org//1943274/2147481568/470-20-55-69E Reference 2: http://www.xbrl.org/2003/role/exampleRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 69F -Publisher FASB -URI https://asc.fasb.org//1943274/2147481568/470-20-55-69F Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1F -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1F Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 220 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03.8) -Publisher FASB -URI https://asc.fasb.org//1943274/2147483621/220-10-S99-2 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-6 + Details
Name: | us-gaap_InterestExpenseDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The remaining balance of debt issuance expenses that were capitalized and are being amortized against income over the lives of the respective bond issues. This does not include the amounts capitalized as part of the cost of the utility plant or asset. + References No definition available. + Details
Name: | us-gaap_UnamortizedDebtIssuanceExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Value of outstanding derivative securities that permit the holder the right to purchase securities (usually equity) from the issuer at a specified price. + References No definition available. + Details
Name: | us-gaap_WarrantsAndRightsOutstanding
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_DebtInstrumentAxis=phat_LoanAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementEquityComponentsAxis=us-gaap_CommonStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=phat_TermLoanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_BaseRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_PrimeRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=phat_PaymentInKindPikInterestRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=phat_TermLoansAggregatePrincipalAmountTranchesOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=phat_TermLoansAggregatePrincipalAmountTranchesTwoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=phat_TermLoansAggregatePrincipalAmountTranchesThreeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=phat_TermLoansAggregatePrincipalAmountTranchesFourMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=phat_TermLoanAdvanceMember
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: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=phat_HerculesAndSvbTermLoanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=phat_HerculesLoanAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=phat_AmendmentToLoanAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=phat_AmendmentToWarrantsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |