<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.24.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>614</ContextCount>
  <ElementCount>621</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>168</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>16</UnitCount>
  <MyReports>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>100000 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>100010 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>100030 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>100040 - Statement - Consolidated Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations</Role>
      <ShortName>Consolidated Statements of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>100050 - Statement - Consolidated Statements of Comprehensive (Loss) Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLossIncome</Role>
      <ShortName>Consolidated Statements of Comprehensive (Loss) Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>100060 - Statement - Consolidated Statements of Shareholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity</Role>
      <ShortName>Consolidated Statements of Shareholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>100070 - Statement - Consolidated Statements of Shareholders' Equity (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquityParenthetical</Role>
      <ShortName>Consolidated Statements of Shareholders' Equity (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>100080 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>100090 - Disclosure - Description of Business</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDescriptionOfBusiness</Role>
      <ShortName>Description of Business</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>100100 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>100110 - Disclosure - Allowance for Credit Losses (Trade Receivables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/DisclosureAllowanceForCreditLossesTradeReceivables</Role>
      <ShortName>Allowance for Credit Losses (Trade Receivables)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>100120 - Disclosure - Inventories</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInventories</Role>
      <ShortName>Inventories</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>100130 - Disclosure - Property, Plant and Equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipment</Role>
      <ShortName>Property, Plant and Equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>100140 - Disclosure - Operating Lease Right of Use Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseRightOfUseAssets</Role>
      <ShortName>Operating Lease Right of Use Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>100150 - Disclosure - Intangible Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssets</Role>
      <ShortName>Intangible Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>100160 - Disclosure - Investments in Joint Ventures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInvestmentsInJointVentures</Role>
      <ShortName>Investments in Joint Ventures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>100170 - Disclosure - Other Current Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilities</Role>
      <ShortName>Other Current Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>100180 - Disclosure - Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebt</Role>
      <ShortName>Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>100190 - Disclosure - Operating Lease Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilities</Role>
      <ShortName>Operating Lease Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>100200 - Disclosure - Pension and Other Postretirement Benefits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefits</Role>
      <ShortName>Pension and Other Postretirement Benefits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>100210 - Disclosure - Commitments and Contingent Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilities</Role>
      <ShortName>Commitments and Contingent Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>100220 - Disclosure - Equity Rights Offering</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOffering</Role>
      <ShortName>Equity Rights Offering</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>100230 - Disclosure - Accumulated Other Comprehensive Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLoss</Role>
      <ShortName>Accumulated Other Comprehensive Loss</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>100240 - Disclosure - Derivative Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstruments</Role>
      <ShortName>Derivative Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>100250 - Disclosure - Fair Value</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureFairValue</Role>
      <ShortName>Fair Value</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>100260 - Disclosure - Revenue</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenue</Role>
      <ShortName>Revenue</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>100270 - Disclosure - Stock-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensation</Role>
      <ShortName>Stock-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>100280 - Disclosure - Research and Development Costs</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureResearchAndDevelopmentCosts</Role>
      <ShortName>Research and Development Costs</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>100290 - Disclosure - Litigation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigation</Role>
      <ShortName>Litigation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>100300 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>100310 - Disclosure - Environmental Matters</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEnvironmentalMatters</Role>
      <ShortName>Environmental Matters</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>100320 - Disclosure - Related Parties</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedParties</Role>
      <ShortName>Related Parties</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>100330 - Disclosure - Business Segments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegments</Role>
      <ShortName>Business Segments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>100340 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>100350 - Disclosure - Inventories (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInventoriesTables</Role>
      <ShortName>Inventories (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInventories</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>100360 - Disclosure - Property, Plant and Equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentTables</Role>
      <ShortName>Property, Plant and Equipment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipment</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>100370 - Disclosure - Operating Lease Right of Use Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseRightOfUseAssetsTables</Role>
      <ShortName>Operating Lease Right of Use Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseRightOfUseAssets</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>100380 - Disclosure - Intangible Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsTables</Role>
      <ShortName>Intangible Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssets</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>100390 - Disclosure - Other Current Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesTables</Role>
      <ShortName>Other Current Liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilities</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>100400 - Disclosure - Debt (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtTables</Role>
      <ShortName>Debt (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebt</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>100410 - Disclosure - Operating Lease Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesTables</Role>
      <ShortName>Operating Lease Liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilities</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>100420 - Disclosure - Pension and Other Postretirement Benefits (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsTables</Role>
      <ShortName>Pension and Other Postretirement Benefits (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefits</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>100430 - Disclosure - Equity Rights Offering (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingTables</Role>
      <ShortName>Equity Rights Offering (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOffering</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>100440 - Disclosure - Accumulated Other Comprehensive Loss (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossTables</Role>
      <ShortName>Accumulated Other Comprehensive Loss (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLoss</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>100450 - Disclosure - Derivative Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsTables</Role>
      <ShortName>Derivative Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstruments</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>100460 - Disclosure - Fair Value (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureFairValueTables</Role>
      <ShortName>Fair Value (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureFairValue</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>100470 - Disclosure - Revenue (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueTables</Role>
      <ShortName>Revenue (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenue</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>100480 - Disclosure - Stock-Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationTables</Role>
      <ShortName>Stock-Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensation</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>100490 - Disclosure - Litigation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationTables</Role>
      <ShortName>Litigation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigation</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>100500 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxes</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>100510 - Disclosure - Related Parties (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesTables</Role>
      <ShortName>Related Parties (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedParties</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>100520 - Disclosure - Business Segments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsTables</Role>
      <ShortName>Business Segments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegments</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>100530 - Disclosure - Description of Business - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDescriptionOfBusinessAdditionalInformationDetail</Role>
      <ShortName>Description of Business - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>100540 - Disclosure - Summary of Significant Accounting Policies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>100550 - Disclosure - Allowance for Credit Losses (Trade Receivables) - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/DisclosureAllowanceForCreditLossesTradeReceivablesAdditionalInformationDetail</Role>
      <ShortName>Allowance for Credit Losses (Trade Receivables) - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://ampcopgh.com/20231231/taxonomy/role/DisclosureAllowanceForCreditLossesTradeReceivables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>100560 - Disclosure - Inventories - Schedule of Inventories (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetail</Role>
      <ShortName>Inventories - Schedule of Inventories (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>100570 - Disclosure - Property, Plant and Equipment - Schedule of Property, Plant and Equipment (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentScheduleOfPropertyPlantAndEquipmentDetail</Role>
      <ShortName>Property, Plant and Equipment - Schedule of Property, Plant and Equipment (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>100580 - Disclosure - Property, Plant and Equipment - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail</Role>
      <ShortName>Property, Plant and Equipment - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>100590 - Disclosure - Operating Lease Right-of-Use Assets - Schedule of The Net Book Value of Right-of-Use Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/DisclosureOperatingLeaseRightofuseAssetsScheduleOfTheNetBookValueOfRightofuseAssetsDetail</Role>
      <ShortName>Operating Lease Right-of-Use Assets - Schedule of The Net Book Value of Right-of-Use Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>100600 - Disclosure - Intangible Assets - Schedule of Intangible Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsScheduleOfIntangibleAssetsDetail</Role>
      <ShortName>Intangible Assets - Schedule of Intangible Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>100610 - Disclosure - Intangible Assets - Summary of Changes in Intangible Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail</Role>
      <ShortName>Intangible Assets - Summary of Changes in Intangible Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>100620 - Disclosure - Intangible Assets - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsAdditionalInformationDetail</Role>
      <ShortName>Intangible Assets - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>100630 - Disclosure - Investments in Joint Ventures - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInvestmentsInJointVenturesAdditionalInformationDetail</Role>
      <ShortName>Investments in Joint Ventures - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>100640 - Disclosure - Other Current Liabilities - Schedule of Other Current Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail</Role>
      <ShortName>Other Current Liabilities - Schedule of Other Current Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>100650 - Disclosure - Other Current Liabilities - Schedule of Changes in Liability for Product Warranty Claims (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesScheduleOfChangesInLiabilityForProductWarrantyClaimsDetail</Role>
      <ShortName>Other Current Liabilities - Schedule of Changes in Liability for Product Warranty Claims (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>100660 - Disclosure - Other Current Liabilities - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesAdditionalInformationDetail</Role>
      <ShortName>Other Current Liabilities - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>100670 - Disclosure - Other Current Liabilities - Schedule of Change in Customer Deposits (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesScheduleOfChangeInCustomerDepositsDetail</Role>
      <ShortName>Other Current Liabilities - Schedule of Change in Customer Deposits (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>100680 - Disclosure - Debt - Schedule of Debt (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/DisclosureDebtScheduleOfDebtDetail</Role>
      <ShortName>Debt - Schedule of Debt (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>100700 - Disclosure - Debt - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail</Role>
      <ShortName>Debt - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>100710 - Disclosure - Operating Lease Liabilities - Summary of Current and Non Current Portions of Operating Lease Arrangements (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfCurrentAndNonCurrentPortionsOfOperatingLeaseArrangementsDetail</Role>
      <ShortName>Operating Lease Liabilities - Summary of Current and Non Current Portions of Operating Lease Arrangements (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>100720 - Disclosure - Operating Lease Liabilities - Summary of Future Operating Lease Payments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfFutureOperatingLeasePaymentsDetail</Role>
      <ShortName>Operating Lease Liabilities - Summary of Future Operating Lease Payments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>100730 - Disclosure - Operating Lease Liabilities - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesAdditionalInformationDetail</Role>
      <ShortName>Operating Lease Liabilities - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>100750 - Disclosure - Pension and Other Postretirement Benefits - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail</Role>
      <ShortName>Pension and Other Postretirement Benefits - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>100760 - Disclosure - Pension and Other Postretirement Benefits - Components of Actuarial Losses (Gains) in Projected Benefit Obligations (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/DisclosurePensionAndOtherPostretirementBenefitsComponentsOfActuarialLossesGainsInProjectedBenefitObligationsDetail</Role>
      <ShortName>Pension and Other Postretirement Benefits - Components of Actuarial Losses (Gains) in Projected Benefit Obligations (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>100770 - Disclosure - Pension and Other Postretirement Benefits - Schedule of Changes in Projected Benefit Obligations (PBO) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInProjectedBenefitObligationsPBODetail</Role>
      <ShortName>Pension and Other Postretirement Benefits - Schedule of Changes in Projected Benefit Obligations (PBO) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>100780 - Disclosure - Pension and Other Postretirement Benefits - Schedule of Changes in Plan Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInPlanAssetsDetail</Role>
      <ShortName>Pension and Other Postretirement Benefits - Schedule of Changes in Plan Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>100790 - Disclosure - Pension and Other Postretirement Benefits - Schedule of Funded Status of the Plans (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfFundedStatusOfPlansDetail</Role>
      <ShortName>Pension and Other Postretirement Benefits - Schedule of Funded Status of the Plans (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>100800 - Disclosure - Pension and Other Postretirement Benefits - Summary of Amounts Recognized in the Consolidated Balance Sheets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfAmountsRecognizedInConsolidatedBalanceSheetsDetail</Role>
      <ShortName>Pension and Other Postretirement Benefits - Summary of Amounts Recognized in the Consolidated Balance Sheets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>100810 - Disclosure - Pension and Other Postretirement Benefits - Schedule of Accumulated Other Comprehensive Loss (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfAccumulatedOtherComprehensiveLossDetail</Role>
      <ShortName>Pension and Other Postretirement Benefits - Schedule of Accumulated Other Comprehensive Loss (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>100820 - Disclosure - Pension and Other Postretirement Benefits - Schedule of Estimated Benefit Payments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail</Role>
      <ShortName>Pension and Other Postretirement Benefits - Schedule of Estimated Benefit Payments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>100830 - Disclosure - Pension and Other Postretirement Benefits - Summary of Target Asset Allocations and Major Asset Categories (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfTargetAssetAllocationsAndMajorAssetCategoriesDetail</Role>
      <ShortName>Pension and Other Postretirement Benefits - Summary of Target Asset Allocations and Major Asset Categories (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>100840 - Disclosure - Pension and Other Postretirement Benefits - Asset Categories Based on the Nature and Risks of the Plan Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail</Role>
      <ShortName>Pension and Other Postretirement Benefits - Asset Categories Based on the Nature and Risks of the Plan Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>100850 - Disclosure - Pension and Other Postretirement Benefits - Summary of Changes in the Fair Value of the Level 3 Plan Assets for the U.S. and Foreign Pension Benefits Plans (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfChangesInFairValueOfLevel3PlanAssetsForUSAndForeignPensionBenefitsPlansDetail</Role>
      <ShortName>Pension and Other Postretirement Benefits - Summary of Changes in the Fair Value of the Level 3 Plan Assets for the U.S. and Foreign Pension Benefits Plans (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>100860 - Disclosure - Pension and Other Postretirement Benefits - Net Periodic Pension and Other Postretirement Benefit Costs (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail</Role>
      <ShortName>Pension and Other Postretirement Benefits - Net Periodic Pension and Other Postretirement Benefit Costs (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>100870 - Disclosure - Pension and Other Postretirement Benefits - Discount Rates Used to Determine the Benefit Obligations (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsDiscountRatesUsedToDetermineBenefitObligationsDetail</Role>
      <ShortName>Pension and Other Postretirement Benefits - Discount Rates Used to Determine the Benefit Obligations (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>100880 - Disclosure - Pension and Other Postretirement Benefits - Assumptions Regarding Net Periodic Pension and Other Postretirement Benefit Costs (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssumptionsRegardingNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail</Role>
      <ShortName>Pension and Other Postretirement Benefits - Assumptions Regarding Net Periodic Pension and Other Postretirement Benefit Costs (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>100890 - Disclosure - Commitments and Contingent Liabilities - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetail</Role>
      <ShortName>Commitments and Contingent Liabilities - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>100900 - Disclosure - Equity Rights Offering - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingAdditionalInformationDetail</Role>
      <ShortName>Equity Rights Offering - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>100910 - Disclosure - Equity Rights Offering - Summary of Outstanding Warrants (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingSummaryOfOutstandingWarrantsDetail</Role>
      <ShortName>Equity Rights Offering - Summary of Outstanding Warrants (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>100920 - Disclosure - Accumulated Other Comprehensive Loss - Net Changes and Ending Balances for Various Components of Other Comprehensive Loss and Accumulated Other Comprehensive Loss (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossNetChangesAndEndingBalancesForVariousComponentsOfOtherComprehensiveLossAndAccumulatedOtherCompr</Role>
      <ShortName>Accumulated Other Comprehensive Loss - Net Changes and Ending Balances for Various Components of Other Comprehensive Loss and Accumulated Other Comprehensive Loss (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>100930 - Disclosure - Accumulated Other Comprehensive Loss - Line Items Affected on Consolidated Statements of Operations for Components Reclassified from Accumulated Other Comprehensive Loss (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossLineItemsAffectedOnConsolidatedStatementsOfOperationsForComponentsReclassifiedFromAccumulatedOtherComprehensiveLossDetail</Role>
      <ShortName>Accumulated Other Comprehensive Loss - Line Items Affected on Consolidated Statements of Operations for Components Reclassified from Accumulated Other Comprehensive Loss (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>100940 - Disclosure - Accumulated Other Comprehensive Loss - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossAdditionalInformationDetail</Role>
      <ShortName>Accumulated Other Comprehensive Loss - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>92</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>100950 - Disclosure - Accumulated Other Comprehensive Loss - Summary of Income Tax Effect Associated With Various Components of Other Comprehensive Loss (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossSummaryOfIncomeTaxEffectAssociatedWithVariousComponentsOfOtherComprehensiveLossDetail</Role>
      <ShortName>Accumulated Other Comprehensive Loss - Summary of Income Tax Effect Associated With Various Components of Other Comprehensive Loss (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>93</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>100960 - Disclosure - Derivative Instruments - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail</Role>
      <ShortName>Derivative Instruments - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>94</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>100980 - Disclosure - Derivative Instruments - Summary of Amount Recognized as and Reclassified from Accumulated Other Comprehensive Income (Loss) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfAmountRecognizedAsAndReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetail</Role>
      <ShortName>Derivative Instruments - Summary of Amount Recognized as and Reclassified from Accumulated Other Comprehensive Income (Loss) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>95</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>100990 - Disclosure - Derivative Instruments - Summary of Change in Fair Value Reclassified or Expected to be Reclassified from Accumulated Other Comprehensive Loss to Earnings (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfChangeInFairValueReclassifiedOrExpectedToBeReclassifiedFromAccumulatedOtherComprehensiveLossToEarningsDetail</Role>
      <ShortName>Derivative Instruments - Summary of Change in Fair Value Reclassified or Expected to be Reclassified from Accumulated Other Comprehensive Loss to Earnings (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>96</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>101000 - Disclosure - Fair Value - Fair Value of Financial Assets and Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureFairValueFairValueOfFinancialAssetsAndLiabilitiesDetail</Role>
      <ShortName>Fair Value - Fair Value of Financial Assets and Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>97</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>101010 - Disclosure - Revenue - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueAdditionalInformationDetail</Role>
      <ShortName>Revenue - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>98</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>101020 - Disclosure - Revenue - Net Sales (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueNetSalesDetail</Role>
      <ShortName>Revenue - Net Sales (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>99</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>101030 - Disclosure - Stock-Based Compensation - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail</Role>
      <ShortName>Stock-Based Compensation - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>100</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R101.htm</HtmlFileName>
      <LongName>101040 - Disclosure - Stock-Based Compensation - Summary of Outstanding Restricted Stock Units ("RSU") and Performance Share Awards ("PSU") (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingRestrictedStockUnitsRSUAndPerformanceShareAwardsPSUDetail</Role>
      <ShortName>Stock-Based Compensation - Summary of Outstanding Restricted Stock Units ("RSU") and Performance Share Awards ("PSU") (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>101</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R102.htm</HtmlFileName>
      <LongName>101050 - Disclosure - Stock-Based Compensation - Summary of Outstanding Stock Options (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingStockOptionsDetail</Role>
      <ShortName>Stock-Based Compensation - Summary of Outstanding Stock Options (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>102</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R103.htm</HtmlFileName>
      <LongName>101060 - Disclosure - Stock-Based Compensation - Summary of Outstanding Restricted Stock Awards (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/DisclosureStockbasedCompensationSummaryOfOutstandingRestrictedStockAwardsDetail</Role>
      <ShortName>Stock-Based Compensation - Summary of Outstanding Restricted Stock Awards (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>103</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R104.htm</HtmlFileName>
      <LongName>101070 - Disclosure - Research and Development Costs - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureResearchAndDevelopmentCostsAdditionalInformationDetail</Role>
      <ShortName>Research and Development Costs - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>104</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R105.htm</HtmlFileName>
      <LongName>101080 - Disclosure - Litigation - Schedule of Loss Contingencies by Contingency (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyDetail</Role>
      <ShortName>Litigation - Schedule of Loss Contingencies by Contingency (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>105</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R106.htm</HtmlFileName>
      <LongName>101090 - Disclosure - Litigation - Schedule of Loss Contingencies by Contingency (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyParentheticalDetail</Role>
      <ShortName>Litigation - Schedule of Loss Contingencies by Contingency (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>106</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R107.htm</HtmlFileName>
      <LongName>101100 - Disclosure - Litigation - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationAdditionalInformationDetail</Role>
      <ShortName>Litigation - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>107</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R108.htm</HtmlFileName>
      <LongName>101110 - Disclosure - Litigation - Summary of Activity Relating to Asbestos Liability (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/DisclosureLitigationSummaryOfActivityRelatingToAsbestosLiabilityDetails</Role>
      <ShortName>Litigation - Summary of Activity Relating to Asbestos Liability (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>108</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R109.htm</HtmlFileName>
      <LongName>101120 - Disclosure - Litigation - Summary of Activity in Asbestos Insurance Recoveries (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationSummaryOfActivityInAsbestosInsuranceRecoveriesDetail</Role>
      <ShortName>Litigation - Summary of Activity in Asbestos Insurance Recoveries (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>109</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R110.htm</HtmlFileName>
      <LongName>101130 - Disclosure - Litigation - Summary of Asbestos Related Costs (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/DisclosureLitigationSummaryOfAsbestosRelatedCostsDetail</Role>
      <ShortName>Litigation - Summary of Asbestos Related Costs (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>110</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R111.htm</HtmlFileName>
      <LongName>101140 - Disclosure - Income Taxes - (Loss) Income from Operations Before Income Taxes (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesLossIncomeFromOperationsBeforeIncomeTaxesDetail</Role>
      <ShortName>Income Taxes - (Loss) Income from Operations Before Income Taxes (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTables</ParentRole>
      <Position>111</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R112.htm</HtmlFileName>
      <LongName>101150 - Disclosure - Income Taxes - Summary of Income Tax Provision (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesSummaryOfIncomeTaxProvisionDetail</Role>
      <ShortName>Income Taxes - Summary of Income Tax Provision (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>112</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R113.htm</HtmlFileName>
      <LongName>101160 - Disclosure - Income Taxes - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail</Role>
      <ShortName>Income Taxes - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>113</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R114.htm</HtmlFileName>
      <LongName>101170 - Disclosure - Income Taxes - Difference Between Statutory U.S. Federal Income Tax and the Corporation's Effective Income Tax (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDifferenceBetweenStatutoryUSFederalIncomeTaxAndCorporationSEffectiveIncomeTaxDetail</Role>
      <ShortName>Income Taxes - Difference Between Statutory U.S. Federal Income Tax and the Corporation's Effective Income Tax (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>114</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R115.htm</HtmlFileName>
      <LongName>101180 - Disclosure - Income Taxes - Deferred Income Tax Assets and Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail</Role>
      <ShortName>Income Taxes - Deferred Income Tax Assets and Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>115</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R116.htm</HtmlFileName>
      <LongName>101190 - Disclosure - Environmental Matters - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEnvironmentalMattersAdditionalInformationDetail</Role>
      <ShortName>Environmental Matters - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>116</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R117.htm</HtmlFileName>
      <LongName>101200 - Disclosure - Related Parties - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail</Role>
      <ShortName>Related Parties - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>117</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R118.htm</HtmlFileName>
      <LongName>101210 - Disclosure - Related Parties - Summary of Loan Activity (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfLoanActivityDetail</Role>
      <ShortName>Related Parties - Summary of Loan Activity (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>118</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R119.htm</HtmlFileName>
      <LongName>101220 - Disclosure - Related Parties - Summary of Sales to and Purchases from ATR's Minority Shareholder and Its Affiliates (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfSalesToAndPurchasesFromAtrsMinorityShareholderAndItsAffiliatesDetail</Role>
      <ShortName>Related Parties - Summary of Sales to and Purchases from ATR's Minority Shareholder and Its Affiliates (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>119</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R120.htm</HtmlFileName>
      <LongName>101230 - Disclosure - Related Parties - Summary of Balances Outstanding with ATR's Minority Shareholder and Its Affiliates (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfBalancesOutstandingWithAtrsMinorityShareholderAndItsAffiliatesDetail</Role>
      <ShortName>Related Parties - Summary of Balances Outstanding with ATR's Minority Shareholder and Its Affiliates (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>120</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R121.htm</HtmlFileName>
      <LongName>101240 - Disclosure - Business Segments - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsAdditionalInformationDetail</Role>
      <ShortName>Business Segments - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>121</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R122.htm</HtmlFileName>
      <LongName>101250 - Disclosure - Business Segments - Business Segment Net Sales and (Loss) Income from Operations Before Income Taxes (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesDetail</Role>
      <ShortName>Business Segments - Business Segment Net Sales and (Loss) Income from Operations Before Income Taxes (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>122</Position>
    </Report>
    <Report instance="ap-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R123.htm</HtmlFileName>
      <LongName>101260 - Disclosure - Business Segments - Business Segment Net Sales and (Loss) Income from Operations Before Income Taxes (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail</Role>
      <ShortName>Business Segments - Business Segment Net Sales and (Loss) Income from Operations Before Income Taxes (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>123</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Warning">[ix-0514-Hidden-Fact-Eligible-For-Transform] WARN: 6 fact(s) appearing in ix:hidden were eligible for transformation: ap:AdministrativeClosuresClaimsPeriod, ap:DebtInstrumentInterestAccrualPeriod, ap:DebtInstrumentInterestPeriod, ap:NumberOfDefinedBenefitPensionPlans -  ap-20231231.htm 8</Log>
    <Log type="Warning">[DQC.US.0070.7645] The concept DefinedBenefitPlanFairValueOfPlanAssets with a defaulted value of 163929000.000000 is not equal to the aggregated value of the dimensionally qualified components on the axis DefinedBenefitPlanByPlanAssetCategoriesAxis which has an aggregate value of 327858000.000000 based on the data in the filing.
The aggregated value is calculated by adding the members in the network http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail. The values of the calculation components are as follows:
209000, 306000, 84980000, 3394000, 791000, 401000, 51729000, 1848000, 114000, 23456000, 456000, 3491000, 32482000, 6993000, 437000, 7825000, 5117000, 64000, 6035000, 67157000, 5757000, 211000, 6035000, 5757000, 5907000, 1674000, 573000, 4659000.

The value of a concept broken down by its components along the DefinedBenefitPlanByPlanAssetCategoriesAxis axis should  be equal to its component pieces. An error could occur for one of the following reasons:

1. The values of the plan assets by category have been further disaggregated by additional dimensions such as geography. Plan Asset categories should not be dimensionally disaggregated and members should be defined for each security class reported. i.e. Equity Securities in the US should be represented as a single member.

2. The  default value of DefinedBenefitPlanFairValueOfPlanAssets is incorrectly totaled for DefinedBenefitPlanFairValueOfPlanAssets

 3. Not all dimension members or additional dimensions have been defined on the category axis DefinedBenefitPlanByPlanAssetCategoriesAxis.

4. The filer has reported a sub component of plan assets that does not represent a complete breakdown of the total. In these cases the element DefinedBenefitPlanPlanAssetsInvestmentWithinPlanAssetCategoryAmount should be used instead of the element DefinedBenefitPlanFairValueOfPlanAssets.

This rule aggregates the value of member components located on the axis at the highest level of aggregation to avoid double counting in the event that the company uses a hierarchy of members.

The properties of this DefinedBenefitPlanFairValueOfPlanAssets fact are:
Context: C_3837b1b7-2b58-4d32-bfff-2f6901fff967
Unit: U_USD. - ap-20231231.htm 11593 - ap-20231231.htm 11593</Log>
    <Log type="Warning">[DQC.US.0070.7645] The concept DefinedBenefitPlanFairValueOfPlanAssets with a defaulted value of 109544000.000000 is not equal to the aggregated value of the dimensionally qualified components on the axis DefinedBenefitPlanByPlanAssetCategoriesAxis which has an aggregate value of 219088000.000000 based on the data in the filing.
The aggregated value is calculated by adding the members in the network http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail. The values of the calculation components are as follows:
5967000, 646000, 1183000, 3165000, 279000, 438000, 0, 4138000, 2697000, 1112000, 43408000, 4138000, 463000, 0, 32409000, 2454000, 123000, 369000, 6162000, 450000, 5631000, 66000, 4222000, 72997000, 26247000, 324000.

The value of a concept broken down by its components along the DefinedBenefitPlanByPlanAssetCategoriesAxis axis should  be equal to its component pieces. An error could occur for one of the following reasons:

1. The values of the plan assets by category have been further disaggregated by additional dimensions such as geography. Plan Asset categories should not be dimensionally disaggregated and members should be defined for each security class reported. i.e. Equity Securities in the US should be represented as a single member.

2. The  default value of DefinedBenefitPlanFairValueOfPlanAssets is incorrectly totaled for DefinedBenefitPlanFairValueOfPlanAssets

 3. Not all dimension members or additional dimensions have been defined on the category axis DefinedBenefitPlanByPlanAssetCategoriesAxis.

4. The filer has reported a sub component of plan assets that does not represent a complete breakdown of the total. In these cases the element DefinedBenefitPlanPlanAssetsInvestmentWithinPlanAssetCategoryAmount should be used instead of the element DefinedBenefitPlanFairValueOfPlanAssets.

This rule aggregates the value of member components located on the axis at the highest level of aggregation to avoid double counting in the event that the company uses a hierarchy of members.

The properties of this DefinedBenefitPlanFairValueOfPlanAssets fact are:
Context: C_2572680f-4577-4396-b258-54692f5a7b08
Unit: U_USD. - ap-20231231.htm 11593 - ap-20231231.htm 11593</Log>
    <Log type="Warning">[DQC.US.0070.7645] The concept DefinedBenefitPlanFairValueOfPlanAssets with a defaulted value of 5714000.000000 is not equal to the aggregated value of the dimensionally qualified components on the axis DefinedBenefitPlanByPlanAssetCategoriesAxis which has an aggregate value of 11428000.000000 based on the data in the filing.
The aggregated value is calculated by adding the members in the network http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail. The values of the calculation components are as follows:
0, 0, 5714000, 0, 0, 5714000.

The value of a concept broken down by its components along the DefinedBenefitPlanByPlanAssetCategoriesAxis axis should  be equal to its component pieces. An error could occur for one of the following reasons:

1. The values of the plan assets by category have been further disaggregated by additional dimensions such as geography. Plan Asset categories should not be dimensionally disaggregated and members should be defined for each security class reported. i.e. Equity Securities in the US should be represented as a single member.

2. The  default value of DefinedBenefitPlanFairValueOfPlanAssets is incorrectly totaled for DefinedBenefitPlanFairValueOfPlanAssets

 3. Not all dimension members or additional dimensions have been defined on the category axis DefinedBenefitPlanByPlanAssetCategoriesAxis.

4. The filer has reported a sub component of plan assets that does not represent a complete breakdown of the total. In these cases the element DefinedBenefitPlanPlanAssetsInvestmentWithinPlanAssetCategoryAmount should be used instead of the element DefinedBenefitPlanFairValueOfPlanAssets.

This rule aggregates the value of member components located on the axis at the highest level of aggregation to avoid double counting in the event that the company uses a hierarchy of members.

The properties of this DefinedBenefitPlanFairValueOfPlanAssets fact are:
Context: C_9990526a-4376-413e-acac-507d51ed9001
Unit: U_USD. - ap-20231231.htm 11593 - ap-20231231.htm 11593</Log>
    <Log type="Warning">[DQC.US.0070.7645] The concept DefinedBenefitPlanFairValueOfPlanAssets with a defaulted value of 122339000.000000 is not equal to the aggregated value of the dimensionally qualified components on the axis DefinedBenefitPlanByPlanAssetCategoriesAxis which has an aggregate value of 221222000.000000 based on the data in the filing.
The aggregated value is calculated by adding the members in the network http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail. The values of the calculation components are as follows:
4659000, 209000, 306000, 791000, 51729000, 401000, 5757000, 321000, 1848000, 5757000, 456000, 321000, 31281000, 114000, 573000, 437000, 6993000, 7825000, 64000, 5117000, 211000, 84980000, 3491000, 5907000, 1674000.

The value of a concept broken down by its components along the DefinedBenefitPlanByPlanAssetCategoriesAxis axis should  be equal to its component pieces. An error could occur for one of the following reasons:

1. The values of the plan assets by category have been further disaggregated by additional dimensions such as geography. Plan Asset categories should not be dimensionally disaggregated and members should be defined for each security class reported. i.e. Equity Securities in the US should be represented as a single member.

2. The  default value of DefinedBenefitPlanFairValueOfPlanAssets is incorrectly totaled for DefinedBenefitPlanFairValueOfPlanAssets

 3. Not all dimension members or additional dimensions have been defined on the category axis DefinedBenefitPlanByPlanAssetCategoriesAxis.

4. The filer has reported a sub component of plan assets that does not represent a complete breakdown of the total. In these cases the element DefinedBenefitPlanPlanAssetsInvestmentWithinPlanAssetCategoryAmount should be used instead of the element DefinedBenefitPlanFairValueOfPlanAssets.

This rule aggregates the value of member components located on the axis at the highest level of aggregation to avoid double counting in the event that the company uses a hierarchy of members.

The properties of this DefinedBenefitPlanFairValueOfPlanAssets fact are:
Context: C_becd04ef-7e58-4b53-959d-a206c67b0558
Unit: U_USD. - ap-20231231.htm 11593 - ap-20231231.htm 11593</Log>
    <Log type="Warning">[DQC.US.0070.7645] The concept DefinedBenefitPlanFairValueOfPlanAssets with a defaulted value of 161374000.000000 is not equal to the aggregated value of the dimensionally qualified components on the axis DefinedBenefitPlanByPlanAssetCategoriesAxis which has an aggregate value of 322748000.000000 based on the data in the filing.
The aggregated value is calculated by adding the members in the network http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail. The values of the calculation components are as follows:
5983000, 3165000, 279000, 438000, 72997000, 1112000, 463000, 43408000, 231000, 2454000, 123000, 369000, 6162000, 2697000, 5631000, 450000, 39047000, 77670000, 6569000, 4138000, 6569000, 4138000, 4222000, 66000, 26247000, 1183000, 324000, 5967000, 646000.

The value of a concept broken down by its components along the DefinedBenefitPlanByPlanAssetCategoriesAxis axis should  be equal to its component pieces. An error could occur for one of the following reasons:

1. The values of the plan assets by category have been further disaggregated by additional dimensions such as geography. Plan Asset categories should not be dimensionally disaggregated and members should be defined for each security class reported. i.e. Equity Securities in the US should be represented as a single member.

2. The  default value of DefinedBenefitPlanFairValueOfPlanAssets is incorrectly totaled for DefinedBenefitPlanFairValueOfPlanAssets

 3. Not all dimension members or additional dimensions have been defined on the category axis DefinedBenefitPlanByPlanAssetCategoriesAxis.

4. The filer has reported a sub component of plan assets that does not represent a complete breakdown of the total. In these cases the element DefinedBenefitPlanPlanAssetsInvestmentWithinPlanAssetCategoryAmount should be used instead of the element DefinedBenefitPlanFairValueOfPlanAssets.

This rule aggregates the value of member components located on the axis at the highest level of aggregation to avoid double counting in the event that the company uses a hierarchy of members.

The properties of this DefinedBenefitPlanFairValueOfPlanAssets fact are:
Context: C_96ca51a6-43b8-4129-9f0f-79d33f9e5a8b
Unit: U_USD. - ap-20231231.htm 11593 - ap-20231231.htm 11593</Log>
    <Log type="Warning">[DQC.US.0070.7645] The concept DefinedBenefitPlanFairValueOfPlanAssets with a defaulted value of 45261000.000000 is not equal to the aggregated value of the dimensionally qualified components on the axis DefinedBenefitPlanByPlanAssetCategoriesAxis which has an aggregate value of 90522000.000000 based on the data in the filing.
The aggregated value is calculated by adding the members in the network http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail. The values of the calculation components are as follows:
0, 0, 39047000, 45261000, 0, 0, 5983000, 231000, 0.

The value of a concept broken down by its components along the DefinedBenefitPlanByPlanAssetCategoriesAxis axis should  be equal to its component pieces. An error could occur for one of the following reasons:

1. The values of the plan assets by category have been further disaggregated by additional dimensions such as geography. Plan Asset categories should not be dimensionally disaggregated and members should be defined for each security class reported. i.e. Equity Securities in the US should be represented as a single member.

2. The  default value of DefinedBenefitPlanFairValueOfPlanAssets is incorrectly totaled for DefinedBenefitPlanFairValueOfPlanAssets

 3. Not all dimension members or additional dimensions have been defined on the category axis DefinedBenefitPlanByPlanAssetCategoriesAxis.

4. The filer has reported a sub component of plan assets that does not represent a complete breakdown of the total. In these cases the element DefinedBenefitPlanPlanAssetsInvestmentWithinPlanAssetCategoryAmount should be used instead of the element DefinedBenefitPlanFairValueOfPlanAssets.

This rule aggregates the value of member components located on the axis at the highest level of aggregation to avoid double counting in the event that the company uses a hierarchy of members.

The properties of this DefinedBenefitPlanFairValueOfPlanAssets fact are:
Context: C_ba8856d7-ce05-4312-8cf5-b25ce4871df0
Unit: U_USD. - ap-20231231.htm 11593 - ap-20231231.htm 11593</Log>
    <Log type="Warning">[DQC.US.0070.7645] The concept DefinedBenefitPlanFairValueOfPlanAssets with a defaulted value of 35876000.000000 is not equal to the aggregated value of the dimensionally qualified components on the axis DefinedBenefitPlanByPlanAssetCategoriesAxis which has an aggregate value of 71752000.000000 based on the data in the filing.
The aggregated value is calculated by adding the members in the network http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail. The values of the calculation components are as follows:
3394000, 0, 0, 0, 35876000, 0, 0, 0, 32482000.

The value of a concept broken down by its components along the DefinedBenefitPlanByPlanAssetCategoriesAxis axis should  be equal to its component pieces. An error could occur for one of the following reasons:

1. The values of the plan assets by category have been further disaggregated by additional dimensions such as geography. Plan Asset categories should not be dimensionally disaggregated and members should be defined for each security class reported. i.e. Equity Securities in the US should be represented as a single member.

2. The  default value of DefinedBenefitPlanFairValueOfPlanAssets is incorrectly totaled for DefinedBenefitPlanFairValueOfPlanAssets

 3. Not all dimension members or additional dimensions have been defined on the category axis DefinedBenefitPlanByPlanAssetCategoriesAxis.

4. The filer has reported a sub component of plan assets that does not represent a complete breakdown of the total. In these cases the element DefinedBenefitPlanPlanAssetsInvestmentWithinPlanAssetCategoryAmount should be used instead of the element DefinedBenefitPlanFairValueOfPlanAssets.

This rule aggregates the value of member components located on the axis at the highest level of aggregation to avoid double counting in the event that the company uses a hierarchy of members.

The properties of this DefinedBenefitPlanFairValueOfPlanAssets fact are:
Context: C_80990a64-ca54-4fb3-a92b-25d09190ae20
Unit: U_USD. - ap-20231231.htm 11593 - ap-20231231.htm 11593</Log>
    <Log type="Warning">[DQC.US.0070.7645] The concept DefinedBenefitPlanFairValueOfPlanAssets with a defaulted value of 6569000.000000 is not equal to the aggregated value of the dimensionally qualified components on the axis DefinedBenefitPlanByPlanAssetCategoriesAxis which has an aggregate value of 13138000.000000 based on the data in the filing.
The aggregated value is calculated by adding the members in the network http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail. The values of the calculation components are as follows:
6569000, 0, 6569000, 0, 0, 0.

The value of a concept broken down by its components along the DefinedBenefitPlanByPlanAssetCategoriesAxis axis should  be equal to its component pieces. An error could occur for one of the following reasons:

1. The values of the plan assets by category have been further disaggregated by additional dimensions such as geography. Plan Asset categories should not be dimensionally disaggregated and members should be defined for each security class reported. i.e. Equity Securities in the US should be represented as a single member.

2. The  default value of DefinedBenefitPlanFairValueOfPlanAssets is incorrectly totaled for DefinedBenefitPlanFairValueOfPlanAssets

 3. Not all dimension members or additional dimensions have been defined on the category axis DefinedBenefitPlanByPlanAssetCategoriesAxis.

4. The filer has reported a sub component of plan assets that does not represent a complete breakdown of the total. In these cases the element DefinedBenefitPlanPlanAssetsInvestmentWithinPlanAssetCategoryAmount should be used instead of the element DefinedBenefitPlanFairValueOfPlanAssets.

This rule aggregates the value of member components located on the axis at the highest level of aggregation to avoid double counting in the event that the company uses a hierarchy of members.

The properties of this DefinedBenefitPlanFairValueOfPlanAssets fact are:
Context: C_b948f4f8-3507-4c65-830e-77a675b3f17d
Unit: U_USD. - ap-20231231.htm 11593 - ap-20231231.htm 11593</Log>
  </Logs>
  <InputFiles>
    <File doctype="10-K" isDefinitelyFs="true" isUsgaap="true" original="ap-20231231.htm">ap-20231231.htm</File>
    <File>ap-20231231.xsd</File>
  </InputFiles>
  <SupplementalFiles>
    <File>img137273756_0.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="1487">http://fasb.org/us-gaap/2023</BaseTaxonomy>
    <BaseTaxonomy items="42">http://xbrl.sec.gov/dei/2023</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>false</HasPresentationLinkbase>
  <HasCalculationLinkbase>false</HasCalculationLinkbase>
</FilingSummary>
