<?xml version='1.0' encoding='UTF-8'?>
<FilingSummary>
  <Version>3.7.0.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>331</ContextCount>
  <ElementCount>408</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>91</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>7</UnitCount>
  <MyReports>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>001 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>002 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/ConsolidatedStatementsOfOperations</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF OPERATIONS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>003 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (LOSS)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/ConsolidatedStatementsOfComprehensiveIncomeLoss</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (LOSS)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>004 - Statement - CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>005 - Statement - CONSOLIDATED BALANCE SHEETS (Parentheticals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/ConsolidatedBalanceSheetsParentheticals</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (Parentheticals)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>006 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/ConsolidatedStatementsOfCashFlows</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>007 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY (DEFICIT)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/ConsolidatedStatementsOfChangesInStockholdersEquityDeficit</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY (DEFICIT)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>008 - Disclosure - Description of Business</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/DescriptionOfBusiness</Role>
      <ShortName>Description of Business</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>009 - Disclosure - Summary of Significant Accounting Policies and New Accounting Standards</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/SummaryOfSignificantAccountingPoliciesAndNewAccountingStandards</Role>
      <ShortName>Summary of Significant Accounting Policies and New Accounting Standards</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>010 - Disclosure - Statements of Operations-Additional Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/StatementsOfOperationsAdditionalInformation</Role>
      <ShortName>Statements of Operations-Additional Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>011 - Disclosure - Balance Sheets-Additional Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/BalanceSheetsAdditionalInformation</Role>
      <ShortName>Balance Sheets-Additional Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>012 - Disclosure - Acquisitions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/Acquisitions</Role>
      <ShortName>Acquisitions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>013 - Disclosure - Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/Debt</Role>
      <ShortName>Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>014 - Disclosure - Common Stock, Preferred Stock and Dividends</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/CommonStockWarrantPreferredStockAndDividends</Role>
      <ShortName>Common Stock, Preferred Stock and Dividends</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>015 - Disclosure - Stock Option Plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/StockOptionPlan</Role>
      <ShortName>Stock Option Plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>016 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/RelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>017 - Disclosure - Employee Benefit Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/EmployeeBenefitPlans</Role>
      <ShortName>Employee Benefit Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>018 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>019 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/CommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>020 - Disclosure - Derivatives</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/Derivatives</Role>
      <ShortName>Derivatives</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>021 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/FairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>022 - Disclosure - Business Segments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/BusinessSegments</Role>
      <ShortName>Business Segments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>023 - Disclosure - Geographic Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/GeographicInformation</Role>
      <ShortName>Geographic Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>024 - Disclosure - Summary of Significant Accounting Policies and New Accounting Standards (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/SummaryofSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies and New Accounting Standards (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.pahc.com/role/SummaryOfSignificantAccountingPoliciesAndNewAccountingStandards</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>025 - Disclosure - Summary of Significant Accounting Policies and New Accounting Standards (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/SummaryOfSignificantAccountingPoliciesAndNewAccountingStandardsTables</Role>
      <ShortName>Summary of Significant Accounting Policies and New Accounting Standards (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.pahc.com/role/SummaryOfSignificantAccountingPoliciesAndNewAccountingStandards</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>026 - Disclosure - Statements of Operations-Additional Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/StatementsofOperationsAdditionalInformationTables</Role>
      <ShortName>Statements of Operations-Additional Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.pahc.com/role/StatementsOfOperationsAdditionalInformation</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>027 - Disclosure - Balance Sheets-Additional Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/BalanceSheetsAdditionalInformationTables</Role>
      <ShortName>Balance Sheets-Additional Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.pahc.com/role/BalanceSheetsAdditionalInformation</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>028 - Disclosure - Acquisitions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/AcquisitionsTables</Role>
      <ShortName>Acquisitions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.pahc.com/role/Acquisitions</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>029 - Disclosure - Debt (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/DebtTables</Role>
      <ShortName>Debt (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.pahc.com/role/Debt</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>030 - Disclosure - Common Stock, Preferred Stock and Dividends (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/CommonStockPreferredStockAndDividendsTables</Role>
      <ShortName>Common Stock, Preferred Stock and Dividends (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.pahc.com/role/CommonStockWarrantPreferredStockAndDividends</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>031 - Disclosure - Stock Option Plan (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/StockOptionPlanTables</Role>
      <ShortName>Stock Option Plan (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.pahc.com/role/StockOptionPlan</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>032 - Disclosure - Employee Benefit Plans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/EmployeeBenefitPlansTables</Role>
      <ShortName>Employee Benefit Plans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.pahc.com/role/EmployeeBenefitPlans</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>033 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/IncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.pahc.com/role/IncomeTaxes</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>034 - Disclosure - Commitments and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/CommitmentsandContingenciesTables</Role>
      <ShortName>Commitments and Contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.pahc.com/role/CommitmentsAndContingencies</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>035 - Disclosure - Derivatives (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/DerivativesTables</Role>
      <ShortName>Derivatives (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.pahc.com/role/Derivatives</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>036 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/FairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.pahc.com/role/FairValueMeasurements</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>037 - Disclosure - Business Segments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/BusinessSegmentsTables</Role>
      <ShortName>Business Segments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.pahc.com/role/BusinessSegments</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>038 - Disclosure - Geographic Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/GeographicInformationTables</Role>
      <ShortName>Geographic Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.pahc.com/role/GeographicInformation</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>039 - Disclosure - Summary of Significant Accounting Policies and New Accounting Standards (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/SummaryofSignificantAccountingPoliciesandNewAccountingStandardsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies and New Accounting Standards (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/SummaryOfSignificantAccountingPoliciesAndNewAccountingStandardsTables</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>040 - Disclosure - Summary of Significant Accounting Policies and New Accounting Standards (Detail Textuals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/SummaryofsignificantaccountingpoliciesdetailTextuals</Role>
      <ShortName>Summary of Significant Accounting Policies and New Accounting Standards (Detail Textuals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/SummaryOfSignificantAccountingPoliciesAndNewAccountingStandardsTables</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>041 - Disclosure - Summary of Significant Accounting Policies and New Accounting Standards (Detail Textuals 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/Summaryofsignificantaccountingpoliciesdetailtextuals1</Role>
      <ShortName>Summary of Significant Accounting Policies and New Accounting Standards (Detail Textuals 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/SummaryOfSignificantAccountingPoliciesAndNewAccountingStandardsTables</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>042 - Disclosure - Statements of Operations-Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/StatementsOfOperationsAdditionalInformationDetails</Role>
      <ShortName>Statements of Operations-Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/StatementsofOperationsAdditionalInformationTables</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>043 - Disclosure - Statements of Operations-Additional Information (Detail Textuals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/StatementsOfOperationsAdditionalInformationDetailTextuals1</Role>
      <ShortName>Statements of Operations-Additional Information (Detail Textuals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/StatementsofOperationsAdditionalInformationTables</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>044 - Disclosure - Balance Sheets-Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/BalanceSheetsAdditionalInformationDetails</Role>
      <ShortName>Balance Sheets-Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/BalanceSheetsAdditionalInformationTables</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>045 - Disclosure - Balance Sheets-Additional Information (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/BalanceSheetsAdditionalInformationDetail1</Role>
      <ShortName>Balance Sheets-Additional Information (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/BalanceSheetsAdditionalInformationTables</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>046 - Disclosure - Balance Sheets-Additional Information (Detail Textuals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/BalanceSheetsAdditionalInformationDetailTextuals</Role>
      <ShortName>Balance Sheets-Additional Information (Detail Textuals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/BalanceSheetsAdditionalInformationTables</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>047 - Disclosure - Acquisitions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/AcquisitionsDetails</Role>
      <ShortName>Acquisitions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/AcquisitionsTables</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>048 - Disclosure - Acquisitions (Detail Textuals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/AcquisitionsDetailTextuals</Role>
      <ShortName>Acquisitions (Detail Textuals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/AcquisitionsTables</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>049 - Disclosure - Debt - Summary of long-term debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/DebtDetail</Role>
      <ShortName>Debt - Summary of long-term debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>050 - Disclosure - Debt - Aggregate maturities of long-term debt (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/DebtAggregateMaturitiesOfLongTermDebtDetail1</Role>
      <ShortName>Debt - Aggregate maturities of long-term debt (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>051 - Disclosure - Debt (Detail Textuals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/DebtDetailTextuals</Role>
      <ShortName>Debt (Detail Textuals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/DebtTables</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>052 - Disclosure - Common Stock, Preferred Stock and Dividends - Summary of preferred and common shares (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/CommonStockPreferredStockAndDividendsSummaryOfPreferredAndCommonSharesDetails</Role>
      <ShortName>Common Stock, Preferred Stock and Dividends - Summary of preferred and common shares (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>053 - Disclosure - Common Stock, Preferred Stock and Dividends (Detail Textuals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/CommonStockPreferredStockAndDividendsDetailTextuals</Role>
      <ShortName>Common Stock, Preferred Stock and Dividends (Detail Textuals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/CommonStockPreferredStockAndDividendsTables</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>054 - Disclosure - Stock Option Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/StockOptionPlanDetails</Role>
      <ShortName>Stock Option Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/StockOptionPlanTables</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>055 - Disclosure - Stock Option Plan (Detail Textuals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/StockOptionPlanDetailTextuals</Role>
      <ShortName>Stock Option Plan (Detail Textuals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/StockOptionPlanTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>056 - Disclosure - Related Party Transactions (Detail Textuals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/RelatedPartyTransactionsDetailTextuals</Role>
      <ShortName>Related Party Transactions (Detail Textuals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/RelatedPartyTransactions</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>057 - Disclosure - Employee Benefit Plans - Changes in projected benefit obligation, plan assets and funded status (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/EmployeeBenefitPlansChangesInProjectedBenefitObligationPlanAssetsAndFundedStatusDetails</Role>
      <ShortName>Employee Benefit Plans - Changes in projected benefit obligation, plan assets and funded status (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>058 - Disclosure - Employee Benefit Plans - Change in Accumulated Other Comprehensive (Income) Loss (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/EmployeeBenefitPlansChangeInAccumulatedOtherComprehensiveIncomeLossDetails1</Role>
      <ShortName>Employee Benefit Plans - Change in Accumulated Other Comprehensive (Income) Loss (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>059 - Disclosure - Employee Benefit Plans - Net periodic pension expense (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/EmployeeBenefitPlansNetPeriodicPensionExpenseDetails2</Role>
      <ShortName>Employee Benefit Plans - Net periodic pension expense (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>060 - Disclosure - Employee Benefit Plans - Significant actuarial assumptions for plan (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/EmployeeBenefitPlansSignificantActuarialAssumptionsForPlanDetails3</Role>
      <ShortName>Employee Benefit Plans - Significant actuarial assumptions for plan (Details 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>061 - Disclosure - Employee Benefit Plans - Estimated future benefit payments including benefits attributable to future service (Details 4)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/EmployeeBenefitPlansEstimatedFutureBenefitPaymentsIncludingBenefitsAttributableToFutureServiceDetails4</Role>
      <ShortName>Employee Benefit Plans - Estimated future benefit payments including benefits attributable to future service (Details 4)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>062 - Disclosure - Employee Benefit Plans - Plan's target asset allocations and weighted average asset allocation of plan assets (Details 5)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/EmployeeBenefitPlansPlansTargetAssetAllocationsAndWeightedAverageAssetAllocationOfPlanAssetsDetails5</Role>
      <ShortName>Employee Benefit Plans - Plan's target asset allocations and weighted average asset allocation of plan assets (Details 5)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>063 - Disclosure - Employee Benefit Plans - Fair values of plan assets by asset category (Details 6)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/EmployeeBenefitPlansFairValuesOfPlanAssetsByAssetCategoryDetails6</Role>
      <ShortName>Employee Benefit Plans - Fair values of plan assets by asset category (Details 6)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>064 - Disclosure - Employee Benefit Plans - Change in Fair Value of Level 3 Assets (Details 7)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/EmployeeBenefitPlansChangeInFairValueOfLevel3AssetsDetails7</Role>
      <ShortName>Employee Benefit Plans - Change in Fair Value of Level 3 Assets (Details 7)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>065 - Disclosure - Employee Benefit Plans (Detail Textuals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/EmployeeBenefitPlansDetailTextuals</Role>
      <ShortName>Employee Benefit Plans (Detail Textuals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/EmployeeBenefitPlansTables</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>066 - Disclosure - Employee Benefit Plans (Detail Textuals 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/EmployeeBenefitPlansDetailTextuals1</Role>
      <ShortName>Employee Benefit Plans (Detail Textuals 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/EmployeeBenefitPlansTables</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>067 - Disclosure - Income Taxes - Income (loss) before income taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/IncomeTaxesIncomeLossBeforeIncomeTaxesDetails</Role>
      <ShortName>Income Taxes - Income (loss) before income taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>068 - Disclosure - Income Taxes - Components of provision for income taxes (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/IncomeTaxesComponentsOfProvisionForIncomeTaxesDetails1</Role>
      <ShortName>Income Taxes - Components of provision for income taxes (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>069 - Disclosure - Income Taxes - Reconciliations of Federal statutory rate to effective tax rate (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/IncomeTaxesReconciliationsOfFederalStatutoryRateToCompanysEffectiveTaxRateDetails2</Role>
      <ShortName>Income Taxes - Reconciliations of Federal statutory rate to effective tax rate (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>070 - Disclosure - Income Taxes - Tax effects of significant temporary differences of deferred tax assets and liabilities (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/Incometaxestaxeffectsofsignificanttemporarydifferencesofdeferredtaxassetsandliabilitiesdetails3</Role>
      <ShortName>Income Taxes - Tax effects of significant temporary differences of deferred tax assets and liabilities (Details 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>071 - Disclosure - Income Taxes - Deferred taxes included in consolidated balance sheets (Details 4)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/IncomeTaxesDeferredTaxesIncludedInConsolidatedBalanceSheetsDetails4</Role>
      <ShortName>Income Taxes - Deferred taxes included in consolidated balance sheets (Details 4)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>072 - Disclosure - Income Taxes - Valuation allowance for deferred tax assets (Details 5)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/IncomeTaxesValuationAllowanceForDeferredTaxAssetsDetails5</Role>
      <ShortName>Income Taxes - Valuation allowance for deferred tax assets (Details 5)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>073 - Disclosure - Income Taxes - Reconciliation of unrecognized tax benefits (Details 6)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/IncomeTaxesReconciliationOfUnrecognizedTaxBenefitsDetails6</Role>
      <ShortName>Income Taxes - Reconciliation of unrecognized tax benefits (Details 6)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>074 - Disclosure - Income Taxes (Detail Textuals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/IncomeTaxesDetailTextuals</Role>
      <ShortName>Income Taxes (Detail Textuals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/IncomeTaxesTables</ParentRole>
      <Position>74</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>075 - Disclosure - Commitments and Contingencies - Future minimum lease commitments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/CommitmentsAndContingenciesFutureMinimumLeaseCommitmentsDetails</Role>
      <ShortName>Commitments and Contingencies - Future minimum lease commitments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>076 - Disclosure - Commitments and Contingencies (Detail Textuals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/CommitmentsAndContingenciesDetailTextuals</Role>
      <ShortName>Commitments and Contingencies (Detail Textuals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/CommitmentsandContingenciesTables</ParentRole>
      <Position>76</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>077 - Disclosure - Derivatives (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/DerivativesDetails</Role>
      <ShortName>Derivatives (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/DerivativesTables</ParentRole>
      <Position>77</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>078 - Disclosure - Derivatives (Detail Textuals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/DerivativesDetailTextuals</Role>
      <ShortName>Derivatives (Detail Textuals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/DerivativesTables</ParentRole>
      <Position>78</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>079 - Disclosure - Fair Value Measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/FairValueMeasurementsDetails</Role>
      <ShortName>Fair Value Measurements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>79</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>080 - Disclosure - Fair Value Measurements (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/FairValueMeasurementsDetails2</Role>
      <ShortName>Fair Value Measurements (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>80</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>081 - Disclosure - Business Segments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/BusinessSegmentsDetails</Role>
      <ShortName>Business Segments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/BusinessSegmentsTables</ParentRole>
      <Position>81</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>082 - Disclosure - Business Segments (Detail Textuals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/Businesssegmentsdetailtextual</Role>
      <ShortName>Business Segments (Detail Textuals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/BusinessSegmentsTables</ParentRole>
      <Position>82</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>083 - Disclosure - Geographic Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/GeographicInformationDetails</Role>
      <ShortName>Geographic Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/GeographicInformationTables</ParentRole>
      <Position>83</Position>
    </Report>
    <Report instance="pahc-20170630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>084 - Disclosure - Geographic Information (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pahc.com/role/GeographicInformationDetails1</Role>
      <ShortName>Geographic Information (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pahc.com/role/GeographicInformationTables</ParentRole>
      <Position>84</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>pahc-20170630.xml</File>
    <File>pahc-20170630.xsd</File>
    <File>pahc-20170630_cal.xml</File>
    <File>pahc-20170630_def.xml</File>
    <File>pahc-20170630_lab.xml</File>
    <File>pahc-20170630_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies/>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
