<?xml version='1.0' encoding='UTF-8'?>
<FilingSummary>
  <Version>3.7.0.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>167</ContextCount>
  <ElementCount>436</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>51</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>4</UnitCount>
  <MyReports>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>00000001 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>00000002 - Statement - CONSOLIDATED BALANCE SHEETS (USD $)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/CondensedConsolidatedBalanceSheetsUsd</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (USD $)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>00000003 - Statement - CONSOLIDATED BALANCE SHEETS (USD $) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/CondensedConsolidatedBalanceSheetsUsdParenthetical</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (USD $) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>00000004 - Statement - CCONSOLIDATED STATEMENTS OF LOSS AND COMPREHENSIVE LOSS (USD $)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/CondensedConsolidatedStatementsOfComprehensiveLossUsd</Role>
      <ShortName>CCONSOLIDATED STATEMENTS OF LOSS AND COMPREHENSIVE LOSS (USD $)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>00000005 - Statement - CCONSOLIDATED STATEMENTS OF LOSS AND COMPREHENSIVE LOSS (USD $) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/CconsolidatedStatementsOfLossAndComprehensiveLossUsdParenthetical</Role>
      <ShortName>CCONSOLIDATED STATEMENTS OF LOSS AND COMPREHENSIVE LOSS (USD $) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>00000006 - Statement - CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/ConsolidatedStatementsOfStockholdersEquity</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>00000007 - Statement - CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/ConsolidatedStatementsOfStockholdersEquityParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>00000008 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS (USD $)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/CondensedConsolidatedStatementsOfCashFlowsUsd</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS (USD $)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>00000009 - Disclosure - 1. Organization and Nature of Business</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/CompanyOverview</Role>
      <ShortName>1. Organization and Nature of Business</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>00000010 - Disclosure - 2. Summary of Significant Accounting Policies and Recent Accounting Pronouncements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/SummaryOfSignificantAccountingPolicies</Role>
      <ShortName>2. Summary of Significant Accounting Policies and Recent Accounting Pronouncements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>00000011 - Disclosure - 3. Fair Value Measurement</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/FairValueMeasurement</Role>
      <ShortName>3. Fair Value Measurement</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>00000012 - Disclosure - 4. Business Combinations and Other Acquisitions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/BusinessCombinationsAndOtherAcquisitions</Role>
      <ShortName>4. Business Combinations and Other Acquisitions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>00000013 - Disclosure - 5. Accounts Receivable</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/AccountsReceivable</Role>
      <ShortName>5. Accounts Receivable</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>00000014 - Disclosure - 6. Notes Receivable</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://pernixtx.com/role/NotesReceivable</Role>
      <ShortName>6. Notes Receivable</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>00000015 - Disclosure - 7. Inventory</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/Inventory</Role>
      <ShortName>7. Inventory</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>00000016 - Disclosure - 8. Property, Plant &amp; Equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/PropertyPlantEquipment</Role>
      <ShortName>8. Property, Plant &amp; Equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>00000017 - Disclosure - 9. Goodwill and Intangible Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/IntangibleAssetsAndGoodwill</Role>
      <ShortName>9. Goodwill and Intangible Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>00000018 - Disclosure - 10. Accrued Allowances</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/AccruedAllowances</Role>
      <ShortName>10. Accrued Allowances</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>00000019 - Disclosure - 11. Accrued Expenses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/AccruedExpenses</Role>
      <ShortName>11. Accrued Expenses</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>00000020 - Disclosure - 12. Other Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/OtherLiabilities</Role>
      <ShortName>12. Other Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>00000021 - Disclosure - 13. Debt and Lines of Credit</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/DebtAndLinesOfCredit</Role>
      <ShortName>13. Debt and Lines of Credit</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>00000022 - Disclosure - 14. Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/StockholdersEquity</Role>
      <ShortName>14. Stockholders' Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>00000023 - Disclosure - 15. Concentrations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/Concentrations</Role>
      <ShortName>15. Concentrations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>00000024 - Disclosure - 16. Other Revenue Sharing Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/OtherRevenueSharingArrangements</Role>
      <ShortName>16. Other Revenue Sharing Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>00000025 - Disclosure - 17. Stock Benefit Plans and Stock-Based Compensation Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/StockBenefitPlansAndStock-BasedCompensation</Role>
      <ShortName>17. Stock Benefit Plans and Stock-Based Compensation Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>00000026 - Disclosure - 18. Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/IncomeTaxes</Role>
      <ShortName>18. Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>00000027 - Disclosure - 19. Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/CommitmentsAndContingencies</Role>
      <ShortName>19. Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>00000028 - Disclosure - 20. Restructuring</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/Restructuring</Role>
      <ShortName>20. Restructuring</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>00000029 - Disclosure - 21. Supplemental Cash Flow Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/SupplementalCashFlowInformation</Role>
      <ShortName>21. Supplemental Cash Flow Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>00000030 - Disclosure - 22. Quarterly Financial Data (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/QuarterlyFinancialData</Role>
      <ShortName>22. Quarterly Financial Data (Unaudited)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>00000031 - Disclosure - Valuation and Qualifying Accounts</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/ValuationAndQualifyingAccounts</Role>
      <ShortName>Valuation and Qualifying Accounts</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>00000032 - Disclosure - 2. Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/CompanyOverviewPolicies</Role>
      <ShortName>2. Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://pernixtx.com/role/SummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>00000033 - Disclosure - 2. Summary of Significant Accounting Policies and Recent Accounting Pronouncements (Earnings per Share) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/EarningsPerShareTables</Role>
      <ShortName>2. Summary of Significant Accounting Policies and Recent Accounting Pronouncements (Earnings per Share) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pernixtx.com/role/SummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>00000034 - Disclosure - 3. Fair Value Measurement (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/FairValueMeasurementTables</Role>
      <ShortName>3. Fair Value Measurement (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pernixtx.com/role/FairValueMeasurement</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>00000035 - Disclosure - 4. Business Combinations and Other Acquisitions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/BusinessCombinationsAndOtherAcquisitionsTables</Role>
      <ShortName>4. Business Combinations and Other Acquisitions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pernixtx.com/role/BusinessCombinationsAndOtherAcquisitions</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>00000036 - Disclosure - 5. Accounts Receivables (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/AccountsReceivablesTables</Role>
      <ShortName>5. Accounts Receivables (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pernixtx.com/role/AccountsReceivable</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>00000037 - Disclosure - 7. Inventory (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/InventoryTables</Role>
      <ShortName>7. Inventory (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pernixtx.com/role/Inventory</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>00000038 - Disclosure - 8. Property, Plant &amp; Equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/PropertyPlantEquipmentTables</Role>
      <ShortName>8. Property, Plant &amp; Equipment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pernixtx.com/role/PropertyPlantEquipment</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>00000039 - Disclosure - 9. Goodwill and Intangible Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/IntangibleAssetsAndGoodwillTables</Role>
      <ShortName>9. Goodwill and Intangible Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pernixtx.com/role/IntangibleAssetsAndGoodwill</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>00000040 - Disclosure - 10. Accrued Allowances (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/AccruedAllowancesTables</Role>
      <ShortName>10. Accrued Allowances (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pernixtx.com/role/AccruedAllowances</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>00000041 - Disclosure - 11. Accrued Expenses (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/AccruedExpensesTables</Role>
      <ShortName>11. Accrued Expenses (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pernixtx.com/role/AccruedExpenses</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>00000042 - Disclosure - 12. Other Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/OtherLiabilitiesTables</Role>
      <ShortName>12. Other Liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pernixtx.com/role/OtherLiabilities</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>00000043 - Disclosure - 13. Debt and Lines of Credit (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/DebtAndLinesOfCreditTables</Role>
      <ShortName>13. Debt and Lines of Credit (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pernixtx.com/role/DebtAndLinesOfCredit</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>00000044 - Disclosure - 15. Concentrations (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/ConcentrationsTables</Role>
      <ShortName>15. Concentrations (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pernixtx.com/role/Concentrations</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>00000045 - Disclosure - 17. Stock Benefit Plans and Stock-Based CompensationPlans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/StockBenefitPlansAndStock-BasedCompensationTables</Role>
      <ShortName>17. Stock Benefit Plans and Stock-Based CompensationPlans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pernixtx.com/role/StockBenefitPlansAndStock-BasedCompensation</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>00000046 - Disclosure - 18. Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/IncomeTaxesTables</Role>
      <ShortName>18. Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pernixtx.com/role/IncomeTaxes</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>00000047 - Disclosure - 19. Commitments and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/CommitmentsAndContingenciesTables</Role>
      <ShortName>19. Commitments and Contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pernixtx.com/role/CommitmentsAndContingencies</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>00000048 - Disclosure - 20. Restructuring (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/RestructuringTables</Role>
      <ShortName>20. Restructuring (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pernixtx.com/role/Restructuring</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>00000049 - Disclosure - 21. Schedule of Cash Flow, Supplemental Disclosures (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/ScheduleOfCashFlowSupplementalDisclosuresTables</Role>
      <ShortName>21. Schedule of Cash Flow, Supplemental Disclosures (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>00000050 - Disclosure - 22. Quarterly Financial Data (Unaudited) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/QuarterlyFinancialDataTables</Role>
      <ShortName>22. Quarterly Financial Data (Unaudited) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pernixtx.com/role/QuarterlyFinancialData</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>00000051 - Disclosure - Valuation Reserves Schedule (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/ValuationReservesScheduleTables</Role>
      <ShortName>Valuation Reserves Schedule (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>00000052 - Disclosure - 2. Summary of Significant Accounting Policies Earnings per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/EarningsPerShareDetails</Role>
      <ShortName>2. Summary of Significant Accounting Policies Earnings per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>00000053 - Disclosure - 2. Summary of Significant Accounting Policies Earnings Per Share Excluded (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/SummaryOfSignificantAccountingPoliciesEarningsPerShareExcludedDetails</Role>
      <ShortName>2. Summary of Significant Accounting Policies Earnings Per Share Excluded (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>00000054 - Disclosure - 3. Fair Value Measurement (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/FairValueMeasurementDetails</Role>
      <ShortName>3. Fair Value Measurement (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/FairValueMeasurementTables</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>00000055 - Disclosure - 3. Fair Value Measurement (Debt Instruments) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/FairValueMeasurementDebtInstrumentsDetails</Role>
      <ShortName>3. Fair Value Measurement (Debt Instruments) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/FairValueMeasurementTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>00000056 - Disclosure - 3. Fair Value Measurements Using Significant Unobservable Inputs (Level 3) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/FairValueMeasurementsUsingSignificantUnobservableInputsLevel3Details</Role>
      <ShortName>3. Fair Value Measurements Using Significant Unobservable Inputs (Level 3) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>00000057 - Disclosure - 4. Business Combination (Purchase Price and Fair Value) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/BusinessCombinationPurchasePriceAndFairValueDetails</Role>
      <ShortName>4. Business Combination (Purchase Price and Fair Value) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/BusinessCombinationsAndOtherAcquisitionsTables</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>00000058 - Disclosure - 4. Business Combinations (Pro Forma Financial Information with Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/BusinessCombinationsProFormaFinancialInformationWithNarrativeDetails</Role>
      <ShortName>4. Business Combinations (Pro Forma Financial Information with Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/BusinessCombinationsAndOtherAcquisitionsTables</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>00000059 - Disclosure - 5. Accounts Receivable (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/AccountsReceivableDetails</Role>
      <ShortName>5. Accounts Receivable (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/AccountsReceivablesTables</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>00000060 - Disclosure - 7. Inventory (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/InventoriesDetails</Role>
      <ShortName>7. Inventory (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/InventoryTables</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>00000061 - Disclosure - 8. Property, Plant &amp; Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/PropertyPlantEquipmentDetails</Role>
      <ShortName>8. Property, Plant &amp; Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/PropertyPlantEquipmentTables</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>00000062 - Disclosure - 8. Property, Plant &amp; Equipment (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/PropertyPlantEquipmentDetailsNarrative</Role>
      <ShortName>8. Property, Plant &amp; Equipment (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/PropertyPlantEquipmentTables</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>00000063 - Disclosure - 9. Goodwill (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/GoodwillDetails</Role>
      <ShortName>9. Goodwill (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/IntangibleAssetsAndGoodwillTables</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>00000064 - Disclosure - 9. Goodwill and Intangible Assets (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/IntangibleAssetsAndGoodwillDetails</Role>
      <ShortName>9. Goodwill and Intangible Assets (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/IntangibleAssetsAndGoodwillTables</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>00000065 - Disclosure - 9. Goodwill and Intangible Assets (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/IntangibleAssetsAndGoodwillDetails1</Role>
      <ShortName>9. Goodwill and Intangible Assets (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/IntangibleAssetsAndGoodwillTables</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>00000066 - Disclosure - 9. Goodwill and Intangible Assets (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/IntangibleAssetsAndGoodwillDetailsNarrative</Role>
      <ShortName>9. Goodwill and Intangible Assets (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/IntangibleAssetsAndGoodwillTables</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>00000067 - Disclosure - 10. Accrued Allowances (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/AccruedAllowancesDetails</Role>
      <ShortName>10. Accrued Allowances (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/AccruedAllowancesTables</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>00000068 - Disclosure - 11. Accrued Expenses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/AccruedExpensesDetails</Role>
      <ShortName>11. Accrued Expenses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/AccruedExpensesTables</ParentRole>
      <Position>68</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>00000069 - Disclosure - 12. Other Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/OtherLiabilitiesDetails</Role>
      <ShortName>12. Other Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/OtherLiabilitiesTables</ParentRole>
      <Position>69</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>00000070 - Disclosure - 13. Debt and Lines of Credit (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/DebtAndLinesOfCreditDetails</Role>
      <ShortName>13. Debt and Lines of Credit (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/DebtAndLinesOfCreditTables</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>00000071 - Disclosure - 13. Debt and Lines of Credit (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/DebtAndLinesOfCreditDetails1</Role>
      <ShortName>13. Debt and Lines of Credit (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/DebtAndLinesOfCreditTables</ParentRole>
      <Position>71</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>00000072 - Disclosure - 13. Debt and Lines of Credit (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/DebtAndLinesOfCreditDetailsNarrative</Role>
      <ShortName>13. Debt and Lines of Credit (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/DebtAndLinesOfCreditTables</ParentRole>
      <Position>72</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>00000073 - Disclosure - 15. Concentrations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/ConcentrationsDetails</Role>
      <ShortName>15. Concentrations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/ConcentrationsTables</ParentRole>
      <Position>73</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>00000074 - Disclosure - 15. Concentrations (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/CompanyOverviewDetails1</Role>
      <ShortName>15. Concentrations (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/ConcentrationsTables</ParentRole>
      <Position>74</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>00000075 - Disclosure - 16. Other Revenue Sharing Arrangements (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/OtherRevenueSharingArrangementsDetailsNarrative</Role>
      <ShortName>16. Other Revenue Sharing Arrangements (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/OtherRevenueSharingArrangements</ParentRole>
      <Position>75</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>00000076 - Disclosure - 17. Stock Benefit Plans and Stock-Based Compensation Assumptions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/StockholdersEquityDetails</Role>
      <ShortName>17. Stock Benefit Plans and Stock-Based Compensation Assumptions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/StockBenefitPlansAndStock-BasedCompensationTables</ParentRole>
      <Position>76</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>00000077 - Disclosure - 17. Stock Benefit Plans and Stock-Based Compensation Option Activity (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/StockholdersEquityDetails1</Role>
      <ShortName>17. Stock Benefit Plans and Stock-Based Compensation Option Activity (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>00000078 - Disclosure - 17. Stock Benefit Plans and Stock-Based Compensation Restricted Stock (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/StockholdersEquityDetails2</Role>
      <ShortName>17. Stock Benefit Plans and Stock-Based Compensation Restricted Stock (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>00000079 - Disclosure - 18. Income Taxes (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/IncomeTaxesDetails1</Role>
      <ShortName>18. Income Taxes (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/IncomeTaxesTables</ParentRole>
      <Position>79</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>00000080 - Disclosure - 18. Income Taxes (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/IncomeTaxesDetails2</Role>
      <ShortName>18. Income Taxes (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/IncomeTaxesTables</ParentRole>
      <Position>80</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>00000081 - Disclosure - 18. Income Taxes (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/IncomeTaxesDetails3</Role>
      <ShortName>18. Income Taxes (Details 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/IncomeTaxesTables</ParentRole>
      <Position>81</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>00000082 - Disclosure - 18. Income Taxes (Unrecognized Tax Benefits) (Details 4)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/IncomeTaxesUnrecognizedTaxBenefitsDetails4</Role>
      <ShortName>18. Income Taxes (Unrecognized Tax Benefits) (Details 4)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/IncomeTaxesTables</ParentRole>
      <Position>82</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>00000083 - Disclosure - 18. Income Taxes (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/IncomeTaxesDetailsNarrative</Role>
      <ShortName>18. Income Taxes (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/IncomeTaxesTables</ParentRole>
      <Position>83</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>00000084 - Disclosure - 19. Commitments and Contingencies (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/CommitmentsAndContingenciesDetails1</Role>
      <ShortName>19. Commitments and Contingencies (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/CommitmentsAndContingenciesTables</ParentRole>
      <Position>84</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>00000085 - Disclosure - 19. Commitments and Contingencies (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/CommitmentsAndContingenciesDetails2</Role>
      <ShortName>19. Commitments and Contingencies (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/CommitmentsAndContingenciesTables</ParentRole>
      <Position>85</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>00000086 - Disclosure - 19. Commitments and Contingencies (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/CommitmentsAndContingenciesDetailsNarrative</Role>
      <ShortName>19. Commitments and Contingencies (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/CommitmentsAndContingenciesTables</ParentRole>
      <Position>86</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>00000087 - Disclosure - 20. Restructuring Plans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/RestructuringPlansDetails</Role>
      <ShortName>20. Restructuring Plans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>00000088 - Disclosure - 21. Supplemental Cash Flow Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/SupplementalCashFlowInformationDetails</Role>
      <ShortName>21. Supplemental Cash Flow Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/SupplementalCashFlowInformation</ParentRole>
      <Position>88</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>00000089 - Disclosure - 22. Quarterly Financial Data (Unaudited)(Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/QuarterlyFinancialDataUnauditeddetails</Role>
      <ShortName>22. Quarterly Financial Data (Unaudited)(Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/QuarterlyFinancialDataTables</ParentRole>
      <Position>89</Position>
    </Report>
    <Report instance="ptx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>00000090 - Disclosure - Valuation and Qualifying Accounts (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pernixtx.com/role/ValuationAndQualifyingAccountsDetails</Role>
      <ShortName>Valuation and Qualifying Accounts (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pernixtx.com/role/ValuationAndQualifyingAccounts</ParentRole>
      <Position>90</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>ptx-20161231.xml</File>
    <File>ptx-20161231.xsd</File>
    <File>ptx-20161231_cal.xml</File>
    <File>ptx-20161231_def.xml</File>
    <File>ptx-20161231_lab.xml</File>
    <File>ptx-20161231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies/>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
