{
 "version": "2.2",
 "instance": {
  "ap-20231231.htm": {
   "nsprefix": "ap",
   "nsuri": "http://ampcopgh.com/20231231",
   "dts": {
    "inline": {
     "local": [
      "ap-20231231.htm"
     ]
    },
    "schema": {
     "local": [
      "ap-20231231.xsd"
     ],
     "remote": [
      "http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xl-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xlink-2003-12-31.xsd",
      "http://www.xbrl.org/2005/xbrldt-2005.xsd",
      "http://www.xbrl.org/2006/ref-2006-02-27.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/reference-2009-12-16.xsd",
      "https://www.xbrl.org/2020/extensible-enumerations-2.0.xsd",
      "https://www.xbrl.org/dtr/type/2020-01-21/types.xsd",
      "https://www.xbrl.org/dtr/type/2022-03-31/types.xsd",
      "https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd",
      "https://xbrl.fasb.org/srt/2023/elts/srt-roles-2023.xsd",
      "https://xbrl.fasb.org/srt/2023/elts/srt-types-2023.xsd",
      "https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd",
      "https://xbrl.fasb.org/us-gaap/2023/elts/us-roles-2023.xsd",
      "https://xbrl.fasb.org/us-gaap/2023/elts/us-types-2023.xsd",
      "https://xbrl.sec.gov/country/2023/country-2023.xsd",
      "https://xbrl.sec.gov/dei/2023/dei-2023.xsd"
     ]
    }
   },
   "keyStandard": 469,
   "keyCustom": 152,
   "axisStandard": 49,
   "axisCustom": 0,
   "memberStandard": 69,
   "memberCustom": 92,
   "hidden": {
    "total": 35,
    "http://fasb.org/us-gaap/2023": 26,
    "http://ampcopgh.com/20231231": 6,
    "http://xbrl.sec.gov/dei/2023": 3
   },
   "contextCount": 614,
   "entityCount": 1,
   "segmentCount": 168,
   "elementCount": 1072,
   "unitCount": 16,
   "baseTaxonomies": {
    "http://fasb.org/us-gaap/2023": 1487,
    "http://xbrl.sec.gov/dei/2023": 42
   },
   "report": {
    "R1": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation",
     "longName": "100000 - Document - Document and Entity Information",
     "shortName": "Document and Entity Information",
     "isDefault": "true",
     "groupType": "document",
     "subGroupType": "",
     "menuCat": "Cover",
     "order": "1",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "dei:DocumentType",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "dei:DocumentType",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R2": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets",
     "longName": "100010 - Statement - Consolidated Balance Sheets",
     "shortName": "Consolidated Balance Sheets",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "2",
     "firstAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R3": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical",
     "longName": "100030 - Statement - Consolidated Balance Sheets (Parenthetical)",
     "shortName": "Consolidated Balance Sheets (Parenthetical)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "parenthetical",
     "menuCat": "Statements",
     "order": "3",
     "firstAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:CommonStockParOrStatedValuePerShare",
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:CommonStockParOrStatedValuePerShare",
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R4": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations",
     "longName": "100040 - Statement - Consolidated Statements of Operations",
     "shortName": "Consolidated Statements of Operations",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "4",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R5": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLossIncome",
     "longName": "100050 - Statement - Consolidated Statements of Comprehensive (Loss) Income",
     "shortName": "Consolidated Statements of Comprehensive (Loss) Income",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "5",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ProfitLoss",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R6": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity",
     "longName": "100060 - Statement - Consolidated Statements of Shareholders' Equity",
     "shortName": "Consolidated Statements of Shareholders' Equity",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "6",
     "firstAnchor": {
      "contextRef": "C_11d6ec99-4969-400a-acd8-c37f58d9df5f",
      "name": "us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_60a50f90-1bef-40c5-8b0e-a965b0b5cb18",
      "name": "us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R7": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquityParenthetical",
     "longName": "100070 - Statement - Consolidated Statements of Shareholders' Equity (Parenthetical)",
     "shortName": "Consolidated Statements of Shareholders' Equity (Parenthetical)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "parenthetical",
     "menuCat": "Statements",
     "order": "7",
     "firstAnchor": {
      "contextRef": "C_0ae7a23b-6502-4e15-94a1-7288f0035b87",
      "name": "ap:IssuanceOfCommonStockTaxBenefits",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "ap:IssuanceOfCommonStockTaxBenefits",
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_0ae7a23b-6502-4e15-94a1-7288f0035b87",
      "name": "ap:IssuanceOfCommonStockTaxBenefits",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "ap:IssuanceOfCommonStockTaxBenefits",
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R8": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows",
     "longName": "100080 - Statement - Consolidated Statements of Cash Flows",
     "shortName": "Consolidated Statements of Cash Flows",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "8",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ProfitLoss",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:ChargeForAsbestosRelatedCosts",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R9": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDescriptionOfBusiness",
     "longName": "100090 - Disclosure - Description of Business",
     "shortName": "Description of Business",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "9",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:BusinessDescriptionAndBasisOfPresentationTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:BusinessDescriptionAndBasisOfPresentationTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R10": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies",
     "longName": "100100 - Disclosure - Summary of Significant Accounting Policies",
     "shortName": "Summary of Significant Accounting Policies",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "10",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R11": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/DisclosureAllowanceForCreditLossesTradeReceivables",
     "longName": "100110 - Disclosure - Allowance for Credit Losses (Trade Receivables)",
     "shortName": "Allowance for Credit Losses (Trade Receivables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "11",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:AllowanceForCreditLossesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:AllowanceForCreditLossesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R12": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInventories",
     "longName": "100120 - Disclosure - Inventories",
     "shortName": "Inventories",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "12",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:InventoryDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:InventoryDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R13": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipment",
     "longName": "100130 - Disclosure - Property, Plant and Equipment",
     "shortName": "Property, Plant and Equipment",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "13",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R14": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseRightOfUseAssets",
     "longName": "100140 - Disclosure - Operating Lease Right of Use Assets",
     "shortName": "Operating Lease Right of Use Assets",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "14",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:OperatingLeaseRightOfUseAssetTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:OperatingLeaseRightOfUseAssetTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R15": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssets",
     "longName": "100150 - Disclosure - Intangible Assets",
     "shortName": "Intangible Assets",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "15",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:IntangibleAssetsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:IntangibleAssetsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R16": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInvestmentsInJointVentures",
     "longName": "100160 - Disclosure - Investments in Joint Ventures",
     "shortName": "Investments in Joint Ventures",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "16",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:EquityMethodInvestmentsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:EquityMethodInvestmentsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R17": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilities",
     "longName": "100170 - Disclosure - Other Current Liabilities",
     "shortName": "Other Current Liabilities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "17",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:OtherLiabilitiesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:OtherLiabilitiesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R18": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebt",
     "longName": "100180 - Disclosure - Debt",
     "shortName": "Debt",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "18",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:DebtDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:DebtDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R19": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilities",
     "longName": "100190 - Disclosure - Operating Lease Liabilities",
     "shortName": "Operating Lease Liabilities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "19",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:LesseeOperatingLeasesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:LesseeOperatingLeasesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R20": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefits",
     "longName": "100200 - Disclosure - Pension and Other Postretirement Benefits",
     "shortName": "Pension and Other Postretirement Benefits",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "20",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R21": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilities",
     "longName": "100210 - Disclosure - Commitments and Contingent Liabilities",
     "shortName": "Commitments and Contingent Liabilities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "21",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R22": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOffering",
     "longName": "100220 - Disclosure - Equity Rights Offering",
     "shortName": "Equity Rights Offering",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "22",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:EquityRightsOfferingTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:EquityRightsOfferingTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R23": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLoss",
     "longName": "100230 - Disclosure - Accumulated Other Comprehensive Loss",
     "shortName": "Accumulated Other Comprehensive Loss",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "23",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ComprehensiveIncomeNoteTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ComprehensiveIncomeNoteTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R24": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstruments",
     "longName": "100240 - Disclosure - Derivative Instruments",
     "shortName": "Derivative Instruments",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "24",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R25": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureFairValue",
     "longName": "100250 - Disclosure - Fair Value",
     "shortName": "Fair Value",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "25",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R26": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenue",
     "longName": "100260 - Disclosure - Revenue",
     "shortName": "Revenue",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "26",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:RevenueFromContractWithCustomerTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:RevenueFromContractWithCustomerTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R27": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensation",
     "longName": "100270 - Disclosure - Stock-Based Compensation",
     "shortName": "Stock-Based Compensation",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "27",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R28": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureResearchAndDevelopmentCosts",
     "longName": "100280 - Disclosure - Research and Development Costs",
     "shortName": "Research and Development Costs",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "28",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ResearchDevelopmentAndComputerSoftwareDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ResearchDevelopmentAndComputerSoftwareDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R29": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigation",
     "longName": "100290 - Disclosure - Litigation",
     "shortName": "Litigation",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "29",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:LitigationTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:LitigationTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R30": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxes",
     "longName": "100300 - Disclosure - Income Taxes",
     "shortName": "Income Taxes",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "30",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R31": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEnvironmentalMatters",
     "longName": "100310 - Disclosure - Environmental Matters",
     "shortName": "Environmental Matters",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "31",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:EnvironmentalLossContingencyDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:EnvironmentalLossContingencyDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R32": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedParties",
     "longName": "100320 - Disclosure - Related Parties",
     "shortName": "Related Parties",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "32",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R33": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegments",
     "longName": "100330 - Disclosure - Business Segments",
     "shortName": "Business Segments",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "33",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:SegmentReportingDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:SegmentReportingDisclosureTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R34": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies",
     "longName": "100340 - Disclosure - Summary of Significant Accounting Policies (Policies)",
     "shortName": "Summary of Significant Accounting Policies (Policies)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "policies",
     "menuCat": "Policies",
     "order": "34",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R35": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInventoriesTables",
     "longName": "100350 - Disclosure - Inventories (Tables)",
     "shortName": "Inventories (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "35",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ScheduleOfInventoryCurrentTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:InventoryDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ScheduleOfInventoryCurrentTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:InventoryDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R36": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentTables",
     "longName": "100360 - Disclosure - Property, Plant and Equipment (Tables)",
     "shortName": "Property, Plant and Equipment (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "36",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:PropertyPlantAndEquipmentTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:PropertyPlantAndEquipmentTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R37": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseRightOfUseAssetsTables",
     "longName": "100370 - Disclosure - Operating Lease Right of Use Assets (Tables)",
     "shortName": "Operating Lease Right of Use Assets (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "37",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:ScheduleOfRightOfUseAssetsAssociatedWithOperatingLeasesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ap:OperatingLeaseRightOfUseAssetTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:ScheduleOfRightOfUseAssetsAssociatedWithOperatingLeasesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ap:OperatingLeaseRightOfUseAssetTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R38": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsTables",
     "longName": "100380 - Disclosure - Intangible Assets (Tables)",
     "shortName": "Intangible Assets (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "38",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:ScheduleOfFiniteAndIndefiniteLivedIntangibleAssetsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:IntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:ScheduleOfFiniteAndIndefiniteLivedIntangibleAssetsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:IntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R39": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesTables",
     "longName": "100390 - Disclosure - Other Current Liabilities (Tables)",
     "shortName": "Other Current Liabilities (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "39",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ScheduleOfAccruedLiabilitiesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:OtherLiabilitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ScheduleOfAccruedLiabilitiesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:OtherLiabilitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R40": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtTables",
     "longName": "100400 - Disclosure - Debt (Tables)",
     "shortName": "Debt (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "40",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:DebtDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:DebtDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R41": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesTables",
     "longName": "100410 - Disclosure - Operating Lease Liabilities (Tables)",
     "shortName": "Operating Lease Liabilities (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "41",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:ScheduleOfBalanceSheetDisclosureOfOperatingLeaseLiabilityTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:ScheduleOfBalanceSheetDisclosureOfOperatingLeaseLiabilityTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R42": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsTables",
     "longName": "100420 - Disclosure - Pension and Other Postretirement Benefits (Tables)",
     "shortName": "Pension and Other Postretirement Benefits (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "42",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:ComponentsOfActuarialGainsLossesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:ComponentsOfActuarialGainsLossesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R43": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingTables",
     "longName": "100430 - Disclosure - Equity Rights Offering (Tables)",
     "shortName": "Equity Rights Offering (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "43",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:ScheduleOfWarrantsOutstandingTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ap:EquityRightsOfferingTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:ScheduleOfWarrantsOutstandingTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ap:EquityRightsOfferingTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R44": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossTables",
     "longName": "100440 - Disclosure - Accumulated Other Comprehensive Loss (Tables)",
     "shortName": "Accumulated Other Comprehensive Loss (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "44",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ScheduleOfComprehensiveIncomeLossTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ScheduleOfComprehensiveIncomeLossTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R45": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsTables",
     "longName": "100450 - Disclosure - Derivative Instruments (Tables)",
     "shortName": "Derivative Instruments (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "45",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:ScheduleOfDerivativeInstrumentsAmountRecognizedAndReclassifiedFromAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:ScheduleOfDerivativeInstrumentsAmountRecognizedAndReclassifiedFromAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R46": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureFairValueTables",
     "longName": "100460 - Disclosure - Fair Value (Tables)",
     "shortName": "Fair Value (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "46",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R47": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueTables",
     "longName": "100470 - Disclosure - Revenue (Tables)",
     "shortName": "Revenue (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "47",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:DisaggregationOfRevenueTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:RevenueFromContractWithCustomerTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:DisaggregationOfRevenueTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:RevenueFromContractWithCustomerTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R48": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationTables",
     "longName": "100480 - Disclosure - Stock-Based Compensation (Tables)",
     "shortName": "Stock-Based Compensation (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "48",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ScheduleOfNonvestedShareActivityTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ScheduleOfNonvestedShareActivityTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R49": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationTables",
     "longName": "100490 - Disclosure - Litigation (Tables)",
     "shortName": "Litigation (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "49",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ScheduleOfLossContingenciesByContingencyTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ap:LitigationTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ScheduleOfLossContingenciesByContingencyTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ap:LitigationTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R50": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTables",
     "longName": "100500 - Disclosure - Income Taxes (Tables)",
     "shortName": "Income Taxes (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "50",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R51": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesTables",
     "longName": "100510 - Disclosure - Related Parties (Tables)",
     "shortName": "Related Parties (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "51",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ScheduleOfRelatedPartyTransactionsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ScheduleOfRelatedPartyTransactionsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R52": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsTables",
     "longName": "100520 - Disclosure - Business Segments (Tables)",
     "shortName": "Business Segments (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "52",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:SegmentReportingDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:SegmentReportingDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R53": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDescriptionOfBusinessAdditionalInformationDetail",
     "longName": "100530 - Disclosure - Description of Business - Additional Information (Detail)",
     "shortName": "Description of Business - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "53",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:NumberOfOperatingSegments",
      "unitRef": "U_Segment",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "us-gaap:BusinessDescriptionAndBasisOfPresentationTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:NumberOfOperatingSegments",
      "unitRef": "U_Segment",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "us-gaap:BusinessDescriptionAndBasisOfPresentationTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R54": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
     "longName": "100540 - Disclosure - Summary of Significant Accounting Policies - Additional Information (Detail)",
     "shortName": "Summary of Significant Accounting Policies - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "54",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:MovingAveragePeriodToDetermineMarketValueOfPlanAssets",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:CompensationRelatedCostsPolicyTextBlock",
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:MovingAveragePeriodToDetermineMarketValueOfPlanAssets",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:CompensationRelatedCostsPolicyTextBlock",
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R55": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/DisclosureAllowanceForCreditLossesTradeReceivablesAdditionalInformationDetail",
     "longName": "100550 - Disclosure - Allowance for Credit Losses (Trade Receivables) - Additional Information (Detail)",
     "shortName": "Allowance for Credit Losses (Trade Receivables) - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "55",
     "firstAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:AllowanceForDoubtfulAccountsReceivableCurrent",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "us-gaap:AllowanceForCreditLossesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:AllowanceForDoubtfulAccountsReceivableCurrent",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "us-gaap:AllowanceForCreditLossesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R56": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetail",
     "longName": "100560 - Disclosure - Inventories - Schedule of Inventories (Detail)",
     "shortName": "Inventories - Schedule of Inventories (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "56",
     "firstAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:InventoryRawMaterialsNetOfReserves",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfInventoryCurrentTableTextBlock",
       "div",
       "us-gaap:InventoryDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:InventoryRawMaterialsNetOfReserves",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfInventoryCurrentTableTextBlock",
       "div",
       "us-gaap:InventoryDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R57": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentScheduleOfPropertyPlantAndEquipmentDetail",
     "longName": "100570 - Disclosure - Property, Plant and Equipment - Schedule of Property, Plant and Equipment (Detail)",
     "shortName": "Property, Plant and Equipment - Schedule of Property, Plant and Equipment (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "57",
     "firstAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:PropertyPlantAndEquipmentGross",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:PropertyPlantAndEquipmentTextBlock",
       "div",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:PropertyPlantAndEquipmentGross",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:PropertyPlantAndEquipmentTextBlock",
       "div",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R58": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail",
     "longName": "100580 - Disclosure - Property, Plant and Equipment - Additional Information (Detail)",
     "shortName": "Property, Plant and Equipment - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "58",
     "firstAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:LesseeOperatingLeaseTermOfContract",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:FinanceLeaseRightOfUseAsset",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R59": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/DisclosureOperatingLeaseRightofuseAssetsScheduleOfTheNetBookValueOfRightofuseAssetsDetail",
     "longName": "100590 - Disclosure - Operating Lease Right-of-Use Assets - Schedule of The Net Book Value of Right-of-Use Assets (Detail)",
     "shortName": "Operating Lease Right-of-Use Assets - Schedule of The Net Book Value of Right-of-Use Assets (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "59",
     "firstAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:OperatingLeaseRightOfUseAsset",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_a800dbb1-8099-47a6-a268-2f674fdb8ebc",
      "name": "us-gaap:OperatingLeaseRightOfUseAsset",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ap:ScheduleOfRightOfUseAssetsAssociatedWithOperatingLeasesTableTextBlock",
       "div",
       "ap:OperatingLeaseRightOfUseAssetTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R60": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsScheduleOfIntangibleAssetsDetail",
     "longName": "100600 - Disclosure - Intangible Assets - Schedule of Intangible Assets (Detail)",
     "shortName": "Intangible Assets - Schedule of Intangible Assets (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "60",
     "firstAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:IndefiniteLivedTradeNames",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ap:ScheduleOfFiniteAndIndefiniteLivedIntangibleAssetsTableTextBlock",
       "div",
       "us-gaap:IntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:IndefiniteLivedTradeNames",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ap:ScheduleOfFiniteAndIndefiniteLivedIntangibleAssetsTableTextBlock",
       "div",
       "us-gaap:IntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R61": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail",
     "longName": "100610 - Disclosure - Intangible Assets - Summary of Changes in Intangible Assets (Detail)",
     "shortName": "Intangible Assets - Summary of Changes in Intangible Assets (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "61",
     "firstAnchor": {
      "contextRef": "C_e27d654c-16fa-45ad-bb01-a0ab2ce17648",
      "name": "us-gaap:IntangibleAssetsNetExcludingGoodwill",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:AmortizationOfIntangibleAssets",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:IntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R62": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsAdditionalInformationDetail",
     "longName": "100620 - Disclosure - Intangible Assets - Additional Information (Detail)",
     "shortName": "Intangible Assets - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "62",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:IntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:IntangibleAssetsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R63": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInvestmentsInJointVenturesAdditionalInformationDetail",
     "longName": "100630 - Disclosure - Investments in Joint Ventures - Additional Information (Detail)",
     "shortName": "Investments in Joint Ventures - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "63",
     "firstAnchor": {
      "contextRef": "C_78d4818d-4ce5-4a11-8bdf-6b4ea6790bd2",
      "name": "ap:CostMethodInvestmentsOwnershipPercentage",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "span",
       "p",
       "us-gaap:EquityMethodInvestmentsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_78d4818d-4ce5-4a11-8bdf-6b4ea6790bd2",
      "name": "ap:CostMethodInvestmentsOwnershipPercentage",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "span",
       "p",
       "us-gaap:EquityMethodInvestmentsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R64": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail",
     "longName": "100640 - Disclosure - Other Current Liabilities - Schedule of Other Current Liabilities (Detail)",
     "shortName": "Other Current Liabilities - Schedule of Other Current Liabilities (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "64",
     "firstAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "ap:CustomerRelatedLiabilities",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAccruedLiabilitiesTableTextBlock",
       "div",
       "us-gaap:OtherLiabilitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "ap:CustomerRelatedLiabilities",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAccruedLiabilitiesTableTextBlock",
       "div",
       "us-gaap:OtherLiabilitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R65": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesScheduleOfChangesInLiabilityForProductWarrantyClaimsDetail",
     "longName": "100650 - Disclosure - Other Current Liabilities - Schedule of Changes in Liability for Product Warranty Claims (Detail)",
     "shortName": "Other Current Liabilities - Schedule of Changes in Liability for Product Warranty Claims (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "65",
     "firstAnchor": {
      "contextRef": "C_e27d654c-16fa-45ad-bb01-a0ab2ce17648",
      "name": "us-gaap:StandardProductWarrantyAccrual",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:OtherLiabilitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_11d6ec99-4969-400a-acd8-c37f58d9df5f",
      "name": "us-gaap:StandardProductWarrantyAccrual",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:OtherLiabilitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R66": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesAdditionalInformationDetail",
     "longName": "100660 - Disclosure - Other Current Liabilities - Additional Information (Detail)",
     "shortName": "Other Current Liabilities - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "66",
     "firstAnchor": {
      "contextRef": "C_7a29dbfc-7be0-41b8-8ef2-1013399f8422",
      "name": "ap:PerformanceObligationRelatedToCustomerDepositsExpectedSatisfactionPeriod",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:OtherLiabilitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_7a29dbfc-7be0-41b8-8ef2-1013399f8422",
      "name": "ap:PerformanceObligationRelatedToCustomerDepositsExpectedSatisfactionPeriod",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:OtherLiabilitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R67": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesScheduleOfChangeInCustomerDepositsDetail",
     "longName": "100670 - Disclosure - Other Current Liabilities - Schedule of Change in Customer Deposits (Detail)",
     "shortName": "Other Current Liabilities - Schedule of Change in Customer Deposits (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "67",
     "firstAnchor": {
      "contextRef": "C_e27d654c-16fa-45ad-bb01-a0ab2ce17648",
      "name": "us-gaap:ContractWithCustomerLiabilityCurrent",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ContractWithCustomerAssetAndLiabilityTableTextBlock",
       "div",
       "us-gaap:OtherLiabilitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_11d6ec99-4969-400a-acd8-c37f58d9df5f",
      "name": "us-gaap:ContractWithCustomerLiabilityCurrent",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ContractWithCustomerAssetAndLiabilityTableTextBlock",
       "div",
       "us-gaap:OtherLiabilitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R68": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/DisclosureDebtScheduleOfDebtDetail",
     "longName": "100680 - Disclosure - Debt - Schedule of Debt (Detail)",
     "shortName": "Debt - Schedule of Debt (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "68",
     "firstAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:FinanceLeaseLiability",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
       "div",
       "us-gaap:DebtDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:FinanceLeaseLiability",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
       "div",
       "us-gaap:DebtDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R69": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail",
     "longName": "100700 - Disclosure - Debt - Additional Information (Detail)",
     "shortName": "Debt - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "69",
     "firstAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:BridgeLoan",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "us-gaap:DebtDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:BridgeLoan",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "us-gaap:DebtDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R70": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfCurrentAndNonCurrentPortionsOfOperatingLeaseArrangementsDetail",
     "longName": "100710 - Disclosure - Operating Lease Liabilities - Summary of Current and Non Current Portions of Operating Lease Arrangements (Detail)",
     "shortName": "Operating Lease Liabilities - Summary of Current and Non Current Portions of Operating Lease Arrangements (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "70",
     "firstAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:OperatingLeaseLiabilityCurrent",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R71": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfFutureOperatingLeasePaymentsDetail",
     "longName": "100720 - Disclosure - Operating Lease Liabilities - Summary of Future Operating Lease Payments (Detail)",
     "shortName": "Operating Lease Liabilities - Summary of Future Operating Lease Payments (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "71",
     "firstAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R72": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesAdditionalInformationDetail",
     "longName": "100730 - Disclosure - Operating Lease Liabilities - Additional Information (Detail)",
     "shortName": "Operating Lease Liabilities - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "72",
     "firstAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:OperatingLeaseWeightedAverageRemainingLeaseTerm1",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:OperatingLeaseWeightedAverageRemainingLeaseTerm1",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R73": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail",
     "longName": "100750 - Disclosure - Pension and Other Postretirement Benefits - Additional Information (Detail)",
     "shortName": "Pension and Other Postretirement Benefits - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "73",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:MultiemployerPlanNumberOfEmployer",
      "unitRef": "U_Employer",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "ap:MultiemployerPlanNumberOfEmployerLocationsDescription",
       "span",
       "div",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:MultiemployerPlanNumberOfEmployer",
      "unitRef": "U_Employer",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "ap:MultiemployerPlanNumberOfEmployerLocationsDescription",
       "span",
       "div",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R74": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/DisclosurePensionAndOtherPostretirementBenefitsComponentsOfActuarialLossesGainsInProjectedBenefitObligationsDetail",
     "longName": "100760 - Disclosure - Pension and Other Postretirement Benefits - Components of Actuarial Losses (Gains) in Projected Benefit Obligations (Detail)",
     "shortName": "Pension and Other Postretirement Benefits - Components of Actuarial Losses (Gains) in Projected Benefit Obligations (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "74",
     "firstAnchor": {
      "contextRef": "C_a2bd51a8-4dfc-40cb-a049-5b78116a0508",
      "name": "ap:DefinedBenefitPlanChangesInAssumptions",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ap:ComponentsOfActuarialGainsLossesTableTextBlock",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_a2bd51a8-4dfc-40cb-a049-5b78116a0508",
      "name": "ap:DefinedBenefitPlanChangesInAssumptions",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ap:ComponentsOfActuarialGainsLossesTableTextBlock",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R75": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInProjectedBenefitObligationsPBODetail",
     "longName": "100770 - Disclosure - Pension and Other Postretirement Benefits - Schedule of Changes in Projected Benefit Obligations (PBO) (Detail)",
     "shortName": "Pension and Other Postretirement Benefits - Schedule of Changes in Projected Benefit Obligations (PBO) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "75",
     "firstAnchor": {
      "contextRef": "C_96ca51a6-43b8-4129-9f0f-79d33f9e5a8b",
      "name": "us-gaap:DefinedBenefitPlanBenefitObligation",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDefinedBenefitPlansDisclosuresTextBlock",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_a2bd51a8-4dfc-40cb-a049-5b78116a0508",
      "name": "us-gaap:DefinedBenefitPlanBenefitObligationBenefitsPaid",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDefinedBenefitPlansDisclosuresTextBlock",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R76": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInPlanAssetsDetail",
     "longName": "100780 - Disclosure - Pension and Other Postretirement Benefits - Schedule of Changes in Plan Assets (Detail)",
     "shortName": "Pension and Other Postretirement Benefits - Schedule of Changes in Plan Assets (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "76",
     "firstAnchor": {
      "contextRef": "C_b2b25579-fa03-4b5a-889c-2db82d26b46c",
      "name": "us-gaap:DefinedBenefitPlanFairValueOfPlanAssets",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_a2bd51a8-4dfc-40cb-a049-5b78116a0508",
      "name": "us-gaap:DefinedBenefitPlanActualReturnOnPlanAssets",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDefinedBenefitPlansDisclosuresTextBlock",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R77": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfFundedStatusOfPlansDetail",
     "longName": "100790 - Disclosure - Pension and Other Postretirement Benefits - Schedule of Funded Status of the Plans (Detail)",
     "shortName": "Pension and Other Postretirement Benefits - Schedule of Funded Status of the Plans (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "77",
     "firstAnchor": {
      "contextRef": "C_9611e8a1-549b-41bc-8e0b-c9a449b0f02a",
      "name": "us-gaap:DefinedBenefitPlanFairValueOfPlanAssets",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_3837b1b7-2b58-4d32-bfff-2f6901fff967",
      "name": "us-gaap:DefinedBenefitPlanFundedStatusOfPlan",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDefinedBenefitPlansDisclosuresTextBlock",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R78": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfAmountsRecognizedInConsolidatedBalanceSheetsDetail",
     "longName": "100800 - Disclosure - Pension and Other Postretirement Benefits - Summary of Amounts Recognized in the Consolidated Balance Sheets (Detail)",
     "shortName": "Pension and Other Postretirement Benefits - Summary of Amounts Recognized in the Consolidated Balance Sheets (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "78",
     "firstAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_3837b1b7-2b58-4d32-bfff-2f6901fff967",
      "name": "us-gaap:PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDefinedBenefitPlansDisclosuresTextBlock",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R79": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfAccumulatedOtherComprehensiveLossDetail",
     "longName": "100810 - Disclosure - Pension and Other Postretirement Benefits - Schedule of Accumulated Other Comprehensive Loss (Detail)",
     "shortName": "Pension and Other Postretirement Benefits - Schedule of Accumulated Other Comprehensive Loss (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "79",
     "firstAnchor": {
      "contextRef": "C_3837b1b7-2b58-4d32-bfff-2f6901fff967",
      "name": "us-gaap:DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDefinedBenefitPlansDisclosuresTextBlock",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_3837b1b7-2b58-4d32-bfff-2f6901fff967",
      "name": "us-gaap:DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDefinedBenefitPlansDisclosuresTextBlock",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R80": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail",
     "longName": "100820 - Disclosure - Pension and Other Postretirement Benefits - Schedule of Estimated Benefit Payments (Detail)",
     "shortName": "Pension and Other Postretirement Benefits - Schedule of Estimated Benefit Payments (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "80",
     "firstAnchor": {
      "contextRef": "C_3837b1b7-2b58-4d32-bfff-2f6901fff967",
      "name": "us-gaap:DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfExpectedBenefitPaymentsTableTextBlock",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_3837b1b7-2b58-4d32-bfff-2f6901fff967",
      "name": "us-gaap:DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfExpectedBenefitPaymentsTableTextBlock",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R81": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfTargetAssetAllocationsAndMajorAssetCategoriesDetail",
     "longName": "100830 - Disclosure - Pension and Other Postretirement Benefits - Summary of Target Asset Allocations and Major Asset Categories (Detail)",
     "shortName": "Pension and Other Postretirement Benefits - Summary of Target Asset Allocations and Major Asset Categories (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "81",
     "firstAnchor": {
      "contextRef": "C_22348edd-ccab-40fe-b4ff-8d6c8b79832c",
      "name": "us-gaap:DefinedBenefitPlanPlanAssetsTargetAllocationPercentage",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_22348edd-ccab-40fe-b4ff-8d6c8b79832c",
      "name": "us-gaap:DefinedBenefitPlanPlanAssetsTargetAllocationPercentage",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R82": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail",
     "longName": "100840 - Disclosure - Pension and Other Postretirement Benefits - Asset Categories Based on the Nature and Risks of the Plan Assets (Detail)",
     "shortName": "Pension and Other Postretirement Benefits - Asset Categories Based on the Nature and Risks of the Plan Assets (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "82",
     "firstAnchor": {
      "contextRef": "C_9611e8a1-549b-41bc-8e0b-c9a449b0f02a",
      "name": "us-gaap:DefinedBenefitPlanFairValueOfPlanAssets",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_4b6f5050-2773-4f9d-931b-a69bbc7d917b",
      "name": "us-gaap:DefinedBenefitPlanPlanAssetsInvestmentWithinPlanAssetCategoryAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAllocationOfPlanAssetsTableTextBlock",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R83": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfChangesInFairValueOfLevel3PlanAssetsForUSAndForeignPensionBenefitsPlansDetail",
     "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)",
     "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)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "83",
     "firstAnchor": {
      "contextRef": "C_b2b25579-fa03-4b5a-889c-2db82d26b46c",
      "name": "us-gaap:DefinedBenefitPlanFairValueOfPlanAssets",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_04d3c96a-38e3-4c20-af43-f0662d48f4a9",
      "name": "us-gaap:DefinedBenefitPlanPlanAssetsLevel3ReconciliationDecreaseForSale",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEffectOfSignificantUnobservableInputsChangesInPlanAssetsTableTextBlock",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R84": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
     "longName": "100860 - Disclosure - Pension and Other Postretirement Benefits - Net Periodic Pension and Other Postretirement Benefit Costs (Detail)",
     "shortName": "Pension and Other Postretirement Benefits - Net Periodic Pension and Other Postretirement Benefit Costs (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "84",
     "firstAnchor": {
      "contextRef": "C_01d48b6b-c50c-421c-83e9-5593094db0af",
      "name": "us-gaap:DefinedBenefitPlanServiceCost",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDefinedBenefitPlansDisclosuresTextBlock",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_01d48b6b-c50c-421c-83e9-5593094db0af",
      "name": "us-gaap:DefinedBenefitPlanAmortizationOfPriorServiceCostCredit",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfNetBenefitCostsTableTextBlock",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R85": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsDiscountRatesUsedToDetermineBenefitObligationsDetail",
     "longName": "100870 - Disclosure - Pension and Other Postretirement Benefits - Discount Rates Used to Determine the Benefit Obligations (Detail)",
     "shortName": "Pension and Other Postretirement Benefits - Discount Rates Used to Determine the Benefit Obligations (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "85",
     "firstAnchor": {
      "contextRef": "C_f46e4d7c-9f03-4501-ae0d-700db8de0d74",
      "name": "us-gaap:DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ap:ScheduleOfAssumptionsUsedToDetermineBenefitObligationsTableTextBlock",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f46e4d7c-9f03-4501-ae0d-700db8de0d74",
      "name": "us-gaap:DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ap:ScheduleOfAssumptionsUsedToDetermineBenefitObligationsTableTextBlock",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R86": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssumptionsRegardingNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
     "longName": "100880 - Disclosure - Pension and Other Postretirement Benefits - Assumptions Regarding Net Periodic Pension and Other Postretirement Benefit Costs (Detail)",
     "shortName": "Pension and Other Postretirement Benefits - Assumptions Regarding Net Periodic Pension and Other Postretirement Benefit Costs (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "86",
     "firstAnchor": {
      "contextRef": "C_a2bd51a8-4dfc-40cb-a049-5b78116a0508",
      "name": "us-gaap:DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAssumptionsUsedTableTextBlock",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_a2bd51a8-4dfc-40cb-a049-5b78116a0508",
      "name": "us-gaap:DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAssumptionsUsedTableTextBlock",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R87": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetail",
     "longName": "100890 - Disclosure - Commitments and Contingent Liabilities - Additional Information (Detail)",
     "shortName": "Commitments and Contingent Liabilities - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "87",
     "firstAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:LettersOfCreditOutstandingAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:LettersOfCreditOutstandingAmount",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R88": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingAdditionalInformationDetail",
     "longName": "100900 - Disclosure - Equity Rights Offering - Additional Information (Detail)",
     "shortName": "Equity Rights Offering - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "88",
     "firstAnchor": {
      "contextRef": "C_7a1de489-1b65-4ac1-a778-c86ef4a96b76",
      "name": "us-gaap:ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "span",
       "p",
       "ap:EquityRightsOfferingTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_7a1de489-1b65-4ac1-a778-c86ef4a96b76",
      "name": "us-gaap:ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "span",
       "p",
       "ap:EquityRightsOfferingTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R89": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingSummaryOfOutstandingWarrantsDetail",
     "longName": "100910 - Disclosure - Equity Rights Offering - Summary of Outstanding Warrants (Detail)",
     "shortName": "Equity Rights Offering - Summary of Outstanding Warrants (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "89",
     "firstAnchor": {
      "contextRef": "C_37908da1-98f6-4d24-b3d4-a0075119116d",
      "name": "us-gaap:ClassOfWarrantOrRightOutstanding",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ap:ScheduleOfWarrantsOutstandingTableTextBlock",
       "div",
       "ap:EquityRightsOfferingTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_5e55d747-e759-4357-9dfb-67fd03050f3c",
      "name": "us-gaap:ClassOfWarrantOrRightOutstanding",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ap:ScheduleOfWarrantsOutstandingTableTextBlock",
       "div",
       "ap:EquityRightsOfferingTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R90": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossNetChangesAndEndingBalancesForVariousComponentsOfOtherComprehensiveLossAndAccumulatedOtherCompr",
     "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)",
     "shortName": "Accumulated Other Comprehensive Loss - Net Changes and Ending Balances for Various Components of Other Comprehensive Loss and Accumulated Other Comprehensive Loss (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "90",
     "firstAnchor": {
      "contextRef": "C_e27d654c-16fa-45ad-bb01-a0ab2ce17648",
      "name": "us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_6140a0a5-9a6c-4965-9fbb-dc241ada442a",
      "name": "us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfComprehensiveIncomeLossTableTextBlock",
       "div",
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R91": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossLineItemsAffectedOnConsolidatedStatementsOfOperationsForComponentsReclassifiedFromAccumulatedOtherComprehensiveLossDetail",
     "longName": "100930 - Disclosure - Accumulated Other Comprehensive Loss - Line Items Affected on Consolidated Statements of Operations for Components Reclassified from Accumulated Other Comprehensive Loss (Detail)",
     "shortName": "Accumulated Other Comprehensive Loss - Line Items Affected on Consolidated Statements of Operations for Components Reclassified from Accumulated Other Comprehensive Loss (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "91",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:DepreciationAndAmortization",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_a629f493-c1e7-49b5-b994-366694ca5d50",
      "name": "us-gaap:OtherNonoperatingIncomeExpense",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTableTextBlock",
       "div",
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R92": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossAdditionalInformationDetail",
     "longName": "100940 - Disclosure - Accumulated Other Comprehensive Loss - Additional Information (Detail)",
     "shortName": "Accumulated Other Comprehensive Loss - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "92",
     "firstAnchor": {
      "contextRef": "C_e265332e-b950-4e8c-b4ac-7ac4ebafa220",
      "name": "us-gaap:OtherComprehensiveIncomeLossTax",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "us-gaap:ScheduleOfAmountsRecognizedInOtherComprehensiveIncomeLossTableTextBlock",
       "div",
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_e265332e-b950-4e8c-b4ac-7ac4ebafa220",
      "name": "us-gaap:OtherComprehensiveIncomeLossTax",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "us-gaap:ScheduleOfAmountsRecognizedInOtherComprehensiveIncomeLossTableTextBlock",
       "div",
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R93": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossSummaryOfIncomeTaxEffectAssociatedWithVariousComponentsOfOtherComprehensiveLossDetail",
     "longName": "100950 - Disclosure - Accumulated Other Comprehensive Loss - Summary of Income Tax Effect Associated With Various Components of Other Comprehensive Loss (Detail)",
     "shortName": "Accumulated Other Comprehensive Loss - Summary of Income Tax Effect Associated With Various Components of Other Comprehensive Loss (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "93",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansBenefitPlanImprovementTaxEffect",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAmountsRecognizedInOtherComprehensiveIncomeLossTableTextBlock",
       "div",
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansBenefitPlanImprovementTaxEffect",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAmountsRecognizedInOtherComprehensiveIncomeLossTableTextBlock",
       "div",
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R94": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail",
     "longName": "100960 - Disclosure - Derivative Instruments - Additional Information (Detail)",
     "shortName": "Derivative Instruments - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "94",
     "firstAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "ap:NumberOfSubsidiariesForPurchasesOfNaturalGasUnderExistingCommitments",
      "unitRef": "U_Customer",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "ap:UsageOfElectricityUnderExistingCommitmentsDescription",
       "ap:PurchasesOfNaturalGasUnderExistingCommitmentsDescription",
       "span",
       "p",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "ap:NumberOfSubsidiariesForPurchasesOfNaturalGasUnderExistingCommitments",
      "unitRef": "U_Customer",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "ap:UsageOfElectricityUnderExistingCommitmentsDescription",
       "ap:PurchasesOfNaturalGasUnderExistingCommitmentsDescription",
       "span",
       "p",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R95": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfAmountRecognizedAsAndReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetail",
     "longName": "100980 - Disclosure - Derivative Instruments - Summary of Amount Recognized as and Reclassified from Accumulated Other Comprehensive Income (Loss) (Detail)",
     "shortName": "Derivative Instruments - Summary of Amount Recognized as and Reclassified from Accumulated Other Comprehensive Income (Loss) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "95",
     "firstAnchor": {
      "contextRef": "C_e27d654c-16fa-45ad-bb01-a0ab2ce17648",
      "name": "ap:AccumulatedOtherComprehensiveIncomeLossGainLossFromCashFlowHedgesEffectNetOfTax",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ap:ScheduleOfDerivativeInstrumentsAmountRecognizedAndReclassifiedFromAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_11d6ec99-4969-400a-acd8-c37f58d9df5f",
      "name": "ap:AccumulatedOtherComprehensiveIncomeLossGainLossFromCashFlowHedgesEffectNetOfTax",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ap:ScheduleOfDerivativeInstrumentsAmountRecognizedAndReclassifiedFromAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R96": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfChangeInFairValueReclassifiedOrExpectedToBeReclassifiedFromAccumulatedOtherComprehensiveLossToEarningsDetail",
     "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)",
     "shortName": "Derivative Instruments - Summary of Change in Fair Value Reclassified or Expected to be Reclassified from Accumulated Other Comprehensive Loss to Earnings (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "96",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:DepreciationAndAmortization",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_c89fee9c-12e9-46ed-8777-5a5b2ba558b4",
      "name": "us-gaap:ForeignCurrencyCashFlowHedgeGainLossToBeReclassifiedDuringNext12Months",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ap:ScheduleOfDerivativeInstrumentsAmountOfChangeInFairValueReclassifiedOrExpectedToBeReclassifiedFromAccumulatedOtherComprehensiveIncomeLossToEarningsTableTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R97": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureFairValueFairValueOfFinancialAssetsAndLiabilitiesDetail",
     "longName": "101000 - Disclosure - Fair Value - Fair Value of Financial Assets and Liabilities (Detail)",
     "shortName": "Fair Value - Fair Value of Financial Assets and Liabilities (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "97",
     "firstAnchor": {
      "contextRef": "C_d2785813-c5dd-4656-b562-16fb8b7c906e",
      "name": "us-gaap:AssetsFairValueDisclosure",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d2785813-c5dd-4656-b562-16fb8b7c906e",
      "name": "us-gaap:AssetsFairValueDisclosure",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R98": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueAdditionalInformationDetail",
     "longName": "101010 - Disclosure - Revenue - Additional Information (Detail)",
     "shortName": "Revenue - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "98",
     "firstAnchor": {
      "contextRef": "C_8cd1b158-8d28-41db-8be1-a0562f32c626",
      "name": "us-gaap:ConcentrationRiskPercentage1",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "span",
       "p",
       "us-gaap:DisaggregationOfRevenueTableTextBlock",
       "div",
       "us-gaap:RevenueFromContractWithCustomerTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_8cd1b158-8d28-41db-8be1-a0562f32c626",
      "name": "us-gaap:ConcentrationRiskPercentage1",
      "unitRef": "U_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "span",
       "p",
       "us-gaap:DisaggregationOfRevenueTableTextBlock",
       "div",
       "us-gaap:RevenueFromContractWithCustomerTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R99": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueNetSalesDetail",
     "longName": "101020 - Disclosure - Revenue - Net Sales (Detail)",
     "shortName": "Revenue - Net Sales (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "99",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:Revenues",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_1d76423d-853f-470b-ad86-9f8d6886f545",
      "name": "us-gaap:Revenues",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:DisaggregationOfRevenueTableTextBlock",
       "div",
       "us-gaap:RevenueFromContractWithCustomerTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R100": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
     "longName": "101030 - Disclosure - Stock-Based Compensation - Additional Information (Detail)",
     "shortName": "Stock-Based Compensation - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "100",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:AllocatedShareBasedCompensationExpense",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:AllocatedShareBasedCompensationExpense",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R101": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingRestrictedStockUnitsRSUAndPerformanceShareAwardsPSUDetail",
     "longName": "101040 - Disclosure - Stock-Based Compensation - Summary of Outstanding Restricted Stock Units (\"RSU\") and Performance Share Awards (\"PSU\") (Detail)",
     "shortName": "Stock-Based Compensation - Summary of Outstanding Restricted Stock Units (\"RSU\") and Performance Share Awards (\"PSU\") (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "101",
     "firstAnchor": {
      "contextRef": "C_c1f059e7-6fe0-4bb2-bef9-6e04bedf4d3d",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfNonvestedShareActivityTableTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_a2ccc8eb-7ac9-4bad-b110-5e29876f4d65",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfNonvestedShareActivityTableTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R102": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingStockOptionsDetail",
     "longName": "101050 - Disclosure - Stock-Based Compensation - Summary of Outstanding Stock Options (Detail)",
     "shortName": "Stock-Based Compensation - Summary of Outstanding Stock Options (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "102",
     "firstAnchor": {
      "contextRef": "C_e27d654c-16fa-45ad-bb01-a0ab2ce17648",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExpirationsInPeriod",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R103": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/DisclosureStockbasedCompensationSummaryOfOutstandingRestrictedStockAwardsDetail",
     "longName": "101060 - Disclosure - Stock-Based Compensation - Summary of Outstanding Restricted Stock Awards (Detail)",
     "shortName": "Stock-Based Compensation - Summary of Outstanding Restricted Stock Awards (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "103",
     "firstAnchor": {
      "contextRef": "C_6973ac70-60d8-489e-925f-17174388e2d8",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_a43bfa59-81cb-4783-94a7-955ba7340e28",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
      "unitRef": "U_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R104": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureResearchAndDevelopmentCostsAdditionalInformationDetail",
     "longName": "101070 - Disclosure - Research and Development Costs - Additional Information (Detail)",
     "shortName": "Research and Development Costs - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "104",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ResearchAndDevelopmentExpense",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "us-gaap:ResearchDevelopmentAndComputerSoftwareDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ResearchAndDevelopmentExpense",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "us-gaap:ResearchDevelopmentAndComputerSoftwareDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R105": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyDetail",
     "longName": "101080 - Disclosure - Litigation - Schedule of Loss Contingencies by Contingency (Detail)",
     "shortName": "Litigation - Schedule of Loss Contingencies by Contingency (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "105",
     "firstAnchor": {
      "contextRef": "C_d24c26b2-3d37-415e-849d-1eacfee3d513",
      "name": "us-gaap:LossContingencyPendingClaimsNumber",
      "unitRef": "U_Claim",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfLossContingenciesByContingencyTextBlock",
       "div",
       "ap:LitigationTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_1d2544d5-a5aa-4b2c-958e-61e167336e93",
      "name": "us-gaap:LossContingencyPendingClaimsNumber",
      "unitRef": "U_Claim",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfLossContingenciesByContingencyTextBlock",
       "div",
       "ap:LitigationTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R106": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyParentheticalDetail",
     "longName": "101090 - Disclosure - Litigation - Schedule of Loss Contingencies by Contingency (Parenthetical) (Detail)",
     "shortName": "Litigation - Schedule of Loss Contingencies by Contingency (Parenthetical) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "106",
     "firstAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "ap:ClaimsClassifiedInVariousJurisdictionsAsInactiveOrTransferredToStateOrFederalJudicialPanelOnMultiDistrictLitigation",
      "unitRef": "U_Claim",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "div",
       "us-gaap:ScheduleOfLossContingenciesByContingencyTextBlock",
       "div",
       "ap:LitigationTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "ap:ClaimsClassifiedInVariousJurisdictionsAsInactiveOrTransferredToStateOrFederalJudicialPanelOnMultiDistrictLitigation",
      "unitRef": "U_Claim",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "div",
       "us-gaap:ScheduleOfLossContingenciesByContingencyTextBlock",
       "div",
       "ap:LitigationTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R107": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationAdditionalInformationDetail",
     "longName": "101100 - Disclosure - Litigation - Additional Information (Detail)",
     "shortName": "Litigation - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "107",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:LossContingencyAccrualCarryingValuePeriodIncreaseDecrease",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "ap:LitigationTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:IncreaseDecreaseOfLitigationSettlementExpenseBenefit",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "ap:LitigationTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R108": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/DisclosureLitigationSummaryOfActivityRelatingToAsbestosLiabilityDetails",
     "longName": "101110 - Disclosure - Litigation - Summary of Activity Relating to Asbestos Liability (Details)",
     "shortName": "Litigation - Summary of Activity Relating to Asbestos Liability (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "108",
     "firstAnchor": {
      "contextRef": "C_e27d654c-16fa-45ad-bb01-a0ab2ce17648",
      "name": "us-gaap:LossContingencyAccrualAtCarryingValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ap:ScheduleOfActivityRelatingToAsbestosLiabilityTableTextBlock",
       "div",
       "ap:LitigationTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_11d6ec99-4969-400a-acd8-c37f58d9df5f",
      "name": "us-gaap:LossContingencyAccrualAtCarryingValue",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ap:ScheduleOfActivityRelatingToAsbestosLiabilityTableTextBlock",
       "div",
       "ap:LitigationTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R109": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationSummaryOfActivityInAsbestosInsuranceRecoveriesDetail",
     "longName": "101120 - Disclosure - Litigation - Summary of Activity in Asbestos Insurance Recoveries (Detail)",
     "shortName": "Litigation - Summary of Activity in Asbestos Insurance Recoveries (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "109",
     "firstAnchor": {
      "contextRef": "C_e27d654c-16fa-45ad-bb01-a0ab2ce17648",
      "name": "us-gaap:EstimatedInsuranceRecoveries",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "div",
       "ix:continuation",
       "div",
       "us-gaap:SegmentReportingDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_1d2544d5-a5aa-4b2c-958e-61e167336e93",
      "name": "us-gaap:EstimatedInsuranceRecoveries",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ap:ScheduleOfAsbestosAdjustmentsTableTextBlock",
       "div",
       "ap:LitigationTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R110": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/DisclosureLitigationSummaryOfAsbestosRelatedCostsDetail",
     "longName": "101130 - Disclosure - Litigation - Summary of Asbestos Related Costs (Detail)",
     "shortName": "Litigation - Summary of Asbestos Related Costs (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "110",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:CreditChargeForIncreaseAndDecreaseInLossContingencyAccrualNetEstimatedInsuranceRecovery",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ap:ScheduleOfAsbestosRelatedCostsTableTextBlock",
       "div",
       "ap:LitigationTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:CreditChargeForIncreaseAndDecreaseInLossContingencyAccrualNetEstimatedInsuranceRecovery",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ap:ScheduleOfAsbestosRelatedCostsTableTextBlock",
       "div",
       "ap:LitigationTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R111": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesLossIncomeFromOperationsBeforeIncomeTaxesDetail",
     "longName": "101140 - Disclosure - Income Taxes - (Loss) Income from Operations Before Income Taxes (Detail)",
     "shortName": "Income Taxes - (Loss) Income from Operations Before Income Taxes (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "111",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R112": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesSummaryOfIncomeTaxProvisionDetail",
     "longName": "101150 - Disclosure - Income Taxes - Summary of Income Tax Provision (Detail)",
     "shortName": "Income Taxes - Summary of Income Tax Provision (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "112",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:CurrentStateAndLocalTaxExpenseBenefit",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:CurrentStateAndLocalTaxExpenseBenefit",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R113": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail",
     "longName": "101160 - Disclosure - Income Taxes - Additional Information (Detail)",
     "shortName": "Income Taxes - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "113",
     "firstAnchor": {
      "contextRef": "C_e27d654c-16fa-45ad-bb01-a0ab2ce17648",
      "name": "us-gaap:DeferredTaxLiabilities",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "ap:ReasonablePossibleDurationForSufficientPositiveEvidenceOfValuationAllowance",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R114": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDifferenceBetweenStatutoryUSFederalIncomeTaxAndCorporationSEffectiveIncomeTaxDetail",
     "longName": "101170 - Disclosure - Income Taxes - Difference Between Statutory U.S. Federal Income Tax and the Corporation's Effective Income Tax (Detail)",
     "shortName": "Income Taxes - Difference Between Statutory U.S. Federal Income Tax and the Corporation's Effective Income Tax (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "114",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R115": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail",
     "longName": "101180 - Disclosure - Income Taxes - Deferred Income Tax Assets and Liabilities (Detail)",
     "shortName": "Income Taxes - Deferred Income Tax Assets and Liabilities (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "115",
     "firstAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R116": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEnvironmentalMattersAdditionalInformationDetail",
     "longName": "101190 - Disclosure - Environmental Matters - Additional Information (Detail)",
     "shortName": "Environmental Matters - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "116",
     "firstAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:AccrualForEnvironmentalLossContingencies",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "us-gaap:EnvironmentalLossContingencyDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:AccrualForEnvironmentalLossContingencies",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "us-gaap:EnvironmentalLossContingencyDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R117": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail",
     "longName": "101200 - Disclosure - Related Parties - Additional Information (Detail)",
     "shortName": "Related Parties - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "117",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:Revenues",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_4d2313f8-67d0-4d57-922d-1f8f1cb75d28",
      "name": "us-gaap:Revenues",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R118": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfLoanActivityDetail",
     "longName": "101210 - Disclosure - Related Parties - Summary of Loan Activity (Detail)",
     "shortName": "Related Parties - Summary of Loan Activity (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "118",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:ProceedsFromRelatedPartyDebt",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_4fc7577e-4a7d-4ad3-aeb8-03ea3c54e772",
      "name": "us-gaap:LoansAndLeasesReceivableRelatedParties",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfRelatedPartyTransactionsTableTextBlock",
       "div",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R119": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfSalesToAndPurchasesFromAtrsMinorityShareholderAndItsAffiliatesDetail",
     "longName": "101220 - Disclosure - Related Parties - Summary of Sales to and Purchases from ATR's Minority Shareholder and Its Affiliates (Detail)",
     "shortName": "Related Parties - Summary of Sales to and Purchases from ATR's Minority Shareholder and Its Affiliates (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "119",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:Revenues",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_c85b478d-f7b7-4dfd-8667-14c05969797f",
      "name": "us-gaap:RelatedPartyTransactionPurchasesFromRelatedParty",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfRelatedPartyTransactionsTableTextBlock",
       "div",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R120": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfBalancesOutstandingWithAtrsMinorityShareholderAndItsAffiliatesDetail",
     "longName": "101230 - Disclosure - Related Parties - Summary of Balances Outstanding with ATR's Minority Shareholder and Its Affiliates (Detail)",
     "shortName": "Related Parties - Summary of Balances Outstanding with ATR's Minority Shareholder and Its Affiliates (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "120",
     "firstAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:AccountsReceivableNetCurrent",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_f8270651-3177-489d-838a-bfa59a61add0",
      "name": "us-gaap:RelatedPartyDepositLiabilities",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfRelatedPartyTransactionsTableTextBlock",
       "div",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R121": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsAdditionalInformationDetail",
     "longName": "101240 - Disclosure - Business Segments - Additional Information (Detail)",
     "shortName": "Business Segments - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "121",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:NumberOfReportableSegments",
      "unitRef": "U_Segment",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "us-gaap:SegmentReportingDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:NumberOfReportableSegments",
      "unitRef": "U_Segment",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "p",
       "us-gaap:SegmentReportingDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R122": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesDetail",
     "longName": "101250 - Disclosure - Business Segments - Business Segment Net Sales and (Loss) Income from Operations Before Income Taxes (Detail)",
     "shortName": "Business Segments - Business Segment Net Sales and (Loss) Income from Operations Before Income Taxes (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "122",
     "firstAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:Revenues",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_39b05206-d7d7-4cb3-ba3d-59de4b6882be",
      "name": "us-gaap:SegmentExpenditureAdditionToLongLivedAssets",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:SegmentReportingDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    },
    "R123": {
     "role": "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail",
     "longName": "101260 - Disclosure - Business Segments - Business Segment Net Sales and (Loss) Income from Operations Before Income Taxes (Parenthetical) (Detail)",
     "shortName": "Business Segments - Business Segment Net Sales and (Loss) Income from Operations Before Income Taxes (Parenthetical) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "123",
     "firstAnchor": {
      "contextRef": "C_9de2acd0-ff28-4e1f-a087-60b0ec60c1e6",
      "name": "us-gaap:InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "C_d0fa8add-3957-46ed-8a2c-b71321ddee42",
      "name": "ap:LitigationSettlementExpenseBenefit",
      "unitRef": "U_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "div",
       "ix:continuation",
       "div",
       "us-gaap:SegmentReportingDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ap-20231231.htm",
      "unique": true
     }
    }
   },
   "tag": {
    "ap_ATRMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ATRMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfBalancesOutstandingWithAtrsMinorityShareholderAndItsAffiliatesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfLoanActivityDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfSalesToAndPurchasesFromAtrsMinorityShareholderAndItsAffiliatesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInvestmentsInJointVenturesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "ATR.",
        "label": "A T R [Member]",
        "terseLabel": "ATR [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccountingPoliciesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccountingPoliciesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Policies [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccountingStandardsUpdate201613Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccountingStandardsUpdate201613Member",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationSummaryOfActivityInAsbestosInsuranceRecoveriesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "ASU 2016-13 [Member]",
        "label": "Accounting Standards Update 2016-13 [Member]",
        "documentation": "Accounting Standards Update 2016-13 Financial Instruments-Credit Losses (Topic 326): Measurement of Credit Losses on Financial Instruments."
       }
      }
     },
     "auth_ref": [
      "r386"
     ]
    },
    "us-gaap_AccountsAndOtherReceivablesNetCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccountsAndOtherReceivablesNetCurrent",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Receivables from related parties",
        "label": "Accounts and Other Receivables, Net, Current",
        "documentation": "Amount, after allowance, receivable from customers, clients, or other third-parties, and receivables classified as other due within one year or the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccountsPayableCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccountsPayableCurrent",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfBalancesOutstandingWithAtrsMinorityShareholderAndItsAffiliatesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Accounts payable to related parties",
        "label": "Accounts Payable, Current",
        "terseLabel": "Accounts payable",
        "totalLabel": "Accounts Payable, Current, Total",
        "documentation": "Carrying value as of the balance sheet date of liabilities incurred (and for which invoices have typically been received) and payable to vendors for goods and services received that are used in an entity's business. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer)."
       }
      }
     },
     "auth_ref": [
      "r31",
      "r1100"
     ]
    },
    "us-gaap_AccountsPayableOtherCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccountsPayableOtherCurrent",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accounts payable to related parties",
        "label": "Accounts Payable, Other, Current",
        "documentation": "Amount of obligations incurred classified as other, payable within one year or the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r31"
     ]
    },
    "us-gaap_AccountsReceivableMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccountsReceivableMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsLocationAndFairValueOfForeignCurrencySalesContractsRecordedOnConsolidatedBalanceSheetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounts Receivable [Member]",
        "terseLabel": "Receivables [Member]",
        "documentation": "Due from customers or clients for goods or services that have been delivered or sold."
       }
      }
     },
     "auth_ref": [
      "r1032"
     ]
    },
    "us-gaap_AccountsReceivableNetCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccountsReceivableNetCurrent",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfBalancesOutstandingWithAtrsMinorityShareholderAndItsAffiliatesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Receivables, less allowance for credit losses",
        "label": "Trade receivable",
        "verboseLabel": "Accounts receivable from related parties",
        "totalLabel": "Accounts Receivable, after Allowance for Credit Loss, Current, Total",
        "documentation": "Amount, after allowance for credit loss, of right to consideration from customer for product sold and service rendered in normal course of business, classified as current."
       }
      }
     },
     "auth_ref": [
      "r375",
      "r376"
     ]
    },
    "us-gaap_AccrualForEnvironmentalLossContingencies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccrualForEnvironmentalLossContingencies",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEnvironmentalMattersAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accrual for Environmental Loss Contingencies",
        "terseLabel": "Undiscounted potential liability for all environmental compliance",
        "totalLabel": "Accrual for Environmental Loss Contingencies, Total",
        "periodStartLabel": "Accrual for Environmental Loss Contingencies, Beginning Balance",
        "periodEndLabel": "Accrual for Environmental Loss Contingencies, Ending Balance",
        "documentation": "Total costs accrued as of the balance sheet date for environmental loss contingencies."
       }
      }
     },
     "auth_ref": [
      "r426",
      "r1067",
      "r1130",
      "r1132",
      "r1202",
      "r1204"
     ]
    },
    "us-gaap_AccruedSalesCommissionCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccruedSalesCommissionCurrent",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail": {
       "parentTag": "us-gaap_OtherLiabilitiesCurrent",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accrued Sales Commission, Current",
        "terseLabel": "Accrued sales commissions",
        "documentation": "Carrying value as of the balance sheet date of obligations incurred through that date and payable for sales commissions. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer)."
       }
      }
     },
     "auth_ref": [
      "r34",
      "r1050"
     ]
    },
    "us-gaap_AccruedUtilitiesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccruedUtilitiesCurrent",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail": {
       "parentTag": "us-gaap_OtherLiabilitiesCurrent",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accrued Utilities, Current",
        "terseLabel": "Accrued utilities",
        "documentation": "Carrying value as of the balance sheet date of obligations incurred through that date and payable for utilities, such as electrical power, heating oil, natural gas, and water. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer)."
       }
      }
     },
     "auth_ref": [
      "r34"
     ]
    },
    "ap_AccumulatedAmortizationOfUnrecognizedEmployeeBenefitCostsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "AccumulatedAmortizationOfUnrecognizedEmployeeBenefitCostsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossLineItemsAffectedOnConsolidatedStatementsOfOperationsForComponentsReclassifiedFromAccumulatedOtherComprehensiveLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortization of unrecognized employee benefit costs.",
        "label": "Accumulated Amortization Of Unrecognized Employee Benefit Costs [Member]",
        "terseLabel": "Amortization of Unrecognized Employee Benefit Costs [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccumulatedDefinedBenefitPlansAdjustmentIncludingPortionAttributableToNoncontrollingInterestMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedDefinedBenefitPlansAdjustmentIncludingPortionAttributableToNoncontrollingInterestMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossNetChangesAndEndingBalancesForVariousComponentsOfOtherComprehensiveLossAndAccumulatedOtherCompr"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated Defined Benefit Plans Adjustment Including Portion Attributable to Noncontrolling Interest [Member]",
        "terseLabel": "Unrecognized Components of Employee Benefit Plans [Member]",
        "documentation": "Accumulated other comprehensive (income) loss related to defined benefit plans including the portion attributable to the noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r5",
      "r19",
      "r45",
      "r1163",
      "r1164",
      "r1165"
     ]
    },
    "us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentScheduleOfPropertyPlantAndEquipmentDetail": {
       "parentTag": "us-gaap_PropertyPlantAndEquipmentNet",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment",
        "negatedLabel": "Accumulated depreciation",
        "totalLabel": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment, Total",
        "periodStartLabel": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment, Beginning Balance",
        "periodEndLabel": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment, Ending Balance",
        "documentation": "Amount of accumulated depreciation, depletion and amortization for physical assets used in the normal conduct of business to produce goods and services."
       }
      }
     },
     "auth_ref": [
      "r79",
      "r252",
      "r809"
     ]
    },
    "us-gaap_AccumulatedForeignCurrencyAdjustmentIncludingPortionAttributableToNoncontrollingInterestMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedForeignCurrencyAdjustmentIncludingPortionAttributableToNoncontrollingInterestMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossNetChangesAndEndingBalancesForVariousComponentsOfOtherComprehensiveLossAndAccumulatedOtherCompr"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated Foreign Currency Adjustment Including Portion Attributable to Noncontrolling Interest [Member]",
        "terseLabel": "Foreign Currency Translation Adjustments [Member]",
        "documentation": "Accumulated other comprehensive income (loss) resulting from foreign currency translation adjustments, foreign currency transactions designated and effective as economic hedges of a net investment in a foreign entity and intra-entity foreign currency transactions that are of a long-term-investment nature, including the portion attributable to the noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r3",
      "r19",
      "r45",
      "r278",
      "r1164",
      "r1165"
     ]
    },
    "us-gaap_AccumulatedGainLossCashFlowHedgeIncludingNoncontrollingInterestMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedGainLossCashFlowHedgeIncludingNoncontrollingInterestMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossNetChangesAndEndingBalancesForVariousComponentsOfOtherComprehensiveLossAndAccumulatedOtherCompr",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossLineItemsAffectedOnConsolidatedStatementsOfOperationsForComponentsReclassifiedFromAccumulatedOtherComprehensiveLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfChangeInFairValueReclassifiedOrExpectedToBeReclassifiedFromAccumulatedOtherComprehensiveLossToEarningsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated Gain (Loss), Cash Flow Hedge, Including Noncontrolling Interest [Member]",
        "terseLabel": "Derivatives [Member]",
        "verboseLabel": "Settlements of Cash Flow Hedges [Member]",
        "documentation": "Accumulated other comprehensive income (loss) from gain (loss) of derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness, including portion attributable to noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r269",
      "r278",
      "r679",
      "r1164",
      "r1165"
     ]
    },
    "ap_AccumulatedOtherComprehensiveIncomeLossGainLossFromCashFlowHedgesEffectNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "AccumulatedOtherComprehensiveIncomeLossGainLossFromCashFlowHedgesEffectNetOfTax",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfAmountRecognizedAsAndReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accumulated other comprehensive income (loss), gain (loss) from cash flow hedges effect net of tax.",
        "label": "Accumulated Other Comprehensive Income Loss Gain Loss From Cash Flow Hedges Effect Net Of Tax",
        "periodEndLabel": "End of the Year",
        "periodStartLabel": "Beginning of the Year"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedOtherComprehensiveIncomeLossLineItems",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossNetChangesAndEndingBalancesForVariousComponentsOfOtherComprehensiveLossAndAccumulatedOtherCompr",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated Other Comprehensive Income (Loss) [Line Items]",
        "terseLabel": "Accumulated Other Comprehensive Income (Loss) [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r278",
      "r279",
      "r727",
      "r729",
      "r730",
      "r731",
      "r732",
      "r733"
     ]
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedOtherComprehensiveIncomeLossNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated Other Comprehensive Income (Loss), Net of Tax",
        "terseLabel": "Accumulated other comprehensive loss",
        "totalLabel": "Accumulated Other Comprehensive Income (Loss), Net of Tax, Total",
        "documentation": "Amount, after tax, of accumulated increase (decrease) in equity from transaction and other event and circumstance from nonowner source."
       }
      }
     },
     "auth_ref": [
      "r44",
      "r45",
      "r164",
      "r260",
      "r804",
      "r846",
      "r850"
     ]
    },
    "ap_AccumulatedOtherComprehensiveIncomeLossPlusOtherComprehensiveIncomeLossMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "AccumulatedOtherComprehensiveIncomeLossPlusOtherComprehensiveIncomeLossMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossNetChangesAndEndingBalancesForVariousComponentsOfOtherComprehensiveLossAndAccumulatedOtherCompr"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accumulated other comprehensive income loss plus other comprehensive income (loss).",
        "label": "Accumulated Other Comprehensive Income Loss Plus Other Comprehensive Income Loss [Member]",
        "terseLabel": "Accumulated Other Comprehensive Loss Attributable to Ampco-Pittsburgh [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedOtherComprehensiveIncomeLossTable",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossNetChangesAndEndingBalancesForVariousComponentsOfOtherComprehensiveLossAndAccumulatedOtherCompr",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated Other Comprehensive Income (Loss) [Table]",
        "terseLabel": "Accumulated Other Comprehensive Income Loss [Table]",
        "documentation": "Disclosure of information about components of accumulated other comprehensive income (loss)."
       }
      }
     },
     "auth_ref": [
      "r278",
      "r279",
      "r727",
      "r729",
      "r730",
      "r731",
      "r732",
      "r733"
     ]
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AccumulatedOtherComprehensiveIncomeMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "AOCI Attributable to Parent [Member]",
        "terseLabel": "Accumulated Other Comprehensive Loss [Member]",
        "documentation": "Accumulated increase (decrease) in equity from transactions and other events and circumstances from non-owner sources, attributable to the parent. Excludes net income (loss), and accumulated changes in equity from transactions resulting from investments by owners and distributions to owners."
       }
      }
     },
     "auth_ref": [
      "r2",
      "r19",
      "r45",
      "r688",
      "r691",
      "r759",
      "r841",
      "r842",
      "r1163",
      "r1164",
      "r1165",
      "r1182",
      "r1183",
      "r1184"
     ]
    },
    "us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquired Finite-Lived Intangible Assets, Weighted Average Useful Life",
        "terseLabel": "Identifiable intangible assets, weighted average amortization period",
        "documentation": "Weighted average amortization period of finite-lived intangible assets acquired either individually or as part of a group of assets, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days."
       }
      }
     },
     "auth_ref": [
      "r184"
     ]
    },
    "us-gaap_AdditionalPaidInCapitalCommonStock": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AdditionalPaidInCapitalCommonStock",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Paid in Capital, Common Stock",
        "terseLabel": "Additional paid-in capital",
        "documentation": "Value received from shareholders in common stock-related transactions that are in excess of par value or stated value and amounts received from other stock-related transactions. Includes only common stock transactions (excludes preferred stock transactions). May be called contributed capital, capital in excess of par, capital surplus, or paid-in capital."
       }
      }
     },
     "auth_ref": [
      "r154"
     ]
    },
    "us-gaap_AdditionalPaidInCapitalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AdditionalPaidInCapitalMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquityParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Paid-in Capital [Member]",
        "terseLabel": "Additional Paid-in Capital [Member]",
        "documentation": "Excess of issue price over par or stated value of the entity's capital stock and amounts received from other transactions involving the entity's stock or stockholders."
       }
      }
     },
     "auth_ref": [
      "r630",
      "r631",
      "r632",
      "r866",
      "r1182",
      "r1183",
      "r1184",
      "r1330",
      "r1357"
     ]
    },
    "us-gaap_AdjustmentsForNewAccountingPronouncementsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AdjustmentsForNewAccountingPronouncementsAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationSummaryOfActivityInAsbestosInsuranceRecoveriesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Standards Update [Axis]",
        "documentation": "Information by amendment to accounting standards."
       }
      }
     },
     "auth_ref": [
      "r239",
      "r240",
      "r241",
      "r242",
      "r243",
      "r313",
      "r314",
      "r315",
      "r316",
      "r327",
      "r378",
      "r379",
      "r387",
      "r388",
      "r389",
      "r390",
      "r391",
      "r392",
      "r393",
      "r394",
      "r395",
      "r396",
      "r416",
      "r630",
      "r631",
      "r632",
      "r656",
      "r657",
      "r658",
      "r659",
      "r671",
      "r672",
      "r673",
      "r683",
      "r684",
      "r685",
      "r686",
      "r687",
      "r688",
      "r689",
      "r690",
      "r691",
      "r692",
      "r693",
      "r695",
      "r696",
      "r697",
      "r698",
      "r699",
      "r700",
      "r701",
      "r702",
      "r703",
      "r704",
      "r705",
      "r706",
      "r711",
      "r712",
      "r714",
      "r715",
      "r716",
      "r717",
      "r735",
      "r736",
      "r738",
      "r739",
      "r740",
      "r741",
      "r755",
      "r756",
      "r757",
      "r758",
      "r759",
      "r777",
      "r778",
      "r779",
      "r839",
      "r840",
      "r841",
      "r842",
      "r843",
      "r844",
      "r845",
      "r846",
      "r847",
      "r848",
      "r849",
      "r850"
     ]
    },
    "us-gaap_AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationStockOptionsRequisiteServicePeriodRecognition",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "APIC, Share-Based Payment Arrangement, Option, Increase for Cost Recognition",
        "terseLabel": "Stock-based compensation",
        "documentation": "Amount of increase to additional paid-in capital (APIC) for recognition of cost for option under share-based payment arrangement."
       }
      }
     },
     "auth_ref": []
    },
    "ap_AdjustmentsToAdditionalPaidInCapitalShareholderExerciseOfWarrants": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "AdjustmentsToAdditionalPaidInCapitalShareholderExerciseOfWarrants",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Adjustments to additional paid in capital, shareholder exercise of warrants.",
        "label": "Adjustments To Additional Paid In Capital Shareholder Exercise Of Warrants",
        "terseLabel": "Shareholder exercise of warrants (Note 13)"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Adjustments to reconcile net (loss) income from operations to net cash flows used in operating activities:",
        "label": "Adjustments to Reconcile Net Income (Loss) to Cash Provided by (Used in) Operating Activities [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_AdministrativeClosuresClaimsPeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "AdministrativeClosuresClaimsPeriod",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Administrative closures claims period.",
        "label": "Administrative Closures Claims Period",
        "terseLabel": "Administrative closures claims period"
       }
      }
     },
     "auth_ref": []
    },
    "ap_AirAndLiquidProcessingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "AirAndLiquidProcessingMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueNetSalesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Air and liquid processing.",
        "label": "Air And Liquid Processing [Member]",
        "terseLabel": "Air and Liquid Processing [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_AirHandlingSystemsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "AirHandlingSystemsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueNetSalesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Air handling systems.",
        "label": "Air Handling Systems [Member]",
        "terseLabel": "Air Handling Systems [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_AkersABMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "AkersABMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInvestmentsInJointVenturesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Akers AB [Member]",
        "label": "Akers A B [Member]",
        "terseLabel": "Akers AB [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AllocatedShareBasedCompensationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AllocatedShareBasedCompensationExpense",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement, Expense",
        "terseLabel": "Stock-based compensation expense",
        "documentation": "Amount of expense for award under share-based payment arrangement. Excludes amount capitalized."
       }
      }
     },
     "auth_ref": [
      "r625",
      "r637"
     ]
    },
    "us-gaap_AllowanceForCreditLossAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AllowanceForCreditLossAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Allowance for Credit Loss [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_AllowanceForCreditLossesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "AllowanceForCreditLossesLineItems",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureAllowanceForCreditLossesTradeReceivablesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Allowance for Credit Losses [Line Items]",
        "documentation": "Allowance for credit losses."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AllowanceForCreditLossesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AllowanceForCreditLossesTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureAllowanceForCreditLossesTradeReceivables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Allowance for Credit Losses (Trade Receivables)",
        "label": "Allowance for Credit Losses [Text Block]",
        "documentation": "The entire disclosure for allowance for credit losses."
       }
      }
     },
     "auth_ref": [
      "r68"
     ]
    },
    "us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AllowanceForDoubtfulAccountsReceivableCurrent",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureAllowanceForCreditLossesTradeReceivablesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Allowance for credit losses on trade receivables",
        "label": "Accounts Receivable, Allowance for Credit Loss, Current",
        "documentation": "Amount of allowance for credit loss on accounts receivable, classified as current."
       }
      }
     },
     "auth_ref": [
      "r261",
      "r377",
      "r397"
     ]
    },
    "us-gaap_AllowanceForDoubtfulAccountsReceivablePeriodIncreaseDecrease": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AllowanceForDoubtfulAccountsReceivablePeriodIncreaseDecrease",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Expected losses on trade receivables",
        "label": "Accounts Receivable, Allowance for Credit Loss, Period Increase (Decrease)",
        "totalLabel": "Accounts Receivable, Allowance for Credit Loss, Period Increase (Decrease), Total",
        "documentation": "Amount of increase (decrease) in allowance for credit loss on accounts receivable."
       }
      }
     },
     "auth_ref": [
      "r1197"
     ]
    },
    "ap_AllowanceForNewCapitalEquipmentFinancing": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "AllowanceForNewCapitalEquipmentFinancing",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Allowance for new capital equipment financing.",
        "label": "Allowance For New Capital Equipment Financing",
        "terseLabel": "Allowance for new capital equipment financing"
       }
      }
     },
     "auth_ref": []
    },
    "ap_AlternativeInvestmentsAbsoluteReturnFundsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "AlternativeInvestmentsAbsoluteReturnFundsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Alternative Investments - absolute return funds.",
        "label": "Alternative Investments - Absolute Return Funds [Member]",
        "terseLabel": "Alternative Investments - Absolute Return Funds [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_AlternativeInvestmentsManagedFundsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "AlternativeInvestmentsManagedFundsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Alternative investments managed funds.",
        "label": "Alternative Investments Managed Funds [Member]",
        "terseLabel": "Alternative Investments, Managed Funds [Member]",
        "verboseLabel": "Alternative Investments - Managed Funds [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_AlternativeInvestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "AlternativeInvestmentsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfChangesInFairValueOfLevel3PlanAssetsForUSAndForeignPensionBenefitsPlansDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfTargetAssetAllocationsAndMajorAssetCategoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Alternative Investments [Member]",
        "label": "Alternative Investments [Member]",
        "terseLabel": "Alternative Investments [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_AluminumPurchasesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "AluminumPurchasesMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aluminum Purchases [Member]",
        "label": "Aluminum Purchases [Member]",
        "terseLabel": "Aluminum Purchases [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_AmendmentFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AmendmentFlag",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amendment Flag",
        "verboseLabel": "Amendment Flag",
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AmortizationOfIntangibleAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AmortizationOfIntangibleAssets",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amortization of Intangible Assets",
        "negatedLabel": "Amortization of intangible assets",
        "documentation": "The aggregate expense charged against earnings to allocate the cost of intangible assets (nonphysical assets not used in production) in a systematic and rational manner to the periods expected to benefit from such assets. As a noncash expense, this element is added back to net income when calculating cash provided by or used in operations using the indirect method."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r72",
      "r76"
     ]
    },
    "ap_AmpcoPittsburghMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "AmpcoPittsburghMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ampco Pittsburgh [Member]",
        "label": "Ampco Pittsburgh [Member]",
        "terseLabel": "Ampco Pittsburgh [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_AnhuiMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "AnhuiMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInvestmentsInJointVenturesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Anhui [Member]",
        "label": "Anhui [Member]",
        "documentation": "Anhui."
       }
      }
     },
     "auth_ref": []
    },
    "ap_AnnualRentAdjustmentToRepayRestatedLease": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "AnnualRentAdjustmentToRepayRestatedLease",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Annual rent adjustment to repay restated lease",
        "label": "Annual Rent adjustment to repay restated lease",
        "documentation": "Annual Rent adjustment to repay restated lease."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Antidilutive Securities Excluded from Computation of Earnings Per Share, Amount",
        "terseLabel": "Weighted average outstanding stock options",
        "documentation": "Securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) or earnings per unit (EPU) in the future that were not included in the computation of diluted EPS or EPU because to do so would increase EPS or EPU amounts or decrease loss per share or unit amounts for the period presented."
       }
      }
     },
     "auth_ref": [
      "r336"
     ]
    },
    "us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Antidilutive Securities [Axis]",
        "terseLabel": "Antidilutive Securities",
        "documentation": "Information by type of antidilutive security."
       }
      }
     },
     "auth_ref": [
      "r57"
     ]
    },
    "us-gaap_AntidilutiveSecuritiesNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AntidilutiveSecuritiesNameDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Antidilutive Securities, Name [Domain]",
        "terseLabel": "Antidilutive Securities, Name",
        "documentation": "Incremental common shares attributable to securities that were not included in diluted earnings per share (EPS) because to do so would increase EPS amounts or decrease loss per share amounts for the period presented."
       }
      }
     },
     "auth_ref": [
      "r57"
     ]
    },
    "us-gaap_AociAttributableToNoncontrollingInterestMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AociAttributableToNoncontrollingInterestMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossNetChangesAndEndingBalancesForVariousComponentsOfOtherComprehensiveLossAndAccumulatedOtherCompr"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "AOCI Attributable to Noncontrolling Interest [Member]",
        "terseLabel": "Noncontrolling Interest [Member]",
        "documentation": "Accumulated increase (decrease) in equity from transactions and other events and circumstances from non-owner sources, attributable to the noncontrolling interest. Excludes net income (loss), and accumulated changes in equity from transactions resulting from investments by owners and distributions to owners."
       }
      }
     },
     "auth_ref": [
      "r2",
      "r19",
      "r45",
      "r1163",
      "r1164",
      "r1165"
     ]
    },
    "us-gaap_AociIncludingPortionAttributableToNoncontrollingInterestMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AociIncludingPortionAttributableToNoncontrollingInterestMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossNetChangesAndEndingBalancesForVariousComponentsOfOtherComprehensiveLossAndAccumulatedOtherCompr"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "AOCI Including Portion Attributable to Noncontrolling Interest [Member]",
        "terseLabel": "Total Accumulated Other Comprehensive Loss [Member]",
        "documentation": "Accumulated change in equity from transactions and other events and circumstances from non-owner sources, including the portion attributable to the noncontrolling interest. Excludes net income (loss), and accumulated changes in equity from transactions resulting from investments by owners and distributions to owners."
       }
      }
     },
     "auth_ref": [
      "r2",
      "r19",
      "r45",
      "r1163",
      "r1164",
      "r1165"
     ]
    },
    "ap_AsbestosClaimsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "AsbestosClaimsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationSummaryOfActivityInAsbestosInsuranceRecoveriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Asbestos claims.",
        "label": "Asbestos Claims [Member]",
        "terseLabel": "Asbestos Claims [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_AsbestosRelatedCostsPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "AsbestosRelatedCostsPolicyTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Asbestos related costs.",
        "label": "Asbestos Related Costs Policy [Text Block]",
        "terseLabel": "Asbestos-Related Costs"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_Assets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "Assets",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets",
        "terseLabel": "Identifiable Assets",
        "totalLabel": "Total assets",
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all assets that are recognized. Assets are probable future economic benefits obtained or controlled by an entity as a result of past transactions or events."
       }
      }
     },
     "auth_ref": [
      "r212",
      "r256",
      "r295",
      "r345",
      "r360",
      "r366",
      "r384",
      "r433",
      "r434",
      "r436",
      "r437",
      "r438",
      "r440",
      "r442",
      "r444",
      "r445",
      "r675",
      "r680",
      "r713",
      "r800",
      "r910",
      "r1100",
      "r1113",
      "r1216",
      "r1217",
      "r1342"
     ]
    },
    "us-gaap_AssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetsAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets [Abstract]",
        "terseLabel": "Assets"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AssetsCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetsCurrent",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets, Current",
        "totalLabel": "Total current assets",
        "terseLabel": "Total current assets",
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all assets that are expected to be realized in cash, sold, or consumed within one year (or the normal operating cycle, if longer). Assets are probable future economic benefits obtained or controlled by an entity as a result of past transactions or events."
       }
      }
     },
     "auth_ref": [
      "r246",
      "r265",
      "r295",
      "r384",
      "r433",
      "r434",
      "r436",
      "r437",
      "r438",
      "r440",
      "r442",
      "r444",
      "r445",
      "r675",
      "r680",
      "r713",
      "r1100",
      "r1216",
      "r1217",
      "r1342"
     ]
    },
    "us-gaap_AssetsCurrentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetsCurrentAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets, Current [Abstract]",
        "terseLabel": "Current assets:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AssetsFairValueDisclosure": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AssetsFairValueDisclosure",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureFairValueFairValueOfFinancialAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets, Fair Value Disclosure",
        "terseLabel": "Assets, fair value",
        "totalLabel": "Assets, Fair Value Disclosure, Total",
        "documentation": "Fair value portion of probable future economic benefits obtained or controlled by an entity as a result of past transactions or events."
       }
      }
     },
     "auth_ref": [
      "r129"
     ]
    },
    "dei_AuditorFirmId": {
     "xbrltype": "nonemptySequenceNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AuditorFirmId",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Firm ID",
        "terseLabel": "Auditor Firm ID",
        "documentation": "PCAOB issued Audit Firm Identifier"
       }
      }
     },
     "auth_ref": [
      "r1118",
      "r1119",
      "r1120"
     ]
    },
    "dei_AuditorLocation": {
     "xbrltype": "internationalNameItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AuditorLocation",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Location",
        "terseLabel": "Auditor Location"
       }
      }
     },
     "auth_ref": [
      "r1118",
      "r1119",
      "r1120"
     ]
    },
    "dei_AuditorName": {
     "xbrltype": "internationalNameItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AuditorName",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Name",
        "terseLabel": "Auditor Name"
       }
      }
     },
     "auth_ref": [
      "r1118",
      "r1119",
      "r1120"
     ]
    },
    "ap_AverageFloatingInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "AverageFloatingInterestRate",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest at a floating rate on tax-exempt IRB maturing in 2027/2029",
        "label": "Average Floating Interest Rate",
        "documentation": "Average floating interest rate."
       }
      }
     },
     "auth_ref": []
    },
    "ap_AverageSettlementAmountPerSettledClaim": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "AverageSettlementAmountPerSettledClaim",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The average per claim amount of settlement and defense costs satisfied during the reporting period before consideration of the amount, if any, covered by existing insurance policies.",
        "label": "Average Settlement Amount Per Settled Claim",
        "terseLabel": "Average gross settlement and defense costs per claim resolved"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_AwardTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "AwardTypeAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureStockbasedCompensationSummaryOfOutstandingRestrictedStockAwardsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingRestrictedStockUnitsRSUAndPerformanceShareAwardsPSUDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Type [Axis]",
        "terseLabel": "Award Type",
        "documentation": "Information by type of award under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r596",
      "r597",
      "r598",
      "r600",
      "r601",
      "r602",
      "r603",
      "r604",
      "r605",
      "r606",
      "r607",
      "r608",
      "r609",
      "r610",
      "r611",
      "r612",
      "r613",
      "r614",
      "r615",
      "r616",
      "r617",
      "r620",
      "r621",
      "r622",
      "r623",
      "r624"
     ]
    },
    "us-gaap_BalanceSheetLocationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BalanceSheetLocationAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsLocationAndFairValueOfForeignCurrencySalesContractsRecordedOnConsolidatedBalanceSheetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureFairValueFairValueOfFinancialAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Balance Sheet Location [Axis]",
        "terseLabel": "Balance Sheet Location",
        "documentation": "Information by location on balance sheet (statement of financial position)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BalanceSheetLocationDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BalanceSheetLocationDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsLocationAndFairValueOfForeignCurrencySalesContractsRecordedOnConsolidatedBalanceSheetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureFairValueFairValueOfFinancialAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Balance Sheet Location [Domain]",
        "terseLabel": "Balance Sheet Location",
        "documentation": "Location in the balance sheet (statement of financial position)."
       }
      }
     },
     "auth_ref": [
      "r116",
      "r120"
     ]
    },
    "ap_BargainingAgreementBeginningExpirationYear": {
     "xbrltype": "gYearMonthItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "BargainingAgreementBeginningExpirationYear",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bargaining agreement beginning expiration year.",
        "label": "Bargaining Agreement Beginning Expiration Year",
        "terseLabel": "Bargaining agreement beginning expiration year"
       }
      }
     },
     "auth_ref": []
    },
    "ap_BargainingAgreementEndingExpirationYear": {
     "xbrltype": "gYearMonthItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "BargainingAgreementEndingExpirationYear",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bargaining agreement ending expiration year.",
        "label": "Bargaining Agreement Ending Expiration Year",
        "terseLabel": "Bargaining agreement ending expiration year"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BaseRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BaseRateMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Base Rate [Member]",
        "terseLabel": "Base Rate [Member]",
        "documentation": "Minimum rate investor will accept."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BasisOfAccountingPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BasisOfAccountingPolicyPolicyTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Basis of Accounting, Policy [Policy Text Block]",
        "terseLabel": "Basis of Presentation",
        "documentation": "Disclosure of accounting policy for basis of accounting, or basis of presentation, used to prepare the financial statements (for example, US Generally Accepted Accounting Principles, Other Comprehensive Basis of Accounting, IFRS)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BridgeLoan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BridgeLoan",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bridge Loan",
        "terseLabel": "Swing loans",
        "documentation": "Short-Term financing which is expected to be paid back relatively quickly, such as by a subsequent longer-term loan. Also called swing loan or bridge financing."
       }
      }
     },
     "auth_ref": [
      "r146",
      "r213"
     ]
    },
    "us-gaap_BuildingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BuildingMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureOperatingLeaseRightofuseAssetsScheduleOfTheNetBookValueOfRightofuseAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentScheduleOfPropertyPlantAndEquipmentDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Building [Member]",
        "terseLabel": "Buildings [Member]",
        "documentation": "Facility held for productive use including, but not limited to, office, production, storage and distribution facilities."
       }
      }
     },
     "auth_ref": [
      "r189"
     ]
    },
    "ap_BuildingsAndLeaseholdImprovementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "BuildingsAndLeaseholdImprovementsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Buildings and Leasehold Improvements [Member]",
        "label": "Buildings and Leasehold Improvements [Member]",
        "documentation": "Buildings and Leasehold Improvements."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_BusinessDescriptionAndBasisOfPresentationTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "BusinessDescriptionAndBasisOfPresentationTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDescriptionOfBusiness"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Description and Basis of Presentation [Text Block]",
        "terseLabel": "Description of Business",
        "documentation": "The entire disclosure for the business description and basis of presentation concepts. Business description describes the nature and type of organization including but not limited to organizational structure as may be applicable to holding companies, parent and subsidiary relationships, business divisions, business units, business segments, affiliates and information about significant ownership of the reporting entity. Basis of presentation describes the underlying basis used to prepare the financial statements (for example, US Generally Accepted Accounting Principles, Other Comprehensive Basis of Accounting, IFRS)."
       }
      }
     },
     "auth_ref": [
      "r145",
      "r180",
      "r181"
     ]
    },
    "us-gaap_CapitalAdditionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CapitalAdditionsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capital Addition Purchase Commitments [Member]",
        "terseLabel": "Capital Expenditures [Member]",
        "documentation": "Contractual obligation to increase property, plant and equipment either through construction or future purchases."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CapitalExpendituresIncurredButNotYetPaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CapitalExpendituresIncurredButNotYetPaid",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capital Expenditures Incurred but Not yet Paid",
        "terseLabel": "Purchases of property, plant and equipment in accounts payable",
        "documentation": "Future cash outflow to pay for purchases of fixed assets that have occurred."
       }
      }
     },
     "auth_ref": [
      "r54",
      "r55",
      "r56"
     ]
    },
    "us-gaap_CapitalLeaseObligationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CapitalLeaseObligationsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capital Lease Obligations [Member]",
        "terseLabel": "Capital Leases [Member]",
        "documentation": "A borrowing recorded for a lease meeting the criteria for capitalization. A lease is defined as an agreement conveying the right to use property, plant, or equipment (land or depreciable assets) usually for a stated period of time."
       }
      }
     },
     "auth_ref": [
      "r222"
     ]
    },
    "ap_CapitalLossCarryForward": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "CapitalLossCarryForward",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Capital loss carry forward",
        "label": "Capital Loss Carry forward",
        "documentation": "Capital loss carry forward."
       }
      }
     },
     "auth_ref": []
    },
    "ap_CapitalLossCarryForwardsExpirationPeriod": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "CapitalLossCarryForwardsExpirationPeriod",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Year in which identified tax carryforward begins to expire.",
        "label": "Capital Loss Carry Forwards Expiration Period",
        "terseLabel": "Capital loss carry forwards expiration period"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CapitalLossCarryforwardMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CapitalLossCarryforwardMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Capital Loss Carryforwards",
        "label": "Capital Loss Carryforward [Member]",
        "documentation": "Deductions derived from capital losses that cannot be utilized on the tax return during a period that have been carried forward to reduce taxable income or taxes payable in a future year."
       }
      }
     },
     "auth_ref": []
    },
    "ap_CarriedForwardIndefinitelyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "CarriedForwardIndefinitelyMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carried forward idefinitely.",
        "label": "Carried Forward Indefinitely [Member]",
        "terseLabel": "Carried Forward Indefinitely [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CashAndCashEquivalentsAtCarryingValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashAndCashEquivalentsAtCarryingValue",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and Cash Equivalents, at Carrying Value",
        "terseLabel": "Cash and cash equivalents",
        "totalLabel": "Cash and Cash Equivalents, at Carrying Value, Total",
        "documentation": "Amount of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. Excludes cash and cash equivalents within disposal group and discontinued operation."
       }
      }
     },
     "auth_ref": [
      "r51",
      "r249",
      "r1048"
     ]
    },
    "us-gaap_CashAndCashEquivalentsPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashAndCashEquivalentsPolicyTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and Cash Equivalents, Policy [Policy Text Block]",
        "terseLabel": "Cash and Cash Equivalents",
        "documentation": "Disclosure of accounting policy for cash and cash equivalents, including the policy for determining which items are treated as cash equivalents. Other information that may be disclosed includes (1) the nature of any restrictions on the entity's use of its cash and cash equivalents, (2) whether the entity's cash and cash equivalents are insured or expose the entity to credit risk, (3) the classification of any negative balance accounts (overdrafts), and (4) the carrying basis of cash equivalents (for example, at cost) and whether the carrying amount of cash equivalents approximates fair value."
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Including Disposal Group and Discontinued Operations",
        "periodEndLabel": "Cash and cash equivalents at end of year",
        "periodStartLabel": "Cash and cash equivalents at beginning of year",
        "totalLabel": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Including Disposal Group and Discontinued Operations, Total",
        "documentation": "Amount of cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; including, but not limited to, disposal group and discontinued operations. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates."
       }
      }
     },
     "auth_ref": [
      "r51",
      "r177",
      "r292"
     ]
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Period Increase (Decrease), Including Exchange Rate Effect",
        "totalLabel": "Net decrease in cash and cash equivalents",
        "documentation": "Amount of increase (decrease) in cash, cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; including effect from exchange rate change. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates."
       }
      }
     },
     "auth_ref": [
      "r1",
      "r177"
     ]
    },
    "us-gaap_CashFlowHedgingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CashFlowHedgingMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash Flow Hedging [Member]",
        "terseLabel": "Cash Flow Hedges [Member]",
        "documentation": "Hedge of the exposure to variability in the cash flows of a recognized asset or liability, or of a forecasted transaction, that is attributable to a particular risk."
       }
      }
     },
     "auth_ref": [
      "r113"
     ]
    },
    "ap_CashOutflowFromFinancingLease": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "CashOutflowFromFinancingLease",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash outflow from financing lease.",
        "label": "Cash Outflow From Financing Lease",
        "terseLabel": "Cash outflow from financing lease"
       }
      }
     },
     "auth_ref": []
    },
    "ap_CashOutflowFromOperatingLease": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "CashOutflowFromOperatingLease",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash outflow from operating lease.",
        "label": "Cash Outflow From Operating Lease",
        "terseLabel": "Cash outflow from operating lease"
       }
      }
     },
     "auth_ref": []
    },
    "ap_CashPaidForFinanceLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "CashPaidForFinanceLeaseLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash paid for finance lease liabilities.",
        "label": "Cash Paid For Finance Lease Liabilities",
        "terseLabel": "Cash paid for finance lease liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ap_CeasedBeneficiallyStockOwnershipPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "CeasedBeneficiallyStockOwnershipPercentage",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ceased beneficially stock ownership percentage",
        "label": "Ceased Beneficially Stock Ownership Percentage",
        "documentation": "Ceased beneficially stock ownership percentage."
       }
      }
     },
     "auth_ref": []
    },
    "ap_CeasedDateOfBeneficialStockOwnership": {
     "xbrltype": "dateItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "CeasedDateOfBeneficialStockOwnership",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ceased date of beneficial stock ownership",
        "label": "Ceased Date of Beneficial Stock Ownership",
        "documentation": "Ceased date of beneficial stock ownership."
       }
      }
     },
     "auth_ref": []
    },
    "ap_CentrifugalPumpsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "CentrifugalPumpsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueNetSalesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Centrifugal pumps.",
        "label": "Centrifugal Pumps [Member]",
        "terseLabel": "Centrifugal Pumps [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_ChangeInConsumerPriceIndexPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ChangeInConsumerPriceIndexPercentage",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Change in consumer price index percentage.",
        "label": "Change In Consumer Price Index Percentage",
        "terseLabel": "Change In Consumer Price Index Percentage"
       }
      }
     },
     "auth_ref": []
    },
    "ap_ChangeInConsumerPriceIndexRatio": {
     "xbrltype": "pureItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ChangeInConsumerPriceIndexRatio",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Change in consumer price index ratio",
        "label": "Change in consumer price index ratio",
        "documentation": "Change in consumer price index ratio."
       }
      }
     },
     "auth_ref": []
    },
    "ap_ChargeCreditForAsbestosRelatedCostNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ChargeCreditForAsbestosRelatedCostNet",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations": {
       "parentTag": "us-gaap_CostsAndExpenses",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureLitigationSummaryOfAsbestosRelatedCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Charge (credit) for asbestos-related costs, net",
        "label": "Charge Credit For Asbestos Related Cost net",
        "documentation": "Charge Credit For Asbestos Related Cost net"
       }
      }
     },
     "auth_ref": []
    },
    "ap_ChargeForAsbestosRelatedCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ChargeForAsbestosRelatedCosts",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Charge (credit) for asbestos-related costs",
        "documentation": "Charge for asbestos-related costs.",
        "label": "Charge For Asbestos Related Costs",
        "terseLabel": "Charge for asbestos-related costs"
       }
      }
     },
     "auth_ref": []
    },
    "ap_ChinaJointVentureMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ChinaJointVentureMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDescriptionOfBusinessAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "China Joint Venture [Member]",
        "label": "China Joint Venture [Member]",
        "terseLabel": "Chinese Joint Venture Company [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_CityAreaCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "CityAreaCode",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "City Area Code",
        "terseLabel": "City Area Code",
        "documentation": "Area code of city"
       }
      }
     },
     "auth_ref": []
    },
    "ap_ClaimsClassifiedInVariousJurisdictionsAsInactiveOrTransferredToStateOrFederalJudicialPanelOnMultiDistrictLitigation": {
     "xbrltype": "integerItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ClaimsClassifiedInVariousJurisdictionsAsInactiveOrTransferredToStateOrFederalJudicialPanelOnMultiDistrictLitigation",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of inactive claims or claims classified at MDL.",
        "label": "Claims Classified In Various Jurisdictions As Inactive Or Transferred To State Or Federal Judicial Panel On Multi District Litigation",
        "terseLabel": "Number of claims inactive or transferred to MDL panel"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ClassOfStockDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ClassOfStockDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Stock [Domain]",
        "terseLabel": "Class of Stock",
        "documentation": "Share of stock differentiated by the voting rights the holder receives. Examples include, but are not limited to, common stock, redeemable preferred stock, nonredeemable preferred stock, and convertible stock."
       }
      }
     },
     "auth_ref": [
      "r238",
      "r257",
      "r258",
      "r259",
      "r295",
      "r330",
      "r331",
      "r333",
      "r335",
      "r339",
      "r340",
      "r384",
      "r433",
      "r436",
      "r437",
      "r438",
      "r444",
      "r445",
      "r477",
      "r478",
      "r480",
      "r481",
      "r482",
      "r713",
      "r855",
      "r856",
      "r857",
      "r858",
      "r866",
      "r867",
      "r868",
      "r869",
      "r870",
      "r871",
      "r872",
      "r873",
      "r874",
      "r875",
      "r876",
      "r877",
      "r897",
      "r919",
      "r942",
      "r1025",
      "r1026",
      "r1027",
      "r1028",
      "r1029",
      "r1125",
      "r1171",
      "r1187"
     ]
    },
    "us-gaap_ClassOfWarrantOrRighstDateFromWhichWarrantsOrRightsExercisable": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ClassOfWarrantOrRighstDateFromWhichWarrantsOrRightsExercisable",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Warrant or Right, Date from which Warrants or Rights Exercisable",
        "terseLabel": "Class of warrant or right, exercisable date",
        "documentation": "Date the warrants or rights are exercisable, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r483"
     ]
    },
    "us-gaap_ClassOfWarrantOrRightAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ClassOfWarrantOrRightAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingSummaryOfOutstandingWarrantsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Warrant or Right [Axis]",
        "terseLabel": "Class of Warrant or Right",
        "documentation": "Information by type of warrant or right issued."
       }
      }
     },
     "auth_ref": [
      "r90"
     ]
    },
    "us-gaap_ClassOfWarrantOrRightDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ClassOfWarrantOrRightDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingSummaryOfOutstandingWarrantsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Warrant or Right [Domain]",
        "terseLabel": "Class of Warrant or Right",
        "documentation": "Name of the class or type of warrant or right outstanding. Warrants and rights represent derivative securities that give the holder the right to purchase securities (usually equity) from the issuer at a specific price within a certain time frame. Warrants are often included in a new debt issue to entice investors by a higher return potential. The main difference between warrants and call options is that warrants are issued and guaranteed by the company, whereas options are exchange instruments and are not issued by the company. Also, the lifetime of a warrant is often measured in years, while the lifetime of a typical option is measured in months."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Warrant or Right, Exercise Price of Warrants or Rights",
        "terseLabel": "Exercise price per share of warrants",
        "documentation": "Exercise price per share or per unit of warrants or rights outstanding."
       }
      }
     },
     "auth_ref": [
      "r483"
     ]
    },
    "ap_ClassOfWarrantOrRightExpirationDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ClassOfWarrantOrRightExpirationDate",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class of warrant or right, expiration date.",
        "label": "Class Of Warrant Or Right Expiration Date",
        "terseLabel": "Class of warrant or right, expiration date"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ClassOfWarrantOrRightLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ClassOfWarrantOrRightLineItems",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingSummaryOfOutstandingWarrantsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Warrant or Right [Line Items]",
        "terseLabel": "Class Of Warrant Or Right [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByEachWarrantOrRight": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ClassOfWarrantOrRightNumberOfSecuritiesCalledByEachWarrantOrRight",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Warrant or Right, Number of Securities Called by Each Warrant or Right",
        "terseLabel": "Number of shares can purchase for each warrant",
        "documentation": "Number of securities into which each warrant or right may be converted. For example, but not limited to, each warrant may be converted into two shares."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Warrant or Right, Number of Securities Called by Warrants or Rights",
        "terseLabel": "Warrants to purchase common stock",
        "documentation": "Number of securities into which the class of warrant or right may be converted. For example, but not limited to, 500,000 warrants may be converted into 1,000,000 shares."
       }
      }
     },
     "auth_ref": [
      "r483"
     ]
    },
    "us-gaap_ClassOfWarrantOrRightOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ClassOfWarrantOrRightOutstanding",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingSummaryOfOutstandingWarrantsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Warrant or Right, Outstanding",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance",
        "documentation": "Number of warrants or rights outstanding."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ClassOfWarrantOrRightTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ClassOfWarrantOrRightTable",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingSummaryOfOutstandingWarrantsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Warrant or Right [Table]",
        "terseLabel": "Class Of Warrant Or Right [Table]",
        "documentation": "Disclosure for warrants or rights issued, which includes the title of issue of securities called for by warrants and rights outstanding, the aggregate amount of securities called for by warrants and rights outstanding, the date from which the warrants or rights are exercisable, and the price at which the warrant or right is exercisable."
       }
      }
     },
     "auth_ref": [
      "r90"
     ]
    },
    "ap_CollectiveBargainingAgreementMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "CollectiveBargainingAgreementMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Collective bargaining agreement.",
        "label": "Collective Bargaining Agreement [Member]",
        "terseLabel": "Collective Bargaining Agreement [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CollectiveBargainingArrangementAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CollectiveBargainingArrangementAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Collective-Bargaining Arrangement [Axis]",
        "terseLabel": "Collective-Bargaining Arrangement",
        "documentation": "Information by arrangement collectively bargained between employer and its employees represented by union."
       }
      }
     },
     "auth_ref": [
      "r1094",
      "r1286"
     ]
    },
    "us-gaap_CollectiveBargainingArrangementDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CollectiveBargainingArrangementDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Collective-Bargaining Arrangement [Domain]",
        "terseLabel": "Collective-Bargaining Arrangement",
        "documentation": "Arrangement collectively bargained between employer and its employees represented by union."
       }
      }
     },
     "auth_ref": [
      "r1094",
      "r1286"
     ]
    },
    "us-gaap_CommitmentsAndContingencies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommitmentsAndContingencies",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commitments and Contingencies",
        "terseLabel": "Commitments and contingent liabilities (Note 12)",
        "documentation": "Represents the caption on the face of the balance sheet to indicate that the entity has entered into (1) purchase or supply arrangements that will require expending a portion of its resources to meet the terms thereof, and (2) is exposed to potential losses or, less frequently, gains, arising from (a) possible claims against a company's resources due to future performance under contract terms, and (b) possible losses or likely gains from uncertainties that will ultimately be resolved when one or more future events that are deemed likely to occur do occur or fail to occur."
       }
      }
     },
     "auth_ref": [
      "r41",
      "r140",
      "r802",
      "r896"
     ]
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommitmentsAndContingenciesDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Commitments and Contingencies Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommitmentsAndContingenciesDisclosureTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commitments and Contingencies Disclosure [Text Block]",
        "terseLabel": "Commitments and Contingent Liabilities",
        "documentation": "The entire disclosure for commitments and contingencies."
       }
      }
     },
     "auth_ref": [
      "r191",
      "r420",
      "r421",
      "r1033",
      "r1203"
     ]
    },
    "ap_CommitmentsAndContingentLiabilitiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "CommitmentsAndContingentLiabilitiesLineItems",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commitments And Contingent Liabilities [Line Items]",
        "label": "Commitments And Contingent Liabilities [Line Items]",
        "terseLabel": "Commitments And Contingent Liabilities [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_CommitmentsAndContingentLiabilitiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "CommitmentsAndContingentLiabilitiesTable",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commitments And Contingent Liabilities [Table]",
        "label": "Commitments And Contingent Liabilities [Table]",
        "terseLabel": "Commitments And Contingent Liabilities [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CommonStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquityParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock [Member]",
        "terseLabel": "Common Stock [Member]",
        "documentation": "Stock that is subordinate to all other stock of the issuer."
       }
      }
     },
     "auth_ref": [
      "r1103",
      "r1104",
      "r1105",
      "r1107",
      "r1108",
      "r1109",
      "r1110",
      "r1182",
      "r1183",
      "r1330",
      "r1356",
      "r1357"
     ]
    },
    "us-gaap_CommonStockParOrStatedValuePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockParOrStatedValuePerShare",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock, Par or Stated Value Per Share",
        "terseLabel": "Common stock, par value",
        "documentation": "Face amount or stated value per share of common stock."
       }
      }
     },
     "auth_ref": [
      "r153"
     ]
    },
    "us-gaap_CommonStockSharesAuthorized": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockSharesAuthorized",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock, Shares Authorized",
        "terseLabel": "Common stock, shares authorized",
        "documentation": "The maximum number of common shares permitted to be issued by an entity's charter and bylaws."
       }
      }
     },
     "auth_ref": [
      "r153",
      "r897"
     ]
    },
    "us-gaap_CommonStockSharesIssued": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockSharesIssued",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock, Shares, Issued",
        "terseLabel": "Common stock, shares issued",
        "documentation": "Total number of common shares of an entity that have been sold or granted to shareholders (includes common shares that were issued, repurchased and remain in the treasury). These shares represent capital invested by the firm's shareholders and owners, and may be all or only a portion of the number of shares authorized. Shares issued include shares outstanding and shares held in the treasury."
       }
      }
     },
     "auth_ref": [
      "r153"
     ]
    },
    "us-gaap_CommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockSharesOutstanding",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common Stock, Shares, Outstanding",
        "terseLabel": "Common stock, shares outstanding",
        "periodStartLabel": "Common Stock, Shares, Outstanding, Beginning Balance",
        "periodEndLabel": "Common Stock, Shares, Outstanding, Ending Balance",
        "documentation": "Number of shares of common stock outstanding. Common stock represent the ownership interest in a corporation."
       }
      }
     },
     "auth_ref": [
      "r20",
      "r153",
      "r897",
      "r916",
      "r1357",
      "r1358"
     ]
    },
    "us-gaap_CommonStockValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CommonStockValue",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Common stock-- par value $1; authorized 40,000 shares; issued and outstanding 19,729 shares at December 31, 2023 and 19,404 shares at December 31, 2022",
        "label": "Common Stock, Value, Issued",
        "documentation": "Aggregate par or stated value of issued nonredeemable common stock (or common stock redeemable solely at the option of the issuer). This item includes treasury stock repurchased by the entity. Note: elements for number of nonredeemable common shares, par value and other disclosure concepts are in another section within stockholders' equity."
       }
      }
     },
     "auth_ref": [
      "r153",
      "r803",
      "r1100"
     ]
    },
    "us-gaap_CompensationAndRetirementDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CompensationAndRetirementDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Retirement Benefits [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CompensationRelatedCostsPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CompensationRelatedCostsPolicyTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Related Costs, Policy [Policy Text Block]",
        "terseLabel": "Employee Benefit Plans",
        "documentation": "Disclosure of accounting policy for salaries, bonuses, incentive awards, postretirement and postemployment benefits granted to employees, including equity-based arrangements; discloses methodologies for measurement, and the bases for recognizing related assets and liabilities and recognizing and reporting compensation expense."
       }
      }
     },
     "auth_ref": [
      "r93"
     ]
    },
    "ap_ComponentsOfActuarialGainsLossesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ComponentsOfActuarialGainsLossesTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Components of Actuarial Losses (Gains) in Projected Benefit Obligations",
        "documentation": "Components of actuarial (gains) losses.",
        "label": "Components Of Actuarial Gains Losses Table [Text Block]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ComponentsOfDeferredTaxAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ComponentsOfDeferredTaxAssetsAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Components of Deferred Tax Assets [Abstract]",
        "terseLabel": "Assets:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ComponentsOfDeferredTaxLiabilitiesAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Components of Deferred Tax Liabilities [Abstract]",
        "terseLabel": "Liabilities:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ComprehensiveIncomeNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ComprehensiveIncomeNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLossIncome": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLossIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Comprehensive Income (Loss), Net of Tax, Attributable to Parent",
        "totalLabel": "Comprehensive (loss) income attributable to Ampco-Pittsburgh",
        "documentation": "Amount after tax of increase (decrease) in equity from transactions and other events and circumstances from net income and other comprehensive income, attributable to parent entity. Excludes changes in equity resulting from investments by owners and distributions to owners."
       }
      }
     },
     "auth_ref": [
      "r46",
      "r274",
      "r276",
      "r285",
      "r796",
      "r818"
     ]
    },
    "us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLossIncome": {
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLossIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Less: Comprehensive income (loss) attributable to noncontrolling interest",
        "label": "Comprehensive Income (Loss), Net of Tax, Attributable to Noncontrolling Interest",
        "totalLabel": "Comprehensive Income (Loss), Net of Tax, Attributable to Noncontrolling Interest, Total",
        "documentation": "Amount after tax of increase (decrease) in equity from transactions and other events and circumstances from net income (loss) and other comprehensive income (loss), attributable to noncontrolling interests. Excludes changes in equity resulting from investments by owners and distributions to owners."
       }
      }
     },
     "auth_ref": [
      "r9",
      "r104",
      "r108",
      "r274",
      "r276",
      "r284",
      "r795",
      "r817"
     ]
    },
    "us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLossIncome": {
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity",
      "http://ampcopgh.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLossIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Comprehensive income (loss):",
        "totalLabel": "Comprehensive loss",
        "label": "Comprehensive Income (Loss), Net of Tax, Including Portion Attributable to Noncontrolling Interest",
        "documentation": "Amount after tax of increase (decrease) in equity from transactions and other events and circumstances from net income and other comprehensive income. Excludes changes in equity resulting from investments by owners and distributions to owners."
       }
      }
     },
     "auth_ref": [
      "r108",
      "r208",
      "r274",
      "r276",
      "r283",
      "r794",
      "r816"
     ]
    },
    "us-gaap_ComprehensiveIncomeNoteTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ComprehensiveIncomeNoteTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Comprehensive Income (Loss) Note [Text Block]",
        "terseLabel": "Accumulated Other Comprehensive Loss",
        "documentation": "The entire disclosure for comprehensive income, which includes, but is not limited to, 1) the amount of income tax expense or benefit allocated to each component of other comprehensive income, including reclassification adjustments, 2) the reclassification adjustments for each classification of other comprehensive income and 3) the ending accumulated balances for each component of comprehensive income."
       }
      }
     },
     "auth_ref": [
      "r162",
      "r282",
      "r793",
      "r815"
     ]
    },
    "us-gaap_ComprehensiveIncomePolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ComprehensiveIncomePolicyPolicyTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Comprehensive (Loss) Income",
        "label": "Comprehensive Income, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy for comprehensive income."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ConcentrationRiskBenchmarkDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ConcentrationRiskBenchmarkDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Concentration Risk Benchmark [Domain]",
        "terseLabel": "Concentration Risk Benchmark",
        "documentation": "The denominator in a calculation of a disclosed concentration risk percentage."
       }
      }
     },
     "auth_ref": [
      "r59",
      "r62",
      "r131",
      "r132",
      "r374",
      "r1032"
     ]
    },
    "us-gaap_ConcentrationRiskByBenchmarkAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ConcentrationRiskByBenchmarkAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Concentration Risk Benchmark [Axis]",
        "terseLabel": "Concentration Risk Benchmark",
        "documentation": "Information by benchmark of concentration risk."
       }
      }
     },
     "auth_ref": [
      "r59",
      "r62",
      "r131",
      "r132",
      "r374",
      "r851",
      "r1032"
     ]
    },
    "us-gaap_ConcentrationRiskByTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ConcentrationRiskByTypeAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Concentration Risk Type [Axis]",
        "terseLabel": "Concentration Risk Type",
        "documentation": "Information by type of concentration risk, for example, but not limited to, asset, liability, net assets, geographic, customer, employees, supplier, lender."
       }
      }
     },
     "auth_ref": [
      "r59",
      "r62",
      "r131",
      "r132",
      "r374",
      "r1032",
      "r1148"
     ]
    },
    "us-gaap_ConcentrationRiskPercentage1": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ConcentrationRiskPercentage1",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Concentration Risk, Percentage",
        "terseLabel": "Net sales",
        "documentation": "For an entity that discloses a concentration risk in relation to quantitative amount, which serves as the \"benchmark\" (or denominator) in the equation, this concept represents the concentration percentage derived from the division."
       }
      }
     },
     "auth_ref": [
      "r59",
      "r62",
      "r131",
      "r132",
      "r374"
     ]
    },
    "us-gaap_ConcentrationRiskTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ConcentrationRiskTypeDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Concentration Risk Type [Domain]",
        "terseLabel": "Concentration Risk Type",
        "documentation": "For an entity that discloses a concentration risk as a percentage of some financial balance or benchmark, identifies the type (for example, asset, liability, net assets, geographic, customer, employees, supplier, lender) of the concentration."
       }
      }
     },
     "auth_ref": [
      "r59",
      "r62",
      "r131",
      "r132",
      "r374",
      "r1032"
     ]
    },
    "srt_ConsolidationItemsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ConsolidationItemsAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidation Items [Axis]",
        "terseLabel": "Consolidation Items"
       }
      }
     },
     "auth_ref": [
      "r303",
      "r347",
      "r358",
      "r359",
      "r360",
      "r361",
      "r362",
      "r364",
      "r368",
      "r433",
      "r434",
      "r435",
      "r436",
      "r438",
      "r439",
      "r441",
      "r443",
      "r444",
      "r1216",
      "r1217"
     ]
    },
    "srt_ConsolidationItemsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ConsolidationItemsDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidation Items [Domain]",
        "terseLabel": "Consolidation Items"
       }
      }
     },
     "auth_ref": [
      "r303",
      "r347",
      "r358",
      "r359",
      "r360",
      "r361",
      "r362",
      "r364",
      "r368",
      "r433",
      "r434",
      "r435",
      "r436",
      "r438",
      "r439",
      "r441",
      "r443",
      "r444",
      "r1216",
      "r1217"
     ]
    },
    "us-gaap_ConsolidationPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ConsolidationPolicyTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidation, Policy [Policy Text Block]",
        "terseLabel": "Consolidation",
        "documentation": "Disclosure of accounting policy regarding (1) the principles it follows in consolidating or combining the separate financial statements, including the principles followed in determining the inclusion or exclusion of subsidiaries or other entities in the consolidated or combined financial statements and (2) its treatment of interests (for example, common stock, a partnership interest or other means of exerting influence) in other entities, for example consolidation or use of the equity or cost methods of accounting. The accounting policy may also address the accounting treatment for intercompany accounts and transactions, noncontrolling interest, and the income statement treatment in consolidation for issuances of stock by a subsidiary."
       }
      }
     },
     "auth_ref": [
      "r105",
      "r1058"
     ]
    },
    "ap_ConstructionInProcessMachineryAndEquipmentOrBuildingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ConstructionInProcessMachineryAndEquipmentOrBuildingsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Construction-in-Process, Machinery and Equipment or Buildings [Member]",
        "label": "Construction In Process Machinery And Equipment Or Buildings [Member]",
        "documentation": "Construction in process machinery and equipment or buildings."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ConstructionInProgressMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ConstructionInProgressMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Construction in Progress [Member]",
        "terseLabel": "Construction-in-Process [Member]",
        "documentation": "Structure or a modification to a structure under construction. Includes recently completed structures or modifications to structures that have not been placed into service."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ContractWithCustomerAssetAndLiabilityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ContractWithCustomerAssetAndLiabilityTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contract with Customer, Contract Asset, Contract Liability, and Receivable [Table Text Block]",
        "terseLabel": "Schedule of Changes in Customer Deposits",
        "documentation": "Tabular disclosure of receivable, contract asset, and contract liability from contract with customer. Includes, but is not limited to, change in contract asset and contract liability."
       }
      }
     },
     "auth_ref": [
      "r1220"
     ]
    },
    "us-gaap_ContractWithCustomerAssetNetCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ContractWithCustomerAssetNetCurrent",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Contract assets",
        "label": "Contract with Customer, Asset, after Allowance for Credit Loss, Current",
        "totalLabel": "Contract with Customer, Asset, after Allowance for Credit Loss, Current, Total",
        "documentation": "Amount, after allowance for credit loss, of right to consideration in exchange for good or service transferred to customer when right is conditioned on something other than passage of time, classified as current."
       }
      }
     },
     "auth_ref": [
      "r485",
      "r487",
      "r506"
     ]
    },
    "us-gaap_ContractWithCustomerLiabilityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ContractWithCustomerLiabilityAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Contract with Customer, Liability [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ContractWithCustomerLiabilityChangeInTimeframePerformanceObligationSatisfiedRevenueRecognized": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ContractWithCustomerLiabilityChangeInTimeframePerformanceObligationSatisfiedRevenueRecognized",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesScheduleOfChangeInCustomerDepositsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contract with Customer, Liability, Change in Timeframe, Performance Obligation Satisfied, Revenue Recognized",
        "terseLabel": "Satisfaction of performance obligations",
        "documentation": "Amount of revenue recognized arising from contract liability from change in timeframe for performance obligation to be satisfied."
       }
      }
     },
     "auth_ref": [
      "r1075"
     ]
    },
    "us-gaap_ContractWithCustomerLiabilityCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ContractWithCustomerLiabilityCurrent",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesScheduleOfChangeInCustomerDepositsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contract with Customer, Liability, Current",
        "periodEndLabel": "Balance at the end of the year",
        "periodStartLabel": "Balance at the beginning of the year",
        "documentation": "Amount of obligation to transfer good or service to customer for which consideration has been received or is receivable, classified as current."
       }
      }
     },
     "auth_ref": [
      "r485",
      "r486",
      "r506"
     ]
    },
    "ap_ConversionOfWarrantsInToCommonStockShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ConversionOfWarrantsInToCommonStockShares",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingSummaryOfOutstandingWarrantsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Conversion of warrants in to common stock shares.",
        "label": "Conversion Of Warrants In To Common Stock Shares",
        "negatedLabel": "Converted to common stock"
       }
      }
     },
     "auth_ref": []
    },
    "ap_CopperPurchasesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "CopperPurchasesMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Copper Purchases [Member]",
        "label": "Copper Purchases [Member]",
        "terseLabel": "Copper Purchases [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_CorporateAlternativeMinimumTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "CorporateAlternativeMinimumTaxRate",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Corporate alternative minimum tax rate.",
        "label": "Corporate Alternative Minimum Tax Rate",
        "terseLabel": "Corporate alternative minimum tax rate"
       }
      }
     },
     "auth_ref": []
    },
    "ap_CorporateAlternativeMinimumTaxThresholdFinancialIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "CorporateAlternativeMinimumTaxThresholdFinancialIncome",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Corporate Alternative Minimum tax threshold financial income.",
        "label": "Corporate Alternative Minimum Tax threshold financial income",
        "terseLabel": "Corporate Alternative Minimum Tax threshold financial income"
       }
      }
     },
     "auth_ref": []
    },
    "ap_CorporateIncomeTaxExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "CorporateIncomeTaxExpense",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Corporate income tax expense",
        "documentation": "Corporate income tax expense"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CorporateNonSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CorporateNonSegmentMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Corporate, Non-Segment [Member]",
        "verboseLabel": "Corporate Costs, Including Other Income (Expense) [Member]",
        "documentation": "Corporate headquarters or functional department that may not earn revenues or may earn revenues that are only incidental to the activities of the entity and is not considered an operating segment."
       }
      }
     },
     "auth_ref": [
      "r25",
      "r359",
      "r360",
      "r361",
      "r362",
      "r368",
      "r1189"
     ]
    },
    "ap_CorporationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "CorporationsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Corporations.",
        "label": "Corporations [Member]",
        "terseLabel": "Corporation [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_CostMethodInvestmentsOwnershipPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "CostMethodInvestmentsOwnershipPercentage",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInvestmentsInJointVenturesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of ownership interest in joint venture which is accounted for under the cost method.",
        "label": "Cost Method Investments Ownership Percentage",
        "terseLabel": "Percentage of ownership"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CostOfGoodsAndServiceExcludingDepreciationDepletionAndAmortization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CostOfGoodsAndServiceExcludingDepreciationDepletionAndAmortization",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations": {
       "parentTag": "us-gaap_CostsAndExpenses",
       "weight": 1.0,
       "order": 0.0
      },
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossLineItemsAffectedOnConsolidatedStatementsOfOperationsForComponentsReclassifiedFromAccumulatedOtherComprehensiveLossDetail": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossLineItemsAffectedOnConsolidatedStatementsOfOperationsForComponentsReclassifiedFromAccumulatedOtherComprehensiveLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfChangeInFairValueReclassifiedOrExpectedToBeReclassifiedFromAccumulatedOtherComprehensiveLossToEarningsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cost of Goods and Service, Excluding Depreciation, Depletion, and Amortization",
        "terseLabel": "Costs of products sold (excluding depreciation and amortization)",
        "negatedLabel": "Costs of products sold (excluding depreciation and amortization) (futures contracts - copper and aluminum)",
        "totalLabel": "Cost of Goods and Service, Excluding Depreciation, Depletion, and Amortization, Total",
        "documentation": "Cost of product sold and service rendered, excluding depreciation, depletion, and amortization."
       }
      }
     },
     "auth_ref": [
      "r1155",
      "r1156"
     ]
    },
    "us-gaap_CostOfGoodsAndServicesSold": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CostOfGoodsAndServicesSold",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Purchase of natural gas or electricity",
        "label": "Cost of Goods and Services Sold",
        "totalLabel": "Cost of Goods and Services Sold, Total",
        "documentation": "The aggregate costs related to goods produced and sold and services rendered by an entity during the reporting period. This excludes costs incurred during the reporting period related to financial services rendered and other revenue generating activities."
       }
      }
     },
     "auth_ref": [
      "r169",
      "r775"
     ]
    },
    "us-gaap_CostsAndExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CostsAndExpenses",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations": {
       "parentTag": "us-gaap_OperatingIncomeLoss",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Costs and Expenses",
        "totalLabel": "Total operating costs and expenses",
        "terseLabel": "Total operating costs and expenses",
        "documentation": "Total costs of sales and operating expenses for the period."
       }
      }
     },
     "auth_ref": [
      "r168"
     ]
    },
    "srt_CounterpartyNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CounterpartyNameAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Counterparty Name [Axis]"
       }
      }
     },
     "auth_ref": [
      "r300",
      "r301",
      "r450",
      "r479",
      "r766",
      "r1055",
      "r1057"
     ]
    },
    "dei_CoverAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "CoverAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Cover [Abstract]",
        "documentation": "Cover page."
       }
      }
     },
     "auth_ref": []
    },
    "ap_CrawfordGroupMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "CrawfordGroupMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Crawford Group [Member]",
        "documentation": "Crawford Group."
       }
      }
     },
     "auth_ref": []
    },
    "ap_CreditChargeForIncreaseAndDecreaseInLossContingencyAccrualNetEstimatedInsuranceRecovery": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "CreditChargeForIncreaseAndDecreaseInLossContingencyAccrualNetEstimatedInsuranceRecovery",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureLitigationSummaryOfAsbestosRelatedCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Charge for increase in Asbestos Liability, net estimated insurance recovery",
        "label": "Credit Charge For Increase and Decrease in Loss Contingency Accrual Net Estimated Insurance Recovery",
        "documentation": "Credit charge for increase and decrease in loss contingency accrual net estimated insurance recovery."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CreditFacilityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CreditFacilityAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit Facility [Axis]",
        "terseLabel": "Credit Facility",
        "documentation": "Information by type of credit facility. Credit facilities provide capital to borrowers without the need to structure a loan for each borrowing."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CreditFacilityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CreditFacilityDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit Facility [Domain]",
        "terseLabel": "Credit Facility",
        "documentation": "Type of credit facility. Credit facilities provide capital to borrowers without the need to structure a loan for each borrowing."
       }
      }
     },
     "auth_ref": []
    },
    "ap_CreditFromLowerDefenseToIndemnityRatio": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "CreditFromLowerDefenseToIndemnityRatio",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureLitigationSummaryOfAsbestosRelatedCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Credit from a lower defense-to-indemnity ratio",
        "label": "Credit From Lower Defense-To-Indemnity Ratio",
        "documentation": "Credit from a lower defense-to-indemnity ratio."
       }
      }
     },
     "auth_ref": []
    },
    "srt_CumulativeEffectPeriodOfAdoptionAdjustedBalanceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CumulativeEffectPeriodOfAdoptionAdjustedBalanceMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cumulative Effect, Period of Adoption, Adjusted Balance [Member]"
       }
      }
     },
     "auth_ref": [
      "r1149",
      "r1159",
      "r1185",
      "r1195",
      "r1196",
      "r1315",
      "r1316",
      "r1317",
      "r1322",
      "r1323",
      "r1329",
      "r1330",
      "r1331",
      "r1338"
     ]
    },
    "srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CumulativeEffectPeriodOfAdoptionAdjustmentMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cumulative Effect, Period of Adoption, Adjustment [ Member]",
        "label": "Cumulative Effect, Period of Adoption, Adjustment [Member]"
       }
      }
     },
     "auth_ref": [
      "r241",
      "r312",
      "r320",
      "r327",
      "r390",
      "r396",
      "r630",
      "r631",
      "r632",
      "r658",
      "r659",
      "r686",
      "r688",
      "r689",
      "r691",
      "r692",
      "r693",
      "r698",
      "r701",
      "r703",
      "r704",
      "r757"
     ]
    },
    "srt_CumulativeEffectPeriodOfAdoptionAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CumulativeEffectPeriodOfAdoptionAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cumulative Effect, Period of Adoption [Axis]"
       }
      }
     },
     "auth_ref": [
      "r241",
      "r312",
      "r320",
      "r327",
      "r390",
      "r396",
      "r630",
      "r631",
      "r632",
      "r658",
      "r659",
      "r686",
      "r688",
      "r689",
      "r691",
      "r692",
      "r693",
      "r698",
      "r701",
      "r703",
      "r704",
      "r757"
     ]
    },
    "srt_CumulativeEffectPeriodOfAdoptionDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CumulativeEffectPeriodOfAdoptionDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cumulative Effect, Period of Adoption [Domain]"
       }
      }
     },
     "auth_ref": [
      "r241",
      "r312",
      "r320",
      "r327",
      "r390",
      "r396",
      "r630",
      "r631",
      "r632",
      "r658",
      "r659",
      "r686",
      "r688",
      "r689",
      "r691",
      "r692",
      "r693",
      "r698",
      "r701",
      "r703",
      "r704",
      "r757"
     ]
    },
    "us-gaap_CurrentFederalTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CurrentFederalTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesSummaryOfIncomeTaxProvisionDetail": {
       "parentTag": "us-gaap_CurrentIncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesSummaryOfIncomeTaxProvisionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Federal Tax Expense (Benefit)",
        "terseLabel": "Federal",
        "documentation": "Amount of current federal tax expense (benefit) attributable to income (loss) from continuing operations. Includes, but is not limited to, current national tax expense (benefit) for non-US (United States of America) jurisdiction."
       }
      }
     },
     "auth_ref": [
      "r1154",
      "r1174",
      "r1324"
     ]
    },
    "dei_CurrentFiscalYearEndDate": {
     "xbrltype": "gMonthDayItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "CurrentFiscalYearEndDate",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Fiscal Year End Date",
        "terseLabel": "Current Fiscal Year End Date",
        "documentation": "End date of current fiscal year in the format --MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CurrentForeignTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CurrentForeignTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesSummaryOfIncomeTaxProvisionDetail": {
       "parentTag": "us-gaap_CurrentIncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesSummaryOfIncomeTaxProvisionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Foreign Tax Expense (Benefit)",
        "terseLabel": "Foreign",
        "documentation": "Amount of current foreign income tax expense (benefit) pertaining to income (loss) from continuing operations."
       }
      }
     },
     "auth_ref": [
      "r1154",
      "r1174"
     ]
    },
    "us-gaap_CurrentIncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CurrentIncomeTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesSummaryOfIncomeTaxProvisionDetail": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesSummaryOfIncomeTaxProvisionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Income Tax Expense (Benefit)",
        "totalLabel": "Current income tax provision",
        "documentation": "Amount of current income tax expense (benefit) pertaining to taxable income (loss) from continuing operations."
       }
      }
     },
     "auth_ref": [
      "r206",
      "r655",
      "r663",
      "r1174"
     ]
    },
    "us-gaap_CurrentIncomeTaxExpenseBenefitContinuingOperationsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CurrentIncomeTaxExpenseBenefitContinuingOperationsAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesSummaryOfIncomeTaxProvisionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Income Tax Expense (Benefit), Continuing Operations [Abstract]",
        "terseLabel": "Current:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CurrentStateAndLocalTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CurrentStateAndLocalTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesSummaryOfIncomeTaxProvisionDetail": {
       "parentTag": "us-gaap_CurrentIncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesSummaryOfIncomeTaxProvisionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current State and Local Tax Expense (Benefit)",
        "terseLabel": "State",
        "documentation": "Amount of current state and local tax expense (benefit) attributable to income (loss) from continuing operations. Includes, but is not limited to, current regional, territorial, and provincial tax expense (benefit) for non-US (United States of America) jurisdiction."
       }
      }
     },
     "auth_ref": [
      "r1154",
      "r1174",
      "r1324"
     ]
    },
    "us-gaap_CustomerConcentrationRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CustomerConcentrationRiskMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Customer Concentration Risk [Member]",
        "terseLabel": "Customer Concentration Risk [Member]",
        "documentation": "Reflects the percentage that revenues in the period from one or more significant customers is to net revenues, as defined by the entity, such as total net revenues, product line revenues, segment revenues. The risk is the materially adverse effects of loss of a significant customer."
       }
      }
     },
     "auth_ref": [
      "r60",
      "r374"
     ]
    },
    "ap_CustomerDepositsOtherPrimarilyChangesInForeignCurrencyExchangeRates": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "CustomerDepositsOtherPrimarilyChangesInForeignCurrencyExchangeRates",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesScheduleOfChangeInCustomerDepositsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Customer deposits, other, primarily changes in foreign currency exchange rates.",
        "label": "Customer Deposits Other Primarily Changes In Foreign Currency Exchange Rates",
        "terseLabel": "Other, primarily changes in foreign currency exchange rates"
       }
      }
     },
     "auth_ref": []
    },
    "ap_CustomerRelatedLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "CustomerRelatedLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail": {
       "parentTag": "us-gaap_OtherLiabilitiesCurrent",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Customer-related liabilities including liability for aggregate product warranty claims.",
        "label": "Customer Related Liabilities",
        "terseLabel": "Customer-related liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_CustomerRelationshipsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "CustomerRelationshipsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsScheduleOfIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Customer Relationships [Member]",
        "terseLabel": "Customer Relationships [Member]",
        "documentation": "Customer relationship that exists between an entity and its customer, for example, but not limited to, tenant relationships."
       }
      }
     },
     "auth_ref": [
      "r101"
     ]
    },
    "ap_DailySecuredOvernightFinancingRateSofrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DailySecuredOvernightFinancingRateSofrMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Daily Secured Overnight Financing Rate S O F R [Member]",
        "label": "Daily Secured Overnight Financing Rate SOFR [Member]",
        "documentation": "Daily secured overnight financing rate SOFR."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtConversionConvertedInstrumentRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtConversionConvertedInstrumentRate",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of converted fixed interest rate",
        "label": "Debt Conversion, Converted Instrument, Rate",
        "documentation": "Dividend or interest rate associated with the financial instrument issued in exchange for the original debt being converted in a noncash or part noncash transaction. Noncash are transactions that affect recognized assets or liabilities but that do not result in cash receipts or cash payments. Part noncash refers to that portion of the transaction not resulting in cash receipts or cash payments."
       }
      }
     },
     "auth_ref": [
      "r54",
      "r56"
     ]
    },
    "us-gaap_DebtDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtDisclosureTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebt"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Disclosure [Text Block]",
        "terseLabel": "Debt",
        "documentation": "The entire disclosure for information about short-term and long-term debt arrangements, which includes amounts of borrowings under each line of credit, note payable, commercial paper issue, bonds indenture, debenture issue, own-share lending arrangements and any other contractual agreement to repay funds, and about the underlying arrangements, rationale for a classification as long-term, including repayment terms, interest rates, collateral provided, restrictions on use of assets and activities, whether or not in compliance with debt covenants, and other matters important to users of the financial statements, such as the effects of refinancing and noncompliance with debt covenants."
       }
      }
     },
     "auth_ref": [
      "r192",
      "r294",
      "r446",
      "r452",
      "r453",
      "r454",
      "r455",
      "r456",
      "r457",
      "r462",
      "r469",
      "r470",
      "r472"
     ]
    },
    "us-gaap_DebtInstrumentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureDebtScheduleOfDebtDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument [Axis]",
        "terseLabel": "Debt Instrument",
        "documentation": "Information by type of debt instrument, including, but not limited to, draws against credit facilities."
       }
      }
     },
     "auth_ref": [
      "r29",
      "r147",
      "r148",
      "r213",
      "r216",
      "r303",
      "r447",
      "r448",
      "r449",
      "r450",
      "r451",
      "r453",
      "r458",
      "r459",
      "r460",
      "r461",
      "r463",
      "r464",
      "r465",
      "r466",
      "r467",
      "r468",
      "r737",
      "r1069",
      "r1070",
      "r1071",
      "r1072",
      "r1073",
      "r1172"
     ]
    },
    "us-gaap_DebtInstrumentBasisSpreadOnVariableRate1": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentBasisSpreadOnVariableRate1",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Basis Spread on Variable Rate",
        "terseLabel": "Debt instrument basis spread",
        "documentation": "Percentage points added to the reference rate to compute the variable rate on the debt instrument."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentCarryingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentCarryingAmount",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Gross",
        "terseLabel": "Loan balance amount",
        "documentation": "Amount, before unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but is not limited to, notes payable, bonds payable, commercial loans, mortgage loans, convertible debt, subordinated debt and other types of debt."
       }
      }
     },
     "auth_ref": [
      "r29",
      "r216",
      "r473"
     ]
    },
    "us-gaap_DebtInstrumentDateOfFirstRequiredPayment1": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentDateOfFirstRequiredPayment1",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "First payment date",
        "label": "Debt Instrument, Date of First Required Payment",
        "documentation": "Date the debt agreement requires the first payment to be made, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r39",
      "r143"
     ]
    },
    "us-gaap_DebtInstrumentDescriptionOfVariableRateBasis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentDescriptionOfVariableRateBasis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Description of Variable Rate Basis",
        "terseLabel": "Debt instrument description of interest rate",
        "documentation": "Description of reference rate used for variable rate of debt instrument."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentFaceAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentFaceAmount",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Term loan",
        "label": "Debt Instrument, Face Amount",
        "documentation": "Face (par) amount of debt instrument at time of issuance."
       }
      }
     },
     "auth_ref": [
      "r135",
      "r136",
      "r447",
      "r737",
      "r1070",
      "r1071"
     ]
    },
    "ap_DebtInstrumentFixedChargeCoverageRatio": {
     "xbrltype": "pureItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DebtInstrumentFixedChargeCoverageRatio",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument fixed charge coverage ratio.",
        "label": "Debt Instrument Fixed Charge Coverage Ratio",
        "terseLabel": "Fixed charge coverage ratio"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DebtInstrumentInterestAccrualPeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DebtInstrumentInterestAccrualPeriod",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instrument interest accrual period.",
        "label": "Debt Instrument Interest Accrual Period",
        "terseLabel": "Interest accrual period"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DebtInstrumentInterestPeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DebtInstrumentInterestPeriod",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest period",
        "label": "Debt Instrument Interest Period",
        "documentation": "Debt instrument interest period."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentInterestRateEffectivePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentInterestRateEffectivePercentage",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Interest Rate, Effective Percentage",
        "terseLabel": "Effective interest rate",
        "verboseLabel": "Debt, interest rate",
        "documentation": "Effective interest rate for the funds borrowed under the debt agreement considering interest compounding and original issue discount or premium."
       }
      }
     },
     "auth_ref": [
      "r37",
      "r135",
      "r475",
      "r737"
     ]
    },
    "ap_DebtInstrumentInterestRateEffectivePercentageDuringPeriod": {
     "xbrltype": "percentItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DebtInstrumentInterestRateEffectivePercentageDuringPeriod",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Effective interest rate during period",
        "label": "Debt Instrument Interest Rate Effective Percentage During Period",
        "documentation": "Debt instrument interest rate effective percentage during period."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentInterestRateStatedPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentInterestRateStatedPercentage",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Interest Rate, Stated Percentage",
        "terseLabel": "Effective interest rate",
        "documentation": "Contractual interest rate for funds borrowed, under the debt agreement."
       }
      }
     },
     "auth_ref": [
      "r37",
      "r448"
     ]
    },
    "us-gaap_DebtInstrumentIssuedPrincipal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentIssuedPrincipal",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt instrument, borrowed",
        "label": "Debt Instrument, Issued, Principal",
        "documentation": "Amount of principal of debt issued."
       }
      }
     },
     "auth_ref": [
      "r855"
     ]
    },
    "us-gaap_DebtInstrumentLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentLineItems",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureDebtScheduleOfDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument [Line Items]",
        "terseLabel": "Debt Instrument [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r303",
      "r447",
      "r448",
      "r449",
      "r450",
      "r451",
      "r453",
      "r458",
      "r459",
      "r460",
      "r461",
      "r463",
      "r464",
      "r465",
      "r466",
      "r467",
      "r468",
      "r471",
      "r737",
      "r1069",
      "r1070",
      "r1071",
      "r1072",
      "r1073",
      "r1172"
     ]
    },
    "us-gaap_DebtInstrumentMaturityDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentMaturityDate",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Maturity Date",
        "terseLabel": "Maturity date",
        "documentation": "Date when the debt instrument is scheduled to be fully repaid, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r235",
      "r1069",
      "r1332"
     ]
    },
    "us-gaap_DebtInstrumentMaturityDateRangeEnd1": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentMaturityDateRangeEnd1",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maturity date range, end",
        "label": "Debt Instrument, Maturity Date Range, End",
        "documentation": "Latest date the outstanding debt instruments are required to be repaid, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "us-gaap_DebtInstrumentMaturityDateRangeStart1": {
     "xbrltype": "dateItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentMaturityDateRangeStart1",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maturity date range, start",
        "label": "Debt Instrument, Maturity Date Range, Start",
        "documentation": "Earliest date the outstanding debt instruments are required to be repaid, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "us-gaap_DebtInstrumentNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentNameDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureDebtScheduleOfDebtDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Name [Domain]",
        "terseLabel": "Debt Instrument, Name",
        "documentation": "The name for the particular debt instrument or borrowing that distinguishes it from other debt instruments or borrowings, including draws against credit facilities."
       }
      }
     },
     "auth_ref": [
      "r39",
      "r303",
      "r447",
      "r448",
      "r449",
      "r450",
      "r451",
      "r453",
      "r458",
      "r459",
      "r460",
      "r461",
      "r463",
      "r464",
      "r465",
      "r466",
      "r467",
      "r468",
      "r737",
      "r1069",
      "r1070",
      "r1071",
      "r1072",
      "r1073",
      "r1172"
     ]
    },
    "us-gaap_DebtInstrumentPeriodicPayment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentPeriodicPayment",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Payments of principal and interest",
        "label": "Debt Instrument, Periodic Payment",
        "totalLabel": "Debt Instrument, Periodic Payment, Total",
        "documentation": "Amount of the required periodic payments including both interest and principal payments."
       }
      }
     },
     "auth_ref": [
      "r39",
      "r143"
     ]
    },
    "us-gaap_DebtInstrumentPeriodicPaymentInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentPeriodicPaymentInterest",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Periodic Payment, Interest",
        "terseLabel": "Repayment, interest amount",
        "verboseLabel": "Interest paid",
        "documentation": "Amount of the required periodic payments applied to interest."
       }
      }
     },
     "auth_ref": [
      "r39"
     ]
    },
    "us-gaap_DebtInstrumentPeriodicPaymentPrincipal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentPeriodicPaymentPrincipal",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Periodic Payment, Principal",
        "terseLabel": "Repayment, principal amount",
        "documentation": "Amount of the required periodic payments applied to principal."
       }
      }
     },
     "auth_ref": [
      "r39"
     ]
    },
    "us-gaap_DebtInstrumentRepaidPrincipal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentRepaidPrincipal",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt instrument, repaid",
        "label": "Debt Instrument, Repaid, Principal",
        "documentation": "Amount of principal of debt repaid."
       }
      }
     },
     "auth_ref": [
      "r858"
     ]
    },
    "ap_DebtInstrumentRepaymentDate": {
     "xbrltype": "gYearMonthItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DebtInstrumentRepaymentDate",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt instrument, repayment date",
        "documentation": "Debt instrument, repayment date."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentTable",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureDebtScheduleOfDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Long-Term Debt Instruments [Table]",
        "terseLabel": "Debt Instrument [Table]",
        "documentation": "A table or schedule providing information pertaining to long-term debt instruments or arrangements, including identification, terms, features, collateral requirements and other information necessary to a fair presentation. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the company, if longer."
       }
      }
     },
     "auth_ref": [
      "r39",
      "r82",
      "r83",
      "r134",
      "r135",
      "r136",
      "r142",
      "r193",
      "r194",
      "r303",
      "r447",
      "r448",
      "r449",
      "r450",
      "r451",
      "r453",
      "r458",
      "r459",
      "r460",
      "r461",
      "r463",
      "r464",
      "r465",
      "r466",
      "r467",
      "r468",
      "r471",
      "r737",
      "r1069",
      "r1070",
      "r1071",
      "r1072",
      "r1073",
      "r1172"
     ]
    },
    "us-gaap_DebtInstrumentTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentTerm",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instrument, Term",
        "documentation": "Period of time between issuance and maturity of debt instrument, in PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtInstrumentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtInstrumentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instruments [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DebtIssuanceCostsLineOfCreditArrangementsGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtIssuanceCostsLineOfCreditArrangementsGross",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Issuance Costs, Line of Credit Arrangements, Gross",
        "terseLabel": "Deferred financing fees",
        "documentation": "Amount, before accumulated amortization, of debt issuance costs related to line of credit arrangements. Includes, but is not limited to, legal, accounting, underwriting, printing, and registration costs."
       }
      }
     },
     "auth_ref": [
      "r28"
     ]
    },
    "us-gaap_DebtWeightedAverageInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DebtWeightedAverageInterestRate",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt, Weighted Average Interest Rate",
        "terseLabel": "Interest at a floating rate on tax-exempt IRB maturing in 2027/2029",
        "documentation": "Weighted average interest rate of debt outstanding."
       }
      }
     },
     "auth_ref": []
    },
    "ap_DebtiInstrumentNumberOfPeriodicPayment": {
     "xbrltype": "integerItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DebtiInstrumentNumberOfPeriodicPayment",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of periodic payments",
        "label": "DebtI Instrument Number of Periodic Payment",
        "documentation": "DebtI instrument number of periodic payment."
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefenseToIndemnityCostRatio": {
     "xbrltype": "percentItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefenseToIndemnityCostRatio",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defense-to-indemnity cost ratio.",
        "label": "Defense To Indemnity Cost Ratio",
        "terseLabel": "Defense-to-indemnity cost ratio"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredChargesPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredChargesPolicyTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Charges, Policy [Policy Text Block]",
        "terseLabel": "Debt Issuance Costs",
        "documentation": "Disclosure of accounting policy for deferral and amortization of significant deferred charges."
       }
      }
     },
     "auth_ref": [
      "r255"
     ]
    },
    "us-gaap_DeferredFederalIncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredFederalIncomeTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesSummaryOfIncomeTaxProvisionDetail": {
       "parentTag": "us-gaap_DeferredIncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesSummaryOfIncomeTaxProvisionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Federal Income Tax Expense (Benefit)",
        "terseLabel": "Federal",
        "documentation": "Amount of deferred federal tax expense (benefit) attributable to income (loss) from continuing operations. Includes, but is not limited to, deferred national tax expense (benefit) for non-US (United States of America) jurisdiction."
       }
      }
     },
     "auth_ref": [
      "r1174",
      "r1321",
      "r1324"
     ]
    },
    "us-gaap_DeferredForeignIncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredForeignIncomeTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesSummaryOfIncomeTaxProvisionDetail": {
       "parentTag": "us-gaap_DeferredIncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesSummaryOfIncomeTaxProvisionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Foreign Income Tax Expense (Benefit)",
        "terseLabel": "Foreign",
        "documentation": "Amount of deferred foreign income tax expense (benefit) pertaining to income (loss) from continuing operations."
       }
      }
     },
     "auth_ref": [
      "r206",
      "r1174",
      "r1321"
     ]
    },
    "us-gaap_DeferredIncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredIncomeTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesSummaryOfIncomeTaxProvisionDetail": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 1.0
      },
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesSummaryOfIncomeTaxProvisionDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Deferred income tax (benefit) provision",
        "label": "Deferred Income Tax Expense (Benefit)",
        "terseLabel": "Deferred income tax expense",
        "documentation": "Amount of deferred income tax expense (benefit) pertaining to income (loss) from continuing operations."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r206",
      "r233",
      "r662",
      "r663",
      "r1174"
     ]
    },
    "us-gaap_DeferredIncomeTaxExpenseBenefitContinuingOperationsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredIncomeTaxExpenseBenefitContinuingOperationsAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesSummaryOfIncomeTaxProvisionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Income Tax Expense (Benefit), Continuing Operations [Abstract]",
        "terseLabel": "Deferred:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredIncomeTaxLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredIncomeTaxLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail2": {
       "parentTag": "us-gaap_DeferredTaxAssetsLiabilitiesNet",
       "weight": -1.0,
       "order": 0.0
      },
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail": {
       "parentTag": "us-gaap_DeferredTaxLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Liabilities, Gross",
        "negatedTotalLabel": "Gross deferred income tax liabilities",
        "totalLabel": "Deferred Tax Liabilities, Gross, Total",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences."
       }
      }
     },
     "auth_ref": [
      "r150",
      "r151",
      "r214",
      "r649"
     ]
    },
    "us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredStateAndLocalIncomeTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesSummaryOfIncomeTaxProvisionDetail": {
       "parentTag": "us-gaap_DeferredIncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesSummaryOfIncomeTaxProvisionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred State and Local Income Tax Expense (Benefit)",
        "terseLabel": "State",
        "documentation": "Amount of deferred state and local tax expense (benefit) attributable to income (loss) from continuing operations. Includes, but is not limited to, deferred regional, territorial, and provincial tax expense (benefit) for non-US (United States of America) jurisdiction."
       }
      }
     },
     "auth_ref": [
      "r1174",
      "r1321",
      "r1324"
     ]
    },
    "ap_DeferredTaxAssetsAsbestosRelatedLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DeferredTaxAssetsAsbestosRelatedLiability",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowance of deferred tax asset attributable to deductible temporary differences from asbestos related liability net of asbestos related insurance receivables.",
        "label": "Deferred Tax Assets Asbestos Related Liability",
        "terseLabel": "Asbestos-related liability"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredTaxAssetsCapitalLossCarryforwards": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsCapitalLossCarryforwards",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Capital Loss Carryforwards",
        "terseLabel": "Capital loss carryforwards",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible capital loss carryforwards."
       }
      }
     },
     "auth_ref": [
      "r99",
      "r1320"
     ]
    },
    "us-gaap_DeferredTaxAssetsDeferredIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsDeferredIncome",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Deferred Income",
        "terseLabel": "Deferred income tax assets",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from deferred income."
       }
      }
     },
     "auth_ref": [
      "r99",
      "r1320"
     ]
    },
    "ap_DeferredTaxAssetsForeignPensionAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DeferredTaxAssetsForeignPensionAsset",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred tax assets foreign pension asset.",
        "label": "Deferred Tax Assets Foreign Pension Asset",
        "negatedLabel": "Pension asset \u2013 foreign"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredTaxAssetsGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsGross",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail": {
       "parentTag": "us-gaap_DeferredTaxAssetsNet",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Gross",
        "totalLabel": "Gross deferred income tax assets",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards."
       }
      }
     },
     "auth_ref": [
      "r650"
     ]
    },
    "ap_DeferredTaxAssetsImpairmentOfInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DeferredTaxAssetsImpairmentOfInvestments",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Impairment charge associated with investment in Anhui",
        "documentation": "Deferred tax assets impairment of investments.",
        "label": "Deferred Tax Assets Impairment Of Investments"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DeferredTaxAssetsIntangibleAssetsFiniteLife": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DeferredTaxAssetsIntangibleAssetsFiniteLife",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred tax assets intangible assets finite life.",
        "label": "Deferred Tax Assets Intangible Assets Finite Life",
        "negatedLabel": "Intangible assets \u2013 finite life"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DeferredTaxAssetsIntangibleAssetsIndefiniteLife": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DeferredTaxAssetsIntangibleAssetsIndefiniteLife",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred tax assets intangible assets indefinite life.",
        "label": "Deferred Tax Assets Intangible Assets Indefinite Life",
        "negatedLabel": "Intangible assets \u2013 indefinite life"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DeferredTaxAssetsInterestExpenseLimitation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DeferredTaxAssetsInterestExpenseLimitation",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred tax assets interest expense limitation.",
        "label": "Deferred Tax Assets Interest Expense Limitation",
        "terseLabel": "Interest expense limitation"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredTaxAssetsInventory": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsInventory",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Inventory",
        "terseLabel": "Inventory related",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from inventory."
       }
      }
     },
     "auth_ref": [
      "r99",
      "r1320"
     ]
    },
    "us-gaap_DeferredTaxAssetsLiabilitiesNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsLiabilitiesNet",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail2": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net deferred income tax assets",
        "label": "Deferred Tax Assets, Net",
        "documentation": "Amount, after allocation of valuation allowances and deferred tax liability, of deferred tax asset attributable to deductible differences and carryforwards, without jurisdictional netting."
       }
      }
     },
     "auth_ref": [
      "r1319"
     ]
    },
    "us-gaap_DeferredTaxAssetsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsNet",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail": {
       "parentTag": "us-gaap_DeferredTaxLiabilities",
       "weight": -1.0,
       "order": 0.0
      },
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail2": {
       "parentTag": "us-gaap_DeferredTaxAssetsLiabilitiesNet",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Net of Valuation Allowance",
        "totalLabel": "Deferred tax assets, net, Total",
        "documentation": "Amount after allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards."
       }
      }
     },
     "auth_ref": [
      "r1319"
     ]
    },
    "ap_DeferredTaxAssetsOperatingLeaseRightOfUseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DeferredTaxAssetsOperatingLeaseRightOfUseAssets",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred tax assets, operating lease right-of-use assets.",
        "label": "Deferred Tax Assets Operating Lease Right Of Use Assets",
        "terseLabel": "Operating lease right-of-use assets"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsDomestic": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsOperatingLossCarryforwardsDomestic",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Operating Loss Carryforwards, Domestic",
        "terseLabel": "Net operating loss \u2013 domestic",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible domestic operating loss carryforwards. Excludes state and local operating loss carryforwards."
       }
      }
     },
     "auth_ref": [
      "r99",
      "r1320"
     ]
    },
    "us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsForeign": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsOperatingLossCarryforwardsForeign",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Operating Loss Carryforwards, Foreign",
        "terseLabel": "Net operating loss \u2013 foreign",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible foreign operating loss carryforwards."
       }
      }
     },
     "auth_ref": [
      "r99",
      "r1320"
     ]
    },
    "us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsStateAndLocal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsOperatingLossCarryforwardsStateAndLocal",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Operating Loss Carryforwards, State and Local",
        "terseLabel": "Net operating loss \u2013 state",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible state and local operating loss carryforwards."
       }
      }
     },
     "auth_ref": [
      "r99",
      "r1320"
     ]
    },
    "us-gaap_DeferredTaxAssetsOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsOther",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Other",
        "terseLabel": "Other",
        "documentation": "Amount, before allocation of valuation allowance, of deferred tax asset attributable to deductible temporary differences, classified as other."
       }
      }
     },
     "auth_ref": [
      "r99",
      "r1320"
     ]
    },
    "ap_DeferredTaxAssetsSaleLeaseback": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DeferredTaxAssetsSaleLeaseback",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred tax assets sale-leaseback.",
        "label": "Deferred Tax Assets Sale Leaseback",
        "terseLabel": "Sale-leaseback"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Tax Deferred Expense, Compensation and Benefits",
        "terseLabel": "Employment \u2013 related liabilities",
        "totalLabel": "Deferred Tax Assets, Tax Deferred Expense, Compensation and Benefits, Total",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from compensation and benefits costs."
       }
      }
     },
     "auth_ref": [
      "r99",
      "r1320"
     ]
    },
    "us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPensions",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail": {
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Tax Deferred Expense, Compensation and Benefits, Pensions",
        "terseLabel": "Pension liability",
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from pension benefits."
       }
      }
     },
     "auth_ref": [
      "r1320"
     ]
    },
    "us-gaap_DeferredTaxAssetsValuationAllowance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxAssetsValuationAllowance",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail": {
       "parentTag": "us-gaap_DeferredTaxAssetsNet",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Valuation Allowance",
        "negatedLabel": "Valuation allowance",
        "documentation": "Amount of deferred tax assets for which it is more likely than not that a tax benefit will not be realized."
       }
      }
     },
     "auth_ref": [
      "r651"
     ]
    },
    "us-gaap_DeferredTaxLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTotalLabel": "Net deferred income tax liabilities",
        "label": "Deferred Tax Liabilities, Net",
        "terseLabel": "Deferred tax liability recorded",
        "totalLabel": "Deferred Tax Liabilities, Net, Total",
        "documentation": "Amount, after deferred tax asset, of deferred tax liability attributable to taxable differences without jurisdictional netting."
       }
      }
     },
     "auth_ref": [
      "r96",
      "r1319"
     ]
    },
    "us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedInventoryCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxLiabilitiesDeferredExpenseCapitalizedInventoryCosts",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Liabilities, Inventory",
        "terseLabel": "Inventory related",
        "negatedLabel": "Inventory related",
        "documentation": "Amount of deferred tax consequences attributable to taxable temporary differences derived from inventory."
       }
      }
     },
     "auth_ref": [
      "r99",
      "r1320"
     ]
    },
    "us-gaap_DeferredTaxLiabilitiesLeasingArrangements": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxLiabilitiesLeasingArrangements",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Liabilities, Leasing Arrangements",
        "negatedLabel": "Operating lease liabilities",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from leasing arrangements."
       }
      }
     },
     "auth_ref": [
      "r99",
      "r1320"
     ]
    },
    "us-gaap_DeferredTaxLiabilitiesOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxLiabilitiesOther",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Liabilities, Other",
        "negatedLabel": "Other",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences classified as other."
       }
      }
     },
     "auth_ref": [
      "r99",
      "r1320"
     ]
    },
    "us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxLiabilitiesPropertyPlantAndEquipment",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail": {
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Liabilities, Property, Plant and Equipment",
        "negatedLabel": "Depreciation",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from property, plant, and equipment."
       }
      }
     },
     "auth_ref": [
      "r99",
      "r1320"
     ]
    },
    "us-gaap_DeferredTaxLiabilitiesTaxDeferredIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DeferredTaxLiabilitiesTaxDeferredIncome",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Liabilities, Tax Deferred Income",
        "terseLabel": "Deferred income tax liabilities",
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from tax deferred revenue or income classified as other."
       }
      }
     },
     "auth_ref": [
      "r99",
      "r1320"
     ]
    },
    "us-gaap_DefinedBenefitPlanAccumulatedBenefitObligation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanAccumulatedBenefitObligation",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Accumulated Benefit Obligation",
        "terseLabel": "Accumulated benefit obligations",
        "documentation": "Amount of actuarial present value of benefits attributed to employee service rendered, excluding assumptions about future compensation level."
       }
      }
     },
     "auth_ref": [
      "r542"
     ]
    },
    "us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfAccumulatedOtherComprehensiveLossDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfAccumulatedOtherComprehensiveLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Accumulated Other Comprehensive (Income) Loss, before Tax",
        "totalLabel": "Total accumulated other comprehensive loss",
        "documentation": "Amount, before tax, of accumulated other comprehensive (income) loss for defined benefit plan, that has not been recognized in net periodic benefit cost (credit)."
       }
      }
     },
     "auth_ref": [
      "r6",
      "r45",
      "r1264"
     ]
    },
    "us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTaxAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTaxAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfAccumulatedOtherComprehensiveLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Accumulated Other Comprehensive (Income) Loss, before Tax [Abstract]",
        "terseLabel": "Accumulated other comprehensive loss:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfAccumulatedOtherComprehensiveLossDetail": {
       "parentTag": "us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax",
       "weight": -1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfAccumulatedOtherComprehensiveLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Accumulated Other Comprehensive Income (Loss), Gain (Loss), before Tax",
        "negatedLabel": "Net actuarial loss (gain)",
        "documentation": "Amount, before tax, of accumulated other comprehensive income (loss) for gain (loss) of defined benefit plan, that has not been recognized in net periodic benefit (cost) credit."
       }
      }
     },
     "auth_ref": [
      "r45",
      "r554"
     ]
    },
    "us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetPriorServiceCostCreditBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetPriorServiceCostCreditBeforeTax",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfAccumulatedOtherComprehensiveLossDetail": {
       "parentTag": "us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfAccumulatedOtherComprehensiveLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Accumulated Other Comprehensive (Income) Loss, Prior Service Cost (Credit), before Tax",
        "terseLabel": "Prior service cost (credit)",
        "documentation": "Amount, before tax, of accumulated other comprehensive (income) loss for cost (credit) of benefit change attributable to participants' prior service from plan amendment or plan initiation of defined benefit plan, that has not been recognized in net periodic benefit cost (credit)."
       }
      }
     },
     "auth_ref": [
      "r45",
      "r554"
     ]
    },
    "us-gaap_DefinedBenefitPlanActualReturnOnPlanAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanActualReturnOnPlanAssets",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan Assets, Increase (Decrease) for Actual Return (Loss)",
        "terseLabel": "Actual return on plan assets",
        "documentation": "Amount of increase (decrease) in plan assets of defined benefit plan from actual return (loss) determined by change in fair value of plan assets adjusted for contributions, benefit payments, and other expenses."
       }
      }
     },
     "auth_ref": [
      "r524",
      "r1085"
     ]
    },
    "us-gaap_DefinedBenefitPlanActualReturnOnPlanAssetsSoldDuringPeriod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanActualReturnOnPlanAssetsSoldDuringPeriod",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfChangesInFairValueOfLevel3PlanAssetsForUSAndForeignPensionBenefitsPlansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan Assets Level 3 Reconciliation, Increase (Decrease) for Actual Return (Loss) on Plan Assets Sold",
        "terseLabel": "Realized gains (losses)",
        "documentation": "Amount, measured using unobservable inputs, of increase (decrease) in plan assets of defined benefit plan from actual return (loss) on assets sold."
       }
      }
     },
     "auth_ref": [
      "r538",
      "r1085"
     ]
    },
    "us-gaap_DefinedBenefitPlanActualReturnOnPlanAssetsStillHeld": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanActualReturnOnPlanAssetsStillHeld",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfChangesInFairValueOfLevel3PlanAssetsForUSAndForeignPensionBenefitsPlansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan Assets Level 3 Reconciliation, Increase (Decrease) for Actual Return (Loss) on Plan Assets Still Held",
        "terseLabel": "Change in net unrealized gains (losses)",
        "documentation": "Amount, measured using unobservable inputs, of increase (decrease) in plan assets of defined benefit plan from actual return (loss) on assets still held."
       }
      }
     },
     "auth_ref": [
      "r538",
      "r1085"
     ]
    },
    "us-gaap_DefinedBenefitPlanActuarialGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanActuarialGainLoss",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosurePensionAndOtherPostretirementBenefitsComponentsOfActuarialLossesGainsInProjectedBenefitObligationsDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosurePensionAndOtherPostretirementBenefitsComponentsOfActuarialLossesGainsInProjectedBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInProjectedBenefitObligationsPBODetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Actuarial losses (gains)",
        "negatedTotalLabel": "Total actuarial losses (gains)",
        "label": "Defined Benefit Plan, Benefit Obligation, Actuarial Gain (Loss)",
        "documentation": "Amount of gain (loss) from change in actuarial assumptions which (increases) decreases benefit obligation of defined benefit plan. Assumptions include, but are not limited to, interest, mortality, employee turnover, salary, and temporary deviation from substantive plan."
       }
      }
     },
     "auth_ref": [
      "r517"
     ]
    },
    "ap_DefinedBenefitPlanAmendmentsMonthlyReimbursementPeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanAmendmentsMonthlyReimbursementPeriod",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan amendments monthly reimbursement period.",
        "label": "Defined Benefit Plan Amendments Monthly Reimbursement Period",
        "terseLabel": "Monthly reimbursement period"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanAmortizationOfGainsLosses",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail": {
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Amortization of Gain (Loss)",
        "negatedLabel": "Actuarial loss (gain)",
        "documentation": "Amount of gain (loss) recognized in net periodic benefit (cost) credit of defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r511",
      "r549",
      "r575",
      "r1085",
      "r1086"
     ]
    },
    "us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanAmortizationOfPriorServiceCostCredit",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail": {
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Amortization of Prior Service Cost (Credit)",
        "terseLabel": "Amortization of prior service cost (credit)",
        "documentation": "Amount of prior service cost (credit) recognized in net periodic benefit cost (credit) of defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r511",
      "r550",
      "r576",
      "r1085",
      "r1086"
     ]
    },
    "us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanAmountsRecognizedInBalanceSheet",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfAmountsRecognizedInConsolidatedBalanceSheetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total employee benefit obligations",
        "label": "Defined Benefit Plan, Amounts for Asset (Liability) Recognized in Statement of Financial Position",
        "totalLabel": "Defined Benefit Plan, Amounts for Asset (Liability) Recognized in Statement of Financial Position, Total",
        "documentation": "Amount of asset (liability), recognized in statement of financial position, for defined benefit pension and other postretirement plans."
       }
      }
     },
     "auth_ref": [
      "r84",
      "r85"
     ]
    },
    "us-gaap_DefinedBenefitPlanAssetsForPlanBenefitsNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanAssetsForPlanBenefitsNoncurrent",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets for Plan Benefits, Defined Benefit Plan",
        "terseLabel": "Fair market value included in other noncurrent assets",
        "documentation": "Amount of asset, recognized in statement of financial position, for overfunded defined benefit pension and other postretirement plans."
       }
      }
     },
     "auth_ref": [
      "r211",
      "r509",
      "r510",
      "r532",
      "r909",
      "r1085",
      "r1352"
     ]
    },
    "ap_DefinedBenefitPlanAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanAssetsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined Benefit Plan Assets [Member]",
        "label": "Defined Benefit Plan Assets [Member]",
        "terseLabel": "Defined Benefit Plan Assets [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsDiscountRatesUsedToDetermineBenefitObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Assumptions Used Calculating Benefit Obligation, Discount Rate",
        "terseLabel": "Discount rate",
        "documentation": "Weighted average rate for present value of future retirement benefits cash flows, used to determine benefit obligation of defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r556"
     ]
    },
    "us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssumptionsRegardingNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Assumptions Used Calculating Net Periodic Benefit Cost, Discount Rate",
        "terseLabel": "Discount rate",
        "documentation": "Weighted average rate for present value of future retirement benefits cash flows, used to determine net periodic benefit cost of defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r556"
     ]
    },
    "us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssumptionsRegardingNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Assumptions Used Calculating Net Periodic Benefit Cost, Expected Long-Term Rate of Return on Plan Assets",
        "terseLabel": "Expected long-term rate of return",
        "documentation": "Weighted average rate of return on plan assets, reflecting average rate of earnings expected on existing plan assets and expected contributions, used to determine net periodic benefit cost of defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r558",
      "r580"
     ]
    },
    "us-gaap_DefinedBenefitPlanBenefitObligation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanBenefitObligation",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfFundedStatusOfPlansDetail": {
       "parentTag": "us-gaap_DefinedBenefitPlanFundedStatusOfPlan",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInProjectedBenefitObligationsPBODetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfFundedStatusOfPlansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Benefit Obligation",
        "periodEndLabel": "PBO, Ending balance",
        "periodStartLabel": "PBO, beginning balance",
        "terseLabel": "Less benefit obligations",
        "documentation": "Amount of actuarial present value of benefits attributed to service rendered by employee for defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r512"
     ]
    },
    "us-gaap_DefinedBenefitPlanBenefitObligationBenefitsPaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanBenefitObligationBenefitsPaid",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInProjectedBenefitObligationsPBODetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Benefit Obligation, Benefits Paid",
        "negatedLabel": "Benefits paid from plan assets",
        "documentation": "Amount of payment to participant of defined benefit plan which decreases benefit obligation. For pension plan, payment includes, but is not limited to, pension benefits and death benefits. For other postretirement plan, payment includes, but is not limited to, prescription drug benefits, health care benefits, life insurance benefits, and legal, educational and advisory services."
       }
      }
     },
     "auth_ref": [
      "r519",
      "r583"
     ]
    },
    "us-gaap_DefinedBenefitPlanBenefitObligationContributionsByPlanParticipant": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanBenefitObligationContributionsByPlanParticipant",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInProjectedBenefitObligationsPBODetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Benefit Obligation, Contributions by Plan Participant",
        "terseLabel": "Participant contributions",
        "documentation": "Amount of contributions received by defined benefit plan from participant which increase benefit obligation."
       }
      }
     },
     "auth_ref": [
      "r516"
     ]
    },
    "ap_DefinedBenefitPlanBenefitPaymentsByEmployer": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanBenefitPaymentsByEmployer",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInProjectedBenefitObligationsPBODetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined Benefit Plan Benefit Payments by Employer",
        "label": "Defined Benefit Plan Benefit Payments By Employer",
        "negatedLabel": "Benefits paid by the Corporation"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanBusinessCombinationsAndAcquisitionsBenefitObligation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanBusinessCombinationsAndAcquisitionsBenefitObligation",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Benefit Obligation, Business Combination",
        "verboseLabel": "Projected benefit obligations",
        "documentation": "Amount of increase in benefit obligation of defined benefit plan from business combination."
       }
      }
     },
     "auth_ref": [
      "r521"
     ]
    },
    "us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanByPlanAssetCategoriesAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfChangesInFairValueOfLevel3PlanAssetsForUSAndForeignPensionBenefitsPlansDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfTargetAssetAllocationsAndMajorAssetCategoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan Assets, Category [Axis]",
        "terseLabel": "Defined Benefit Plan, Plan Assets, Category",
        "documentation": "Information by defined benefit plan asset investment."
       }
      }
     },
     "auth_ref": [
      "r533",
      "r534",
      "r536",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r561",
      "r1083",
      "r1084",
      "r1085"
     ]
    },
    "us-gaap_DefinedBenefitPlanCashAndCashEquivalentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanCashAndCashEquivalentsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfTargetAssetAllocationsAndMajorAssetCategoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Cash and Cash Equivalents [Member]",
        "terseLabel": "Other (Primarily Cash and Cash Equivalents) [Member]",
        "documentation": "Cash and cash equivalent in which defined benefit plan asset is invested."
       }
      }
     },
     "auth_ref": [
      "r1083"
     ]
    },
    "us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanChangeInBenefitObligationRollForward",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInProjectedBenefitObligationsPBODetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Change in Benefit Obligation [Roll Forward]",
        "terseLabel": "Change in projected benefit obligations:",
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Change in Fair Value of Plan Assets [Roll Forward]",
        "terseLabel": "Change in plan assets:",
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period."
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanChangesInAssumptions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanChangesInAssumptions",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosurePensionAndOtherPostretirementBenefitsComponentsOfActuarialLossesGainsInProjectedBenefitObligationsDetail": {
       "parentTag": "us-gaap_DefinedBenefitPlanActuarialGainLoss",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosurePensionAndOtherPostretirementBenefitsComponentsOfActuarialLossesGainsInProjectedBenefitObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan, changes in assumptions.",
        "label": "Defined Benefit Plan Changes In Assumptions",
        "negatedLabel": "Changes in assumptions"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanContributionByEmployerExpectedToBeFullyFunded": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanContributionByEmployerExpectedToBeFullyFunded",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Defined contribution plan expected contribution required in 2024 to be fully funded",
        "documentation": "Defined benefit plan contribution by employer expected to be fully funded.",
        "label": "Defined Benefit Plan Contribution By Employer Expected To Be Fully Funded"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanContributionRequiredInCurrentYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanContributionRequiredInCurrentYear",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan contribution required in current year.",
        "label": "Defined Benefit Plan Contribution Required In Current Year",
        "terseLabel": "Defined contribution plan contribution required in current year"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanContributionsByEmployer": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanContributionsByEmployer",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan Assets, Contributions by Employer",
        "terseLabel": "Corporate contributions",
        "verboseLabel": "Voluntary contributions made",
        "documentation": "Amount of contribution received by defined benefit plan from employer which increases plan assets."
       }
      }
     },
     "auth_ref": [
      "r526",
      "r536",
      "r579",
      "r1083",
      "r1084",
      "r1085",
      "r1086"
     ]
    },
    "us-gaap_DefinedBenefitPlanDisclosureLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanDisclosureLineItems",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosurePensionAndOtherPostretirementBenefitsComponentsOfActuarialLossesGainsInProjectedBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssumptionsRegardingNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsDiscountRatesUsedToDetermineBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfAccumulatedOtherComprehensiveLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInProjectedBenefitObligationsPBODetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfFundedStatusOfPlansDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfAmountsRecognizedInConsolidatedBalanceSheetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfChangesInFairValueOfLevel3PlanAssetsForUSAndForeignPensionBenefitsPlansDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfTargetAssetAllocationsAndMajorAssetCategoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan Disclosure [Line Items]",
        "terseLabel": "Defined Benefit Plan Disclosure [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanEffectOfOnePercentagePointDecreaseOnAccumulatedPostretirementBenefitObligation1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanEffectOfOnePercentagePointDecreaseOnAccumulatedPostretirementBenefitObligation1",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Effect of One-Percentage-Point Decrease on Accumulated Postretirement Benefit Obligation",
        "terseLabel": "Percentage point increase in the expected long-term rate of return would decrease annual pension expense",
        "documentation": "Amount of decrease in accumulated postretirement benefit obligation from one-percentage-point decrease in assumed health care cost trend rate."
       }
      }
     },
     "auth_ref": [
      "r1223"
     ]
    },
    "us-gaap_DefinedBenefitPlanEffectOfOnePercentagePointIncreaseOnAccumulatedPostretirementBenefitObligation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanEffectOfOnePercentagePointIncreaseOnAccumulatedPostretirementBenefitObligation",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Effect of One-Percentage-Point Increase on Accumulated Postretirement Benefit Obligation",
        "terseLabel": "Percentage point decrease in the expected long-term rate of return would increase annual pension expense",
        "documentation": "Amount of increase in accumulated postretirement benefit obligation from one-percentage-point increase in assumed health care cost trend rate."
       }
      }
     },
     "auth_ref": [
      "r1223"
     ]
    },
    "ap_DefinedBenefitPlanEffectOfTwentyFiveBasisPointsDecreaseOnDiscountRate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanEffectOfTwentyFiveBasisPointsDecreaseOnDiscountRate",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan effect of twenty five basis points decrease on discount rate.",
        "label": "Defined Benefit Plan Effect Of Twenty Five Basis Points Decrease On Discount Rate",
        "terseLabel": "Increase in projected and accumulated benefit obligations due to 1/4 percentage point decrease in discount rate"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanEffectOfTwentyFiveBasisPointsIncreaseOnDiscountRate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanEffectOfTwentyFiveBasisPointsIncreaseOnDiscountRate",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan effect of twenty five basis points increase on discount rate.",
        "label": "Defined Benefit Plan Effect Of Twenty Five Basis Points Increase On Discount Rate",
        "terseLabel": "Decrease in projected and accumulated benefit obligations due to 1/4 percentage point increase in discount rate"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanEmployerMinimumContributions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanEmployerMinimumContributions",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of contributions as of the end of the reporting period expected to be made in the following reporting period.",
        "label": "Defined Benefit Plan Employer Minimum Contributions",
        "terseLabel": "Minimum contributions required"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanEquitySecuritiesInternationalConsumerDiscretionaryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanEquitySecuritiesInternationalConsumerDiscretionaryMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan equity securities international consumer discretionary.",
        "label": "Defined Benefit Plan Equity Securities International Consumer Discretionary [Member]",
        "terseLabel": "Equity Securities, International, Consumer Discretionary [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanEquitySecuritiesInternationalFinancialMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanEquitySecuritiesInternationalFinancialMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan equity securities international financial.",
        "label": "Defined Benefit Plan Equity Securities International Financial [Member]",
        "terseLabel": "Equity Securities, International, Financial [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanEquitySecuritiesInternationalHealthcareMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanEquitySecuritiesInternationalHealthcareMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan equity securities international healthcare.",
        "label": "Defined Benefit Plan Equity Securities International Healthcare [Member]",
        "terseLabel": "Equity Securities, International, Healthcare [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanEquitySecuritiesInternationalIndustrialsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanEquitySecuritiesInternationalIndustrialsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan equity securities international industrials.",
        "label": "Defined Benefit Plan Equity Securities International Industrials [Member]",
        "terseLabel": "Equity Securities, International, Industrials [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanEquitySecuritiesInternationalInformationTechnologyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanEquitySecuritiesInternationalInformationTechnologyMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan equity securities international information technology.",
        "label": "Defined Benefit Plan Equity Securities International Information Technology [Member]",
        "terseLabel": "Equity Securities, International, Information Technology [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanEquitySecuritiesInternationalMaterialsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanEquitySecuritiesInternationalMaterialsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan equity securities international materials.",
        "label": "Defined Benefit Plan Equity Securities International Materials [Member]",
        "terseLabel": "Equity Securities, International, Materials [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanEquitySecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanEquitySecuritiesMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfTargetAssetAllocationsAndMajorAssetCategoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Equity Securities [Member]",
        "terseLabel": "Equity Securities [Member]",
        "documentation": "Security representing ownership in corporation or other legal entity for which ownership is represented by share of stock, in which defined benefit plan asset is invested. Includes, but is not limited to, common stock, preferred stock, convertible security, stock right and stock warrant."
       }
      }
     },
     "auth_ref": [
      "r1083",
      "r1085"
     ]
    },
    "us-gaap_DefinedBenefitPlanEquitySecuritiesNonUsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanEquitySecuritiesNonUsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Equity Securities, Non-US [Member]",
        "terseLabel": "Equity Securities [Member]",
        "documentation": "Security representing ownership in corporation or other legal entity, not domiciled in United States of America (US), for which ownership is represented by share of stock; in which defined benefit plan asset is invested. Includes, but is not limited to, common stock, preferred stock, convertible security, stock right and stock warrant."
       }
      }
     },
     "auth_ref": [
      "r1083",
      "r1084",
      "r1085"
     ]
    },
    "ap_DefinedBenefitPlanEquitySecuritiesUSConsumerDiscretionaryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanEquitySecuritiesUSConsumerDiscretionaryMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan equity securities U.S. consumer discretionary.",
        "label": "Defined Benefit Plan Equity Securities U S Consumer Discretionary [Member]",
        "terseLabel": "Equity Securities, U.S., Consumer Discretionary [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanEquitySecuritiesUSConsumerStaplesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanEquitySecuritiesUSConsumerStaplesMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan equity securities U.S. consumer staples.",
        "label": "Defined Benefit Plan Equity Securities U S Consumer Staples [Member]",
        "terseLabel": "Equity Securities, U.S., Consumer Staples [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanEquitySecuritiesUSEnergyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanEquitySecuritiesUSEnergyMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan equity securities U.S. energy.",
        "label": "Defined Benefit Plan Equity Securities U S Energy [Member]",
        "terseLabel": "Equity Securities, U.S., Energy [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanEquitySecuritiesUSFinancialMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanEquitySecuritiesUSFinancialMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan equity securities U.S. financial.",
        "label": "Defined Benefit Plan Equity Securities U S Financial [Member]",
        "terseLabel": "Equity Securities, U.S., Financial [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanEquitySecuritiesUSHealthcareMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanEquitySecuritiesUSHealthcareMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan equity securities U.S. healthcare.",
        "label": "Defined Benefit Plan Equity Securities U S Healthcare [Member]",
        "terseLabel": "Equity Securities, U.S., Healthcare [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanEquitySecuritiesUSIndustrialsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanEquitySecuritiesUSIndustrialsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan equity securities U.S. industrials",
        "label": "Defined Benefit Plan Equity Securities U S Industrials [Member]",
        "terseLabel": "Equity Securities, U.S., Industrials [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanEquitySecuritiesUSInformationTechnologyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanEquitySecuritiesUSInformationTechnologyMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan equity securities U.S. information technology.",
        "label": "Defined Benefit Plan Equity Securities U S Information Technology [Member]",
        "terseLabel": "Equity Securities, U.S., Information Technology [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanEquitySecuritiesUSMaterialsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanEquitySecuritiesUSMaterialsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan equity securities U.S. materials.",
        "label": "Defined Benefit Plan Equity Securities U S Materials [Member]",
        "terseLabel": "Equity Securities, U.S., Materials [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanEquitySecuritiesUSMutualFundsAndETFsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanEquitySecuritiesUSMutualFundsAndETFsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan equity securities U.S. mutual funds and ETFs.",
        "label": "Defined Benefit Plan Equity Securities U S Mutual Funds And E T Fs [Member]",
        "terseLabel": "Equity Securities, U.S., Mutual Funds and ETFs [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanEquitySecuritiesUSRealEstateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanEquitySecuritiesUSRealEstateMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan equity securities U.S. real estate.",
        "label": "Defined Benefit Plan Equity Securities U S Real Estate [Member]",
        "terseLabel": "Equity Securities, U.S., Real Estate [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanEquitySecuritiesUSTelecommunicationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanEquitySecuritiesUSTelecommunicationsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan equity securities U.S. telecommunications.",
        "label": "Defined Benefit Plan Equity Securities U S Telecommunications [Member]",
        "terseLabel": "Equity Securities, U.S., Telecommunications [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanEquitySecuritiesUSUtilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanEquitySecuritiesUSUtilitiesMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan equity securities U.S. utilities.",
        "label": "Defined Benefit Plan Equity Securities U S Utilities [Member]",
        "terseLabel": "Equity Securities, U.S., Utilities [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanExpectedFutureBenefitPayments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanExpectedFutureBenefitPayments",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan expected future benefit payments.",
        "label": "Defined Benefit Plan Expected Future Benefit Payments",
        "totalLabel": "Total benefit payments"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail": {
       "parentTag": "ap_DefinedBenefitPlanExpectedFutureBenefitPayments",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2029-2033",
        "label": "Defined Benefit Plan, Expected Future Benefit Payment, after Year Five for Next Five Years",
        "documentation": "Amount of benefit for defined benefit plan expected to be paid in five fiscal years after fifth fiscal year following current fiscal year."
       }
      }
     },
     "auth_ref": [
      "r543"
     ]
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail": {
       "parentTag": "ap_DefinedBenefitPlanExpectedFutureBenefitPayments",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2024",
        "label": "Defined Benefit Plan, Expected Future Benefit Payment, Year One",
        "documentation": "Amount of benefit for defined benefit plan expected to be paid in next fiscal year following current fiscal year."
       }
      }
     },
     "auth_ref": [
      "r543"
     ]
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail": {
       "parentTag": "ap_DefinedBenefitPlanExpectedFutureBenefitPayments",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2028",
        "label": "Defined Benefit Plan, Expected Future Benefit Payment, Year Five",
        "documentation": "Amount of benefit for defined benefit plan expected to be paid in fifth fiscal year following current fiscal year."
       }
      }
     },
     "auth_ref": [
      "r543"
     ]
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail": {
       "parentTag": "ap_DefinedBenefitPlanExpectedFutureBenefitPayments",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2027",
        "label": "Defined Benefit Plan, Expected Future Benefit Payment, Year Four",
        "documentation": "Amount of benefit for defined benefit plan expected to be paid in fourth fiscal year following current fiscal year."
       }
      }
     },
     "auth_ref": [
      "r543"
     ]
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail": {
       "parentTag": "ap_DefinedBenefitPlanExpectedFutureBenefitPayments",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2026",
        "label": "Defined Benefit Plan, Expected Future Benefit Payment, Year Three",
        "documentation": "Amount of benefit for defined benefit plan expected to be paid in third fiscal year following current fiscal year."
       }
      }
     },
     "auth_ref": [
      "r543"
     ]
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail": {
       "parentTag": "ap_DefinedBenefitPlanExpectedFutureBenefitPayments",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2025",
        "label": "Defined Benefit Plan, Expected Future Benefit Payment, Year Two",
        "documentation": "Amount of benefit for defined benefit plan expected to be paid in second fiscal year following current fiscal year."
       }
      }
     },
     "auth_ref": [
      "r543"
     ]
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureEmployerContributionsNextFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanExpectedFutureEmployerContributionsNextFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Minimum contributions expected in 2024",
        "label": "Defined Benefit Plan, Expected Future Employer Contributions, Next Fiscal Year",
        "documentation": "Amount of contribution expected to be received by defined benefit plan from employer in next fiscal year following current fiscal year."
       }
      }
     },
     "auth_ref": [
      "r544",
      "r1086"
     ]
    },
    "us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanExpectedReturnOnPlanAssets",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail": {
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Expected Return (Loss) on Plan Assets",
        "negatedLabel": "Expected return on plan assets",
        "documentation": "Amount of expected return (loss) recognized in net periodic benefit (cost) credit, calculated based on expected long-term rate of return and market-related value of plan assets of defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r511",
      "r548",
      "r574",
      "r1085",
      "r1086"
     ]
    },
    "us-gaap_DefinedBenefitPlanFairValueOfPlanAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanFairValueOfPlanAssets",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfFundedStatusOfPlansDetail": {
       "parentTag": "us-gaap_DefinedBenefitPlanFundedStatusOfPlan",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfFundedStatusOfPlansDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfChangesInFairValueOfLevel3PlanAssetsForUSAndForeignPensionBenefitsPlansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan Assets, Amount",
        "periodEndLabel": "Fair value of plan assets, Ending balance",
        "periodStartLabel": "Fair value of plan assets, Beginning balance",
        "terseLabel": "Fair value of plan assets",
        "documentation": "Amount of asset segregated and restricted to provide benefit under defined benefit plan. Asset includes, but is not limited to, stock, bond, other investment, earning from investment, and contribution by employer and employee."
       }
      }
     },
     "auth_ref": [
      "r523",
      "r534",
      "r536",
      "r537",
      "r1083",
      "r1084",
      "r1085"
     ]
    },
    "us-gaap_DefinedBenefitPlanForeignCurrencyExchangeRateChangesBenefitObligation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanForeignCurrencyExchangeRateChangesBenefitObligation",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInProjectedBenefitObligationsPBODetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Benefit Obligation, Foreign Currency Translation Gain (Loss)",
        "terseLabel": "Foreign currency exchange rate changes",
        "documentation": "Amount of foreign currency translation gain (loss) which (increases) decreases benefit obligation of defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r518"
     ]
    },
    "us-gaap_DefinedBenefitPlanFundedStatusOfPlan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanFundedStatusOfPlan",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfFundedStatusOfPlansDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfFundedStatusOfPlansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Funded (Unfunded) Status of Plan",
        "totalLabel": "Funded status at December 31",
        "documentation": "Amount of funded (unfunded) status of defined benefit plan, measured as difference between fair value of plan assets and benefit obligation. Includes, but is not limited to, overfunded (underfunded) status."
       }
      }
     },
     "auth_ref": [
      "r509",
      "r532",
      "r1085"
     ]
    },
    "us-gaap_DefinedBenefitPlanFundedStatusOfPlanAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanFundedStatusOfPlanAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfFundedStatusOfPlansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Funded (Unfunded) Status of Plan [Abstract]",
        "terseLabel": "Funded status of the plans:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanFundingStatusExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanFundingStatusExtensibleList",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Funding Status [Extensible Enumeration]",
        "documentation": "Indicates status of funding for defined benefit plan designed to provide retirement benefits."
       }
      }
     },
     "auth_ref": [
      "r1144",
      "r1224",
      "r1225",
      "r1226",
      "r1227",
      "r1228",
      "r1229",
      "r1230",
      "r1231",
      "r1232",
      "r1233",
      "r1234",
      "r1235",
      "r1236",
      "r1237",
      "r1238",
      "r1239",
      "r1240",
      "r1241",
      "r1242",
      "r1243",
      "r1244",
      "r1245",
      "r1246",
      "r1247",
      "r1248",
      "r1249",
      "r1250",
      "r1251",
      "r1252",
      "r1253",
      "r1254",
      "r1255",
      "r1256",
      "r1257",
      "r1258",
      "r1259",
      "r1260",
      "r1261",
      "r1262",
      "r1263",
      "r1264",
      "r1265",
      "r1266",
      "r1267",
      "r1268",
      "r1269",
      "r1270",
      "r1272",
      "r1273",
      "r1274",
      "r1275",
      "r1276",
      "r1277",
      "r1278",
      "r1279",
      "r1280",
      "r1281",
      "r1282",
      "r1283"
     ]
    },
    "ap_DefinedBenefitPlanGrossBenefitsPaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanGrossBenefitsPaid",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Benefits paid from plan assets and from sources other than plan assets.",
        "label": "Defined Benefit Plan Gross Benefits Paid",
        "negatedLabel": "Gross benefits paid"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanHealthCareCostTrendRateAssumedNextFiscalYear": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanHealthCareCostTrendRateAssumedNextFiscalYear",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Health Care Cost Trend Rate Assumed, Next Fiscal Year",
        "terseLabel": "Assumed health care cost trend rate for 2023",
        "documentation": "Assumed rate, for next fiscal year, based on annual change in cost of health care cost benefits used to measure expected cost of benefits covered by defined benefit postretirement plan. Factors include, but are not limited to, estimate of health care inflation, change in health care utilization or delivery pattern, technological advances, and change in health status of participant. Excludes factors for change in composition of plan population by age and dependency status."
       }
      }
     },
     "auth_ref": [
      "r560"
     ]
    },
    "us-gaap_DefinedBenefitPlanInterestCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanInterestCost",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail": {
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInProjectedBenefitObligationsPBODetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Interest Cost",
        "terseLabel": "Interest cost",
        "documentation": "Amount of cost recognized for passage of time related to defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r511",
      "r515",
      "r547",
      "r573",
      "r1085",
      "r1086"
     ]
    },
    "us-gaap_DefinedBenefitPlanInvestmentPoliciesAndStrategiesNarrativeDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanInvestmentPoliciesAndStrategiesNarrativeDescription",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan Assets, Investment Policy and Strategy, Description",
        "terseLabel": "Target allocation",
        "documentation": "Description of investment policy and strategy for defined benefit plan asset. Includes, but is not limited to, investment allocation decision and factor pertinent to understanding investment policy and strategy for plan asset. Factor includes, but is not limited to, investment goal, risk management practice, permitted and prohibited investment including use of derivative, diversification, and relationship between plan asset and obligation."
       }
      }
     },
     "auth_ref": [
      "r1245"
     ]
    },
    "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanNetPeriodicBenefitCost",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Net Periodic Benefit Cost (Credit)",
        "totalLabel": "Total net periodic pension and other postretirement benefit costs",
        "documentation": "Amount of net periodic benefit cost (credit) for defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r545",
      "r571",
      "r1085",
      "r1086"
     ]
    },
    "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostCreditAmortizationOfGainLossStatementOfIncomeOrComprehensiveIncomeExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanNetPeriodicBenefitCostCreditAmortizationOfGainLossStatementOfIncomeOrComprehensiveIncomeExtensibleList",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Net Periodic Benefit (Cost) Credit, Amortization of Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of income or comprehensive income that includes amortization of gain (loss) component of net periodic benefit (cost) credit for defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r545",
      "r571"
     ]
    },
    "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostCreditExcludingServiceCostStatementOfIncomeOrComprehensiveIncomeExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanNetPeriodicBenefitCostCreditExcludingServiceCostStatementOfIncomeOrComprehensiveIncomeExtensibleList",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Net Periodic Benefit Cost (Credit) Excluding Service Cost, Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of income or comprehensive income that includes components of net periodic benefit cost (credit), excluding service cost component, for defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r545",
      "r571"
     ]
    },
    "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostCreditInterestCostStatementOfIncomeOrComprehensiveIncomeExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanNetPeriodicBenefitCostCreditInterestCostStatementOfIncomeOrComprehensiveIncomeExtensibleList",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Net Periodic Benefit Cost (Credit), Interest Cost, Statement of Income or Comprehensive Income [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of income or comprehensive income that includes interest cost component of net periodic benefit cost (credit) for defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r545",
      "r571"
     ]
    },
    "ap_DefinedBenefitPlanOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanOther",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosurePensionAndOtherPostretirementBenefitsComponentsOfActuarialLossesGainsInProjectedBenefitObligationsDetail": {
       "parentTag": "us-gaap_DefinedBenefitPlanActuarialGainLoss",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosurePensionAndOtherPostretirementBenefitsComponentsOfActuarialLossesGainsInProjectedBenefitObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan, other.",
        "label": "Defined Benefit Plan Other",
        "negatedLabel": "Other"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanOtherAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanOtherAssetsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan other assets.",
        "label": "Defined Benefit Plan Other Assets [Member]",
        "terseLabel": "Other [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanOtherMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanOtherMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan other.",
        "label": "Defined Benefit Plan Other [Member]",
        "terseLabel": "Other, Other [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanPercentageOfInvestmentInDiversifiedPortfolio": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanPercentageOfInvestmentInDiversifiedPortfolio",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Target asset allocation.",
        "label": "Defined Benefit Plan Percentage Of Investment In Diversified Portfolio",
        "terseLabel": "Investments in diversified portfolio"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanPlanAmendments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanPlanAmendments",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInProjectedBenefitObligationsPBODetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Plan amendment",
        "label": "Defined Benefit Plan, Benefit Obligation, Increase (Decrease) for Plan Amendment",
        "documentation": "Amount of increase (decrease) in benefit obligation of defined benefit plan from change in terms of existing plan or initiation of new plan."
       }
      }
     },
     "auth_ref": [
      "r520"
     ]
    },
    "us-gaap_DefinedBenefitPlanPlanAssetsContributionsByPlanParticipant": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanPlanAssetsContributionsByPlanParticipant",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan Assets, Contributions by Plan Participant",
        "terseLabel": "Participant contributions",
        "documentation": "Amount of contributions received by defined benefit plan from participant which increases plan assets."
       }
      }
     },
     "auth_ref": [
      "r527"
     ]
    },
    "us-gaap_DefinedBenefitPlanPlanAssetsForeignCurrencyTranslationGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanPlanAssetsForeignCurrencyTranslationGainLoss",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan Assets, Foreign Currency Translation Gain (Loss)",
        "terseLabel": "Foreign currency exchange rate changes",
        "documentation": "Amount of foreign currency translation gain (loss) which increases (decreases) plan assets of defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r525"
     ]
    },
    "us-gaap_DefinedBenefitPlanPlanAssetsInvestmentWithinPlanAssetCategoryAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanPlanAssetsInvestmentWithinPlanAssetCategoryAmount",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan Assets, Investment within Plan Asset Category, Amount",
        "terseLabel": "Fair value of plan assets",
        "documentation": "Amount of investment within defined benefit plan asset category."
       }
      }
     },
     "auth_ref": [
      "r1246"
     ]
    },
    "us-gaap_DefinedBenefitPlanPlanAssetsLevel3ReconciliationDecreaseForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanPlanAssetsLevel3ReconciliationDecreaseForSale",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfChangesInFairValueOfLevel3PlanAssetsForUSAndForeignPensionBenefitsPlansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan Assets Level 3 Reconciliation, Decrease for Sale",
        "negatedLabel": "Transfers to other plan assets",
        "documentation": "Amount, measured using unobservable input, of decrease in plan asset of defined benefit plan from sale."
       }
      }
     },
     "auth_ref": [
      "r1144"
     ]
    },
    "us-gaap_DefinedBenefitPlanPlanAssetsLevel3ReconciliationIncreaseForPurchase": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanPlanAssetsLevel3ReconciliationIncreaseForPurchase",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfChangesInFairValueOfLevel3PlanAssetsForUSAndForeignPensionBenefitsPlansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan Assets Level 3 Reconciliation, Increase for Purchase",
        "documentation": "Amount, measured using unobservable input, of increase in plan asset of defined benefit plan from purchase."
       }
      }
     },
     "auth_ref": [
      "r1144"
     ]
    },
    "ap_DefinedBenefitPlanPlanAssetsLevel3ReconciliationOtherForeignCurrencyTranslationGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanPlanAssetsLevel3ReconciliationOtherForeignCurrencyTranslationGainLoss",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfChangesInFairValueOfLevel3PlanAssetsForUSAndForeignPensionBenefitsPlansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined Benefit plan, plan assets level 3 reconciliation, other, foreign currency translation gain (loss).",
        "label": "Defined Benefit Plan Plan Assets Level3 Reconciliation Other Foreign Currency Translation Gain Loss",
        "verboseLabel": "Other, primarily impact from changes in foreign currency exchange rates"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanPlanAssetsTargetAllocationPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanPlanAssetsTargetAllocationPercentage",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfTargetAssetAllocationsAndMajorAssetCategoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan Assets, Target Allocation, Percentage",
        "terseLabel": "Target Allocation",
        "documentation": "Percentage of target investment allocation to total plan assets. Includes, but is not limited to, percentage on weighted-average basis if more than one plan."
       }
      }
     },
     "auth_ref": [
      "r533",
      "r1085"
     ]
    },
    "us-gaap_DefinedBenefitPlanServiceCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanServiceCost",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail": {
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInProjectedBenefitObligationsPBODetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Service Cost",
        "terseLabel": "Service cost",
        "documentation": "Amount of cost for actuarial present value of benefits attributed to service rendered by employee for defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r513",
      "r546",
      "r572",
      "r1085",
      "r1086"
     ]
    },
    "us-gaap_DefinedBenefitPlanSpecialTerminationBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanSpecialTerminationBenefits",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInProjectedBenefitObligationsPBODetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Benefit Obligation, Special and Contractual Termination Benefits",
        "verboseLabel": "Special termination benefits",
        "documentation": "Amount of increase in benefit obligation for benefits provided to employees payable from defined benefit plan or payable upon retirement."
       }
      }
     },
     "auth_ref": [
      "r514"
     ]
    },
    "ap_DefinedBenefitPlanSpecialTerminationCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanSpecialTerminationCost",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail": {
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan, special termination cost.",
        "label": "Defined Benefit Plan Special Termination Cost",
        "terseLabel": "Special termination benefits"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlanThresholdPercentageToRecordActuarialGainLossInNetPeriodicBenefitCost": {
     "xbrltype": "percentItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlanThresholdPercentageToRecordActuarialGainLossInNetPeriodicBenefitCost",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The threshold for defined benefit plans in determining how actuarial gains or losses are amortized/included in net periodic pension and other postretirement costs.",
        "label": "Defined Benefit Plan Threshold Percentage To Record Actuarial Gain Loss In Net Periodic Benefit Cost",
        "terseLabel": "Defined benefit plan actuarial gain loss percentage"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedBenefitPlanUltimateHealthCareCostTrendRate1": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanUltimateHealthCareCostTrendRate1",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage decrease in other postretirement benefits in 2029",
        "label": "Defined Benefit Plan, Ultimate Health Care Cost Trend Rate",
        "documentation": "Ultimate trend rate for health care cost for defined benefit postretirement plan."
       }
      }
     },
     "auth_ref": [
      "r560"
     ]
    },
    "us-gaap_DefinedBenefitPlanWeightedAverageAssetAllocations": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanWeightedAverageAssetAllocations",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfTargetAssetAllocationsAndMajorAssetCategoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan Assets, Actual Allocation, Percentage",
        "terseLabel": "Percentage of Plan Assets",
        "documentation": "Percentage of actual investment allocation to total plan assets. Includes, but is not limited to, percentage on weighted-average basis if more than one plan."
       }
      }
     },
     "auth_ref": [
      "r1245"
     ]
    },
    "us-gaap_DefinedBenefitPlanYearHealthCareCostTrendRateReachesUltimateTrendRate": {
     "xbrltype": "gYearListItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedBenefitPlanYearHealthCareCostTrendRateReachesUltimateTrendRate",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Year Health Care Cost Trend Rate Reaches Ultimate Trend Rate",
        "terseLabel": "Year related to decrease in health care cost trend rate",
        "documentation": "Year ultimate health care cost trend rate is expected to be reached, in YYYY format."
       }
      }
     },
     "auth_ref": [
      "r560"
     ]
    },
    "ap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlansAndOtherPostretirementBenefitPlansLineItems",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined Benefit Plans and Other Postretirement Benefit Plans [Line Items]",
        "label": "Defined Benefit Plans And Other Postretirement Benefit Plans [Line Items]",
        "terseLabel": "Defined Benefit Plans And Other Postretirement Benefit Plans [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedBenefitPlansAndOtherPostretirementBenefitPlansTable",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined Benefit Plans and Other Postretirement Benefit Plans [Table]",
        "label": "Defined Benefit Plans And Other Postretirement Benefit Plans [Table]",
        "terseLabel": "Defined Benefit Plans And Other Postretirement Benefit Plans [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DefinedContributionPlanEmployerDiscretionaryContributionAmount",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Contribution Plan, Employer Discretionary Contribution Amount",
        "terseLabel": "Contributions to defined contribution pension plan",
        "documentation": "Amount of discretionary contributions made by an employer to a defined contribution plan."
       }
      }
     },
     "auth_ref": []
    },
    "ap_DefinedContributionPlanEstimatedFutureEmployerContributionsInNextFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DefinedContributionPlanEstimatedFutureEmployerContributionsInNextFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contributions to the defined contribution pension plan expected in 2024",
        "documentation": "Amount of contributions as of the end of the reporting period expected to be made in the following reporting period.",
        "label": "Defined Contribution Plan Estimated Future Employer Contributions In Next Fiscal Year"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_Depreciation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "Depreciation",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Depreciation",
        "terseLabel": "Depreciation expense",
        "totalLabel": "Depreciation, Total",
        "documentation": "The amount of expense recognized in the current period that reflects the allocation of the cost of tangible assets over the assets' useful lives. Includes production and non-production related depreciation."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r78"
     ]
    },
    "us-gaap_DepreciationAndAmortization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DepreciationAndAmortization",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossLineItemsAffectedOnConsolidatedStatementsOfOperationsForComponentsReclassifiedFromAccumulatedOtherComprehensiveLossDetail": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": -1.0,
       "order": 0.0
      },
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 1.0
      },
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations": {
       "parentTag": "us-gaap_CostsAndExpenses",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossLineItemsAffectedOnConsolidatedStatementsOfOperationsForComponentsReclassifiedFromAccumulatedOtherComprehensiveLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfChangeInFairValueReclassifiedOrExpectedToBeReclassifiedFromAccumulatedOtherComprehensiveLossToEarningsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Depreciation, Depletion and Amortization, Nonproduction",
        "terseLabel": "Depreciation and amortization",
        "negatedLabel": "Depreciation and amortization (foreign currency purchase contracts)",
        "totalLabel": "Depreciation, Depletion and Amortization, Nonproduction, Total",
        "documentation": "The current period expense charged against earnings on long-lived, physical assets not used in production, and which are not intended for resale, to allocate or recognize the cost of such assets over their useful lives; or to record the reduction in book value of an intangible asset over the benefit period of such asset; or to reflect consumption during the period of an asset that is not used in production."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r78"
     ]
    },
    "us-gaap_DerivativeAmountOfHedgedItem": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeAmountOfHedgedItem",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative, Amount of Hedged Item",
        "terseLabel": "Anticipated foreign-denominated sales hedge",
        "documentation": "Amount of hedged item in hedging relationship. Excludes hedged asset or liability."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeContractTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeContractTypeDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsLocationAndFairValueOfForeignCurrencySalesContractsRecordedOnConsolidatedBalanceSheetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfAmountRecognizedAsAndReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfChangeInFairValueReclassifiedOrExpectedToBeReclassifiedFromAccumulatedOtherComprehensiveLossToEarningsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Contract [Domain]",
        "terseLabel": "Derivative Contract",
        "documentation": "Financial instrument or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset."
       }
      }
     },
     "auth_ref": [
      "r885",
      "r888",
      "r902",
      "r903",
      "r904",
      "r905",
      "r906",
      "r907",
      "r908",
      "r911",
      "r912",
      "r913",
      "r914",
      "r929",
      "r930",
      "r931",
      "r932",
      "r935",
      "r936",
      "r937",
      "r938",
      "r996",
      "r997",
      "r998",
      "r999",
      "r1103",
      "r1105"
     ]
    },
    "us-gaap_DerivativeInstrumentRiskAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeInstrumentRiskAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsLocationAndFairValueOfForeignCurrencySalesContractsRecordedOnConsolidatedBalanceSheetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfAmountRecognizedAsAndReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfChangeInFairValueReclassifiedOrExpectedToBeReclassifiedFromAccumulatedOtherComprehensiveLossToEarningsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Instrument [Axis]",
        "terseLabel": "Derivative Instrument",
        "documentation": "Information by type of derivative contract."
       }
      }
     },
     "auth_ref": [
      "r117",
      "r119",
      "r121",
      "r122",
      "r885",
      "r888",
      "r902",
      "r903",
      "r904",
      "r905",
      "r906",
      "r907",
      "r908",
      "r911",
      "r912",
      "r913",
      "r914",
      "r929",
      "r930",
      "r931",
      "r932",
      "r935",
      "r936",
      "r937",
      "r938",
      "r996",
      "r997",
      "r998",
      "r999",
      "r1057",
      "r1103",
      "r1105"
     ]
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Instruments and Hedging Activities Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstruments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Instruments and Hedging Activities Disclosure [Text Block]",
        "terseLabel": "Derivative Instruments",
        "documentation": "The entire disclosure for derivative instruments and hedging activities including, but not limited to, risk management strategies, non-hedging derivative instruments, assets, liabilities, revenue and expenses, and methodologies and assumptions used in determining the amounts."
       }
      }
     },
     "auth_ref": [
      "r210",
      "r682",
      "r694"
     ]
    },
    "us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeInstrumentsGainLossByHedgingRelationshipAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hedging Relationship [Axis]",
        "terseLabel": "Hedging Relationship",
        "documentation": "Information by type of hedging relationship."
       }
      }
     },
     "auth_ref": [
      "r21",
      "r117",
      "r121"
     ]
    },
    "us-gaap_DerivativeInstrumentsInHedgesAssetsAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeInstrumentsInHedgesAssetsAtFairValue",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsLocationAndFairValueOfForeignCurrencySalesContractsRecordedOnConsolidatedBalanceSheetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Instruments in Hedges, Assets, at Fair Value",
        "terseLabel": "Fair value hedged item",
        "documentation": "Aggregate fair value of all derivative assets designated as hedging instruments. Includes instruments designated as cash flow hedges, fair value hedges, and hedges of net investments in foreign operations."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeInstrumentsInHedgesAtFairValueNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeInstrumentsInHedgesAtFairValueNet",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsLocationAndFairValueOfForeignCurrencySalesContractsRecordedOnConsolidatedBalanceSheetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Instruments in Hedges, at Fair Value, Net",
        "terseLabel": "Fair value hedged item",
        "totalLabel": "Derivative Instruments in Hedges, at Fair Value, Net, Total",
        "documentation": "Aggregate net fair value of all derivative instruments designated as hedging instruments. Includes instruments designated as cash flow hedges, fair value hedges, and hedges of net investments in foreign operations."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DerivativeLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeLineItems",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsLocationAndFairValueOfForeignCurrencySalesContractsRecordedOnConsolidatedBalanceSheetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfAmountRecognizedAsAndReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfChangeInFairValueReclassifiedOrExpectedToBeReclassifiedFromAccumulatedOtherComprehensiveLossToEarningsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative [Line Items]",
        "terseLabel": "Derivative [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r694"
     ]
    },
    "us-gaap_DerivativeNotionalAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeNotionalAmount",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative, Notional Amount",
        "terseLabel": "Anticipated purchases, hedged",
        "documentation": "Nominal or face amount used to calculate payment on derivative."
       }
      }
     },
     "auth_ref": [
      "r1326",
      "r1327"
     ]
    },
    "us-gaap_DerivativeTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativeTable",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsLocationAndFairValueOfForeignCurrencySalesContractsRecordedOnConsolidatedBalanceSheetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfAmountRecognizedAsAndReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfChangeInFairValueReclassifiedOrExpectedToBeReclassifiedFromAccumulatedOtherComprehensiveLossToEarningsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative [Table]",
        "terseLabel": "Derivative [Table]",
        "documentation": "Schedule that describes and identifies a derivative or group of derivatives on a disaggregated basis, such as for individual instruments, or small groups of similar instruments. May include a combination of the type of instrument, risks being hedged, notional amount, hedge designation, related hedged item, inception date, maturity date, or other relevant item."
       }
      }
     },
     "auth_ref": [
      "r21",
      "r109",
      "r110",
      "r112",
      "r114",
      "r118",
      "r121",
      "r123",
      "r125",
      "r127",
      "r694"
     ]
    },
    "us-gaap_DerivativesPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DerivativesPolicyTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivatives, Policy [Policy Text Block]",
        "terseLabel": "Derivative Instruments",
        "documentation": "Disclosure of accounting policy for its derivative instruments and hedging activities."
       }
      }
     },
     "auth_ref": [
      "r21",
      "r109",
      "r110",
      "r114",
      "r124",
      "r302"
     ]
    },
    "us-gaap_DevelopedTechnologyRightsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DevelopedTechnologyRightsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsScheduleOfIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Developed Technology Rights [Member]",
        "terseLabel": "Developed Technology [Member]",
        "documentation": "Rights to developed technology, which can include the right to develop, use, market, sell, or offer for sale products, compounds, or intellectual property."
       }
      }
     },
     "auth_ref": [
      "r207"
     ]
    },
    "us-gaap_DisaggregationOfRevenueLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DisaggregationOfRevenueLineItems",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueNetSalesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disaggregation of Revenue [Line Items]",
        "terseLabel": "Disaggregation Of Revenue [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r505",
      "r1076",
      "r1077",
      "r1078",
      "r1079",
      "r1080",
      "r1081",
      "r1082"
     ]
    },
    "us-gaap_DisaggregationOfRevenueTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DisaggregationOfRevenueTable",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueNetSalesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disaggregation of Revenue [Table]",
        "terseLabel": "Disaggregation Of Revenue [Table]",
        "documentation": "Disclosure of information about disaggregation of revenue into categories depicting how nature, amount, timing, and uncertainty of revenue and cash flows are affected by economic factor."
       }
      }
     },
     "auth_ref": [
      "r505",
      "r1076",
      "r1077",
      "r1078",
      "r1079",
      "r1080",
      "r1081",
      "r1082"
     ]
    },
    "us-gaap_DisaggregationOfRevenueTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DisaggregationOfRevenueTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disaggregation of Revenue [Table Text Block]",
        "terseLabel": "Net Sales",
        "documentation": "Tabular disclosure of disaggregation of revenue into categories depicting how nature, amount, timing, and uncertainty of revenue and cash flows are affected by economic factor."
       }
      }
     },
     "auth_ref": [
      "r1221"
     ]
    },
    "ap_DisclosureFairValueFairValueOfFinancialAssetsAndLiabilitiesDetailAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "DisclosureFairValueFairValueOfFinancialAssetsAndLiabilitiesDetailAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Fair Value Fair Value Of Financial Assets And Liabilities Detail [Abstract]",
        "terseLabel": "Disclosure - Fair Value - Fair Value of Financial Assets and Liabilities (Detail) [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement [Text Block]",
        "terseLabel": "Stock-Based Compensation",
        "documentation": "The entire disclosure for share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r592",
      "r595",
      "r626",
      "r627",
      "r629",
      "r1095"
     ]
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentAnnualReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentAnnualReport",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Annual Report",
        "terseLabel": "Document Annual Report",
        "documentation": "Boolean flag that is true only for a form used as an annual report."
       }
      }
     },
     "auth_ref": [
      "r1118",
      "r1119",
      "r1120"
     ]
    },
    "dei_DocumentFinStmtErrorCorrectionFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentFinStmtErrorCorrectionFlag",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Financial Statement Error Correction [Flag]",
        "label": "Document Financial Statement Error Correction [Flag]",
        "documentation": "Indicates whether any of the financial statement period in the filing include a restatement due to error correction."
       }
      }
     },
     "auth_ref": [
      "r1118",
      "r1119",
      "r1120",
      "r1122"
     ]
    },
    "dei_DocumentFiscalPeriodFocus": {
     "xbrltype": "fiscalPeriodItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentFiscalPeriodFocus",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Fiscal Period Focus",
        "terseLabel": "Document Fiscal Period Focus",
        "documentation": "Fiscal period values are FY, Q1, Q2, and Q3.  1st, 2nd and 3rd quarter 10-Q or 10-QT statements have value Q1, Q2, and Q3 respectively, with 10-K, 10-KT or other fiscal year statements having FY."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentFiscalYearFocus": {
     "xbrltype": "gYearItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentFiscalYearFocus",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Fiscal Year Focus",
        "terseLabel": "Document Fiscal Year Focus",
        "documentation": "This is focus fiscal year of the document report in YYYY format. For a 2006 annual report, which may also provide financial information from prior periods, fiscal 2006 should be given as the fiscal year focus. Example: 2006."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentInformationLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentInformationLineItems",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Information [Line Items]",
        "terseLabel": "Document Information [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentInformationTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentInformationTable",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Information [Table]",
        "terseLabel": "Document Information [Table]",
        "documentation": "Container to support the formal attachment of each official or unofficial, public or private document as part of a submission package."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentPeriodEndDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentPeriodEndDate",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Period End Date",
        "verboseLabel": "Document Period End Date",
        "documentation": "For the EDGAR submission types of Form 8-K: the date of the report, the date of the earliest event reported; for the EDGAR submission types of Form N-1A: the filing date; for all other submission types: the end of the reporting or transition period.  The format of the date is YYYY-MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentTransitionReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentTransitionReport",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Transition Report",
        "terseLabel": "Document Transition Report",
        "documentation": "Boolean flag that is true only for a form used as a transition report."
       }
      }
     },
     "auth_ref": [
      "r1121"
     ]
    },
    "dei_DocumentType": {
     "xbrltype": "submissionTypeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentType",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Type",
        "terseLabel": "Document Type",
        "documentation": "The type of document being provided (such as 10-K, 10-Q, 485BPOS, etc). The document type is limited to the same value as the supporting SEC submission type, or the word 'Other'."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentsIncorporatedByReferenceTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentsIncorporatedByReferenceTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Documents Incorporated by Reference [Text Block]",
        "terseLabel": "Documents Incorporated by Reference",
        "documentation": "Documents incorporated by reference."
       }
      }
     },
     "auth_ref": [
      "r1116"
     ]
    },
    "us-gaap_DomesticCorporateDebtSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DomesticCorporateDebtSecuritiesMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fixed Income Securities, U.S., Corporate Bonds [Member]",
        "label": "Debt Security, Corporate, US [Member]",
        "documentation": "Debt security issued by corporation domiciled in United States of America (US)."
       }
      }
     },
     "auth_ref": [
      "r1085",
      "r1192",
      "r1193",
      "r1246"
     ]
    },
    "us-gaap_DomesticCountryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DomesticCountryMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Domestic Tax Authority [Member]",
        "terseLabel": "Domestic Tax Authority [Member]",
        "documentation": "Designated tax department of the government that is entitled to levy and collect income taxes from the entity in its country of domicile."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_DomesticPlanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "DomesticPlanMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosurePensionAndOtherPostretirementBenefitsComponentsOfActuarialLossesGainsInProjectedBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssumptionsRegardingNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsDiscountRatesUsedToDetermineBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfAccumulatedOtherComprehensiveLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInProjectedBenefitObligationsPBODetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfFundedStatusOfPlansDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfAmountsRecognizedInConsolidatedBalanceSheetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfChangesInFairValueOfLevel3PlanAssetsForUSAndForeignPensionBenefitsPlansDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfTargetAssetAllocationsAndMajorAssetCategoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Domestic Plan [Member]",
        "terseLabel": "U.S. Defined Benefit Pension Plans [Member]",
        "documentation": "Location of employer sponsoring plan, designed to provide retirement benefits, determined as principal place of business. Includes, but is not limited to, defined benefit and defined contribution plans."
       }
      }
     },
     "auth_ref": [
      "r1284",
      "r1285",
      "r1287"
     ]
    },
    "us-gaap_EarningsPerShareBasic": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EarningsPerShareBasic",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share, Basic",
        "terseLabel": "Basic",
        "totalLabel": "Earnings Per Share, Basic, Total",
        "verboseLabel": "Net income per basic share attributable to Ampco-Pittsburgh common shareholders",
        "documentation": "The amount of net income (loss) for the period per each share of common stock or unit outstanding during the reporting period."
       }
      }
     },
     "auth_ref": [
      "r286",
      "r317",
      "r318",
      "r320",
      "r321",
      "r323",
      "r328",
      "r330",
      "r333",
      "r334",
      "r335",
      "r337",
      "r704",
      "r705",
      "r797",
      "r819",
      "r1060"
     ]
    },
    "us-gaap_EarningsPerShareDiluted": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EarningsPerShareDiluted",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share, Diluted",
        "terseLabel": "Diluted",
        "totalLabel": "Earnings Per Share, Diluted, Total",
        "verboseLabel": "Net income (loss) per diluted share attributable to Ampco-Pittsburgh common shareholders",
        "documentation": "The amount of net income (loss) for the period available to each share of common stock or common unit outstanding during the reporting period and to each share or unit that would have been outstanding assuming the issuance of common shares or units for all dilutive potential common shares or units outstanding during the reporting period."
       }
      }
     },
     "auth_ref": [
      "r286",
      "r317",
      "r318",
      "r320",
      "r321",
      "r323",
      "r330",
      "r333",
      "r334",
      "r335",
      "r337",
      "r704",
      "r705",
      "r797",
      "r819",
      "r1060"
     ]
    },
    "us-gaap_EarningsPerSharePolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EarningsPerSharePolicyTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share, Policy [Policy Text Block]",
        "terseLabel": "Earnings Per Common Share",
        "documentation": "Disclosure of accounting policy for computing basic and diluted earnings or loss per share for each class of common stock and participating security. Addresses all significant policy factors, including any antidilutive items that have been excluded from the computation and takes into account stock dividends, splits and reverse splits that occur after the balance sheet date of the latest reporting period but before the issuance of the financial statements."
       }
      }
     },
     "auth_ref": [
      "r57",
      "r58"
     ]
    },
    "ap_EffectFromLowerDefenseToIndemnityRatio": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "EffectFromLowerDefenseToIndemnityRatio",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationSummaryOfActivityInAsbestosInsuranceRecoveriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Effect from a lower defense-to-indemnity ratio",
        "negatedLabel": "Effect from a lower defense-to-indemnity ratio",
        "label": "Effect from Lower Defense-To-Indemnity Ratio",
        "documentation": "Effect from a lower defense-to-indemnity ratio."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effect of Exchange Rate on Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Continuing Operations",
        "terseLabel": "Effect of exchange rate changes on cash and cash equivalents",
        "documentation": "Amount of increase (decrease) from effect of exchange rate changes on cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; held in foreign currencies. Excludes amounts for disposal group and discontinued operations. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates."
       }
      }
     },
     "auth_ref": [
      "r725"
     ]
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Corporate income tax rate",
        "label": "Effective Income Tax Rate Reconciliation, Change in Enacted Tax Rate, Percent",
        "documentation": "Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to changes in the income tax rates."
       }
      }
     },
     "auth_ref": [
      "r665",
      "r1318"
     ]
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective Income Tax Rate Reconciliation, State and Local Income Taxes, Percent",
        "terseLabel": "State income tax rate",
        "documentation": "Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations applicable to state and local income tax expense (benefit), net of federal tax expense (benefit)."
       }
      }
     },
     "auth_ref": [
      "r1318",
      "r1325"
     ]
    },
    "ap_ElectricityUsageMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ElectricityUsageMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Electricity usage.",
        "label": "Electricity Usage [Member]",
        "terseLabel": "Electricity Usage [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EmployeeRelatedLiabilitiesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EmployeeRelatedLiabilitiesCurrent",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Employee-related Liabilities, Current",
        "terseLabel": "Accrued payrolls and employee benefits",
        "totalLabel": "Employee-related Liabilities, Current, Total",
        "documentation": "Total of the carrying values as of the balance sheet date of obligations incurred through that date and payable for obligations related to services received from employees, such as accrued salaries and bonuses, payroll taxes and fringe benefits. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer)."
       }
      }
     },
     "auth_ref": [
      "r34"
     ]
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Period for Recognition",
        "terseLabel": "Unrecognized stock-based compensation expense to be recognized in period, years",
        "documentation": "Weighted-average period over which cost not yet recognized is expected to be recognized for award under share-based payment arrangement, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days."
       }
      }
     },
     "auth_ref": [
      "r628"
     ]
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement, Nonvested Award, Excluding Option, Cost Not yet Recognized, Amount",
        "terseLabel": "Unrecognized stock-based compensation expense",
        "documentation": "Amount of cost to be recognized for nonvested award under share-based payment arrangement. Excludes share and unit options."
       }
      }
     },
     "auth_ref": [
      "r1314"
     ]
    },
    "us-gaap_EmployeeStockOptionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EmployeeStockOptionMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Employee Stock Option [Member]",
        "terseLabel": "Stock Option [Member]",
        "documentation": "Share-based payment arrangement granting right, subject to vesting and other restrictions, to purchase or sell certain number of shares at predetermined price for specified period of time."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressAddressLine1": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressAddressLine1",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Address Line One",
        "terseLabel": "Entity Address, Address Line One",
        "documentation": "Address Line 1 such as Attn, Building Name, Street Name"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressAddressLine2": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressAddressLine2",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Address Line Two",
        "terseLabel": "Entity Address, Address Line Two",
        "documentation": "Address Line 2 such as Street or Suite number"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressCityOrTown": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressCityOrTown",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, City or Town",
        "terseLabel": "Entity Address, City or Town",
        "documentation": "Name of the City or Town"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressPostalZipCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressPostalZipCode",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Postal Zip Code",
        "terseLabel": "Entity Address, Postal Zip Code",
        "documentation": "Code for the postal or zip code"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressStateOrProvince": {
     "xbrltype": "stateOrProvinceItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressStateOrProvince",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, State or Province",
        "terseLabel": "Entity Address, State or Province",
        "documentation": "Name of the state or province."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCentralIndexKey": {
     "xbrltype": "centralIndexKeyItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityCentralIndexKey",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Central Index Key",
        "terseLabel": "Entity Central Index Key",
        "documentation": "A unique 10-digit SEC-issued value to identify entities that have filed disclosures with the SEC. It is commonly abbreviated as CIK."
       }
      }
     },
     "auth_ref": [
      "r1115"
     ]
    },
    "dei_EntityCommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityCommonStockSharesOutstanding",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Common Stock, Shares Outstanding",
        "terseLabel": "Entity Common Stock, Shares Outstanding",
        "documentation": "Indicate number of shares or other units outstanding of each of registrant's classes of capital or common stock or other ownership interests, if and as stated on cover of related periodic report. Where multiple classes or units exist define each class/interest by adding class of stock items such as Common Class A [Member], Common Class B [Member] or Partnership Interest [Member] onto the Instrument [Domain] of the Entity Listings, Instrument."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCurrentReportingStatus": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityCurrentReportingStatus",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Current Reporting Status",
        "terseLabel": "Entity Current Reporting Status",
        "documentation": "Indicate 'Yes' or 'No' whether registrants (1) have filed all reports required to be filed by Section 13 or 15(d) of the Securities Exchange Act of 1934 during the preceding 12 months (or for such shorter period that registrants were required to file such reports), and (2) have been subject to such filing requirements for the past 90 days. This information should be based on the registrant's current or most recent filing containing the related disclosure."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInvestmentsInJointVenturesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity [Domain]",
        "terseLabel": "Entity",
        "documentation": "All the names of the entities being reported upon in a document. Any legal structure used to conduct activities or to hold assets. Some examples of such structures are corporations, partnerships, limited liability companies, grantor trusts, and other trusts. This item does not include business and geographical segments which are included in the geographical or business segments domains."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityEmergingGrowthCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityEmergingGrowthCompany",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Emerging Growth Company",
        "terseLabel": "Entity Emerging Growth Company",
        "documentation": "Indicate if registrant meets the emerging growth company criteria."
       }
      }
     },
     "auth_ref": [
      "r1115"
     ]
    },
    "dei_EntityFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityFileNumber",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Securities Act File Number",
        "terseLabel": "Entity File Number",
        "documentation": "Commission file number. The field allows up to 17 characters. The prefix may contain 1-3 digits, the sequence number may contain 1-8 digits, the optional suffix may contain 1-4 characters, and the fields are separated with a hyphen."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityFilerCategory": {
     "xbrltype": "filerCategoryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityFilerCategory",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Filer Category",
        "terseLabel": "Entity Filer Category",
        "documentation": "Indicate whether the registrant is one of the following: Large Accelerated Filer, Accelerated Filer, Non-accelerated Filer. Definitions of these categories are stated in Rule 12b-2 of the Exchange Act. This information should be based on the registrant's current or most recent filing containing the related disclosure."
       }
      }
     },
     "auth_ref": [
      "r1115"
     ]
    },
    "dei_EntityIncorporationStateCountryCode": {
     "xbrltype": "edgarStateCountryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityIncorporationStateCountryCode",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Incorporation, State or Country Code",
        "terseLabel": "Entity Incorporation, State or Country Code",
        "documentation": "Two-character EDGAR code representing the state or country of incorporation."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityInteractiveDataCurrent": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityInteractiveDataCurrent",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Interactive Data Current",
        "terseLabel": "Entity Interactive Data Current",
        "documentation": "Boolean flag that is true when the registrant has submitted electronically every Interactive Data File required to be submitted pursuant to Rule 405 of Regulation S-T during the preceding 12 months (or for such shorter period that the registrant was required to submit such files)."
       }
      }
     },
     "auth_ref": [
      "r1123"
     ]
    },
    "dei_EntityPublicFloat": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityPublicFloat",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Public Float",
        "terseLabel": "Entity Public Float",
        "documentation": "The aggregate market value of the voting and non-voting common equity held by non-affiliates computed by reference to the price at which the common equity was last sold, or the average bid and asked price of such common equity, as of the last business day of the registrant's most recently completed second fiscal quarter."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityRegistrantName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityRegistrantName",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Registrant Name",
        "terseLabel": "Entity Registrant Name",
        "documentation": "The exact name of the entity filing the report as specified in its charter, which is required by forms filed with the SEC."
       }
      }
     },
     "auth_ref": [
      "r1115"
     ]
    },
    "dei_EntityShellCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityShellCompany",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Shell Company",
        "terseLabel": "Entity Shell Company",
        "documentation": "Boolean flag that is true when the registrant is a shell company as defined in Rule 12b-2 of the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r1115"
     ]
    },
    "dei_EntitySmallBusiness": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntitySmallBusiness",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Small Business",
        "terseLabel": "Entity Small Business",
        "documentation": "Indicates that the company is a Smaller Reporting Company (SRC)."
       }
      }
     },
     "auth_ref": [
      "r1115"
     ]
    },
    "dei_EntityTaxIdentificationNumber": {
     "xbrltype": "employerIdItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityTaxIdentificationNumber",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Tax Identification Number",
        "terseLabel": "Entity Tax Identification Number",
        "documentation": "The Tax Identification Number (TIN), also known as an Employer Identification Number (EIN), is a unique 9-digit value assigned by the IRS."
       }
      }
     },
     "auth_ref": [
      "r1115"
     ]
    },
    "dei_EntityVoluntaryFilers": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityVoluntaryFilers",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Voluntary Filers",
        "terseLabel": "Entity Voluntary Filers",
        "documentation": "Indicate 'Yes' or 'No' if the registrant is not required to file reports pursuant to Section 13 or Section 15(d) of the Act."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityWellKnownSeasonedIssuer": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityWellKnownSeasonedIssuer",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Well-known Seasoned Issuer",
        "terseLabel": "Entity Well-known Seasoned Issuer",
        "documentation": "Indicate 'Yes' or 'No' if the registrant is a well-known seasoned issuer, as defined in Rule 405 of the Securities Act. Is used on Form Type: 10-K, 10-Q, 8-K, 20-F, 6-K, 10-K/A, 10-Q/A, 20-F/A, 6-K/A, N-CSR, N-Q, N-1A."
       }
      }
     },
     "auth_ref": [
      "r1124"
     ]
    },
    "us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EntityWideInformationRevenueFromExternalCustomerLineItems",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue from External Customer [Line Items]",
        "terseLabel": "Revenue from External Customer [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "ap_EntityWideRevenueNumberOfMajorCustomers": {
     "xbrltype": "integerItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "EntityWideRevenueNumberOfMajorCustomers",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of customers who represented at least 10% of a segment's sales.",
        "label": "Entity Wide Revenue Number Of Major Customers",
        "terseLabel": "Number of customers accounted for net sales"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EnvironmentalLossContingencyDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EnvironmentalLossContingencyDisclosureTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEnvironmentalMatters"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Environmental Loss Contingency Disclosure [Text Block]",
        "terseLabel": "Environmental Matters",
        "documentation": "The entire disclosure for environmental loss contingencies, such as presence of hazardous waste, relevant information from reports issued by regulators, and estimated costs to achieve compliance with regulatory requirements. This element may be used for all of an entity's disclosures about environmental loss contingencies."
       }
      }
     },
     "auth_ref": [
      "r417",
      "r1066",
      "r1067",
      "r1068",
      "r1127",
      "r1128",
      "r1129",
      "r1131",
      "r1132",
      "r1133",
      "r1134",
      "r1135",
      "r1136",
      "r1137"
     ]
    },
    "us-gaap_EnvironmentalLossContingencyStatementOfFinancialPositionExtensibleEnumeration": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EnvironmentalLossContingencyStatementOfFinancialPositionExtensibleEnumeration",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEnvironmentalMattersAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Environmental Loss Contingency, Statement of Financial Position [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of financial position that includes accrual for environmental loss contingency."
       }
      }
     },
     "auth_ref": [
      "r425",
      "r1067"
     ]
    },
    "us-gaap_EnvironmentalRemediationObligationsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EnvironmentalRemediationObligationsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Environmental Remediation Obligations [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_EquipmentFinancingFacilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "EquipmentFinancingFacilityMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureDebtScheduleOfDebtDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equipment Financing Facility [Member]",
        "documentation": "Equipment financing facility.",
        "terseLabel": "Equipment Financing Facility [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquityAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EquityComponentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquityComponentDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossNetChangesAndEndingBalancesForVariousComponentsOfOtherComprehensiveLossAndAccumulatedOtherCompr",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossLineItemsAffectedOnConsolidatedStatementsOfOperationsForComponentsReclassifiedFromAccumulatedOtherComprehensiveLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfChangeInFairValueReclassifiedOrExpectedToBeReclassifiedFromAccumulatedOtherComprehensiveLossToEarningsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquityParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Component [Domain]",
        "terseLabel": "Equity Component",
        "documentation": "Components of equity are the parts of the total Equity balance including that which is allocated to common, preferred, treasury stock, retained earnings, etc."
       }
      }
     },
     "auth_ref": [
      "r20",
      "r241",
      "r278",
      "r279",
      "r280",
      "r309",
      "r310",
      "r311",
      "r314",
      "r324",
      "r326",
      "r338",
      "r390",
      "r396",
      "r484",
      "r630",
      "r631",
      "r632",
      "r658",
      "r659",
      "r686",
      "r688",
      "r689",
      "r690",
      "r691",
      "r693",
      "r703",
      "r727",
      "r729",
      "r730",
      "r731",
      "r732",
      "r733",
      "r759",
      "r841",
      "r842",
      "r843",
      "r866",
      "r942"
     ]
    },
    "ap_EquityInterestInNumberOfJointVentures": {
     "xbrltype": "integerItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "EquityInterestInNumberOfJointVentures",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDescriptionOfBusinessAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity interest in number of joint ventures.",
        "label": "Equity Interest In Number Of Joint Ventures",
        "terseLabel": "Equity interest in number of joint venture"
       }
      }
     },
     "auth_ref": []
    },
    "srt_EquityMethodInvesteeNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "EquityMethodInvesteeNameDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfBalancesOutstandingWithAtrsMinorityShareholderAndItsAffiliatesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfLoanActivityDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInvestmentsInJointVenturesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Name [Domain]",
        "terseLabel": "Investment, Name"
       }
      }
     },
     "auth_ref": [
      "r380",
      "r381",
      "r383"
     ]
    },
    "us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquityMethodInvestmentNonconsolidatedInvesteeAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfSalesToAndPurchasesFromAtrsMinorityShareholderAndItsAffiliatesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Method Investment, Nonconsolidated Investee [Axis]",
        "documentation": "Information by nonconsolidated equity method investee. Excludes information consolidated by reporting entity."
       }
      }
     },
     "auth_ref": [
      "r245",
      "r295",
      "r384",
      "r713"
     ]
    },
    "us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquityMethodInvestmentNonconsolidatedInvesteeDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfSalesToAndPurchasesFromAtrsMinorityShareholderAndItsAffiliatesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Method Investment, Nonconsolidated Investee [Domain]",
        "documentation": "Nonconsolidated equity method investee. Excludes information consolidated by reporting entity."
       }
      }
     },
     "auth_ref": [
      "r245",
      "r295",
      "r384",
      "r713"
     ]
    },
    "us-gaap_EquityMethodInvestmentOwnershipPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquityMethodInvestmentOwnershipPercentage",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Method Investment, Ownership Percentage",
        "terseLabel": "Investments in joint ventures",
        "documentation": "The percentage of ownership of common stock or equity participation in the investee accounted for under the equity method of accounting."
       }
      }
     },
     "auth_ref": [
      "r380"
     ]
    },
    "us-gaap_EquityMethodInvestmentsAndJointVenturesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquityMethodInvestmentsAndJointVenturesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Method Investments and Joint Ventures [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EquityMethodInvestmentsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquityMethodInvestmentsDisclosureTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInvestmentsInJointVentures"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Method Investments and Joint Ventures Disclosure [Text Block]",
        "terseLabel": "Investments in Joint Ventures",
        "documentation": "The entire disclosure for equity method investments and joint ventures. Equity method investments are investments that give the investor the ability to exercise significant influence over the operating and financial policies of an investee. Joint ventures are entities owned and operated by a small group of businesses as a separate and specific business or project for the mutual benefit of the members of the group."
       }
      }
     },
     "auth_ref": [
      "r236",
      "r382",
      "r385",
      "r1126"
     ]
    },
    "ap_EquityRightsOfferingTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "EquityRightsOfferingTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOffering"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure of equity rights offering.",
        "label": "Equity Rights Offering [Text Block]",
        "terseLabel": "Equity Rights Offering"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EquitySecuritiesByInvestmentObjectiveAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquitySecuritiesByInvestmentObjectiveAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Objective [Axis]",
        "documentation": "Information by investment objective."
       }
      }
     },
     "auth_ref": [
      "r533",
      "r1085"
     ]
    },
    "us-gaap_EquitySecuritiesInvestmentObjectiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EquitySecuritiesInvestmentObjectiveMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Objective [Domain]",
        "documentation": "Objective of investment."
       }
      }
     },
     "auth_ref": [
      "r533",
      "r1085"
     ]
    },
    "ap_EstimatedCostOnUpgradingExistingEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "EstimatedCostOnUpgradingExistingEquipment",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Estimated cost on upgrading existing equipment.",
        "label": "Estimated Cost On Upgrading Existing Equipment",
        "terseLabel": "Estimated cost on upgrading existing equipment"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EstimatedInsuranceRecoveries": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "EstimatedInsuranceRecoveries",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationSummaryOfActivityInAsbestosInsuranceRecoveriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Insurance receivable - asbestos",
        "label": "Estimated Insurance Recoveries",
        "periodEndLabel": "Insurance receivable \u2013 asbestos, end of the year",
        "periodStartLabel": "Insurance receivable \u2013 asbestos, beginning of the year",
        "documentation": "Carrying amount as of the balance sheet date of amounts expected to be recovered under the terms of insurance contracts."
       }
      }
     },
     "auth_ref": [
      "r1160"
     ]
    },
    "ap_EuropeanCreditFacilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "EuropeanCreditFacilityMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "European credit facility.",
        "label": "European Credit Facility [Member]",
        "terseLabel": "European Credit Facility [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_ExciseTaxRateOnCorporateShareRepurchases": {
     "xbrltype": "percentItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ExciseTaxRateOnCorporateShareRepurchases",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Excise tax rate on corporate share repurchases.",
        "label": "Excise Tax Rate On Corporate Share Repurchases",
        "terseLabel": "Excise tax rate on corporate share repurchases"
       }
      }
     },
     "auth_ref": []
    },
    "ap_ExciseTaxRateOnCorporateShareRepurchasesAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ExciseTaxRateOnCorporateShareRepurchasesAmount",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Excise tax rate on corporate share repurchases amount.",
        "label": "Excise Tax Rate On Corporate Share Repurchases Amount",
        "terseLabel": "Excise tax rate on corporate share repurchases amount"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureFairValueFairValueOfFinancialAssetsAndLiabilitiesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]",
        "terseLabel": "Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r708",
      "r709",
      "r710"
     ]
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureFairValueFairValueOfFinancialAssetsAndLiabilitiesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Recurring and Nonrecurring [Table]",
        "terseLabel": "Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Table]",
        "documentation": "Disclosure of information about asset and liability measured at fair value on recurring and nonrecurring basis."
       }
      }
     },
     "auth_ref": [
      "r708",
      "r709",
      "r710"
     ]
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsLocationAndFairValueOfForeignCurrencySalesContractsRecordedOnConsolidatedBalanceSheetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureFairValueFairValueOfFinancialAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Asset Class [Domain]",
        "terseLabel": "Asset Class",
        "documentation": "Class of asset."
       }
      }
     },
     "auth_ref": [
      "r22"
     ]
    },
    "us-gaap_FairValueByAssetClassAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueByAssetClassAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsLocationAndFairValueOfForeignCurrencySalesContractsRecordedOnConsolidatedBalanceSheetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureFairValueFairValueOfFinancialAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Asset Class [Axis]",
        "terseLabel": "Asset Class",
        "documentation": "Information by class of asset."
       }
      }
     },
     "auth_ref": [
      "r129",
      "r130"
     ]
    },
    "us-gaap_FairValueByFairValueHierarchyLevelAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueByFairValueHierarchyLevelAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureFairValueFairValueOfFinancialAssetsAndLiabilitiesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfChangesInFairValueOfLevel3PlanAssetsForUSAndForeignPensionBenefitsPlansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Hierarchy and NAV [Axis]",
        "terseLabel": "Fair Value Hierarchy and NAV",
        "documentation": "Information by level within fair value hierarchy and fair value measured at net asset value per share as practical expedient."
       }
      }
     },
     "auth_ref": [
      "r460",
      "r536",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r709",
      "r769",
      "r770",
      "r771",
      "r1070",
      "r1071",
      "r1083",
      "r1084",
      "r1085"
     ]
    },
    "us-gaap_FairValueDisclosuresAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueDisclosuresAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Disclosures [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueDisclosuresTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueDisclosuresTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureFairValue"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Disclosures [Text Block]",
        "terseLabel": "Fair Value",
        "documentation": "The entire disclosure for the fair value of financial instruments (as defined), including financial assets and financial liabilities (collectively, as defined), and the measurements of those instruments as well as disclosures related to the fair value of non-financial assets and liabilities. Such disclosures about the financial instruments, assets, and liabilities would include: (1) the fair value of the required items together with their carrying amounts (as appropriate); (2) for items for which it is not practicable to estimate fair value, disclosure would include: (a) information pertinent to estimating fair value (including, carrying amount, effective interest rate, and maturity, and (b) the reasons why it is not practicable to estimate fair value; (3) significant concentrations of credit risk including: (a) information about the activity, region, or economic characteristics identifying a concentration, (b) the maximum amount of loss the entity is exposed to based on the gross fair value of the related item, (c) policy for requiring collateral or other security and information as to accessing such collateral or security, and (d) the nature and brief description of such collateral or security; (4) quantitative information about market risks and how such risks are managed; (5) for items measured on both a recurring and nonrecurring basis information regarding the inputs used to develop the fair value measurement; and (6) for items presented in the financial statement for which fair value measurement is elected: (a) information necessary to understand the reasons for the election, (b) discussion of the effect of fair value changes on earnings, (c) a description of [similar groups] items for which the election is made and the relation thereof to the balance sheet, the aggregate carrying value of items included in the balance sheet that are not eligible for the election; (7) all other required (as defined) and desired information."
       }
      }
     },
     "auth_ref": [
      "r707"
     ]
    },
    "us-gaap_FairValueHedgeAssetsAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueHedgeAssetsAtFairValue",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsLocationAndFairValueOfForeignCurrencySalesContractsRecordedOnConsolidatedBalanceSheetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Hedge Assets",
        "terseLabel": "Fair value hedge contracts",
        "documentation": "Fair value of all derivative assets designated as fair value hedging instruments."
       }
      }
     },
     "auth_ref": [
      "r119"
     ]
    },
    "us-gaap_FairValueHedgeLiabilitiesAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueHedgeLiabilitiesAtFairValue",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsLocationAndFairValueOfForeignCurrencySalesContractsRecordedOnConsolidatedBalanceSheetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Hedge Liabilities",
        "terseLabel": "Fair value hedge contracts",
        "documentation": "Fair value of all derivative liabilities designated as fair value hedging instruments."
       }
      }
     },
     "auth_ref": [
      "r119"
     ]
    },
    "us-gaap_FairValueInputsLevel1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueInputsLevel1Member",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureFairValueFairValueOfFinancialAssetsAndLiabilitiesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Inputs, Level 1 [Member]",
        "terseLabel": "Quoted Prices in Active Markets for Identical Inputs (Level 1) [Member]",
        "documentation": "Quoted prices in active markets for identical assets or liabilities that the reporting entity can access at the measurement date."
       }
      }
     },
     "auth_ref": [
      "r460",
      "r536",
      "r541",
      "r709",
      "r769",
      "r1083",
      "r1084",
      "r1085"
     ]
    },
    "us-gaap_FairValueInputsLevel2Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueInputsLevel2Member",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureFairValueFairValueOfFinancialAssetsAndLiabilitiesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Inputs, Level 2 [Member]",
        "terseLabel": "Significant Other Observable Inputs (Level 2) [Member]",
        "documentation": "Inputs other than quoted prices included within level 1 that are observable for an asset or liability, either directly or indirectly, including, but not limited to, quoted prices for similar assets or liabilities in active markets, or quoted prices for identical or similar assets or liabilities in inactive markets."
       }
      }
     },
     "auth_ref": [
      "r460",
      "r536",
      "r541",
      "r709",
      "r770",
      "r1070",
      "r1071",
      "r1083",
      "r1084",
      "r1085"
     ]
    },
    "us-gaap_FairValueInputsLevel3Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueInputsLevel3Member",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureFairValueFairValueOfFinancialAssetsAndLiabilitiesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfChangesInFairValueOfLevel3PlanAssetsForUSAndForeignPensionBenefitsPlansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Inputs, Level 3 [Member]",
        "terseLabel": "Significant Unobservable Inputs (Level 3) [Member]",
        "documentation": "Unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing."
       }
      }
     },
     "auth_ref": [
      "r460",
      "r536",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r709",
      "r771",
      "r1070",
      "r1071",
      "r1083",
      "r1084",
      "r1085"
     ]
    },
    "us-gaap_FairValueMeasurementPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementPolicyPolicyTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Measurement, Policy [Policy Text Block]",
        "terseLabel": "Fair Value",
        "documentation": "Disclosure of accounting policy for fair value measurements of financial and non-financial assets, liabilities and instruments classified in shareholders' equity. Disclosures include, but are not limited to, how an entity that manages a group of financial assets and liabilities on the basis of its net exposure measures the fair value of those assets and liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FairValueMeasurementsFairValueHierarchyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FairValueMeasurementsFairValueHierarchyDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureFairValueFairValueOfFinancialAssetsAndLiabilitiesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfChangesInFairValueOfLevel3PlanAssetsForUSAndForeignPensionBenefitsPlansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Hierarchy and NAV [Domain]",
        "terseLabel": "Fair Value Hierarchy and NAV",
        "documentation": "Categories used to prioritize the inputs to valuation techniques to measure fair value."
       }
      }
     },
     "auth_ref": [
      "r460",
      "r536",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r769",
      "r770",
      "r771",
      "r1070",
      "r1071",
      "r1083",
      "r1084",
      "r1085"
     ]
    },
    "us-gaap_FinanceLeaseLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseLiability",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureDebtScheduleOfDebtDetail": {
       "parentTag": "us-gaap_LongTermDebtAndCapitalLeaseObligationsIncludingCurrentMaturities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureDebtScheduleOfDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance Lease, Liability",
        "verboseLabel": "Finance leases",
        "totalLabel": "Finance Lease, Liability, Total",
        "documentation": "Present value of lessee's discounted obligation for lease payments from finance lease."
       }
      }
     },
     "auth_ref": [
      "r744",
      "r754"
     ]
    },
    "us-gaap_FinanceLeaseLiabilityStatementOfFinancialPositionExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseLiabilityStatementOfFinancialPositionExtensibleList",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureDebtScheduleOfDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance Lease, Liability, Statement of Financial Position [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of financial position that includes finance lease liability."
       }
      }
     },
     "auth_ref": [
      "r745"
     ]
    },
    "us-gaap_FinanceLeaseRightOfUseAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseRightOfUseAsset",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance Lease, Right-of-Use Asset, after Accumulated Amortization",
        "terseLabel": "Finance lease assets gross value",
        "totalLabel": "Finance Lease, Right-of-Use Asset, after Accumulated Amortization, Total",
        "documentation": "Amount, after accumulated amortization, of right-of-use asset from finance lease."
       }
      }
     },
     "auth_ref": [
      "r743"
     ]
    },
    "us-gaap_FinanceLeaseRightOfUseAssetAccumulatedAmortization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseRightOfUseAssetAccumulatedAmortization",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance Lease, Right-of-Use Asset, Accumulated Amortization",
        "terseLabel": "Finance lease, lease related accumulated amortization",
        "documentation": "Amount of accumulated amortization of right-of-use asset from finance lease."
       }
      }
     },
     "auth_ref": [
      "r1141",
      "r1150"
     ]
    },
    "us-gaap_FinanceLeaseRightOfUseAssetAmortization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseRightOfUseAssetAmortization",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance Lease, Right-of-Use Asset, Amortization",
        "terseLabel": "Depreciation on assets under finance leases",
        "documentation": "Amount of amortization expense attributable to right-of-use asset from finance lease."
       }
      }
     },
     "auth_ref": [
      "r746",
      "r749",
      "r1099"
     ]
    },
    "us-gaap_FinanceLeaseRightOfUseAssetStatementOfFinancialPositionExtensibleList": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseRightOfUseAssetStatementOfFinancialPositionExtensibleList",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance Lease, Right-of-Use Asset, Statement of Financial Position [Extensible Enumeration]",
        "documentation": "Indicates line item in statement of financial position that includes finance lease right-of-use asset."
       }
      }
     },
     "auth_ref": [
      "r745"
     ]
    },
    "us-gaap_FinanceLeaseWeightedAverageRemainingLeaseTerm1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FinanceLeaseWeightedAverageRemainingLeaseTerm1",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance Lease, Weighted Average Remaining Lease Term",
        "terseLabel": "Weighted average remaining lease term",
        "documentation": "Weighted average remaining lease term for finance lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days."
       }
      }
     },
     "auth_ref": [
      "r752",
      "r1099"
     ]
    },
    "ap_FiniteAndIndefiniteLivedIntangibleAssetsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "FiniteAndIndefiniteLivedIntangibleAssetsLineItems",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsScheduleOfIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Finite and indefinite lived intangible assets.",
        "label": "Finite And Indefinite Lived Intangible Assets [Line Items]",
        "terseLabel": "Finite and Indefinite Lived Intangible Assets [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_FiniteAndIndefiniteLivedIntangibleAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "FiniteAndIndefiniteLivedIntangibleAssetsTable",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsScheduleOfIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Finite And Indefinite Lived Intangible Assets [Table]",
        "label": "Finite And Indefinite Lived Intangible Assets [Table]",
        "terseLabel": "Finite And Indefinite Lived Intangible Assets [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetsAccumulatedAmortization",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsScheduleOfIntangibleAssetsDetail": {
       "parentTag": "us-gaap_IntangibleAssetsNetExcludingGoodwill",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsScheduleOfIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finite-Lived Intangible Assets, Accumulated Amortization",
        "negatedLabel": "Accumulated amortization",
        "documentation": "Accumulated amount of amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life."
       }
      }
     },
     "auth_ref": [
      "r254",
      "r413"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finite-Lived Intangible Asset, Expected Amortization, after Year Five",
        "terseLabel": "Identifiable intangible assets expected amortization, thereafter",
        "documentation": "Amount of amortization for asset, excluding financial asset and goodwill, lacking physical substance with finite life expected to be recognized after fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Identifiable intangible assets expected amortization in 2024",
        "label": "Finite-Lived Intangible Asset, Expected Amortization, Year One",
        "documentation": "Amount of amortization for assets, excluding financial assets and goodwill, lacking physical substance with finite life expected to be recognized in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r186"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseYearFive",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Identifiable intangible assets expected amortization in 2028",
        "label": "Finite-Lived Intangible Asset, Expected Amortization, Year Five",
        "documentation": "Amount of amortization for assets, excluding financial assets and goodwill, lacking physical substance with finite life expected to be recognized in fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r186"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseYearFour",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Identifiable intangible assets expected amortization in 2027",
        "label": "Finite-Lived Intangible Asset, Expected Amortization, Year Four",
        "documentation": "Amount of amortization for assets, excluding financial assets and goodwill, lacking physical substance with finite life expected to be recognized in fourth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r186"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseYearThree",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Identifiable intangible assets expected amortization in 2026",
        "label": "Finite-Lived Intangible Asset, Expected Amortization, Year Three",
        "documentation": "Amount of amortization for assets, excluding financial assets and goodwill, lacking physical substance with finite life expected to be recognized in third fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r186"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Identifiable intangible assets expected amortization in 2025",
        "label": "Finite-Lived Intangible Asset, Expected Amortization, Year Two",
        "documentation": "Amount of amortization for assets, excluding financial assets and goodwill, lacking physical substance with finite life expected to be recognized in second fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r186"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetsByMajorClassAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsScheduleOfIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finite-Lived Intangible Assets by Major Class [Axis]",
        "terseLabel": "Finite-Lived Intangible Assets by Major Class",
        "documentation": "Information by major type or class of finite-lived intangible assets."
       }
      }
     },
     "auth_ref": [
      "r411",
      "r412",
      "r413",
      "r414",
      "r776",
      "r780"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetsGross",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsScheduleOfIntangibleAssetsDetail": {
       "parentTag": "us-gaap_IntangibleAssetsGrossExcludingGoodwill",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsScheduleOfIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finite-Lived Intangible Assets, Gross",
        "terseLabel": "Intangible assets, gross",
        "totalLabel": "Finite-Lived Intangible Assets, Gross, Total",
        "documentation": "Amount before amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life."
       }
      }
     },
     "auth_ref": [
      "r185",
      "r780"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetsMajorClassNameDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsScheduleOfIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finite-Lived Intangible Assets, Major Class Name [Domain]",
        "terseLabel": "Finite-Lived Intangible Assets, Major Class Name",
        "documentation": "The major class of finite-lived intangible asset (for example, patents, trademarks, copyrights, etc.) A major class is composed of intangible assets that can be grouped together because they are similar, either by their nature or by their use in the operations of a company."
       }
      }
     },
     "auth_ref": [
      "r73",
      "r75"
     ]
    },
    "us-gaap_FiniteLivedIntangibleAssetsTranslationAndPurchaseAccountingAdjustments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FiniteLivedIntangibleAssetsTranslationAndPurchaseAccountingAdjustments",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finite-Lived Intangible Assets, Translation and Purchase Accounting Adjustments",
        "terseLabel": "Other, primarily impact from changes in foreign currency exchange rates",
        "documentation": "Amount of increase (decrease) to assets, excluding financial assets and goodwill, lacking physical substance with a finite life for foreign currency translation adjustments and purchase accounting adjustments."
       }
      }
     },
     "auth_ref": []
    },
    "ap_FixedIncomeSecuritiesAgencyBondsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "FixedIncomeSecuritiesAgencyBondsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fixed income securities agency bonds.",
        "label": "Fixed Income Securities Agency Bonds [Member]",
        "terseLabel": "Fixed Income Securities, Agency Bonds [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_FixedIncomeSecuritiesCorporateBondsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "FixedIncomeSecuritiesCorporateBondsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fixed Income Securities, International, Corporate Bonds",
        "documentation": "Fixed income securities corporate bonds.",
        "label": "Fixed Income Securities Corporate Bonds [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_FixedIncomeSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "FixedIncomeSecuritiesMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfTargetAssetAllocationsAndMajorAssetCategoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fixed Income Securities [Member]",
        "terseLabel": "Fixed Income Securities [Member]",
        "documentation": "Investment that provides a return in the form of fixed periodic payments and eventual return of principal at maturity."
       }
      }
     },
     "auth_ref": [
      "r1085",
      "r1103",
      "r1104",
      "r1246"
     ]
    },
    "ap_FixedIncomeSecuritiesMutualFundsAndETFsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "FixedIncomeSecuritiesMutualFundsAndETFsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fixed income securities mutual funds and ETFs.",
        "label": "Fixed Income Securities Mutual Funds And E T Fs [Member]",
        "terseLabel": "Fixed Income Securities, Mutual Funds and ETFs [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_FixedIncomeSecuritiesTreasuryBondsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "FixedIncomeSecuritiesTreasuryBondsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fixed income securities treasury bonds.",
        "label": "Fixed Income Securities Treasury Bonds [Member]",
        "terseLabel": "Fixed Income Securities, Treasury Bonds [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ForeignCorporateDebtSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ForeignCorporateDebtSecuritiesMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fixed Income Securities, International, Corporate Bonds [Member]",
        "label": "Debt Security, Corporate, Non-US [Member]",
        "documentation": "Debt security issued by corporation not domiciled in United States of America (US)."
       }
      }
     },
     "auth_ref": [
      "r1192",
      "r1193",
      "r1246"
     ]
    },
    "us-gaap_ForeignCountryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ForeignCountryMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign Tax Authority [Member]",
        "terseLabel": "Foreign Tax Authority [Member]",
        "documentation": "Designated tax departments of governments entitled to levy and collect income taxes from the entity outside the entity's country of domicile."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ForeignCurrencyCashFlowHedgeGainLossToBeReclassifiedDuringNext12Months": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ForeignCurrencyCashFlowHedgeGainLossToBeReclassifiedDuringNext12Months",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfChangeInFairValueReclassifiedOrExpectedToBeReclassifiedFromAccumulatedOtherComprehensiveLossToEarningsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Depreciation and amortization",
        "label": "Foreign Currency Cash Flow Hedge Gain (Loss) to be Reclassified During Next 12 Months",
        "terseLabel": "Estimated to be Reclassified in the Next 12 Months",
        "documentation": "The estimated net amount of unrealized gains or losses on foreign currency cash flow hedges at the reporting date expected to be reclassified to earnings within the next 12 months."
       }
      }
     },
     "auth_ref": [
      "r128"
     ]
    },
    "ap_ForeignCurrencyPurchasesContractsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ForeignCurrencyPurchasesContractsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfAmountRecognizedAsAndReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfChangeInFairValueReclassifiedOrExpectedToBeReclassifiedFromAccumulatedOtherComprehensiveLossToEarningsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Foreign currency purchases contracts.",
        "label": "Foreign Currency Purchases Contracts [Member]",
        "terseLabel": "Foreign Currency Purchase Contracts [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_ForeignCurrencySalesContractsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ForeignCurrencySalesContractsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsLocationAndFairValueOfForeignCurrencySalesContractsRecordedOnConsolidatedBalanceSheetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Foreign currency sales contracts.",
        "label": "Foreign Currency Sales Contracts [Member]",
        "terseLabel": "Foreign Currency Sales Contracts [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ForeignCurrencyTransactionGainLossBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ForeignCurrencyTransactionGainLossBeforeTax",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "(Losses) gains on foreign exchange transactions included in other (expense) income",
        "label": "Gain (Loss), Foreign Currency Transaction, before Tax",
        "totalLabel": "Foreign Currency Transaction Gain (Loss), before Tax, Total",
        "documentation": "Amount, before tax, of realized and unrealized gain (loss) from foreign currency transaction."
       }
      }
     },
     "auth_ref": [
      "r719",
      "r721",
      "r723",
      "r724",
      "r939"
     ]
    },
    "us-gaap_ForeignCurrencyTransactionsAndTranslationsPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ForeignCurrencyTransactionsAndTranslationsPolicyTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign Currency Transactions and Translations Policy [Policy Text Block]",
        "terseLabel": "Foreign Currency Translation",
        "documentation": "Disclosure of accounting policy for (1) transactions denominated in a currency other than the reporting enterprise's functional currency, (2) translating foreign currency financial statements that are incorporated into the financial statements of the reporting enterprise by consolidation, combination, or the equity method of accounting, and (3) remeasurement of the financial statements of a foreign reporting enterprise in a hyperinflationary economy."
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ap_ForeignExchangeRelatedPartyDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ForeignExchangeRelatedPartyDebt",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfLoanActivityDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign exchange",
        "label": "Foreign exchange related party debt",
        "documentation": "Foreign exchange related party debt."
       }
      }
     },
     "auth_ref": []
    },
    "ap_ForeignMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ForeignMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueNetSalesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Foreign.",
        "label": "Foreign [Member]",
        "verboseLabel": "Foreign [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ForeignPlanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ForeignPlanMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosurePensionAndOtherPostretirementBenefitsComponentsOfActuarialLossesGainsInProjectedBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssumptionsRegardingNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsDiscountRatesUsedToDetermineBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfAccumulatedOtherComprehensiveLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInProjectedBenefitObligationsPBODetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfFundedStatusOfPlansDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfAmountsRecognizedInConsolidatedBalanceSheetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfChangesInFairValueOfLevel3PlanAssetsForUSAndForeignPensionBenefitsPlansDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfTargetAssetAllocationsAndMajorAssetCategoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign Defined Benefits Pension Plans [Member]",
        "verboseLabel": "Foreign Defined Benefits Pension Plans [Member]",
        "label": "Foreign Pension Benefits [Member]",
        "documentation": "Location of employer sponsoring plan, designed to provide retirement benefits, not determined as principal place of business. Includes, but is not limited to, defined benefit and defined contribution plans."
       }
      }
     },
     "auth_ref": [
      "r1284",
      "r1285",
      "r1287"
     ]
    },
    "ap_ForgedAndCastEngineeredProductsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ForgedAndCastEngineeredProductsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueNetSalesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Forged and cast engineered products.",
        "label": "Forged And Cast Engineered Products [Member]",
        "terseLabel": "Forged and Cast Engineered Products [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_ForgedAndCastMillRollsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ForgedAndCastMillRollsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueNetSalesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Forged and cast mill rolls.",
        "label": "Forged And Cast Mill Rolls [Member]",
        "terseLabel": "Forged and Cast Mill Rolls [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_ForgedEngineeredProductsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ForgedEngineeredProductsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueNetSalesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Forged engineered products.",
        "label": "Forged Engineered Products [Member]",
        "terseLabel": "Forged Engineered Products [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_FuturesContractsCopperAndAluminumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "FuturesContractsCopperAndAluminumMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfAmountRecognizedAsAndReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfChangeInFairValueReclassifiedOrExpectedToBeReclassifiedFromAccumulatedOtherComprehensiveLossToEarningsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Future Contracts - Copper and Aluminum [Member]",
        "documentation": "Futures contracts copper and aluminum.",
        "label": "Futures Contracts Copper And Aluminum [Member]",
        "terseLabel": "Futures Contracts - Copper and Aluminum [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GainLossOnDispositionOfAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GainLossOnDispositionOfAssets",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations": {
       "parentTag": "us-gaap_CostsAndExpenses",
       "weight": -1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "(Gain) loss on disposal of assets",
        "label": "Gain (Loss) on Disposition of Property Plant Equipment, Excluding Oil and Gas Property and Timber Property",
        "documentation": "Amount of gain (loss) on sale or disposal of property, plant and equipment assets, excluding oil and gas property and timber property."
       }
      }
     },
     "auth_ref": [
      "r1170",
      "r1199",
      "r1200"
     ]
    },
    "us-gaap_GeographicConcentrationRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GeographicConcentrationRiskMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Geographic Concentration Risk [Member]",
        "terseLabel": "Individual Foreign Countries [Member]",
        "documentation": "Reflects the percentage that a specified dollar value on the balance sheet or income statement in the period from one or more specified geographic areas is to a corresponding consolidated, segment, or product line amount. Risk is the materially adverse effects of economic decline or antagonistic political actions resulting in loss of assets, sales volume, labor supply, or source of materials and supplies in a US state or a specified country, continent, or region such as EMEA (Europe, Middle East, Africa)."
       }
      }
     },
     "auth_ref": [
      "r61",
      "r1032"
     ]
    },
    "ap_GongchangMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "GongchangMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInvestmentsInJointVenturesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gongchang.",
        "label": "Gongchang [Member]",
        "terseLabel": "Gongchang [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GoodwillAndIntangibleAssetsDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GoodwillAndIntangibleAssetsDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Goodwill and Intangible Assets Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_GoodwillAndIntangibleAssetsIntangibleAssetsPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GoodwillAndIntangibleAssetsIntangibleAssetsPolicy",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Goodwill and Intangible Assets, Intangible Assets, Policy [Policy Text Block]",
        "terseLabel": "Intangible Assets",
        "documentation": "Disclosure of accounting policy for intangible assets. This accounting policy may address both intangible assets subject to amortization and those that are not. The following also may be disclosed: (1) a description of intangible assets (2) the estimated useful lives of those assets (3) the amortization method used (4) how the entity assesses and measures impairment of such assets (5) how future cash flows are estimated (6) how the fair values of such asset are determined."
       }
      }
     },
     "auth_ref": [
      "r15"
     ]
    },
    "us-gaap_GuaranteedBenefitLiabilityNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GuaranteedBenefitLiabilityNet",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Guaranteed Benefit Liability, Net",
        "terseLabel": "Surety bonds issued to guarantee obligations",
        "documentation": "Sum of the amount of expected guaranteed benefits in excess of the projected account balances for minimum guaranteed benefit contracts, as of the balance sheet date, net of reinsurance recoverables, for all guaranteed benefit types."
       }
      }
     },
     "auth_ref": [
      "r16",
      "r226"
     ]
    },
    "us-gaap_GuaranteesIndemnificationsAndWarrantiesPolicies": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "GuaranteesIndemnificationsAndWarrantiesPolicies",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Guarantees, Indemnifications and Warranties Policies [Policy Text Block]",
        "terseLabel": "Product Warranty",
        "documentation": "Disclosure of accounting policy for guarantees, indemnifications and product warranties, and methodologies used in determining the amount of such liabilities."
       }
      }
     },
     "auth_ref": [
      "r430"
     ]
    },
    "ap_HeatExchangeCoilsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "HeatExchangeCoilsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueNetSalesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Heat exchange coils.",
        "label": "Heat Exchange Coils [Member]",
        "terseLabel": "Heat Exchange Coils [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_HedgingRelationshipDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HedgingRelationshipDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hedging Relationship [Domain]",
        "terseLabel": "Hedging Relationship",
        "documentation": "Nature or intent of a hedge."
       }
      }
     },
     "auth_ref": [
      "r21"
     ]
    },
    "us-gaap_HerMajestysRevenueAndCustomsHMRCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "HerMajestysRevenueAndCustomsHMRCMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Her Majesty's Revenue and Customs (HMRC) [Member]",
        "terseLabel": "U.K",
        "documentation": "Designated tax department of the government of United Kingdom."
       }
      }
     },
     "auth_ref": []
    },
    "ap_HighQualityFixedIncomeInvestmentsMaturity": {
     "xbrltype": "durationItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "HighQualityFixedIncomeInvestmentsMaturity",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "High quality fixed income investments maturity.",
        "label": "High Quality Fixed Income Investments Maturity",
        "terseLabel": "High-quality fixed-income investments maturity"
       }
      }
     },
     "auth_ref": []
    },
    "dei_IcfrAuditorAttestationFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "IcfrAuditorAttestationFlag",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ICFR Auditor Attestation Flag",
        "terseLabel": "ICFR Auditor Attestation Flag"
       }
      }
     },
     "auth_ref": [
      "r1118",
      "r1119",
      "r1120"
     ]
    },
    "us-gaap_ImpairmentOfIntangibleAssetsFinitelived": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ImpairmentOfIntangibleAssetsFinitelived",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impairment of Intangible Assets, Finite-Lived",
        "terseLabel": "Impairment of intangible assets",
        "documentation": "The amount of impairment loss recognized in the period resulting from the write-down of the carrying amount of a finite-lived intangible asset to fair value."
       }
      }
     },
     "auth_ref": [
      "r1170",
      "r1198"
     ]
    },
    "us-gaap_ImpairmentOfLongLivedAssetsHeldForUse": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ImpairmentOfLongLivedAssetsHeldForUse",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Impairment, Long-Lived Asset, Held-for-Use, Total",
        "label": "Impairment, Long-Lived Asset, Held-for-Use",
        "terseLabel": "Impairment of long lived assets",
        "documentation": "The aggregate amount of write-downs for impairments recognized during the period for long lived assets held for use (including those held for disposal by means other than sale)."
       }
      }
     },
     "auth_ref": [
      "r11",
      "r77",
      "r190"
     ]
    },
    "ap_IncentivePlanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "IncentivePlanMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Incentive Plan [Member]",
        "label": "Incentive Plan [Member]",
        "terseLabel": "Incentive Plan [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_IncomeLossFromContinuedOperationsNetOfTaxPerBasicAndDilutedShareAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "IncomeLossFromContinuedOperationsNetOfTaxPerBasicAndDilutedShareAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net (loss) income per share attributable to Ampco-Pittsburgh common shareholders:",
        "documentation": "Income (loss) from continued operations net of tax per basic and diluted share.",
        "label": "Income Loss From Continued Operations Net Of Tax Per Basic And Diluted Share [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesLossIncomeFromOperationsBeforeIncomeTaxesDetail": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesLossIncomeFromOperationsBeforeIncomeTaxesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income (Loss) from Continuing Operations before Income Taxes, Domestic",
        "terseLabel": "Domestic",
        "documentation": "The portion of earnings or loss from continuing operations before income taxes that is attributable to domestic operations."
       }
      }
     },
     "auth_ref": [
      "r296",
      "r664"
     ]
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations": {
       "parentTag": "us-gaap_ProfitLoss",
       "weight": 1.0,
       "order": 0.0
      },
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossLineItemsAffectedOnConsolidatedStatementsOfOperationsForComponentsReclassifiedFromAccumulatedOtherComprehensiveLossDetail": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0,
       "order": 0.0
      },
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesLossIncomeFromOperationsBeforeIncomeTaxesDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesLossIncomeFromOperationsBeforeIncomeTaxesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossLineItemsAffectedOnConsolidatedStatementsOfOperationsForComponentsReclassifiedFromAccumulatedOtherComprehensiveLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "(Loss) income before income taxes",
        "terseLabel": "(Loss) Income Before Income Taxes",
        "label": "Income (Loss) from Continuing Operations before Income Taxes, Noncontrolling Interest",
        "verboseLabel": "Income (loss) before income taxes",
        "documentation": "Amount of income (loss) from continuing operations, including income (loss) from equity method investments, before deduction of income tax expense (benefit), and income (loss) attributable to noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r0",
      "r166",
      "r219",
      "r345",
      "r359",
      "r365",
      "r368",
      "r798",
      "r811",
      "r1062"
     ]
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesLossIncomeFromOperationsBeforeIncomeTaxesDetail": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesLossIncomeFromOperationsBeforeIncomeTaxesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income (Loss) from Continuing Operations before Income Taxes, Foreign",
        "terseLabel": "Foreign",
        "documentation": "The portion of earnings or loss from continuing operations before income taxes that is attributable to foreign operations, which is defined as Income or Loss generated from operations located outside the entity's country of domicile."
       }
      }
     },
     "auth_ref": [
      "r296",
      "r664"
     ]
    },
    "us-gaap_IncomeStatementAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeStatementAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Statement [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeTaxAuthorityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxAuthorityAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Authority [Axis]",
        "terseLabel": "Income Tax Authority",
        "documentation": "Information by tax jurisdiction."
       }
      }
     },
     "auth_ref": [
      "r17"
     ]
    },
    "us-gaap_IncomeTaxAuthorityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxAuthorityDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Authority [Domain]",
        "terseLabel": "Income Tax Authority",
        "documentation": "Agency, division or body classification that levies income taxes, examines tax returns for compliance, or grants exemptions from or makes other decisions pertaining to income taxes."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeTaxAuthorityNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxAuthorityNameAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Authority, Name [Axis]",
        "documentation": "Information by name of taxing authority."
       }
      }
     },
     "auth_ref": [
      "r17"
     ]
    },
    "us-gaap_IncomeTaxAuthorityNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxAuthorityNameDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Authority, Name [Domain]",
        "documentation": "Named agency, division or body that levies income taxes, examines tax returns for compliance, or grants exemptions from or makes other decisions pertaining to income taxes."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeTaxContingencyLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxContingencyLineItems",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Contingency [Line Items]",
        "terseLabel": "Income Tax Contingency [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeTaxContingencyTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxContingencyTable",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Contingency [Table]",
        "terseLabel": "Income Tax Contingency [Table]",
        "documentation": "Disclosure of information about tax positions taken in the tax returns filed or to be filed for which it is more likely than not that the tax position will not be sustained upon examination by taxing authorities and other income tax contingencies. Includes, but is not limited to, interest and penalties, reconciliation of unrecognized tax benefits, unrecognized tax benefits that would affect the effective tax rate, tax years that remain subject to examination by tax jurisdictions, and information about positions for which it is reasonably possible that amounts unrecognized will significantly change within 12 months."
       }
      }
     },
     "auth_ref": [
      "r18",
      "r100",
      "r204",
      "r205"
     ]
    },
    "us-gaap_IncomeTaxDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeTaxDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxDisclosureTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxes"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Disclosure [Text Block]",
        "terseLabel": "Income Taxes",
        "documentation": "The entire disclosure for income taxes. Disclosures may include net deferred tax liability or asset recognized in an enterprise's statement of financial position, net change during the year in the total valuation allowance, approximate tax effect of each type of temporary difference and carryforward that gives rise to a significant portion of deferred tax liabilities and deferred tax assets, utilization of a tax carryback, and tax uncertainties information."
       }
      }
     },
     "auth_ref": [
      "r297",
      "r640",
      "r646",
      "r647",
      "r653",
      "r660",
      "r666",
      "r669",
      "r670",
      "r860"
     ]
    },
    "us-gaap_IncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxExpenseBenefit",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations": {
       "parentTag": "us-gaap_ProfitLoss",
       "weight": -1.0,
       "order": 1.0
      },
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossLineItemsAffectedOnConsolidatedStatementsOfOperationsForComponentsReclassifiedFromAccumulatedOtherComprehensiveLossDetail": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": -1.0,
       "order": 2.0
      },
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesSummaryOfIncomeTaxProvisionDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDifferenceBetweenStatutoryUSFederalIncomeTaxAndCorporationSEffectiveIncomeTaxDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesSummaryOfIncomeTaxProvisionDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossLineItemsAffectedOnConsolidatedStatementsOfOperationsForComponentsReclassifiedFromAccumulatedOtherComprehensiveLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDifferenceBetweenStatutoryUSFederalIncomeTaxAndCorporationSEffectiveIncomeTaxDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Income tax provision",
        "totalLabel": "Total income tax (benefit) provision",
        "negatedLabel": "Income tax benefit (provision)",
        "label": "Income Tax Expense (Benefit)",
        "documentation": "Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations."
       }
      }
     },
     "auth_ref": [
      "r227",
      "r234",
      "r325",
      "r326",
      "r353",
      "r644",
      "r661",
      "r820"
     ]
    },
    "ap_IncomeTaxExpenseBenefitCarrybackOfNetOperatingLossesCaresAct": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "IncomeTaxExpenseBenefitCarrybackOfNetOperatingLossesCaresAct",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDifferenceBetweenStatutoryUSFederalIncomeTaxAndCorporationSEffectiveIncomeTaxDetail": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDifferenceBetweenStatutoryUSFederalIncomeTaxAndCorporationSEffectiveIncomeTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Income tax expense benefit carryback of net operating losses, cares act.",
        "label": "Income Tax Expense Benefit Carryback Of Net Operating Losses Cares Act",
        "terseLabel": "Net operating loss carryback",
        "negatedLabel": "Income tax expense benefit carryback of net operating losses, CARES Act"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeTaxPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxPolicyTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax, Policy [Policy Text Block]",
        "terseLabel": "Income Taxes",
        "documentation": "Disclosure of accounting policy for income taxes, which may include its accounting policies for recognizing and measuring deferred tax assets and liabilities and related valuation allowances, recognizing investment tax credits, operating loss carryforwards, tax credit carryforwards, and other carryforwards, methodologies for determining its effective income tax rate and the characterization of interest and penalties in the financial statements."
       }
      }
     },
     "auth_ref": [
      "r277",
      "r642",
      "r643",
      "r647",
      "r648",
      "r652",
      "r654",
      "r854"
     ]
    },
    "ap_IncomeTaxReconciliationAdjustmentsToNetOperatingLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "IncomeTaxReconciliationAdjustmentsToNetOperatingLosses",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDifferenceBetweenStatutoryUSFederalIncomeTaxAndCorporationSEffectiveIncomeTaxDetail": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDifferenceBetweenStatutoryUSFederalIncomeTaxAndCorporationSEffectiveIncomeTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Income tax reconciliation adjustments to net operating losses.",
        "label": "Income Tax Reconciliation Adjustments To Net Operating Losses",
        "terseLabel": "Adjustments to net operating losses"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesSummaryOfIncomeTaxProvisionDetail": {
       "parentTag": "us-gaap_DeferredIncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 3.0
      },
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDifferenceBetweenStatutoryUSFederalIncomeTaxAndCorporationSEffectiveIncomeTaxDetail": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureIncomeTaxesSummaryOfIncomeTaxProvisionDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDifferenceBetweenStatutoryUSFederalIncomeTaxAndCorporationSEffectiveIncomeTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase (decrease) in valuation allowance",
        "label": "Effective Income Tax Rate Reconciliation, Change in Deferred Tax Assets Valuation Allowance, Amount",
        "documentation": "Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to increase (decrease) in the valuation allowance for deferred tax assets."
       }
      }
     },
     "auth_ref": [
      "r1318"
     ]
    },
    "us-gaap_IncomeTaxReconciliationChangeInEnactedTaxRate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxReconciliationChangeInEnactedTaxRate",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDifferenceBetweenStatutoryUSFederalIncomeTaxAndCorporationSEffectiveIncomeTaxDetail": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDifferenceBetweenStatutoryUSFederalIncomeTaxAndCorporationSEffectiveIncomeTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective Income Tax Rate Reconciliation, Change in Enacted Tax Rate, Amount",
        "terseLabel": "Rate change",
        "documentation": "Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations, attributable to increase (decrease) in the income tax rates."
       }
      }
     },
     "auth_ref": [
      "r641",
      "r645"
     ]
    },
    "us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxReconciliationForeignIncomeTaxRateDifferential",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDifferenceBetweenStatutoryUSFederalIncomeTaxAndCorporationSEffectiveIncomeTaxDetail": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDifferenceBetweenStatutoryUSFederalIncomeTaxAndCorporationSEffectiveIncomeTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective Income Tax Rate Reconciliation, Foreign Income Tax Rate Differential, Amount",
        "terseLabel": "Tax differential on non-U.S. earnings",
        "documentation": "Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to foreign income tax expense (benefit)."
       }
      }
     },
     "auth_ref": [
      "r1318"
     ]
    },
    "us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDifferenceBetweenStatutoryUSFederalIncomeTaxAndCorporationSEffectiveIncomeTaxDetail": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDifferenceBetweenStatutoryUSFederalIncomeTaxAndCorporationSEffectiveIncomeTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective Income Tax Rate Reconciliation at Federal Statutory Income Tax Rate, Amount",
        "terseLabel": "Computed at statutory rate",
        "documentation": "The amount of income tax expense or benefit for the period computed by applying the domestic federal statutory tax rates to pretax income from continuing operations."
       }
      }
     },
     "auth_ref": [
      "r645"
     ]
    },
    "us-gaap_IncomeTaxReconciliationNondeductibleExpenseMealsAndEntertainment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxReconciliationNondeductibleExpenseMealsAndEntertainment",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDifferenceBetweenStatutoryUSFederalIncomeTaxAndCorporationSEffectiveIncomeTaxDetail": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDifferenceBetweenStatutoryUSFederalIncomeTaxAndCorporationSEffectiveIncomeTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective Income Tax Rate Reconciliation, Nondeductible Expense, Meals and Entertainment, Amount",
        "terseLabel": "Meals and entertainment",
        "documentation": "Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to nondeductible meals and entertainment expense."
       }
      }
     },
     "auth_ref": [
      "r1318"
     ]
    },
    "us-gaap_IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDifferenceBetweenStatutoryUSFederalIncomeTaxAndCorporationSEffectiveIncomeTaxDetail": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDifferenceBetweenStatutoryUSFederalIncomeTaxAndCorporationSEffectiveIncomeTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective Income Tax Rate Reconciliation, Nondeductible Expense, Share-Based Payment Arrangement, Amount",
        "terseLabel": "Stock-based compensation",
        "documentation": "Amount of reported income tax expense (benefit) in excess of (less than) expected income tax expense (benefit) computed by applying domestic federal statutory income tax rate to pretax income (loss) from continuing operation, attributable to nondeductible expense for award under share-based payment arrangement. Includes, but is not limited to, expense determined to be nondeductible upon grant or after for award under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r1318"
     ]
    },
    "us-gaap_IncomeTaxReconciliationOtherAdjustments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxReconciliationOtherAdjustments",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDifferenceBetweenStatutoryUSFederalIncomeTaxAndCorporationSEffectiveIncomeTaxDetail": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDifferenceBetweenStatutoryUSFederalIncomeTaxAndCorporationSEffectiveIncomeTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective Income Tax Rate Reconciliation, Other Adjustments, Amount",
        "terseLabel": "Other \u2013 net",
        "documentation": "Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to other adjustments."
       }
      }
     },
     "auth_ref": [
      "r1318"
     ]
    },
    "us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxReconciliationStateAndLocalIncomeTaxes",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDifferenceBetweenStatutoryUSFederalIncomeTaxAndCorporationSEffectiveIncomeTaxDetail": {
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesDifferenceBetweenStatutoryUSFederalIncomeTaxAndCorporationSEffectiveIncomeTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective Income Tax Rate Reconciliation, State and Local Income Taxes, Amount",
        "terseLabel": "State income taxes",
        "documentation": "Amount of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to state and local income tax expense (benefit)."
       }
      }
     },
     "auth_ref": [
      "r1318"
     ]
    },
    "us-gaap_IncomeTaxesPaidNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncomeTaxesPaidNet",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Income Taxes Paid, Net, Total",
        "label": "Income Taxes Paid, Net",
        "terseLabel": "Income tax payments (net of refunds)",
        "documentation": "The amount of cash paid during the current period to foreign, federal, state, and local authorities as taxes on income, net of any cash received during the current period as refunds for the overpayment of taxes."
       }
      }
     },
     "auth_ref": [
      "r53"
     ]
    },
    "us-gaap_IncreaseDecreaseInAccountsPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInAccountsPayable",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Accounts Payable",
        "terseLabel": "Accounts payable",
        "totalLabel": "Increase (Decrease) in Accounts Payable, Total",
        "documentation": "The increase (decrease) during the reporting period in the aggregate amount of liabilities incurred (and for which invoices have typically been received) and payable to vendors for goods and services received that are used in an entity's business."
       }
      }
     },
     "auth_ref": [
      "r10"
     ]
    },
    "ap_IncreaseDecreaseInAsbestosLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "IncreaseDecreaseInAsbestosLiability",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Increase decrease in asbestos liability.",
        "label": "Increase Decrease In Asbestos Liability",
        "terseLabel": "Asbestos liability"
       }
      }
     },
     "auth_ref": []
    },
    "ap_IncreaseDecreaseInCorporateIncomeTaxExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "IncreaseDecreaseInCorporateIncomeTaxExpense",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase in corporate income tax expense",
        "label": "Increase Decrease In Corporate Income Tax Expense",
        "documentation": "Increase (decrease) in corporate income tax expense."
       }
      }
     },
     "auth_ref": []
    },
    "ap_IncreaseDecreaseInDeferredIncomeTaxAssetsAndLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "IncreaseDecreaseInDeferredIncomeTaxAssetsAndLiabilities",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Decrease in deferred income tax assets and liabilities",
        "label": "Increase Decrease In Deferred Income Tax Assets And Liabilities",
        "documentation": "Increase (decrease) in deferred income tax assets and liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInEmployeeRelatedLiabilities",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Employee Related Liabilities",
        "terseLabel": "Accrued payrolls and employee benefits",
        "totalLabel": "Increase (Decrease) in Employee Related Liabilities, Total",
        "documentation": "The increase (decrease) during the reporting period in the aggregate amount of obligations related to services received from employees, such as accrued salaries and bonuses, payroll taxes and fringe benefits."
       }
      }
     },
     "auth_ref": [
      "r10"
     ]
    },
    "ap_IncreaseDecreaseInEstimatedCoverage": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "IncreaseDecreaseInEstimatedCoverage",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationSummaryOfActivityInAsbestosInsuranceRecoveriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Estimated additional insurance recoveries expected to be available to satisfy related liabilities.",
        "label": "Increase Decrease In Estimated Coverage",
        "terseLabel": "Change in estimated coverage",
        "verboseLabel": "Increase (decrease) in estimated insurance receivable"
       }
      }
     },
     "auth_ref": []
    },
    "ap_IncreaseDecreaseInInsuranceReceivableAsbestos": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "IncreaseDecreaseInInsuranceReceivableAsbestos",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Increase (decrease) in insurance receivable, asbestos.",
        "label": "Increase Decrease In Insurance Receivable Asbestos",
        "negatedLabel": "Insurance receivable \u2013 asbestos"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncreaseDecreaseInInventories": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInInventories",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Inventories",
        "negatedLabel": "Inventories",
        "totalLabel": "Increase (Decrease) in Inventories, Total",
        "terseLabel": "Inventories",
        "documentation": "The increase (decrease) during the reporting period in the aggregate value of all inventory held by the reporting entity, associated with underlying transactions that are classified as operating activities."
       }
      }
     },
     "auth_ref": [
      "r10"
     ]
    },
    "us-gaap_IncreaseDecreaseInOperatingCapitalAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInOperatingCapitalAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Operating Capital [Abstract]",
        "terseLabel": "Changes in assets/liabilities:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInOtherOperatingAssets",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Other Operating Assets",
        "negatedLabel": "Other assets",
        "totalLabel": "Increase (Decrease) in Other Operating Assets, Total",
        "documentation": "Amount of increase (decrease) in operating assets classified as other."
       }
      }
     },
     "auth_ref": [
      "r10"
     ]
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInOtherOperatingLiabilities",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 15.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Other Operating Liabilities",
        "terseLabel": "Other liabilities",
        "totalLabel": "Increase (Decrease) in Other Operating Liabilities, Total",
        "documentation": "Amount of increase (decrease) in operating liabilities classified as other."
       }
      }
     },
     "auth_ref": [
      "r10"
     ]
    },
    "us-gaap_IncreaseDecreaseInReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IncreaseDecreaseInReceivables",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in Receivables",
        "negatedLabel": "Receivables",
        "totalLabel": "Increase (Decrease) in Receivables, Total",
        "documentation": "The increase (decrease) during the reporting period in the total amount due within one year (or one operating cycle) from all parties, associated with underlying transactions that are classified as operating activities."
       }
      }
     },
     "auth_ref": [
      "r10"
     ]
    },
    "ap_IncreaseDecreaseOfLitigationSettlementExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "IncreaseDecreaseOfLitigationSettlementExpenseBenefit",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase of litigation benefit",
        "label": "Increase Decrease Of Litigation Settlement Expense Benefit",
        "documentation": "Increase decrease of litigation settlement expense benefit."
       }
      }
     },
     "auth_ref": []
    },
    "ap_IncreaseInAllocatedShareBasedCompensationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "IncreaseInAllocatedShareBasedCompensationExpense",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Increase in allocated share based compensation expense.",
        "label": "Increase In Allocated Share Based Compensation Expense",
        "terseLabel": "Increase in allocated share based compensation expense"
       }
      }
     },
     "auth_ref": []
    },
    "ap_IncrementalPercentageOnAnnualLeasePayment": {
     "xbrltype": "percentItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "IncrementalPercentageOnAnnualLeasePayment",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Incremental percentage on annual lease payment.",
        "label": "Incremental Percentage On Annual Lease Payment",
        "terseLabel": "Incremental Percentage On Annual Lease Payment"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_IndefiniteLivedTradeNames": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IndefiniteLivedTradeNames",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsScheduleOfIntangibleAssetsDetail": {
       "parentTag": "us-gaap_IntangibleAssetsGrossExcludingGoodwill",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsScheduleOfIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Indefinite-Lived Trade Names",
        "terseLabel": "Intangible assets, Trade name",
        "documentation": "Carrying amount (original costs adjusted for previously recognized amortization and impairment) as of the balance sheet date for the rights acquired through registration of a trade name to gain or protect exclusive use thereof for a projected indefinite period of benefit."
       }
      }
     },
     "auth_ref": [
      "r187"
     ]
    },
    "ap_IndustrialRevenueBondsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "IndustrialRevenueBondsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureDebtScheduleOfDebtDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Industrial revenue bonds.",
        "label": "Industrial Revenue Bonds [Member]",
        "terseLabel": "Industrial Revenue Bonds (\"IRB\") [Member]",
        "verboseLabel": "Industrial Revenue Bonds [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_InsuranceClaimSettledWithCarriers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "InsuranceClaimSettledWithCarriers",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationSummaryOfActivityInAsbestosInsuranceRecoveriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of asbestos-related settlement and defense costs which were paid by insurance carriers.",
        "label": "Insurance Claim Settled With Carriers",
        "negatedLabel": "Settlement and defense costs paid by insurance carriers"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InsuranceSettlementsReceivableCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InsuranceSettlementsReceivableCurrent",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Insurance receivable - asbestos, less allowance for credit losses",
        "label": "Insurance Settlements Receivable, Current",
        "terseLabel": "Insurance receivable \u2013 asbestos",
        "documentation": "Amount due in settlement of a claim for reimbursement from an insurance company when the Company has suffered a loss covered under an insurance policy. For classified balance sheets, represents the current amount receivable, that is amounts expected to be collected within one year or the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r1162"
     ]
    },
    "us-gaap_InsuranceSettlementsReceivableNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InsuranceSettlementsReceivableNoncurrent",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Insurance receivable - asbestos",
        "label": "Insurance Settlements Receivable, Noncurrent",
        "verboseLabel": "Noncurrent asbestos-related insurance receivables",
        "documentation": "Carrying amount due after one year of the balance sheet date (or one operating cycle, if longer) of amount due in settlement of a claim for reimbursement from an insurance company when the Company has suffered a loss covered under an insurance policy."
       }
      }
     },
     "auth_ref": [
      "r1160"
     ]
    },
    "us-gaap_IntangibleAssetsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IntangibleAssetsDisclosureTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Intangible Assets Disclosure [Text Block]",
        "terseLabel": "Intangible Assets",
        "documentation": "The entire disclosure for all or part of the information related to intangible assets."
       }
      }
     },
     "auth_ref": [
      "r410"
     ]
    },
    "us-gaap_IntangibleAssetsGrossExcludingGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IntangibleAssetsGrossExcludingGoodwill",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsScheduleOfIntangibleAssetsDetail": {
       "parentTag": "us-gaap_IntangibleAssetsNetExcludingGoodwill",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsScheduleOfIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Intangible Assets, Gross (Excluding Goodwill)",
        "totalLabel": "Intangible assets, gross",
        "documentation": "Amount before accumulated amortization of intangible assets, excluding goodwill."
       }
      }
     },
     "auth_ref": [
      "r253"
     ]
    },
    "us-gaap_IntangibleAssetsNetExcludingGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IntangibleAssetsNetExcludingGoodwill",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 5.0
      },
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsScheduleOfIntangibleAssetsDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsScheduleOfIntangibleAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Intangible Assets, Net (Excluding Goodwill)",
        "periodEndLabel": "Balance at the end of the year",
        "periodStartLabel": "Balance at the beginning of the year",
        "terseLabel": "Intangible assets, net",
        "totalLabel": "Intangible assets, net",
        "documentation": "Sum of the carrying amounts of all intangible assets, excluding goodwill, as of the balance sheet date, net of accumulated amortization and impairment charges."
       }
      }
     },
     "auth_ref": [
      "r71",
      "r74"
     ]
    },
    "us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "IntangibleAssetsNetExcludingGoodwillAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Intangible Assets, Net (Excluding Goodwill) [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_IntangibleLiabilityDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "IntangibleLiabilityDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Intangible Liability Disclosure [Abstract]",
        "label": "Intangible Liability Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InterestCostsCapitalized": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestCostsCapitalized",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest capitalized on strategic capital projects",
        "label": "Interest Costs Capitalized",
        "documentation": "Amount of interest capitalized during the period."
       }
      }
     },
     "auth_ref": [
      "r133"
     ]
    },
    "us-gaap_InterestExpenseDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestExpenseDebt",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations": {
       "parentTag": "us-gaap_NonoperatingIncomeExpense",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Expense, Debt",
        "negatedLabel": "Interest expense",
        "totalLabel": "Interest Expense, Debt, Total",
        "terseLabel": "Interest expense",
        "documentation": "Amount of the cost of borrowed funds accounted for as interest expense for debt."
       }
      }
     },
     "auth_ref": [
      "r173",
      "r466",
      "r476",
      "r1072",
      "r1073"
     ]
    },
    "us-gaap_InterestPaidNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestPaidNet",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Paid, Excluding Capitalized Interest, Operating Activities",
        "terseLabel": "Interest payments (net of amounts capitalized)",
        "documentation": "Amount of cash paid for interest, excluding capitalized interest, classified as operating activity. Includes, but is not limited to, payment to settle zero-coupon bond for accreted interest of debt discount and debt instrument with insignificant coupon interest rate in relation to effective interest rate of borrowing attributable to accreted interest of debt discount."
       }
      }
     },
     "auth_ref": [
      "r287",
      "r290",
      "r291"
     ]
    },
    "us-gaap_InterestPayableCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InterestPayableCurrent",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail": {
       "parentTag": "us-gaap_OtherLiabilitiesCurrent",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Payable, Current",
        "terseLabel": "Accrued interest",
        "verboseLabel": "Accrued interest payable",
        "documentation": "Carrying value as of the balance sheet date of [accrued] interest payable on all forms of debt, including trade payables, that has been incurred and is unpaid. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer)."
       }
      }
     },
     "auth_ref": [
      "r34"
     ]
    },
    "us-gaap_InventoryDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InventoryDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Inventory Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InventoryDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InventoryDisclosureTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInventories"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inventory Disclosure [Text Block]",
        "terseLabel": "Inventories",
        "documentation": "The entire disclosure for inventory. Includes, but is not limited to, the basis of stating inventory, the method of determining inventory cost, the classes of inventory, and the nature of the cost elements included in inventory."
       }
      }
     },
     "auth_ref": [
      "r398"
     ]
    },
    "us-gaap_InventoryFinishedGoodsNetOfReserves": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InventoryFinishedGoodsNetOfReserves",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetail": {
       "parentTag": "us-gaap_InventoryNet",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inventory, Finished Goods, Net of Reserves",
        "terseLabel": "Finished goods",
        "documentation": "Carrying amount, net of valuation reserves and adjustments, as of the balance sheet date of merchandise or goods held by the company that are readily available for sale."
       }
      }
     },
     "auth_ref": [
      "r183",
      "r1051"
     ]
    },
    "us-gaap_InventoryNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InventoryNet",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 4.0
      },
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inventory, Net",
        "terseLabel": "Inventories",
        "totalLabel": "Inventories",
        "documentation": "Amount after valuation and LIFO reserves of inventory expected to be sold, or consumed within one year or operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r263",
      "r1049",
      "r1100"
     ]
    },
    "us-gaap_InventoryPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InventoryPolicyTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inventory, Policy [Policy Text Block]",
        "terseLabel": "Inventories",
        "documentation": "Disclosure of inventory accounting policy for inventory classes, including, but not limited to, basis for determining inventory amounts, methods by which amounts are added and removed from inventory classes, loss recognition on impairment of inventories, and situations in which inventories are stated above cost."
       }
      }
     },
     "auth_ref": [
      "r229",
      "r248",
      "r262",
      "r398",
      "r399",
      "r400",
      "r774",
      "r1059"
     ]
    },
    "us-gaap_InventoryRawMaterialsNetOfReserves": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InventoryRawMaterialsNetOfReserves",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetail": {
       "parentTag": "us-gaap_InventoryNet",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inventory, Raw Materials, Net of Reserves",
        "terseLabel": "Raw materials",
        "documentation": "Carrying amount, net of valuation reserves and adjustments, as of the balance sheet date of unprocessed items to be consumed in the manufacturing or production process."
       }
      }
     },
     "auth_ref": [
      "r183",
      "r1053"
     ]
    },
    "us-gaap_InventorySuppliesNetOfReserves": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InventorySuppliesNetOfReserves",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetail": {
       "parentTag": "us-gaap_InventoryNet",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inventory, Supplies, Net of Reserves",
        "terseLabel": "Supplies",
        "documentation": "Carrying amount, net of valuation reserves and adjustments, as of the balance sheet date of products used directly or indirectly in the manufacturing or production process, which may or may not become part of the final product. May also include items used in the storage, presentation or transportation of physical goods."
       }
      }
     },
     "auth_ref": [
      "r69",
      "r1054"
     ]
    },
    "us-gaap_InventoryWorkInProcessNetOfReserves": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InventoryWorkInProcessNetOfReserves",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetail": {
       "parentTag": "us-gaap_InventoryNet",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInventoriesScheduleOfInventoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inventory, Work in Process, Net of Reserves",
        "terseLabel": "Work-in-progress",
        "documentation": "Carrying amount, net of reserves and adjustments, as of the balance sheet date of merchandise or goods which are partially completed. This inventory is generally comprised of raw materials, labor and factory overhead costs, which require further materials, labor and overhead to be converted into finished goods, and which generally require the use of estimates to determine percentage complete and pricing."
       }
      }
     },
     "auth_ref": [
      "r183",
      "r1052"
     ]
    },
    "ap_InvestmentInJointVenturesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "InvestmentInJointVenturesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment In Joint Ventures [Abstract]",
        "label": "Investment In Joint Ventures [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentIncomeInterestAndDividend": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentIncomeInterestAndDividend",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations": {
       "parentTag": "us-gaap_NonoperatingIncomeExpense",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Income, Interest and Dividend",
        "terseLabel": "Investment-related income",
        "totalLabel": "Investment Income, Interest and Dividend, Total",
        "documentation": "Amount before accretion (amortization) of purchase discount (premium) of interest income and dividend income on nonoperating securities."
       }
      }
     },
     "auth_ref": [
      "r171"
     ]
    },
    "ap_InvestmentStrategyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "InvestmentStrategyMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment strategy.",
        "label": "Investment Strategy [Member]",
        "terseLabel": "Investment Strategy [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summery of Significant Investment Strategies of Various Funds",
        "label": "Investment [Table Text Block]",
        "documentation": "Tabular disclosure of investment."
       }
      }
     },
     "auth_ref": [
      "r1157",
      "r1158",
      "r1190"
     ]
    },
    "us-gaap_InvestmentTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentTypeAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Type [Axis]",
        "documentation": "Information by type of investments."
       }
      }
     },
     "auth_ref": [
      "r878",
      "r880",
      "r881",
      "r883",
      "r886",
      "r948",
      "r957",
      "r971",
      "r979",
      "r992",
      "r1000",
      "r1001",
      "r1017",
      "r1021",
      "r1022",
      "r1023",
      "r1024",
      "r1105"
     ]
    },
    "us-gaap_InvestmentTypeCategorizationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentTypeCategorizationMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments [Domain]",
        "documentation": "Asset obtained to generate income or appreciate in value."
       }
      }
     },
     "auth_ref": [
      "r878",
      "r880",
      "r881",
      "r883",
      "r886",
      "r948",
      "r957",
      "r971",
      "r979",
      "r992",
      "r1000",
      "r1001",
      "r1017",
      "r1021",
      "r1022",
      "r1023",
      "r1024",
      "r1105"
     ]
    },
    "us-gaap_InvestmentTypeExtensibleEnumeration": {
     "xbrltype": "enumerationSetItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentTypeExtensibleEnumeration",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Type [Extensible Enumeration]",
        "documentation": "Indicates type of investment. Includes, but is not limited to, common stock, preferred stock, convertible security, fixed income security, government security, option purchased, warrant, loan participation and assignment, commercial paper, bankers' acceptance, certificates of deposit, short-term security, repurchase agreement, and other investment company."
       }
      }
     },
     "auth_ref": [
      "r878",
      "r883",
      "r949",
      "r957",
      "r970",
      "r971",
      "r972",
      "r992",
      "r1011",
      "r1017"
     ]
    },
    "us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments in and Advance to Affiliates, Subsidiaries, Associates, and Joint Ventures",
        "terseLabel": "Investments in joint ventures",
        "totalLabel": "Investments in and Advance to Affiliates, Subsidiaries, Associates, and Joint Ventures, Total",
        "documentation": "Amount of investment in equity method investee and investment in and advance to affiliate."
       }
      }
     },
     "auth_ref": [
      "r1161"
     ]
    },
    "us-gaap_InvestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "InvestmentsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureFairValueFairValueOfFinancialAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments [Member]",
        "terseLabel": "Investments [Member]",
        "documentation": "Assets held for their financial return, rather than for the entity's operations."
       }
      }
     },
     "auth_ref": []
    },
    "ap_IssuanceOfCommonStockTaxBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "IssuanceOfCommonStockTaxBenefits",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquityParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Excess tax benefits on the issuance of common stock.",
        "label": "Issuance Of Common Stock Tax Benefits",
        "terseLabel": "Issuance of common stock tax benefits"
       }
      }
     },
     "auth_ref": []
    },
    "ap_LandAndBuildingsHeldAsCollateral": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "LandAndBuildingsHeldAsCollateral",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cost of land and buildings as of the reporting date that are held as collateral for outstanding obligations as of the reporting date.",
        "label": "Land And Buildings Held As Collateral",
        "terseLabel": "Land and buildings held as collateral"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LandAndLandImprovementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LandAndLandImprovementsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Land and Land Improvements [Member]",
        "terseLabel": "Land and Land Improvements [Member]",
        "documentation": "Real estate held and assets that are an addition or improvement to real estate held."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LandImprovementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LandImprovementsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Land Improvements [Member]",
        "terseLabel": "Land Improvements [Member]",
        "documentation": "Additions or improvements to real estate held."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LandMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LandMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureOperatingLeaseRightofuseAssetsScheduleOfTheNetBookValueOfRightofuseAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Land [Member]",
        "terseLabel": "Land [Member]",
        "documentation": "Part of earth's surface not covered by water."
       }
      }
     },
     "auth_ref": [
      "r1222"
     ]
    },
    "us-gaap_LeaseCostTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LeaseCostTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease, Cost [Table Text Block]",
        "terseLabel": "Components of Lease Cost",
        "documentation": "Tabular disclosure of lessee's lease cost. Includes, but is not limited to, interest expense for finance lease, amortization of right-of-use asset for finance lease, operating lease cost, short-term lease cost, variable lease cost and sublease income."
       }
      }
     },
     "auth_ref": [
      "r1335"
     ]
    },
    "ap_LeaseRepurchasePercentageOnLessorInvestmentForProperties": {
     "xbrltype": "percentItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "LeaseRepurchasePercentageOnLessorInvestmentForProperties",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lease repurchase percentage on lessor investment for properties.",
        "label": "Lease Repurchase Percentage On Lessor Investment For Properties",
        "terseLabel": "Lease repurchase percentage on lessor investment for properties"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LeasesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LeasesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Leases [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LegalCostsPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LegalCostsPolicyTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Legal Costs, Policy [Policy Text Block]",
        "terseLabel": "Legal Costs",
        "documentation": "Disclosure of accounting policy for legal costs incurred to protect or defend the entity's assets and rights, or to obtain assets, including monetary damages, or to obtain rights."
       }
      }
     },
     "auth_ref": [
      "r429"
     ]
    },
    "dei_LegalEntityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "LegalEntityAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInvestmentsInJointVenturesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Legal Entity [Axis]",
        "terseLabel": "Legal Entity",
        "documentation": "The set of legal entities associated with a report."
       }
      }
     },
     "auth_ref": []
    },
    "ap_LesseeLeasingArrangementsOperatingLeaseFullyExtendedExpirationDate": {
     "xbrltype": "gYearMonthItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "LesseeLeasingArrangementsOperatingLeaseFullyExtendedExpirationDate",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lessee leasing arrangements operating lease fully extended expiration date.",
        "label": "Lessee Leasing Arrangements Operating Lease Fully Extended Expiration Date",
        "terseLabel": "Extended lease expiration date"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Liability, to be Paid, Maturity [Table Text Block]",
        "terseLabel": "Summary of Future Operating Lease Payments",
        "documentation": "Tabular disclosure of undiscounted cash flows of lessee's operating lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to operating lease liability recognized in statement of financial position."
       }
      }
     },
     "auth_ref": [
      "r1336"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDue",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfFutureOperatingLeasePaymentsDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfFutureOperatingLeasePaymentsDetail2": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfFutureOperatingLeasePaymentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Liability, to be Paid",
        "totalLabel": "Total undiscounted payments",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease."
       }
      }
     },
     "auth_ref": [
      "r754"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfFutureOperatingLeasePaymentsDetail": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfFutureOperatingLeasePaymentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2029 and thereafter",
        "label": "Lessee, Operating Lease, Liability, to be Paid, after Year Five",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease due after fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r754"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfFutureOperatingLeasePaymentsDetail": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfFutureOperatingLeasePaymentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2024",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year One",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r754"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearFive",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfFutureOperatingLeasePaymentsDetail": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfFutureOperatingLeasePaymentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2028",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Five",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r754"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearFour",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfFutureOperatingLeasePaymentsDetail": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfFutureOperatingLeasePaymentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2027",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Four",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in fourth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r754"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearThree",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfFutureOperatingLeasePaymentsDetail": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfFutureOperatingLeasePaymentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2026",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Three",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in third fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r754"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearTwo",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfFutureOperatingLeasePaymentsDetail": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfFutureOperatingLeasePaymentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2025",
        "label": "Lessee, Operating Lease, Liability, to be Paid, Year Two",
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in second fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r754"
     ]
    },
    "us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseLiabilityUndiscountedExcessAmount",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfFutureOperatingLeasePaymentsDetail2": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfFutureOperatingLeasePaymentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Liability, Undiscounted Excess Amount",
        "negatedLabel": "Less: amount representing interest",
        "documentation": "Amount of lessee's undiscounted obligation for lease payments in excess of discounted obligation for lease payments for operating lease."
       }
      }
     },
     "auth_ref": [
      "r754"
     ]
    },
    "us-gaap_LesseeOperatingLeaseOptionToExtend": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseOptionToExtend",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Option to Extend",
        "terseLabel": "Lessee, operating lease, option to extend",
        "documentation": "Description of terms and conditions of option to extend lessee's operating lease. Includes, but is not limited to, information about option recognized as part of right-of-use asset and lease liability."
       }
      }
     },
     "auth_ref": [
      "r748"
     ]
    },
    "us-gaap_LesseeOperatingLeaseRenewalTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseRenewalTerm",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Lease, Renewal Term",
        "terseLabel": "Lessee, operating term period",
        "documentation": "Term of lessee's operating lease renewal, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days."
       }
      }
     },
     "auth_ref": [
      "r1334"
     ]
    },
    "us-gaap_LesseeOperatingLeaseTermOfContract": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeaseTermOfContract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Remaining lease term",
        "label": "Lessee, Operating Lease, Term of Contract",
        "terseLabel": "Lessee lease term",
        "documentation": "Term of lessee's operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days."
       }
      }
     },
     "auth_ref": [
      "r1334"
     ]
    },
    "us-gaap_LesseeOperatingLeasesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LesseeOperatingLeasesTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee, Operating Leases [Text Block]",
        "terseLabel": "Operating Lease Liabilities",
        "documentation": "The entire disclosure for operating leases of lessee. Includes, but is not limited to, description of operating lease and maturity analysis of operating lease liability."
       }
      }
     },
     "auth_ref": [
      "r742"
     ]
    },
    "us-gaap_LetterOfCreditMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LetterOfCreditMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Letter of Credit [Member]",
        "terseLabel": "Letter of Credit [Member]",
        "documentation": "A document typically issued by a financial institution which acts as a guarantee of payment to a beneficiary, or as the source of payment for a specific transaction (for example, wiring funds to a foreign exporter if and when specified merchandise is accepted pursuant to the terms of the letter of credit)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LettersOfCreditOutstandingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LettersOfCreditOutstandingAmount",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Letters of Credit Outstanding, Amount",
        "terseLabel": "Outstanding standby and commercial letters of credit",
        "documentation": "The total amount of the contingent obligation under letters of credit outstanding as of the reporting date."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_Liabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "Liabilities",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities",
        "totalLabel": "Total liabilities",
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all liabilities that are recognized. Liabilities are probable future sacrifices of economic benefits arising from present obligations of an entity to transfer assets or provide services to other entities in the future."
       }
      }
     },
     "auth_ref": [
      "r33",
      "r295",
      "r384",
      "r433",
      "r434",
      "r436",
      "r437",
      "r438",
      "r440",
      "r442",
      "r444",
      "r445",
      "r676",
      "r680",
      "r681",
      "r713",
      "r895",
      "r1061",
      "r1113",
      "r1216",
      "r1342",
      "r1343"
     ]
    },
    "us-gaap_LiabilitiesAndStockholdersEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LiabilitiesAndStockholdersEquity",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities and Equity",
        "totalLabel": "Total liabilities and shareholders\u2019 equity",
        "documentation": "Amount of liabilities and equity items, including the portion of equity attributable to noncontrolling interests, if any."
       }
      }
     },
     "auth_ref": [
      "r158",
      "r218",
      "r807",
      "r1100",
      "r1173",
      "r1194",
      "r1333"
     ]
    },
    "us-gaap_LiabilitiesAndStockholdersEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LiabilitiesAndStockholdersEquityAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities and Equity [Abstract]",
        "terseLabel": "Liabilities and Shareholders\u2019 Equity"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LiabilitiesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LiabilitiesCurrent",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities, Current",
        "totalLabel": "Total current liabilities",
        "documentation": "Total obligations incurred as part of normal operations that are expected to be paid during the following twelve months or within one business cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r36",
      "r247",
      "r295",
      "r384",
      "r433",
      "r434",
      "r436",
      "r437",
      "r438",
      "r440",
      "r442",
      "r444",
      "r445",
      "r676",
      "r680",
      "r681",
      "r713",
      "r1100",
      "r1216",
      "r1342",
      "r1343"
     ]
    },
    "us-gaap_LiabilitiesCurrentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LiabilitiesCurrentAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities, Current [Abstract]",
        "terseLabel": "Current liabilities:"
       }
      }
     },
     "auth_ref": []
    },
    "ap_LifeOfUnderlyingAsset": {
     "xbrltype": "durationItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "LifeOfUnderlyingAsset",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Life of underlying asset",
        "label": "Life Of Underlying Asset",
        "documentation": "Life of underlying asset."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LineOfCredit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LineOfCredit",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Line of Credit",
        "terseLabel": "Borrowings",
        "totalLabel": "Long-Term Line of Credit, Total",
        "documentation": "The carrying value as of the balance sheet date of the current and noncurrent portions of long-term obligations drawn from a line of credit, which is a bank's commitment to make loans up to a specific amount. Examples of items that might be included in the application of this element may consist of letters of credit, standby letters of credit, and revolving credit arrangements, under which borrowings can be made up to a maximum amount as of any point in time conditional on satisfaction of specified terms before, as of and after the date of drawdowns on the line. Includes short-term obligations that would normally be classified as current liabilities but for which (a) postbalance sheet date issuance of a long term obligation to refinance the short term obligation on a long term basis, or (b) the enterprise has entered into a financing agreement that clearly permits the enterprise to refinance the short-term obligation on a long term basis and the following conditions are met (1) the agreement does not expire within 1 year and is not cancelable by the lender except for violation of an objectively determinable provision, (2) no violation exists at the BS date, and (3) the lender has entered into the financing agreement is expected to be financially capable of honoring the agreement."
       }
      }
     },
     "auth_ref": [
      "r29",
      "r216",
      "r1354"
     ]
    },
    "us-gaap_LineOfCreditFacilityLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LineOfCreditFacilityLineItems",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line of Credit Facility [Line Items]",
        "terseLabel": "Line Of Credit Facility [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r1172"
     ]
    },
    "us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LineOfCreditFacilityMaximumBorrowingCapacity",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line of Credit Facility, Maximum Borrowing Capacity",
        "terseLabel": "Agreement borrowing capacity",
        "documentation": "Maximum borrowing capacity under the credit facility without consideration of any current restrictions on the amount that could be borrowed or the amounts currently outstanding under the facility."
       }
      }
     },
     "auth_ref": [
      "r32"
     ]
    },
    "us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LineOfCreditFacilityRemainingBorrowingCapacity",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line of Credit Facility, Remaining Borrowing Capacity",
        "terseLabel": "Line of credit, remaining borrowing capacity",
        "documentation": "Amount of borrowing capacity currently available under the credit facility (current borrowing capacity less the amount of borrowings outstanding)."
       }
      }
     },
     "auth_ref": [
      "r32"
     ]
    },
    "us-gaap_LineOfCreditFacilityTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LineOfCreditFacilityTable",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line of Credit Facility [Table]",
        "terseLabel": "Line Of Credit Facility [Table]",
        "documentation": "A table or schedule providing information pertaining to short-term or long-term contractual arrangements with lenders, including letters of credit, standby letters of credit, and revolving credit arrangements, under which borrowings can be made up to maximum amount as of any point in time conditional on satisfaction of specified terms before, as of and after the date of drawdowns on the line."
       }
      }
     },
     "auth_ref": [
      "r32",
      "r1172"
     ]
    },
    "us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line of Credit Facility, Unused Capacity, Commitment Fee Percentage",
        "terseLabel": "Commitment fee payable percentage",
        "documentation": "The fee, expressed as a percentage of the line of credit facility, for available but unused credit capacity under the credit facility."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LineOfCreditMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LineOfCreditMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Line Of Credit [Member]",
        "label": "Line of Credit [Member]",
        "documentation": "A contractual arrangement with a lender under which borrowings can be made up to a specific amount at any point in time, and under which borrowings outstanding may be either short-term or long-term, depending upon the particulars."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LitigationReserveCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LitigationReserveCurrent",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Estimated Litigation Liability, Current",
        "terseLabel": "Asbestos liability \u2013 current portion",
        "documentation": "Carrying amount of reserve for known or estimated probable loss from litigation, which may include attorneys' fees and other litigation costs, which is expected to be paid within one year of the date of the statement of financial position."
       }
      }
     },
     "auth_ref": [
      "r41",
      "r1204"
     ]
    },
    "us-gaap_LitigationReserveNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LitigationReserveNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Estimated Litigation Liability, Noncurrent",
        "terseLabel": "Asbestos liability",
        "documentation": "Carrying amount of estimated litigation liability for known or estimated probable loss from litigation, which may include attorneys' fees and other litigation costs, which is expected to be paid after one year or beyond the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r41",
      "r1204"
     ]
    },
    "us-gaap_LitigationSettlementExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LitigationSettlementExpense",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureLitigationSummaryOfAsbestosRelatedCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Proceeds from insolvent asbestos-related insurance carrier",
        "label": "Litigation Settlement, Expense",
        "documentation": "Amount of litigation expense, including but not limited to legal, forensic, accounting, and investigative fees."
       }
      }
     },
     "auth_ref": []
    },
    "ap_LitigationSettlementExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "LitigationSettlementExpenseBenefit",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Litigation settlement expense (benefit).",
        "label": "Litigation Settlement Expense Benefit",
        "terseLabel": "Charge for asbestos-related costs",
        "verboseLabel": "Charge for asbestos litigation"
       }
      }
     },
     "auth_ref": []
    },
    "ap_LitigationTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "LitigationTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for legal proceedings, legal contingencies, litigation, regulatory and other contingencies.",
        "label": "Litigation [Text Block]",
        "terseLabel": "Litigation"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LoansAndLeasesReceivableRelatedParties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LoansAndLeasesReceivableRelatedParties",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfLoanActivityDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodEndLabel": "Balance at end of the period",
        "periodStartLabel": "Balance at beginning of the period",
        "label": "Loans and Leases Receivable, Related Parties",
        "documentation": "For an unclassified balance sheet, reflects the carrying amount of unpaid loan amounts due from related parties at the balance sheet date."
       }
      }
     },
     "auth_ref": [
      "r138",
      "r141"
     ]
    },
    "dei_LocalPhoneNumber": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "LocalPhoneNumber",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Local Phone Number",
        "terseLabel": "Local Phone Number",
        "documentation": "Local phone number for entity."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LongTermDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebt",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureDebtScheduleOfDebtDetail": {
       "parentTag": "us-gaap_LongTermDebtAndCapitalLeaseObligationsIncludingCurrentMaturities",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureDebtScheduleOfDebtDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Outstanding amount",
        "label": "Long-Term Debt",
        "terseLabel": "Long term debt",
        "totalLabel": "Long-Term Debt, Total",
        "documentation": "Amount, after deduction of unamortized premium (discount) and debt issuance cost, of long-term debt. Excludes lease obligation."
       }
      }
     },
     "auth_ref": [
      "r29",
      "r216",
      "r459",
      "r474",
      "r1070",
      "r1071",
      "r1354"
     ]
    },
    "us-gaap_LongTermDebtAndCapitalLeaseObligations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtAndCapitalLeaseObligations",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureDebtScheduleOfDebtDetail2": {
       "parentTag": "us-gaap_LongTermDebtAndCapitalLeaseObligationsIncludingCurrentMaturities",
       "weight": 1.0,
       "order": 1.0
      },
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureDebtScheduleOfDebtDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt and Lease Obligation",
        "terseLabel": "Long-term debt",
        "totalLabel": "Long-Term Debt and Lease Obligation, Total",
        "documentation": "Amount of long-term debt and lease obligation, classified as noncurrent."
       }
      }
     },
     "auth_ref": [
      "r29",
      "r801"
     ]
    },
    "us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtAndCapitalLeaseObligationsCurrent",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureDebtScheduleOfDebtDetail2": {
       "parentTag": "us-gaap_LongTermDebtAndCapitalLeaseObligationsIncludingCurrentMaturities",
       "weight": 1.0,
       "order": 0.0
      },
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureDebtScheduleOfDebtDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt and Lease Obligation, Current",
        "terseLabel": "Debt \u2013 current portion",
        "negatedLabel": "Debt \u2013 current portion",
        "totalLabel": "Long-Term Debt and Lease Obligation, Current, Total",
        "documentation": "Amount of long-term debt and lease obligation, classified as current."
       }
      }
     },
     "auth_ref": [
      "r34"
     ]
    },
    "us-gaap_LongTermDebtAndCapitalLeaseObligationsIncludingCurrentMaturities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtAndCapitalLeaseObligationsIncludingCurrentMaturities",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureDebtScheduleOfDebtDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureDebtScheduleOfDebtDetail2": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureDebtScheduleOfDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt and Lease Obligation, Including Current Maturities",
        "totalLabel": "Outstanding borrowings",
        "documentation": "Amount of long-term debt and lease obligation, including portion classified as current."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Maturity, after Year Five",
        "terseLabel": "Future principal payments, thereafter",
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing after fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r13",
      "r303",
      "r1219"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Maturity, Year One",
        "terseLabel": "Future principal payments, next twelve months",
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r13",
      "r303",
      "r464"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Maturity, Year Five",
        "terseLabel": "Future principal payments, in year five",
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r13",
      "r303",
      "r464"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Maturity, Year Four",
        "terseLabel": "Future principal payments, in year four",
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in fourth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r13",
      "r303",
      "r464"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Maturity, Year Three",
        "terseLabel": "Future principal payments, in year three",
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in third fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r13",
      "r303",
      "r464"
     ]
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Maturity, Year Two",
        "terseLabel": "Future principal payments, in year two",
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in second fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach)."
       }
      }
     },
     "auth_ref": [
      "r13",
      "r303",
      "r464"
     ]
    },
    "us-gaap_LongTermDebtWeightedAverageInterestRateOverTime": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermDebtWeightedAverageInterestRateOverTime",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Weighted Average Interest Rate, over Time",
        "terseLabel": "Interest on outstanding balance",
        "documentation": "Weighted average interest rate of long-term debt outstanding calculated over time."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LongTermInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermInvestments",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInvestmentsInJointVenturesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Investments",
        "terseLabel": "Recorded cost",
        "totalLabel": "Long-Term Investments, Total",
        "documentation": "The total amount of investments that are intended to be held for an extended period of time (longer than one operating cycle)."
       }
      }
     },
     "auth_ref": [
      "r250"
     ]
    },
    "us-gaap_LongTermPurchaseCommitmentAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermPurchaseCommitmentAmount",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Purchase Commitment, Amount",
        "terseLabel": "Purchase commitments",
        "documentation": "The minimum amount the entity agreed to spend under the long-term purchase commitment."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Category of Item Purchased [Axis]",
        "terseLabel": "Category of Item Purchased",
        "documentation": "Information by category of items purchased under a long-term purchase commitment."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Purchase Commitment, Category of Item Purchased [Domain]",
        "terseLabel": "Long-Term Purchase Commitment, Category of Item Purchased",
        "documentation": "General description of the goods or services to be purchased from the counterparty to the long-term purchase commitment."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LongtermDebtTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongtermDebtTypeAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureDebtScheduleOfDebtDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Type [Axis]",
        "terseLabel": "Long-Term Debt, Type",
        "documentation": "Information by type of long-term debt."
       }
      }
     },
     "auth_ref": [
      "r39"
     ]
    },
    "us-gaap_LongtermDebtTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongtermDebtTypeDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureDebtScheduleOfDebtDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt, Type [Domain]",
        "terseLabel": "Long-Term Debt, Type",
        "documentation": "Type of long-term debt arrangement, such as notes, line of credit, commercial paper, asset-based financing, project financing, letter of credit financing. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the company, if longer."
       }
      }
     },
     "auth_ref": [
      "r39",
      "r81"
     ]
    },
    "us-gaap_LongtermPurchaseCommitmentPeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LongtermPurchaseCommitmentPeriod",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Purchase Commitment, Period",
        "terseLabel": "Purchase commitments, period",
        "documentation": "Period covered by the long-term purchase commitment, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LossContingenciesByNatureOfContingencyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LossContingenciesByNatureOfContingencyAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyParentheticalDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationSummaryOfActivityInAsbestosInsuranceRecoveriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loss Contingency Nature [Axis]",
        "terseLabel": "Loss Contingency Nature",
        "documentation": "Information by type of existing condition, situation, or set of circumstances involving uncertainty as to possible loss to an enterprise that will ultimately be resolved when one or more future events occur or fail to occur."
       }
      }
     },
     "auth_ref": [
      "r422",
      "r423",
      "r424",
      "r431",
      "r1205",
      "r1207"
     ]
    },
    "us-gaap_LossContingenciesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LossContingenciesLineItems",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyParentheticalDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationSummaryOfActivityInAsbestosInsuranceRecoveriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loss Contingencies [Line Items]",
        "terseLabel": "Loss Contingencies [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r422",
      "r423",
      "r424",
      "r431",
      "r1205",
      "r1207"
     ]
    },
    "us-gaap_LossContingenciesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LossContingenciesTable",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyParentheticalDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationSummaryOfActivityInAsbestosInsuranceRecoveriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loss Contingencies [Table]",
        "terseLabel": "Loss Contingencies [Table]",
        "documentation": "Discloses the specific components (such as the nature, name, and date) of the loss contingency and gives an estimate of the possible loss or range of loss, or states that a reasonable estimate cannot be made. Excludes environmental contingencies, warranties and unconditional purchase obligations."
       }
      }
     },
     "auth_ref": [
      "r422",
      "r423",
      "r424",
      "r431",
      "r1205",
      "r1207"
     ]
    },
    "us-gaap_LossContingencyAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LossContingencyAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Loss Contingency [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LossContingencyAccrualAtCarryingValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LossContingencyAccrualAtCarryingValue",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureLitigationSummaryOfActivityRelatingToAsbestosLiabilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loss Contingency Accrual",
        "periodStartLabel": "Asbestos liability, beginning of the year",
        "periodEndLabel": "Asbestos liability, end of the year",
        "documentation": "Amount of loss contingency liability."
       }
      }
     },
     "auth_ref": [
      "r422",
      "r1138"
     ]
    },
    "us-gaap_LossContingencyAccrualCarryingValuePeriodIncreaseDecrease": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LossContingencyAccrualCarryingValuePeriodIncreaseDecrease",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureLitigationSummaryOfActivityRelatingToAsbestosLiabilityDetails",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loss Contingency Accrual, Period Increase (Decrease)",
        "terseLabel": "Increase (decrease) to estimated asbestos liability for claims pending or projected",
        "totalLabel": "Loss Contingency Accrual, Period Increase (Decrease), Total",
        "verboseLabel": "Change in estimated liability",
        "documentation": "Amount of increase (decrease) in loss contingency liability."
       }
      }
     },
     "auth_ref": [
      "r1204"
     ]
    },
    "ap_LossContingencyAccrualPeriodIncreaseDecreaseEffectFromLowerDefenseToIndemnityCostRatio": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "LossContingencyAccrualPeriodIncreaseDecreaseEffectFromLowerDefenseToIndemnityCostRatio",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureLitigationSummaryOfActivityRelatingToAsbestosLiabilityDetails",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Effect of asbestos liability from a lower defense-to-indemnity ratio",
        "negatedLabel": "Effect from a lower defense-to-indemnity ratio",
        "label": "Loss Contingency Accrual, Period Increase (Decrease) Effect From Lower Defense To Indemnity Cost Ratio",
        "documentation": "Loss contingency accrual, period increase (decrease) effect from lower defense to indemnity cost ratio."
       }
      }
     },
     "auth_ref": []
    },
    "ap_LossContingencyActiveClaimsNumber": {
     "xbrltype": "integerItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "LossContingencyActiveClaimsNumber",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loss contingency active claims number.",
        "label": "Loss Contingency Active Claims Number",
        "periodEndLabel": "Total active claims pending at the end of the period"
       }
      }
     },
     "auth_ref": []
    },
    "ap_LossContingencyClaimsAdministrativeClosuresNumber": {
     "xbrltype": "integerItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "LossContingencyClaimsAdministrativeClosuresNumber",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loss contingency claims administrative closures number.",
        "label": "Loss Contingency Claims Administrative Closures Number",
        "negatedLabel": "Administrative closures"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_LossContingencyClaimsDismissedNumber": {
     "xbrltype": "integerItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LossContingencyClaimsDismissedNumber",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loss Contingency, Claims Dismissed, Number",
        "negatedLabel": "Claims dismissed",
        "documentation": "Number of claims dismissed."
       }
      }
     },
     "auth_ref": [
      "r1205",
      "r1207"
     ]
    },
    "us-gaap_LossContingencyClaimsSettledNumber": {
     "xbrltype": "integerItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LossContingencyClaimsSettledNumber",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loss Contingency, Claims Settled, Number",
        "negatedLabel": "Claims settled",
        "documentation": "Number of claims settled."
       }
      }
     },
     "auth_ref": [
      "r1205",
      "r1207"
     ]
    },
    "us-gaap_LossContingencyNatureDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LossContingencyNatureDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyParentheticalDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationSummaryOfActivityInAsbestosInsuranceRecoveriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loss Contingency, Nature [Domain]",
        "terseLabel": "Loss Contingency, Nature",
        "documentation": "An existing condition, situation, or set of circumstances involving uncertainty as to possible loss to an enterprise that will ultimately be resolved when one or more future events occur or fail to occur. Resolution of the uncertainty may confirm the incurrence of a loss or impairment of an asset or the incurrence of a liability."
       }
      }
     },
     "auth_ref": [
      "r422",
      "r423",
      "r424",
      "r431",
      "r1205",
      "r1207"
     ]
    },
    "us-gaap_LossContingencyNewClaimsFiledNumber": {
     "xbrltype": "integerItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LossContingencyNewClaimsFiledNumber",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loss Contingency, New Claims Filed, Number",
        "terseLabel": "New claims served",
        "documentation": "The total number of new claims filed pertaining to a loss contingency during the period."
       }
      }
     },
     "auth_ref": [
      "r1205",
      "r1207"
     ]
    },
    "us-gaap_LossContingencyPendingClaimsNumber": {
     "xbrltype": "integerItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "LossContingencyPendingClaimsNumber",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loss Contingency, Pending Claims, Number",
        "periodEndLabel": "Total claims pending at the end of the period",
        "periodStartLabel": "Total claims pending at the beginning of the period",
        "documentation": "Number of pending claims pertaining to a loss contingency."
       }
      }
     },
     "auth_ref": [
      "r1205",
      "r1207"
     ]
    },
    "ap_LossContingencySettlementAndDefenseCostsPaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "LossContingencySettlementAndDefenseCostsPaid",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureLitigationSummaryOfActivityRelatingToAsbestosLiabilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Settlement and defense costs paid",
        "label": "Loss Contingency Settlement And Defense Costs Paid",
        "documentation": "Loss contingency settlement and defense costs paid.",
        "terseLabel": "Settlement and defense costs paid"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MachineryAndEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MachineryAndEquipmentMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureOperatingLeaseRightofuseAssetsScheduleOfTheNetBookValueOfRightofuseAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentScheduleOfPropertyPlantAndEquipmentDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Machinery and Equipment [Member]",
        "terseLabel": "Machinery and Equipment [Member]",
        "documentation": "Tangible personal property used to produce goods and services, including, but is not limited to, tools, dies and molds, computer and office equipment."
       }
      }
     },
     "auth_ref": []
    },
    "ap_MasteelGongchangMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "MasteelGongchangMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInvestmentsInJointVenturesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Masteel gongchang member",
        "label": "Masteel Gongchang [Member]",
        "terseLabel": "MG [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_MaximumMaturityPeriodOfFixedIncomeInvestments": {
     "xbrltype": "durationItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "MaximumMaturityPeriodOfFixedIncomeInvestments",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maximum maturity period of fixed income investments.",
        "label": "Maximum Maturity Period Of Fixed Income Investments",
        "terseLabel": "Maximum maturity period of fixed income investments"
       }
      }
     },
     "auth_ref": []
    },
    "srt_MaximumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "MaximumMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyParentheticalDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssumptionsRegardingNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsDiscountRatesUsedToDetermineBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maximum [Member]",
        "terseLabel": "Maximum [Member]"
       }
      }
     },
     "auth_ref": [
      "r423",
      "r424",
      "r427",
      "r428",
      "r588",
      "r773",
      "r838",
      "r887",
      "r888",
      "r951",
      "r970",
      "r975",
      "r976",
      "r1011",
      "r1043",
      "r1044",
      "r1064",
      "r1074",
      "r1094",
      "r1102",
      "r1218",
      "r1344",
      "r1345",
      "r1346",
      "r1347",
      "r1348",
      "r1349"
     ]
    },
    "ap_MesotheliomaClaimMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "MesotheliomaClaimMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Mesothelioma Claims [Member]",
        "label": "Mesothelioma Claim [Member]",
        "documentation": "Mesothelioma claim."
       }
      }
     },
     "auth_ref": []
    },
    "srt_MinimumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "MinimumMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyParentheticalDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssumptionsRegardingNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsDiscountRatesUsedToDetermineBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Minimum [Member]",
        "terseLabel": "Minimum [Member]"
       }
      }
     },
     "auth_ref": [
      "r423",
      "r424",
      "r427",
      "r428",
      "r588",
      "r773",
      "r838",
      "r887",
      "r888",
      "r951",
      "r970",
      "r975",
      "r976",
      "r1011",
      "r1043",
      "r1044",
      "r1064",
      "r1074",
      "r1094",
      "r1102",
      "r1218",
      "r1344",
      "r1345",
      "r1346",
      "r1347",
      "r1348",
      "r1349"
     ]
    },
    "ap_MinimumStockRepurchaseValueRequiredForOnePercentExciseTaxRate1Application": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "MinimumStockRepurchaseValueRequiredForOnePercentExciseTaxRate1Application",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Minimum Stock Repurchase Value Required For One Percent Excise Tax Rate1 Application",
        "label": "Minimum Stock Repurchase Value Required For One Percent Excise Tax Rate1 Application",
        "terseLabel": "Minimum stock repurchase value required for one percent excise tax rate application"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MinorityInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MinorityInterest",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity, Attributable to Noncontrolling Interest",
        "terseLabel": "Noncontrolling interest",
        "totalLabel": "Stockholders' Equity Attributable to Noncontrolling Interest, Total",
        "periodStartLabel": "Stockholders' Equity Attributable to Noncontrolling Interest, Beginning Balance",
        "periodEndLabel": "Stockholders' Equity Attributable to Noncontrolling Interest, Ending Balance",
        "documentation": "Amount of equity (deficit) attributable to noncontrolling interest. Excludes temporary equity."
       }
      }
     },
     "auth_ref": [
      "r43",
      "r217",
      "r295",
      "r384",
      "r433",
      "r436",
      "r437",
      "r438",
      "r444",
      "r445",
      "r713",
      "r806",
      "r899"
     ]
    },
    "us-gaap_MinorityInterestOwnershipPercentageByNoncontrollingOwners": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MinorityInterestOwnershipPercentageByNoncontrollingOwners",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInvestmentsInJointVenturesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsidiary, Ownership Percentage, Noncontrolling Owner",
        "terseLabel": "Ownership interest by minority holder",
        "documentation": "The equity interest of noncontrolling shareholders, partners or other equity holders in consolidated entity."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MinorityInterestOwnershipPercentageByParent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MinorityInterestOwnershipPercentageByParent",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInvestmentsInJointVenturesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsidiary, Ownership Percentage, Parent",
        "terseLabel": "Ownership interest percentage",
        "documentation": "The parent entity's interest in net assets of the subsidiary, expressed as a percentage."
       }
      }
     },
     "auth_ref": []
    },
    "ap_MinorityShareholderLoanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "MinorityShareholderLoanMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureDebtScheduleOfDebtDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Minority shareholder loan.",
        "label": "Minority Shareholder Loan [Member]",
        "terseLabel": "Minority Shareholder Loan [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_MovingAveragePeriodToDetermineMarketValueOfPlanAssets": {
     "xbrltype": "durationItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "MovingAveragePeriodToDetermineMarketValueOfPlanAssets",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The time frame over which unrealized gains and losses are amortized in order to determine the market-related value of plan assets.",
        "label": "Moving Average Period To Determine Market Value Of Plan Assets",
        "verboseLabel": "Moving average period to determine market value of plan assets"
       }
      }
     },
     "auth_ref": []
    },
    "ap_MultiemployerPlanDescriptionOfEmployeesContributedBasedOnRatePerHour": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "MultiemployerPlanDescriptionOfEmployeesContributedBasedOnRatePerHour",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of employees as of the reporting date that are expected to eventually receive benefits from the plan.",
        "label": "Multiemployer Plan Description Of Employees Contributed Based On Rate Per Hour",
        "terseLabel": "Participation of corporation's employees in the plan"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MultiemployerPlanEmployerContributionCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MultiemployerPlanEmployerContributionCost",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Multiemployer Plan, Employer Contribution, Cost",
        "terseLabel": "Corporation's contributions",
        "totalLabel": "Multiemployer Plan, Employer Contribution, Cost, Total",
        "documentation": "Amount of cost for employer contribution to multiemployer plan. Multiemployer plan includes, but is not limited to, pension plan determined to be individually significant and insignificant and other postretirement benefit plan."
       }
      }
     },
     "auth_ref": [
      "r585",
      "r586",
      "r591",
      "r1094"
     ]
    },
    "ap_MultiemployerPlanEstimatedFutureEmployerContributionsInNextFiscalYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "MultiemployerPlanEstimatedFutureEmployerContributionsInNextFiscalYear",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contributions expected in 2024",
        "documentation": "Amount of contributions as of the end of the reporting period expected to be made in the following reporting period.",
        "label": "Multiemployer Plan Estimated Future Employer Contributions In Next Fiscal Year"
       }
      }
     },
     "auth_ref": []
    },
    "ap_MultiemployerPlanNumberOfEmployeesContributedBasedOnRatePerHour": {
     "xbrltype": "integerItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "MultiemployerPlanNumberOfEmployeesContributedBasedOnRatePerHour",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Multiemployer plan number of employees contributed based on rate per hour.",
        "label": "Multiemployer Plan Number Of Employees Contributed Based On Rate Per Hour",
        "terseLabel": "Participation of number of corporation's employees in the plan"
       }
      }
     },
     "auth_ref": []
    },
    "ap_MultiemployerPlanNumberOfEmployeesDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "MultiemployerPlanNumberOfEmployeesDescription",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The minimum number of employees who participate in the plan.",
        "label": "Multiemployer Plan Number Of Employees Description",
        "terseLabel": "Multiemployer plan number of employees description"
       }
      }
     },
     "auth_ref": []
    },
    "ap_MultiemployerPlanNumberOfEmployeesParticipated": {
     "xbrltype": "integerItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "MultiemployerPlanNumberOfEmployeesParticipated",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of employees that participate in the employee benefit plan.",
        "label": "Multiemployer Plan Number Of Employees Participated",
        "terseLabel": "Number of employees participate in the plan"
       }
      }
     },
     "auth_ref": []
    },
    "ap_MultiemployerPlanNumberOfEmployer": {
     "xbrltype": "integerItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "MultiemployerPlanNumberOfEmployer",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of employers contributed to the plan",
        "label": "Multiemployer Plan Number Of Employer",
        "documentation": "Multiemployer plan number of employer."
       }
      }
     },
     "auth_ref": []
    },
    "ap_MultiemployerPlanNumberOfEmployerLocations": {
     "xbrltype": "integerItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "MultiemployerPlanNumberOfEmployerLocations",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of employers who contribute to the plan and who have employees that participate in the plan.",
        "label": "Multiemployer Plan Number Of Employer Locations",
        "terseLabel": "Number of employer locations contributed to the plan"
       }
      }
     },
     "auth_ref": []
    },
    "ap_MultiemployerPlanNumberOfEmployerLocationsDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "MultiemployerPlanNumberOfEmployerLocationsDescription",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Multiemployer plan number of employer locations description.",
        "label": "Multiemployer plan number of employer locations description",
        "terseLabel": "Multiemployer plan number of employer locations description"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_MultiemployerPlanPensionSignificantEmployeesCoveredByCollectiveBargainingArrangementToAllParticipantsPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MultiemployerPlanPensionSignificantEmployeesCoveredByCollectiveBargainingArrangementToAllParticipantsPercentage",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Multiemployer Plan, Pension, Significant, Employees Covered by Collective-Bargaining Arrangement to All Participants, Percentage",
        "terseLabel": "Percentage of employees, including ASW, covered by collective bargaining agreements",
        "documentation": "Percentage of entity's employees covered by collective-bargaining arrangement (CBA) to all participants in multiemployer pension plan determined to be individually significant."
       }
      }
     },
     "auth_ref": [
      "r1286"
     ]
    },
    "us-gaap_MultiemployerPlanPensionSignificantEmployerContributionUnderCollectiveBargainingArrangementToTotalEmployerContributionPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MultiemployerPlanPensionSignificantEmployerContributionUnderCollectiveBargainingArrangementToTotalEmployerContributionPercentage",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Multiemployer Plan, Pension, Significant, Employer Contribution under Collective-Bargaining Arrangement to Total Employer Contribution, Percentage",
        "terseLabel": "Percentage of employers contributions",
        "documentation": "Percentage of employer contribution required by collective-bargaining arrangement (CBA) to total employer contribution for multiemployer pension plan determined to be individually significant."
       }
      }
     },
     "auth_ref": [
      "r1090"
     ]
    },
    "us-gaap_MultiemployerPlanPensionSignificantPlanAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "MultiemployerPlanPensionSignificantPlanAsset",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Multiemployer Plan, Pension, Significant, Plan Asset",
        "terseLabel": "Total amount of assets collected",
        "documentation": "Amount of asset available for benefits to participants in multiemployer pension plan determined to be individually significant."
       }
      }
     },
     "auth_ref": [
      "r587",
      "r590",
      "r1094"
     ]
    },
    "ap_MultiemployerPlanPensionSignificantPlanAssetDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "MultiemployerPlanPensionSignificantPlanAssetDescription",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Multiemployer plan pension significant plan asset description.",
        "label": "Multiemployer plan pension significant plan asset description",
        "terseLabel": "Multiemployer plan pension significant plan asset description"
       }
      }
     },
     "auth_ref": []
    },
    "ap_MultiemployerPlansFundedStatusDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "MultiemployerPlansFundedStatusDescription",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Multiemployer plans funded status description.",
        "label": "Multiemployer plans funded status description",
        "terseLabel": "Multiemployer plans funded status description"
       }
      }
     },
     "auth_ref": []
    },
    "ap_MultiemployerPlansFundedStatusPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "MultiemployerPlansFundedStatusPercentage",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The fair value of plan assets as of the end of the reporting period as a percentage of benefit obligations as of the end of the reporting period.",
        "label": "Multiemployer Plans Funded Status Percentage",
        "terseLabel": "Percentage of funded status in excess"
       }
      }
     },
     "auth_ref": []
    },
    "ap_NaturalGasAndElectricityPurchasedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "NaturalGasAndElectricityPurchasedMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Natural gas and electricity purchased.",
        "label": "Natural Gas And Electricity Purchased [Member]",
        "terseLabel": "Natural Gas And Electricity Purchased [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NaturalGasGatheringTransportationMarketingAndProcessingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NaturalGasGatheringTransportationMarketingAndProcessingMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Natural Gas And Electricity Purchased [Member]",
        "label": "Natural Gas, Gathering, Transportation, Marketing and Processing [Member]",
        "documentation": "Process related to midstream and downstream activity for flammable gas occurring naturally underground. Activity includes, but is not limited to, refining, marketing, gathering from well, processing to remove impurity, storage, transmission, and sale of natural gas and related products."
       }
      }
     },
     "auth_ref": [
      "r1222"
     ]
    },
    "ap_NaturalGasUsageMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "NaturalGasUsageMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Natural gas usage.",
        "label": "Natural Gas Usage [Member]",
        "terseLabel": "Natural Gas Usage [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInFinancingActivities",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Financing Activities",
        "totalLabel": "Net cash flows provided by financing activities",
        "documentation": "Amount of cash inflow (outflow) from financing activities, including discontinued operations. Financing activity cash flows include obtaining resources from owners and providing them with a return on, and a return of, their investment; borrowing money and repaying amounts borrowed, or settling the obligation; and obtaining and paying for other resources obtained from creditors on long-term credit."
       }
      }
     },
     "auth_ref": [
      "r289"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInFinancingActivitiesAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Financing Activities [Abstract]",
        "terseLabel": "Cash flows from financing activities:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInInvestingActivities",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Investing Activities",
        "totalLabel": "Net cash flows used in investing activities",
        "documentation": "Amount of cash inflow (outflow) from investing activities, including discontinued operations. Investing activity cash flows include making and collecting loans and acquiring and disposing of debt or equity instruments and property, plant, and equipment and other productive assets."
       }
      }
     },
     "auth_ref": [
      "r289"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInInvestingActivitiesAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Investing Activities [Abstract]",
        "terseLabel": "Cash flows from investing activities:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInOperatingActivities",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Operating Activities",
        "totalLabel": "Net cash flows used in operating activities",
        "documentation": "Amount of cash inflow (outflow) from operating activities, including discontinued operations. Operating activity cash flows include transactions, adjustments, and changes in value not defined as investing or financing activities."
       }
      }
     },
     "auth_ref": [
      "r177",
      "r178",
      "r179"
     ]
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetCashProvidedByUsedInOperatingActivitiesAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Operating Activities [Abstract]",
        "terseLabel": "Cash flows from operating activities:"
       }
      }
     },
     "auth_ref": []
    },
    "ap_NetChargeOfLossIncomeBeforeIncomeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "NetChargeOfLossIncomeBeforeIncomeTax",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net charge",
        "label": "Net Charge of Loss Income Before Income Tax",
        "documentation": "Net charge of loss income before income tax."
       }
      }
     },
     "auth_ref": []
    },
    "ap_NetCreditOfReductionInTheEstimatedDefense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "NetCreditOfReductionInTheEstimatedDefense",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net credit of reduction in the estimated defense",
        "label": "Net Credit of Reduction in the Estimated Defense",
        "documentation": "Net credit of reduction in the estimated defense."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetIncomeLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetIncomeLoss",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossLineItemsAffectedOnConsolidatedStatementsOfOperationsForComponentsReclassifiedFromAccumulatedOtherComprehensiveLossDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossLineItemsAffectedOnConsolidatedStatementsOfOperationsForComponentsReclassifiedFromAccumulatedOtherComprehensiveLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net (loss) income attributable to Ampco-Pittsburgh",
        "terseLabel": "Net Income (Loss)",
        "label": "Net Income (Loss)",
        "documentation": "The portion of profit or loss for the period, net of income taxes, which is attributable to the parent."
       }
      }
     },
     "auth_ref": [
      "r167",
      "r179",
      "r220",
      "r245",
      "r272",
      "r275",
      "r280",
      "r295",
      "r313",
      "r317",
      "r318",
      "r320",
      "r321",
      "r325",
      "r326",
      "r332",
      "r345",
      "r359",
      "r365",
      "r368",
      "r384",
      "r433",
      "r434",
      "r436",
      "r437",
      "r438",
      "r440",
      "r442",
      "r444",
      "r445",
      "r705",
      "r713",
      "r814",
      "r918",
      "r940",
      "r941",
      "r1062",
      "r1111",
      "r1216"
     ]
    },
    "us-gaap_NetIncomeLossAttributableToNoncontrollingInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NetIncomeLossAttributableToNoncontrollingInterest",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Income (Loss) Attributable to Noncontrolling Interest",
        "terseLabel": "Less: Net income attributable to noncontrolling interest",
        "totalLabel": "Net Income (Loss) Attributable to Noncontrolling Interest, Total",
        "documentation": "Amount of Net Income (Loss) attributable to noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r107",
      "r209",
      "r272",
      "r275",
      "r325",
      "r326",
      "r813",
      "r1165"
     ]
    },
    "us-gaap_NewAccountingPronouncementsPolicyPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NewAccountingPronouncementsPolicyPolicyTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Recently Issued / Adopted Accounting Pronouncements",
        "label": "New Accounting Pronouncements, Policy [Policy Text Block]",
        "documentation": "Disclosure of accounting policy pertaining to new accounting pronouncements that may impact the entity's financial reporting. Includes, but is not limited to, quantification of the expected or actual impact."
       }
      }
     },
     "auth_ref": []
    },
    "ap_NewCreditFacilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "NewCreditFacilityMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "New Credit Facility [Member]",
        "label": "New Credit Facility [Member]",
        "documentation": "New credit facility."
       }
      }
     },
     "auth_ref": []
    },
    "ap_NonCashProvisionsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "NonCashProvisionsNet",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Non cash provisions net.",
        "label": "Non Cash Provisions Net",
        "negatedLabel": "Non-cash provisions \u2013 net",
        "terseLabel": "Non-cash provisions - net"
       }
      }
     },
     "auth_ref": []
    },
    "ap_NonMesotheliomaClaimsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "NonMesotheliomaClaimsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non Mesothelioma Claims [Member]",
        "label": "Non-mesothelioma Claims [Member]",
        "documentation": "Non-mesothelioma claims."
       }
      }
     },
     "auth_ref": []
    },
    "ap_NonQualifiedDefinedBenefitPensionPlansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "NonQualifiedDefinedBenefitPensionPlansMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Non Qualified Defined Benefit Pension Plans [Member]",
        "label": "Non Qualified Defined Benefit Pension Plans [Member]",
        "terseLabel": "Nonqualified Defined Benefit Pension Plan [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_NonUSSubsidiariesAndAffiliatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "NonUSSubsidiariesAndAffiliatesMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Non-U.S. subsidiaries and affiliates.",
        "label": "Non U S Subsidiaries And Affiliates [Member]",
        "terseLabel": "Non-U.S. Subsidiaries and Affiliates [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NoncashInvestingAndFinancingItemsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoncashInvestingAndFinancingItemsAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noncash Investing and Financing Items [Abstract]",
        "terseLabel": "Non-cash investing and financing activities:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NoncontrollingInterestMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoncontrollingInterestMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noncontrolling Interest [Member]",
        "terseLabel": "Noncontrolling Interest [Member]",
        "documentation": "This element represents that portion of equity (net assets) in a subsidiary not attributable, directly or indirectly, to the parent. A noncontrolling interest is sometimes called a minority interest."
       }
      }
     },
     "auth_ref": [
      "r102",
      "r484",
      "r1182",
      "r1183",
      "r1184",
      "r1357"
     ]
    },
    "us-gaap_NoncurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NoncurrentAssets",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Lived Assets",
        "terseLabel": "Long-lived Assets",
        "documentation": "Long-lived assets other than financial instruments, long-term customer relationships of a financial institution, mortgage and other servicing rights, deferred policy acquisition costs, and deferred tax assets."
       }
      }
     },
     "auth_ref": [
      "r373"
     ]
    },
    "us-gaap_NonoperatingIncomeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NonoperatingIncomeExpense",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total other (expense) income",
        "label": "Nonoperating Income (Expense)",
        "documentation": "The aggregate amount of income or expense from ancillary business-related activities (that is to say, excluding major activities considered part of the normal operations of the business)."
       }
      }
     },
     "auth_ref": [
      "r172"
     ]
    },
    "us-gaap_NonvestedRestrictedStockSharesActivityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NonvestedRestrictedStockSharesActivityTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Outstanding Restricted Stock Awards",
        "label": "Nonvested Restricted Stock Shares Activity [Table Text Block]",
        "documentation": "Tabular disclosure of the changes in outstanding nonvested restricted stock shares."
       }
      }
     },
     "auth_ref": [
      "r26"
     ]
    },
    "ap_NumberOfAdditionalDefinedBenefitPensionPlans": {
     "xbrltype": "integerItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "NumberOfAdditionalDefinedBenefitPensionPlans",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of additional defined benefit pension plans.",
        "label": "Number Of Additional Defined Benefit Pension Plans",
        "terseLabel": "Number of additional defined benefit pension plans"
       }
      }
     },
     "auth_ref": []
    },
    "ap_NumberOfCategories": {
     "xbrltype": "integerItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "NumberOfCategories",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of categories.",
        "label": "Number Of Categories",
        "terseLabel": "Number of categories"
       }
      }
     },
     "auth_ref": []
    },
    "ap_NumberOfDefinedBenefitPensionPlans": {
     "xbrltype": "integerItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "NumberOfDefinedBenefitPensionPlans",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of defined benefit pension plans.",
        "label": "Number Of Defined Benefit Pension Plans",
        "terseLabel": "Number of defined benefit pension plans"
       }
      }
     },
     "auth_ref": []
    },
    "ap_NumberOfDerivativeInstrumentsHoldsForTradingPurposes": {
     "xbrltype": "integerItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "NumberOfDerivativeInstrumentsHoldsForTradingPurposes",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of derivative instruments holds for trading purposes.",
        "label": "Number Of Derivative Instruments Holds For Trading Purposes",
        "terseLabel": "Number of derivative instruments holds for trading purposes"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NumberOfForeignCurrencyDerivativesHeld": {
     "xbrltype": "integerItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NumberOfForeignCurrencyDerivativesHeld",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Number of Foreign Currency Derivatives Held",
        "terseLabel": "Number of outstanding foreign currency sales contracts",
        "documentation": "Number of foreign currency exchange rate derivatives held by the entity at the reporting date."
       }
      }
     },
     "auth_ref": [
      "r111",
      "r112"
     ]
    },
    "us-gaap_NumberOfOperatingSegments": {
     "xbrltype": "integerItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NumberOfOperatingSegments",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDescriptionOfBusinessAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Number of Operating Segments",
        "terseLabel": "Number of business segments",
        "documentation": "Number of operating segments. An operating segment is a component of an enterprise: (a) that engages in business activities from which it may earn revenues and incur expenses (including revenues and expenses relating to transactions with other components of the same enterprise), (b) whose operating results are regularly reviewed by the enterprise's chief operating decision maker to make decisions about resources to be allocated to the segment and assess its performance, and (c) for which discrete financial information is available. An operating segment may engage in business activities for which it has yet to earn revenues, for example, start-up operations may be operating segments before earning revenues."
       }
      }
     },
     "auth_ref": [
      "r1188"
     ]
    },
    "us-gaap_NumberOfReportableSegments": {
     "xbrltype": "integerItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "NumberOfReportableSegments",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Number of Reportable Segments",
        "terseLabel": "Number of reportable business segments",
        "documentation": "Number of segments reported by the entity. A reportable segment is a component of an entity for which there is an accounting requirement to report separate financial information on that component in the entity's financial statements."
       }
      }
     },
     "auth_ref": [
      "r1188"
     ]
    },
    "ap_NumberOfSubsidiariesForPurchasesOfNaturalGasUnderExistingCommitments": {
     "xbrltype": "integerItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "NumberOfSubsidiariesForPurchasesOfNaturalGasUnderExistingCommitments",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of subsidiaries for purchases of natural gas under existing commitments.",
        "label": "Number Of Subsidiaries For Purchases Of Natural Gas Under Existing Commitments",
        "terseLabel": "Number of subsidiaries for purchases of natural gas under existing commitments"
       }
      }
     },
     "auth_ref": []
    },
    "ap_NumberOfSubsidiariesForUsageOfElectricityUnderExistingCommitments": {
     "xbrltype": "integerItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "NumberOfSubsidiariesForUsageOfElectricityUnderExistingCommitments",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of subsidiaries for usage of electricity under existing commitments.",
        "label": "Number Of Subsidiaries For Usage Of Electricity Under Existing Commitments",
        "terseLabel": "Number of subsidiaries for usage of electricity under existing commitments"
       }
      }
     },
     "auth_ref": []
    },
    "ap_NumberOfSubsidiariesHavingPostretirementHealthCareBenefits": {
     "xbrltype": "integerItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "NumberOfSubsidiariesHavingPostretirementHealthCareBenefits",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of subsidiaries having postretirement health care benefits.",
        "label": "Number Of Subsidiaries Having Postretirement Health Care Benefits",
        "terseLabel": "Number of subsidiaries having postretirement health care benefits"
       }
      }
     },
     "auth_ref": []
    },
    "ap_NumberOfSuretyBondsIssued": {
     "xbrltype": "integerItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "NumberOfSuretyBondsIssued",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of surety bonds issued.",
        "label": "Number Of Surety Bonds Issued",
        "terseLabel": "Number of surety bonds issued"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OperatingCostsAndExpensesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingCostsAndExpensesAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Costs and Expenses [Abstract]",
        "terseLabel": "Operating costs and expenses:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OperatingIncomeLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingIncomeLoss",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations": {
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "(Loss) income from operations",
        "label": "Operating Income (Loss)",
        "terseLabel": "Income (loss) from operations",
        "documentation": "The net result for the period of deducting operating expenses from operating revenues."
       }
      }
     },
     "auth_ref": [
      "r345",
      "r359",
      "r365",
      "r368",
      "r1062"
     ]
    },
    "us-gaap_OperatingLeaseLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseLiability",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfFutureOperatingLeasePaymentsDetail2": {
       "parentTag": "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue",
       "weight": 1.0,
       "order": 1.0
      },
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfCurrentAndNonCurrentPortionsOfOperatingLeaseArrangementsDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfCurrentAndNonCurrentPortionsOfOperatingLeaseArrangementsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfFutureOperatingLeasePaymentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Lease, Liability",
        "terseLabel": "Present value of net minimum lease payments",
        "totalLabel": "Total operating lease liabilities",
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease."
       }
      }
     },
     "auth_ref": [
      "r744"
     ]
    },
    "us-gaap_OperatingLeaseLiabilityCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseLiabilityCurrent",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfCurrentAndNonCurrentPortionsOfOperatingLeaseArrangementsDetail": {
       "parentTag": "us-gaap_OperatingLeaseLiability",
       "weight": 1.0,
       "order": 0.0
      },
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfCurrentAndNonCurrentPortionsOfOperatingLeaseArrangementsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Lease, Liability, Current",
        "terseLabel": "Operating lease liabilities \u2013 current portion",
        "verboseLabel": "Operating lease liabilities \u2013 current portion",
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease, classified as current."
       }
      }
     },
     "auth_ref": [
      "r744"
     ]
    },
    "us-gaap_OperatingLeaseLiabilityNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseLiabilityNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfCurrentAndNonCurrentPortionsOfOperatingLeaseArrangementsDetail": {
       "parentTag": "us-gaap_OperatingLeaseLiability",
       "weight": 1.0,
       "order": 1.0
      },
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesSummaryOfCurrentAndNonCurrentPortionsOfOperatingLeaseArrangementsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Lease, Liability, Noncurrent",
        "terseLabel": "Noncurrent operating lease liabilities",
        "verboseLabel": "Noncurrent operating lease liabilities",
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease, classified as noncurrent."
       }
      }
     },
     "auth_ref": [
      "r744"
     ]
    },
    "us-gaap_OperatingLeasePayments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeasePayments",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Lease, Payments",
        "terseLabel": "Operating lease liabilities",
        "documentation": "Amount of cash outflow from operating lease, excluding payments to bring another asset to condition and location necessary for its intended use."
       }
      }
     },
     "auth_ref": [
      "r747",
      "r750"
     ]
    },
    "us-gaap_OperatingLeaseRightOfUseAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseRightOfUseAsset",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureOperatingLeaseRightofuseAssetsScheduleOfTheNetBookValueOfRightofuseAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Lease, Right-of-Use Asset",
        "terseLabel": "Operating lease right-of-use assets, net",
        "totalLabel": "Operating lease right-of-use assets, net",
        "documentation": "Amount of lessee's right to use underlying asset under operating lease."
       }
      }
     },
     "auth_ref": [
      "r743"
     ]
    },
    "ap_OperatingLeaseRightOfUseAssetAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "OperatingLeaseRightOfUseAssetAbstract",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Operating lease right of use asset.",
        "label": "Operating Lease Right Of Use Asset [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_OperatingLeaseRightOfUseAssetTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "OperatingLeaseRightOfUseAssetTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseRightOfUseAssets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Operating lease right of use asset.",
        "label": "Operating Lease Right Of Use Asset [Text Block]",
        "terseLabel": "Operating Lease Right of Use Assets"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseWeightedAverageDiscountRatePercent",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Lease, Weighted Average Discount Rate, Percent",
        "terseLabel": "Operating lease, weighted average discount rate",
        "documentation": "Weighted average discount rate for operating lease calculated at point in time."
       }
      }
     },
     "auth_ref": [
      "r753",
      "r1099"
     ]
    },
    "us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLeaseWeightedAverageRemainingLeaseTerm1",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Lease, Weighted Average Remaining Lease Term",
        "terseLabel": "Operating lease, weighted average remaining lease term",
        "documentation": "Weighted average remaining lease term for operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days."
       }
      }
     },
     "auth_ref": [
      "r752",
      "r1099"
     ]
    },
    "ap_OperatingLossCarryForwardExpirationYear": {
     "xbrltype": "gYearItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "OperatingLossCarryForwardExpirationYear",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Year in which identified tax carryforward begins to expire.",
        "label": "Operating Loss Carry Forward Expiration Year",
        "terseLabel": "Operating loss carry forwards expiration period"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OperatingLossCarryforwards": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLossCarryforwards",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Loss Carryforwards",
        "terseLabel": "Net operating loss carryforwards",
        "documentation": "Amount of operating loss carryforward, before tax effects, available to reduce future taxable income under enacted tax laws."
       }
      }
     },
     "auth_ref": [
      "r98"
     ]
    },
    "us-gaap_OperatingLossCarryforwardsLimitationsOnUse": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingLossCarryforwardsLimitationsOnUse",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Loss Carryforwards, Limitations on Use",
        "terseLabel": "Operating loss carryforwards, limitations on use",
        "documentation": "A description of the limitations on the use of all operating loss carryforwards available to reduce future taxable income."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OperatingSegmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OperatingSegmentsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Segments [Member]",
        "terseLabel": "Operating Segments [Member]",
        "documentation": "Identifies components of an entity that engage in business activities from which they may earn revenue and incur expenses, including transactions with other components of the same entity."
       }
      }
     },
     "auth_ref": [
      "r358",
      "r359",
      "r360",
      "r361",
      "r362",
      "r368"
     ]
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Organization, Consolidation and Presentation of Financial Statements [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherAssetsCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherAssetsCurrent",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Assets, Current",
        "terseLabel": "Other current assets",
        "documentation": "Amount of current assets classified as other."
       }
      }
     },
     "auth_ref": [
      "r264",
      "r1100"
     ]
    },
    "us-gaap_OtherAssetsNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherAssetsNoncurrent",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Assets, Noncurrent",
        "terseLabel": "Other noncurrent assets",
        "documentation": "Amount of noncurrent assets classified as other."
       }
      }
     },
     "auth_ref": [
      "r255"
     ]
    },
    "us-gaap_OtherCapitalizedPropertyPlantAndEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherCapitalizedPropertyPlantAndEquipmentMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureOperatingLeaseRightofuseAssetsScheduleOfTheNetBookValueOfRightofuseAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Capitalized Property Plant and Equipment [Member]",
        "terseLabel": "Other [Member]",
        "documentation": "All other long term capitalized assets related to property plant and equipment not otherwise previously categorized."
       }
      }
     },
     "auth_ref": [
      "r189"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLossIncome": {
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLossIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income (Loss), Foreign Currency Transaction and Translation Gain (Loss) Arising During Period, Net of Tax",
        "terseLabel": "Foreign currency translation",
        "documentation": "Amount after tax, before reclassification adjustments of gain (loss) on foreign currency translation adjustments, foreign currency transactions designated and effective as economic hedges of a net investment in a foreign entity and intra-entity foreign currency transactions that are of a long-term-investment nature."
       }
      }
     },
     "auth_ref": [
      "r4",
      "r164",
      "r720",
      "r722",
      "r726"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeLossAmortizationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetPriorServiceCostCreditNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossAmortizationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetPriorServiceCostCreditNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLossIncome": {
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLossIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive (Income) Loss, Defined Benefit Plan, Prior Service Cost (Credit), Reclassification Adjustment from AOCI, after Tax",
        "terseLabel": "Amortization of unrecognized employee benefit costs",
        "documentation": "Amount, after tax, of reclassification adjustment from accumulated other comprehensive (income) loss for prior service cost (credit) of defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r8",
      "r164",
      "r271",
      "r553"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationTax",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossSummaryOfIncomeTaxEffectAssociatedWithVariousComponentsOfOtherComprehensiveLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), after Reclassification, Tax",
        "terseLabel": "Settlement of cash flow hedges",
        "totalLabel": "Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), after Reclassification, Tax, Total",
        "documentation": "Amount, after reclassification, of tax expense (benefit) for gain (loss) from derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness."
       }
      }
     },
     "auth_ref": [
      "r268"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLossIncome": {
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfAmountRecognizedAsAndReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLossIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), before Reclassification, after Tax",
        "terseLabel": "Fair value of cash flow hedges",
        "verboseLabel": "Recognized",
        "documentation": "Amount, after tax and before reclassification, of gain (loss) from derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness."
       }
      }
     },
     "auth_ref": [
      "r266",
      "r267"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationTax",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossSummaryOfIncomeTaxEffectAssociatedWithVariousComponentsOfOtherComprehensiveLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), before Reclassification, Tax",
        "terseLabel": "Fair value of cash flow hedges",
        "documentation": "Amount, before reclassification, of tax expense (benefit) for gain (loss) from derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness."
       }
      }
     },
     "auth_ref": [
      "r268"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLossIncome": {
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfAmountRecognizedAsAndReclassifiedFromAccumulatedOtherComprehensiveIncomeLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLossIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), Reclassification, after Tax",
        "verboseLabel": "Reclassified",
        "negatedLabel": "Settlement of cash flow hedges",
        "terseLabel": "Settlement of cash flow hedges",
        "documentation": "Amount, after tax, of reclassification of gain (loss) from accumulated other comprehensive income (AOCI) for derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness."
       }
      }
     },
     "auth_ref": [
      "r267",
      "r270"
     ]
    },
    "ap_OtherComprehensiveIncomeLossGrossAdjustmentsNetOfTaxAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "OtherComprehensiveIncomeLossGrossAdjustmentsNetOfTaxAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLossIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other comprehensive income loss gross adjustments net of tax.",
        "label": "Other Comprehensive Income Loss Gross Adjustments Net Of Tax [Abstract]",
        "terseLabel": "Adjustments for changes in:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLossIncome": {
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossNetChangesAndEndingBalancesForVariousComponentsOfOtherComprehensiveLossAndAccumulatedOtherCompr",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity",
      "http://ampcopgh.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLossIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other comprehensive loss",
        "totalLabel": "Other comprehensive loss",
        "label": "Other Comprehensive Income (Loss), Net of Tax",
        "verboseLabel": "Net change",
        "documentation": "Amount after tax and reclassification adjustments of other comprehensive income (loss)."
       }
      }
     },
     "auth_ref": [
      "r20",
      "r27",
      "r273",
      "r276",
      "r282",
      "r727",
      "r728",
      "r733",
      "r793",
      "r815",
      "r1163",
      "r1164"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income (Loss), Net of Tax [Abstract]",
        "terseLabel": "Comprehensive income (loss):"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLossIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income (Loss), Net of Tax, Portion Attributable to Parent [Abstract]",
        "terseLabel": "Other comprehensive (loss) income, net of income tax where applicable:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeReclassificationAdjustmentsNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeReclassificationAdjustmentsNetOfTax",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLossIncome": {
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLossIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive (Income) Loss, Defined Benefit Plan, before Reclassification Adjustment, after Tax",
        "terseLabel": "Unrecognized employee benefit costs (including effects of foreign currency translation)",
        "totalLabel": "Other Comprehensive (Income) Loss, Defined Benefit Plan, before Reclassification Adjustment, after Tax, Total",
        "negatedLabel": "Unrecognized employee benefit costs (including effects of foreign currency translation)",
        "documentation": "Amount, after tax, before reclassification adjustment, of (increase) decrease in accumulated other comprehensive income of defined benefit plan, that has not been recognized in net periodic benefit cost (credit)."
       }
      }
     },
     "auth_ref": [
      "r6",
      "r164"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansBenefitPlanImprovementTaxEffect": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansBenefitPlanImprovementTaxEffect",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossSummaryOfIncomeTaxEffectAssociatedWithVariousComponentsOfOtherComprehensiveLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive (Income) Loss, Defined Benefit Plan, Prior Service Cost (Credit), Tax",
        "terseLabel": "Unrecognized employee benefit costs",
        "documentation": "Amount of tax (expense) benefit for cost (credit) of benefit change attributable to participants' prior service from plan amendment or plan initiation of defined benefit plan, that has not been recognized in net periodic benefit cost (credit)."
       }
      }
     },
     "auth_ref": [
      "r7",
      "r208"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansTax",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossSummaryOfIncomeTaxEffectAssociatedWithVariousComponentsOfOtherComprehensiveLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive (Income) Loss, Defined Benefit Plan, Reclassification Adjustment from AOCI, Tax",
        "terseLabel": "Amortization of unrecognized employee benefit costs",
        "totalLabel": "Other Comprehensive (Income) Loss, Defined Benefit Plan, Reclassification Adjustment from AOCI, Tax, Total",
        "documentation": "Amount of tax (expense) benefit for reclassification adjustment from accumulated other comprehensive (income) loss of defined benefit plan."
       }
      }
     },
     "auth_ref": [
      "r7",
      "r208"
     ]
    },
    "us-gaap_OtherComprehensiveIncomeLossTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherComprehensiveIncomeLossTax",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income (Loss), Tax",
        "terseLabel": "Tax effect due to certain amounts",
        "totalLabel": "Other Comprehensive Income (Loss), Tax, Total",
        "documentation": "Amount of tax expense (benefit) allocated to other comprehensive income (loss)."
       }
      }
     },
     "auth_ref": [
      "r7",
      "r278",
      "r282",
      "r644",
      "r667",
      "r668",
      "r727",
      "r731",
      "r733",
      "r793",
      "r815"
     ]
    },
    "us-gaap_OtherCurrentAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherCurrentAssetsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsLocationAndFairValueOfForeignCurrencySalesContractsRecordedOnConsolidatedBalanceSheetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Current Assets [Member]",
        "terseLabel": "Other Current Assets [Member]",
        "documentation": "Primary financial statement caption encompassing other current assets."
       }
      }
     },
     "auth_ref": [
      "r116",
      "r126"
     ]
    },
    "us-gaap_OtherCurrentLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherCurrentLiabilitiesMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsLocationAndFairValueOfForeignCurrencySalesContractsRecordedOnConsolidatedBalanceSheetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Current Liabilities [Member]",
        "terseLabel": "Other Current Liabilities [Member]",
        "documentation": "Primary financial statement caption encompassing other current liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherLiabilitiesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherLiabilitiesCurrent",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0,
       "order": 7.0
      },
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Liabilities, Current",
        "terseLabel": "Other current liabilities",
        "totalLabel": "Other current liabilities",
        "documentation": "Amount of liabilities classified as other, due within one year or the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r34",
      "r1100"
     ]
    },
    "us-gaap_OtherLiabilitiesDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherLiabilitiesDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Liabilities Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_OtherLiabilitiesDisclosureLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "OtherLiabilitiesDisclosureLineItems",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other liabilities disclosure.",
        "label": "Other Liabilities Disclosure [Line Items]",
        "terseLabel": "Other Liabilities Disclosure [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_OtherLiabilitiesDisclosureTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "OtherLiabilitiesDisclosureTable",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other liabilities disclosure.",
        "label": "Other Liabilities Disclosure [Table]",
        "terseLabel": "Other Liabilities Disclosure [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherLiabilitiesDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherLiabilitiesDisclosureTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Liabilities Disclosure [Text Block]",
        "terseLabel": "Other Current Liabilities",
        "documentation": "The entire disclosure for other liabilities."
       }
      }
     },
     "auth_ref": [
      "r35"
     ]
    },
    "us-gaap_OtherLiabilitiesNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherLiabilitiesNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Liabilities, Noncurrent",
        "terseLabel": "Other noncurrent liabilities",
        "documentation": "Amount of liabilities classified as other, due after one year or the normal operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r40"
     ]
    },
    "us-gaap_OtherMachineryAndEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherMachineryAndEquipmentMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Machinery and Equipment [Member]",
        "terseLabel": "Other [Member]",
        "documentation": "Other tangible personal property, nonconsumable in nature, with finite lives used to produce goods and services."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherNoncurrentAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherNoncurrentAssetsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsLocationAndFairValueOfForeignCurrencySalesContractsRecordedOnConsolidatedBalanceSheetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureFairValueFairValueOfFinancialAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Noncurrent Assets [Member]",
        "terseLabel": "Other Noncurrent Assets [Member]",
        "documentation": "Primary financial statement caption encompassing other noncurrent assets."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherNoncurrentLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherNoncurrentLiabilitiesMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsLocationAndFairValueOfForeignCurrencySalesContractsRecordedOnConsolidatedBalanceSheetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Noncurrent Liabilities [Member]",
        "terseLabel": "Other Noncurrent Liabilities [Member]",
        "documentation": "Primary financial statement caption encompassing other noncurrent liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherNonoperatingIncomeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherNonoperatingIncomeExpense",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossLineItemsAffectedOnConsolidatedStatementsOfOperationsForComponentsReclassifiedFromAccumulatedOtherComprehensiveLossDetail": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0,
       "order": 1.0
      },
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations": {
       "parentTag": "us-gaap_NonoperatingIncomeExpense",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossLineItemsAffectedOnConsolidatedStatementsOfOperationsForComponentsReclassifiedFromAccumulatedOtherComprehensiveLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Nonoperating Income (Expense)",
        "terseLabel": "Other \u2013 net",
        "verboseLabel": "Other \u2013 net",
        "totalLabel": "Other Nonoperating Income (Expense), Total",
        "documentation": "Amount of income (expense) related to nonoperating activities, classified as other."
       }
      }
     },
     "auth_ref": [
      "r174"
     ]
    },
    "us-gaap_OtherNonoperatingIncomeExpenseAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherNonoperatingIncomeExpenseAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other (expense) income:",
        "label": "Other Nonoperating Income (Expense) [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherOperatingActivitiesCashFlowStatement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherOperatingActivitiesCashFlowStatement",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Operating Activities, Cash Flow Statement",
        "terseLabel": "Other \u2013 net",
        "documentation": "Other cash or noncash adjustments to reconcile net income to cash provided by (used in) operating activities that are not separately disclosed in the statement of cash flows (for example, cash received or cash paid during the current period for miscellaneous operating activities, net change during the reporting period in other assets or other liabilities)."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherPostretirementBenefitPlansDefinedBenefitMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosurePensionAndOtherPostretirementBenefitsComponentsOfActuarialLossesGainsInProjectedBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssumptionsRegardingNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsDiscountRatesUsedToDetermineBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfAccumulatedOtherComprehensiveLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInProjectedBenefitObligationsPBODetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfFundedStatusOfPlansDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfAmountsRecognizedInConsolidatedBalanceSheetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Postretirement Benefits Plan [Member]",
        "terseLabel": "Other Postretirement Benefit Plans [Member]",
        "documentation": "Plan designed to provide other postretirement benefits. Includes, but is not limited to, defined benefit and defined contribution plans. Excludes pension benefits."
       }
      }
     },
     "auth_ref": [
      "r509",
      "r512",
      "r513",
      "r514",
      "r515",
      "r516",
      "r517",
      "r518",
      "r519",
      "r520",
      "r521",
      "r522",
      "r523",
      "r524",
      "r525",
      "r526",
      "r527",
      "r528",
      "r529",
      "r530",
      "r531",
      "r532",
      "r533",
      "r534",
      "r536",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552",
      "r553",
      "r554",
      "r556",
      "r558",
      "r559",
      "r561",
      "r564",
      "r567",
      "r571",
      "r572",
      "r573",
      "r574",
      "r575",
      "r576",
      "r577",
      "r578",
      "r579",
      "r580",
      "r584",
      "r585",
      "r586",
      "r1085",
      "r1086",
      "r1087",
      "r1088",
      "r1089"
     ]
    },
    "us-gaap_OtherSundryLiabilitiesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherSundryLiabilitiesCurrent",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail": {
       "parentTag": "us-gaap_OtherLiabilitiesCurrent",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesScheduleOfOtherCurrentLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Sundry Liabilities, Current",
        "terseLabel": "Other",
        "documentation": "Obligations not otherwise itemized or categorized in the footnotes to the financial statements that are due within one year or operating cycle, if longer, from the balance sheet date."
       }
      }
     },
     "auth_ref": [
      "r34",
      "r80"
     ]
    },
    "srt_OwnershipAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "OwnershipAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInvestmentsInJointVenturesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ownership [Axis]",
        "terseLabel": "Ownership"
       }
      }
     },
     "auth_ref": []
    },
    "srt_OwnershipDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "OwnershipDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInvestmentsInJointVenturesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ownership [Domain]",
        "terseLabel": "Ownership"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PaymentOfFinancingAndStockIssuanceCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentOfFinancingAndStockIssuanceCosts",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Payment of Financing and Stock Issuance Costs, Total",
        "label": "Payment of Financing and Stock Issuance Costs",
        "negatedLabel": "Debt and equity issuance costs",
        "documentation": "The total of the cash outflow during the period which has been paid to third parties in connection with debt origination, which will be amortized over the remaining maturity period of the associated long-term debt and the cost incurred directly for the issuance of equity securities."
       }
      }
     },
     "auth_ref": [
      "r48"
     ]
    },
    "us-gaap_PaymentsForProceedsFromOtherInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsForProceedsFromOtherInvestingActivities",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments for (Proceeds from) Other Investing Activities",
        "negatedLabel": "Other \u2013 net",
        "documentation": "Amount of cash (inflow) outflow from investing activities classified as other."
       }
      }
     },
     "auth_ref": [
      "r1140",
      "r1166"
     ]
    },
    "us-gaap_PaymentsOfStockIssuanceCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsOfStockIssuanceCosts",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments of Stock Issuance Costs",
        "terseLabel": "Stock issuance costs",
        "documentation": "The cash outflow for cost incurred directly with the issuance of an equity security."
       }
      }
     },
     "auth_ref": [
      "r48"
     ]
    },
    "ap_PaymentsOnSaleAndLeasebackFinancingArrangements": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "PaymentsOnSaleAndLeasebackFinancingArrangements",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Payments on sale and leaseback financing arrangements",
        "label": "Payments On Sale And Leaseback Financing Arrangements",
        "documentation": "Payments on sale and leaseback financing arrangements."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PaymentsToAcquireMachineryAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsToAcquireMachineryAndEquipment",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments to Acquire Machinery and Equipment",
        "terseLabel": "Machinery and equipment purchased",
        "documentation": "The cash outflow for acquisition of machinery and equipment."
       }
      }
     },
     "auth_ref": [
      "r176"
     ]
    },
    "us-gaap_PaymentsToAcquireMarketableSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsToAcquireMarketableSecurities",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments to Acquire Marketable Securities",
        "negatedLabel": "Purchases of long-term marketable securities",
        "documentation": "Amount of cash outflow for purchase of marketable security."
       }
      }
     },
     "auth_ref": [
      "r1191"
     ]
    },
    "us-gaap_PaymentsToAcquirePropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PaymentsToAcquirePropertyPlantAndEquipment",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments to Acquire Property, Plant, and Equipment",
        "terseLabel": "Capital Expenditures",
        "negatedLabel": "Purchases of property, plant and equipment",
        "totalLabel": "Payments to Acquire Property, Plant, and Equipment, Total",
        "documentation": "The cash outflow associated with the acquisition of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale; includes cash outflows to pay for construction of self-constructed assets."
       }
      }
     },
     "auth_ref": [
      "r176"
     ]
    },
    "ap_PensionAndOtherPostRetirementBenefitExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "PensionAndOtherPostRetirementBenefitExpenses",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The adjustment to exclude the noncash portion amount of, and to include the cash portion amount of, pension and other (such as medical, dental and life insurance) postretirement benefit costs recognized during the period for defined benefit plans (periodic benefit costs include the following components: service cost, interest cost, expected return on plan assets, gain (loss) on assets, prior service cost or credit, transition asset or obligation, and gain (loss) due to settlements or curtailments).",
        "label": "Pension And Other Post Retirement Benefit Expenses",
        "terseLabel": "Difference between net periodic pension and other postretirement costs and contributions"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PensionAndOtherPostretirementBenefitsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefits"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retirement Benefits [Text Block]",
        "terseLabel": "Pension and Other Postretirement Benefits",
        "documentation": "The entire disclosure for retirement benefits."
       }
      }
     },
     "auth_ref": [
      "r508",
      "r533",
      "r535",
      "r541",
      "r560",
      "r562",
      "r563",
      "r564",
      "r565",
      "r566",
      "r581",
      "r582",
      "r584",
      "r1085"
     ]
    },
    "us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfAmountsRecognizedInConsolidatedBalanceSheetsDetail": {
       "parentTag": "us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfAmountsRecognizedInConsolidatedBalanceSheetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liability, Defined Benefit Plan, Current",
        "negatedLabel": "Accrued payrolls and employee benefits",
        "documentation": "Amount of liability, recognized in statement of financial position, for defined benefit pension and other postretirement plans, classified as current."
       }
      }
     },
     "auth_ref": [
      "r148",
      "r509",
      "r510",
      "r532",
      "r1085"
     ]
    },
    "us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfAmountsRecognizedInConsolidatedBalanceSheetsDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfAmountsRecognizedInConsolidatedBalanceSheetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liability, Defined Benefit Plan",
        "negatedTotalLabel": "Total employee benefit obligations",
        "totalLabel": "Liability, Defined Benefit Plan, Total",
        "documentation": "Amount of liability, recognized in statement of financial position, for defined benefit pension and other postretirement plans."
       }
      }
     },
     "auth_ref": [
      "r215",
      "r510",
      "r532",
      "r1353"
     ]
    },
    "us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0,
       "order": 1.0
      },
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfAmountsRecognizedInConsolidatedBalanceSheetsDetail": {
       "parentTag": "us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfAmountsRecognizedInConsolidatedBalanceSheetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liability, Defined Benefit Plan, Noncurrent",
        "terseLabel": "Employee benefit obligations",
        "negatedLabel": "Employee benefit obligations",
        "totalLabel": "Liability, Defined Benefit Plan, Noncurrent, Total",
        "documentation": "Amount of liability, recognized in statement of financial position, for defined benefit pension and other postretirement plans, classified as noncurrent."
       }
      }
     },
     "auth_ref": [
      "r149",
      "r509",
      "r510",
      "r532",
      "r1085"
     ]
    },
    "us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansNoncurrentLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PensionAndOtherPostretirementDefinedBenefitPlansNoncurrentLiabilitiesAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfAmountsRecognizedInConsolidatedBalanceSheetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liability, Defined Benefit Plan [Abstract]",
        "terseLabel": "Employee benefit obligations:"
       }
      }
     },
     "auth_ref": []
    },
    "ap_PensionAndOtherPostretirementDefinedBenefitPlansPrepaidPensions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "PensionAndOtherPostretirementDefinedBenefitPlansPrepaidPensions",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfAmountsRecognizedInConsolidatedBalanceSheetsDetail": {
       "parentTag": "us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent",
       "weight": -1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfAmountsRecognizedInConsolidatedBalanceSheetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Pension and other postretirement defined benefit plans prepaid pensions.",
        "label": "Pension And Other Postretirement Defined Benefit Plans Prepaid Pensions",
        "terseLabel": "Prepaid pensions"
       }
      }
     },
     "auth_ref": []
    },
    "ap_PensionPlanSelfSufficiencyReachingPeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "PensionPlanSelfSufficiencyReachingPeriod",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Pension plan self sufficiency reaching period.",
        "label": "Pension Plan Self Sufficiency Reaching Period",
        "terseLabel": "Self-sufficiency reaching period"
       }
      }
     },
     "auth_ref": []
    },
    "ap_PensionPlansDefinedBenefitAlternativeInvestmentsAbsoluteReturnFundsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "PensionPlansDefinedBenefitAlternativeInvestmentsAbsoluteReturnFundsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Pension plans defined benefit alternative investments absolute return funds.",
        "label": "Pension Plans Defined Benefit Alternative Investments Absolute Return Funds [Member]",
        "terseLabel": "Alternative Investments, Absolute Return Funds [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_PensionPlansDefinedBenefitEquitySecuritiesCommingledFundsInternationalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "PensionPlansDefinedBenefitEquitySecuritiesCommingledFundsInternationalMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Pension plans defined benefit equity securities commingled funds (International).",
        "label": "Pension Plans Defined Benefit Equity Securities Commingled Funds International [Member]",
        "terseLabel": "Equity Securities, Commingled Funds (International) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_PensionPlansDefinedBenefitEquitySecuritiesCommingledFundsUKMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "PensionPlansDefinedBenefitEquitySecuritiesCommingledFundsUKMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Pension plans defined benefit equity securities commingled funds (U.K.).",
        "label": "Pension Plans Defined Benefit Equity Securities Commingled Funds U K [Member]",
        "terseLabel": "Equity Securities, Commingled Funds (U.K.) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_PensionPlansDefinedBenefitFixedIncomeSecuritiesCommingledFundsInternationalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "PensionPlansDefinedBenefitFixedIncomeSecuritiesCommingledFundsInternationalMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Pension plans defined benefit fixed-income securities commingled funds international.",
        "label": "Pension Plans Defined Benefit Fixed Income Securities Commingled Funds International [Member]",
        "terseLabel": "Fixed-Income Securities, Commingled Funds (International) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_PensionPlansDefinedBenefitFixedIncomeSecuritiesCommingledFundsUKMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "PensionPlansDefinedBenefitFixedIncomeSecuritiesCommingledFundsUKMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Pension plans defined benefit fixed-income securities commingled funds (U.K.).",
        "label": "Pension Plans Defined Benefit Fixed Income Securities Commingled Funds U K [Member]",
        "terseLabel": "Fixed-Income Securities, Commingled Funds (U.K.) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PensionPlansDefinedBenefitMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PensionPlansDefinedBenefitMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosurePensionAndOtherPostretirementBenefitsComponentsOfActuarialLossesGainsInProjectedBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssumptionsRegardingNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsDiscountRatesUsedToDetermineBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfAccumulatedOtherComprehensiveLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInProjectedBenefitObligationsPBODetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfFundedStatusOfPlansDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfAmountsRecognizedInConsolidatedBalanceSheetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfChangesInFairValueOfLevel3PlanAssetsForUSAndForeignPensionBenefitsPlansDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfTargetAssetAllocationsAndMajorAssetCategoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pension Plan [Member]",
        "terseLabel": "Defined Benefit Pension Plan [Member]",
        "verboseLabel": "Defined Benefit Pension Plan [Member]",
        "documentation": "Plan designed to provide participant with pension benefits. Includes, but is not limited to, defined benefit and defined contribution plans. Excludes other postretirement benefits."
       }
      }
     },
     "auth_ref": [
      "r509",
      "r512",
      "r513",
      "r514",
      "r515",
      "r516",
      "r517",
      "r518",
      "r519",
      "r520",
      "r521",
      "r522",
      "r523",
      "r524",
      "r525",
      "r526",
      "r527",
      "r528",
      "r529",
      "r530",
      "r531",
      "r532",
      "r533",
      "r534",
      "r536",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552",
      "r553",
      "r554",
      "r556",
      "r558",
      "r559",
      "r561",
      "r564",
      "r567",
      "r571",
      "r572",
      "r573",
      "r574",
      "r575",
      "r576",
      "r577",
      "r578",
      "r579",
      "r580",
      "r584",
      "r585",
      "r591",
      "r1085",
      "r1086",
      "r1091",
      "r1092",
      "r1093"
     ]
    },
    "ap_PensionPlansDefinedBenefitMultiAssetCommingledFundsInternationalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "PensionPlansDefinedBenefitMultiAssetCommingledFundsInternationalMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Pension plans defined benefit multi asset commingled funds (International).",
        "label": "Pension Plans Defined Benefit Multi Asset Commingled Funds International [Member]",
        "terseLabel": "Multi Asset Commingled Funds (International) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_PercentageOfAnticipatedPurchasesHedged": {
     "xbrltype": "percentItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "PercentageOfAnticipatedPurchasesHedged",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of anticipated requirements which are covered by cash flow hedges.",
        "label": "Percentage Of Anticipated Purchases Hedged",
        "terseLabel": "Percentage of anticipated purchases hedged"
       }
      }
     },
     "auth_ref": []
    },
    "ap_PercentageOfCoveredEmployeesUnderCollectiveBargainingAgreements": {
     "xbrltype": "percentItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "PercentageOfCoveredEmployeesUnderCollectiveBargainingAgreements",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of covered employees under collective bargaining agreements.",
        "label": "Percentage Of Covered Employees Under Collective Bargaining Agreements",
        "terseLabel": "Percentage of covered employees"
       }
      }
     },
     "auth_ref": []
    },
    "ap_PercentageRateOfGainsOrLossesRecognizesInFairMarketValueOfAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "PercentageRateOfGainsOrLossesRecognizesInFairMarketValueOfAssets",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage rate of gains or losses recognizes in fair market value of assets.",
        "label": "Percentage Rate Of Gains Or Losses Recognizes In Fair Market Value Of Assets",
        "terseLabel": "Percentage rate of gains or losses recognizes in fair market value of assets"
       }
      }
     },
     "auth_ref": []
    },
    "ap_PerformanceBasedRestrictedStockUnitsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "PerformanceBasedRestrictedStockUnitsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingRestrictedStockUnitsRSUAndPerformanceShareAwardsPSUDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Performance Based Restricted Stock Units [Member]",
        "label": "Performance Based Restricted Stock Units [Member]",
        "terseLabel": "Performance-based Restricted Stock Units (PSUs) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_PerformanceObligationRelatedToCustomerDepositsExpectedSatisfactionPeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "PerformanceObligationRelatedToCustomerDepositsExpectedSatisfactionPeriod",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Performance obligation related to customer deposits expected satisfaction period.",
        "label": "Performance Obligation Related To Customer Deposits Expected Satisfaction Period",
        "terseLabel": "Performance obligation related to customer deposits expected satisfaction period"
       }
      }
     },
     "auth_ref": []
    },
    "ap_PeriodForHedgedPurchases": {
     "xbrltype": "durationItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "PeriodForHedgedPurchases",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period covered by cash flow hedges.",
        "label": "Period For Hedged Purchases",
        "terseLabel": "Time period for hedged purchases"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PlanAssetCategoriesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PlanAssetCategoriesDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfChangesInFairValueOfLevel3PlanAssetsForUSAndForeignPensionBenefitsPlansDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfTargetAssetAllocationsAndMajorAssetCategoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Plan Assets, Category [Domain]",
        "terseLabel": "Defined Benefit Plan, Plan Assets, Category",
        "documentation": "Defined benefit plan asset investment."
       }
      }
     },
     "auth_ref": [
      "r533",
      "r534",
      "r536",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r561",
      "r1083",
      "r1084",
      "r1085"
     ]
    },
    "us-gaap_PlanNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PlanNameAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Plan Name [Axis]",
        "terseLabel": "Plan Name",
        "documentation": "Information by plan name for share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r1288",
      "r1289",
      "r1290",
      "r1291",
      "r1292",
      "r1293",
      "r1294",
      "r1295",
      "r1296",
      "r1297",
      "r1298",
      "r1299",
      "r1300",
      "r1301",
      "r1302",
      "r1303",
      "r1304",
      "r1305",
      "r1306",
      "r1307",
      "r1308",
      "r1309",
      "r1310",
      "r1311",
      "r1312",
      "r1313"
     ]
    },
    "us-gaap_PlanNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PlanNameDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Plan Name [Domain]",
        "terseLabel": "Plan Name",
        "documentation": "Plan name for share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r1288",
      "r1289",
      "r1290",
      "r1291",
      "r1292",
      "r1293",
      "r1294",
      "r1295",
      "r1296",
      "r1297",
      "r1298",
      "r1299",
      "r1300",
      "r1301",
      "r1302",
      "r1303",
      "r1304",
      "r1305",
      "r1306",
      "r1307",
      "r1308",
      "r1309",
      "r1310",
      "r1311",
      "r1312",
      "r1313"
     ]
    },
    "ap_PrepaidPensions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "PrepaidPensions",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prepaid pensions.",
        "label": "Prepaid Pensions",
        "terseLabel": "Prepaid pensions"
       }
      }
     },
     "auth_ref": []
    },
    "ap_PrimaryInvestmentObjectiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "PrimaryInvestmentObjectiveMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary investment objective.",
        "label": "Primary Investment Objective [Member]",
        "terseLabel": "Primary Investment Objective [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_PriorCreditAgreementMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "PriorCreditAgreementMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Prior Credit Agreement [Member]",
        "label": "Prior Credit Agreement [Member]",
        "documentation": "Prior credit agreement."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ProceedsFromDepositsFromCustomers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromDepositsFromCustomers",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesScheduleOfChangeInCustomerDepositsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Deposits from Customers",
        "terseLabel": "Receipt of additional deposits",
        "documentation": "Cash received from customers for deposits on goods or services during the period; excludes deposits with other institutions and time deposits, which pertain to financial services entities."
       }
      }
     },
     "auth_ref": [
      "r50"
     ]
    },
    "ap_ProceedsFromDisbursementAgreement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ProceedsFromDisbursementAgreement",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from disbursement agreement",
        "label": "Proceeds from Disbursement Agreement",
        "documentation": "Proceeds from disbursement agreement."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ProceedsFromDividendsReceived": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromDividendsReceived",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInvestmentsInJointVenturesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Dividends Received",
        "terseLabel": "Dividends declared",
        "documentation": "Dividends received on equity and other investments during the current period."
       }
      }
     },
     "auth_ref": [
      "r1169"
     ]
    },
    "ap_ProceedsFromEquipmentFinancingFacility": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ProceedsFromEquipmentFinancingFacility",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from equipment financing facility",
        "label": "Proceeds From Equipment Financing Facility",
        "documentation": "Proceeds from equipment financing facility."
       }
      }
     },
     "auth_ref": []
    },
    "ap_ProceedsFromIssuanceOfCommonStockAndWarrants": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ProceedsFromIssuanceOfCommonStockAndWarrants",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Proceeds from issuance of common stock and warrants.",
        "label": "Proceeds From Issuance Of Common Stock And Warrants",
        "terseLabel": "Proceeds from issuance of common stock and warrants"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ProceedsFromLeasePaymentSalesTypeAndDirectFinancingLeasesInvestingActivity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromLeasePaymentSalesTypeAndDirectFinancingLeasesInvestingActivity",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Lease Payment, Sales-Type and Direct Financing Leases, Investing Activity",
        "terseLabel": "Net proceeds after transaction-related costs",
        "documentation": "Amount of cash inflow from principal payment received from sales-type and direct financing leases classified as investing activity."
       }
      }
     },
     "auth_ref": [
      "r228"
     ]
    },
    "us-gaap_ProceedsFromLongTermLinesOfCredit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromLongTermLinesOfCredit",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Long-Term Lines of Credit",
        "terseLabel": "Proceeds from revolving credit facility",
        "documentation": "The cash inflow from a contractual arrangement with the lender, including letter of credit, standby letter of credit and revolving credit arrangements, under which borrowings can be made up to a specific amount at any point in time with maturities due beyond one year or the operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r47"
     ]
    },
    "us-gaap_ProceedsFromRelatedPartyDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromRelatedPartyDebt",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfLoanActivityDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Borrowings",
        "label": "Proceeds from Related Party Debt",
        "terseLabel": "Proceeds from related party debt",
        "documentation": "The cash inflow from a long-term borrowing made from related parties where one party can exercise control or significant influence over another party; including affiliates, owners or officers and their immediate families, pension trusts, and so forth. Alternate caption: Proceeds from Advances from Affiliates."
       }
      }
     },
     "auth_ref": [
      "r47"
     ]
    },
    "ap_ProceedsFromSaleAndLeasebackFinancingArrangement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ProceedsFromSaleAndLeasebackFinancingArrangement",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from sale and leaseback financing arrangements",
        "label": "Proceeds From Sale And Leaseback Financing Arrangement",
        "documentation": "Proceeds from sale and leaseback financing arrangement."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromSaleAndMaturityOfMarketableSecurities",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Sale and Maturity of Marketable Securities",
        "terseLabel": "Proceeds from sale of long-term marketable securities",
        "documentation": "The cash inflow associated with the aggregate amount received by the entity through sale or maturity of marketable securities (held-to-maturity or available-for-sale) during the period."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ProceedsFromSaleOfLandHeldForUse": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromSaleOfLandHeldForUse",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Sale, Land, Held-for-Use",
        "documentation": "The cash inflow from the sale of land held for use; excludes sales of land held as inventory or investments."
       }
      }
     },
     "auth_ref": [
      "r175"
     ]
    },
    "us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromSaleOfPropertyPlantAndEquipment",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Sale of Property, Plant, and Equipment",
        "terseLabel": "Proceeds from sale of property, plant and equipment",
        "totalLabel": "Proceeds from Sale of Property, Plant, and Equipment, Total",
        "documentation": "The cash inflow from the sale of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale."
       }
      }
     },
     "auth_ref": [
      "r175"
     ]
    },
    "us-gaap_ProceedsFromWarrantExercises": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProceedsFromWarrantExercises",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Warrant Exercises",
        "terseLabel": "Proceeds from shareholder exercise of warrants",
        "documentation": "The cash inflow associated with the amount received from holders exercising their stock warrants."
       }
      }
     },
     "auth_ref": [
      "r1167"
     ]
    },
    "ap_ProceedsReceivedFromInsolventInsuranceCarrier": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ProceedsReceivedFromInsolventInsuranceCarrier",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from insolvent asbestos-related insurance carrier",
        "label": "Proceeds Received From Insolvent Insurance Carrier",
        "documentation": "Proceeds received from insolvent insurance carrier."
       }
      }
     },
     "auth_ref": []
    },
    "srt_ProductOrServiceAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ProductOrServiceAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueNetSalesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Product and Service [Axis]",
        "terseLabel": "Product and Service"
       }
      }
     },
     "auth_ref": [
      "r370",
      "r775",
      "r832",
      "r833",
      "r834",
      "r835",
      "r836",
      "r837",
      "r1046",
      "r1076",
      "r1101",
      "r1151",
      "r1208",
      "r1209",
      "r1221",
      "r1355"
     ]
    },
    "srt_ProductsAndServicesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ProductsAndServicesDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueNetSalesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Product and Service [Domain]",
        "terseLabel": "Product and Service"
       }
      }
     },
     "auth_ref": [
      "r370",
      "r775",
      "r832",
      "r833",
      "r834",
      "r835",
      "r836",
      "r837",
      "r1046",
      "r1076",
      "r1101",
      "r1151",
      "r1208",
      "r1209",
      "r1221",
      "r1355"
     ]
    },
    "us-gaap_ProfitLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ProfitLoss",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations": {
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0,
       "order": 0.0
      },
      "http://ampcopgh.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLossIncome": {
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0,
       "order": 0.0
      },
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity",
      "http://ampcopgh.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLossIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net (loss) income",
        "terseLabel": "Net (loss) income",
        "label": "Net Income (Loss), Including Portion Attributable to Noncontrolling Interest",
        "verboseLabel": "Net income",
        "documentation": "The consolidated profit or loss for the period, net of income taxes, including the portion attributable to the noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r245",
      "r272",
      "r275",
      "r288",
      "r295",
      "r313",
      "r325",
      "r326",
      "r345",
      "r359",
      "r365",
      "r368",
      "r384",
      "r433",
      "r434",
      "r436",
      "r437",
      "r438",
      "r440",
      "r442",
      "r444",
      "r445",
      "r674",
      "r677",
      "r678",
      "r705",
      "r713",
      "r798",
      "r812",
      "r865",
      "r918",
      "r940",
      "r941",
      "r1062",
      "r1097",
      "r1098",
      "r1112",
      "r1165",
      "r1216"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment [Abstract]",
        "terseLabel": "Property, Plant and Equipment [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PropertyPlantAndEquipmentByTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentByTypeAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureOperatingLeaseRightofuseAssetsScheduleOfTheNetBookValueOfRightofuseAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentScheduleOfPropertyPlantAndEquipmentDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Lived Tangible Asset [Axis]",
        "terseLabel": "Long-Lived Tangible Asset",
        "documentation": "Information by type of long-lived, physical assets used to produce goods and services and not intended for resale."
       }
      }
     },
     "auth_ref": [
      "r12"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentDisclosureTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment Disclosure [Text Block]",
        "terseLabel": "Property, Plant and Equipment",
        "documentation": "The entire disclosure for long-lived, physical asset used in normal conduct of business and not intended for resale. Includes, but is not limited to, work of art, historical treasure, and similar asset classified as collections."
       }
      }
     },
     "auth_ref": [
      "r188",
      "r230",
      "r231",
      "r232"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentGross",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentScheduleOfPropertyPlantAndEquipmentDetail": {
       "parentTag": "us-gaap_PropertyPlantAndEquipmentNet",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment, Gross",
        "terseLabel": "Property, plant and equipment, Gross",
        "totalLabel": "Property, Plant and Equipment, Gross, Total",
        "periodStartLabel": "Property, Plant and Equipment, Gross, Beginning Balance",
        "periodEndLabel": "Property, Plant and Equipment, Gross, Ending Balance",
        "documentation": "Amount before accumulated depreciation, depletion and amortization of physical assets used in the normal conduct of business and not intended for resale. Examples include, but are not limited to, land, buildings, machinery and equipment, office equipment, and furniture and fixtures."
       }
      }
     },
     "auth_ref": [
      "r189",
      "r251",
      "r810"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentLineItems",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureOperatingLeaseRightofuseAssetsScheduleOfTheNetBookValueOfRightofuseAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment [Line Items]",
        "terseLabel": "Property Plant And Equipment [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_PropertyPlantAndEquipmentNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentNet",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_Assets",
       "weight": 1.0,
       "order": 1.0
      },
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentScheduleOfPropertyPlantAndEquipmentDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentScheduleOfPropertyPlantAndEquipmentDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment, Net",
        "terseLabel": "Property, plant and equipment, net",
        "totalLabel": "Property, plant and equipment, net",
        "documentation": "Amount after accumulated depreciation, depletion and amortization of physical assets used in the normal conduct of business to produce goods and services and not intended for resale. Examples include, but are not limited to, land, buildings, machinery and equipment, office equipment, and furniture and fixtures."
       }
      }
     },
     "auth_ref": [
      "r12",
      "r799",
      "r810",
      "r1100"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentPolicyTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment, Policy [Policy Text Block]",
        "terseLabel": "Property, Plant and Equipment",
        "documentation": "Disclosure of accounting policy for long-lived, physical asset used in normal conduct of business and not intended for resale. Includes, but is not limited to, work of art, historical treasure, and similar asset classified as collections."
       }
      }
     },
     "auth_ref": [
      "r12",
      "r230",
      "r231",
      "r808"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment [Table Text Block]",
        "terseLabel": "Schedule of Property, Plant and Equipment",
        "documentation": "Tabular disclosure of physical assets used in the normal conduct of business and not intended for resale. Includes, but is not limited to, balances by class of assets, depreciation and depletion expense and method used, including composite depreciation, and accumulated deprecation."
       }
      }
     },
     "auth_ref": [
      "r12"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentTypeDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureOperatingLeaseRightofuseAssetsScheduleOfTheNetBookValueOfRightofuseAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentScheduleOfPropertyPlantAndEquipmentDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Lived Tangible Asset [Domain]",
        "terseLabel": "Long-Lived Tangible Asset",
        "documentation": "Listing of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale. Examples include land, buildings, machinery and equipment, and other types of furniture and equipment including, but not limited to, office equipment, furniture and fixtures, and computer equipment and software."
       }
      }
     },
     "auth_ref": [
      "r189"
     ]
    },
    "us-gaap_PropertyPlantAndEquipmentUsefulLife": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "PropertyPlantAndEquipmentUsefulLife",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment, Useful Life",
        "terseLabel": "Property, plant and equipment, estimated useful life",
        "documentation": "Useful life of long lived, physical assets used in the normal conduct of business and not intended for resale, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. Examples include, but not limited to, land, buildings, machinery and equipment, office equipment, furniture and fixtures, and computer equipment."
       }
      }
     },
     "auth_ref": []
    },
    "ap_PurchaseCommitmentAmountOfAnticipatedNaturalGasUsage": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "PurchaseCommitmentAmountOfAnticipatedNaturalGasUsage",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Dollar value of anticipated natural gas requirements which are covered by purchase commitments.",
        "label": "Purchase Commitment Amount Of Anticipated Natural Gas Usage",
        "terseLabel": "Purchase commitment amount of anticipated natural gas usage"
       }
      }
     },
     "auth_ref": []
    },
    "ap_PurchasesOfNaturalGasUnderExistingCommitmentsDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "PurchasesOfNaturalGasUnderExistingCommitmentsDescription",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Purchases of natural gas under existing commitments description.",
        "label": "Purchases Of Natural Gas Under Existing Commitments Description",
        "terseLabel": "Purchases of natural gas under existing commitments description"
       }
      }
     },
     "auth_ref": []
    },
    "srt_RangeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "RangeAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyParentheticalDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssumptionsRegardingNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsDiscountRatesUsedToDetermineBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statistical Measurement [Axis]",
        "terseLabel": "Statistical Measurement"
       }
      }
     },
     "auth_ref": [
      "r423",
      "r424",
      "r427",
      "r428",
      "r533",
      "r588",
      "r621",
      "r622",
      "r623",
      "r772",
      "r773",
      "r838",
      "r887",
      "r888",
      "r951",
      "r970",
      "r975",
      "r976",
      "r1011",
      "r1043",
      "r1044",
      "r1064",
      "r1074",
      "r1094",
      "r1102",
      "r1105",
      "r1201",
      "r1218",
      "r1345",
      "r1346",
      "r1347",
      "r1348",
      "r1349"
     ]
    },
    "srt_RangeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "RangeMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyParentheticalDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssumptionsRegardingNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsDiscountRatesUsedToDetermineBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statistical Measurement [Domain]",
        "terseLabel": "Statistical Measurement"
       }
      }
     },
     "auth_ref": [
      "r423",
      "r424",
      "r427",
      "r428",
      "r533",
      "r588",
      "r621",
      "r622",
      "r623",
      "r772",
      "r773",
      "r838",
      "r887",
      "r888",
      "r951",
      "r970",
      "r975",
      "r976",
      "r1011",
      "r1043",
      "r1044",
      "r1064",
      "r1074",
      "r1094",
      "r1102",
      "r1105",
      "r1201",
      "r1218",
      "r1345",
      "r1346",
      "r1347",
      "r1348",
      "r1349"
     ]
    },
    "ap_ReasonablePossibleDurationForSufficientPositiveEvidenceOfValuationAllowance": {
     "xbrltype": "durationItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ReasonablePossibleDurationForSufficientPositiveEvidenceOfValuationAllowance",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Reasonable possible duration for sufficient positive evidence of valuation allowance",
        "label": "Reasonable Possible Duration For Sufficient Positive Evidence Of Valuation Allowance",
        "documentation": "Reasonable possible duration for sufficient positive evidence of valuation allowance."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossLineItemsAffectedOnConsolidatedStatementsOfOperationsForComponentsReclassifiedFromAccumulatedOtherComprehensiveLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reclassification Adjustment out of Accumulated Other Comprehensive Income [Line Items]",
        "terseLabel": "Reclassification Adjustment Out Of Accumulated Other Comprehensive Income [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r280"
     ]
    },
    "ap_ReclassificationAdjustmentsForItemsIncludedInNetLossIncomeAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ReclassificationAdjustmentsForItemsIncludedInNetLossIncomeAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLossIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Reclassification adjustments for items included in net (loss) income:",
        "label": "Reclassification Adjustments For Items Included In Net Loss Income [Abstract]",
        "documentation": "Reclassification adjustments for items included in net (loss) income."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossLineItemsAffectedOnConsolidatedStatementsOfOperationsForComponentsReclassifiedFromAccumulatedOtherComprehensiveLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfChangeInFairValueReclassifiedOrExpectedToBeReclassifiedFromAccumulatedOtherComprehensiveLossToEarningsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reclassification out of Accumulated Other Comprehensive Income [Axis]",
        "terseLabel": "Reclassification out of Accumulated Other Comprehensive Income",
        "documentation": "Information by item reclassified out of accumulated other comprehensive income (loss)."
       }
      }
     },
     "auth_ref": [
      "r280"
     ]
    },
    "us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossLineItemsAffectedOnConsolidatedStatementsOfOperationsForComponentsReclassifiedFromAccumulatedOtherComprehensiveLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfChangeInFairValueReclassifiedOrExpectedToBeReclassifiedFromAccumulatedOtherComprehensiveLossToEarningsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reclassification out of Accumulated Other Comprehensive Income [Domain]",
        "terseLabel": "Reclassification out of Accumulated Other Comprehensive Income",
        "documentation": "Item reclassified out of accumulated other comprehensive income (loss)."
       }
      }
     },
     "auth_ref": [
      "r280"
     ]
    },
    "us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossLineItemsAffectedOnConsolidatedStatementsOfOperationsForComponentsReclassifiedFromAccumulatedOtherComprehensiveLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfChangeInFairValueReclassifiedOrExpectedToBeReclassifiedFromAccumulatedOtherComprehensiveLossToEarningsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reclassification out of Accumulated Other Comprehensive Income [Member]",
        "terseLabel": "Reclassification Out of Accumulated Other Comprehensive Income (Loss) [Member]",
        "documentation": "Identifies item reclassified out of accumulated other comprehensive income (loss)."
       }
      }
     },
     "auth_ref": [
      "r280"
     ]
    },
    "us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossLineItemsAffectedOnConsolidatedStatementsOfOperationsForComponentsReclassifiedFromAccumulatedOtherComprehensiveLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reclassification out of Accumulated Other Comprehensive Income [Table]",
        "terseLabel": "Reclassification Out Of Accumulated Other Comprehensive Income [Table]",
        "documentation": "Disclosure of information about items reclassified out of accumulated other comprehensive income (loss)."
       }
      }
     },
     "auth_ref": [
      "r280"
     ]
    },
    "us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reclassification out of Accumulated Other Comprehensive Income [Table Text Block]",
        "terseLabel": "Line Items Affected on Consolidated Statements of Operations for Components Reclassified from Accumulated Other Comprehensive Loss",
        "documentation": "Tabular disclosure of information about items reclassified out of accumulated other comprehensive income (loss)."
       }
      }
     },
     "auth_ref": []
    },
    "ap_RegulatoryAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "RegulatoryAssetsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Regulatory Assets [Abstract]",
        "label": "Regulatory Assets [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RelatedPartyDepositLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RelatedPartyDepositLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfBalancesOutstandingWithAtrsMinorityShareholderAndItsAffiliatesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party Deposit Liabilities",
        "terseLabel": "Customer deposits",
        "documentation": "Amount of deposits held by the entity for a related party (entity, shareholder, employee)."
       }
      }
     },
     "auth_ref": [
      "r1175"
     ]
    },
    "us-gaap_RelatedPartyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RelatedPartyDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfBalancesOutstandingWithAtrsMinorityShareholderAndItsAffiliatesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfSalesToAndPurchasesFromAtrsMinorityShareholderAndItsAffiliatesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDescriptionOfBusinessAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party, Type [Domain]",
        "terseLabel": "Related Party",
        "documentation": "Related parties include affiliates; other entities for which investments are accounted for by the equity method by the entity; trusts for benefit of employees; and principal owners, management, and members of immediate families. It also may include other parties with which the entity may control or can significantly influence the management or operating policies of the other to an extent that one of the transacting parties might be prevented from fully pursuing its own separate interests."
       }
      }
     },
     "auth_ref": [
      "r561",
      "r763",
      "r764",
      "r890",
      "r891",
      "r892",
      "r893",
      "r894",
      "r915",
      "r917",
      "r947"
     ]
    },
    "us-gaap_RelatedPartyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RelatedPartyMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfBalancesOutstandingWithAtrsMinorityShareholderAndItsAffiliatesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfSalesToAndPurchasesFromAtrsMinorityShareholderAndItsAffiliatesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Related Party [Member]",
        "label": "Related Party [Member]",
        "documentation": "Party related to reporting entity. Includes, but is not limited to, affiliate, entity for which investment is accounted for by equity method, trust for benefit of employees, and principal owner, management, and members of immediate family."
       }
      }
     },
     "auth_ref": [
      "r298",
      "r299",
      "r763",
      "r764",
      "r765",
      "r766",
      "r890",
      "r891",
      "r892",
      "r893",
      "r894",
      "r915",
      "r917",
      "r947"
     ]
    },
    "us-gaap_RelatedPartyTransactionAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RelatedPartyTransactionAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party Transaction [Axis]",
        "documentation": "Information by type of related party transaction."
       }
      }
     },
     "auth_ref": [
      "r763",
      "r764",
      "r1341"
     ]
    },
    "us-gaap_RelatedPartyTransactionDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RelatedPartyTransactionDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party Transaction [Domain]",
        "documentation": "Transaction between related party."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RelatedPartyTransactionLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RelatedPartyTransactionLineItems",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfBalancesOutstandingWithAtrsMinorityShareholderAndItsAffiliatesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfLoanActivityDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfSalesToAndPurchasesFromAtrsMinorityShareholderAndItsAffiliatesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party Transaction [Line Items]",
        "terseLabel": "Related Party Transaction [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r922",
      "r923",
      "r926"
     ]
    },
    "us-gaap_RelatedPartyTransactionPurchasesFromRelatedParty": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RelatedPartyTransactionPurchasesFromRelatedParty",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfSalesToAndPurchasesFromAtrsMinorityShareholderAndItsAffiliatesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Purchases from related parties",
        "label": "Related Party Transaction, Purchases from Related Party",
        "terseLabel": "Purchases",
        "documentation": "Purchases during the period (excluding transactions that are eliminated in consolidated or combined financial statements) with related party."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RelatedPartyTransactionsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RelatedPartyTransactionsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party Transactions [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RelatedPartyTransactionsByRelatedPartyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RelatedPartyTransactionsByRelatedPartyAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfBalancesOutstandingWithAtrsMinorityShareholderAndItsAffiliatesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfSalesToAndPurchasesFromAtrsMinorityShareholderAndItsAffiliatesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDescriptionOfBusinessAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party, Type [Axis]",
        "terseLabel": "Related Party",
        "documentation": "Information by type of related party. Related parties include, but not limited to, affiliates; other entities for which investments are accounted for by the equity method by the entity; trusts for benefit of employees; and principal owners, management, and members of immediate families. It also may include other parties with which the entity may control or can significantly influence the management or operating policies of the other to an extent that one of the transacting parties might be prevented from fully pursuing its own separate interests."
       }
      }
     },
     "auth_ref": [
      "r561",
      "r763",
      "r764",
      "r781",
      "r782",
      "r783",
      "r784",
      "r785",
      "r786",
      "r787",
      "r788",
      "r789",
      "r790",
      "r791",
      "r792",
      "r890",
      "r891",
      "r892",
      "r893",
      "r894",
      "r915",
      "r917",
      "r947",
      "r1341"
     ]
    },
    "us-gaap_RelatedPartyTransactionsDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RelatedPartyTransactionsDisclosureTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedParties"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party Transactions Disclosure [Text Block]",
        "terseLabel": "Related Parties",
        "documentation": "The entire disclosure for related party transactions. Examples of related party transactions include transactions between (a) a parent company and its subsidiary; (b) subsidiaries of a common parent; (c) and entity and its principal owners; and (d) affiliates."
       }
      }
     },
     "auth_ref": [
      "r760",
      "r761",
      "r762",
      "r764",
      "r767",
      "r861",
      "r862",
      "r863",
      "r924",
      "r925",
      "r926",
      "r945",
      "r946"
     ]
    },
    "us-gaap_RentalProperties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RentalProperties",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rental Properties",
        "terseLabel": "Rental properties",
        "documentation": "Carrying amount of income producing properties held for rental."
       }
      }
     },
     "auth_ref": [
      "r1351"
     ]
    },
    "us-gaap_RepaymentsOfDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RepaymentsOfDebt",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Repayments of Debt",
        "negatedLabel": "Repayment of debt",
        "documentation": "Amount of cash outflow for short-term and long-term debt. Excludes payment of lease obligation."
       }
      }
     },
     "auth_ref": [
      "r1168"
     ]
    },
    "us-gaap_RepaymentsOfLongTermLinesOfCredit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RepaymentsOfLongTermLinesOfCredit",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Repayments of Long-Term Lines of Credit",
        "negatedLabel": "Payments on revolving credit facility",
        "documentation": "The cash outflow for the settlement of obligation drawn from a contractual arrangement with the lender, including letter of credit, standby letter of credit and revolving credit arrangements, under which borrowings can be made up to a specific amount at any point in time with maturities due beyond one year or the operating cycle, if longer."
       }
      }
     },
     "auth_ref": [
      "r49"
     ]
    },
    "us-gaap_RepaymentsOfRelatedPartyDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RepaymentsOfRelatedPartyDebt",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfLoanActivityDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Repayments",
        "label": "Repayments of Related Party Debt",
        "terseLabel": "Repayments of related party debt",
        "negatedLabel": "Repayment of related party debt",
        "documentation": "The cash outflow for the payment of a long-term borrowing made from a related party where one party can exercise control or significant influence over another party; including affiliates, owners or officers and their immediate families, pension trusts, and so forth. Alternate caption: Payments for Advances from Affiliates."
       }
      }
     },
     "auth_ref": [
      "r49"
     ]
    },
    "srt_RepurchaseAgreementCounterpartyNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "RepurchaseAgreementCounterpartyNameDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Counterparty Name [Domain]"
       }
      }
     },
     "auth_ref": [
      "r300",
      "r301",
      "r450",
      "r479",
      "r766",
      "r1056",
      "r1057"
     ]
    },
    "ap_RequiredPaymentAfterControlTransfer": {
     "xbrltype": "durationItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "RequiredPaymentAfterControlTransfer",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Required payment after control transfer",
        "label": "Required Payment After Control transfer",
        "documentation": "Required payment after control transfer."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ResearchAndDevelopmentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ResearchAndDevelopmentAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Research and Development [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ResearchAndDevelopmentExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ResearchAndDevelopmentExpense",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureResearchAndDevelopmentCostsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Research and Development Expense",
        "terseLabel": "Expenses relating to product development",
        "totalLabel": "Research and Development Expense, Total",
        "documentation": "The aggregate costs incurred (1) in a planned search or critical investigation aimed at discovery of new knowledge with the hope that such knowledge will be useful in developing a new product or service, a new process or technique, or in bringing about a significant improvement to an existing product or process; or (2) to translate research findings or other knowledge into a plan or design for a new product or process or for a significant improvement to an existing product or process whether intended for sale or the entity's use, during the reporting period charged to research and development projects, including the costs of developing computer software up to the point in time of achieving technological feasibility, and costs allocated in accounting for a business combination to in-process projects deemed to have no alternative future use."
       }
      }
     },
     "auth_ref": [
      "r144",
      "r638",
      "r1350"
     ]
    },
    "us-gaap_ResearchDevelopmentAndComputerSoftwareDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ResearchDevelopmentAndComputerSoftwareDisclosureTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureResearchAndDevelopmentCosts"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Research, Development, and Computer Software Disclosure [Text Block]",
        "terseLabel": "Research and Development Costs",
        "documentation": "The entire disclosure for research, development, and computer software activities, including contracts and arrangements to be performed for others and with federal government. Includes costs incurred (1) in a planned search or critical investigation aimed at discovery of new knowledge with the hope that such knowledge will be useful in developing a new product or service, a new process or technique, or in bringing about a significant improvement to an existing product or process; or (2) to translate research findings or other knowledge into a plan or design for a new product or process or for a significant improvement to an existing product or process whether intended for sale or the entity's use, during the reporting period charged to research and development projects, including the costs of developing computer software up to the point in time of achieving technological feasibility and in-process research and development acquired in a business combination consummated during the period."
       }
      }
     },
     "auth_ref": [
      "r221",
      "r639"
     ]
    },
    "srt_RestatementAdjustmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "RestatementAdjustmentMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationSummaryOfActivityInAsbestosInsuranceRecoveriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "As adjusted [Member]",
        "label": "Revision of Prior Period, Adjustment [Member]"
       }
      }
     },
     "auth_ref": [
      "r309",
      "r310",
      "r311",
      "r323",
      "r324",
      "r337",
      "r703",
      "r704",
      "r1142",
      "r1143",
      "r1145",
      "r1146",
      "r1149",
      "r1152",
      "r1153"
     ]
    },
    "srt_RestatementAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "RestatementAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationSummaryOfActivityInAsbestosInsuranceRecoveriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revision of Prior Period [Axis]"
       }
      }
     },
     "auth_ref": [
      "r242",
      "r309",
      "r310",
      "r311",
      "r313",
      "r314",
      "r317",
      "r318",
      "r319",
      "r320",
      "r322",
      "r323",
      "r324",
      "r325",
      "r326",
      "r327",
      "r337",
      "r391",
      "r392",
      "r659",
      "r699",
      "r703",
      "r704",
      "r705",
      "r741",
      "r758",
      "r759",
      "r841",
      "r842",
      "r843",
      "r844",
      "r845",
      "r846",
      "r847",
      "r848",
      "r849",
      "r850",
      "r852"
     ]
    },
    "srt_RestatementDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "RestatementDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationSummaryOfActivityInAsbestosInsuranceRecoveriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revision of Prior Period [Domain]"
       }
      }
     },
     "auth_ref": [
      "r242",
      "r309",
      "r310",
      "r311",
      "r313",
      "r314",
      "r317",
      "r318",
      "r319",
      "r320",
      "r322",
      "r323",
      "r324",
      "r325",
      "r326",
      "r327",
      "r337",
      "r391",
      "r392",
      "r659",
      "r699",
      "r703",
      "r704",
      "r705",
      "r741",
      "r758",
      "r759",
      "r841",
      "r842",
      "r843",
      "r844",
      "r845",
      "r846",
      "r847",
      "r848",
      "r849",
      "r850",
      "r852"
     ]
    },
    "ap_RestrictedStockAndPerformanceRestrictedStockUnitMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "RestrictedStockAndPerformanceRestrictedStockUnitMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Restricted stock and performance restricted stock unit.",
        "label": "Restricted Stock And Performance Restricted Stock Unit [Member]",
        "terseLabel": "Restricted Stock Units (RSUs) and Performance-based Restricted Stock Units (PSUs) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RestrictedStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RestrictedStockMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureStockbasedCompensationSummaryOfOutstandingRestrictedStockAwardsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Restricted Stock [Member]",
        "label": "Restricted Stock [Member]",
        "documentation": "Stock including a provision that prohibits sale or substantive sale of an equity instrument for a specified period of time or until specified performance conditions are met."
       }
      }
     },
     "auth_ref": [
      "r57"
     ]
    },
    "us-gaap_RestrictedStockUnitsRSUMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RestrictedStockUnitsRSUMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingRestrictedStockUnitsRSUAndPerformanceShareAwardsPSUDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restricted Stock Units (RSUs) [Member]",
        "terseLabel": "Restricted Stock Units (RSUs) [Member]",
        "documentation": "Share instrument which is convertible to stock or an equivalent amount of cash, after a specified period of time or when specified performance conditions are met."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RetainedEarningsAccumulatedDeficit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RetainedEarningsAccumulatedDeficit",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Adjustment to opening retained deficit",
        "label": "Retained Earnings (Accumulated Deficit)",
        "terseLabel": "Retained deficit",
        "totalLabel": "Retained Earnings (Accumulated Deficit), Total",
        "documentation": "Amount of accumulated undistributed earnings (deficit)."
       }
      }
     },
     "auth_ref": [
      "r155",
      "r195",
      "r805",
      "r845",
      "r850",
      "r859",
      "r898",
      "r1100"
     ]
    },
    "us-gaap_RetainedEarningsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RetainedEarningsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retained Earnings [Member]",
        "terseLabel": "Retained Deficit [Member]",
        "documentation": "Accumulated undistributed earnings (deficit)."
       }
      }
     },
     "auth_ref": [
      "r241",
      "r309",
      "r310",
      "r311",
      "r314",
      "r324",
      "r326",
      "r390",
      "r396",
      "r630",
      "r631",
      "r632",
      "r658",
      "r659",
      "r686",
      "r689",
      "r690",
      "r693",
      "r703",
      "r841",
      "r843",
      "r866",
      "r1357"
     ]
    },
    "us-gaap_RetirementPlanFundingStatusAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RetirementPlanFundingStatusAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Funding Status [Axis]",
        "terseLabel": "Defined Benefit Plan, Funding Status",
        "documentation": "Information by status of funding for defined benefit plan designed to provide retirement benefits."
       }
      }
     },
     "auth_ref": [
      "r1144",
      "r1224",
      "r1225",
      "r1226",
      "r1227",
      "r1228",
      "r1229",
      "r1230",
      "r1231",
      "r1232",
      "r1233",
      "r1234",
      "r1235",
      "r1236",
      "r1237",
      "r1238",
      "r1239",
      "r1240",
      "r1241",
      "r1242",
      "r1243",
      "r1244",
      "r1245",
      "r1246",
      "r1247",
      "r1248",
      "r1249",
      "r1250",
      "r1251",
      "r1252",
      "r1253",
      "r1254",
      "r1255",
      "r1256",
      "r1257",
      "r1258",
      "r1259",
      "r1260",
      "r1261",
      "r1262",
      "r1263",
      "r1264",
      "r1265",
      "r1266",
      "r1267",
      "r1268",
      "r1269",
      "r1270",
      "r1271",
      "r1272",
      "r1273",
      "r1274",
      "r1275",
      "r1276",
      "r1277",
      "r1278",
      "r1279",
      "r1280",
      "r1281",
      "r1282",
      "r1283"
     ]
    },
    "us-gaap_RetirementPlanFundingStatusDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RetirementPlanFundingStatusDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Funding Status [Domain]",
        "terseLabel": "Defined Benefit Plan, Funding Status",
        "documentation": "Status of funding for defined benefit plan designed to provide retirement benefits."
       }
      }
     },
     "auth_ref": [
      "r1144",
      "r1224",
      "r1225",
      "r1226",
      "r1227",
      "r1228",
      "r1229",
      "r1230",
      "r1231",
      "r1232",
      "r1233",
      "r1234",
      "r1235",
      "r1236",
      "r1237",
      "r1238",
      "r1239",
      "r1240",
      "r1241",
      "r1242",
      "r1243",
      "r1244",
      "r1245",
      "r1246",
      "r1247",
      "r1248",
      "r1249",
      "r1250",
      "r1251",
      "r1252",
      "r1253",
      "r1254",
      "r1255",
      "r1256",
      "r1257",
      "r1258",
      "r1259",
      "r1260",
      "r1261",
      "r1262",
      "r1263",
      "r1264",
      "r1265",
      "r1266",
      "r1267",
      "r1268",
      "r1269",
      "r1270",
      "r1271",
      "r1272",
      "r1273",
      "r1274",
      "r1275",
      "r1276",
      "r1277",
      "r1278",
      "r1279",
      "r1280",
      "r1281",
      "r1282",
      "r1283"
     ]
    },
    "us-gaap_RetirementPlanSponsorLocationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RetirementPlanSponsorLocationAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosurePensionAndOtherPostretirementBenefitsComponentsOfActuarialLossesGainsInProjectedBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssumptionsRegardingNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsDiscountRatesUsedToDetermineBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfAccumulatedOtherComprehensiveLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInProjectedBenefitObligationsPBODetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfFundedStatusOfPlansDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfAmountsRecognizedInConsolidatedBalanceSheetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfChangesInFairValueOfLevel3PlanAssetsForUSAndForeignPensionBenefitsPlansDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfTargetAssetAllocationsAndMajorAssetCategoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retirement Plan Sponsor Location [Axis]",
        "terseLabel": "Retirement Plan Sponsor Location",
        "verboseLabel": "Foreign Defined Benefits Pension Plans [Member]",
        "documentation": "Information by location of employer sponsoring plan designed to provide retirement benefits. Includes, but is not limited to, defined benefit and defined contribution plans."
       }
      }
     },
     "auth_ref": [
      "r512",
      "r513",
      "r514",
      "r515",
      "r516",
      "r517",
      "r518",
      "r519",
      "r520",
      "r521",
      "r522",
      "r523",
      "r524",
      "r525",
      "r526",
      "r527",
      "r528",
      "r529",
      "r530",
      "r531",
      "r532",
      "r533",
      "r534",
      "r536",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552",
      "r553",
      "r554",
      "r556",
      "r557",
      "r558",
      "r559",
      "r561",
      "r564",
      "r568",
      "r569",
      "r570",
      "r571",
      "r572",
      "r573",
      "r574",
      "r575",
      "r576",
      "r577",
      "r578",
      "r579",
      "r580",
      "r1284",
      "r1285",
      "r1287"
     ]
    },
    "us-gaap_RetirementPlanSponsorLocationDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RetirementPlanSponsorLocationDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosurePensionAndOtherPostretirementBenefitsComponentsOfActuarialLossesGainsInProjectedBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssumptionsRegardingNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsDiscountRatesUsedToDetermineBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfAccumulatedOtherComprehensiveLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInProjectedBenefitObligationsPBODetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfFundedStatusOfPlansDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfAmountsRecognizedInConsolidatedBalanceSheetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfChangesInFairValueOfLevel3PlanAssetsForUSAndForeignPensionBenefitsPlansDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfTargetAssetAllocationsAndMajorAssetCategoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retirement Plan Sponsor Location [Domain]",
        "terseLabel": "Retirement Plan Sponsor Location",
        "documentation": "Location of employer sponsoring plan designed to provide retirement benefits. Includes, but is not limited to, defined benefit and defined contribution plans."
       }
      }
     },
     "auth_ref": [
      "r512",
      "r513",
      "r514",
      "r515",
      "r516",
      "r517",
      "r518",
      "r519",
      "r520",
      "r521",
      "r522",
      "r523",
      "r524",
      "r525",
      "r526",
      "r527",
      "r528",
      "r529",
      "r530",
      "r531",
      "r532",
      "r533",
      "r534",
      "r536",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552",
      "r553",
      "r554",
      "r556",
      "r557",
      "r558",
      "r559",
      "r561",
      "r564",
      "r568",
      "r569",
      "r570",
      "r571",
      "r572",
      "r573",
      "r574",
      "r575",
      "r576",
      "r577",
      "r578",
      "r579",
      "r580",
      "r1284",
      "r1285",
      "r1287"
     ]
    },
    "us-gaap_RetirementPlanTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RetirementPlanTypeAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosurePensionAndOtherPostretirementBenefitsComponentsOfActuarialLossesGainsInProjectedBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssumptionsRegardingNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsDiscountRatesUsedToDetermineBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfAccumulatedOtherComprehensiveLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInProjectedBenefitObligationsPBODetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfFundedStatusOfPlansDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfAmountsRecognizedInConsolidatedBalanceSheetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfChangesInFairValueOfLevel3PlanAssetsForUSAndForeignPensionBenefitsPlansDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfTargetAssetAllocationsAndMajorAssetCategoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retirement Plan Type [Axis]",
        "terseLabel": "Retirement Plan Type",
        "documentation": "Information by type of retirement benefit plan. Includes, but is not limited to, retirement benefit arrangement for defined benefit pension and other postretirement plans, retirement benefit arrangement for defined contribution pension and other postretirement plans, and special and contractual termination benefits payable upon retirement."
       }
      }
     },
     "auth_ref": [
      "r509",
      "r512",
      "r513",
      "r514",
      "r515",
      "r516",
      "r517",
      "r518",
      "r519",
      "r520",
      "r521",
      "r522",
      "r523",
      "r524",
      "r525",
      "r526",
      "r527",
      "r528",
      "r529",
      "r530",
      "r531",
      "r532",
      "r533",
      "r534",
      "r536",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552",
      "r553",
      "r554",
      "r556",
      "r558",
      "r559",
      "r561",
      "r564",
      "r567",
      "r571",
      "r572",
      "r573",
      "r574",
      "r575",
      "r576",
      "r577",
      "r578",
      "r579",
      "r580",
      "r584",
      "r585",
      "r586",
      "r591",
      "r1085",
      "r1086",
      "r1087",
      "r1088",
      "r1089",
      "r1091",
      "r1092",
      "r1093"
     ]
    },
    "us-gaap_RetirementPlanTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RetirementPlanTypeDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosurePensionAndOtherPostretirementBenefitsComponentsOfActuarialLossesGainsInProjectedBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssumptionsRegardingNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsDiscountRatesUsedToDetermineBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfAccumulatedOtherComprehensiveLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInProjectedBenefitObligationsPBODetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfFundedStatusOfPlansDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfAmountsRecognizedInConsolidatedBalanceSheetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfChangesInFairValueOfLevel3PlanAssetsForUSAndForeignPensionBenefitsPlansDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfTargetAssetAllocationsAndMajorAssetCategoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retirement Plan Type [Domain]",
        "terseLabel": "Retirement Plan Type",
        "documentation": "Type of plan designed to provide participants with retirement benefits. Includes, but is not limited to, retirement benefit arrangement for defined benefit pension and other postretirement plans, retirement benefit arrangement for defined contribution pension and other postretirement plans, and special and contractual termination benefits payable upon retirement."
       }
      }
     },
     "auth_ref": [
      "r509",
      "r512",
      "r513",
      "r514",
      "r515",
      "r516",
      "r517",
      "r518",
      "r519",
      "r520",
      "r521",
      "r522",
      "r523",
      "r524",
      "r525",
      "r526",
      "r527",
      "r528",
      "r529",
      "r530",
      "r531",
      "r532",
      "r533",
      "r534",
      "r536",
      "r537",
      "r538",
      "r539",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r546",
      "r547",
      "r548",
      "r549",
      "r550",
      "r551",
      "r552",
      "r553",
      "r554",
      "r556",
      "r558",
      "r559",
      "r561",
      "r564",
      "r567",
      "r571",
      "r572",
      "r573",
      "r574",
      "r575",
      "r576",
      "r577",
      "r578",
      "r579",
      "r580",
      "r584",
      "r585",
      "r586",
      "r591",
      "r1085",
      "r1086",
      "r1087",
      "r1088",
      "r1089",
      "r1091",
      "r1092",
      "r1093"
     ]
    },
    "us-gaap_RevenueFromContractWithCustomerAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RevenueFromContractWithCustomerAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue from Contract with Customer [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RevenueFromContractWithCustomerExcludingAssessedTax",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations": {
       "parentTag": "us-gaap_Revenues",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue from Contract with Customer, Excluding Assessed Tax",
        "terseLabel": "Net sales",
        "documentation": "Amount, excluding tax collected from customer, of revenue from satisfaction of performance obligation by transferring promised good or service to customer. Tax collected from customer is tax assessed by governmental authority that is both imposed on and concurrent with specific revenue-producing transaction, including, but not limited to, sales, use, value added and excise."
       }
      }
     },
     "auth_ref": [
      "r346",
      "r347",
      "r358",
      "r363",
      "r364",
      "r370",
      "r372",
      "r374",
      "r504",
      "r505",
      "r775"
     ]
    },
    "us-gaap_RevenueFromContractWithCustomerPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RevenueFromContractWithCustomerPolicyTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue from Contract with Customer [Policy Text Block]",
        "terseLabel": "Revenue Recognition",
        "documentation": "Disclosure of accounting policy for revenue from contract with customer."
       }
      }
     },
     "auth_ref": [
      "r237",
      "r496",
      "r497",
      "r498",
      "r499",
      "r500",
      "r501",
      "r502",
      "r503",
      "r1045"
     ]
    },
    "us-gaap_RevenueFromContractWithCustomerTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RevenueFromContractWithCustomerTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenue"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue from Contract with Customer [Text Block]",
        "terseLabel": "Revenue",
        "documentation": "The entire disclosure of revenue from contract with customer to transfer good or service and to transfer nonfinancial asset. Includes, but is not limited to, disaggregation of revenue, credit loss recognized from contract with customer, judgment and change in judgment related to contract with customer, and asset recognized from cost incurred to obtain or fulfill contract with customer. Excludes insurance and lease contracts."
       }
      }
     },
     "auth_ref": [
      "r237",
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r493",
      "r494",
      "r495",
      "r507"
     ]
    },
    "us-gaap_Revenues": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "Revenues",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations": {
       "parentTag": "us-gaap_OperatingIncomeLoss",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfSalesToAndPurchasesFromAtrsMinorityShareholderAndItsAffiliatesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueNetSalesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Sales to related parties",
        "label": "Revenues",
        "totalLabel": "Total net sales",
        "terseLabel": "Net sales",
        "documentation": "Amount of revenue recognized from goods sold, services rendered, insurance premiums, or other activities that constitute an earning process. Includes, but is not limited to, investment and interest income before deduction of interest expense when recognized as a component of revenue, and sales and trading gain (loss)."
       }
      }
     },
     "auth_ref": [
      "r281",
      "r295",
      "r346",
      "r347",
      "r358",
      "r363",
      "r364",
      "r370",
      "r372",
      "r374",
      "r384",
      "r433",
      "r434",
      "r436",
      "r437",
      "r438",
      "r440",
      "r442",
      "r444",
      "r445",
      "r713",
      "r798",
      "r1216"
     ]
    },
    "us-gaap_RevenuesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RevenuesAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net sales:",
        "label": "Revenues [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_RevenuesFromRelatedParties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "RevenuesFromRelatedParties",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations": {
       "parentTag": "us-gaap_Revenues",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net sales to related parties",
        "label": "Revenues From Related Parties",
        "documentation": "Revenues from related parties."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RevolvingCreditFacilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RevolvingCreditFacilityMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureDebtScheduleOfDebtDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revolving Credit Facility [Member]",
        "terseLabel": "Revolving Credit Facility [Member]",
        "documentation": "Arrangement in which loan proceeds can continuously be obtained following repayments, but the total amount borrowed cannot exceed a specified maximum amount."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RightOfUseAssetObtainedInExchangeForFinanceLeaseLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RightOfUseAssetObtainedInExchangeForFinanceLeaseLiability",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Right-of-Use Asset Obtained in Exchange for Finance Lease Liability",
        "terseLabel": "Finance lease right-of-use assets exchanged for lease liabilities",
        "documentation": "Amount of increase in right-of-use asset obtained in exchange for finance lease liability."
       }
      }
     },
     "auth_ref": [
      "r751",
      "r1099"
     ]
    },
    "us-gaap_RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Right-of-Use Asset Obtained in Exchange for Operating Lease Liability",
        "terseLabel": "Operating lease right-of-use assets exchanged for lease liabilities",
        "documentation": "Amount of increase in right-of-use asset obtained in exchange for operating lease liability."
       }
      }
     },
     "auth_ref": [
      "r751",
      "r1099"
     ]
    },
    "ap_RightOfUseAssetsPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "RightOfUseAssetsPolicyTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Right-of-use assets.",
        "label": "Right Of Use Assets Policy [Text Block]",
        "terseLabel": "Right-of-Use Assets"
       }
      }
     },
     "auth_ref": []
    },
    "ap_STOREMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "STOREMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "STORE [Member]",
        "label": "S T O R E [Member]",
        "documentation": "STORE."
       }
      }
     },
     "auth_ref": []
    },
    "ap_SaleAndLeasebackFinancingObligationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "SaleAndLeasebackFinancingObligationMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureDebtScheduleOfDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sale and leaseback financing obligation.",
        "label": "Sale And Leaseback Financing Obligation [Member]",
        "terseLabel": "Sale and Leaseback Financing Obligations [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_SaleAndLeasebackFinancingObligationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "SaleAndLeasebackFinancingObligationsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Sale and Leaseback Financing Obligations [Member]",
        "label": "Sale And Leaseback Financing Obligations [Member]",
        "documentation": "Sale and leaseback financing obligation."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SaleLeasebackTransactionNetBookValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SaleLeasebackTransactionNetBookValue",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Sale Leaseback Transaction, Net Book Value, Total",
        "label": "Sale Leaseback Transaction, Net Book Value",
        "terseLabel": "Amount of sale and leaseback financing transaction",
        "documentation": "The net book value of the asset(s) sold in connection with the sale of the property to another party and lease back to the seller."
       }
      }
     },
     "auth_ref": [
      "r223",
      "r224",
      "r225",
      "r1337"
     ]
    },
    "us-gaap_SaleLeasebackTransactionNetProceedsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SaleLeasebackTransactionNetProceedsFinancingActivities",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from the disbursement agreement",
        "label": "Sale Leaseback Transaction, Net Proceeds, Financing Activities",
        "documentation": "Amount of cash inflow after closing and debt issuance costs received by a seller-lessee in a sale-leaseback recognized in financing activities."
       }
      }
     },
     "auth_ref": [
      "r223",
      "r224",
      "r225"
     ]
    },
    "us-gaap_SalesRevenueNetMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SalesRevenueNetMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue Benchmark [Member]",
        "terseLabel": "Sales Revenue, Net [Member]",
        "documentation": "Revenue from sale of product and rendering of service and other sources of income, when it serves as benchmark in concentration of risk calculation."
       }
      }
     },
     "auth_ref": [
      "r374",
      "r1147"
     ]
    },
    "srt_ScenarioForecastMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ScenarioForecastMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forecast [Member]"
       }
      }
     },
     "auth_ref": [
      "r589",
      "r1186"
     ]
    },
    "srt_ScenarioUnspecifiedDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ScenarioUnspecifiedDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Scenario [Domain]"
       }
      }
     },
     "auth_ref": [
      "r327",
      "r589",
      "r1138",
      "r1186"
     ]
    },
    "ap_Schedule13DFiledDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "Schedule13DFiledDate",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule 13D filed date",
        "label": "Schedule 13 D Filed Date",
        "documentation": "Schedule 13D filed date."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfAccruedLiabilitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfAccruedLiabilitiesTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Accrued Liabilities [Table Text Block]",
        "terseLabel": "Schedule of Other Current Liabilities",
        "documentation": "Tabular disclosure of the components of accrued liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "ap_ScheduleOfActivityRelatingToAsbestosLiabilityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ScheduleOfActivityRelatingToAsbestosLiabilityTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Activity Relating to Asbestos Liability",
        "label": "Schedule Of Activity Relating To Asbestos Liability Table [Text Block]",
        "documentation": "Schedule of activity relating to asbestos liability."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfAllocationOfPlanAssetsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfAllocationOfPlanAssetsTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Allocation of Plan Assets [Table Text Block]",
        "terseLabel": "Asset Categories Based on the Nature and Risks of the Plans Assets",
        "documentation": "Tabular disclosure of the major categories of plan assets of pension plans and/or other employee benefit plans. This information may include, but is not limited to, the target allocation of plan assets, the fair value of each major category of plan assets, and the level within the fair value hierarchy in which the fair value measurements fall."
       }
      }
     },
     "auth_ref": [
      "r197"
     ]
    },
    "us-gaap_ScheduleOfAmountsRecognizedInOtherComprehensiveIncomeLossTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfAmountsRecognizedInOtherComprehensiveIncomeLossTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Income Tax Effect Associated With Various Components of Other Comprehensive Loss",
        "label": "Schedule of Amounts Recognized in Other Comprehensive Income (Loss) [Table Text Block]",
        "documentation": "Tabular disclosure of the net gain (loss) and net prior service cost or credit recognized in other comprehensive income (loss) for the period for pension plans and/or other employee benefit plans, and reclassification adjustments of other comprehensive income (loss) for the period, as those amounts, including amortization of the net transition asset or obligation, are recognized as components of net periodic benefit cost."
       }
      }
     },
     "auth_ref": [
      "r196"
     ]
    },
    "ap_ScheduleOfAsbestosAdjustmentsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ScheduleOfAsbestosAdjustmentsTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of asbestos adjustments.",
        "label": "Schedule Of Asbestos Adjustments Table [Text Block]",
        "terseLabel": "Summary of Activity in Asbestos Insurance Recoveries"
       }
      }
     },
     "auth_ref": []
    },
    "ap_ScheduleOfAsbestosRelatedCostsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ScheduleOfAsbestosRelatedCostsTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Asbestos Related Costs",
        "label": "Schedule Of Asbestos Related Costs [Table Text Block]",
        "documentation": "Schedule of asbestos related costs."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfAssumptionsUsedTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfAssumptionsUsedTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Assumptions [Table Text Block]",
        "terseLabel": "Assumptions Regarding Net Periodic Pension and Other Postretirement Benefit Costs",
        "documentation": "Tabular disclosure of assumption used to determine benefit obligation and net periodic benefit cost of defined benefit plan. Includes, but is not limited to, discount rate, rate of compensation increase, expected long-term rate of return on plan assets and interest crediting rate."
       }
      }
     },
     "auth_ref": [
      "r555"
     ]
    },
    "ap_ScheduleOfAssumptionsUsedToDetermineBenefitObligationsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ScheduleOfAssumptionsUsedToDetermineBenefitObligationsTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of assumptions used to determine benefit obligations.",
        "label": "Schedule Of Assumptions Used To Determine Benefit Obligations Table [Text Block]",
        "terseLabel": "Discount Rates Used to Determine the Benefit Obligations"
       }
      }
     },
     "auth_ref": []
    },
    "ap_ScheduleOfBalanceSheetDisclosureOfOperatingLeaseLiabilityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ScheduleOfBalanceSheetDisclosureOfOperatingLeaseLiabilityTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of balance sheet disclosure of operating lease liability.",
        "label": "Schedule Of Balance Sheet Disclosure Of Operating Lease Liability Table [Text Block]",
        "terseLabel": "Schedule of Balance Sheet Disclosure of Operating Lease Liability"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Components of Income Tax Expense (Benefit) [Table Text Block]",
        "terseLabel": "Summary of Income Tax Provision",
        "documentation": "Tabular disclosure of the components of income tax expense attributable to continuing operations for each year presented including, but not limited to: current tax expense (benefit), deferred tax expense (benefit), investment tax credits, government grants, the benefits of operating loss carryforwards, tax expense that results from allocating certain tax benefits either directly to contributed capital or to reduce goodwill or other noncurrent intangible assets of an acquired entity, adjustments of a deferred tax liability or asset for enacted changes in tax laws or rates or a change in the tax status of the entity, and adjustments of the beginning-of-the-year balances of a valuation allowance because of a change in circumstances that causes a change in judgment about the realizability of the related deferred tax asset in future years."
       }
      }
     },
     "auth_ref": [
      "r203"
     ]
    },
    "us-gaap_ScheduleOfComprehensiveIncomeLossTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfComprehensiveIncomeLossTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net Changes and Ending Balances for Various Components of Other Comprehensive Loss and Accumulated Other Comprehensive Loss",
        "label": "Comprehensive Income (Loss) [Table Text Block]",
        "documentation": "Tabular disclosure of components of comprehensive income (loss). Includes, but is not limited to, foreign currency translation adjustments, foreign currency transactions designated as economic hedges of a net investment in foreign entity, gain (loss) and prior service cost (credit) for pension plans and other postretirement benefit plans."
       }
      }
     },
     "auth_ref": [
      "r163"
     ]
    },
    "us-gaap_ScheduleOfDebtInstrumentsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfDebtInstrumentsTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Long-Term Debt Instruments [Table Text Block]",
        "terseLabel": "Schedule of Debt",
        "documentation": "Tabular disclosure of long-debt instruments or arrangements, including identification, terms, features, collateral requirements and other information necessary to a fair presentation. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the entity, if longer."
       }
      }
     },
     "auth_ref": [
      "r39",
      "r82",
      "r83",
      "r134",
      "r135",
      "r136",
      "r142",
      "r193",
      "r194",
      "r1070",
      "r1072",
      "r1176"
     ]
    },
    "us-gaap_ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Deferred Tax Assets and Liabilities [Table Text Block]",
        "terseLabel": "Deferred Income Tax Assets and Liabilities",
        "documentation": "Tabular disclosure of the components of net deferred tax asset or liability recognized in an entity's statement of financial position, including the following: the total of all deferred tax liabilities, the total of all deferred tax assets, the total valuation allowance recognized for deferred tax assets."
       }
      }
     },
     "auth_ref": [
      "r202"
     ]
    },
    "us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfDefinedBenefitPlansDisclosuresTable",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosurePensionAndOtherPostretirementBenefitsComponentsOfActuarialLossesGainsInProjectedBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssumptionsRegardingNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsDiscountRatesUsedToDetermineBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfAccumulatedOtherComprehensiveLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInProjectedBenefitObligationsPBODetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfFundedStatusOfPlansDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfAmountsRecognizedInConsolidatedBalanceSheetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfChangesInFairValueOfLevel3PlanAssetsForUSAndForeignPensionBenefitsPlansDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfTargetAssetAllocationsAndMajorAssetCategoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Defined Benefit Plans Disclosures [Table]",
        "terseLabel": "Schedule Of Defined Benefit Plans Disclosures [Table]",
        "documentation": "Disclosures about an individual defined benefit pension plan or an other postretirement defined benefit plan. It may be appropriate to group certain similar plans. Also includes schedule for fair value of plan assets by major categories of plan assets by the level within the fair value hierarchy in which the fair value measurements in their entirety fall, segregating fair value measurements using quoted prices in active markets for identical assets or liabilities (Level 1), Significant other observable inputs (Level 2), and significant unobservable inputs (Level 3)."
       }
      }
     },
     "auth_ref": [
      "r14",
      "r86",
      "r87",
      "r88",
      "r89"
     ]
    },
    "us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfDefinedBenefitPlansDisclosuresTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Defined Benefit Plans Disclosures [Table Text Block]",
        "terseLabel": "Reconciliation of Projected Benefit Obligations (PBO), Plan Assets, the Funded Status of the Plans and the Amounts Recognized in the Consolidated Balance Sheets",
        "documentation": "Tabular disclosure of one or more of the entity's defined benefit pension plans or one or more other defined benefit postretirement plans, separately for pension plans and other postretirement benefit plans including the entity's schedule of fair value of plan assets for defined benefit or other postretirement plans."
       }
      }
     },
     "auth_ref": [
      "r14",
      "r86",
      "r87",
      "r88",
      "r89"
     ]
    },
    "ap_ScheduleOfDerivativeInstrumentsAmountOfChangeInFairValueReclassifiedOrExpectedToBeReclassifiedFromAccumulatedOtherComprehensiveIncomeLossToEarningsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ScheduleOfDerivativeInstrumentsAmountOfChangeInFairValueReclassifiedOrExpectedToBeReclassifiedFromAccumulatedOtherComprehensiveIncomeLossToEarningsTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of derivative instruments amount of change in fair value reclassified or expected to be reclassified from accumulated other comprehensive income loss to earnings.",
        "label": "Schedule Of Derivative Instruments Amount Of Change In Fair Value Reclassified Or Expected To Be Reclassified From Accumulated Other Comprehensive Income Loss To Earnings Table [Text Block]",
        "terseLabel": "Summary of Change in Fair Value Reclassified or Expected to be Reclassified from Accumulated Other Comprehensive Loss to Earnings"
       }
      }
     },
     "auth_ref": []
    },
    "ap_ScheduleOfDerivativeInstrumentsAmountRecognizedAndReclassifiedFromAccumulatedOtherComprehensiveIncomeLossTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ScheduleOfDerivativeInstrumentsAmountRecognizedAndReclassifiedFromAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of derivative instruments amount recognized and reclassified from accumulated other comprehensive income loss.",
        "label": "Schedule Of Derivative Instruments Amount Recognized And Reclassified From Accumulated Other Comprehensive Income Loss Table [Text Block]",
        "terseLabel": "Summary of Amount Recognized as and Reclassified from Accumulated Other Comprehensive Income (Loss)"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfDerivativesInstrumentsStatementsOfFinancialPerformanceAndFinancialPositionLocationTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfDerivativesInstrumentsStatementsOfFinancialPerformanceAndFinancialPositionLocationTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Derivatives Instruments Statements of Financial Performance and Financial Position, Location [Table Text Block]",
        "terseLabel": "Location and Fair Value of Foreign Currency Sales Contracts Recorded on Consolidated Balance Sheets",
        "documentation": "Tabular disclosure of derivative instruments (including nonderivative instruments that are designated and qualify as hedging instruments) of (a) the location and amount of gains and losses reported in the statement of financial performance and (b) the location and fair value amounts of the instruments reported in the statement of financial position."
       }
      }
     },
     "auth_ref": [
      "r115"
     ]
    },
    "ap_ScheduleOfDescriptionOfBusinessLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ScheduleOfDescriptionOfBusinessLineItems",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDescriptionOfBusinessAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule Of Description Of Business [Line Items]",
        "label": "Schedule Of Description Of Business [Line Items]",
        "terseLabel": "Schedule Of Description Of Business [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_ScheduleOfDescriptionOfBusinessTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ScheduleOfDescriptionOfBusinessTable",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDescriptionOfBusinessAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule Of Description Of Business [Table]",
        "label": "Schedule Of Description Of Business [Table]",
        "terseLabel": "Schedule Of Description Of Business [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfEffectOfSignificantUnobservableInputsChangesInPlanAssetsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfEffectOfSignificantUnobservableInputsChangesInPlanAssetsTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Effect of Significant Unobservable Inputs, Changes in Plan Assets [Table Text Block]",
        "terseLabel": "Summary of Changes in the Fair Value of the Level 3 Plan Assets for U.S. and Foreign Pension Plans",
        "documentation": "Tabular disclosure of the effect of fair value measurements using significant unobservable inputs (Level 3) on changes in plan assets of pension plans and/or other employee benefit plans for the period."
       }
      }
     },
     "auth_ref": [
      "r1248"
     ]
    },
    "us-gaap_ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Effective Income Tax Rate Reconciliation [Table Text Block]",
        "terseLabel": "Difference Between Statutory U.S. Federal Income Tax and the Corporation's Effective Income Tax",
        "documentation": "Tabular disclosure of the reconciliation using percentage or dollar amounts of the reported amount of income tax expense attributable to continuing operations for the year to the amount of income tax expense that would result from applying domestic federal statutory tax rates to pretax income from continuing operations."
       }
      }
     },
     "auth_ref": [
      "r201"
     ]
    },
    "us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue from External Customers by Products and Services [Table]",
        "terseLabel": "Schedule Of Entity Wide Information Revenue From External Customers By Products And Services [Table]",
        "documentation": "Tabular presentation of the description and amount of revenues from a product or service, or a group of similar products or similar services, reported from external customers during the period, if the information is not provided as part of the reportable operating segment information."
       }
      }
     },
     "auth_ref": [
      "r66"
     ]
    },
    "srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfBalancesOutstandingWithAtrsMinorityShareholderAndItsAffiliatesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfLoanActivityDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInvestmentsInJointVenturesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment, Name [Axis]",
        "terseLabel": "Investment, Name"
       }
      }
     },
     "auth_ref": [
      "r380",
      "r381",
      "r383"
     ]
    },
    "us-gaap_ScheduleOfExpectedBenefitPaymentsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfExpectedBenefitPaymentsTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Expected Benefit Payments [Table Text Block]",
        "terseLabel": "Schedule of Estimated Benefit Payments",
        "documentation": "Tabular disclosure of benefits expected to be paid by pension plans and/or other employee benefit plans in each of the next five fiscal years and in the aggregate for the five fiscal years thereafter."
       }
      }
     },
     "auth_ref": [
      "r198"
     ]
    },
    "us-gaap_ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureFairValueTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Table Text Block]",
        "terseLabel": "Fair Value of Financial Assets and Liabilities",
        "documentation": "Tabular disclosure of assets and liabilities, including [financial] instruments measured at fair value that are classified in stockholders' equity, if any, that are measured at fair value on a recurring basis. The disclosures contemplated herein include the fair value measurements at the reporting date by the level within the fair value hierarchy in which the fair value measurements in their entirety fall, segregating fair value measurements using quoted prices in active markets for identical assets (Level 1), significant other observable inputs (Level 2), and significant unobservable inputs (Level 3)."
       }
      }
     },
     "auth_ref": [
      "r708",
      "r709"
     ]
    },
    "ap_ScheduleOfFiniteAndIndefiniteLivedIntangibleAssetsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ScheduleOfFiniteAndIndefiniteLivedIntangibleAssetsTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of finite and indefinite lived intangible assets.",
        "label": "Schedule Of Finite And Indefinite Lived Intangible Assets Table [Text Block]",
        "terseLabel": "Schedule of Intangible Assets"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "(Loss) Income from Operations Before Income Taxes",
        "label": "Schedule of Income before Income Tax, Domestic and Foreign [Table Text Block]",
        "documentation": "Tabular disclosure of income before income tax between domestic and foreign jurisdictions."
       }
      }
     },
     "auth_ref": [
      "r1174"
     ]
    },
    "ap_ScheduleOfIntangibleAssetsNetExcludingGoodwillTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ScheduleOfIntangibleAssetsNetExcludingGoodwillTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIntangibleAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of intangible assets net excluding goodwill.",
        "label": "Schedule Of Intangible Assets Net Excluding Goodwill Table [Text Block]",
        "terseLabel": "Summary of Changes in Intangible Assets"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfInventoryCurrentTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfInventoryCurrentTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInventoriesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Inventory, Current [Table Text Block]",
        "terseLabel": "Schedule of Inventories",
        "documentation": "Tabular disclosure of the carrying amount as of the balance sheet date of merchandise, goods, commodities, or supplies held for future sale or to be used in manufacturing, servicing or production process."
       }
      }
     },
     "auth_ref": [
      "r30",
      "r159",
      "r160",
      "r161"
     ]
    },
    "us-gaap_ScheduleOfInvestmentsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfInvestmentsLineItems",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInvestmentsInJointVenturesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Investments [Line Items]",
        "terseLabel": "Schedule of Investments [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r948",
      "r949",
      "r950",
      "r951",
      "r952",
      "r953",
      "r954",
      "r955",
      "r956",
      "r957",
      "r958",
      "r959",
      "r960",
      "r961",
      "r962",
      "r963",
      "r964",
      "r965",
      "r966",
      "r967",
      "r968",
      "r969",
      "r972",
      "r973",
      "r974",
      "r975",
      "r976",
      "r977",
      "r978",
      "r979",
      "r980",
      "r981",
      "r982",
      "r983",
      "r984",
      "r985",
      "r986",
      "r987",
      "r988",
      "r989",
      "r990",
      "r991",
      "r992",
      "r993",
      "r994",
      "r995",
      "r1002",
      "r1003",
      "r1004",
      "r1005",
      "r1006",
      "r1007",
      "r1008",
      "r1009",
      "r1010",
      "r1011",
      "r1012",
      "r1013",
      "r1014",
      "r1015",
      "r1016",
      "r1017",
      "r1018",
      "r1019",
      "r1020"
     ]
    },
    "us-gaap_ScheduleOfInvestmentsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfInvestmentsTable",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInvestmentsInJointVenturesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Investments [Table]",
        "terseLabel": "Schedule Of Investments [Table]",
        "documentation": "Disclosure of information about investments owned by investment company."
       }
      }
     },
     "auth_ref": [
      "r948",
      "r949",
      "r950",
      "r951",
      "r952",
      "r953",
      "r954",
      "r955",
      "r956",
      "r957",
      "r958",
      "r959",
      "r960",
      "r961",
      "r962",
      "r963",
      "r964",
      "r965",
      "r966",
      "r967",
      "r968",
      "r969",
      "r972",
      "r973",
      "r974",
      "r975",
      "r976",
      "r977",
      "r978",
      "r979",
      "r980",
      "r981",
      "r982",
      "r983",
      "r984",
      "r985",
      "r986",
      "r987",
      "r988",
      "r989",
      "r990",
      "r991",
      "r992",
      "r993",
      "r994",
      "r995",
      "r1002",
      "r1003",
      "r1004",
      "r1006",
      "r1007",
      "r1008",
      "r1009",
      "r1010",
      "r1011",
      "r1012",
      "r1013",
      "r1014",
      "r1015",
      "r1016",
      "r1017",
      "r1018",
      "r1019",
      "r1020"
     ]
    },
    "us-gaap_ScheduleOfLossContingenciesByContingencyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfLossContingenciesByContingencyTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Loss Contingencies by Contingency [Table Text Block]",
        "terseLabel": "Schedule of Loss Contingencies by Contingency",
        "documentation": "Tabular disclosure of the loss contingencies that were reported in the period or disclosed as of the balance sheet date."
       }
      }
     },
     "auth_ref": [
      "r1204",
      "r1206",
      "r1208",
      "r1210"
     ]
    },
    "us-gaap_ScheduleOfNetBenefitCostsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfNetBenefitCostsTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Net Benefit Costs [Table Text Block]",
        "terseLabel": "Net Periodic Pension and Other Postretirement Benefit Costs",
        "documentation": "Tabular disclosure of the components of net benefit costs for pension plans and/or other employee benefit plans including service cost, interest cost, expected return on plan assets, gain (loss), prior service cost or credit, transition asset or obligation, and gain (loss) recognized due to settlements or curtailments."
       }
      }
     },
     "auth_ref": [
      "r199"
     ]
    },
    "us-gaap_ScheduleOfNonvestedShareActivityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfNonvestedShareActivityTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Outstanding Restricted Stock Units (\"RSU\") and Performance Share Awards (\"PSU\")",
        "label": "Schedule of Nonvested Share Activity [Table Text Block]",
        "documentation": "Tabular disclosure of the changes in outstanding nonvested shares."
       }
      }
     },
     "auth_ref": [
      "r95"
     ]
    },
    "us-gaap_ScheduleOfProductWarrantyLiabilityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfProductWarrantyLiabilityTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Product Warranty Liability [Table Text Block]",
        "terseLabel": "Schedule of Changes in Liability for Product Warranty Claims",
        "documentation": "Tabular disclosure of the changes in the guarantor's aggregate product warranty liability, including the beginning balance of the aggregate product warranty liability, the aggregate reductions in that liability for payments made (in cash or in kind) under the warranty, the aggregate changes in the liability for accruals related to product warranties issued during the reporting period, the aggregate changes in the liability for accruals related to preexisting warranties (including adjustments related to changes in estimates), and the ending balance of the aggregate product warranty liability."
       }
      }
     },
     "auth_ref": [
      "r432"
     ]
    },
    "us-gaap_ScheduleOfPropertyPlantAndEquipmentTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfPropertyPlantAndEquipmentTable",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureOperatingLeaseRightofuseAssetsScheduleOfTheNetBookValueOfRightofuseAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentScheduleOfPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment [Table]",
        "terseLabel": "Schedule Of Property Plant And Equipment [Table]",
        "documentation": "Disclosure of information about physical assets used in the normal conduct of business and not intended for resale. Includes, but is not limited to, balances by class of assets, depreciation and depletion expense and method used, including composite depreciation, and accumulated deprecation."
       }
      }
     },
     "auth_ref": [
      "r12"
     ]
    },
    "us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfRelatedPartyTransactionsByRelatedPartyTable",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfBalancesOutstandingWithAtrsMinorityShareholderAndItsAffiliatesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfLoanActivityDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesSummaryOfSalesToAndPurchasesFromAtrsMinorityShareholderAndItsAffiliatesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Related Party Transactions, by Related Party [Table]",
        "terseLabel": "Schedule Of Related Party Transactions By Related Party [Table]",
        "documentation": "Schedule of quantitative and qualitative information pertaining to related party transactions. Examples of related party transactions include transactions between (a) a parent company and its subsidiary; (b) subsidiaries of a common parent; (c) and entity and its principal owners; and (d) affiliates."
       }
      }
     },
     "auth_ref": [
      "r137",
      "r139",
      "r922",
      "r923",
      "r926"
     ]
    },
    "us-gaap_ScheduleOfRelatedPartyTransactionsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfRelatedPartyTransactionsTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureRelatedPartiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Related Party Transactions",
        "label": "Schedule of Related Party Transactions [Table Text Block]",
        "documentation": "Tabular disclosure of related party transactions. Examples of related party transactions include, but are not limited to, transactions between (a) a parent company and its subsidiary; (b) subsidiaries of a common parent; (c) and entity and its principal owners and (d) affiliates."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Revenues from External Customers and Long-Lived Assets [Table]",
        "documentation": "Schedule of material long-lived assets (excluding financial instruments, customer relationships with financial institutions, mortgage and other servicing rights, deferred policy acquisition costs, and deferred taxes assets) located in identified geographic areas and/or the amount of revenue from external customers attributed to that country from which revenue is material. An entity may also provide subtotals of geographic information about groups of countries."
       }
      }
     },
     "auth_ref": [
      "r67",
      "r165"
     ]
    },
    "ap_ScheduleOfRightOfUseAssetsAssociatedWithOperatingLeasesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ScheduleOfRightOfUseAssetsAssociatedWithOperatingLeasesTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseRightOfUseAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of The Net Book Value of Right-of-Use Assets",
        "documentation": "Schedule of right-of-use assets associated with operating leases.",
        "label": "Schedule Of Right Of Use Assets Associated With Operating Leases Table [Text Block]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_ScheduleOfSaleOfSubsidiaryAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ScheduleOfSaleOfSubsidiaryAbstract",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule Of Sale Of Subsidiary [Abstract]",
        "label": "Schedule Of Sale Of Subsidiary [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ScheduleOfSegmentReportingInformationBySegmentTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfSegmentReportingInformationBySegmentTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Segment Reporting Information, by Segment [Table Text Block]",
        "terseLabel": "Business Segment Net Sales and (Loss) Income from Operations Before Income Taxes",
        "documentation": "Tabular disclosure of the profit or loss and total assets for each reportable segment. An entity discloses certain information on each reportable segment if the amounts (a) are included in the measure of segment profit or loss reviewed by the chief operating decision maker or (b) are otherwise regularly provided to the chief operating decision maker, even if not included in that measure of segment profit or loss."
       }
      }
     },
     "auth_ref": [
      "r63",
      "r64",
      "r65",
      "r70"
     ]
    },
    "us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureStockbasedCompensationSummaryOfOutstandingRestrictedStockAwardsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingRestrictedStockUnitsRSUAndPerformanceShareAwardsPSUDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Share-Based Compensation Arrangements by Share-Based Payment Award [Table]",
        "terseLabel": "Schedule Of Share Based Compensation Arrangements By Share Based Payment Award [Table]",
        "documentation": "Disclosure of information about share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r593",
      "r594",
      "r596",
      "r597",
      "r598",
      "r600",
      "r601",
      "r602",
      "r603",
      "r604",
      "r605",
      "r606",
      "r607",
      "r608",
      "r609",
      "r610",
      "r611",
      "r612",
      "r613",
      "r614",
      "r615",
      "r616",
      "r617",
      "r620",
      "r621",
      "r622",
      "r623",
      "r624"
     ]
    },
    "us-gaap_ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement, Option, Activity [Table Text Block]",
        "terseLabel": "Summary of Outstanding Stock Options",
        "documentation": "Tabular disclosure for stock option plans. Includes, but is not limited to, outstanding awards at beginning and end of year, grants, exercises, forfeitures, and weighted-average grant date fair value."
       }
      }
     },
     "auth_ref": [
      "r23",
      "r24",
      "r94"
     ]
    },
    "ap_ScheduleOfSignificantAccountingPoliciesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ScheduleOfSignificantAccountingPoliciesLineItems",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule Of Significant Accounting Policies [Line Items]",
        "label": "Schedule Of Significant Accounting Policies [Line Items]",
        "terseLabel": "Schedule Of Significant Accounting Policies [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_ScheduleOfSignificantAccountingPoliciesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ScheduleOfSignificantAccountingPoliciesTable",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule Of Significant Accounting Policies [Table]",
        "label": "Schedule Of Significant Accounting Policies [Table]",
        "terseLabel": "Schedule Of Significant Accounting Policies [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_ScheduleOfWarrantsOutstandingTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ScheduleOfWarrantsOutstandingTableTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of warrants outstanding.",
        "label": "Schedule Of Warrants Outstanding Table [Text Block]",
        "terseLabel": "Schedule of Outstanding Warrants"
       }
      }
     },
     "auth_ref": []
    },
    "ap_SecuredOvernightFinancingRateSofrAdjustmentMarginMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "SecuredOvernightFinancingRateSofrAdjustmentMarginMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Secured Overnight Financing Rate S O F R Adjustment Margin [Member]",
        "label": "Secured Overnight Financing Rate SOFR Adjustment Margin [Member]",
        "documentation": "Secured overnight financing rate SOFR adjustment margin."
       }
      }
     },
     "auth_ref": []
    },
    "ap_SecuredOvernightFinancingRateSofrAdjustmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "SecuredOvernightFinancingRateSofrAdjustmentMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Secured Overnight Financing Rate S O F R Adjustment Member",
        "label": "Secured Overnight Financing Rate SOFR Adjustment [Member]",
        "documentation": "Secured overnight financing rate SOFR adjustment."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "SOFR",
        "label": "Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate [Member]",
        "documentation": "Fixed rate on U.S. dollar, constant-notional interest rate swap that has its variable-rate leg referenced to Secured Overnight Financing Rate (SOFR) with no additional spread over SOFR on variable-rate leg."
       }
      }
     },
     "auth_ref": [
      "r1328"
     ]
    },
    "dei_Security12bTitle": {
     "xbrltype": "securityTitleItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "Security12bTitle",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Title of 12(b) Security",
        "terseLabel": "Title of 12(b) Security",
        "documentation": "Title of a 12(b) registered security."
       }
      }
     },
     "auth_ref": [
      "r1114"
     ]
    },
    "dei_SecurityExchangeName": {
     "xbrltype": "edgarExchangeCodeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "SecurityExchangeName",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Exchange Name",
        "terseLabel": "Security Exchange Name",
        "documentation": "Name of the Exchange on which a security is registered."
       }
      }
     },
     "auth_ref": [
      "r1117"
     ]
    },
    "us-gaap_SegmentContinuingOperationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SegmentContinuingOperationsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Continuing Operations [Member]",
        "terseLabel": "Continuing Operations [Member]",
        "documentation": "Component of an entity expected to operate in the foreseeable future."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SegmentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SegmentDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segments [Domain]",
        "terseLabel": "Segments",
        "documentation": "Components of an entity that engage in business activities from which they may earn revenue and incur expenses, including transactions with other components of the same entity."
       }
      }
     },
     "auth_ref": [
      "r342",
      "r345",
      "r346",
      "r347",
      "r348",
      "r349",
      "r350",
      "r351",
      "r352",
      "r353",
      "r354",
      "r355",
      "r356",
      "r358",
      "r359",
      "r360",
      "r361",
      "r362",
      "r363",
      "r364",
      "r365",
      "r366",
      "r368",
      "r374",
      "r401",
      "r402",
      "r403",
      "r404",
      "r405",
      "r406",
      "r407",
      "r408",
      "r409",
      "r418",
      "r419",
      "r821",
      "r822",
      "r823",
      "r824",
      "r825",
      "r826",
      "r827",
      "r828",
      "r829",
      "r830",
      "r831",
      "r1065",
      "r1151",
      "r1355"
     ]
    },
    "us-gaap_SegmentExpenditureAdditionToLongLivedAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SegmentExpenditureAdditionToLongLivedAssets",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Capital Expenditures",
        "label": "Segment, Expenditure, Addition to Long-Lived Assets",
        "documentation": "Amount of expenditure for addition to long-lived assets included in determination of segment assets by chief operating decision maker (CODM) or otherwise regularly provided to CODM. Excludes expenditure for addition to financial instrument, long-term customer relationship of financial institution, mortgage and other servicing rights, deferred policy acquisition cost, and deferred tax assets."
       }
      }
     },
     "auth_ref": [
      "r356",
      "r1063"
     ]
    },
    "srt_SegmentGeographicalDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "SegmentGeographicalDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueNetSalesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Geographical [Domain]",
        "terseLabel": "Geographical"
       }
      }
     },
     "auth_ref": [
      "r372",
      "r373",
      "r879",
      "r882",
      "r884",
      "r957",
      "r971",
      "r992",
      "r1017",
      "r1034",
      "r1035",
      "r1036",
      "r1037",
      "r1038",
      "r1039",
      "r1040",
      "r1041",
      "r1042",
      "r1047",
      "r1077",
      "r1105",
      "r1221",
      "r1355"
     ]
    },
    "us-gaap_SegmentOperatingActivitiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SegmentOperatingActivitiesDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Activities [Domain]",
        "terseLabel": "Operating Activities",
        "documentation": "Operations of an entity including continuing and discontinued operations."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SegmentReportingAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SegmentReportingAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment Reporting [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SegmentReportingDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SegmentReportingDisclosureTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment Reporting Disclosure [Text Block]",
        "terseLabel": "Business Segments",
        "documentation": "The entire disclosure for reporting segments including data and tables. Reportable segments include those that meet any of the following quantitative thresholds a) it's reported revenue, including sales to external customers and intersegment sales or transfers is 10 percent or more of the combined revenue, internal and external, of all operating segments b) the absolute amount of its reported profit or loss is 10 percent or more of the greater, in absolute amount of 1) the combined reported profit of all operating segments that did not report a loss or 2) the combined reported loss of all operating segments that did report a loss c) its assets are 10 percent or more of the combined assets of all operating segments."
       }
      }
     },
     "auth_ref": [
      "r341",
      "r342",
      "r343",
      "r344",
      "r345",
      "r357",
      "r362",
      "r366",
      "r367",
      "r368",
      "r369",
      "r370",
      "r371",
      "r374"
     ]
    },
    "us-gaap_SellingGeneralAndAdministrativeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SellingGeneralAndAdministrativeExpense",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations": {
       "parentTag": "us-gaap_CostsAndExpenses",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Selling, General and Administrative Expense",
        "terseLabel": "Selling and administrative",
        "totalLabel": "Selling, General and Administrative Expense, Total",
        "documentation": "The aggregate total costs related to selling a firm's product and services, as well as all other general and administrative expenses. Direct selling expenses (for example, credit, warranty, and advertising) are expenses that can be directly linked to the sale of specific products. Indirect selling expenses are expenses that cannot be directly linked to the sale of specific products, for example telephone expenses, Internet, and postal charges. General and administrative expenses include salaries of non-sales personnel, rent, utilities, communication, etc."
       }
      }
     },
     "auth_ref": [
      "r170"
     ]
    },
    "ap_SeniorSecuredAssetBasedRevolvingCreditFacilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "SeniorSecuredAssetBasedRevolvingCreditFacilityMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Senior secured asset-based revolving credit facility.",
        "label": "Senior Secured Asset Based Revolving Credit Facility [Member]",
        "terseLabel": "Senior Secured Asset-Based Revolving Credit Facility [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_SeriesAWarrantsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "SeriesAWarrantsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingSummaryOfOutstandingWarrantsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Series A warrants.",
        "label": "Series A Warrants [Member]",
        "terseLabel": "Series A Warrants [Member]",
        "verboseLabel": "Warrants [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_ServicePeriodToAvailExistingPensionPlan": {
     "xbrltype": "durationItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ServicePeriodToAvailExistingPensionPlan",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Years of service required to receive benefits from the plan.",
        "label": "Service Period To Avail Existing Pension Plan",
        "terseLabel": "Service period to avail existing pension plan"
       }
      }
     },
     "auth_ref": []
    },
    "ap_SettlementGrossAndDefenseCostsPaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "SettlementGrossAndDefenseCostsPaid",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationScheduleOfLossContingenciesByContingencyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of settlement and defense costs satisfied during the reporting period before consideration of the amount, if any, covered by existing insurance policies.",
        "label": "Settlement Gross And Defense Costs Paid",
        "terseLabel": "Gross settlement and defense costs paid"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShareBasedCompensation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensation",
     "crdr": "debit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows": {
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement, Noncash Expense",
        "terseLabel": "Stock-based compensation",
        "totalLabel": "Share-Based Payment Arrangement, Noncash Expense, Total",
        "documentation": "Amount of noncash expense for share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r10"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Award Vesting Period",
        "terseLabel": "Vesting period, years",
        "verboseLabel": "Restricted stock units vesting period, years",
        "documentation": "Period over which grantee's right to exercise award under share-based payment arrangement is no longer contingent on satisfaction of service or performance condition, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. Includes, but is not limited to, combination of market, performance or service condition."
       }
      }
     },
     "auth_ref": [
      "r1095"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardDescription",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Description",
        "terseLabel": "PSUs earning conditions",
        "documentation": "Description of terms of share-based payment arrangement. Includes, but is not limited to, type of award or grantee and reason for issuance."
       }
      }
     },
     "auth_ref": [
      "r90",
      "r92"
     ]
    },
    "ap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsConvertedToCommonStock": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsConvertedToCommonStock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureStockbasedCompensationSummaryOfOutstandingRestrictedStockAwardsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingRestrictedStockUnitsRSUAndPerformanceShareAwardsPSUDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Number of Restricted Stock Awards, Converted to common stock",
        "documentation": "Share based compensation arrangement by share based payment award equity instruments other than options converted to common stock.",
        "label": "Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Converted To Common Stock",
        "negatedLabel": "Number of incentive options, Converted to common stock"
       }
      }
     },
     "auth_ref": []
    },
    "ap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsConvertedToCommonStockWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsConvertedToCommonStockWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureStockbasedCompensationSummaryOfOutstandingRestrictedStockAwardsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingRestrictedStockUnitsRSUAndPerformanceShareAwardsPSUDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Weighted Average Fair Value of options, Converted to common stock",
        "documentation": "Share based compensation arrangement by share based payment award equity instruments other than options converted to common stock weighted average grant date fair value.",
        "label": "Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Converted To Common Stock Weighted Average Grant Date Fair Value",
        "terseLabel": "Weighted Average Fair Value of incentive options, Converted to common stock"
       }
      }
     },
     "auth_ref": []
    },
    "ap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsCumulativeEarningsAchievementPeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsCumulativeEarningsAchievementPeriod",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share based compensation arrangement by share based payment award equity instruments other than options cumulative earnings achievement period.",
        "label": "Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Cumulative Earnings Achievement Period",
        "terseLabel": "Cumulative earnings achievement period"
       }
      }
     },
     "auth_ref": []
    },
    "ap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExpiredInPeriod": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExpiredInPeriod",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingStockOptionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share based compensation arrangement by share based payment award equity instruments other than options expired in period.",
        "label": "Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Expired In Period",
        "negatedLabel": "Number of Shares Under Options, Expired"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingRestrictedStockUnitsRSUAndPerformanceShareAwardsPSUDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Forfeited in Period",
        "negatedLabel": "Number of incentive options, Forfeited",
        "negatedTerseLabel": "Number of Shares Under Options, Forfeited",
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that were forfeited during the reporting period."
       }
      }
     },
     "auth_ref": [
      "r613"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingRestrictedStockUnitsRSUAndPerformanceShareAwardsPSUDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Forfeitures, Weighted Average Grant Date Fair Value",
        "terseLabel": "Weighted Average Fair Value of incentive options, Forfeited",
        "documentation": "Weighted average fair value as of the grant date of equity-based award plans other than stock (unit) option plans that were not exercised or put into effect as a result of the occurrence of a terminating event."
       }
      }
     },
     "auth_ref": [
      "r613"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureStockbasedCompensationSummaryOfOutstandingRestrictedStockAwardsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingRestrictedStockUnitsRSUAndPerformanceShareAwardsPSUDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Number of Restricted Stock Awards, Granted",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Grants in Period",
        "terseLabel": "Number of incentive options, Granted",
        "documentation": "The number of grants made during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan)."
       }
      }
     },
     "auth_ref": [
      "r611"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureStockbasedCompensationSummaryOfOutstandingRestrictedStockAwardsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingRestrictedStockUnitsRSUAndPerformanceShareAwardsPSUDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Weighted Average Fair Value of options, Granted",
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value",
        "terseLabel": "Weighted Average Fair Value of incentive options, Granted",
        "documentation": "The weighted average fair value at grant date for nonvested equity-based awards issued during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan)."
       }
      }
     },
     "auth_ref": [
      "r611"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureStockbasedCompensationSummaryOfOutstandingRestrictedStockAwardsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingRestrictedStockUnitsRSUAndPerformanceShareAwardsPSUDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Number",
        "periodEndLabel": "Number of incentive options, Outstanding, Ending balance",
        "periodStartLabel": "Number of incentive options, Outstanding, Beginning balance",
        "documentation": "The number of non-vested equity-based payment instruments, excluding stock (or unit) options, that validly exist and are outstanding as of the balance sheet date."
       }
      }
     },
     "auth_ref": [
      "r608",
      "r609"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureStockbasedCompensationSummaryOfOutstandingRestrictedStockAwardsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingRestrictedStockUnitsRSUAndPerformanceShareAwardsPSUDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value",
        "periodEndLabel": "Weighted Average Fair Value of incentive options, Outstanding, Ending Balance",
        "periodStartLabel": "Weighted Average Fair Value of incentive options, Outstanding, Beginning balance",
        "documentation": "Per share or unit weighted-average fair value of nonvested award under share-based payment arrangement. Excludes share and unit options."
       }
      }
     },
     "auth_ref": [
      "r608",
      "r609"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureStockbasedCompensationSummaryOfOutstandingRestrictedStockAwardsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingRestrictedStockUnitsRSUAndPerformanceShareAwardsPSUDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items]",
        "terseLabel": "Share-based Compensation Arrangement by Share-based Payment Award [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r593",
      "r594",
      "r596",
      "r597",
      "r598",
      "r600",
      "r601",
      "r602",
      "r603",
      "r604",
      "r605",
      "r606",
      "r607",
      "r608",
      "r609",
      "r610",
      "r611",
      "r612",
      "r613",
      "r614",
      "r615",
      "r616",
      "r617",
      "r620",
      "r621",
      "r622",
      "r623",
      "r624"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Number of Additional Shares Authorized",
        "terseLabel": "Number of additional shares authorized under Omnibus Incentive Plan",
        "documentation": "Number of additional shares authorized for issuance under share-based payment arrangement."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Number of Shares Authorized",
        "terseLabel": "Number of shares authorized under Omnibus Incentive Plan",
        "documentation": "Number of shares authorized for issuance under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r1096"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingStockOptionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Exercisable, Number",
        "terseLabel": "Number of Shares Under Options, Exercisable",
        "documentation": "The number of shares into which fully or partially vested stock options outstanding as of the balance sheet date can be currently converted under the option plan."
       }
      }
     },
     "auth_ref": [
      "r602"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingStockOptionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Exercisable, Weighted Average Exercise Price",
        "terseLabel": "Weighted Average Exercise Price, Exercisable",
        "documentation": "The weighted-average price as of the balance sheet date at which grantees can acquire the shares reserved for issuance on vested portions of options outstanding and currently exercisable under the stock option plan."
       }
      }
     },
     "auth_ref": [
      "r602"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExpirationsInPeriod": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExpirationsInPeriod",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingStockOptionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Expirations in Period",
        "negatedLabel": "Number of Shares Under Options, Expired",
        "documentation": "Number of options or other stock instruments for which the right to exercise has lapsed under the terms of the plan agreements."
       }
      }
     },
     "auth_ref": [
      "r607"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Grants in Period, Weighted Average Grant Date Fair Value",
        "terseLabel": "Equity based awards grant date fair value",
        "documentation": "The weighted average grant-date fair value of options granted during the reporting period as calculated by applying the disclosed option pricing methodology."
       }
      }
     },
     "auth_ref": [
      "r614"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingStockOptionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Intrinsic Value",
        "terseLabel": "Intrinsic Value, Outstanding, Beginning balance",
        "documentation": "Amount by which the current fair value of the underlying stock exceeds the exercise price of options outstanding."
       }
      }
     },
     "auth_ref": [
      "r91"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingStockOptionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Number",
        "periodEndLabel": "Number of Shares Under Options, Outstanding, Ending Balance",
        "periodStartLabel": "Number of Shares Under Options, Outstanding, Beginning balance",
        "documentation": "Number of options outstanding, including both vested and non-vested options."
       }
      }
     },
     "auth_ref": [
      "r600",
      "r601"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingStockOptionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Weighted Average Exercise Price",
        "periodEndLabel": "Weighted Average Exercise Price, Outstanding, Ending balance",
        "periodStartLabel": "Weighted Average Exercise Price, Outstanding, Beginning balance",
        "documentation": "Weighted average price at which grantees can acquire the shares reserved for issuance under the stock option plan."
       }
      }
     },
     "auth_ref": [
      "r600",
      "r601"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingStockOptionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Vested and Expected to Vest, Outstanding, Aggregate Intrinsic Value",
        "terseLabel": "Intrinsic Value, Vested or expected to vest",
        "documentation": "Amount by which current fair value of underlying stock exceeds exercise price of fully vested and expected to vest options outstanding. Includes, but is not limited to, unvested options for which requisite service period has not been rendered but that are expected to vest based on achievement of performance condition, if forfeitures are recognized when they occur."
       }
      }
     },
     "auth_ref": [
      "r616"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingStockOptionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Vested and Expected to Vest, Outstanding, Number",
        "terseLabel": "Number of Shares Under Options, Vested or expected to vest",
        "documentation": "Number of fully vested and expected to vest options outstanding that can be converted into shares under option plan. Includes, but is not limited to, unvested options for which requisite service period has not been rendered but that are expected to vest based on achievement of performance condition, if forfeitures are recognized when they occur."
       }
      }
     },
     "auth_ref": [
      "r616"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingStockOptionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Vested and Expected to Vest, Outstanding, Weighted Average Exercise Price",
        "terseLabel": "Weighted Average Exercise Price, Vested or expected to vest",
        "documentation": "Weighted-average exercise price, at which grantee can acquire shares reserved for issuance, for fully vested and expected to vest options outstanding. Includes, but is not limited to, unvested options for which requisite service period has not been rendered but that are expected to vest based on achievement of performance condition, if forfeitures are recognized when they occur."
       }
      }
     },
     "auth_ref": [
      "r616"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureStockbasedCompensationSummaryOfOutstandingRestrictedStockAwardsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingRestrictedStockUnitsRSUAndPerformanceShareAwardsPSUDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Award Types",
        "terseLabel": "Award Type",
        "documentation": "Award under share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r596",
      "r597",
      "r598",
      "r600",
      "r601",
      "r602",
      "r603",
      "r604",
      "r605",
      "r606",
      "r607",
      "r608",
      "r609",
      "r610",
      "r611",
      "r612",
      "r613",
      "r614",
      "r615",
      "r616",
      "r617",
      "r620",
      "r621",
      "r622",
      "r623",
      "r624"
     ]
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExpirationsInPeriodWeightedAverageExercisePrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExpirationsInPeriodWeightedAverageExercisePrice",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingStockOptionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangements by Share-Based Payment Award, Options, Expirations in Period, Weighted Average Exercise Price",
        "terseLabel": "Weighted Average Exercise Price, Expired",
        "documentation": "Weighted average price at which grantees could have acquired the underlying shares with respect to stock options of the plan that expired."
       }
      }
     },
     "auth_ref": [
      "r607"
     ]
    },
    "us-gaap_ShareBasedCompensationOptionAndIncentivePlansPolicy": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ShareBasedCompensationOptionAndIncentivePlansPolicy",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Payment Arrangement [Policy Text Block]",
        "terseLabel": "Stock-Based Compensation",
        "documentation": "Disclosure of accounting policy for award under share-based payment arrangement. Includes, but is not limited to, methodology and assumption used in measuring cost."
       }
      }
     },
     "auth_ref": [
      "r592",
      "r599",
      "r618",
      "r619",
      "r620",
      "r621",
      "r624",
      "r633",
      "r634",
      "r635",
      "r636"
     ]
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingStockOptionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Exercisable, Intrinsic Value",
        "terseLabel": "Intrinsic Value, Exercisable",
        "documentation": "Amount of difference between fair value of the underlying shares reserved for issuance and exercise price of vested portions of options outstanding and currently exercisable."
       }
      }
     },
     "auth_ref": [
      "r91"
     ]
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingStockOptionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Exercisable, Weighted Average Remaining Contractual Term",
        "terseLabel": "Remaining Contractual Life In Years, Exercisable",
        "documentation": "Weighted average remaining contractual term for vested portions of options outstanding and currently exercisable or convertible, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days."
       }
      }
     },
     "auth_ref": [
      "r91"
     ]
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingStockOptionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Weighted Average Remaining Contractual Term",
        "verboseLabel": "Remaining Contractual Life In Years, Outstanding",
        "documentation": "Weighted average remaining contractual term for option awards outstanding, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days."
       }
      }
     },
     "auth_ref": [
      "r200"
     ]
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1": {
     "xbrltype": "durationItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureStockBasedCompensationSummaryOfOutstandingStockOptionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Vested and Expected to Vest, Outstanding, Weighted Average Remaining Contractual Term",
        "terseLabel": "Remaining Contractual Life In Years, Vested or expected to vest",
        "documentation": "Weighted average remaining contractual term for fully vested and expected to vest options outstanding, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. Includes, but is not limited to, unvested options for which requisite service period has not been rendered but that are expected to vest based on achievement of performance condition, if forfeitures are recognized when they occur."
       }
      }
     },
     "auth_ref": [
      "r616"
     ]
    },
    "ap_ShortTermLeaseCostsMaturityPeriod": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ShortTermLeaseCostsMaturityPeriod",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short term lease costs maturity period",
        "documentation": "Short term lease costs maturity period."
       }
      }
     },
     "auth_ref": []
    },
    "ap_ShortTermOperatingLeaseCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "ShortTermOperatingLeaseCost",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOperatingLeaseLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Short-term lease cost for leases with an original maturity of less than 1-year",
        "documentation": "Short term operating lease cost.",
        "label": "Short Term Operating Lease Cost",
        "terseLabel": "Short-term operating lease costs"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SignificantAccountingPoliciesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SignificantAccountingPoliciesTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Significant Accounting Policies [Text Block]",
        "terseLabel": "Summary of Significant Accounting Policies",
        "documentation": "The entire disclosure for all significant accounting policies of the reporting entity."
       }
      }
     },
     "auth_ref": [
      "r180",
      "r293"
     ]
    },
    "ap_SloveniaTaxAuthorityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "SloveniaTaxAuthorityMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Slovenia Tax Authority",
        "label": "Slovenia Tax Authority [Member]",
        "documentation": "Slovenia Tax Authority [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StandardProductWarrantyAccrual": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StandardProductWarrantyAccrual",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesScheduleOfChangesInLiabilityForProductWarrantyClaimsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Standard Product Warranty Accrual",
        "periodEndLabel": "Balance at the end of the year",
        "periodStartLabel": "Balance at the beginning of the year",
        "totalLabel": "Standard Product Warranty Accrual, Total",
        "documentation": "Amount as of the balance sheet date of the aggregate standard product warranty liability. Does not include the balance for the extended product warranty liability."
       }
      }
     },
     "auth_ref": [
      "r1212",
      "r1215"
     ]
    },
    "us-gaap_StandardProductWarrantyAccrualForeignCurrencyTranslationGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StandardProductWarrantyAccrualForeignCurrencyTranslationGainLoss",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesScheduleOfChangesInLiabilityForProductWarrantyClaimsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Standard Product Warranty Accrual, Foreign Currency Translation Gain (Loss)",
        "negatedLabel": "Other, primarily impact from changes in foreign currency exchange rates",
        "documentation": "Amount of foreign currency translation gain (loss) which decreases (increases) the standard product warranty accrual. Excludes extended product warranties."
       }
      }
     },
     "auth_ref": [
      "r1211"
     ]
    },
    "us-gaap_StandardProductWarrantyAccrualPayments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StandardProductWarrantyAccrualPayments",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesScheduleOfChangesInLiabilityForProductWarrantyClaimsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Standard Product Warranty Accrual, Decrease for Payments",
        "negatedLabel": "Satisfaction of warranty claims",
        "documentation": "Amount of decrease in the standard product warranty accrual from payments made in cash or in kind to satisfy claims under the terms of the standard product warranty. Excludes extended product warranties."
       }
      }
     },
     "auth_ref": [
      "r1213"
     ]
    },
    "us-gaap_StandardProductWarrantyAccrualWarrantiesIssued": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StandardProductWarrantyAccrualWarrantiesIssued",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureOtherCurrentLiabilitiesScheduleOfChangesInLiabilityForProductWarrantyClaimsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Standard Product Warranty Accrual, Increase for Warranties Issued",
        "terseLabel": "Provision for warranty claims",
        "documentation": "Amount of increase in the standard product warranty accrual from warranties issued. Excludes extended product warranties."
       }
      }
     },
     "auth_ref": [
      "r1214"
     ]
    },
    "us-gaap_StateAndLocalJurisdictionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StateAndLocalJurisdictionMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "State and Local Jurisdiction [Member]",
        "terseLabel": "State [Member]",
        "documentation": "Designated tax department of a state or local government entitled to levy and collect income taxes from the entity."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StatementBusinessSegmentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementBusinessSegmentsAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segments [Axis]",
        "terseLabel": "Segments",
        "documentation": "Information by business segments."
       }
      }
     },
     "auth_ref": [
      "r244",
      "r342",
      "r345",
      "r346",
      "r347",
      "r348",
      "r349",
      "r350",
      "r351",
      "r352",
      "r353",
      "r354",
      "r355",
      "r356",
      "r358",
      "r359",
      "r360",
      "r361",
      "r362",
      "r363",
      "r364",
      "r365",
      "r366",
      "r368",
      "r374",
      "r401",
      "r402",
      "r403",
      "r404",
      "r405",
      "r406",
      "r407",
      "r408",
      "r409",
      "r415",
      "r418",
      "r419",
      "r821",
      "r822",
      "r823",
      "r824",
      "r825",
      "r826",
      "r827",
      "r828",
      "r829",
      "r830",
      "r831",
      "r1065",
      "r1151",
      "r1355"
     ]
    },
    "us-gaap_StatementClassOfStockAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementClassOfStockAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Stock [Axis]",
        "terseLabel": "Class of Stock",
        "documentation": "Information by the different classes of stock of the entity."
       }
      }
     },
     "auth_ref": [
      "r238",
      "r257",
      "r258",
      "r259",
      "r295",
      "r330",
      "r331",
      "r333",
      "r335",
      "r339",
      "r340",
      "r384",
      "r433",
      "r436",
      "r437",
      "r438",
      "r444",
      "r445",
      "r477",
      "r478",
      "r480",
      "r481",
      "r482",
      "r713",
      "r855",
      "r856",
      "r857",
      "r858",
      "r866",
      "r867",
      "r868",
      "r869",
      "r870",
      "r871",
      "r872",
      "r873",
      "r874",
      "r875",
      "r876",
      "r877",
      "r897",
      "r919",
      "r942",
      "r1025",
      "r1026",
      "r1027",
      "r1028",
      "r1029",
      "r1125",
      "r1171",
      "r1187"
     ]
    },
    "us-gaap_StatementEquityComponentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementEquityComponentsAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossNetChangesAndEndingBalancesForVariousComponentsOfOtherComprehensiveLossAndAccumulatedOtherCompr",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossLineItemsAffectedOnConsolidatedStatementsOfOperationsForComponentsReclassifiedFromAccumulatedOtherComprehensiveLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfChangeInFairValueReclassifiedOrExpectedToBeReclassifiedFromAccumulatedOtherComprehensiveLossToEarningsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquityParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Components [Axis]",
        "terseLabel": "Retained Deficit [Member]",
        "documentation": "Information by component of equity."
       }
      }
     },
     "auth_ref": [
      "r20",
      "r42",
      "r241",
      "r278",
      "r279",
      "r280",
      "r309",
      "r310",
      "r311",
      "r314",
      "r324",
      "r326",
      "r338",
      "r390",
      "r396",
      "r484",
      "r630",
      "r631",
      "r632",
      "r658",
      "r659",
      "r686",
      "r688",
      "r689",
      "r690",
      "r691",
      "r693",
      "r703",
      "r727",
      "r729",
      "r730",
      "r731",
      "r732",
      "r733",
      "r759",
      "r841",
      "r842",
      "r843",
      "r866",
      "r942"
     ]
    },
    "srt_StatementGeographicalAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "StatementGeographicalAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueNetSalesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Geographical [Axis]",
        "terseLabel": "Geographical"
       }
      }
     },
     "auth_ref": [
      "r372",
      "r373",
      "r879",
      "r882",
      "r884",
      "r957",
      "r971",
      "r992",
      "r1017",
      "r1031",
      "r1034",
      "r1035",
      "r1036",
      "r1037",
      "r1038",
      "r1039",
      "r1040",
      "r1041",
      "r1042",
      "r1047",
      "r1077",
      "r1105",
      "r1221",
      "r1355"
     ]
    },
    "us-gaap_StatementLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementLineItems",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquityParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement [Line Items]",
        "terseLabel": "Statement [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": [
      "r309",
      "r310",
      "r311",
      "r338",
      "r775",
      "r853",
      "r877",
      "r889",
      "r890",
      "r891",
      "r892",
      "r893",
      "r894",
      "r897",
      "r900",
      "r901",
      "r902",
      "r903",
      "r904",
      "r905",
      "r906",
      "r907",
      "r908",
      "r911",
      "r912",
      "r913",
      "r914",
      "r915",
      "r917",
      "r920",
      "r921",
      "r927",
      "r928",
      "r929",
      "r930",
      "r931",
      "r932",
      "r933",
      "r934",
      "r935",
      "r936",
      "r937",
      "r938",
      "r942",
      "r1106"
     ]
    },
    "us-gaap_StatementOfCashFlowsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementOfCashFlowsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Cash Flows [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StatementOfFinancialPositionAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementOfFinancialPositionAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Financial Position [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StatementOfIncomeAndComprehensiveIncomeAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementOfIncomeAndComprehensiveIncomeAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Comprehensive Income [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StatementOfStockholdersEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementOfStockholdersEquityAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Stockholders' Equity [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StatementOperatingActivitiesSegmentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementOperatingActivitiesSegmentAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Activities [Axis]",
        "terseLabel": "Continuing Operations [Member]",
        "documentation": "Information by continuing and discontinuing operations."
       }
      }
     },
     "auth_ref": []
    },
    "srt_StatementScenarioAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "StatementScenarioAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureCommitmentsAndContingentLiabilitiesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Scenario [Axis]"
       }
      }
     },
     "auth_ref": [
      "r327",
      "r589",
      "r1138",
      "r1139",
      "r1186"
     ]
    },
    "us-gaap_StatementTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StatementTable",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquityParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement [Table]",
        "terseLabel": "Statement [Table]",
        "documentation": "Schedule reflecting a Statement of Income, Statement of Cash Flows, Statement of Financial Position, Statement of Shareholders' Equity and Other Comprehensive Income, or other statement as needed."
       }
      }
     },
     "auth_ref": [
      "r309",
      "r310",
      "r311",
      "r338",
      "r775",
      "r853",
      "r877",
      "r889",
      "r890",
      "r891",
      "r892",
      "r893",
      "r894",
      "r897",
      "r900",
      "r901",
      "r902",
      "r903",
      "r904",
      "r905",
      "r906",
      "r907",
      "r908",
      "r911",
      "r912",
      "r913",
      "r914",
      "r915",
      "r917",
      "r920",
      "r921",
      "r927",
      "r928",
      "r929",
      "r930",
      "r931",
      "r932",
      "r933",
      "r934",
      "r935",
      "r936",
      "r937",
      "r938",
      "r942",
      "r1106"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodSharesNewIssues": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockIssuedDuringPeriodSharesNewIssues",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Issued During Period, Shares, New Issues",
        "documentation": "Number of new stock issued during the period."
       }
      }
     },
     "auth_ref": [
      "r20",
      "r152",
      "r153",
      "r195",
      "r855",
      "r942",
      "r1026"
     ]
    },
    "us-gaap_StockIssuedDuringPeriodValueNewIssues": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockIssuedDuringPeriodValueNewIssues",
     "crdr": "credit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Issued During Period, Value, New Issues",
        "terseLabel": "Issuance of common stock including excess tax benefits",
        "documentation": "Equity impact of the value of new stock issued during the period. Includes shares issued in an initial public offering or a secondary public offering."
       }
      }
     },
     "auth_ref": [
      "r20",
      "r152",
      "r153",
      "r195",
      "r866",
      "r942",
      "r1026",
      "r1112"
     ]
    },
    "us-gaap_StockholdersEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockholdersEquity",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0,
       "order": 0.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity, Attributable to Parent",
        "totalLabel": "Total Ampco-Pittsburgh shareholders\u2019 equity",
        "periodStartLabel": "Stockholders' Equity Attributable to Parent, Beginning Balance",
        "periodEndLabel": "Stockholders' Equity Attributable to Parent, Ending Balance",
        "documentation": "Amount of equity (deficit) attributable to parent. Excludes temporary equity and equity attributable to noncontrolling interest."
       }
      }
     },
     "auth_ref": [
      "r153",
      "r156",
      "r157",
      "r182",
      "r899",
      "r916",
      "r943",
      "r944",
      "r1100",
      "r1113",
      "r1173",
      "r1194",
      "r1333",
      "r1357"
     ]
    },
    "us-gaap_StockholdersEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockholdersEquityAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity, Attributable to Parent [Abstract]",
        "terseLabel": "Shareholders\u2019 equity:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
     "crdr": "credit",
     "calculation": {
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets": {
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosureAccumulatedOtherComprehensiveLossNetChangesAndEndingBalancesForVariousComponentsOfOtherComprehensiveLossAndAccumulatedOtherCompr",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedBalanceSheets",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Adjustment to opening retained deficit",
        "label": "Equity, Including Portion Attributable to Noncontrolling Interest",
        "periodEndLabel": "Ending Balance",
        "periodStartLabel": "Beginning Balance",
        "totalLabel": "Total shareholders\u2019 equity",
        "terseLabel": "Adjustment to opening retained earnings",
        "documentation": "Amount of equity (deficit) attributable to parent and noncontrolling interest. Excludes temporary equity."
       }
      }
     },
     "auth_ref": [
      "r102",
      "r103",
      "r106",
      "r241",
      "r242",
      "r279",
      "r309",
      "r310",
      "r311",
      "r314",
      "r324",
      "r390",
      "r396",
      "r484",
      "r630",
      "r631",
      "r632",
      "r658",
      "r659",
      "r686",
      "r688",
      "r689",
      "r690",
      "r691",
      "r693",
      "r703",
      "r727",
      "r729",
      "r733",
      "r759",
      "r842",
      "r843",
      "r864",
      "r899",
      "r916",
      "r943",
      "r944",
      "r1030",
      "r1112",
      "r1173",
      "r1194",
      "r1333",
      "r1357"
     ]
    },
    "ap_StocksOwnershipPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "StocksOwnershipPercentage",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Beneficial stock ownership percentage",
        "label": "Stocks Ownership Percentage",
        "documentation": "Stocks ownership percentage."
       }
      }
     },
     "auth_ref": []
    },
    "ap_StoreCapitalAcquisitionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "StoreCapitalAcquisitionsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Store Capital Acquisitions [Member]",
        "label": "Store Capital Acquisitions [Member]",
        "documentation": "Store capital acquisitions."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_SubsequentEventMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SubsequentEventMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Event [Member]",
        "terseLabel": "Subsequent Event [Member]",
        "documentation": "Identifies event that occurred after the balance sheet date but before financial statements are issued or available to be issued."
       }
      }
     },
     "auth_ref": [
      "r734",
      "r768"
     ]
    },
    "us-gaap_SubsequentEventTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SubsequentEventTypeAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Event Type [Axis]",
        "documentation": "Information by event that occurred after the balance sheet date but before financial statements are issued or available to be issued."
       }
      }
     },
     "auth_ref": [
      "r734",
      "r768"
     ]
    },
    "us-gaap_SubsequentEventTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SubsequentEventTypeDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Event Type [Domain]",
        "documentation": "Event that occurred after the balance sheet date but before financial statements are issued or available to be issued."
       }
      }
     },
     "auth_ref": [
      "r734",
      "r768"
     ]
    },
    "srt_SubsidiariesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "SubsidiariesMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subsidiary [Member]",
        "label": "Subsidiaries [Member]"
       }
      }
     },
     "auth_ref": [
      "r1269",
      "r1339",
      "r1340",
      "r1341"
     ]
    },
    "us-gaap_SupplementalCashFlowInformationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "SupplementalCashFlowInformationAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Supplemental Cash Flow Information [Abstract]",
        "terseLabel": "Supplemental disclosures of cash flow information:"
       }
      }
     },
     "auth_ref": []
    },
    "ap_SwedishCreditFacilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "SwedishCreditFacilityMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Swedish Credit Facility [Member]",
        "label": "Swedish Credit Facility [Member]",
        "documentation": "Swedish credit facility."
       }
      }
     },
     "auth_ref": []
    },
    "ap_TISCOMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "TISCOMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureInvestmentsInJointVenturesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "TISCO [Member]",
        "label": "T I S C O [Member]",
        "terseLabel": "TISCO [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TaxCreditCarryforwardAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TaxCreditCarryforwardAmount",
     "crdr": "debit",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax Credit Carryforward, Amount",
        "terseLabel": "Capital loss carryforwards",
        "documentation": "The amount of the tax credit carryforward, before tax effects, available to reduce future taxable income under enacted tax laws."
       }
      }
     },
     "auth_ref": [
      "r98"
     ]
    },
    "us-gaap_TaxCreditCarryforwardAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TaxCreditCarryforwardAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax Credit Carryforward [Axis]",
        "documentation": "Information by specific tax credit related to an unused tax credit."
       }
      }
     },
     "auth_ref": [
      "r97"
     ]
    },
    "us-gaap_TaxCreditCarryforwardNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TaxCreditCarryforwardNameDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax Credit Carryforward, Name [Domain]",
        "documentation": "The name of the tax credit carryforward."
       }
      }
     },
     "auth_ref": [
      "r97"
     ]
    },
    "ap_TaxExemptIndustrialRevenueBondOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "TaxExemptIndustrialRevenueBondOneMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tax exempt industrial revenue bond one.",
        "label": "Tax Exempt Industrial Revenue Bond One [Member]",
        "terseLabel": "Tax Exempt Industrial Revenue Bond One [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_TaxExemptIndustrialRevenueBondTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "TaxExemptIndustrialRevenueBondTwoMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tax exempt industrial revenue bond two.",
        "label": "Tax Exempt Industrial Revenue Bond Two [Member]",
        "terseLabel": "Tax Exempt Industrial Revenue Bond Two [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TaxPeriodAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TaxPeriodAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax Period [Axis]",
        "terseLabel": "Tax Period",
        "documentation": "Information about the period subject to enacted tax laws."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TaxPeriodDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TaxPeriodDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax Period [Domain]",
        "terseLabel": "Tax Period",
        "documentation": "Identified tax period."
       }
      }
     },
     "auth_ref": []
    },
    "ap_TaxableIndustrialRevenueBondMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "TaxableIndustrialRevenueBondMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Taxable industrial revenue bond.",
        "label": "Taxable Industrial Revenue Bond [Member]",
        "terseLabel": "Taxable Industrial Revenue Bond [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_TemporaryInvestmentFundsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "TemporaryInvestmentFundsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Temporary Investment Funds [Member]",
        "terseLabel": "Temporary Investment Funds [Member]",
        "documentation": "Temporary investment funds."
       }
      }
     },
     "auth_ref": []
    },
    "ap_TermLoanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "TermLoanMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Term Loan [Member]",
        "documentation": "Term loan."
       }
      }
     },
     "auth_ref": []
    },
    "ap_TermNotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "TermNotesMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Term Notes [Member]",
        "label": "Term Notes [Member]",
        "documentation": "Term notes."
       }
      }
     },
     "auth_ref": []
    },
    "ap_TimePeriodForHedgedUsageDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "TimePeriodForHedgedUsageDescription",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Time period for hedged usage description.",
        "label": "Time Period For Hedged Usage Description",
        "terseLabel": "Time period for hedged usage description"
       }
      }
     },
     "auth_ref": []
    },
    "dei_TradingSymbol": {
     "xbrltype": "tradingSymbolItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "TradingSymbol",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Symbol",
        "terseLabel": "Trading Symbol",
        "documentation": "Trading symbol of an instrument as listed on an exchange."
       }
      }
     },
     "auth_ref": []
    },
    "ap_TwoThousandAndThirtyFiveExpirationPeriodMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "TwoThousandAndThirtyFiveExpirationPeriodMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two Thousand and Thirty Five expiration period.",
        "label": "Two Thousand And Thirty Five Expiration Period [Member]",
        "terseLabel": "2035 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_TwoThousandAndTwentyEightTaxYearMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "TwoThousandAndTwentyEightTaxYearMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2028 [Member]",
        "label": "Two Thousand And Twenty Eight Tax Year [Member]",
        "documentation": "Two thousand and twenty eight tax year."
       }
      }
     },
     "auth_ref": []
    },
    "ap_TwoThousandAndTwentyFourTaxYearMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "TwoThousandAndTwentyFourTaxYearMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2024 [Member]",
        "label": "Two Thousand And Twenty Four Tax Year [Member]",
        "documentation": "Two thousand and twenty four tax year."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_TypeOfAdoptionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "TypeOfAdoptionMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureLitigationSummaryOfActivityInAsbestosInsuranceRecoveriesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Standards Update [Domain]",
        "documentation": "Amendment to accounting standards."
       }
      }
     },
     "auth_ref": [
      "r239",
      "r240",
      "r241",
      "r242",
      "r243",
      "r313",
      "r314",
      "r315",
      "r316",
      "r327",
      "r378",
      "r379",
      "r387",
      "r388",
      "r389",
      "r390",
      "r391",
      "r392",
      "r393",
      "r394",
      "r395",
      "r396",
      "r416",
      "r630",
      "r631",
      "r632",
      "r656",
      "r657",
      "r658",
      "r659",
      "r671",
      "r672",
      "r673",
      "r683",
      "r684",
      "r685",
      "r686",
      "r687",
      "r688",
      "r689",
      "r690",
      "r691",
      "r692",
      "r693",
      "r695",
      "r696",
      "r697",
      "r698",
      "r699",
      "r700",
      "r701",
      "r702",
      "r703",
      "r704",
      "r705",
      "r706",
      "r711",
      "r712",
      "r714",
      "r715",
      "r716",
      "r717",
      "r735",
      "r736",
      "r738",
      "r739",
      "r740",
      "r741",
      "r755",
      "r756",
      "r757",
      "r758",
      "r759",
      "r777",
      "r778",
      "r779",
      "r839",
      "r840",
      "r841",
      "r842",
      "r843",
      "r844",
      "r845",
      "r846",
      "r847",
      "r848",
      "r849",
      "r850"
     ]
    },
    "country_US": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2023",
     "localname": "US",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/DisclosurePensionAndOtherPostretirementBenefitsComponentsOfActuarialLossesGainsInProjectedBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureBusinessSegmentsBusinessSegmentNetSalesAndLossIncomeFromOperationsBeforeIncomeTaxesParentheticalDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssetCategoriesBasedOnNatureAndRisksOfPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAssumptionsRegardingNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsDiscountRatesUsedToDetermineBenefitObligationsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsNetPeriodicPensionAndOtherPostretirementBenefitCostsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfAccumulatedOtherComprehensiveLossDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInPlanAssetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfChangesInProjectedBenefitObligationsPBODetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfEstimatedBenefitPaymentsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsScheduleOfFundedStatusOfPlansDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfAmountsRecognizedInConsolidatedBalanceSheetsDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfChangesInFairValueOfLevel3PlanAssetsForUSAndForeignPensionBenefitsPlansDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsSummaryOfTargetAssetAllocationsAndMajorAssetCategoriesDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureRevenueNetSalesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "UNITED STATES",
        "terseLabel": "U.S. [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_UnfundedPlanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UnfundedPlanMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Unfunded Plan [Member]",
        "terseLabel": "Unfunded Plan [Member]",
        "documentation": "Defined benefit plan in which retirement benefits are payable directly from general assets of employer sponsoring plan."
       }
      }
     },
     "auth_ref": [
      "r1144",
      "r1224",
      "r1225",
      "r1226",
      "r1227",
      "r1228",
      "r1229",
      "r1230",
      "r1231",
      "r1232",
      "r1233",
      "r1234",
      "r1235",
      "r1236",
      "r1237",
      "r1238",
      "r1239",
      "r1240",
      "r1241",
      "r1242",
      "r1243",
      "r1244",
      "r1245",
      "r1246",
      "r1247",
      "r1248",
      "r1249",
      "r1250",
      "r1251",
      "r1252",
      "r1253",
      "r1254",
      "r1255",
      "r1256",
      "r1257",
      "r1258",
      "r1259",
      "r1260",
      "r1261",
      "r1262",
      "r1263",
      "r1264",
      "r1265",
      "r1266",
      "r1267",
      "r1268",
      "r1269",
      "r1270",
      "r1271",
      "r1272",
      "r1273",
      "r1274",
      "r1275",
      "r1276",
      "r1277",
      "r1278",
      "r1279",
      "r1280",
      "r1281",
      "r1282",
      "r1283"
     ]
    },
    "ap_UnionElectricSteelUKLimitedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "UnionElectricSteelUKLimitedMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Union Electric Steel UK Limited.",
        "label": "Union Electric Steel U K Limited [Member]",
        "terseLabel": "Union Electric Steel UK Limited [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_UnsecuredDebtMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "UnsecuredDebtMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unsecured Debt Member",
        "label": "Unsecured Debt [Member]",
        "documentation": "Debt obligation not collateralized by pledge of, mortgage of or other lien on the entity's assets."
       }
      }
     },
     "auth_ref": []
    },
    "ap_UsageOfElectricityUnderExistingCommitmentsDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "UsageOfElectricityUnderExistingCommitmentsDescription",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Usage of electricity under existing commitments description.",
        "label": "Usage Of Electricity Under Existing Commitments Description",
        "terseLabel": "Usage of electricity under existing commitments description"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ValuationAllowanceOfDeferredTaxAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ValuationAllowanceOfDeferredTaxAssetsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "SEC Schedule, 12-09, Valuation Allowance, Deferred Tax Asset [Member]",
        "terseLabel": "Valuation Allowance Against Gross Deferred Income Tax Assets [Member]",
        "documentation": "Valuation allowance of deferred tax asset attributable to deductible temporary difference and carryforward."
       }
      }
     },
     "auth_ref": [
      "r1177",
      "r1178",
      "r1179",
      "r1180",
      "r1181"
     ]
    },
    "us-gaap_ValuationAllowancesAndReservesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ValuationAllowancesAndReservesDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "SEC Schedule, 12-09, Valuation Allowances and Reserves [Domain]",
        "terseLabel": "SEC Schedule, 12-09, Valuation Allowances and Reserves",
        "documentation": "Valuation and qualifying accounts and reserves."
       }
      }
     },
     "auth_ref": [
      "r304",
      "r305",
      "r306",
      "r307",
      "r308"
     ]
    },
    "us-gaap_ValuationAllowancesAndReservesTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "ValuationAllowancesAndReservesTypeAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "SEC Schedule, 12-09, Valuation Allowances and Reserves Type [Axis]",
        "terseLabel": "SEC Schedule, 12-09, Valuation Allowances and Reserves Type",
        "documentation": "Information by valuation and qualifying accounts and reserves."
       }
      }
     },
     "auth_ref": [
      "r304",
      "r305",
      "r306",
      "r307",
      "r308"
     ]
    },
    "us-gaap_VariableRateAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "VariableRateAxis",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Variable Rate [Axis]",
        "terseLabel": "Variable Rate",
        "documentation": "Information by type of variable rate."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_VariableRateDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "VariableRateDomain",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Variable Rate [Domain]",
        "terseLabel": "Variable Rate",
        "documentation": "Interest rate that fluctuates over time as a result of an underlying benchmark interest rate or index."
       }
      }
     },
     "auth_ref": []
    },
    "ap_VariousEquityFundsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "VariousEquityFundsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Various Equity Funds [Member]",
        "terseLabel": "Various Equity Funds [Member]",
        "documentation": "Various equity funds."
       }
      }
     },
     "auth_ref": []
    },
    "ap_VariousFixedIncomeFundsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "VariousFixedIncomeFundsMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosurePensionAndOtherPostretirementBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Various Fixed- Income Funds [Member]",
        "terseLabel": "Various Fixed- Income Funds [Member]",
        "documentation": "Various fixed- income funds."
       }
      }
     },
     "auth_ref": []
    },
    "ap_WarrantExercisePrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "WarrantExercisePrice",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureEquityRightsOfferingAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Warrant exercise price.",
        "label": "Warrant Exercise Price",
        "terseLabel": "Exercise price per warrants"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_WarrantMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "WarrantMember",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Warrant [Member]",
        "terseLabel": "Warrants [Member]",
        "documentation": "Security that gives the holder the right to purchase shares of stock in accordance with the terms of the instrument, usually upon payment of a specified amount."
       }
      }
     },
     "auth_ref": [
      "r1103",
      "r1104",
      "r1107",
      "r1108",
      "r1109",
      "r1110"
     ]
    },
    "us-gaap_WarrantsAndRightsNoteDisclosureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "WarrantsAndRightsNoteDisclosureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Warrants and Rights Note Disclosure [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ap_WarrantsDisclosurePolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://ampcopgh.com/20231231",
     "localname": "WarrantsDisclosurePolicyTextBlock",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Warrants Disclosure Policy",
        "label": "Warrants Disclosure Policy [Text Block]",
        "terseLabel": "Warrants"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "WeightedAverageNumberOfDilutedSharesOutstanding",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted Average Number of Shares Outstanding, Diluted",
        "terseLabel": "Diluted",
        "totalLabel": "Weighted Average Number of Shares Outstanding, Diluted, Total",
        "documentation": "The average number of shares or units issued and outstanding that are used in calculating diluted EPS or earnings per unit (EPU), determined based on the timing of issuance of shares or units in the period."
       }
      }
     },
     "auth_ref": [
      "r329",
      "r335"
     ]
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "WeightedAverageNumberOfSharesOutstandingAbstract",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted Average Number of Shares Outstanding, Diluted [Abstract]",
        "terseLabel": "Weighted-average number of common shares outstanding:"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "WeightedAverageNumberOfSharesOutstandingBasic",
     "presentation": [
      "http://ampcopgh.com/20231231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted Average Number of Shares Outstanding, Basic",
        "terseLabel": "Basic",
        "totalLabel": "Weighted Average Number of Shares Outstanding, Basic, Total",
        "documentation": "Number of [basic] shares or units, after adjustment for contingently issuable shares or units and other shares or units not deemed outstanding, determined by relating the portion of time within a reporting period that common shares or units have been outstanding to the total time in that period."
       }
      }
     },
     "auth_ref": [
      "r328",
      "r335"
     ]
    }
   }
  }
 },
 "std_ref": {
  "r0": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "25",
   "Paragraph": "1",
   "SubTopic": "20",
   "Topic": "940",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481913/940-20-25-1"
  },
  "r1": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "SubTopic": "230",
   "Topic": "830",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481877/830-230-45-1"
  },
  "r2": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "10A",
   "SubTopic": "10",
   "Topic": "220",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-10A"
  },
  "r3": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "10A",
   "Subparagraph": "(a),(b),(c)",
   "SubTopic": "10",
   "Topic": "220",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-10A"
  },
  "r4": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "10A",
   "Subparagraph": "(a-c)",
   "SubTopic": "10",
   "Topic": "220",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-10A"
  },
  "r5": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "10A",
   "Subparagraph": "(i),(j),(k)",
   "SubTopic": "10",
   "Topic": "220",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-10A"
  },
  "r6": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "10A",
   "Subparagraph": "(i-k)",
   "SubTopic": "10",
   "Topic": "220",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-10A"
  },
  "r7": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "12",
   "SubTopic": "10",
   "Topic": "220",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-12"
  },
  "r8": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "15",
   "SubTopic": "10",
   "Topic": "220",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-15"
  },
  "r9": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "20",
   "SubTopic": "10",
   "Topic": "810",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-20"
  },
  "r10": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "28",
   "Subparagraph": "(a)",
   "SubTopic": "10",
   "Topic": "230",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-28"
  },
  "r11": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "28",
   "Subparagraph": "(b)",
   "SubTopic": "10",
   "Topic": "230",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-28"
  },
  "r12": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "10",
   "Topic": "360",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-1"
  },
  "r13": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "10",
   "Topic": "470",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481544/470-10-50-1"
  },
  "r14": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "20",
   "Topic": "715",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r15": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "30",
   "Topic": "350",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482665/350-30-50-1"
  },
  "r16": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "80",
   "Topic": "944",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480109/944-80-50-1"
  },
  "r17": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Subparagraph": "(e)",
   "SubTopic": "10",
   "Topic": "740",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-15"
  },
  "r18": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "19",
   "SubTopic": "10",
   "Topic": "740",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-19"
  },
  "r19": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(c),(3)",
   "SubTopic": "10",
   "Topic": "810",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-1A"
  },
  "r20": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "SubTopic": "10",
   "Topic": "505",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-2"
  },
  "r21": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "SubTopic": "10",
   "Topic": "815",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-2"
  },
  "r22": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "SubTopic": "10",
   "Topic": "820",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r23": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)",
   "SubTopic": "10",
   "Topic": "718",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r24": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)",
   "SubTopic": "10",
   "Topic": "718",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r25": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "SubTopic": "10",
   "Topic": "280",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-4"
  },
  "r26": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Subparagraph": "(c)",
   "Paragraph": "2",
   "SubTopic": "10",
   "Topic": "718",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r27": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "15",
   "SubTopic": "10",
   "Topic": "220",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482739/220-10-55-15"
  },
  "r28": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "S45",
   "Paragraph": "1",
   "SubTopic": "30",
   "Topic": "835",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479359/835-30-S45-1"
  },
  "r29": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(22))",
   "SubTopic": "10",
   "Topic": "210",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r30": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483489/210-10-50-1"
  },
  "r31": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.19(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r32": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.19(b),22(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r33": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.19-26)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r34": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.20)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r35": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.20,24)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r36": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.21)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r37": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.22(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r38": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.22(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r39": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.22)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r40": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.24)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r41": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.25)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r42": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.29-31)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r43": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "210",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.31)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r44": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "220",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "14",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-14"
  },
  "r45": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "220",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "14A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-14A"
  },
  "r46": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "220",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-5"
  },
  "r47": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "14",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-14"
  },
  "r48": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-15"
  },
  "r49": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "15",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-15"
  },
  "r50": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "25",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-25"
  },
  "r51": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-4"
  },
  "r52": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482913/230-10-50-1"
  },
  "r53": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482913/230-10-50-2"
  },
  "r54": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482913/230-10-50-3"
  },
  "r55": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482913/230-10-50-4"
  },
  "r56": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "230",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482913/230-10-50-5"
  },
  "r57": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "260",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482662/260-10-50-1"
  },
  "r58": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "260",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482662/260-10-50-2"
  },
  "r59": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "275",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "18",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-18"
  },
  "r60": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "275",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "18",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-18"
  },
  "r61": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "275",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "18",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-18"
  },
  "r62": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "275",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "20",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-20"
  },
  "r63": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "280",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "22",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r64": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "280",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "25",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-25"
  },
  "r65": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "280",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "30",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-30"
  },
  "r66": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "280",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "40",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-40"
  },
  "r67": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "280",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "41",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-41"
  },
  "r68": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "310",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//310/tableOfContent"
  },
  "r69": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "330",
   "SubTopic": "10",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SAB TOPIC 5.BB)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480581/330-10-S99-2"
  },
  "r70": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "350",
   "SubTopic": "20",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r71": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "350",
   "SubTopic": "30",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482686/350-30-45-1"
  },
  "r72": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "350",
   "SubTopic": "30",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482686/350-30-45-2"
  },
  "r73": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "350",
   "SubTopic": "30",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482665/350-30-50-1"
  },
  "r74": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "350",
   "SubTopic": "30",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "((a)(1),(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482665/350-30-50-2"
  },
  "r75": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "350",
   "SubTopic": "30",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482665/350-30-50-2"
  },
  "r76": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "350",
   "SubTopic": "30",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482665/350-30-50-2"
  },
  "r77": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "360",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482130/360-10-45-4"
  },
  "r78": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "360",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-1"
  },
  "r79": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "360",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-1"
  },
  "r80": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "470",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481573/470-10-45-10"
  },
  "r81": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "470",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481544/470-10-50-5"
  },
  "r82": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-3"
  },
  "r83": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "505",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-8"
  },
  "r84": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "715",
   "SubTopic": "20",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480535/715-20-45-2"
  },
  "r85": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "715",
   "SubTopic": "20",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r86": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "715",
   "SubTopic": "20",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-2"
  },
  "r87": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "715",
   "SubTopic": "20",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-3"
  },
  "r88": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "715",
   "SubTopic": "20",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-4"
  },
  "r89": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "715",
   "SubTopic": "20",
   "Section": "55",
   "Paragraph": "17",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480482/715-20-55-17"
  },
  "r90": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "718",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-1"
  },
  "r91": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "718",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r92": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "718",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r93": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "718",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b),(f(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r94": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "718",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r95": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "718",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r96": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "740",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482525/740-10-45-6"
  },
  "r97": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "740",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-3"
  },
  "r98": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "740",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-3"
  },
  "r99": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "740",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-8"
  },
  "r100": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "740",
   "SubTopic": "10",
   "Section": "55",
   "Paragraph": "217",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482663/740-10-55-217"
  },
  "r101": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "805",
   "SubTopic": "20",
   "Section": "55",
   "Paragraph": "20",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479876/805-20-55-20"
  },
  "r102": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-15"
  },
  "r103": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "16",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-16"
  },
  "r104": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "45",
   "Paragraph": "21",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-21"
  },
  "r105": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-1"
  },
  "r106": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "55",
   "Paragraph": "4I",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481175/810-10-55-4I"
  },
  "r107": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "55",
   "Paragraph": "4J",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481175/810-10-55-4J"
  },
  "r108": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "810",
   "SubTopic": "10",
   "Section": "55",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481175/810-10-55-4K"
  },
  "r109": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-1"
  },
  "r110": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-1A"
  },
  "r111": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-1A"
  },
  "r112": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-1B"
  },
  "r113": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(1)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-2"
  },
  "r114": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4"
  },
  "r115": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4A"
  },
  "r116": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4A"
  },
  "r117": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4A"
  },
  "r118": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4B"
  },
  "r119": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4B"
  },
  "r120": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4B",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4B"
  },
  "r121": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4C"
  },
  "r122": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-4D"
  },
  "r123": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-5"
  },
  "r124": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-7"
  },
  "r125": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-8"
  },
  "r126": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "10",
   "Section": "55",
   "Paragraph": "182",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480401/815-10-55-182"
  },
  "r127": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "25",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480238/815-25-50-1"
  },
  "r128": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "815",
   "SubTopic": "30",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480870/815-30-50-1"
  },
  "r129": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "820",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r130": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "820",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-3"
  },
  "r131": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "825",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "20",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482907/825-10-50-20"
  },
  "r132": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "825",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "21",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482907/825-10-50-21"
  },
  "r133": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "835",
   "SubTopic": "20",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483013/835-20-50-1"
  },
  "r134": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "835",
   "SubTopic": "30",
   "Section": "45",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482925/835-30-45-1A"
  },
  "r135": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "835",
   "SubTopic": "30",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482925/835-30-45-2"
  },
  "r136": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "835",
   "SubTopic": "30",
   "Section": "55",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482949/835-30-55-8"
  },
  "r137": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "850",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-1"
  },
  "r138": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "850",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-1"
  },
  "r139": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "850",
   "SubTopic": "10",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-3"
  },
  "r140": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "210",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03.17)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r141": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "210",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03.7(e))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r142": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "470",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480848/942-470-50-3"
  },
  "r143": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "942",
   "SubTopic": "470",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480848/942-470-50-3"
  },
  "r144": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Topic": "985",
   "SubTopic": "20",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481283/985-20-50-1"
  },
  "r145": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "205",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//205/tableOfContent"
  },
  "r146": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(19)(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r147": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(19))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r148": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(20))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r149": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(24))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r150": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(26)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r151": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(26)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r152": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(28))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r153": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(29))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r154": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(30)(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r155": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(30)(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r156": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(30))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r157": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(31))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r158": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(32))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r159": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(6)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r160": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(6)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r161": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(6)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r162": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//220/tableOfContent"
  },
  "r163": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Section": "45",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-1"
  },
  "r164": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-11"
  },
  "r165": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r166": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r167": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(20))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r168": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r169": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03.2(a),(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r170": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03.4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r171": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03.7(a),(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r172": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03.7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r173": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03.8)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r174": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03.9)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r175": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "12",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-12"
  },
  "r176": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "13",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-13"
  },
  "r177": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "24",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-24"
  },
  "r178": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "25",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-25"
  },
  "r179": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "28",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-28"
  },
  "r180": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "235",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//235/tableOfContent"
  },
  "r181": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "275",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//275/tableOfContent"
  },
  "r182": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SAB Topic 4.E)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480418/310-10-S99-2"
  },
  "r183": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "330",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SAB Topic 5.BB)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480581/330-10-S99-2"
  },
  "r184": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482665/350-30-50-1"
  },
  "r185": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482665/350-30-50-2"
  },
  "r186": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482665/350-30-50-2"
  },
  "r187": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482665/350-30-50-2"
  },
  "r188": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "360",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//360/tableOfContent"
  },
  "r189": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-1"
  },
  "r190": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-2"
  },
  "r191": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "440",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//440/tableOfContent"
  },
  "r192": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "470",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//470/tableOfContent"
  },
  "r193": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-6"
  },
  "r194": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-7"
  },
  "r195": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.3-04)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480008/505-10-S99-1"
  },
  "r196": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r197": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "715",
   "SubTopic": "20",
   "Subparagraph": "(d)(5)",
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Section": "50",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r198": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "715",
   "SubTopic": "20",
   "Subparagraph": "(f)",
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Section": "50",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r199": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "715",
   "SubTopic": "20",
   "Subparagraph": "(h)",
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Section": "50",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r200": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "718",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Section": "50",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r201": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Section": "50",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-12"
  },
  "r202": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Section": "50",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-2"
  },
  "r203": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Section": "50",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-9"
  },
  "r204": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-15"
  },
  "r205": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-15A"
  },
  "r206": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 6.I.7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1"
  },
  "r207": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "38",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479876/805-20-55-38"
  },
  "r208": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "19",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-19"
  },
  "r209": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-1A"
  },
  "r210": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "815",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//815/tableOfContent"
  },
  "r211": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r212": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(11))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r213": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(13))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r214": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(15)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r215": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(15))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r216": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(16))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r217": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(22))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r218": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-03(23))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479853/942-210-S99-1"
  },
  "r219": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(15))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r220": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(22))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r221": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "985",
   "SubTopic": "730",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//985-730/tableOfContent"
  },
  "r222": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "840",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481161/840-30-50-1"
  },
  "r223": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "840",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "50",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481266/840-40-55-50"
  },
  "r224": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "840",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "51",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481266/840-40-55-51"
  },
  "r225": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "840",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "52",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481266/840-40-55-52"
  },
  "r226": {
   "role": "http://fasb.org/us-gaap/role/ref/otherTransitionRef",
   "Topic": "944",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479808/944-20-55-15"
  },
  "r227": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "SubTopic": "20",
   "Topic": "740",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482659/740-20-45-2"
  },
  "r228": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "SubTopic": "230",
   "Topic": "942",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481160/942-230-45-4"
  },
  "r229": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "SubTopic": "10",
   "Topic": "270",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482989/270-10-45-6"
  },
  "r230": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "SubTopic": "360",
   "Topic": "958",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480321/958-360-50-1"
  },
  "r231": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "SubTopic": "360",
   "Topic": "958",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480321/958-360-50-6"
  },
  "r232": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "SubTopic": "360",
   "Topic": "958",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480321/958-360-50-7"
  },
  "r233": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(b)",
   "SubTopic": "10",
   "Topic": "740",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-9"
  },
  "r234": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(h))",
   "SubTopic": "10",
   "Topic": "235",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r235": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02.22(a)(2))",
   "SubTopic": "10",
   "Topic": "210",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r236": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Topic": "323",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//323/tableOfContent"
  },
  "r237": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Accounting Standards Codification",
   "Topic": "606",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//606/tableOfContent"
  },
  "r238": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1402",
   "Paragraph": "(a)",
   "Publisher": "SEC"
  },
  "r239": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479343/105-10-65-6"
  },
  "r240": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479343/105-10-65-6"
  },
  "r241": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479343/105-10-65-6"
  },
  "r242": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479343/105-10-65-6"
  },
  "r243": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479343/105-10-65-6"
  },
  "r244": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "205",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483499/205-20-50-1"
  },
  "r245": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "205",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483499/205-20-50-7"
  },
  "r246": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483467/210-10-45-1"
  },
  "r247": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483467/210-10-45-5"
  },
  "r248": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483489/210-10-50-1"
  },
  "r249": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r250": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(12))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r251": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(13))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r252": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(14))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r253": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(15))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r254": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(16))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r255": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(17))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r256": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(18))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r257": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(27)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r258": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(28))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r259": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(29))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r260": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(30)(a)(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r261": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r262": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(6)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r263": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r264": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r265": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(9))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r266": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "10A",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-10A"
  },
  "r267": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-11"
  },
  "r268": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-12"
  },
  "r269": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "14A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-14A"
  },
  "r270": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-15"
  },
  "r271": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "17A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-17A"
  },
  "r272": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-1A"
  },
  "r273": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-1A"
  },
  "r274": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1A",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-1A"
  },
  "r275": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-1B"
  },
  "r276": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1B",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482790/220-10-45-1B"
  },
  "r277": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482765/220-10-50-1"
  },
  "r278": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482765/220-10-50-4"
  },
  "r279": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482765/220-10-50-5"
  },
  "r280": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482765/220-10-50-6"
  },
  "r281": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r282": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(21))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r283": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(22))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r284": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(23))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r285": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(24))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r286": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(25))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r287": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "17",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-17"
  },
  "r288": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-2"
  },
  "r289": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "24",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-24"
  },
  "r290": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "25",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-25"
  },
  "r291": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482913/230-10-50-2"
  },
  "r292": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482913/230-10-50-8"
  },
  "r293": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483426/235-10-50-1"
  },
  "r294": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r295": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(g)(1)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r296": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(h)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r297": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(h)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r298": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(k)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r299": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(k)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r300": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(m)(1)(iii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r301": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(m)(2)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r302": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(n))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r303": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-04(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-3"
  },
  "r304": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "4",
   "Subparagraph": "(SX 210.12-09(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-4"
  },
  "r305": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "4",
   "Subparagraph": "(SX 210.12-09(Column C(1)))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-4"
  },
  "r306": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "4",
   "Subparagraph": "(SX 210.12-09(Column C(2)))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-4"
  },
  "r307": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "4",
   "Subparagraph": "(SX 210.12-09(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-4"
  },
  "r308": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "4",
   "Subparagraph": "(SX 210.12-09(Column E))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-4"
  },
  "r309": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "23",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483421/250-10-45-23"
  },
  "r310": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "24",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483421/250-10-45-24"
  },
  "r311": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "5",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483421/250-10-45-5"
  },
  "r312": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483421/250-10-45-6"
  },
  "r313": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-1"
  },
  "r314": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-1"
  },
  "r315": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-1"
  },
  "r316": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-1"
  },
  "r317": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-11"
  },
  "r318": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-11"
  },
  "r319": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-12"
  },
  "r320": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-3"
  },
  "r321": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-4"
  },
  "r322": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-7"
  },
  "r323": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-7"
  },
  "r324": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-7"
  },
  "r325": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-8"
  },
  "r326": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-9"
  },
  "r327": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5",
   "Subparagraph": "(SAB Topic 11.M.Q2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480530/250-10-S99-5"
  },
  "r328": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-10"
  },
  "r329": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "16",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-16"
  },
  "r330": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-2"
  },
  "r331": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-3"
  },
  "r332": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "60B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-60B"
  },
  "r333": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "60B",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-60B"
  },
  "r334": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-7"
  },
  "r335": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482662/260-10-50-1"
  },
  "r336": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482662/260-10-50-1"
  },
  "r337": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482635/260-10-55-15"
  },
  "r338": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "272",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483014/272-10-45-1"
  },
  "r339": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "272",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482987/272-10-50-1"
  },
  "r340": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "272",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482987/272-10-50-3"
  },
  "r341": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//280/tableOfContent"
  },
  "r342": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-15"
  },
  "r343": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-21"
  },
  "r344": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-21"
  },
  "r345": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r346": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r347": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r348": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r349": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r350": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r351": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r352": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r353": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r354": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "22",
   "Subparagraph": "(j)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-22"
  },
  "r355": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "25",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-25"
  },
  "r356": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "25",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-25"
  },
  "r357": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "26",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-26"
  },
  "r358": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "30",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-30"
  },
  "r359": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "30",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-30"
  },
  "r360": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "30",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-30"
  },
  "r361": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "30",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-30"
  },
  "r362": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "31",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-31"
  },
  "r363": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-32"
  },
  "r364": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-32"
  },
  "r365": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-32"
  },
  "r366": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-32"
  },
  "r367": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-32"
  },
  "r368": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "32",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-32"
  },
  "r369": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "34",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-34"
  },
  "r370": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "40",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-40"
  },
  "r371": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "41",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-41"
  },
  "r372": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "41",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-41"
  },
  "r373": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "41",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-41"
  },
  "r374": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "42",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-42"
  },
  "r375": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481990/310-10-45-2"
  },
  "r376": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481990/310-10-45-9"
  },
  "r377": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481962/310-10-50-4"
  },
  "r378": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481925/310-20-65-2"
  },
  "r379": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "310",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481925/310-20-65-2"
  },
  "r380": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481687/323-10-50-3"
  },
  "r381": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481687/323-10-50-3"
  },
  "r382": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481687/323-10-50-3"
  },
  "r383": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481687/323-10-50-3"
  },
  "r384": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481687/323-10-50-3"
  },
  "r385": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481687/323-10-50-3"
  },
  "r386": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-1"
  },
  "r387": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-4"
  },
  "r388": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-4"
  },
  "r389": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-4"
  },
  "r390": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-4"
  },
  "r391": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(e)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-4"
  },
  "r392": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(e)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-4"
  },
  "r393": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-5"
  },
  "r394": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-5"
  },
  "r395": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-5"
  },
  "r396": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-5"
  },
  "r397": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479344/326-20-45-1"
  },
  "r398": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "330",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//330/tableOfContent"
  },
  "r399": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "330",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483080/330-10-50-1"
  },
  "r400": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "330",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483080/330-10-50-4"
  },
  "r401": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r402": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r403": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r404": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r405": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r406": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r407": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r408": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r409": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482573/350-20-50-1"
  },
  "r410": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//350-30/tableOfContent"
  },
  "r411": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482665/350-30-50-1"
  },
  "r412": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482665/350-30-50-1"
  },
  "r413": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482665/350-30-50-2"
  },
  "r414": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482665/350-30-50-2"
  },
  "r415": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-3"
  },
  "r416": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "405",
   "SubTopic": "50",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147477123/405-50-65-1"
  },
  "r417": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "410",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//410-30/tableOfContent"
  },
  "r418": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "420",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482017/420-10-50-1"
  },
  "r419": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "420",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SAB Topic 5.P.4(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479823/420-10-S99-2"
  },
  "r420": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "440",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482648/440-10-50-4"
  },
  "r421": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "440",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482648/440-10-50-4"
  },
  "r422": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483076/450-20-50-1"
  },
  "r423": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483076/450-20-50-4"
  },
  "r424": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483076/450-20-50-9"
  },
  "r425": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB TOPIC 5.Y.Q4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480102/450-20-S99-1"
  },
  "r426": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 5.Y.Q1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480102/450-20-S99-1"
  },
  "r427": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 5.Y.Q2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480102/450-20-S99-1"
  },
  "r428": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 5.Y.Q4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480102/450-20-S99-1"
  },
  "r429": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480102/450-20-S99-2"
  },
  "r430": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "460",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//460/tableOfContent"
  },
  "r431": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "460",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482425/460-10-50-3"
  },
  "r432": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "460",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482425/460-10-50-8"
  },
  "r433": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1A",
   "Subparagraph": "(SX 210.13-01(a)(4)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1A"
  },
  "r434": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1A",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii)(A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1A"
  },
  "r435": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1A",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii)(B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1A"
  },
  "r436": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1A",
   "Subparagraph": "(SX 210.13-01(a)(4)(iv))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1A"
  },
  "r437": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1A",
   "Subparagraph": "(SX 210.13-01(a)(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1A"
  },
  "r438": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1B",
   "Subparagraph": "(SX 210.13-02(a)(4)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1B"
  },
  "r439": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1B",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(A)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1B"
  },
  "r440": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1B",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1B"
  },
  "r441": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1B",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(B)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1B"
  },
  "r442": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1B",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1B"
  },
  "r443": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1B",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1B"
  },
  "r444": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1B",
   "Subparagraph": "(SX 210.13-02(a)(4)(iv))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1B"
  },
  "r445": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1B",
   "Subparagraph": "(SX 210.13-02(a)(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1B"
  },
  "r446": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B"
  },
  "r447": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B"
  },
  "r448": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B"
  },
  "r449": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B"
  },
  "r450": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B"
  },
  "r451": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B"
  },
  "r452": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B"
  },
  "r453": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B"
  },
  "r454": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B"
  },
  "r455": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1C",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1C"
  },
  "r456": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1C",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1C"
  },
  "r457": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1C",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1C"
  },
  "r458": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1D",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1D"
  },
  "r459": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1D",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1D"
  },
  "r460": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1D",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1D"
  },
  "r461": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1E",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1E"
  },
  "r462": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1E",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1E"
  },
  "r463": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1E",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1E"
  },
  "r464": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1E",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1E"
  },
  "r465": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1F",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1F"
  },
  "r466": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1F",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1F"
  },
  "r467": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1F",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1F"
  },
  "r468": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1F",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1F"
  },
  "r469": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1I",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1I"
  },
  "r470": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1I",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1I"
  },
  "r471": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1I",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1I"
  },
  "r472": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1I",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1I"
  },
  "r473": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-4"
  },
  "r474": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-4"
  },
  "r475": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-6"
  },
  "r476": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-6"
  },
  "r477": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-13"
  },
  "r478": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-13"
  },
  "r479": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-13"
  },
  "r480": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-13"
  },
  "r481": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "14",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-14"
  },
  "r482": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-2"
  },
  "r483": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-3"
  },
  "r484": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.3-04)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480008/505-10-S99-1"
  },
  "r485": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479837/606-10-45-1"
  },
  "r486": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479837/606-10-45-2"
  },
  "r487": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479837/606-10-45-3"
  },
  "r488": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-10"
  },
  "r489": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-12"
  },
  "r490": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-12"
  },
  "r491": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-12"
  },
  "r492": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-12"
  },
  "r493": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-12"
  },
  "r494": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-13"
  },
  "r495": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-15"
  },
  "r496": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "17",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-17"
  },
  "r497": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-18"
  },
  "r498": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-18"
  },
  "r499": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "19",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-19"
  },
  "r500": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "20",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-20"
  },
  "r501": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "20",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-20"
  },
  "r502": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "20",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-20"
  },
  "r503": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "20",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-20"
  },
  "r504": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-4"
  },
  "r505": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-5"
  },
  "r506": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-8"
  },
  "r507": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-9"
  },
  "r508": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//715/tableOfContent"
  },
  "r509": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480535/715-20-45-2"
  },
  "r510": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480535/715-20-45-3"
  },
  "r511": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480535/715-20-45-3A"
  },
  "r512": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r513": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r514": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(10)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r515": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r516": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r517": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r518": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r519": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(6)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r520": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r521": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(8)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r522": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(9)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r523": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r524": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r525": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r526": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r527": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r528": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r529": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(6)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r530": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r531": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(8)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r532": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r533": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r534": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r535": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r536": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r537": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(02)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r538": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(02)(A)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r539": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(02)(B)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r540": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(02)(C)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r541": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(03)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r542": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r543": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r544": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r545": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r546": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r547": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r548": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r549": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r550": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r551": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(6)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r552": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r553": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r554": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(j)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r555": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(k)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r556": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(k)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r557": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(k)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r558": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(k)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r559": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(k)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r560": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(l)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r561": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(n)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r562": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(o)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r563": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(p)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r564": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(q)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r565": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(r)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r566": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(r)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r567": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-2"
  },
  "r568": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-3"
  },
  "r569": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-3"
  },
  "r570": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-4"
  },
  "r571": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r572": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r573": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r574": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r575": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r576": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r577": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(6)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r578": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r579": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r580": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-8"
  },
  "r581": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480126/715-20-S99-2"
  },
  "r582": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "60",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480266/715-60-50-3"
  },
  "r583": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "60",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480266/715-60-50-4"
  },
  "r584": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "70",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480794/715-70-50-1"
  },
  "r585": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "35",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480606/715-80-35-1"
  },
  "r586": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-11"
  },
  "r587": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-5"
  },
  "r588": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-5"
  },
  "r589": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(f)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-5"
  },
  "r590": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-7"
  },
  "r591": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-9"
  },
  "r592": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//718/tableOfContent"
  },
  "r593": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "35",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480483/718-10-35-1D"
  },
  "r594": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "35",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480483/718-10-35-3"
  },
  "r595": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r596": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r597": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r598": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r599": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r600": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r601": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r602": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r603": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r604": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r605": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)(02)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r606": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)(03)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r607": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)(04)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r608": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r609": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r610": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r611": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(iii)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r612": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(iii)(02)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r613": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(iii)(03)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r614": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r615": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r616": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r617": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r618": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r619": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r620": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r621": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r622": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r623": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(iv)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r624": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(v)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r625": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(h)(1)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r626": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(h)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r627": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(h)(2)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r628": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r629": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(l)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r630": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "15",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480336/718-10-65-15"
  },
  "r631": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "15",
   "Subparagraph": "(f)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480336/718-10-65-15"
  },
  "r632": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "15",
   "Subparagraph": "(f)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480336/718-10-65-15"
  },
  "r633": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 14.C.Q3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479830/718-10-S99-1"
  },
  "r634": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 14.D.1.Q5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479830/718-10-S99-1"
  },
  "r635": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 14.D.2.Q6)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479830/718-10-S99-1"
  },
  "r636": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 14.D.3.Q2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479830/718-10-S99-1"
  },
  "r637": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 14.F)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479830/718-10-S99-1"
  },
  "r638": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "730",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482916/730-10-50-1"
  },
  "r639": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "730",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483041/730-20-50-1"
  },
  "r640": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//740/tableOfContent"
  },
  "r641": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "15",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482525/740-10-45-15"
  },
  "r642": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "25",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482525/740-10-45-25"
  },
  "r643": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "28",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482525/740-10-45-28"
  },
  "r644": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-10"
  },
  "r645": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-12"
  },
  "r646": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "14",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-14"
  },
  "r647": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "17",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-17"
  },
  "r648": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "19",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-19"
  },
  "r649": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-2"
  },
  "r650": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-2"
  },
  "r651": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-2"
  },
  "r652": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "20",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-20"
  },
  "r653": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "21",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-21"
  },
  "r654": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-9"
  },
  "r655": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-9"
  },
  "r656": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "8",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482615/740-10-65-8"
  },
  "r657": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "8",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482615/740-10-65-8"
  },
  "r658": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "8",
   "Subparagraph": "(d)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482615/740-10-65-8"
  },
  "r659": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "8",
   "Subparagraph": "(d)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482615/740-10-65-8"
  },
  "r660": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB TOPIC 6.I.5.Q1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1"
  },
  "r661": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB TOPIC 6.I.7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1"
  },
  "r662": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 6.I.Fact.1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1"
  },
  "r663": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 6.I.Fact.2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1"
  },
  "r664": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 6.I.Fact.3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1"
  },
  "r665": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 6.I.Fact.4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1"
  },
  "r666": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SAB Topic 11.C)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-2"
  },
  "r667": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "11",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482659/740-20-45-11"
  },
  "r668": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482659/740-20-45-2"
  },
  "r669": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "270",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482526/740-270-50-1"
  },
  "r670": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "740",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482603/740-30-50-2"
  },
  "r671": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479845/805-20-65-3"
  },
  "r672": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479845/805-20-65-3"
  },
  "r673": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "805",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "3",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479845/805-20-65-3"
  },
  "r674": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "19",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-19"
  },
  "r675": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "25",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-25"
  },
  "r676": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "25",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481231/810-10-45-25"
  },
  "r677": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-1A"
  },
  "r678": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-1A"
  },
  "r679": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(c)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-1A"
  },
  "r680": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(bb)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-3"
  },
  "r681": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481203/810-10-50-3"
  },
  "r682": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5C",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-5C"
  },
  "r683": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6"
  },
  "r684": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6"
  },
  "r685": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6"
  },
  "r686": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6"
  },
  "r687": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6"
  },
  "r688": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(h)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6"
  },
  "r689": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(h)(1)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6"
  },
  "r690": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(h)(1)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6"
  },
  "r691": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(h)(1)(iv)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6"
  },
  "r692": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(i)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6"
  },
  "r693": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(i)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480528/815-20-65-6"
  },
  "r694": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480237/815-40-50-5"
  },
  "r695": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r696": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r697": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r698": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r699": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r700": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r701": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r702": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(e)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r703": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(e)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r704": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(e)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r705": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r706": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-2"
  },
  "r707": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r708": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r709": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r710": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-3"
  },
  "r711": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "13",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482477/820-10-65-13"
  },
  "r712": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "13",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482477/820-10-65-13"
  },
  "r713": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "28",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482907/825-10-50-28"
  },
  "r714": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482833/825-10-65-6"
  },
  "r715": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482833/825-10-65-6"
  },
  "r716": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482833/825-10-65-6"
  },
  "r717": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482833/825-10-65-6"
  },
  "r718": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//830/tableOfContent"
  },
  "r719": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "17",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481839/830-10-45-17"
  },
  "r720": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "9",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481839/830-10-45-9"
  },
  "r721": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "35",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482014/830-20-35-1"
  },
  "r722": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "35",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482014/830-20-35-3"
  },
  "r723": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481956/830-20-45-1"
  },
  "r724": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481926/830-20-50-1"
  },
  "r725": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "230",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481877/830-230-45-1"
  },
  "r726": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481694/830-30-45-12"
  },
  "r727": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "17",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481694/830-30-45-17"
  },
  "r728": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "20",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481694/830-30-45-20"
  },
  "r729": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "20",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481694/830-30-45-20"
  },
  "r730": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "20",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481694/830-30-45-20"
  },
  "r731": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "20",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481694/830-30-45-20"
  },
  "r732": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "20",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481694/830-30-45-20"
  },
  "r733": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481674/830-30-50-1"
  },
  "r734": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "830",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481674/830-30-50-2"
  },
  "r735": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "832",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483482/832-10-65-1"
  },
  "r736": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "832",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483482/832-10-65-1"
  },
  "r737": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "835",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482900/835-30-50-1"
  },
  "r738": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479832/842-10-65-5"
  },
  "r739": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479832/842-10-65-5"
  },
  "r740": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479832/842-10-65-5"
  },
  "r741": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(d)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479832/842-10-65-5"
  },
  "r742": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//842-20/tableOfContent"
  },
  "r743": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479041/842-20-45-1"
  },
  "r744": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479041/842-20-45-1"
  },
  "r745": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479041/842-20-45-2"
  },
  "r746": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479041/842-20-45-4"
  },
  "r747": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "5",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479041/842-20-45-5"
  },
  "r748": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-3"
  },
  "r749": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-4"
  },
  "r750": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(g)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-4"
  },
  "r751": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(g)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-4"
  },
  "r752": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(g)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-4"
  },
  "r753": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(g)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-4"
  },
  "r754": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-6"
  },
  "r755": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483550/848-10-65-2"
  },
  "r756": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483550/848-10-65-2"
  },
  "r757": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483550/848-10-65-2"
  },
  "r758": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)(3)(iii)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483550/848-10-65-2"
  },
  "r759": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)(3)(iii)(03)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483550/848-10-65-2"
  },
  "r760": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//850/tableOfContent"
  },
  "r761": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-1"
  },
  "r762": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-1"
  },
  "r763": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-1"
  },
  "r764": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-1"
  },
  "r765": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-2"
  },
  "r766": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-3"
  },
  "r767": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-6"
  },
  "r768": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "855",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483399/855-10-50-2"
  },
  "r769": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(bb)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3"
  },
  "r770": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(bb)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3"
  },
  "r771": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(bb)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3"
  },
  "r772": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3"
  },
  "r773": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "910",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482546/910-10-50-6"
  },
  "r774": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "912",
   "SubTopic": "330",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482105/912-330-50-1"
  },
  "r775": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "924",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 11.L)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479941/924-10-S99-1"
  },
  "r776": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "926",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483154/926-20-50-5"
  },
  "r777": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "926",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483194/926-20-65-2"
  },
  "r778": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "926",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483194/926-20-65-2"
  },
  "r779": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "926",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483194/926-20-65-2"
  },
  "r780": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "928",
   "SubTopic": "340",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483147/928-340-50-1"
  },
  "r781": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482274/932-235-50-15"
  },
  "r782": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "15",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482274/932-235-50-15"
  },
  "r783": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "20",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482274/932-235-50-20"
  },
  "r784": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "20",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482274/932-235-50-20"
  },
  "r785": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "28",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482274/932-235-50-28"
  },
  "r786": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "28",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482274/932-235-50-28"
  },
  "r787": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "33",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482274/932-235-50-33"
  },
  "r788": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "33",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482274/932-235-50-33"
  },
  "r789": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "35A",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482274/932-235-50-35A"
  },
  "r790": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "35A",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482274/932-235-50-35A"
  },
  "r791": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482274/932-235-50-8"
  },
  "r792": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "932",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482274/932-235-50-8"
  },
  "r793": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(23))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r794": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(24))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r795": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(25))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r796": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(26))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r797": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-04(27))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483589/942-220-S99-1"
  },
  "r798": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.9-05(b)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479557/942-235-S99-1"
  },
  "r799": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "942",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480842/942-360-50-1"
  },
  "r800": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(12))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r801": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(16)(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r802": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(19))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r803": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(22))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r804": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(23)(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r805": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(23)(a)(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r806": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(24))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r807": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(25))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r808": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(8)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r809": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(8)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r810": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r811": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(11))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r812": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(16))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r813": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(17))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r814": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(18))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r815": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(19))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r816": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(20))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r817": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(21))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r818": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(22))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r819": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(23))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r820": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-04(9))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483586/944-220-S99-1"
  },
  "r821": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r822": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r823": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r824": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r825": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column E))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r826": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column F))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r827": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column G))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r828": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column H))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r829": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column I))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r830": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column J))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r831": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-16(Column K))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-1"
  },
  "r832": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-17(Column A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-2"
  },
  "r833": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-17(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-2"
  },
  "r834": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-17(Column C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-2"
  },
  "r835": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-17(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-2"
  },
  "r836": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-17(Column E))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-2"
  },
  "r837": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-17(Column F))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480149/944-235-S99-2"
  },
  "r838": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7A",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480081/944-40-50-7A"
  },
  "r839": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r840": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r841": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r842": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(f)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r843": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r844": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r845": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(2)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r846": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(2)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r847": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(2)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r848": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(g)(2)(iv)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r849": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(h)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r850": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(h)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480016/944-40-65-2"
  },
  "r851": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "944",
   "SubTopic": "825",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479383/944-825-50-1B"
  },
  "r852": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480424/946-10-50-3"
  },
  "r853": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-03(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479886/946-10-S99-3"
  },
  "r854": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-03(h)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479886/946-10-S99-3"
  },
  "r855": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-03(i)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479886/946-10-S99-3"
  },
  "r856": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-03(i)(2)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479886/946-10-S99-3"
  },
  "r857": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-03(i)(2)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479886/946-10-S99-3"
  },
  "r858": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-03(i)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479886/946-10-S99-3"
  },
  "r859": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480990/946-20-50-11"
  },
  "r860": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480990/946-20-50-13"
  },
  "r861": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480990/946-20-50-2"
  },
  "r862": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480990/946-20-50-5"
  },
  "r863": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480990/946-20-50-6"
  },
  "r864": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480767/946-205-45-3"
  },
  "r865": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480767/946-205-45-3"
  },
  "r866": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480767/946-205-45-4"
  },
  "r867": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480737/946-205-50-2"
  },
  "r868": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "27",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480737/946-205-50-27"
  },
  "r869": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480737/946-205-50-7"
  },
  "r870": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480737/946-205-50-7"
  },
  "r871": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480737/946-205-50-7"
  },
  "r872": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480737/946-205-50-7"
  },
  "r873": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480737/946-205-50-7"
  },
  "r874": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480737/946-205-50-7"
  },
  "r875": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480737/946-205-50-7"
  },
  "r876": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480737/946-205-50-7"
  },
  "r877": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480555/946-210-45-4"
  },
  "r878": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1"
  },
  "r879": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1"
  },
  "r880": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1"
  },
  "r881": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1"
  },
  "r882": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-2"
  },
  "r883": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r884": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r885": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r886": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r887": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r888": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r889": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r890": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(12)(b)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r891": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(12)(b)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r892": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(12)(b)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r893": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(13)(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r894": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(13)(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r895": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(14))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r896": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(15))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r897": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(16)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r898": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(17))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r899": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(19))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r900": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(2)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r901": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(2)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r902": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(3)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r903": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(3)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r904": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(3)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r905": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(6)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r906": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(6)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r907": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(6)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r908": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(6)(e))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r909": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(7)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r910": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r911": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(9)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r912": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(9)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r913": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(9)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r914": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-04(9)(e))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-1"
  },
  "r915": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.6-05(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-2"
  },
  "r916": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.6-05(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479617/946-210-S99-2"
  },
  "r917": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483581/946-220-45-3"
  },
  "r918": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483581/946-220-45-7"
  },
  "r919": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483580/946-220-50-3"
  },
  "r920": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r921": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(2)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r922": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(2)(c)(2)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r923": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(2)(c)(2)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r924": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(2)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r925": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(2)(e))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r926": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(2)(g)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r927": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r928": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r929": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r930": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r931": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r932": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(a)(7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r933": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r934": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r935": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r936": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r937": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r938": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7)(c)(7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r939": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r940": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.6-07(9))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-1"
  },
  "r941": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(1)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-3"
  },
  "r942": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(4)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-3"
  },
  "r943": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-3"
  },
  "r944": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-3"
  },
  "r945": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481062/946-235-50-2"
  },
  "r946": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "235",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481062/946-235-50-2"
  },
  "r947": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480833/946-310-45-1"
  },
  "r948": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column A)(Footnote 1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r949": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column A)(Footnote 2)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r950": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column A)(Footnote 2)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r951": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r952": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column A)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r953": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r954": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column B)(Footnote 7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r955": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r956": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column C)(Footnote 10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r957": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column C)(Footnote 5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r958": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column C)(Footnote 6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r959": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column C)(Footnote 8)(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r960": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column C)(Footnote 8)(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r961": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column C)(Footnote 8)(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r962": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column C)(Footnote 8)(b)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r963": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column C)(Footnote 8)(b)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r964": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column C)(Footnote 8)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r965": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column C)(Footnote 8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r966": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column C)(Footnote 9))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r967": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r968": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "19",
   "Subparagraph": "(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-19"
  },
  "r969": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "19",
   "Subparagraph": "(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-19"
  },
  "r970": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-12A(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-2"
  },
  "r971": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-12A(Column C)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-2"
  },
  "r972": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 1)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r973": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 1)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r974": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r975": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 4)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r976": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 4)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r977": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r978": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 6))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r979": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r980": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r981": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column B)(Footnote 10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r982": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r983": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 11)(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r984": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 11)(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r985": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 11)(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r986": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 11)(b)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r987": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 11)(b)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r988": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 11)(c))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r989": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 11))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r990": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 12))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r991": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 13))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r992": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r993": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 9))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r994": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r995": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r996": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5",
   "Subparagraph": "(SX 210.12-13(Column A)(Footnote 3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5"
  },
  "r997": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5",
   "Subparagraph": "(SX 210.12-13(Column G)(Footnote 8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5"
  },
  "r998": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5B",
   "Subparagraph": "(SX 210.12-13B(Column E)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5B"
  },
  "r999": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5C",
   "Subparagraph": "(SX 210.12-13C(Column H)(Footnote 7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5C"
  },
  "r1000": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5D",
   "Subparagraph": "(SX 210.12-13D(Column B)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5D"
  },
  "r1001": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5D",
   "Subparagraph": "(SX 210.12-13D(Column C)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-5D"
  },
  "r1002": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 1)(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1003": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 1)(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1004": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 1)(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1005": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 1)(b)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1006": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 1)(b)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1007": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 1)(b)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1008": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 1)(b)(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1009": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 1)(b)(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1010": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 1)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1011": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1012": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1013": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1014": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1015": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column F)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1016": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column F)(Footnote 5)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1017": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column F)(Footnote 7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1018": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column F)(Footnote 8))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1019": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column F)(Footnote 9))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1020": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column F))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1021": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SX 210.12-15(Column A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-7"
  },
  "r1022": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SX 210.12-15(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-7"
  },
  "r1023": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SX 210.12-15(Column C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-7"
  },
  "r1024": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SX 210.12-15(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-7"
  },
  "r1025": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481004/946-505-50-1"
  },
  "r1026": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481004/946-505-50-2"
  },
  "r1027": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481004/946-505-50-2"
  },
  "r1028": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481004/946-505-50-2"
  },
  "r1029": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481004/946-505-50-2"
  },
  "r1030": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "505",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481004/946-505-50-3"
  },
  "r1031": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "948",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-29(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479851/948-310-S99-1"
  },
  "r1032": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "954",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481027/954-310-50-2"
  },
  "r1033": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "954",
   "SubTopic": "440",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480327/954-440-50-1"
  },
  "r1034": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1"
  },
  "r1035": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Column C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1"
  },
  "r1036": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1"
  },
  "r1037": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Column E))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1"
  },
  "r1038": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Column F))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1"
  },
  "r1039": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Column G))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1"
  },
  "r1040": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Column H))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1"
  },
  "r1041": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Column I))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1"
  },
  "r1042": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1"
  },
  "r1043": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "976",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482856/976-310-50-1"
  },
  "r1044": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "978",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482707/978-310-50-1"
  },
  "r1045": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(e)",
   "SubTopic": "10",
   "Topic": "235",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483426/235-10-50-4"
  },
  "r1046": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "13H",
   "Subparagraph": "(a)",
   "SubTopic": "40",
   "Topic": "944",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480046/944-40-55-13H"
  },
  "r1047": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "13H",
   "Subparagraph": "(b)",
   "SubTopic": "40",
   "Topic": "944",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480046/944-40-55-13H"
  },
  "r1048": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483467/210-10-45-1"
  },
  "r1049": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483467/210-10-45-1"
  },
  "r1050": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "8",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483467/210-10-45-8"
  },
  "r1051": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(6)(a)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r1052": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(6)(a)(3))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r1053": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(6)(a)(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r1054": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(6)(a)(5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r1055": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "16",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483444/210-20-55-16"
  },
  "r1056": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "21",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483444/210-20-55-21"
  },
  "r1057": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "210",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "22",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483444/210-20-55-22"
  },
  "r1058": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483426/235-10-50-4"
  },
  "r1059": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483426/235-10-50-4"
  },
  "r1060": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "52",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482635/260-10-55-52"
  },
  "r1061": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "30",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-30"
  },
  "r1062": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "31",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-31"
  },
  "r1063": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "48",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482785/280-10-55-48"
  },
  "r1064": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "310",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481933/310-10-55-12A"
  },
  "r1065": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "350",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "24",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482548/350-20-55-24"
  },
  "r1066": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "410",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481899/410-30-55-11"
  },
  "r1067": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "410",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "16",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481899/410-30-55-16"
  },
  "r1068": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "410",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "17",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481899/410-30-55-17"
  },
  "r1069": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B"
  },
  "r1070": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "69B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481568/470-20-55-69B"
  },
  "r1071": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "69C",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481568/470-20-55-69C"
  },
  "r1072": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "69E",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481568/470-20-55-69E"
  },
  "r1073": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "69F",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481568/470-20-55-69F"
  },
  "r1074": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "505",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481112/505-10-50-13"
  },
  "r1075": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-10"
  },
  "r1076": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "91",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479777/606-10-55-91"
  },
  "r1077": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "91",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479777/606-10-55-91"
  },
  "r1078": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "91",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479777/606-10-55-91"
  },
  "r1079": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "91",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479777/606-10-55-91"
  },
  "r1080": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "91",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479777/606-10-55-91"
  },
  "r1081": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "91",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479777/606-10-55-91"
  },
  "r1082": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "91",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479777/606-10-55-91"
  },
  "r1083": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1084": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1085": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "17",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480482/715-20-55-17"
  },
  "r1086": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "18",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480482/715-20-55-18"
  },
  "r1087": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-11"
  },
  "r1088": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-11"
  },
  "r1089": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-11"
  },
  "r1090": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-5"
  },
  "r1091": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-6"
  },
  "r1092": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-6"
  },
  "r1093": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-6"
  },
  "r1094": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480547/715-80-55-8"
  },
  "r1095": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1096": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1097": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "4J",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481175/810-10-55-4J"
  },
  "r1098": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "810",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481175/810-10-55-4K"
  },
  "r1099": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "53",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479589/842-20-55-53"
  },
  "r1100": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "852",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481372/852-10-55-10"
  },
  "r1101": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "944",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479401/944-30-55-2"
  },
  "r1102": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "944",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "29F",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480046/944-40-55-29F"
  },
  "r1103": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1"
  },
  "r1104": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r1105": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480493/946-210-55-1"
  },
  "r1106": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480833/946-310-45-1"
  },
  "r1107": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column A)(Footnote 2)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r1108": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-12A(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-2"
  },
  "r1109": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 1)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r1110": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r1111": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "830",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480167/946-830-55-10"
  },
  "r1112": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "830",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480167/946-830-55-11"
  },
  "r1113": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "830",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480167/946-830-55-12"
  },
  "r1114": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b"
  },
  "r1115": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r1116": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-23"
  },
  "r1117": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "d1-1"
  },
  "r1118": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 10-K",
   "Number": "249",
   "Section": "310"
  },
  "r1119": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Number": "249",
   "Section": "220",
   "Subsection": "f"
  },
  "r1120": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Number": "249",
   "Section": "240",
   "Subsection": "f"
  },
  "r1121": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Forms 10-K, 10-Q, 20-F",
   "Number": "240",
   "Section": "13",
   "Subsection": "a-1"
  },
  "r1122": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w"
  },
  "r1123": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-T",
   "Number": "232",
   "Section": "405"
  },
  "r1124": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "405"
  },
  "r1125": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "272",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483014/272-10-45-3"
  },
  "r1126": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "323",
   "SubTopic": "740",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481543/323-740-50-2"
  },
  "r1127": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "410",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481931/410-30-50-10"
  },
  "r1128": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "410",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481931/410-30-50-10"
  },
  "r1129": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "410",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481931/410-30-50-10"
  },
  "r1130": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "410",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Subparagraph": "(d)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481931/410-30-50-10"
  },
  "r1131": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "410",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Subparagraph": "(d)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481931/410-30-50-10"
  },
  "r1132": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "410",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Subparagraph": "(d)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481931/410-30-50-10"
  },
  "r1133": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "410",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Subparagraph": "(d)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481931/410-30-50-10"
  },
  "r1134": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "410",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Subparagraph": "(d)(5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481931/410-30-50-10"
  },
  "r1135": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "410",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481931/410-30-50-11"
  },
  "r1136": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "410",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "14",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481931/410-30-50-14"
  },
  "r1137": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "410",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "17",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481931/410-30-50-17"
  },
  "r1138": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483076/450-20-50-10"
  },
  "r1139": {
   "role": "http://www.xbrl.org/2003/role/recommendedDisclosureRef",
   "Topic": "855",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483399/855-10-50-3"
  },
  "r1140": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "12",
   "SubTopic": "10",
   "Topic": "230",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-12"
  },
  "r1141": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "SubTopic": "20",
   "Topic": "842",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479041/842-20-45-4"
  },
  "r1142": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(2)",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-1"
  },
  "r1143": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(3)",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-1"
  },
  "r1144": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(02)(B)",
   "SubTopic": "20",
   "Topic": "715",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1145": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(a)",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-11"
  },
  "r1146": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Subparagraph": "(b)",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-11"
  },
  "r1147": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "SubTopic": "10",
   "Topic": "275",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482861/275-10-50-18"
  },
  "r1148": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "SubTopic": "825",
   "Topic": "944",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479383/944-825-50-1B"
  },
  "r1149": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-3"
  },
  "r1150": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "SubTopic": "20",
   "Topic": "842",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-4"
  },
  "r1151": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4H",
   "SubTopic": "40",
   "Topic": "944",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480081/944-40-50-4H"
  },
  "r1152": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-8"
  },
  "r1153": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "SubTopic": "10",
   "Topic": "250",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-9"
  },
  "r1154": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(a)",
   "SubTopic": "10",
   "Topic": "740",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-9"
  },
  "r1155": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(2)(a))",
   "SubTopic": "10",
   "Topic": "220",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r1156": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03(2)(d))",
   "SubTopic": "10",
   "Topic": "220",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r1157": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Topic": "321",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//321/tableOfContent"
  },
  "r1158": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Accounting Standards Codification",
   "Topic": "325",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//325/tableOfContent"
  },
  "r1159": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "105",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "6",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479343/105-10-65-6"
  },
  "r1160": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(17))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r1161": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(18))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r1162": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "210",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.5-02(3)(a)(4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480566/210-10-S99-1"
  },
  "r1163": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482765/220-10-50-4"
  },
  "r1164": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482765/220-10-50-5"
  },
  "r1165": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482765/220-10-50-6"
  },
  "r1166": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "13",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-13"
  },
  "r1167": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "14",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-14"
  },
  "r1168": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "15",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-15"
  },
  "r1169": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "16",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-16"
  },
  "r1170": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "230",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "28",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482740/230-10-45-28"
  },
  "r1171": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r1172": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(f))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r1173": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(g)(1)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r1174": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(h)(1)(Note 1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r1175": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.4-08(k)(1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-1"
  },
  "r1176": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-04(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-3"
  },
  "r1177": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "4",
   "Subparagraph": "(SX 210.12-09(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-4"
  },
  "r1178": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "4",
   "Subparagraph": "(SX 210.12-09(Column C(1)))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-4"
  },
  "r1179": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "4",
   "Subparagraph": "(SX 210.12-09(Column C(2)))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-4"
  },
  "r1180": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "4",
   "Subparagraph": "(SX 210.12-09(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-4"
  },
  "r1181": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "235",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "4",
   "Subparagraph": "(SX 210.12-09(Column E))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480678/235-10-S99-4"
  },
  "r1182": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "23",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483421/250-10-45-23"
  },
  "r1183": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "24",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483421/250-10-45-24"
  },
  "r1184": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "5",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483421/250-10-45-5"
  },
  "r1185": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483421/250-10-45-6"
  },
  "r1186": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "250",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483443/250-10-50-4"
  },
  "r1187": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "260",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "55",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482689/260-10-45-55"
  },
  "r1188": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "18",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-18"
  },
  "r1189": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "30",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-30"
  },
  "r1190": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "320",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//320/tableOfContent"
  },
  "r1191": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481830/320-10-45-11"
  },
  "r1192": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-2"
  },
  "r1193": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "320",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481800/320-10-50-5"
  },
  "r1194": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "323",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481687/323-10-50-3"
  },
  "r1195": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "4",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-4"
  },
  "r1196": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "326",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "5",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479654/326-10-65-5"
  },
  "r1197": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "13",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479319/326-20-50-13"
  },
  "r1198": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "350",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482665/350-30-50-3"
  },
  "r1199": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482130/360-10-45-5"
  },
  "r1200": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "360",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482099/360-10-50-3"
  },
  "r1201": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "410",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481931/410-30-50-10"
  },
  "r1202": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "410",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481931/410-30-50-7"
  },
  "r1203": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "450",
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//450/tableOfContent"
  },
  "r1204": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483076/450-20-50-1"
  },
  "r1205": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483076/450-20-50-4"
  },
  "r1206": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483076/450-20-50-4"
  },
  "r1207": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483076/450-20-50-9"
  },
  "r1208": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483076/450-20-50-9"
  },
  "r1209": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "450",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 5.Y.Q2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480102/450-20-S99-1"
  },
  "r1210": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "460",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482425/460-10-50-3"
  },
  "r1211": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "460",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482425/460-10-50-8"
  },
  "r1212": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "460",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482425/460-10-50-8"
  },
  "r1213": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "460",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482425/460-10-50-8"
  },
  "r1214": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "460",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Subparagraph": "(c)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482425/460-10-50-8"
  },
  "r1215": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "460",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Subparagraph": "(c)(5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482425/460-10-50-8"
  },
  "r1216": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1A",
   "Subparagraph": "(SX 210.13-01(a)(4)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1A"
  },
  "r1217": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "470",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1A",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480097/470-10-S99-1A"
  },
  "r1218": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1B"
  },
  "r1219": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "470",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1E",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481139/470-20-50-1E"
  },
  "r1220": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "10",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-10"
  },
  "r1221": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-5"
  },
  "r1222": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "91",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479777/606-10-55-91"
  },
  "r1223": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1224": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1225": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1226": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(10)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1227": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1228": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1229": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1230": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1231": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(6)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1232": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1233": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(8)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1234": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(a)(9)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1235": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1236": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1237": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1238": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1239": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1240": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1241": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(6)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1242": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1243": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(8)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1244": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1245": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1246": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1247": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1248": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(02)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1249": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(02)(A)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1250": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(02)(C)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1251": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)(iv)(03)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1252": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1253": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1254": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(g)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1255": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1256": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1257": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1258": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1259": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1260": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1261": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(6)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1262": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(h)(7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1263": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1264": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(j)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1265": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(k)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1266": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(k)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1267": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(k)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1268": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(k)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1269": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(n)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1270": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(q)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-1"
  },
  "r1271": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-2"
  },
  "r1272": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-3"
  },
  "r1273": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-3"
  },
  "r1274": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r1275": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r1276": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r1277": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r1278": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r1279": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(5)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r1280": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(6)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r1281": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r1282": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-6"
  },
  "r1283": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "8",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480506/715-20-50-8"
  },
  "r1284": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "35",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480606/715-80-35-1"
  },
  "r1285": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "11",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-11"
  },
  "r1286": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-5"
  },
  "r1287": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "715",
   "SubTopic": "80",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480576/715-80-50-9"
  },
  "r1288": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1289": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1290": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1291": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1292": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1293": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1294": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1295": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1296": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)(02)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1297": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)(03)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1298": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(1)(iv)(04)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1299": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1300": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1301": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1302": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(iii)(01)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1303": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(iii)(02)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1304": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(c)(2)(iii)(03)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1305": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1306": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(d)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1307": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1308": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(e)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1309": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1310": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(ii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1311": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(iii)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1312": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(iv)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1313": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(f)(2)(v)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1314": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(i)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480429/718-10-50-2"
  },
  "r1315": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "15",
   "Subparagraph": "(e)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480336/718-10-65-15"
  },
  "r1316": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "15",
   "Subparagraph": "(f)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480336/718-10-65-15"
  },
  "r1317": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "718",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "15",
   "Subparagraph": "(f)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480336/718-10-65-15"
  },
  "r1318": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "12",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-12"
  },
  "r1319": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-2"
  },
  "r1320": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-6"
  },
  "r1321": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "9",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482685/740-10-50-9"
  },
  "r1322": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "8",
   "Subparagraph": "(d)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482615/740-10-65-8"
  },
  "r1323": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "8",
   "Subparagraph": "(d)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482615/740-10-65-8"
  },
  "r1324": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 6.I.7)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1"
  },
  "r1325": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "740",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SAB Topic 6.I.Fact.4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479360/740-10-S99-1"
  },
  "r1326": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1A",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-1A"
  },
  "r1327": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480434/815-10-50-1B"
  },
  "r1328": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "25",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480682/815-20-25-6A"
  },
  "r1329": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r1330": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(e)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r1331": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "815",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "1",
   "Subparagraph": "(e)(4)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480175/815-40-65-1"
  },
  "r1332": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Subparagraph": "(bbb)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482106/820-10-50-2"
  },
  "r1333": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "825",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "28",
   "Subparagraph": "(f)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482907/825-10-50-28"
  },
  "r1334": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(a)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-3"
  },
  "r1335": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-4"
  },
  "r1336": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "842",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147478964/842-20-50-6"
  },
  "r1337": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "842",
   "SubTopic": "40",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479741/842-40-50-2"
  },
  "r1338": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "848",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "65",
   "Paragraph": "2",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483550/848-10-65-2"
  },
  "r1339": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-1"
  },
  "r1340": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(d)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-1"
  },
  "r1341": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "850",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483326/850-10-50-3"
  },
  "r1342": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "852",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481404/852-10-50-7"
  },
  "r1343": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "852",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "7",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481404/852-10-50-7"
  },
  "r1344": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3"
  },
  "r1345": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3"
  },
  "r1346": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "3",
   "Subparagraph": "(c)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-3"
  },
  "r1347": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-4"
  },
  "r1348": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-4"
  },
  "r1349": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "860",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "4",
   "Subparagraph": "(b)(3)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147481326/860-20-50-4"
  },
  "r1350": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "912",
   "SubTopic": "730",
   "Name": "Accounting Standards Codification",
   "Section": "25",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482517/912-730-25-1"
  },
  "r1351": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(1)(d))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r1352": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(10))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r1353": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(15)(a))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r1354": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.7-03(a)(16)(a)(2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479440/944-210-S99-1"
  },
  "r1355": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479432/944-30-50-2B"
  },
  "r1356": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "45",
   "Paragraph": "4",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480767/946-205-45-4"
  },
  "r1357": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(4)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-3"
  },
  "r1358": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "220",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.6-09(7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483575/946-220-S99-3"
  }
 }
}
